:root {
  font-family:
    ui-rounded,
    system-ui,
    -apple-system,
    sans-serif;
  color: #24324b;
  background: #f5f7ff;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
header {
  padding: 22px 20px 12px;
  text-align: center;
}
h1 {
  margin: 0;
}
.sub {
  margin: 6px 0;
  color: #66718a;
}
.wrap {
  margin: auto;
  padding: 0 16px 50px;
}
.timer {
  background: white;
  box-shadow: 0 12px 35px #22315c12;
  padding: 24px;
  text-align: center;
  border: 5px solid #49c88d;
  transition: border-color 0.4s;
}
.timer.amber {
  border-color: #ffb84d;
}
.timer.red {
  border-color: #fa6b76;
}
.clock {
  font-weight: 900;
  letter-spacing: -5px;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}
.clock.green {
  color: #1aa875;
}
.clock.amber {
  color: #e3941f;
}
.clock.red {
  color: #e4475b;
}
.track {
  height: 18px;
  background: #e9edf5;
  border-radius: 99px;
  overflow: hidden;
}
.fill {
  height: 100%;
  width: 100%;
  background: #49c88d;
  transition:
    width 0.5s,
    background 0.5s;
}
.timer.amber .fill {
  background: #ffb84d;
}
.timer.red .fill {
  background: #fa6b76;
}
.controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 15px;
}
.btn {
  border: 0;
  border-radius: 14px;
  background: #6255d9;
  color: white;
  padding: 11px 17px;
  font-weight: 800;
  box-shadow: 0 4px 0 #4437a5;
}
.btn:active {
  transform: translateY(3px);
  box-shadow: none;
}
.btn.secondary {
  background: #edf0fa;
  color: #34415e;
  box-shadow: none;
}
.btn.small {
  padding: 8px 12px;
  font-size: 14px;
}
.settings {
  margin: 15px 0;
  padding: 18px;
  background: white;
  border-radius: 22px;
  box-shadow: 0 8px 25px #22315c0e;
}
.settings summary {
  cursor: pointer;
  font-weight: 900;
}
.settings-inner {
  display: grid;
  gap: 15px;
  margin-top: 16px;
}
.setting-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.setting-row label {
  font-weight: 700;
}
input,
select {
  padding: 9px;
  border: 2px solid #e2e6f1;
  border-radius: 12px;
  max-width: 100%;
}
input[type="number"] {
  width: 90px;
}
input[type="text"] {
  width: 170px;
}
.kids {
  display: grid;
  margin-top: 18px;
}
.kid {
  background: white;
  padding: 18px;
  box-shadow: 0 10px 30px #22315c10;
  position: relative;
  overflow: hidden;
}
.kid.done {
  outline: 4px solid #47c891;
}
.kid-head {
  display: flex;
  align-items: center;
  gap: 8px;
}
.kid h2 {
  margin: 0;
}
.avatar {
  font-size: 34px;
}
.kidprogress {
  border-radius: 50px;
  background: #e9edf5;
  overflow: hidden;
  margin: 12px 0 5px;
}
.kidprogress > div {
  height: 100%;
  background: #49c88d;
  transition: width 0.3s;
}
.count {
  font-size: 13px;
  color: #65718a;
  font-weight: 700;
}
.tasks {
  display: grid;
  margin-top: 16px;
}
.task {
  display: flex;
  align-items: center;
  padding: 13px 12px;
  border: 2px solid #e7eaf4;
  background: #fafbff;
  text-align: left;
  width: 100%;
  color: #283450;
  font-weight: 800;
}
.task .check {
  margin-left: auto;
  border: 2px solid #b7c0d1;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.task.checked {
  background: #e7faef;
  border-color: #85deb1;
  color: #327557;
}
.task.checked .check {
  background: #30b878;
  color: white;
  border-color: #30b878;
}
.task.checked .label {
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}
.done-msg {
  text-align: center;
  font-weight: 900;
  color: #24a46c;
  margin-top: 14px;
}
.all-progress {
  text-align: center;
  margin: 20px auto 0;
}
.toast {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%) translateY(-120px);
  z-index: 20;
  background: #fff;
  padding: 14px 22px;
  border-radius: 18px;
  box-shadow: 0 10px 40px #0002;
  font-weight: 900;
  transition: transform 0.25s;
  pointer-events: none;
}
.toast.show {
  transform: translateX(-50%) translateY(0);
}
.confetti {
  position: fixed;
  pointer-events: none;
  z-index: 19;
  width: 10px;
  height: 14px;
  animation: fall 1.8s ease-in forwards;
}
@keyframes fall {
  to {
    transform: translate(var(--dx), var(--dy)) rotate(700deg);
    opacity: 0;
  }
}
.theme-stars {
  background: #fff8eb;
}
.theme-stars .btn:not(.secondary) {
  background: #ec8a31;
  box-shadow: 0 4px 0 #bc641c;
}
.theme-focus {
  background: #f2f5f7;
  color: #263944;
}
.theme-focus .btn:not(.secondary) {
  background: #306e83;
  box-shadow: 0 4px 0 #1e4c5c;
}
.theme-focus .kid,
.theme-focus .timer,
.theme-focus .settings {
  border-radius: 14px;
}
.footer {
  text-align: center;
  color: #798399;
  padding: 25px;
}
#kidSettings {
  display: grid;
  gap: 10px;
}
.kid-setting {
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  background: #f7f8fd;
  padding: 10px;
  border-radius: 14px;
}
.kid-setting .tasks-editor {
  width: 100%;
  font-size: 13px;
}
.hide {
  display: none !important;
}
@media (max-width: 600px) {
  .timer {
    padding: 15px;
  }
  .clock {
    letter-spacing: -2px;
  }
  .kid {
    padding: 15px;
  }
}
@supports not (font-size: clamp(1px, 2vw, 3px)) {
  @media (min-width: 701px) and (orientation: landscape) {
    .clock {
      font-size: 82px;
    }
    .kid {
      padding: 9px;
    }
    .task {
      min-height: 35px;
      padding: 5px;
    }
    .tasks {
      gap: 4px;
    }
    .kids {
      gap: 8px;
    }
  }
}

/* iPad Safari 12 layout and touch targets */
.settings-modal,
.avatar-picker {
  height: 100vh;
  overflow: hidden;
  padding: 8px;
  align-items: center;
}
.settings-modal .settings {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 14px;
}
.avatar-dialog {
  max-height: calc(100vh - 16px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 12px;
}
.avatar-grid {
  margin: 8px 0;
}
.avatar-choice {
  padding: 4px;
  min-height: 36px;
}
.avatar-dialog .photo-option {
  padding: 8px;
  margin: 6px 0;
}
.avatar-note {
  margin: 5px 0;
}
.kid-setting {
  display: block;
}
.kid-setting > label {
  display: inline-block;
  margin-right: 8px;
}
.kid-setting .tasks-editor {
  margin-top: 8px;
  color: #34415e;
}
.task-fields {
  display: grid;
  gap: 5px;
  margin: 7px 0;
}
.task-field {
  display: flex;
  gap: 7px;
}
.task-field input {
  flex: 1;
  width: 100%;
  max-width: none;
  min-width: 0;
}
.task-field button {
  flex-shrink: 0;
}
@media (orientation: landscape) and (max-height: 800px) {
  .avatar-dialog {
    max-width: 580px;
  }
  .avatar-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }
  .avatar-choice {
    font-size: 20px;
    min-height: 30px;
  }
  .settings-modal .settings {
    padding: 10px;
  }
  .settings-inner {
    gap: 8px;
  }
}
.reward-earned {
  margin-top: 8px;
  padding: 9px;
  border-radius: 12px;
  background: #fff3c8;
  color: #78500b;
  text-align: center;
  font-weight: 900;
  font-size: 15px;
}
.reward-edit {
  margin-top: 9px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.reward-edit input {
  flex: 1;
  min-width: 160px;
  width: auto !important;
}
.reward-hint {
  font-size: 12px;
  color: #69758a;
}
.app-confirm {
  inset: 0;
  padding: 16px;
}
.app-confirm-card {
  padding: 24px;
}
.app-confirm-card h3 {
  margin: 0 0 10px;
}
.app-confirm-card .setting-row {
  margin-top: 16px;
}
@media (max-width: 900px) {
}
@media (max-width: 600px) {
}

/* Compact polished dashboard controls; keeps the iPad landscape checklist visible. */
.listbar {
  margin: 12px 0 0;
  flex-wrap: wrap;
}
.routine-picker {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px 5px 7px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 5px 18px #2c315011;
  border: 1px solid #e7e8f4;
  min-width: 0;
}
.routine-icon {
  display: grid;
  place-items: center;
  background: #fff5d8;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  font-size: 21px;
  flex-shrink: 0;
}
.listbar .routine-picker select {
  min-width: 0;
  width: auto;
  max-width: 290px;
  background: transparent;
  border: 0;
  padding: 6px 8px;
  color: #18204b;
  font-weight: 850;
  outline-offset: 3px;
}
.listbar #settingsBtn {
  border: 1px solid #eceefa;
  background: #f0f1fa;
  color: #53607d;
  border-radius: 22px;
  padding: 12px 19px;
  font-size: 16px;
  box-shadow: none;
}
.all-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 14px auto 5px;
  color: #697692;
  font-weight: 700;
  flex-wrap: wrap;
}
.team-icon {
  font-size: 22px;
  color: #6759db;
}
.team-title {
  font-weight: 850;
  color: #53607d;
}
.team-divider {
  height: 23px;
  width: 2px;
  background: #e0e4f0;
  margin: 0 7px;
}
.all-progress #progressCount {
  font-size: 21px;
  color: #1c2b4a;
  font-weight: 900;
}
.team-caption {
  white-space: nowrap;
}
.team-track {
  height: 13px;
  min-width: 100px;
  width: clamp(110px, 22vw, 290px);
  background: #e9ebf4;
  border-radius: 30px;
  overflow: hidden;
  margin-left: 10px;
}
.team-track > div {
  height: 100%;
  width: 0;
  background: #44c78c;
  border-radius: 30px;
  transition: width 0.3s;
}
@media (orientation: landscape) and (max-height: 850px) {
  .listbar {
    margin-top: 6px;
  }
  .routine-picker {
    padding: 2px 8px 2px 4px;
  }
  .routine-icon {
    width: 29px;
    height: 29px;
    font-size: 17px;
  }
  .listbar .routine-picker select {
    font-size: 15px;
    padding: 4px;
  }
  .listbar #settingsBtn {
    font-size: 14px;
    padding: 8px 12px;
  }
  .all-progress {
    margin: 6px auto 2px;
    font-size: 13px;
  }
  .all-progress #progressCount {
    font-size: 17px;
  }
  .team-track {
    height: 10px;
  }
}
@media (max-width: 600px) {
  .team-track {
    width: 100%;
    margin: 0 10px;
  }
  .team-divider {
    margin: 0 2px;
  }
  .all-progress {
    gap: 6px;
  }
}
.app-confirm {
  inset: 0;
  padding: 16px;
}
.app-confirm-card {
  padding: 24px;
}
.app-confirm-card h3 {
  margin: 0 0 10px;
}
.app-confirm-card .setting-row {
  margin-top: 16px;
}
@media (max-width: 900px) {
}
@media (max-width: 600px) {
}
.brand-header {
  padding: 2px 10px 0 !important;
  line-height: 0;
}
.brand-header h1 {
  margin: 0;
  line-height: 0;
}
.brand-logo {
  display: block;
  margin: 0 auto;
  width: 230px;
  height: 64px;
  max-width: 80vw;
}
@media (max-height: 740px) and (orientation: landscape) {
  .brand-logo {
    height: 45px;
    width: 170px;
  }
  .brand-header {
    padding: 0 8px !important;
  }
}
.timer-top {
  justify-content: center !important;
}
.timer .controls {
  flex: 0 1 auto !important;
}

/* Distinct mature visual language: neutral surfaces, restrained accent, compact line-style task symbols. */
body.theme-teen {
  color: #202a34 !important;
  font-family:
    -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif !important;
}
.theme-teen .wrap {
  max-width: 1460px;
}
.theme-teen .timer {
  background: #f9fafb !important;
  border: 2px solid #647784 !important;
  border-radius: 10px !important;
  box-shadow: none !important;
}
.theme-teen .timer.amber {
  border-color: #b28a50 !important;
}
.theme-teen .timer.red {
  border-color: #b65c5c !important;
}
.theme-teen .clock.green {
  color: #293d49 !important;
}
.theme-teen .clock.amber {
  color: #96713d !important;
}
.theme-teen .clock.red {
  color: #a34848 !important;
}
.theme-teen .timer .fill {
  background: #637d86 !important;
}
.theme-teen .timer.amber .fill {
  background: #b28a50 !important;
}
.theme-teen .timer.red .fill {
  background: #b65c5c !important;
}
.theme-teen .kid,
.theme-teen #teamTasksPanel {
  background: #fff !important;
  border: 1px solid #d7dfe5 !important;
  border-radius: 10px !important;
  box-shadow: 0 2px 8px #1d29350b !important;
}
.theme-teen .kid.done {
  outline: 2px solid #778f83 !important;
}
.theme-teen .kid h2 {
  font-size: 20px !important;
  letter-spacing: -0.3px;
  color: #243441;
}
.theme-teen .avatar-button {
  background: #f0f3f5 !important;
  border: 1px solid #d6dfe5 !important;
  border-radius: 10px !important;
}
.theme-teen .task {
  background: #f8f9fa !important;
  border: 1px solid #dfe4e8 !important;
  border-radius: 7px !important;
  color: #344451 !important;
  font-weight: 600 !important;
  min-height: 43px !important;
}
.theme-teen .task .emoji {
  font-family: Arial, sans-serif !important;
  color: #607582 !important;
  text-align: center;
  line-height: 1;
}
.theme-teen .task.checked {
  background: #edf3ef !important;
  border-color: #a7b9ae !important;
  color: #3e594b !important;
}
.theme-teen .task .check {
  border-radius: 5px !important;
  border-color: #a7b3bb !important;
}
.theme-teen .task.checked .check {
  background: #617e6d !important;
  border-color: #617e6d !important;
}
.theme-teen .kidprogress,
.theme-teen .track,
.theme-teen #teamFill {
  border-radius: 3px !important;
}
.theme-teen .kidprogress > div,
.theme-teen #teamFill {
  background: #637d86 !important;
}
.theme-teen .btn {
  background: #354a59 !important;
  color: white !important;
  border-radius: 7px !important;
  box-shadow: none !important;
  font-weight: 650 !important;
}
.theme-teen .btn.secondary {
  background: #e7ecef !important;
  color: #344754 !important;
}
.theme-teen .listbar select,
.theme-teen select,
.theme-teen input {
  border-radius: 7px !important;
}
.theme-teen .routine-selector,
.theme-teen .list-select-shell {
  border-radius: 10px !important;
}
.theme-teen .done-msg,
.theme-teen .reward-earned {
  color: #405c4e !important;
  background: #edf3ef !important;
  border-radius: 6px !important;
}
.theme-teen .settings {
  border-radius: 10px !important;
}
.theme-teen .toast {
  border-radius: 8px !important;
}
/* Other themes stay intentionally more expressive. */
.theme-stars .kid {
  border: 2px solid #f4cf9b;
  background: #fffdf8;
}
.theme-stars .task.checked {
  background: #fff0d5;
  border-color: #f2be72;
  color: #82531f;
}
.theme-stars .kidprogress > div {
  background: #f0a34b;
}
.theme-focus .task {
  border-radius: 10px;
  background: #f3f8f9;
}
.theme-focus .kidprogress > div {
  background: #4d8490;
}
@media (max-height: 740px) and (orientation: landscape) {
  .theme-teen .kid {
    padding: 10px !important;
  }
  .theme-teen .tasks {
    gap: 5px !important;
    margin-top: 7px !important;
  }
}

.brand-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 8px 14px;
  margin: 0 auto;
  line-height: 1;
}
.brand-footer h1 {
  margin: 0;
  line-height: 0;
}
.brand-footer .brand-logo {
  width: 165px;
  height: 42px;
  max-width: 55vw;
}
@media (orientation: landscape) and (max-height: 850px) {
  .brand-footer {
    padding: 3px 6px 5px;
  }
  .brand-footer .brand-logo {
    width: 115px;
    height: 29px;
  }
}

/* Brand palette: Kids = sunshine yellow; Big Kids = Tadoo green. */
body:not(.theme-stars):not(.theme-teen) {
  background: #fff9e6;
  color: #304039;
}
body:not(.theme-stars):not(.theme-teen) .timer {
  border-color: #f4c52d;
}
body:not(.theme-stars):not(.theme-teen) .btn:not(.secondary) {
  background: #e6b81b;
  color: #25382f;
  box-shadow: 0 4px 0 #c59b12;
}
body:not(.theme-stars):not(.theme-teen) .kidprogress > div,
body:not(.theme-stars):not(.theme-teen) #teamFill {
  background: #e4b51c;
}
body:not(.theme-stars):not(.theme-teen) .task.checked {
  background: #fff4c5 !important;
  border-color: #e8bf36;
  color: #685414;
}
body:not(.theme-stars):not(.theme-teen) .task.checked .check {
  background: #d8ac18;
  border-color: #d8ac18;
}
body:not(.theme-stars):not(.theme-teen) .dashboard-launch:hover,
body:not(.theme-stars):not(.theme-teen) .dashboard-launch:focus-visible {
  border-color: #e4b51c;
  box-shadow: 0 8px 25px #e4b51c33;
}

body.theme-stars {
  color: #19483d;
}
body.theme-stars .kidprogress > div,
body.theme-stars #teamFill {
  background: #16836a !important;
}
body.theme-stars .task.checked {
  background: #e4f5e9 !important;
  border-color: #71b99a;
  color: #165c49;
}
body.theme-stars .task.checked .check {
  background: #08735e;
  border-color: #08735e;
}
body.theme-stars .dashboard-launch:hover,
body.theme-stars .dashboard-launch:focus-visible {
  border-color: #08735e;
  box-shadow: 0 8px 25px #08735e33;
}

body.theme-stars #kids > .kid .task {
  background: #fff !important;
}

/* Keep every child panel white on the timer screen, across all themes. */
body:not(.dashboard-view) #kids > .kid {
  background: #fff !important;
}

.parent-help-row {
  text-align: center;
  margin: 10px 0 18px;
}
.parent-help-trigger {
  border: 0;
  background: transparent;
  color: #126f5a;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 750;
  padding: 10px 14px;
}
.parent-help-float {
  position: fixed;
  right: 16px;
  bottom: 18px;
  z-index: 39;
  border: 1px solid #bed9c9;
  border-radius: 999px;
  padding: 10px 15px;
  background: #fff;
  color: #135c4b;
  box-shadow: 0 4px 18px #153d3029;
  font-weight: 800;
}
body.dashboard-view .parent-help-float {
  display: none;
}
.parent-help-overlay[hidden] {
  display: none !important;
}
.parent-help-overlay {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: #142b2599;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px;
}
.parent-help-dialog {
  position: relative;
  background: #fff;
  color: #243b32;
  border-radius: 22px;
  width: min(100%, 720px);
  max-height: min(90dvh, 850px);
  overflow-y: auto;
  padding: clamp(22px, 4vw, 38px);
  box-shadow: 0 20px 70px #001a1440;
}
.parent-help-open {
  overflow: hidden;
}
.parent-help-eyebrow {
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #08735e;
}
.parent-help-dialog h2 {
  font-size: clamp(26px, 4vw, 34px);
  margin: 8px 42px 10px 0;
  color: #075d4c;
}
.parent-help-dialog p {
  line-height: 1.6;
  margin: 7px 0 12px;
}
.parent-help-close {
  position: absolute;
  top: 15px;
  right: 16px;
  border: 0;
  background: #eff5f1;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 19px;
}
.parent-help-steps {
  display: grid;
  gap: 17px;
  margin-top: 24px;
}
.parent-help-steps section {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  border-top: 1px solid #e6eee8;
  padding-top: 17px;
}
.parent-help-number {
  display: grid;
  place-items: center;
  background: #fff1bc;
  color: #51410d;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-weight: 900;
}
.parent-help-steps h3 {
  margin: 3px 0 7px;
  font-size: 18px;
  color: #155f4e;
}
.parent-help-meter {
  height: 13px;
  background: #e8efe9;
  border-radius: 99px;
  overflow: hidden;
  margin: 14px 0 5px;
}
.parent-help-meter span {
  display: block;
  height: 100%;
  background: linear-gradient(to right, #db5355 0%, #edaa35 45%, #2ca878 100%);
  border-radius: 99px;
}
.parent-help-meter-labels {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  font-size: 11px;
  color: #5b7167;
  font-weight: 750;
}
.parent-help-done {
  margin-top: 24px;
  width: 100%;
  background: #08735e;
  color: #fff;
  border: 0;
  border-radius: 13px;
  padding: 15px;
  font-weight: 850;
}
.parent-help-dialog button:focus-visible {
  outline: 3px solid #e5b71e;
  outline-offset: 3px;
}
@media (max-width: 650px) {
  .parent-help-float {
    bottom: 10px;
    right: 10px;
    padding: 9px 11px;
    font-size: 12px;
  }
  .parent-help-dialog {
    max-height: 94dvh;
    padding: 22px 18px;
  }
  .parent-help-steps section {
    gap: 9px;
  }
}

/* Contextual, unobtrusive help in the upper-right of each screen. */
.parent-help-header {
  position: absolute;
  right: 8px;
  top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: #366c5c;
  font-size: 13px;
  font-weight: 750;
  padding: 8px 10px;
  border-radius: 12px;
  z-index: 2;
}
.parent-help-mark {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 850;
}
.parent-help-header:hover,
.parent-help-timer:hover {
  background: #e7f3e9;
}
.parent-help-timer {
  border: 1.5px solid #6b8e80;
  background: #fff;
  color: #356e5b;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  font-size: 18px;
  font-weight: 800;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
@media (max-width: 650px) {
  .parent-help-header {
    right: 0;
    top: 0;
    padding: 7px;
  }
  .parent-help-header .parent-help-label {
    display: none;
  }
  .parent-help-timer {
    width: 32px;
    height: 32px;
  }
}

/* Neutral white child sections on the running Tadoo screen; keep task tiles and accents. */
body:not(.dashboard-view) #kids > .kid,
body.theme-stars:not(.dashboard-view) #kids > .kid,
body.theme-teen:not(.dashboard-view) #kids > .kid {
  background: #fff !important;
}

/* Left-align the dashboard wordmark and reduce its displayed size by 25%. */
body.dashboard-view .dashboard-logo-title {
  margin-left: 0 !important;
  margin-right: 0 !important;
}
body.dashboard-view .dashboard-logo-title img {
  margin-left: 0 !important;
  margin-right: auto !important;
}
@media (max-width: 600px) {
  body.dashboard-view .dashboard-logo-title img {
    width: min(75%, 255px) !important;
  }
}

/* Desktop dashboard: logo/help remain visible as the settings scroll. */
@media (min-width: 1100px) {
  body.dashboard-view .dashboard-heading {
    position: sticky !important;
    top: 0;
    z-index: 45;
    padding: 8px 12px !important;
    border-radius: 0 0 14px 14px;
  }
}
/* Three fixed-width card slots per row, with natural wrapping. */
body.dashboard-view .dashboard-tadoos {
  display: flex !important;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: flex-start;
}
body.dashboard-view .dashboard-launch {
  flex: 0 0 30%;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 9px;
}
body.dashboard-view .dashboard-launch-icon {
  display: block;
  text-align: center;
}
body.dashboard-view .dashboard-launch-name,
body.dashboard-view .dashboard-launch-hint {
  display: block;
  text-align: center;
}
@media (max-width: 700px) {
  body.dashboard-view .dashboard-launch {
    flex-basis: calc(50% - 8px);
  }
}
@media (max-width: 420px) {
  body.dashboard-view .dashboard-launch {
    flex-basis: 100%;
    max-width: 100%;
  }
}

/* iPad and desktop: show the three setup steps side by side, in order. */
@media (min-width: 701px) {
  body.dashboard-view .dashboard-settings .setup-step {
    min-width: 0;
    width: 100%;
    margin: 0;
  }
  body.dashboard-view .dashboard-settings .step-content {
    padding: 16px;
  }
  body.dashboard-view .dashboard-settings .setting-row {
    align-items: flex-start;
  }
  body.dashboard-view .dashboard-settings .setting-row input,
  body.dashboard-view .dashboard-settings .setting-row select {
    max-width: 100%;
  }
}
@media (max-width: 700px) {
}

/* Desktop and iPad: steps 1 and 2 share a row; step 3 spans the full row below. */
@media (min-width: 701px) {
  body.dashboard-view .dashboard-settings .settings-inner {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px;
    align-items: start;
  }
  body.dashboard-view
    .dashboard-settings
    .settings-inner
    > .setup-step:nth-child(3) {
    grid-column: 1 / -1;
  }
}

/* Keep the full viewport, footer and sticky dashboard header in the active theme colour. */
html {
  min-height: 100%;
  background: #fff9e6;
}
body {
  min-height: 100dvh;
  background: #fff9e6 !important;
}
html:has(body.theme-stars) {
  background: #edf8f0;
}
body.theme-stars {
  background: #edf8f0 !important;
}
html:has(body.theme-teen) {
  background: #e9edf1;
}
body.theme-teen {
  background: #e9edf1 !important;
}
@media (min-width: 1100px) {
  body.dashboard-view .dashboard-heading {
    background: #fff9e6 !important;
  }
  body.theme-stars.dashboard-view .dashboard-heading {
    background: #edf8f0 !important;
  }
  body.theme-teen.dashboard-view .dashboard-heading {
    background: #e9edf1 !important;
  }
}

/* Timer screen: quiet dashboard link and white child panels/task tiles. */
body:not(.dashboard-view) #dashboardBack,
body:not(.dashboard-view) #dashboardBack.btn.secondary {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  border-color: transparent !important;
  color: inherit !important;
}
body:not(.dashboard-view) #dashboardBack:hover,
body:not(.dashboard-view) #dashboardBack:focus-visible {
  text-decoration: none !important;
}
body:not(.dashboard-view) #kids > .kid,
body.theme-stars:not(.dashboard-view) #kids > .kid,
body.theme-teen:not(.dashboard-view) #kids > .kid {
  background: #fff !important;
  background-color: #fff !important;
}
body:not(.dashboard-view) #kids > .kid .task,
body.theme-stars:not(.dashboard-view) #kids > .kid .task,
body.theme-teen:not(.dashboard-view) #kids > .kid .task {
  background: #fff !important;
  background-color: #fff !important;
}

/* Secondary action directly below Child 1's task list. */
#copyPanel {
  margin: 12px 0 14px !important;
  padding: 9px 0 !important;
  border-top: 1px solid #e7ece9;
  gap: 7px !important;
  align-items: center !important;
}
#copyPanel label {
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #728078 !important;
}
#copyPanel select {
  font-size: 12px !important;
  padding: 5px 8px !important;
  border: 1px solid #d9e3de !important;
  border-radius: 8px !important;
  background: #fff !important;
  width: auto !important;
  max-width: 145px !important;
}
#copyPanel #copyTasks {
  font-size: 12px !important;
  font-weight: 650 !important;
  padding: 6px 10px !important;
  min-height: 0 !important;
  background: transparent !important;
  color: #467366 !important;
  border: 1px solid #d9e3de !important;
  box-shadow: none !important;
  border-radius: 8px !important;
}
#copyPanel #copyTasks:hover {
  background: #f0f7f3 !important;
}
#copyPanel[hidden] {
  display: none !important;
}

/* Keep both desktop setup control rows on one line without narrowing the cards. */
@media (min-width: 1200px) {
  body.dashboard-view
    .dashboard-settings
    .setup-step:nth-child(-n + 2)
    .step-content {
    padding: 14px 12px !important;
  }
  body.dashboard-view
    .dashboard-settings
    .setup-step:nth-child(-n + 2)
    .setting-row {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 6px !important;
    width: 100%;
    min-width: 0;
  }
  body.dashboard-view
    .dashboard-settings
    .setup-step:nth-child(-n + 2)
    .setting-row
    label {
    font-size: 12px !important;
    white-space: nowrap !important;
    flex-shrink: 0;
  }
  body.dashboard-view
    .dashboard-settings
    .setup-step:nth-child(-n + 2)
    .setting-row
    select,
  body.dashboard-view
    .dashboard-settings
    .setup-step:nth-child(-n + 2)
    .setting-row
    input {
    font-size: 12px !important;
    padding: 7px 5px !important;
    min-width: 0 !important;
    border-radius: 9px !important;
  }
  body.dashboard-view #editList {
    width: 135px !important;
    flex: 1 1 100px;
  }
  body.dashboard-view #tadooIconSelect {
    width: 135px !important;
    flex: 1 1 105px;
  }
  body.dashboard-view #addList,
  body.dashboard-view #renameList,
  body.dashboard-view #deleteList {
    padding: 7px 8px !important;
    font-size: 12px !important;
    white-space: nowrap !important;
    flex-shrink: 0;
  }
  body.dashboard-view #mode {
    width: 145px !important;
    flex: 1 1 125px;
  }
  body.dashboard-view #minutes {
    width: 54px !important;
  }
  body.dashboard-view #theme {
    width: 83px !important;
  }
  body.dashboard-view #count {
    width: 47px !important;
  }
  body.dashboard-view #leaveWrap,
  body.dashboard-view #durationWrap {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    white-space: nowrap;
  }
  body.dashboard-view #leaveWrap.hide,
  body.dashboard-view #durationWrap.hide {
    display: none !important;
  }
}

/* Double the selected Tadoo name size on the timer page. */
body:not(.dashboard-view) .listbar #activeList {
  font-size: 2em !important;
  font-weight: 800 !important;
  line-height: 1.15;
}
body:not(.dashboard-view) .listbar .routine-picker {
  max-width: 100%;
}

body.dashboard-view .new-tadoo-row {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 12px;
}
body.dashboard-view .tadoo-edit-row {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 6px !important;
  min-width: 0;
  width: 100%;
}
body.dashboard-view .tadoo-edit-row label {
  white-space: nowrap;
  flex: 0 0 auto;
  font-size: 12px;
}
body.dashboard-view .tadoo-edit-row #editList,
body.dashboard-view .tadoo-edit-row #tadooIconSelect {
  min-width: 0 !important;
  width: 0 !important;
  flex: 1 1 0 !important;
  max-width: none !important;
  font-size: 12px !important;
  padding: 7px 4px !important;
}
body.dashboard-view .tadoo-edit-row #renameList,
body.dashboard-view .tadoo-edit-row #deleteList {
  white-space: nowrap;
  flex: 0 0 auto;
  font-size: 12px !important;
  padding: 7px 8px !important;
}
@media (max-width: 440px) {
  body.dashboard-view .tadoo-edit-row {
    gap: 4px !important;
  }
  body.dashboard-view .tadoo-edit-row label {
    font-size: 11px;
  }
  body.dashboard-view .tadoo-edit-row #renameList,
  body.dashboard-view .tadoo-edit-row #deleteList {
    padding: 6px 5px !important;
    font-size: 11px !important;
  }
}

body.dashboard-view .timer-appearance-rows {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
body.dashboard-view .timer-appearance-rows .setting-row {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 12px !important;
  width: 100%;
  min-width: 0;
}
body.dashboard-view .timer-appearance-rows label {
  font-size: 16px !important;
  font-weight: 750 !important;
  white-space: nowrap;
}
body.dashboard-view .timer-appearance-rows select,
body.dashboard-view .timer-appearance-rows input {
  font-size: 16px !important;
  padding: 9px 10px !important;
  border-radius: 12px !important;
  min-width: 0;
}
body.dashboard-view .timer-appearance-rows #theme {
  width: 130px !important;
  flex: 0 1 130px !important;
}
body.dashboard-view .timer-appearance-rows #count {
  width: 76px !important;
  flex: 0 0 76px !important;
}
body.dashboard-view .timer-appearance-rows #mode {
  width: 205px !important;
  flex: 1 1 160px !important;
}
body.dashboard-view .timer-appearance-rows #minutes {
  width: 78px !important;
}
body.dashboard-view .timer-appearance-rows #leaveWrap,
body.dashboard-view .timer-appearance-rows #durationWrap {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
body.dashboard-view .timer-appearance-rows #leaveWrap.hide,
body.dashboard-view .timer-appearance-rows #durationWrap.hide {
  display: none !important;
}
@media (max-width: 550px) {
  body.dashboard-view .timer-appearance-rows .setting-row {
    gap: 7px !important;
  }
  body.dashboard-view .timer-appearance-rows label {
    font-size: 13px !important;
  }
  body.dashboard-view .timer-appearance-rows select,
  body.dashboard-view .timer-appearance-rows input {
    font-size: 13px !important;
    padding: 7px 5px !important;
  }
  body.dashboard-view .timer-appearance-rows #theme {
    width: 100px !important;
    flex: 0 1 100px !important;
  }
  body.dashboard-view .timer-appearance-rows #count {
    width: 57px !important;
    flex: 0 0 57px !important;
  }
  body.dashboard-view .timer-appearance-rows #mode {
    width: 145px !important;
    flex: 1 1 110px !important;
  }
  body.dashboard-view .timer-appearance-rows #minutes {
    width: 54px !important;
  }
}

/* Keep the native Tadoo picker operable and its dropdown arrow clearly visible. */
body:not(.dashboard-view) .listbar .routine-picker {
  position: relative;
  display: flex;
  align-items: center;
  overflow: visible;
}
body:not(.dashboard-view) .listbar #activeList {
  appearance: auto !important;
  -webkit-appearance: menulist !important;
  cursor: pointer !important;
  pointer-events: auto !important;
  padding-right: 30px !important;
  width: auto !important;
  max-width: min(75vw, 580px) !important;
}
body:not(.dashboard-view) .listbar #activeList:focus-visible {
  outline: 3px solid #16836a !important;
  outline-offset: 3px;
}

/* Two equal control groups within the available width of section 2. */
body.dashboard-view .timer-appearance-rows .appearance-countdown-row {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 12px !important;
  align-items: center !important;
  width: 100% !important;
  min-width: 0 !important;
}
body.dashboard-view .appearance-countdown-row > label[for="mode"] {
  flex: 0 0 auto !important;
}
body.dashboard-view .appearance-countdown-row > #mode {
  flex: 1 1 0 !important;
  width: 0 !important;
  min-width: 0 !important;
  max-width: none !important;
}
body.dashboard-view .appearance-countdown-row > #leaveWrap,
body.dashboard-view .appearance-countdown-row > #durationWrap {
  flex: 1 1 0 !important;
  width: 0 !important;
  min-width: 0 !important;
  display: flex;
  align-items: center !important;
  gap: 8px !important;
}
body.dashboard-view .appearance-countdown-row > #leaveWrap.hide,
body.dashboard-view .appearance-countdown-row > #durationWrap.hide {
  display: none !important;
}
body.dashboard-view .appearance-countdown-row #leaveTime,
body.dashboard-view .appearance-countdown-row #minutes {
  flex: 1 1 0 !important;
  width: 0 !important;
  min-width: 0 !important;
  max-width: none !important;
}
@media (max-width: 550px) {
  body.dashboard-view .timer-appearance-rows .appearance-countdown-row {
    gap: 6px !important;
  }
  body.dashboard-view .appearance-countdown-row > #leaveWrap,
  body.dashboard-view .appearance-countdown-row > #durationWrap {
    gap: 4px !important;
  }
}

body.dashboard-view .tadoo-icon-picker {
  position: relative;
  flex: 0 0 auto;
  min-width: 0;
}
body.dashboard-view .tadoo-icon-picker #tadooIconSelect {
  display: none !important;
}
body.dashboard-view .tadoo-icon-button {
  font-size: 23px !important;
  min-width: 56px;
  min-height: 42px;
  border: 1px solid #ccd5e2;
  border-radius: 10px;
  background: white;
  cursor: pointer;
}
body.dashboard-view .tadoo-icon-grid {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 200;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
  padding: 10px;
  width: 260px;
  max-width: min(85vw, 320px);
  max-height: 280px;
  overflow-y: auto;
  background: white;
  border: 1px solid #ccd5e2;
  border-radius: 12px;
  box-shadow: 0 10px 25px #0002;
}
body.dashboard-view .tadoo-icon-grid[hidden] {
  display: none !important;
}
body.dashboard-view .tadoo-icon-option {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border: 1px solid transparent;
  border-radius: 9px;
  background: #f5f7fa;
  font-size: 25px;
  cursor: pointer;
  padding: 0;
}
body.dashboard-view .tadoo-icon-option:hover,
body.dashboard-view .tadoo-icon-option:focus-visible {
  background: #e5f3ec;
  border-color: #69ae85;
}
body.dashboard-view .tadoo-icon-option[aria-pressed="true"] {
  background: #e5f3ec;
  border: 2px solid #16836a;
}

/* The setup accordion was clipping the icon grid and covering it with the next card. */
body.dashboard-view
  .dashboard-settings
  .setup-step:has(.tadoo-icon-grid:not([hidden])) {
  overflow: visible !important;
  position: relative;
  z-index: 100 !important;
}
body.dashboard-view
  .dashboard-settings
  .setup-step:has(.tadoo-icon-grid:not([hidden]))
  .step-content {
  overflow: visible !important;
}
body.dashboard-view
  .dashboard-settings
  .tadoo-icon-picker:has(.tadoo-icon-grid:not([hidden])) {
  z-index: 101 !important;
}

body:not(.dashboard-view) #dashboardBack.timer-dashboard-link {
  appearance: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: inherit !important;
  font: inherit !important;
  font-size: 14px !important;
  font-weight: 650 !important;
  padding: 7px 3px !important;
  border-radius: 5px !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  line-height: 1.2 !important;
}
body:not(.dashboard-view) #dashboardBack.timer-dashboard-link span {
  font-size: 19px;
  line-height: 1;
}
body:not(.dashboard-view) #dashboardBack.timer-dashboard-link:hover {
  text-decoration: none !important;
}
body:not(.dashboard-view)
  #dashboardBack.timer-dashboard-link:hover
  .dashboard-link-label {
  text-decoration: underline;
}
body:not(.dashboard-view) #dashboardBack.timer-dashboard-link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

/* Kids: a single task stays the same size as a tile in a three-column row. */
@media (min-width: 701px) {
  body:not(.theme-stars):not(.theme-teen) .kid .tasks,
  body:not(.theme-stars):not(.theme-teen) #sharedTasks {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

/* Match the Children and tasks editor cards to the selected age-group palette. */
body.dashboard-view:not(.theme-stars):not(.theme-teen)
  #kidSettings
  .kid-setting,
body.dashboard-view:not(.theme-stars):not(.theme-teen) .team-editor {
  background: #fff5cf !important;
  border: 1px solid #f2dda0 !important;
}
body.dashboard-view.theme-stars #kidSettings .kid-setting,
body.dashboard-view.theme-stars .team-editor {
  background: #e5f5e9 !important;
  border: 1px solid #b9dfc8 !important;
}
body.dashboard-view.theme-teen #kidSettings .kid-setting,
body.dashboard-view.theme-teen .team-editor {
  background: #e9edf1 !important;
  border: 1px solid #cbd3dc !important;
}

/* Breathing room above the timer; the exposed area inherits the active age-group page colour. */
body:not(.dashboard-view):not(.landing-view) .wrap > #timerBox {
  margin-top: 24px !important;
}
@media (max-width: 600px) {
  body:not(.dashboard-view):not(.landing-view) .wrap > #timerBox {
    margin-top: 18px !important;
  }
}

#tadooLanding .landing-demo {
  margin: 45px auto 0;
  background: #fff;
  border: 2px solid #e5ebdd;
  border-radius: 26px;
  padding: 21px 22px 18px;
  box-shadow: 0 18px 40px #716b4d1b;
  text-align: left;
}
#tadooLanding .landing-demo-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 17px;
}
#tadooLanding .landing-demo-title {
  font-size: 17px;
  font-weight: 900;
}
#tadooLanding .landing-demo-sub {
  font-size: 12px;
  color: #63736e;
  font-weight: 800;
}
#tadooLanding .landing-demo-progress {
  height: 9px;
  border-radius: 20px;
  background: #e6eee9;
  overflow: hidden;
  margin-bottom: 17px;
}
#tadooLanding .landing-demo-progress-fill {
  height: 100%;
  width: 0;
  background: #035046;
  border-radius: 20px;
  transition: width 0.65s ease;
}
#tadooLanding .landing-demo-task {
  display: flex;
  align-items: center;
  gap: 13px;
  background: #f6faf6;
  border: 1px solid #e5eee6;
  border-radius: 14px;
  padding: 12px 14px;
  margin-top: 9px;
  transition:
    background 0.3s,
    transform 0.3s;
}
#tadooLanding .landing-demo-task.done {
  background: #e7f6eb;
}
#tadooLanding .landing-demo-emoji {
  font-size: 24px;
  width: 30px;
  text-align: center;
}
#tadooLanding .landing-demo-label {
  font-size: 15px;
  font-weight: 900;
  flex: 1;
}
#tadooLanding .landing-demo-check {
  width: 27px;
  height: 27px;
  border: 2px solid #b9cec3;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: transparent;
  font-size: 17px;
  font-weight: 900;
  transition:
    background 0.25s,
    transform 0.25s;
}
#tadooLanding .landing-demo-task.done .landing-demo-check {
  background: #035046;
  border-color: #035046;
  color: #fff;
  transform: scale(1.07);
}
#tadooLanding .landing-demo-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 15px;
  gap: 10px;
}
#tadooLanding .landing-demo-celebrate {
  font-weight: 900;
  color: #035046;
  font-size: 13px;
  opacity: 0;
  transform: translateY(5px);
  transition:
    opacity 0.4s,
    transform 0.4s;
}
#tadooLanding .landing-demo-celebrate.visible {
  opacity: 1;
  transform: translateY(0);
}
#tadooLanding .landing-demo-replay {
  border: 0;
  background: transparent;
  color: #426e61;
  font:
    800 12px ui-rounded,
    system-ui,
    sans-serif;
  text-decoration: underline;
  cursor: pointer;
  padding: 7px;
}
#tadooLanding .landing-demo-replay:focus-visible {
  outline: 3px solid #d18e16;
  outline-offset: 4px;
}
@media (max-width: 520px) {
  #tadooLanding .landing-demo {
    margin-top: 34px;
    padding: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  #tadooLanding .landing-demo * {
    transition: none !important;
  }
}

#tadooLanding .landing-main {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(26px, 5vw, 70px);
  margin: clamp(45px, 7vh, 85px) auto 0;
  text-align: left;
}
#tadooLanding .landing-copy {
  min-width: 0;
}
#tadooLanding .landing-copy h2 {
  font-size: clamp(37px, 4.4vw, 62px);
  margin: 0 0 22px;
  max-width: 590px;
}
#tadooLanding .landing-copy .landing-description {
  margin: 0 0 30px;
  max-width: 510px;
}
#tadooLanding .landing-demo {
  width: 100%;
  margin: 0;
}
#tadooLanding .landing-demo-foot {
  min-height: 28px;
}
@media (max-width: 760px) {
  #tadooLanding .landing-main {
    grid-template-columns: 1fr;
    gap: 34px;
    text-align: center;
    margin-top: 35px;
  }
  #tadooLanding .landing-copy h2 {
    margin: 0 auto 20px;
  }
  #tadooLanding .landing-copy .landing-description {
    margin: 0 auto 28px;
  }
  #tadooLanding .landing-demo {
    max-width: 440px;
    margin: 0 auto;
  }
}

body.landing-view,
html:has(body.landing-view) {
  background: #fff8e8 !important;
}
body.landing-view .wrap {
  max-width: none !important;
  padding: 0 !important;
}
body.landing-view .wrap > :not(#tadooLanding) {
  display: none !important;
}
#tadooLanding {
  display: none;
}
body.landing-view #tadooLanding {
  display: block;
}
#tadooLanding {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  overflow: hidden;
  padding: 28px clamp(22px, 5vw, 80px) 60px;
  color: #132542;
  font-family: Nunito, ui-rounded, system-ui, sans-serif;
  text-align: center;
}
#tadooLanding * {
  box-sizing: border-box;
}
#tadooLanding .landing-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  position: relative;
  z-index: 1;
}
#tadooLanding .landing-logo {
  width: clamp(220px, 28vw, 320px);
  max-width: 100%;
  height: auto;
  display: block;
}
#tadooLanding .landing-main {
  max-width: 1050px;
  margin: clamp(55px, 8vh, 100px) auto 0;
  position: relative;
  z-index: 1;
}
#tadooLanding .landing-eyebrow {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
}
#tadooLanding h2 {
  font-size: clamp(40px, 5vw, 76px);
  line-height: 1.09;
  letter-spacing: -2px;
  margin: 22px auto;
  max-width: 850px;
}
#tadooLanding h2 em {
  font-style: normal;
  color: #035046;
}
#tadooLanding .landing-description {
  max-width: 650px;
  margin: 0 auto 29px;
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.6;
}
#tadooLanding .landing-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  border-radius: 100px;
  background: #035046;
  color: white;
  padding: 17px 31px;
  font-size: 18px;
  font-weight: 900;
  box-shadow: 0 7px 0 #023a34;
  cursor: pointer;
  transition: transform 0.2s;
}
#tadooLanding .landing-cta:hover {
  transform: translateY(-3px);
}
#tadooLanding .landing-cta:focus-visible {
  outline: 3px solid #132542;
  outline-offset: 5px;
}
#tadooLanding .landing-blob {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: #ffe3a0;
  z-index: 0;
  top: 100px;
  right: -130px;
}
#tadooLanding .landing-blob.two {
  background: #d5f4ed;
  left: -160px;
  top: 390px;
}
@media (max-width: 800px) {
  #tadooLanding {
    padding: 22px 20px 40px;
  }
  #tadooLanding h2 {
    letter-spacing: -1px;
  }
}

/* Compact square Tadoo cards, retaining responsive wrapping. */
body.dashboard-view .dashboard-launch {
  flex: 0 0 calc((100% - 64px) / 6) !important;
  max-width: calc((100% - 64px) / 6) !important;
  aspect-ratio: 1/1 !important;
  min-width: 0 !important;
  padding: 12px 7px !important;
}
@media (max-width: 900px) {
  body.dashboard-view .dashboard-launch {
    flex-basis: calc((100% - 48px) / 4) !important;
    max-width: calc((100% - 48px) / 4) !important;
  }
}
@media (max-width: 600px) {
  body.dashboard-view .dashboard-launch {
    flex-basis: calc((100% - 32px) / 3) !important;
  }
}
@media (max-width: 390px) {
  body.dashboard-view .dashboard-launch {
    flex-basis: calc((100% - 16px) / 2) !important;
  }
}

body:not(.dashboard-view):not(.landing-view) #timerBox .timer-top {
  position: relative !important;
}
#timerBox .current-time-display {
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 3px;
  color: inherit;
  opacity: 0.42;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}
#timerBox .current-time-display[hidden] {
  display: none !important;
}
#timerBox .current-time-caption {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.02em;
}
#timerBox #currentTimeValue {
  font-size: clamp(13px, 1.65vw, 20px);
  font-weight: 750;
  white-space: nowrap;
}
@media (max-width: 600px) {
  #timerBox .current-time-display {
    left: 4px;
    top: 6px;
    transform: none;
  }
  #timerBox .current-time-caption {
    font-size: 9px;
  }
  #timerBox #currentTimeValue {
    font-size: 12px;
  }
  #timerBox .timer-top {
    padding-top: 26px;
  }
}

#timerBox {
  position: relative !important;
}
#timerBox .current-time-display {
  position: absolute !important;
  left: auto !important;
  right: 14px !important;
  top: auto !important;
  bottom: 8px !important;
  transform: none !important;
  align-items: flex-end !important;
  text-align: right !important;
  z-index: 2;
}
@media (max-width: 600px) {
  #timerBox .current-time-display {
    left: auto !important;
    right: 9px !important;
    top: auto !important;
    bottom: 6px !important;
    transform: none !important;
  }
  #timerBox .timer-top {
    padding-top: 0 !important;
  }
}

/* Match the exposed space above the timer to the active age-group theme. */
html:has(
  body:not(.dashboard-view):not(.landing-view):not(.theme-stars):not(
      .theme-teen
    )
) {
  background: #fff9e6 !important;
}
html:has(body.theme-stars:not(.dashboard-view):not(.landing-view)) {
  background: #edf8f0 !important;
}
html:has(body.theme-teen:not(.dashboard-view):not(.landing-view)) {
  background: #e9edf1 !important;
}
body:not(.dashboard-view):not(.landing-view):not(.theme-stars):not(.theme-teen),
body:not(.dashboard-view):not(.landing-view):not(.theme-stars):not(.theme-teen)
  > .wrap {
  background: #fff9e6 !important;
}
body.theme-stars:not(.dashboard-view):not(.landing-view),
body.theme-stars:not(.dashboard-view):not(.landing-view) > .wrap {
  background: #edf8f0 !important;
}
body.theme-teen:not(.dashboard-view):not(.landing-view),
body.theme-teen:not(.dashboard-view):not(.landing-view) > .wrap {
  background: #e9edf1 !important;
}

#mobileChildTabs {
  display: none;
}
@media (max-width: 700px) {
  body:not(.dashboard-view):not(.landing-view) #mobileChildTabs {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 10px 5px 12px;
    margin-top: 8px;
    justify-content: safe center;
    scroll-snap-type: x proximity;
  }
  #mobileChildTabs::-webkit-scrollbar {
    display: none;
  }
  #mobileChildTabs .mobile-child-tab {
    flex: 0 0 auto;
    min-width: 72px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: transparent;
    border: 0;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    padding: 4px 8px 9px;
    color: inherit;
    opacity: 0.7;
    scroll-snap-align: center;
  }
  #mobileChildTabs .mobile-child-tab[aria-selected="true"] {
    border-bottom-color: #08735e;
    opacity: 1;
    font-weight: 900;
  }
  #mobileChildTabs .mobile-child-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #c8e4d5;
    display: grid;
    place-items: center;
    font-size: 25px;
    overflow: hidden;
  }
  #mobileChildTabs .mobile-child-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  #mobileChildTabs .mobile-child-name {
    font-size: 12px;
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  body:not(.dashboard-view):not(.landing-view) #kids {
    display: flex !important;
    gap: 0 !important;
    overflow-x: auto !important;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
    align-items: stretch;
  }
  #kids::-webkit-scrollbar {
    display: none;
  }
  body:not(.dashboard-view):not(.landing-view) #kids > .kid {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }
  body:not(.dashboard-view):not(.landing-view) #kids > .kid .task {
    font-size: clamp(14px, 3.8vw, 18px);
    min-height: 55px;
  }
}

#timerStickyHeader {
  display: none;
}
body:not(.dashboard-view):not(.landing-view) #timerStickyHeader {
  display: flex;
  top: 0;
  z-index: 40;
  align-items: center;
  justify-content: center;
  height: 66px;
  padding: 5px 12px;
  background: #fff9e6;
  border-bottom: 1px solid #e9dcae;
}
body.theme-stars:not(.dashboard-view):not(.landing-view) #timerStickyHeader {
  background: #edf8f0;
  border-bottom-color: #c9e6d6;
}
body.theme-teen:not(.dashboard-view):not(.landing-view) #timerStickyHeader {
  background: #e9edf1;
  border-bottom-color: #cbd3dc;
}
#timerStickyHeader img {
  height: 52px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
  display: block;
}
body:not(.dashboard-view):not(.landing-view) .wrap > #timerBox {
  margin-top: 12px !important;
}
@media (max-width: 600px) {
  body:not(.dashboard-view):not(.landing-view) #timerStickyHeader {
    height: 54px;
    padding: 3px 10px;
  }
  #timerStickyHeader img {
    height: 44px;
    max-width: 140px;
  }
  body:not(.dashboard-view):not(.landing-view) .wrap > #timerBox {
    margin-top: 9px !important;
  }
}

/* Match the Timer Page's compact sticky branding on the Dashboard. */
body.dashboard-view .dashboard-heading {
  position: sticky !important;
  top: 0 !important;
  z-index: 45 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 5px 12px !important;
  margin: 0 !important;
  background: #fff9e6 !important;
  border-bottom: 1px solid #e9dcae !important;
  border-radius: 0 !important;
}
body.dashboard-view.theme-stars .dashboard-heading {
  background: #edf8f0 !important;
  border-bottom-color: #c9e6d6 !important;
}
body.dashboard-view.theme-teen .dashboard-heading {
  background: #e9edf1 !important;
  border-bottom-color: #cbd3dc !important;
}
body.dashboard-view .dashboard-logo-title {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 0 !important;
}
body.dashboard-view .dashboard-logo-title img {
  margin: 0 !important;
}
body.dashboard-view .dashboard-heading .parent-help-header {
  top: 50% !important;
  transform: translateY(-50%) !important;
  right: 8px !important;
}
@media (max-width: 600px) {
  body.dashboard-view .dashboard-heading {
    padding: 3px 10px !important;
  }
}

/* On mobile, keep the timer directly beneath the sticky Tadoo brand header while tasks scroll. */
@media (max-width: 600px) {
  body:not(.dashboard-view):not(.landing-view) .wrap > #timerBox {
    position: sticky !important;
    top: 54px !important;
    z-index: 39 !important;
    margin-top: 9px !important;
    margin-bottom: 10px !important;
    box-shadow: 0 8px 18px rgba(20, 45, 40, 0.1) !important;
  }
}

/* Give the first row of Tadoo tiles breathing room below the sticky header. */
body.dashboard-view #dashboardTadoos {
  margin-top: 20px !important;
}
@media (max-width: 600px) {
  body.dashboard-view #dashboardTadoos {
    margin-top: 16px !important;
  }
}

@media (max-width: 600px) {
  /* Increase the logo 20% without making the narrow header taller. */
  body:not(.landing-view) #timerStickyHeader img {
    height: 52.8px !important;
    max-width: 168px !important;
  }
  /* Completion and progress notifications must overlay the sticky timer. */
  body .toast {
    z-index: 250 !important;
    top: calc(env(safe-area-inset-top, 0px) + 12px) !important;
  }
  body .toast.show {
    transform: translateX(-50%) translateY(0) !important;
  }
  body .confetti {
    z-index: 249 !important;
  }
}

/* Halve the vertical gap between the landing logo and introductory content. */
#tadooLanding .landing-main {
  margin-top: clamp(22.5px, 3.5vh, 42.5px) !important;
}
@media (max-width: 760px) {
  #tadooLanding .landing-main {
    margin-top: 17.5px !important;
  }
}

@media (max-width: 600px) {
  body.dashboard-view .timer-appearance-rows .appearance-countdown-row {
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    gap: 9px 10px !important;
  }
  body.dashboard-view .appearance-countdown-row > label[for="mode"] {
    flex: 0 0 auto !important;
  }
  body.dashboard-view .appearance-countdown-row > #mode {
    flex: 1 1 180px !important;
    width: auto !important;
    min-width: 170px !important;
    max-width: 100% !important;
  }
  body.dashboard-view .appearance-countdown-row > #leaveWrap,
  body.dashboard-view .appearance-countdown-row > #durationWrap {
    flex: 1 1 100% !important;
    width: 100% !important;
    min-width: 0 !important;
    gap: 10px !important;
  }
  body.dashboard-view .appearance-countdown-row #leaveTime,
  body.dashboard-view .appearance-countdown-row #minutes {
    flex: 0 1 auto !important;
    width: auto !important;
    min-width: 90px !important;
  }
}

@media (max-width: 760px) {
  #tadooLanding {
    padding-top: 14px !important;
  }
}

.install-tadoo-banner[hidden],
#installTadooButton[hidden] {
  display: none !important;
}
body.dashboard-view .install-tadoo-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 16px 0 10px;
  padding: 13px 15px;
  border: 1px solid #b7ddc7;
  background: #f1fff5;
  border-radius: 14px;
  color: #174f40;
  box-shadow: 0 4px 16px #173d2d10;
}
.install-tadoo-copy {
  min-width: 0;
}
.install-tadoo-copy strong {
  font-size: 15px;
}
.install-tadoo-copy p {
  font-size: 13px;
  line-height: 1.45;
  margin: 4px 0 0;
}
.install-tadoo-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
.install-tadoo-dismiss {
  border: 0;
  background: transparent;
  color: #44675d;
  font-size: 18px;
  padding: 8px;
  cursor: pointer;
}
@media (max-width: 600px) {
  body.dashboard-view .install-tadoo-banner {
    margin: 12px 0 10px;
    align-items: flex-start;
    padding: 12px;
    gap: 6px;
  }
  .install-tadoo-actions {
    align-self: center;
  }
  .install-tadoo-copy strong {
    font-size: 14px;
  }
  .install-tadoo-copy p {
    font-size: 12px;
  }
  body.dashboard-view #dashboardTadoos {
    margin-top: 16px !important;
  }
}

body.dashboard-view .dashboard-avatar-edit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #cbded5;
  border-radius: 12px;
  padding: 5px 10px 5px 5px;
  background: #fff;
  color: #195747;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  min-height: 43px;
}
body.dashboard-view .dashboard-avatar-edit:hover {
  background: #effaf2;
  border-color: #61ae8c;
}
body.dashboard-view .dashboard-avatar-edit:focus-visible {
  outline: 3px solid #1e9571;
  outline-offset: 2px;
}
.dashboard-avatar-preview {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f2f8f4;
  display: grid;
  place-items: center;
  font-size: 24px;
  overflow: hidden;
  flex: 0 0 34px;
}
.dashboard-avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 600px) {
  body.dashboard-view .dashboard-avatar-edit {
    max-width: 100%;
    font-size: 12px;
  }
}

/* Keep individual child and shared-task progress; remove only the aggregate team progress panel. */
#overall {
  display: none !important;
}
/* Desktop: keep the countdown visible directly below the sticky Tadoo logo. */
@media (min-width: 601px) {
  body:not(.dashboard-view):not(.landing-view) .wrap > #timerBox {
    position: sticky !important;
    top: 66px !important;
    z-index: 39 !important;
    margin-top: 12px !important;
    margin-bottom: 12px !important;
    box-shadow: 0 8px 18px rgba(20, 45, 40, 0.1) !important;
  }
}

/* Give the icon chooser room to open beyond the setup card, and keep it inside the viewport. */
@media (min-width: 761px) {
  body.dashboard-view .dashboard-settings,
  body.dashboard-view .dashboard-settings .settings,
  body.dashboard-view .dashboard-settings .settings-inner,
  body.dashboard-view .dashboard-settings .setup-step,
  body.dashboard-view .dashboard-settings .step-content {
    overflow: visible !important;
  }
  body.dashboard-view .tadoo-icon-picker {
    position: relative !important;
  }
  body.dashboard-view .tadoo-icon-grid {
    left: 0 !important;
    right: auto !important;
    max-height: min(360px, 65vh) !important;
    overflow-y: auto !important;
    z-index: 500 !important;
  }
  body.dashboard-view
    .dashboard-settings
    .setup-step:has(.tadoo-icon-grid:not([hidden])) {
    z-index: 501 !important;
  }
}
/* Increase the sticky header logos by 25%, on desktop and mobile. */
body:not(.dashboard-view):not(.landing-view) #timerStickyHeader img {
  height: 65px !important;
  max-width: 213px !important;
}
body.dashboard-view .dashboard-heading,
body:not(.dashboard-view):not(.landing-view) #timerStickyHeader {
  height: 82px !important;
  min-height: 82px !important;
}
@media (min-width: 601px) {
  body:not(.dashboard-view):not(.landing-view) .wrap > #timerBox {
    top: 82px !important;
  }
}
@media (max-width: 600px) {
  body:not(.dashboard-view):not(.landing-view) #timerStickyHeader img {
    height: 66px !important;
    max-width: 210px !important;
  }
  body.dashboard-view .dashboard-heading,
  body:not(.dashboard-view):not(.landing-view) #timerStickyHeader {
    height: 68px !important;
    min-height: 68px !important;
  }
  body:not(.dashboard-view):not(.landing-view) .wrap > #timerBox {
    top: 68px !important;
  }
}
/* A clearly clickable back control in the left of the sticky header. */
body:not(.dashboard-view):not(.landing-view) #timerStickyHeader {
  position: sticky !important;
}
.timer-header-back {
  position: absolute;
  left: clamp(8px, 2vw, 18px);
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px 7px 7px;
  border: 1px solid #c8dfd1;
  border-radius: 999px;
  background: #ffffffed;
  color: #195e4d;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 2px 7px #123b2815;
  z-index: 2;
}
.timer-header-back:hover {
  background: #e5f6ec;
  border-color: #77b897;
}
.timer-header-back:focus-visible {
  outline: 3px solid #197d60;
  outline-offset: 2px;
}
.timer-back-icon {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #d9f1e3;
  font-size: 21px;
  line-height: 1;
}
body:not(.dashboard-view):not(.landing-view) .listbar #dashboardBack {
  display: none !important;
}
@media (max-width: 600px) {
  .timer-header-back {
    padding: 5px;
    left: 8px;
  }
  .timer-back-icon {
    width: 31px;
    height: 31px;
  }
  .timer-back-label {
    display: none;
  }
}
/* The outer border and inner face share a single radius: no mismatched white corner crescents. */
body:not(.dashboard-view):not(.landing-view) #timerBox {
  border-radius: 30px !important;
  background-clip: border-box !important;
  overflow: hidden !important;
}

/* Keep every preset title and hint inside its square tile on small screens. */
@media (max-width: 600px) {
  body.dashboard-view .dashboard-tadoos {
    gap: 10px !important;
  }
  body.dashboard-view .dashboard-launch {
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 4px !important;
    padding: 9px 5px !important;
    min-height: 0 !important;
    overflow: hidden !important;
    text-align: center !important;
    flex-basis: calc((100% - 20px) / 3) !important;
    max-width: calc((100% - 20px) / 3) !important;
  }
  body.dashboard-view .dashboard-launch-icon {
    font-size: clamp(25px, 7vw, 36px) !important;
    line-height: 1.15 !important;
    flex: 0 0 auto !important;
  }
  body.dashboard-view .dashboard-launch > span:last-child {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 2px !important;
    width: 100% !important;
    min-width: 0 !important;
  }
  body.dashboard-view .dashboard-launch-name {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    font-size: clamp(11px, 3.1vw, 15px) !important;
    line-height: 1.15 !important;
    font-weight: 850 !important;
    letter-spacing: -0.3px !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
    hyphens: auto !important;
  }
  body.dashboard-view .dashboard-launch-hint {
    display: block !important;
    margin: 2px 0 0 !important;
    font-size: clamp(9px, 2.45vw, 11px) !important;
    line-height: 1.15 !important;
    white-space: normal !important;
    overflow-wrap: normal !important;
  }
}
@media (max-width: 390px) {
  body.dashboard-view .dashboard-launch {
    flex-basis: calc((100% - 10px) / 2) !important;
    max-width: calc((100% - 10px) / 2) !important;
  }
  body.dashboard-view .dashboard-launch-name {
    font-size: clamp(12px, 3.6vw, 15px) !important;
  }
}

body.dashboard-view .task-order-controls {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  flex: 0 0 auto;
}
body.dashboard-view .task-order-button {
  display: grid;
  place-items: center;
  width: 29px;
  height: 24px;
  padding: 0;
  border: 1px solid #bfd8ce;
  border-radius: 6px;
  background: #eef8f2;
  color: #17634d;
  font-size: 17px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}
body.dashboard-view .task-order-button:hover:not(:disabled) {
  background: #d5f0df;
}
body.dashboard-view .task-order-button:disabled {
  opacity: 0.3;
  cursor: default;
}
body.dashboard-view .task-order-button:focus-visible {
  outline: 2px solid #138e68;
  outline-offset: 1px;
}
body.dashboard-view .task-field {
  min-width: 0;
}
body.dashboard-view .task-field input {
  min-width: 0;
  flex: 1 1 0;
}
@media (max-width: 600px) {
  body.dashboard-view .task-order-button {
    width: 31px;
    height: 25px;
  }
}

/* Dashboard header dimensions follow the Timer Page header at every viewport. */
body.dashboard-view .dashboard-heading {
  box-sizing: border-box !important;
  height: 82px !important;
  min-height: 82px !important;
  max-height: 82px !important;
  padding: 5px 12px !important;
  margin: 0 !important;
}
body.dashboard-view .dashboard-logo-title img {
  box-sizing: border-box !important;
  height: 65px !important;
  max-height: 65px !important;
  max-width: 213px !important;
  width: auto !important;
  object-fit: contain !important;
}
@media (max-width: 600px) {
  body.dashboard-view .dashboard-heading {
    height: 68px !important;
    min-height: 68px !important;
    max-height: 68px !important;
    padding: 3px 10px !important;
  }
  body.dashboard-view .dashboard-logo-title img {
    height: 66px !important;
    max-height: 66px !important;
    max-width: 210px !important;
  }
}

body.dashboard-view .task-drag-handle {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 40px;
  border: 1px solid #c3d9d0;
  border-radius: 9px;
  background: #f0f8f3;
  color: #27674f;
  font-size: 27px;
  line-height: 1;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
body.dashboard-view .task-drag-handle:active {
  cursor: grabbing;
}
body.dashboard-view .task-drag-handle:focus-visible {
  outline: 3px solid #1a8b6a;
  outline-offset: 2px;
}
body.dashboard-view .task-field.task-drag-active {
  position: relative;
  z-index: 3;
  background: #e4f7eb !important;
  border-radius: 10px;
  box-shadow: 0 5px 16px #1a684a25;
}
body.dashboard-view .task-field {
  transition: background 0.12s;
}

/* Shared hierarchy and predictable controls, preserving the existing themes. */
body.dashboard-view .dashboard-settings .settings-heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}
body.dashboard-view .dashboard-settings .settings-heading h2 {
  font-size: clamp(20px, 2.3vw, 27px) !important;
  text-align: left !important;
  margin: 0 !important;
}
body.dashboard-view .setup-intro {
  margin: 0;
  color: #64756d;
  font-size: 14px;
  line-height: 1.5;
}
body.dashboard-view .dashboard-launch {
  position: relative !important;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    border-color 0.16s ease !important;
}
body.dashboard-view .dashboard-launch:hover {
  transform: translateY(-2px);
}
body.dashboard-view .dashboard-launch:focus-visible,
body.dashboard-view .setup-step summary:focus-visible {
  outline: 3px solid #168a6d;
  outline-offset: 3px;
}
body.dashboard-view .dashboard-launch-hint {
  font-size: 12px !important;
  line-height: 1 !important;
  margin-top: 4px !important;
  color: #1c7959 !important;
  font-weight: 800 !important;
}
body.dashboard-view .dashboard-settings .setup-step {
  scroll-margin-top: 96px;
}
body.dashboard-view .dashboard-settings .setup-step summary {
  cursor: pointer;
}
body.dashboard-view .dashboard-settings input,
body.dashboard-view .dashboard-settings select,
body.dashboard-view .dashboard-settings button {
  min-height: 40px;
}
body.dashboard-view .task-drag-handle {
  min-height: 44px !important;
  touch-action: none;
}
body.dashboard-view .task-drag-active {
  outline: 2px dashed #21946b;
}
body.dashboard-view .setup-next[hidden] {
  display: none !important;
}
body:not(.dashboard-view):not(.landing-view)
  #mobileChildTabs
  .mobile-child-tab[aria-selected="true"] {
  box-shadow: inset 0 -3px #138663 !important;
}
.child-swipe-hint {
  display: none;
  text-align: center;
  font-size: 12px;
  font-weight: 650;
  color: #5c8174;
  margin: 0 0 8px;
}
@media (max-width: 700px) {
  body.dashboard-view .dashboard-tadoos {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
  body.dashboard-view .dashboard-launch {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    flex: initial !important;
    aspect-ratio: 1.35 !important;
    min-height: 115px !important;
    gap: 5px !important;
    padding: 12px 8px !important;
  }
  body.dashboard-view .dashboard-launch-icon {
    font-size: clamp(30px, 9vw, 41px) !important;
  }
  body.dashboard-view .dashboard-launch-name {
    font-size: clamp(13px, 3.6vw, 16px) !important;
    overflow-wrap: anywhere !important;
  }
  body.dashboard-view .dashboard-launch-hint {
    font-size: 13px !important;
  }
  body.dashboard-view .dashboard-settings .settings {
    padding: 14px !important;
  }
  body.dashboard-view .dashboard-settings .settings-inner {
    display: block !important;
  }
  body.dashboard-view .dashboard-settings .setup-step {
    margin-bottom: 12px !important;
    scroll-margin-top: 80px;
  }
  body.dashboard-view
    .dashboard-settings
    .setup-step:not([open])
    .step-content {
    display: none !important;
  }
  body.dashboard-view .setup-next {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  body.dashboard-view .setup-save-bar {
    display: flex !important;
    gap: 10px;
    flex-wrap: wrap;
  }
  body.dashboard-view .setup-save-bar button {
    flex: 1 1 135px;
  }
  body:not(.dashboard-view):not(.landing-view) #timerBox {
    padding: 12px 14px !important;
  }
  body:not(.dashboard-view):not(.landing-view) #timerBox .clock {
    font-size: clamp(48px, 12vw, 67px) !important;
  }
  body:not(.dashboard-view):not(.landing-view) #timerBox .track {
    height: 11px !important;
  }
  body:not(.dashboard-view):not(.landing-view) #timerBox .controls {
    margin-top: 7px !important;
  }
  body:not(.dashboard-view):not(.landing-view) #timerBox .controls .btn {
    min-height: 43px;
  }
  body:not(.dashboard-view):not(.landing-view) #mobileChildTabs {
    overscroll-behavior-x: contain;
  }
  body:not(.dashboard-view):not(.landing-view) .child-swipe-hint {
    display: block;
  }
  body:not(.dashboard-view):not(.landing-view) #kids .task {
    min-height: 52px;
  }
}
@media (max-width: 380px) {
  body.dashboard-view .dashboard-launch {
    min-height: 105px !important;
    padding: 9px 5px !important;
  }
  body.dashboard-view .dashboard-launch-name {
    font-size: 12px !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  body.dashboard-view .dashboard-launch,
  body:not(.dashboard-view):not(.landing-view) #timerBox .fill {
    transition: none !important;
  }
  body.dashboard-view .dashboard-launch:hover {
    transform: none !important;
  }
}

/* Preset tiles: no decorative play triangles. */
body.dashboard-view .dashboard-launch-hint {
  display: none !important;
}
/* Remove next-step affordance on every screen size. */
body.dashboard-view .setup-next {
  display: none !important;
}
/* Same countdown fill on desktop and mobile: coloured panel drains vertically as time passes. */
body:not(.dashboard-view):not(.landing-view) .wrap > #timerBox .track {
  position: absolute !important;
  inset: 0 !important;
  display: flex !important;
  align-items: flex-end !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  border-radius: inherit !important;
  background: transparent !important;
  overflow: hidden !important;
  pointer-events: none !important;
  z-index: 0 !important;
}
body:not(.dashboard-view):not(.landing-view) .wrap > #timerBox .fill {
  flex: none !important;
  width: 100% !important;
  max-width: none !important;
  height: var(--timer-remaining, 100%) !important;
  min-height: 0 !important;
  transition:
    height 0.5s linear,
    background-color 0.4s ease !important;
}
body:not(.dashboard-view):not(.landing-view) .wrap > #timerBox .timer-top {
  position: relative !important;
  z-index: 1 !important;
}
@media (prefers-reduced-motion: reduce) {
  body:not(.dashboard-view):not(.landing-view) .wrap > #timerBox .fill {
    transition: none !important;
  }
}

/* Finish-by mode: current wall clock sits centrally beneath Pause and Reset on every viewport. */
body:not(.dashboard-view):not(.landing-view) #timerBox .timer-top {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding-top: 0 !important;
}
body:not(.dashboard-view):not(.landing-view) #timerBox .controls {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
  gap: 9px !important;
  margin: 0 !important;
}
body:not(.dashboard-view):not(.landing-view)
  #timerBox
  .current-time-display:not([hidden]) {
  position: static !important;
  inset: auto !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  bottom: auto !important;
  transform: none !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  width: 100% !important;
  margin: 2px 0 0 !important;
  text-align: center !important;
  opacity: 0.65 !important;
  pointer-events: none !important;
}
body:not(.dashboard-view):not(.landing-view) #timerBox .current-time-caption {
  font-size: 12px !important;
  line-height: 1.25 !important;
}
body:not(.dashboard-view):not(.landing-view) #timerBox #currentTimeValue {
  font-size: 15px !important;
  line-height: 1.25 !important;
}
@media (max-width: 600px) {
  body:not(.dashboard-view):not(.landing-view) #timerBox .timer-top {
    gap: 6px !important;
  }
  body:not(.dashboard-view):not(.landing-view)
    #timerBox
    .current-time-display:not([hidden]) {
    margin-top: 3px !important;
  }
}

#tadooLanding .landing-logo,
#tadooDashboard .dashboard-logo-title img,
#timerStickyHeader img {
  cursor: pointer;
}
#tadooLanding .landing-logo:focus-visible,
#tadooDashboard .dashboard-logo-title img:focus-visible,
#timerStickyHeader img:focus-visible {
  outline: 3px solid #15906d;
  outline-offset: 5px;
  border-radius: 8px;
}

/* Fix box sizing and parent constraints so the Dashboard matches the Timer header exactly. */
@media (min-width: 701px) {
  body.dashboard-view #tadooDashboard .dashboard-heading,
  body:not(.dashboard-view):not(.landing-view) #timerStickyHeader {
    box-sizing: border-box !important;
    height: 82px !important;
    min-height: 82px !important;
    max-height: 82px !important;
    padding: 5px 12px !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    border-top: 0 !important;
    border-bottom-width: 1px !important;
    flex: 0 0 82px !important;
  }
  body.dashboard-view #tadooDashboard .dashboard-logo-title {
    box-sizing: border-box !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  body.dashboard-view #tadooDashboard .dashboard-logo-title img,
  body:not(.dashboard-view):not(.landing-view) #timerStickyHeader img {
    box-sizing: border-box !important;
    height: 65px !important;
    max-height: 65px !important;
    width: auto !important;
    max-width: 213px !important;
    margin: 0 !important;
    object-fit: contain !important;
  }
}

/* Root cause: the Dashboard section adds top padding above its 82px header,
   whereas the Timer header begins at the top of the page. Remove that offset. */
@media (min-width: 701px) {
  body.dashboard-view #tadooDashboard {
    padding-top: 0 !important;
    margin-top: 0 !important;
  }
  body.dashboard-view #tadooDashboard > .dashboard-heading {
    box-sizing: border-box !important;
    height: 82px !important;
    min-height: 82px !important;
    max-height: 82px !important;
    padding: 5px 12px !important;
    margin: 0 !important;
  }
  body.dashboard-view #tadooDashboard > .dashboard-tadoos,
  body.dashboard-view #tadooDashboard > #installTadooBanner {
    margin-top: 16px;
  }
}

/* Match the mobile Dashboard's visible header to the Timer header, including parent offset. */
@media (max-width: 700px) {
  body.dashboard-view #tadooDashboard {
    padding-top: 0 !important;
    margin-top: 0 !important;
  }
  body.dashboard-view #tadooDashboard > .dashboard-heading,
  body:not(.dashboard-view):not(.landing-view) #timerStickyHeader {
    box-sizing: border-box !important;
    height: 68px !important;
    min-height: 68px !important;
    max-height: 68px !important;
    padding: 3px 10px !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    border-top: 0 !important;
    border-bottom-width: 1px !important;
  }
  body.dashboard-view
    #tadooDashboard
    > .dashboard-heading
    .dashboard-logo-title {
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
  }
  body.dashboard-view
    #tadooDashboard
    > .dashboard-heading
    .dashboard-logo-title
    img,
  body:not(.dashboard-view):not(.landing-view) #timerStickyHeader img {
    box-sizing: border-box !important;
    height: 60px !important;
    max-height: 60px !important;
    width: auto !important;
    max-width: 195px !important;
    object-fit: contain !important;
  }
}

body.dashboard-view #dashboardThemePicker {
  margin: 16px 0 20px;
  padding: 15px 18px;
  border: 1px solid #d7e4dc;
}
body.dashboard-view #dashboardThemePicker > strong {
  display: block;
  margin-bottom: 11px;
  font-size: 17px;
  color: #263e32;
}
body.dashboard-view .dashboard-theme-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
body.dashboard-view .dashboard-theme-options button {
  min-height: 54px;
  border-radius: 12px;
  border: 2px solid #dce4e0;
  background: #f8faf9;
  color: #273c32;
  font-size: 15px;
  font-weight: 750;
  cursor: pointer;
}
body.dashboard-view .dashboard-theme-options button[data-theme-choice="play"] {
  background: #fff7dd;
}
body.dashboard-view .dashboard-theme-options button[data-theme-choice="stars"] {
  background: #e9f7ed;
}
body.dashboard-view .dashboard-theme-options button[data-theme-choice="teen"] {
  background: #eef1f5;
}
body.dashboard-view .dashboard-theme-options button[aria-pressed="true"] {
  border-color: #168b65;
  box-shadow: 0 0 0 2px #168b6533;
}
body.dashboard-view .dashboard-theme-options button:focus-visible {
  outline: 3px solid #168b65;
  outline-offset: 3px;
}
body.dashboard-view .appearance-age-row label[for="theme"],
body.dashboard-view .appearance-age-row #theme {
  display: none !important;
}
@media (max-width: 600px) {
  body.dashboard-view #dashboardThemePicker {
    padding: 12px;
    margin: 12px 0 15px;
  }
  body.dashboard-view .dashboard-theme-options {
    gap: 7px;
  }
  body.dashboard-view .dashboard-theme-options button {
    min-height: 61px;
    font-size: 12px;
    padding: 5px;
  }
}

body.dashboard-view .child-count-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px !important;
}
body.dashboard-view .child-count-row label {
  font-weight: 750;
}
body.dashboard-view .child-count-row select {
  width: 85px;
  max-width: 100%;
  flex: 0 0 85px;
}
body.dashboard-view #kidSettings .child-identity-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-width: 0;
  margin-bottom: 8px;
}
body.dashboard-view #kidSettings .child-name-field {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
body.dashboard-view #kidSettings .child-name-field label {
  flex-shrink: 0;
}
body.dashboard-view #kidSettings .child-name-field input {
  flex: 1;
  min-width: 0;
}
body.dashboard-view #kidSettings .dashboard-avatar-edit {
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  min-height: 54px;
  padding: 4px !important;
  display: grid !important;
  place-items: center;
  border-radius: 50%;
  overflow: hidden;
}
body.dashboard-view #kidSettings .dashboard-avatar-preview {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  font-size: 29px;
  line-height: 1;
}
body.dashboard-view #kidSettings .dashboard-avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
@media (max-width: 600px) {
  body.dashboard-view #kidSettings .child-name-field {
    flex-direction: column;
    align-items: stretch;
    gap: 3px;
  }
  body.dashboard-view #kidSettings .child-identity-row {
    gap: 10px;
  }
}

body.dashboard-view #dashboardThemePicker {
  margin: 9px 0 12px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
}
body.dashboard-view #dashboardThemePicker label {
  display: inline !important;
  color: #596e63 !important;
  white-space: nowrap !important;
}
body.dashboard-view #dashboardThemePicker select {
  display: block !important;
  width: auto !important;
  min-width: 125px !important;
  max-width: 170px !important;
  min-height: 35px !important;
  height: 35px !important;
  padding: 5px 27px 5px 10px !important;
  font-size: 13px !important;
  border: 1px solid #cbd9d0 !important;
  border-radius: 9px !important;
  background-color: #fff !important;
  color: #273e32 !important;
  cursor: pointer !important;
}
body.dashboard-view #dashboardThemePicker select:focus-visible {
  outline: 2px solid #168b65 !important;
  outline-offset: 2px !important;
}
@media (max-width: 600px) {
  body.dashboard-view #dashboardThemePicker {
    margin: 7px 0 10px !important;
  }
  body.dashboard-view #dashboardThemePicker select {
    min-width: 120px !important;
    max-width: 150px !important;
  }
}

/* A compact app-native setting instead of a generic browser dropdown. */
body.dashboard-view #dashboardThemePicker {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 10px !important;
  margin: 12px 0 14px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
body.dashboard-view #dashboardThemePicker label {
  color: inherit !important;
  font-size: 13px !important;
  font-weight: 800 !important;
}
body.dashboard-view #dashboardThemeSelect {
  appearance: none !important;
  -webkit-appearance: none !important;
  border: 2px solid #c6d7cf !important;
  border-radius: 12px !important;
  background: #fff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23015046' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")
    no-repeat right 10px center !important;
  padding: 7px 32px 7px 12px !important;
  height: 39px !important;
  min-height: 39px !important;
  min-width: 135px !important;
  font: inherit !important;
  font-size: 13px !important;
  font-weight: 750 !important;
  color: #015046 !important;
  box-shadow: 0 2px 0 #cad9d0 !important;
}
body.dashboard-view #dashboardThemeSelect:focus-visible {
  outline: 3px solid #015046 !important;
  outline-offset: 2px !important;
}
body.theme-stars .btn:not(.secondary),
body.theme-stars .kid .btn:not(.secondary) {
  background: #015046 !important;
  color: #fff !important;
  box-shadow: 0 4px 0 #00372f !important;
}
body.theme-stars .task.checked .check,
body.theme-stars .kidprogress > div,
body.theme-stars #teamFill {
  background: #015046 !important;
}
body.theme-stars .timer {
  border-color: #015046 !important;
}

/* Apply a single theme to the whole application, not individual routines. */
html[data-tadoo-theme="play"] {
  background: #fff9e6 !important;
}
html[data-tadoo-theme="stars"] {
  background: #edf8f0 !important;
}
html[data-tadoo-theme="teen"] {
  background: #e9edf1 !important;
}
html[data-tadoo-theme="play"] body {
  background: #fff9e6 !important;
}
html[data-tadoo-theme="stars"] body {
  background: #edf8f0 !important;
}
html[data-tadoo-theme="teen"] body {
  background: #e9edf1 !important;
}
html[data-tadoo-theme="play"] body.dashboard-view .dashboard-heading {
  background: #fff9e6 !important;
}
html[data-tadoo-theme="stars"] body.dashboard-view .dashboard-heading {
  background: #edf8f0 !important;
}
html[data-tadoo-theme="teen"] body.dashboard-view .dashboard-heading {
  background: #e9edf1 !important;
}
html[data-tadoo-theme="play"] body.dashboard-view .dashboard-launch {
  border-color: #e8cf80 !important;
}
html[data-tadoo-theme="stars"] body.dashboard-view .dashboard-launch {
  border-color: #a5cdb9 !important;
}
html[data-tadoo-theme="teen"] body.dashboard-view .dashboard-launch {
  border-color: #b7c1cc !important;
}
html[data-tadoo-theme="stars"] body .btn:not(.secondary) {
  background: #015046 !important;
  color: #fff !important;
  box-shadow: 0 4px 0 #00372f !important;
}
html[data-tadoo-theme="teen"] body .btn:not(.secondary) {
  background: #34465c !important;
  color: #fff !important;
}
html[data-tadoo-theme="play"] body .btn:not(.secondary) {
  background: #edb83c !important;
}

body.dashboard-view #dashboardThemePicker {
  position: relative !important;
  flex-wrap: nowrap !important;
}
body.dashboard-view #themeInfoButton {
  display: inline-grid !important;
  place-items: center !important;
  flex: 0 0 30px !important;
  padding: 0 !important;
  border: 2px solid #015046 !important;
  line-height: 1 !important;
  cursor: pointer !important;
}
body.dashboard-view #themeInfoButton:hover,
body.dashboard-view #themeInfoButton[aria-expanded="true"] {
  background: #e8f4ee !important;
}
body.dashboard-view #themeInfoButton:focus-visible {
  outline: 3px solid #015046 !important;
  outline-offset: 3px !important;
}
body.dashboard-view #themeInfoPanel:not([hidden]) {
  display: block !important;
  position: absolute !important;
  right: 0 !important;
  top: calc(100% + 9px) !important;
  z-index: 90 !important;
  width: min(340px, calc(100vw - 28px)) !important;
  padding: 16px !important;
  background: #fff !important;
  border: 1px solid #bdd4c8 !important;
  border-radius: 13px !important;
  box-shadow: 0 12px 32px #163b2b30 !important;
  color: #263c32 !important;
  font-size: 13px !important;
  line-height: 1.45 !important;
}
body.dashboard-view #themeInfoPanel[hidden] {
  display: none !important;
}
body.dashboard-view #themeInfoPanel strong {
  display: block;
  margin-bottom: 10px;
  font-size: 15px;
}
body.dashboard-view #themeInfoPanel p {
  margin: 0 0 9px;
}
body.dashboard-view #themeInfoPanel .theme-info-note {
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px solid #e1e9e3;
  color: #53665b;
  font-size: 12px;
}

body.dashboard-view #themeInfoButton {
  width: 22px !important;
  height: 22px !important;
  min-height: 22px !important;
  flex: 0 0 22px !important;
  border: 1.5px solid currentColor !important;
  border-radius: 50% !important;
  background: transparent !important;
  color: #366c5c !important;
  font-size: 14px !important;
  font-weight: 850 !important;
  font-style: normal !important;
  box-shadow: none !important;
  padding: 0 !important;
  line-height: 1 !important;
}
body.dashboard-view #themeInfoButton:hover {
  background: #e7f3e9 !important;
}

/* The inset white crescents came from the track inheriting the outer timer radius
   while being laid out inside the timer's border. Clip both layers to one edge. */
body.theme-stars:not(.dashboard-view):not(.landing-view) .wrap > #timerBox {
  border: 0 !important;
  border-radius: 30px !important;
  overflow: hidden !important;
  background-clip: border-box !important;
  isolation: isolate !important;
}
body.theme-stars:not(.dashboard-view):not(.landing-view)
  .wrap
  > #timerBox
  .track {
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
  border-radius: 0 !important;
  overflow: hidden !important;
  background: transparent !important;
}
body.theme-stars:not(.dashboard-view):not(.landing-view)
  .wrap
  > #timerBox
  .fill {
  width: 100% !important;
  max-width: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
}

@media (min-width: 761px) {
  body.landing-view #tadooLanding {
    display: grid;
    grid-template-rows: auto 1fr;
    row-gap: 24px;
    min-height: 100svh;
  }
  body.landing-view #tadooLanding .landing-main {
    width: 100%;
    margin: 0 auto !important;
    align-self: center;
  }
}

/* The landing page uses the brand yellow independently of routine themes. */
html:has(body.landing-view),
body.landing-view,
body.landing-view > .wrap,
body.landing-view #tadooLanding {
  background: #fff8e8 !important;
}

/* Tablet dashboard: prioritize the timer and all children on one landscape iPad screen. */
@media (min-width: 701px) {
  .timer {
    padding: 10px 18px;
  }
  .clock {
    font-size: 105px;
    line-height: 1;
    letter-spacing: -4px;
  }
  .timer-top {
    min-height: 110px;
  }
  .timer #status {
    font-size: 16px;
  }
  .timer .controls {
    flex: 1.1;
  }
  .timer .track {
    height: 11px;
  }
  .listbar {
    margin-top: 7px;
  }
  .kids {
    margin-top: 7px;
  }
}
@media (min-width: 701px) and (max-height: 850px) {
  .timer-top {
    min-height: 90px;
  }
  .timer {
    padding: 6px 14px;
  }
  header {
    padding: 4px 12px 1px;
  }
  .sub {
    display: none;
  }
  .task {
    padding: 4px 7px;
  }
  .tasks {
    gap: 5px;
    margin-top: 7px;
  }
}
header {
  padding: 8px 12px 3px;
}
h1 {
  font-size: 30px;
}
.sub {
  margin: 2px 0;
  font-size: 12px;
}
.wrap {
  max-width: 1500px;
  padding: 0 12px 12px;
}
.timer {
  border-width: 3px;
  border-radius: 18px;
  padding: 8px 14px;
}
.timer-top {
  display: flex;
  align-items: center;
  gap: 14px;
}
.timer #status {
  font-size: 15px;
  font-weight: 850;
  flex: 1;
  text-align: left;
}
.clock {
  font-size: 65px;
  letter-spacing: -2px;
  line-height: 1;
}
.timer .controls {
  margin: 0;
  flex: 1;
  justify-content: flex-end;
}
.timer .btn {
  padding: 7px 10px;
  font-size: 13px;
}
.timer .track {
  height: 9px;
  margin-top: 7px;
}
.listbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 9px 0 0;
  font-weight: 850;
}
.listbar select {
  min-width: 170px;
}
.settings {
  margin: 8px 0;
  padding: 12px;
}
.settings-inner {
  margin-top: 10px;
}
.kids {
  grid-template-columns: repeat(var(--kid-count, 2), minmax(0px, 1fr));
  gap: 10px;
  margin-top: 8px;
}
.kid {
  padding: 12px;
  border-radius: 18px;
}
.kid h2 {
  font-size: 22px;
}
.kid-head {
  justify-content: flex-start;
}
.avatar-button {
  border: 2px solid #e4e7f2;
  background: #f6f7ff;
  border-radius: 50%;
  font-size: 29px;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.avatar-button:focus-visible,
.task:focus-visible {
  outline: 3px solid #6255d9;
  outline-offset: 2px;
}
.kidprogress {
  margin: 7px 0 3px;
  height: 9px;
}
.tasks {
  margin-top: 9px;
  gap: 6px;
}
.task {
  padding: 7px 8px;
  min-height: 44px;
  border-radius: 12px;
  font-size: 14px;
  gap: 6px;
}
.task .check {
  height: 23px;
  width: 23px;
  border-radius: 7px;
}
.done-msg {
  font-size: 15px;
  margin-top: 6px;
}
.all-progress {
  margin: 7px 0 0;
  font-size: 13px;
}
.footer {
  padding: 10px 0;
  font-size: 11px;
}
.hint {
  color: #65718a;
  font-size: 12px;
}
.avatar-picker {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: #14213b88;
  display: grid;
  place-items: center;
  padding: 16px;
}
.avatar-dialog {
  background: white;
  border-radius: 20px;
  padding: 20px;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 15px 60px #0003;
}
.avatar-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin: 14px 0;
}
.avatar-choice {
  font-size: 30px;
  border: 2px solid #e7eaf4;
  border-radius: 12px;
  background: #fafbff;
  padding: 6px;
}
.avatar-choice[aria-pressed="true"] {
  border-color: #6255d9;
  background: #e9e6ff;
}
.kid-setting {
  margin-top: 8px;
}
.kid-setting input[data-tasks] {
  width: 100%;
  max-width: none;
}
.theme-focus .avatar-button {
  background: #e8f0f3;
}
.settings-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 14px;
}
.settings-backdrop {
  position: absolute;
  inset: 0;
  background: #18233a9c;
}
.settings-modal .settings {
  position: relative;
  width: min(760px, 100%);
  max-height: calc(100dvh - 28px);
  overflow: auto;
  margin: 0;
  padding: 20px;
  box-shadow: 0 20px 70px #0004;
}
.settings-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.settings-heading h2 {
  margin: 0;
  font-size: 22px;
}
body.modal-open {
  overflow: hidden;
}
@media (max-width: 700px) {
  .timer-top {
    flex-wrap: wrap;
    justify-content: center;
  }
  .timer #status {
    text-align: center;
    flex-basis: 100%;
  }
  .timer .controls {
    flex-basis: 100%;
    justify-content: center;
  }
  .kids {
    grid-template-columns: repeat(min(var(--kid-count, 2), 2), minmax(0, 1fr));
  }
  .task {
    font-size: 12px;
  }
  .listbar {
    flex-wrap: wrap;
  }
}
@media (max-width: 420px) {
  .kids {
    grid-template-columns: 1fr;
  }
  .task {
    font-size: 15px;
  }
}
@media (min-width: 701px) and (max-height: 850px) {
  header .sub {
    display: none;
  }
  .task {
    min-height: 38px;
    padding: 5px 7px;
  }
  .kid {
    padding: 9px;
  }
  .avatar-button {
    height: 42px;
    width: 42px;
    font-size: 24px;
  }
  .footer {
    padding: 5px;
  }
  .timer {
    padding: 5px 12px;
  }
  .clock {
    font-size: 90px;
  }
}
.avatar-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
.photo-option {
  display: block;
  text-align: center;
  margin: 10px 0;
  padding: 12px;
  border: 2px dashed #aaa4e7;
  border-radius: 14px;
  background: #f7f5ff;
  font-weight: 800;
  cursor: pointer;
}
.camera-launch {
  width: 100%;
  font: inherit;
  color: inherit;
}
.photo-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.avatar-note {
  font-size: 12px;
  color: #65718a;
  margin: 7px 0 12px;
}
.team-panel {
  margin-top: 10px;
  background: #fff;
  border-radius: 18px;
  padding: 12px;
  box-shadow: 0 8px 24px #22315c10;
}
.team-panel h2 {
  margin: 0 0 8px;
  font-size: 19px;
}
.team-task-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 7px;
}
.team-editor {
  background: #f3f6ff;
  border-radius: 14px;
  padding: 12px;
  margin-top: 12px;
}
.team-editor .task-fields {
  margin: 10px 0;
}
.team-editor .task-field {
  display: flex;
  gap: 7px;
  margin: 5px 0;
}
.team-editor .task-field input {
  flex: 1;
  width: auto;
  min-width: 0;
}
.team-panel .task {
  min-height: 40px;
  padding: 7px 9px;
}
@media (max-height: 760px) and (orientation: landscape) {
  .team-panel {
    padding: 7px;
    margin-top: 6px;
  }
  .team-panel h2 {
    font-size: 16px;
    margin-bottom: 4px;
  }
  .team-task-grid {
    gap: 5px;
  }
}
.theme-teen {
  background: #f0f2f6;
  color: #182235;
}
.theme-teen .kid,
.theme-teen .timer {
  border-radius: 12px;
  box-shadow: 0 4px 18px #15253a12;
}
.theme-teen .btn:not(.secondary) {
  background: #263c59;
  box-shadow: none;
}
.app-confirm {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #14213b99;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.app-confirm-card {
  width: min(420px, 100%);
  background: white;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 20px 60px #0004;
}
.app-confirm-card h3 {
  margin: 0 0 10px;
}
.app-confirm-card .setting-row {
  justify-content: flex-end;
  margin-top: 16px;
}
@media (max-width: 900px) {
  .kids {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 600px) {
  .kids {
    grid-template-columns: 1fr !important;
  }
}
/* Full-panel countdown: coloured area drains from right to left. */
.wrap > #timerBox {
  isolation: isolate;
  background: #fff !important;
}
.wrap > #timerBox .track {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0 !important;
  border-radius: inherit;
  background: transparent;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.wrap > #timerBox .fill {
  border-radius: 0;
  background: #49c88d;
  transition:
    width 0.5s linear,
    background-color 0.4s ease;
}
.wrap > #timerBox.amber .fill {
  background: #ffb84d;
}
.wrap > #timerBox.red .fill {
  background: #fa6b76;
}
.wrap > #timerBox .timer-top {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  flex-direction: column !important;
  align-items: center;
  justify-content: center !important;
  gap: 12px;
  min-height: 0;
}
.wrap > #timerBox .clock {
  flex: none !important;
  text-align: center !important;
  text-shadow: 0 1px 1px #ffffff66;
}
.wrap > #timerBox .controls {
  flex: none !important;
  justify-content: center !important;
  margin: 0;
}
.wrap > #timerBox .btn {
  position: relative;
  z-index: 1;
}
@media (max-width: 700px) {
  .wrap > #timerBox .timer-top {
    gap: 6px;
  }
  .wrap > #timerBox .clock {
    font-size: clamp(34px, 8vh, 62px);
  }
}
@media (max-height: 450px) and (orientation: landscape) {
  .wrap > #timerBox .timer-top {
    flex-direction: row !important;
    gap: 10px;
  }
}
/* Full-panel countdown drains vertically, exposing white from the top. */
.wrap > #timerBox .track {
  display: flex;
  align-items: flex-end;
}
.wrap > #timerBox .fill {
  width: 100% !important;
  height: var(--timer-remaining, 100%);
  transition:
    height 0.5s linear,
    background-color 0.4s ease;
}
.wrap > #timerBox .clock {
  color: #172b37 !important;
}
/* Larger task illustrations and labels across device sizes and themes. */
.wrap .task {
  font-size: 1.2em;
  min-height: 50px;
}
.wrap .task .emoji {
  font-size: 26.4px;
}
.theme-teen .wrap .task .emoji {
  font-size: 27.72px !important;
  width: 34px;
}
/* Tadoo selector label and icon: 20% larger than the previous compact styling. */
.listbar .routine-picker select {
  font-size: 18px;
}
.listbar .routine-icon {
  width: 35px;
  height: 35px;
  font-size: 20.4px;
}
/* Final countdown: pulse the full timer panel for its last ten seconds. */
@keyframes tadooFinalPulse {
  0%,
  100% {
    box-shadow: 0 8px 22px #22315c22;
    filter: brightness(1);
  }
  50% {
    box-shadow:
      0 0 0 5px #fa6b7699,
      0 12px 35px #fa6b7670;
    filter: brightness(1.12);
  }
}
.wrap > #timerBox.final-countdown {
  animation: tadooFinalPulse 1s ease-in-out infinite;
  border-color: #e4475b;
}
.wrap > #timerBox.final-countdown .clock {
  font-variant-numeric: tabular-nums;
}
.times-up-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #172b37a8;
  display: grid;
  place-items: center;
  padding: 20px;
}
.times-up-card {
  background: white;
  color: #172b37;
  border-radius: 28px;
  padding: 32px 26px;
  text-align: center;
  width: min(430px, 100%);
  box-shadow: 0 24px 75px #0005;
}
.times-up-card .times-up-icon {
  font-size: 56px;
  line-height: 1.2;
}
.times-up-card h2 {
  font-size: clamp(36px, 9vw, 54px);
  margin: 12px 0;
  color: #d63e52;
}
.times-up-card p {
  font-size: 18px;
  margin: 0 0 22px;
}
.times-up-card button {
  min-width: 140px;
}
@media (prefers-reduced-motion: reduce) {
  .wrap > #timerBox.final-countdown {
    animation: none;
    border: 5px solid #e4475b;
  }
}
/* Simple copyright footer replacing the former large wordmark. */
.brand-footer {
  padding: 16px 12px;
  text-align: center;
}
.brand-footer small {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  color: #69758a;
}
/* Two-screen Tadoo navigation: dashboard and focused timer. */
.tadoo-dashboard {
  display: none;
  padding: clamp(16px, 3vw, 36px) 0;
}
body.dashboard-view #tadooDashboard {
  display: block;
}
body.dashboard-view #timerBox,
body.dashboard-view .listbar,
body.dashboard-view #overall,
body.dashboard-view #teamTasksPanel,
body.dashboard-view #kids {
  display: none !important;
}
.dashboard-heading {
  gap: 18px;
  flex-wrap: wrap;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 24px;
  box-shadow: none;
}
.dashboard-heading h1 {
  font-size: clamp(28px, 4vw, 42px);
  margin: 0;
}
.dashboard-heading p {
  margin: 8px 0 0;
  color: #66718a;
}
.tadoo-dashboard h2 {
  font-size: 23px;
  margin: 28px 0 16px;
}
.dashboard-tadoos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 16px;
}
.dashboard-launch {
  border: 2px solid #dbe5ef;
  border-radius: 20px;
  background: white;
  padding: 24px 18px;
  display: flex;
  align-items: center;
  gap: 15px;
  text-align: left;
  box-shadow: 0 8px 25px #22315c0d;
  min-height: 110px;
  color: #24324b;
}
.dashboard-launch:hover,
.dashboard-launch:focus-visible {
  border-color: #49c88d;
  box-shadow: 0 8px 25px #49c88d33;
}
.dashboard-launch-icon {
  font-size: 38px;
}
.dashboard-launch-name {
  font-size: 20px;
  font-weight: 850;
}
.dashboard-launch-hint {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #66718a;
  margin-top: 5px;
}
.listbar {
  position: relative;
  justify-content: center !important;
  min-height: 48px;
}
.listbar #dashboardBack {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}
.listbar .dashboard-nav-spacer {
  display: none;
}
@media (max-width: 650px) {
  .listbar {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .listbar #dashboardBack {
    position: static;
    transform: none;
    align-self: flex-start;
  }
  .dashboard-heading {
    padding: 18px;
  }
}
/* Dashboard title and subtitle centred; settings inline below launch cards. */
.dashboard-heading {
  text-align: center;
}
.dashboard-heading h1,
.dashboard-heading p {
  text-align: center;
}
.dashboard-settings {
  margin-top: 28px;
}
.dashboard-settings .settings {
  position: static;
  width: 100%;
  max-height: none;
  overflow: visible;
  margin: 0;
  padding: 22px;
}
.dashboard-settings .settings-heading h2 {
  width: 100%;
  text-align: center;
}
/* Guided, progressive Tadoo setup */
.dashboard-settings .settings {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  padding: 0 !important;
}
.dashboard-settings .settings-heading {
  text-align: center;
  display: block;
  margin-bottom: 18px;
}
.dashboard-settings .settings-heading h2 {
  font-size: clamp(25px, 3vw, 32px);
  margin: 0;
}
.setup-intro {
  max-width: 570px;
  margin: 8px auto 0;
  color: #66718a;
  line-height: 1.5;
}
.dashboard-settings .settings-inner {
  display: block;
}
.setup-step {
  background: #fff;
  border: 1px solid #e1e7f1;
  border-radius: 18px;
  margin: 12px 0;
  overflow: hidden;
  box-shadow: 0 5px 20px #22315c0b;
}
.setup-step > summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 15px;
  cursor: pointer;
  padding: 19px 20px;
}
.setup-step > summary::-webkit-details-marker {
  display: none;
}
.setup-step > summary::after {
  content: "⌄";
  margin-left: auto;
  font-size: 24px;
  color: #66718a;
}
.setup-step[open] > summary::after {
  content: "⌃";
}
.setup-step > summary strong {
  display: block;
  font-size: 18px;
}
.setup-step > summary small {
  display: block;
  color: #66718a;
  font-size: 13px;
  font-weight: 400;
  margin-top: 4px;
}
.step-number {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #e8f8f0;
  color: #14895d;
  font-weight: 850;
}
.step-content {
  border-top: 1px solid #edf0f6;
  padding: 20px;
}
.step-content .list-editor {
  margin: 0;
}
.step-content .setting-row {
  gap: 10px;
  flex-wrap: wrap;
}
.step-content .hint {
  line-height: 1.5;
}
@media (max-width: 650px) {
  .setup-step > summary {
    padding: 15px;
  }
  .step-content {
    padding: 14px;
  }
}
/* Dashboard finishing touches */
.tadoo-dashboard > h2 {
  text-align: center;
}
.setup-inline-settings {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px !important;
}
.setup-inline-settings > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.setup-inline-settings label {
  white-space: nowrap;
}
.setup-inline-settings select,
.setup-inline-settings input {
  width: auto;
  max-width: 100%;
}
@media (max-width: 650px) {
  .setup-inline-settings {
    justify-content: flex-start;
  }
}
.setup-save-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  padding: 20px 12px 8px;
}
.setup-save-bar .btn {
  font-size: 17px;
  padding: 12px 28px;
}
#saveTadooStatus {
  color: #14895d;
  font-weight: 700;
}
.dashboard-launch {
  width: 100%;
  cursor: pointer;
}
/* Keep countdown colours identical in every visual theme. */
body .wrap > #timerBox.green {
  border-color: #49c88d !important;
}
body .wrap > #timerBox.amber {
  border-color: #ffb84d !important;
}
body .wrap > #timerBox.red {
  border-color: #fa6b76 !important;
}
body .wrap > #timerBox.green .fill {
  background: #49c88d !important;
}
body .wrap > #timerBox.amber .fill {
  background: #ffb84d !important;
}
body .wrap > #timerBox.red .fill {
  background: #fa6b76 !important;
}
body .wrap > #timerBox .clock.green {
  color: #1aa875 !important;
}
body .wrap > #timerBox .clock.amber {
  color: #e3941f !important;
}
body .wrap > #timerBox .clock.red {
  color: #e4475b !important;
}
body .wrap > #timerBox.final-countdown {
  animation: tadooFinalPulse 1s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  body .wrap > #timerBox.final-countdown {
    animation: none;
  }
}

/* Age-group visual hierarchy. The timer traffic-light colours remain universal. */
body:not(.theme-stars):not(.theme-teen) .kid h2 {
  font-size: clamp(27px, 3vw, 34px);
}
body:not(.theme-stars):not(.theme-teen) .task {
  min-height: 76px;
  padding: 17px 16px;
  font-size: clamp(18px, 2.2vw, 23px);
  border-radius: 20px;
  gap: 14px;
}
body:not(.theme-stars):not(.theme-teen) .task .emoji {
  font-size: clamp(32px, 4vw, 42px);
}
body:not(.theme-stars):not(.theme-teen) .task .check {
  width: 36px;
  height: 36px;
}
body:not(.theme-stars):not(.theme-teen) .avatar {
  font-size: 43px;
}
body:not(.theme-stars):not(.theme-teen) .kid .btn {
  font-size: 17px;
  min-height: 46px;
}
body:not(.theme-stars):not(.theme-teen) .kid {
  border-radius: 26px;
}
body.theme-stars .kid {
  border-radius: 20px;
  box-shadow: 0 9px 26px #d18b2a1c !important;
}
body.theme-stars .kid h2 {
  font-size: clamp(23px, 2.5vw, 28px);
  color: #69421d;
}
body.theme-stars .task {
  font-size: 17px;
  min-height: 61px;
  border-radius: 15px;
  background: #fffaf1;
  border-color: #f2dfbe;
}
body.theme-stars .task .emoji {
  font-size: 29px;
}
body.theme-stars .task .check {
  width: 30px;
  height: 30px;
}
body.theme-stars .task:hover {
  background: #fff1d7;
  border-color: #edb864;
}
body.theme-stars .avatar {
  font-size: 36px;
}
body.theme-stars .kid .btn:not(.secondary) {
  background: #dc832b;
}
body.theme-teen .task {
  font-size: 16px;
  min-height: 51px !important;
  padding: 11px 13px;
}
body.theme-teen .task .emoji {
  font-size: 23px !important;
  color: #46798e !important;
  width: 29px !important;
}
body.theme-teen .kid h2 {
  font-size: 22px !important;
}
body.theme-teen .avatar {
  font-size: 30px;
}
body.theme-teen .task:hover {
  background: #edf4f8 !important;
  border-color: #8bb3c7 !important;
}
body.theme-teen .kidprogress > div,
body.theme-teen #teamFill {
  background: #488b9b !important;
}
body.theme-teen .kid.done {
  outline-color: #488b9b !important;
}
body.theme-teen .task.checked .check {
  background: #327c85 !important;
  border-color: #327c85 !important;
}
body.theme-teen .done-msg {
  color: #327c85 !important;
}
body.theme-teen .routine-icon {
  background: #e3eef3;
  color: #327c85;
}
@media (max-width: 600px) {
  body:not(.theme-stars):not(.theme-teen) .task {
    min-height: 69px;
    padding: 14px;
    font-size: 19px;
  }
  body:not(.theme-stars):not(.theme-teen) .task .emoji {
    font-size: 34px;
  }
}
/* Kids: picture-first, generous square touch targets with labels below. */
body:not(.theme-stars):not(.theme-teen) .kid .tasks,
body:not(.theme-stars):not(.theme-teen) #sharedTasks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 125px), 1fr));
  gap: 12px;
}
body:not(.theme-stars):not(.theme-teen) .kid .task,
body:not(.theme-stars):not(.theme-teen) #sharedTasks .task {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 132px;
  aspect-ratio: 1/1;
  padding: 14px 10px 20px;
  text-align: center;
  border-radius: 22px;
  touch-action: manipulation;
}
body:not(.theme-stars):not(.theme-teen) .kid .task .emoji,
body:not(.theme-stars):not(.theme-teen) #sharedTasks .task .emoji {
  font-size: clamp(48px, 6vw, 65px);
  line-height: 1.12;
  flex-shrink: 0;
}
body:not(.theme-stars):not(.theme-teen) .kid .task .label,
body:not(.theme-stars):not(.theme-teen) #sharedTasks .task .label {
  font-size: clamp(13px, 1.6vw, 16px);
  font-weight: 750;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
body:not(.theme-stars):not(.theme-teen) .kid .task .check,
body:not(.theme-stars):not(.theme-teen) #sharedTasks .task .check {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 25px;
  height: 25px;
  margin: 0;
  border-radius: 8px;
  font-size: 16px;
}
@media (max-width: 440px) {
  body:not(.theme-stars):not(.theme-teen) .kid .tasks,
  body:not(.theme-stars):not(.theme-teen) #sharedTasks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  body:not(.theme-stars):not(.theme-teen) .kid .task,
  body:not(.theme-stars):not(.theme-teen) #sharedTasks .task {
    min-height: 125px;
  }
}

/* Kids: team tasks use child-sized tiles instead of stretching across the full team panel. */
body:not(.theme-stars):not(.theme-teen) #sharedTasks {
  grid-template-columns: repeat(auto-fill, minmax(0, 145px)) !important;
  justify-content: start;
}
body:not(.theme-stars):not(.theme-teen) #sharedTasks .task {
  width: 100%;
  min-width: 0;
  aspect-ratio: 1/1;
}
@media (max-width: 340px) {
  body:not(.theme-stars):not(.theme-teen) #sharedTasks {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
/* Dashboard editor heading and per-child theme-tinted cards. */
#settingsTitle {
  font-size: clamp(18px, 2vw, 23px) !important;
  text-align: left !important;
  line-height: 1.3;
}
.settings-heading {
  text-align: left !important;
}
#tadooIconSelect {
  max-width: 165px;
}

#kids > .kid .task {
  background: #fff !important;
}
#kids > .kid .task.checked {
  background: #e7faef !important;
}
body.theme-stars #kids > .kid .task.checked {
  background: #fff0d5 !important;
}
body.theme-teen #kids > .kid .task.checked {
  background: #edf3ef !important;
}
/* Keep every child's outer panel pure white in all timer themes, overriding striped theme backgrounds. */
body:not(.dashboard-view) #kids > .kid,
body:not(.dashboard-view) #kids > .kid:nth-child(n),
body.theme-stars:not(.dashboard-view) #kids > .kid:nth-child(n),
body.theme-teen:not(.dashboard-view) #kids > .kid:nth-child(n) {
  background: #fff !important;
  background-color: #fff !important;
}
/* Timer occupies 30% of the viewport height at every screen size. */
.task .emoji {
  font-size: 22px;
}
.theme-teen .task .emoji {
  font-size: 23.1px !important;
  width: 28px;
}
.wrap > #timerBox {
  width: 100%;
  height: 30svh;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
@media (min-width: 1100px) {
  .timer-top {
    flex-direction: row;
    gap: 14px;
    min-height: 0;
  }
  .timer .clock {
    font-size: clamp(65px, 6vw, 105px);
  }
  .timer .controls {
    flex: 1 1 auto !important;
    justify-content: flex-end;
  }
}
/* Keep the timer visible while scrolling tasks on desktop, tablet and mobile. */
.wrap > #timerBox {
  position: sticky;
  top: 0;
  z-index: 15;
  overflow: auto;
  overscroll-behavior: contain;
  box-shadow: 0 8px 22px #22315c22;
}
@media (max-width: 700px) {
  .wrap > #timerBox {
    padding: 8px 12px;
  }
  .timer-top {
    gap: 5px;
  }
  .timer .clock {
    font-size: clamp(32px, 8vh, 60px);
  }
  .timer .controls {
    margin-top: 2px;
  }
  .timer .btn {
    padding: 5px 10px;
    font-size: 12px;
  }
  .timer .track {
    margin-top: 4px;
  }
}
@media (max-height: 450px) and (orientation: landscape) {
  .wrap > #timerBox {
    padding: 3px 10px;
  }
  .timer-top {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 6px;
  }
  .timer .clock {
    font-size: clamp(28px, 8vh, 42px);
  }
  .timer .controls {
    flex-basis: auto;
    gap: 4px;
    margin: 0;
  }
  .timer .btn {
    padding: 3px 7px;
    font-size: 11px;
  }
}
.dashboard-logo-title {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto !important;
  padding: 0 !important;
}
.dashboard-logo-title img {
  display: block;
  width: min(100%, 480px);
  height: auto;
  object-fit: contain;
  margin: 0 auto;
}
.dashboard-heading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 !important;
}
@media (max-width: 600px) {
  .dashboard-logo-title img {
    width: min(100%, 340px);
  }
}
@media (min-width: 1100px) {
  body.dashboard-view .dashboard-heading {
    margin-top: -36px;
    margin-bottom: 0;
  }
}
