/* ChoreZone app styles, WordPress edition (app version 168).
   Everything is scoped to :is(#chorezone-app,#chorezone-shop,#chorezone-support) so the theme and the app never restyle each other's pages.
   The app takes its font and text colour from the page around it, and its accent colour from the theme
   (the app reads the theme's button / link colour at start-up into --cc-accent; see app.js "themeColors").
   It reflows by ITS OWN width (container queries), so it fits the theme's content column at any screen size. */

:is(#chorezone-app, #chorezone-shop, #chorezone-support) {
  --cc-accent: #4f46e5;
  --cc-on-accent: #fff;
  --cc-radius: 8px;
  --cc-good: #16a34a;
  --cc-bad: #b91c1c;
  --cc-pay: #1d4ed8;
  --cc-line: rgba(127, 127, 127, 0.35);
  --cc-muted: rgba(127, 127, 127, 1);
  --cc-card: rgba(127, 127, 127, 0.06);
  --cc-soft: rgba(127, 127, 127, 0.12);
  container-type: inline-size;
  container-name: cc;
  width: 100%;
  max-width: none;
  margin: 0 0 1.5em;
  padding: 0 0 90px;
  box-sizing: border-box;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.45;
  color: inherit;
  text-align: left;
  --ver: '168';
  color-scheme: only light;
} /* 4.4.1: the same light colours on every device, whatever its light/dark setting (form controls too) */
@supports (color: color-mix(in srgb, red 50%, blue)) {
  :is(#chorezone-app, #chorezone-shop, #chorezone-support) {
    --cc-line: color-mix(in srgb, currentColor 22%, transparent);
    --cc-muted: color-mix(in srgb, currentColor 64%, transparent);
    --cc-card: color-mix(in srgb, currentColor 4%, transparent);
    --cc-soft: color-mix(in srgb, var(--cc-accent) 14%, transparent);
  }
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) *,
:is(#chorezone-app, #chorezone-shop, #chorezone-support) *::before,
:is(#chorezone-app, #chorezone-shop, #chorezone-support) *::after {
  box-sizing: border-box;
}

/* ---- type ---- */
:is(#chorezone-app, #chorezone-shop, #chorezone-support) h1,
:is(#chorezone-app, #chorezone-shop, #chorezone-support) h2,
:is(#chorezone-app, #chorezone-shop, #chorezone-support) h3,
:is(#chorezone-app, #chorezone-shop, #chorezone-support) h4 {
  font-family: inherit;
  color: inherit;
  line-height: 1.2;
  letter-spacing: normal;
  text-transform: none;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) h1 {
  margin: 0;
  font-size: 1.4rem;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) h2 {
  margin: 0.5em 0;
  font-size: 1.25rem;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) h3 {
  margin: 0.5em 0;
  font-size: 1.1rem;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) h4 {
  margin: 0.8em 0 0.4em;
  font-size: 1rem;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) p {
  margin: 0.5em 0;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .m {
  color: var(--cc-muted);
  font-size: 0.9rem;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) a {
  color: var(--cc-accent);
}

/* ---- layout ---- */
:is(#chorezone-app, #chorezone-shop, #chorezone-support) header {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 12px;
  padding: 0;
  background: none;
  border: 0;
  position: static;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) header h1 {
  display: flex;
  align-items: center;
  gap: 10px;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .logo {
  height: 44px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  border-radius: 8px;
  vertical-align: middle;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .card {
  background: var(--cc-card);
  border: 1px solid var(--cc-line);
  border-radius: calc(var(--cc-radius) + 6px);
  padding: 14px;
  margin: 10px 0;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 8px 0;
  align-items: center;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .row > input,
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .row > select {
  flex: 1 1 180px;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .row > label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1 1 150px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cc-muted);
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .row > label input,
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .row > label select {
  width: 100%;
  font-weight: normal;
  color: inherit;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .row > label.lbl {
  flex: 0 0 auto;
  flex-direction: row;
  align-items: center;
  font-weight: normal;
  color: inherit;
  font-size: 1rem;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .row > label.lbl input {
  width: auto;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .row > button {
  flex: 0 0 auto;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .lbl {
  display: inline-flex;
  gap: 6px;
  margin-right: 10px;
  align-items: center;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .lbl > input[type='checkbox'],
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .lbl > input[type='radio'] {
  width: 1.1em;
  height: 1.1em;
  flex: 0 0 auto;
  margin: 0;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .tabs {
  gap: 8px;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .tabs .tab {
  flex: 1 1 auto;
}
/* 4.5.3: wider screens (landscape phones, tablets, computers): the tab buttons (default "fill" bar) share one row in equal widths, each name on one line with its icon beside it, and My account before Settings. The app script widens the app (or, on a narrow screen, shrinks the tab text) so they fit. */
@container cc (min-width:561px) {
  :is(#chorezone-app, #chorezone-shop, #chorezone-support) .tabs.bar-fill {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    align-items: stretch;
  }
  :is(#chorezone-app, #chorezone-shop, #chorezone-support) .tabs.bar-fill.cz-meas {
    grid-auto-columns: max-content;
  }
  :is(#chorezone-app, #chorezone-shop, #chorezone-support) .tabs.bar-fill .tab {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35em;
    text-align: center;
    white-space: nowrap;
    margin: 0;
    min-width: 0;
    padding-left: 7px;
    padding-right: 7px;
    font-size: var(--cz-tabfs, 1em);
  }
  :is(#chorezone-app, #chorezone-shop, #chorezone-support) .tabs.bar-fill .tab[data-t='set'] {
    order: 1;
  }
}
/* 4.5.1: on a phone held upright, the tab buttons (default "fill" bar) are an even 2-column grid, icon and text centered; My account goes full width at the bottom */
@container cc (max-width:560px) {
  :is(#chorezone-app, #chorezone-shop, #chorezone-support) .tabs.bar-fill {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }
  :is(#chorezone-app, #chorezone-shop, #chorezone-support) .tabs.bar-fill .tab {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 0;
    min-width: 0;
  }
  :is(#chorezone-app, #chorezone-shop, #chorezone-support) .tabs.bar-fill .tab[data-t='acct'] {
    grid-column: 1/-1;
    order: 1;
  }
  :is(#chorezone-app, #chorezone-shop, #chorezone-support) .tabs.bar-fill .tab {
    gap: 0.35em;
  }
}
/* 3.5.0: the administrator's layout: tab bar position, blocks in a 2-column grid (half-width blocks share a row), hidden features */
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .tabs.bar-left,
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .tabs.bar-center,
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .tabs.bar-right {
  flex-wrap: wrap;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .tabs.bar-left .tab,
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .tabs.bar-center .tab,
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .tabs.bar-right .tab {
  flex: 0 0 auto;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .tabs.bar-center {
  justify-content: center;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .tabs.bar-right {
  justify-content: flex-end;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .who {
  min-width: 6em;
} /* 3.5.1: the child a scheduled chore belongs to (moved only with Reassign) */
/* 3.6.1: a day's chores line up in columns: child | Reassign | Charge penalty | done box | chore */
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .sgrid {
  display: grid;
  grid-template-columns:
    minmax(6.5em, max-content) minmax(6.5em, max-content) minmax(13em, max-content)
    minmax(9.5em, max-content) 26px minmax(10em, 1fr);
  gap: 8px 12px;
  align-items: center;
} /* minimum widths keep every day's columns in line */
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .sgrid button {
  white-space: nowrap;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .sgrid > .srow {
  display: contents;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .sgrid > .rpform {
  grid-column: 1/-1;
  margin: 0 0 6px;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .sgrid .sc-rx:empty,
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .sgrid .sc-px:empty,
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .sgrid .sc-bx:empty {
  min-height: 1px;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .sdone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 2px solid var(--cc-muted);
  border-radius: 6px;
  background: var(--cc-card);
  font-weight: bold;
  line-height: 1;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) button.sdone,
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .sgrid button.sdone {
  padding: 0 !important;
  min-width: 0;
  cursor: pointer;
  font-size: 1rem !important;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) button.sdone:hover {
  border-color: var(--cc-good);
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .sdone.on {
  background: var(--cc-good);
  border-color: var(--cc-good);
  color: #fff;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .czg {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 14px;
  align-items: start;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .czb {
  grid-column: 1/-1;
  min-width: 0;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .czb-h {
  grid-column: auto;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .czb > .card:first-child,
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .czb > .row:first-child {
  margin-top: 10px;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support).czoff-money .ff-money,
:is(#chorezone-app, #chorezone-shop, #chorezone-support).czoff-penalties .ff-penalties,
:is(#chorezone-app, #chorezone-shop, #chorezone-support).czoff-motion .ff-motion,
:is(#chorezone-app, #chorezone-shop, #chorezone-support).czoff-points .ff-points {
  display: none !important;
}

/* ---- controls: theme font, theme accent ---- */
:is(#chorezone-app, #chorezone-shop, #chorezone-support) button,
:is(#chorezone-app, #chorezone-shop, #chorezone-support) a.btn {
  font: inherit;
  font-size: 1rem;
  line-height: 1.2;
  padding: 8px 14px;
  margin: 0;
  border-radius: var(--cc-radius);
  border: 1px solid var(--cc-line);
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-decoration: none;
  text-transform: none;
  letter-spacing: normal;
  box-shadow: none;
  min-height: 0;
  width: auto;
  display: inline-block;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) a.btn {
  margin: 4px 4px 4px 0;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) button:hover,
:is(#chorezone-app, #chorezone-shop, #chorezone-support) a.btn:hover {
  border-color: var(--cc-accent);
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) button:focus-visible,
:is(#chorezone-app, #chorezone-shop, #chorezone-support) a.btn:focus-visible,
:is(#chorezone-app, #chorezone-shop, #chorezone-support) input:focus-visible,
:is(#chorezone-app, #chorezone-shop, #chorezone-support) select:focus-visible {
  outline: 2px solid var(--cc-accent);
  outline-offset: 2px;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) button.p,
:is(#chorezone-app, #chorezone-shop, #chorezone-support) a.btn.p,
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .tab.on,
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .day.on {
  background: var(--cc-accent);
  color: var(--cc-on-accent);
  border-color: var(--cc-accent);
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) button.x {
  color: var(--cc-bad);
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) button:disabled {
  opacity: 0.6;
  cursor: default;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support)
  input:not([type='checkbox']):not([type='radio']):not([type='file']),
:is(#chorezone-app, #chorezone-shop, #chorezone-support) select,
:is(#chorezone-app, #chorezone-shop, #chorezone-support) textarea {
  font: inherit;
  font-size: 1rem;
  padding: 6px 8px;
  margin: 0;
  border-radius: calc(var(--cc-radius) - 2px);
  border: 1px solid var(--cc-line);
  background-color: transparent;
  color: inherit;
  max-width: 100%;
  min-width: 0;
  width: auto;
  height: auto;
  box-shadow: none;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) select {
  padding-right: 28px;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) select option {
  color: #111;
  background: #fff;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) input[type='checkbox'],
:is(#chorezone-app, #chorezone-shop, #chorezone-support) input[type='radio'] {
  appearance: auto;
  -webkit-appearance: auto;
  width: 1.1em;
  height: 1.1em;
  min-width: 0;
  padding: 0;
  margin: 0;
  border: 0;
  background: none;
  box-shadow: none;
  accent-color: var(--cc-accent);
  vertical-align: middle;
  flex: 0 0 auto;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) input[type='checkbox']::before,
:is(#chorezone-app, #chorezone-shop, #chorezone-support) input[type='checkbox']::after,
:is(#chorezone-app, #chorezone-shop, #chorezone-support) input[type='radio']::before,
:is(#chorezone-app, #chorezone-shop, #chorezone-support) input[type='radio']::after {
  display: none;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) input[type='file'] {
  font: inherit;
  font-size: 0.9rem;
  border: 0;
  padding: 0;
  background: none;
  max-width: 100%;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) form.card > input {
  margin: 4px 4px 4px 0;
}

/* ---- tables ---- */
:is(#chorezone-app, #chorezone-shop, #chorezone-support) table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  border: 0;
  background: none;
  font-size: inherit;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) td,
:is(#chorezone-app, #chorezone-shop, #chorezone-support) th {
  padding: 4px;
  text-align: left;
  border: 0;
  background: none;
  vertical-align: middle;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) td input[type='text'],
:is(#chorezone-app, #chorezone-shop, #chorezone-support) td input:not([type]) {
  width: 100%;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) td input[type='number'] {
  width: 84px;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) table.st td:first-child {
  min-width: 190px;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) table.st td .lbl {
  margin: 2px 10px 2px 0;
  white-space: nowrap;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) table.st td:first-child {
  width: 42%;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) table.st td:first-child input {
  width: 100%;
  font-size: 1.05rem;
}

/* ---- kids' view: the version 28 colors (3.6.0). A child's own colors, chosen by a parent on the Kids tab, override them:
   --kid-bg page background, --kid-card cards and buttons, --kid-text all text, --kid-acc highlight (selected day, main buttons) ---- */
:is(#chorezone-app, #chorezone-shop, #chorezone-support).kid {
  --kid-ink: var(--kid-text, #2b2140);
  --kid-pg: var(--kid-pgtext, var(--kid-text, #2b2140));
  --kid-hi: var(--kid-acc, #7c3aed);
  border-radius: calc(var(--cc-radius) + 14px);
  padding: 16px 16px 90px;
  color: var(--kid-pg);
  background: var(--kid-bg, linear-gradient(160deg, #ffe29f, #ffa99f 55%, #ff9de2));
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support).kid h1 {
  font-size: 1.9rem;
  color: var(--kid-pg);
  text-shadow: 2px 2px 0 #fff8;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support).kid .card {
  border-radius: 22px;
  border: 3px solid #fff;
  background: var(--kid-card, #fffffff0);
  color: var(--kid-ink);
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support).kid button,
:is(#chorezone-app, #chorezone-shop, #chorezone-support).kid a.btn {
  border-radius: 14px;
  border: 3px solid #fff;
  background: var(--kid-card, #fffffff0);
  color: var(--kid-ink);
  font-weight: bold;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support).kid .day.on,
:is(#chorezone-app, #chorezone-shop, #chorezone-support).kid button.p {
  background: var(--kid-hi);
  color: #fff;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support).kid .day.on {
  transform: scale(1.08);
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support).kid .day.today {
  border-color: #16a34a;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support).kid .m {
  color: var(--kid-muted, #6b5b8a);
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support).kid .chore:not(.done) {
  background: var(--kid-card, #fffffff0);
  color: var(--kid-ink);
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support).kid .stars {
  background: var(--kid-card, #fffffff0);
  color: var(--kid-ink);
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support).kid .track {
  background: #e9d5ff;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support).kid .chore input[type='checkbox'] {
  accent-color: #16a34a;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .hello {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  color: var(--kid-pg, inherit);
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .hello h2 {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  font-size: 1.7rem;
  color: inherit;
  overflow-wrap: break-word;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .hello .hstat {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  margin-left: auto;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .hello .hstat .bchip {
  margin-left: 0;
}
@container cc (max-width:480px) {
  :is(#chorezone-app, #chorezone-shop, #chorezone-support) .hello h2 {
    font-size: clamp(1.2rem, 6cqi, 1.7rem);
  }
  :is(#chorezone-app, #chorezone-shop, #chorezone-support) .hello .avatar {
    font-size: 2.6rem;
  }
  :is(#chorezone-app, #chorezone-shop, #chorezone-support) .hello .stars,
  :is(#chorezone-app, #chorezone-shop, #chorezone-support) .hello .bchip {
    font-size: 1.15rem;
  }
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .avatar {
  font-size: 3.2rem;
  display: inline-block;
  line-height: 1;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .kidemo {
  display: inline-block;
  line-height: 1;
  transform-origin: 50% 80%;
}
/* v33: motion, chosen for the header emoji and for each avatar */
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .mv-bounce {
  display: inline-block;
  animation: cc-bob 2.4s ease-in-out infinite;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .mv-wiggle {
  display: inline-block;
  animation: cc-wiggle 1.6s ease-in-out infinite;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .mv-pulse {
  display: inline-block;
  animation: cc-pulse 1.8s ease-in-out infinite;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .mv-spin {
  display: inline-block;
  animation: cc-spin 4s linear infinite;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .mv-none {
  animation: none;
}
@keyframes cc-wiggle {
  0%,
  100% {
    transform: rotate(0);
  }
  25% {
    transform: rotate(-12deg);
  }
  75% {
    transform: rotate(12deg);
  }
}
@keyframes cc-pulse {
  50% {
    transform: scale(1.18);
  }
}
@keyframes cc-spin {
  to {
    transform: rotate(360deg);
  }
}
/* v33: extra emojis (typed or pictures) */
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .cimg {
  width: 1em;
  height: 1em;
  object-fit: contain;
  vertical-align: -0.12em;
  display: inline-block;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .pick .cimg {
  width: 1.5rem;
  height: 1.5rem;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .cemo {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 1.5rem;
  line-height: 1;
  padding: 3px 4px 3px 8px;
  border: 1px solid var(--cc-line);
  border-radius: 10px;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .cemo button {
  font-size: 0.75rem;
  padding: 3px 7px;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) #cemo {
  flex: 0 1 200px;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .stars {
  font-size: 1.4rem;
  font-weight: bold;
  background: #fffffff0;
  color: #2b2140;
  border-radius: 20px;
  padding: 6px 14px;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .day {
  flex: 1;
  min-width: 60px;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .day.today {
  border-color: var(--cc-good);
  border-width: 2px;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support).kid .day {
  border-radius: 18px;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .chore {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1.25rem;
  padding: 14px;
  margin: 8px 0;
  cursor: pointer;
  border-radius: 24px;
  border: 4px solid #fff;
  background: #fffffff0;
  color: #2b2140;
  box-shadow: 0 6px 0 #0002;
  transition: transform 0.15s;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .chore:active {
  transform: scale(0.97);
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .chore input[type='checkbox'] {
  width: 36px;
  height: 36px;
  accent-color: var(--cc-good);
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .chore.done {
  background: #d9f99d;
  border-color: #65a30d;
  color: #14532d;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .chore.done .m {
  color: #365314;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .chore.done .emoji:not(img) {
  animation: cc-pop 0.5s;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .emoji:not(img) {
  font-size: 2.3rem;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .track {
  position: relative;
  height: 22px;
  background: #e9d5ff;
  border-radius: 12px;
  margin: 30px 0 8px;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .track i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #34d399, #facc15);
  border-radius: 12px;
  transition: width 0.5s;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .rocket {
  position: absolute;
  top: -26px;
  font-size: 1.9rem;
  transform: translateX(-50%);
  transition: left 0.5s;
}
.cc-confetti {
  position: fixed;
  top: -20px;
  width: 10px;
  height: 14px;
  z-index: 99999;
  pointer-events: none;
  animation: cc-fall 1.7s ease-in forwards;
}
@keyframes cc-bob {
  50% {
    transform: translateY(-6px) rotate(6deg);
  }
}
@keyframes cc-pop {
  40% {
    transform: scale(1.6) rotate(-12deg);
  }
}
@keyframes cc-fall {
  to {
    transform: translateY(105vh) rotate(540deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  :is(#chorezone-app, #chorezone-shop, #chorezone-support) [class*='mv-'],
  :is(#chorezone-app, #chorezone-shop, #chorezone-support) .kidemo,
  :is(#chorezone-app, #chorezone-shop, #chorezone-support) .avatar,
  :is(#chorezone-app, #chorezone-shop, #chorezone-support) .chore.done .emoji:not(img),
  .cc-confetti {
    animation: none !important;
  }
}

/* ---- pickers, money ---- */
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .pick {
  font-size: 1.5rem;
  line-height: 1;
  padding: 6px 10px;
  border-radius: 12px;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .pick.on {
  outline: 3px solid var(--cc-accent);
  background: var(--cc-soft);
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .pick[data-e=''] {
  font-size: 1rem;
  padding: 10px 12px;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .neg {
  color: var(--cc-bad);
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .mfilters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: flex-end;
  margin: 10px 0;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .mfilters label {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cc-muted);
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) table.mt th,
:is(#chorezone-app, #chorezone-shop, #chorezone-support) table.mt td {
  padding: 6px 8px;
  border-bottom: 1px solid var(--cc-line);
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) table.mt td.amt {
  text-align: right;
  white-space: nowrap;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) td.amt.earn,
:is(#chorezone-app, #chorezone-shop, #chorezone-support) b.earn {
  color: #1e8449;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) td.amt.penalty,
:is(#chorezone-app, #chorezone-shop, #chorezone-support) b.penalty {
  color: #c0392b;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) td.amt.pay,
:is(#chorezone-app, #chorezone-shop, #chorezone-support) b.pay {
  color: var(--cc-pay);
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) tr.dim {
  opacity: 0.55;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .money {
  margin-top: 14px;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .bigmoney {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.1;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .bigmoney small {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--cc-muted);
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .bigmoney.neg,
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .bchip.neg {
  color: #b91c1c;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) table.mm {
  margin-top: 8px;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) table.mm th,
:is(#chorezone-app, #chorezone-shop, #chorezone-support) table.mm td {
  padding: 5px 6px;
  border-bottom: 1px solid var(--cc-line);
  text-align: right;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) table.mm th:first-child,
:is(#chorezone-app, #chorezone-shop, #chorezone-support) table.mm td:first-child {
  text-align: left;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) table.mm tr.sub td {
  font-size: 0.85rem;
  color: var(--cc-muted);
  padding-left: 18px;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) ul.recent {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  font-size: 0.9rem;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) ul.recent li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 3px 0;
  margin: 0;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) ul.recent.hist li {
  align-items: flex-start;
  border-bottom: 1px solid var(--cc-line);
  padding: 6px 0;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) ul.recent.hist b.dim {
  opacity: 0.5;
  text-decoration: line-through;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .khist {
  margin-top: 14px;
  border-top: 1px dashed var(--cc-line);
  padding-top: 10px;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .chip {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .chip.earn {
  background: #dcfce7;
  color: #166534;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .chip.pen {
  background: #fee2e2;
  color: #991b1b;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .bchip {
  margin-left: 8px;
  border-radius: 999px;
  font-weight: 800;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .payrow {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .payrow input {
  width: 130px;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .rpform {
  background: var(--cc-soft);
  border-radius: 10px;
  padding: 8px;
  margin: 4px 0 8px;
}

/* ---- unsaved-changes bar (fixed to the bottom of the screen) ---- */
#cc-savebar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99998;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 12px 16px;
  background: #fff7e0;
  color: #5c3d00;
  border-top: 3px solid #f59e0b;
  box-shadow: 0 -4px 12px #0003;
  font:
    bold 1rem/1.3 system-ui,
    sans-serif;
}
#cc-savebar button {
  font: inherit;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid #d6b25e;
  background: #fff;
  color: #5c3d00;
  cursor: pointer;
}
#cc-savebar button.p {
  background: var(--cc-accent, #4f46e5);
  color: var(--cc-on-accent, #fff);
  border-color: transparent;
}

/* ---- reflow by the app's own width ---- */
@container cc (max-width:1100px) {
  :is(#chorezone-app, #chorezone-shop, #chorezone-support) table.st,
  :is(#chorezone-app, #chorezone-shop, #chorezone-support) table.st tbody,
  :is(#chorezone-app, #chorezone-shop, #chorezone-support) table.st tr,
  :is(#chorezone-app, #chorezone-shop, #chorezone-support) table.st td {
    display: block;
    width: 100%;
  }
  :is(#chorezone-app, #chorezone-shop, #chorezone-support) table.st tr.hd {
    display: none;
  }
  :is(#chorezone-app, #chorezone-shop, #chorezone-support) table.st tr {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px 12px;
    border: 1px solid var(--cc-line);
    border-radius: 12px;
    padding: 10px;
    margin: 10px 0;
  }
  :is(#chorezone-app, #chorezone-shop, #chorezone-support) table.st td {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 0;
    min-width: 0;
  }
  :is(#chorezone-app, #chorezone-shop, #chorezone-support) table.st td::before {
    content: attr(data-label);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--cc-muted);
  }
  :is(#chorezone-app, #chorezone-shop, #chorezone-support) table.st td[data-label='']::before {
    display: none;
  }
  :is(#chorezone-app, #chorezone-shop, #chorezone-support) table.st td:first-child,
  :is(#chorezone-app, #chorezone-shop, #chorezone-support) table.st td:nth-last-child(2) {
    grid-column: 1 / -1;
    min-width: 0;
    width: 100%;
  }
  :is(#chorezone-app, #chorezone-shop, #chorezone-support) table.st td:nth-last-child(2) {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }
  :is(#chorezone-app, #chorezone-shop, #chorezone-support) table.st td:nth-last-child(2)::before {
    flex: 0 0 100%;
  }
  :is(#chorezone-app, #chorezone-shop, #chorezone-support) table.st td:last-child button {
    width: auto;
    align-self: flex-end;
    padding: 6px 18px;
  }
  :is(#chorezone-app, #chorezone-shop, #chorezone-support) table.st td input[type='number'] {
    width: 100%;
  }
}
@container cc (max-width:820px) {
  :is(#chorezone-app, #chorezone-shop, #chorezone-support) table.mt,
  :is(#chorezone-app, #chorezone-shop, #chorezone-support) table.mt tbody {
    display: block;
    width: 100%;
  }
  :is(#chorezone-app, #chorezone-shop, #chorezone-support) table.mt tr.hd {
    display: none;
  }
  :is(#chorezone-app, #chorezone-shop, #chorezone-support) table.mt tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 12px;
    border-bottom: 1px solid var(--cc-line);
    padding: 10px 2px;
  }
  :is(#chorezone-app, #chorezone-shop, #chorezone-support) table.mt td {
    display: flex;
    flex-direction: column;
    border: 0;
    padding: 0;
    min-width: 0;
  }
  :is(#chorezone-app, #chorezone-shop, #chorezone-support) table.mt td[data-label]::before {
    content: attr(data-label);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--cc-muted);
  }
  :is(#chorezone-app, #chorezone-shop, #chorezone-support) table.mt td.amt {
    text-align: left;
  }
}
@container cc (max-width:560px) {
  :is(#chorezone-app, #chorezone-shop, #chorezone-support) .czb-h {
    grid-column: 1/-1;
  }
  :is(#chorezone-app, #chorezone-shop, #chorezone-support) table.st tr {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  :is(#chorezone-app, #chorezone-shop, #chorezone-support) .row > input,
  :is(#chorezone-app, #chorezone-shop, #chorezone-support) .row > select,
  :is(#chorezone-app, #chorezone-shop, #chorezone-support) .row > label {
    flex: 1 1 100%;
  }
  :is(#chorezone-app, #chorezone-shop, #chorezone-support) .row > label.lbl {
    flex: 0 1 auto;
    max-width: 100%;
    white-space: normal;
  }
  :is(#chorezone-app, #chorezone-shop, #chorezone-support)
    form.card
    input:not([type='checkbox']):not([type='radio']),
  :is(#chorezone-app, #chorezone-shop, #chorezone-support) form.card button {
    width: 100%;
    margin: 4px 0;
  }
  :is(#chorezone-app, #chorezone-shop, #chorezone-support) form.card label.lbl {
    display: flex;
    width: 100%;
    margin: 8px 0 4px;
    gap: 10px;
    justify-content: flex-start;
    text-align: left;
    line-height: 1.35;
  }
  :is(#chorezone-app, #chorezone-shop, #chorezone-support) .chore {
    font-size: 1.1rem;
    padding: 12px;
  }
  :is(#chorezone-app, #chorezone-shop, #chorezone-support) h1 {
    font-size: 1.2rem;
  }
  :is(#chorezone-app, #chorezone-shop, #chorezone-support).kid h1 {
    font-size: 1.4rem;
  }
  :is(#chorezone-app, #chorezone-shop, #chorezone-support) .day {
    min-width: 0;
    flex: 1 1 0;
    padding: 6px 2px;
    font-size: 0.85rem;
  }
  :is(#chorezone-app, #chorezone-shop, #chorezone-support) .row:has(> .day) {
    gap: 4px;
    flex-wrap: nowrap;
  }
}
@media print {
  :is(#chorezone-app, #chorezone-shop, #chorezone-support) .czg {
    display: block;
  }
  :is(#chorezone-app, #chorezone-shop, #chorezone-support) header,
  :is(#chorezone-app, #chorezone-shop, #chorezone-support) .tabs,
  :is(#chorezone-app, #chorezone-shop, #chorezone-support) .noprint,
  #cc-savebar {
    display: none;
  }
}

/* ---- full-screen page (?chorezone=app): no theme layout around the app ---- */
body.cc-full {
  margin: 0;
  padding: 16px clamp(10px, 3vw, 32px);
}
body.cc-full :is(#chorezone-app, #chorezone-shop, #chorezone-support) {
  max-width: 1280px;
  margin: 0 auto;
}
/* 3.6.0: a child's colors on the parents' Kids tab, with a small preview */
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .kcol input[type='color'] {
  width: 44px;
  height: 30px;
  padding: 2px;
  vertical-align: middle;
  cursor: pointer;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .kprev {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 16px;
  margin: 4px 0 8px;
  background: linear-gradient(160deg, #ffe29f, #ffa99f 55%, #ff9de2);
  color: #2b2140;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .kprev b {
  font-size: 1.1rem;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .kprev .kp-card {
  padding: 6px 12px;
  border-radius: 14px;
  border: 3px solid #fff;
  background: #fffffff0;
  color: #2b2140;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .kprev .kp-hi {
  padding: 6px 12px;
  border-radius: 14px;
  background: #7c3aed;
  color: #fff;
  font-weight: bold;
}
/* 3.6.1: narrower pages and phones: child and chore on one line, then Reassign | Charge penalty | done box */
@container cc (max-width:720px) {
  :is(#chorezone-app, #chorezone-shop, #chorezone-support) .sgrid {
    display: block;
  }
  :is(#chorezone-app, #chorezone-shop, #chorezone-support) .sgrid > .srow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--cc-line);
  }
  :is(#chorezone-app, #chorezone-shop, #chorezone-support) .sgrid > .srow:last-of-type {
    border-bottom: 0;
  }
  :is(#chorezone-app, #chorezone-shop, #chorezone-support) .sgrid > .srow::after {
    content: '';
    order: -1;
    flex-basis: 100%;
    height: 0;
  }
  :is(#chorezone-app, #chorezone-shop, #chorezone-support) .sgrid .who {
    order: -2;
    min-width: 0;
  }
  :is(#chorezone-app, #chorezone-shop, #chorezone-support) .sgrid .sc-ch {
    order: -1;
    flex: 1 1 0;
    min-width: 8em;
  }
  :is(#chorezone-app, #chorezone-shop, #chorezone-support) .sgrid .sc-rx:empty,
  :is(#chorezone-app, #chorezone-shop, #chorezone-support) .sgrid .sc-px:empty,
  :is(#chorezone-app, #chorezone-shop, #chorezone-support) .sgrid .sc-bx:empty {
    display: none;
  }
  :is(#chorezone-app, #chorezone-shop, #chorezone-support) .sgrid button {
    font-size: 0.85em;
    padding: 5px 8px;
  }
  :is(#chorezone-app, #chorezone-shop, #chorezone-support) .sgrid > .srow {
    gap: 6px 8px;
  }
}
/* 4.0: parent login / sign-up, messages, the trial banner and the subscription card */
:is(#chorezone-app, #chorezone-shop, #chorezone-support) button.linkish {
  background: none;
  border: 0;
  padding: 4px 0;
  color: var(--cc-accent);
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .m.err {
  color: var(--cc-bad);
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .m.ok {
  color: var(--cc-good);
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  border-left: 6px solid var(--cc-accent);
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .chip {
  display: inline-block;
  font-size: 0.75rem;
  padding: 1px 8px;
  border-radius: 9px;
  background: var(--cc-soft, rgba(127, 127, 127, 0.15));
  vertical-align: middle;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) input[readonly] {
  opacity: 0.75;
}
/* 4.1: the shop ([chorezone_shop]) */
#chorezone-shop .sgrid2 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}
#chorezone-shop .prod {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
}
#chorezone-shop .prod img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: var(--cc-radius);
  background: var(--cc-soft);
}
#chorezone-shop .prod .ph {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: var(--cc-radius);
  background: var(--cc-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}
#chorezone-shop .prod h3 {
  margin: 0.2em 0 0;
}
#chorezone-shop .price {
  font-weight: 700;
  font-size: 1.1rem;
}
#chorezone-shop .cartbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}
#chorezone-shop table.cart {
  width: 100%;
  border-collapse: collapse;
}
#chorezone-shop table.cart td {
  padding: 6px 4px;
  border-bottom: 1px solid var(--cc-line);
  vertical-align: middle;
}
#chorezone-shop table.cart input {
  width: 4.5em;
}
/* 4.1: grace / read-only notices, the reminder pop-up, support mode */
#chorezone-app .robar {
  border-left: 6px solid var(--cc-bad);
}
#chorezone-app .supbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  background: #7c2d12;
  color: #fff;
  border-radius: var(--cc-radius);
  padding: 8px 12px;
  margin: 0 0 10px;
}
#chorezone-app .supbar button {
  background: #fff;
  color: #7c2d12;
  border-color: #fff;
}
.cz-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.cz-modal > div {
  background: #fff;
  color: #1f2937;
  max-width: 520px;
  width: 100%;
  border-radius: 14px;
  padding: 20px 22px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  font-family: inherit;
  line-height: 1.45;
}
.cz-modal h2 {
  margin: 0 0 0.4em;
  font-size: 1.3rem;
}
.cz-modal .big {
  font-size: 2.2rem;
  font-weight: 800;
  margin: 0.2em 0;
}
.cz-modal .acts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.cz-modal button {
  font: inherit;
  padding: 9px 16px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  background: #fff;
  cursor: pointer;
}
.cz-modal button.p {
  background: #4f46e5;
  border-color: #4f46e5;
  color: #fff;
}

/* 4.3: bonuses and chore notes */
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .chip.bonus {
  background: #fef3c7;
  color: #92400e;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .knote {
  display: block;
  margin-top: 6px;
  font-size: 0.95rem;
  font-style: italic;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .sgrid .sc-ch input.snote {
  display: block;
  width: 100% !important;
  max-width: 36em;
  margin: 6px 0 0;
  padding: 5px 8px;
  font-size: 0.85rem;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .sgrid .sc-ch .pnote {
  display: none;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .sgrid button.bon-on {
  background: #fef3c7;
  color: #92400e;
  border-color: #f59e0b;
}
@media print {
  :is(#chorezone-app, #chorezone-shop, #chorezone-support) .sgrid .sc-ch .pnote {
    display: block;
    font-style: italic;
  }
}

/* 4.4: Boho neutral emoji style (Settings > Kids' header emoji, or the website default in ChoreZone > Layout).
   Palette: blush #DDBAB8, sage #AEAB82, dusty blue #87A5A7, navy #2E526A, sand #ECCFA7, brown #97715C.
   Emojis are softened (they cannot be recolored), and sit on soft circles in the palette. A child's own page colors still win. */
:is(#chorezone-app, #chorezone-shop, #chorezone-support).boho {
  --bh-blush: #ddbab8;
  --bh-sage: #aeab82;
  --bh-blue: #87a5a7;
  --bh-navy: #2e526a;
  --bh-sand: #eccfa7;
  --bh-brown: #97715c;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support).boho
  :is(.emoji:not(img), .avatar, .kidemo, .pick, .cemo) {
  filter: saturate(0.62) sepia(0.18) brightness(1.02);
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support).boho .emoji:not(img) {
  display: inline-grid;
  place-items: center;
  width: 1.75em;
  height: 1.75em;
  font-size: 1.7rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--bh-c, var(--bh-sand)) 28%, #fff);
  flex: 0 0 auto;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support).boho .chore:nth-of-type(6n + 1) .emoji:not(img) {
  --bh-c: var(--bh-blush);
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support).boho .chore:nth-of-type(6n + 2) .emoji:not(img) {
  --bh-c: var(--bh-sage);
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support).boho .chore:nth-of-type(6n + 3) .emoji:not(img) {
  --bh-c: var(--bh-blue);
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support).boho .chore:nth-of-type(6n + 4) .emoji:not(img) {
  --bh-c: var(--bh-sand);
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support).boho .chore:nth-of-type(6n + 5) .emoji:not(img) {
  --bh-c: var(--bh-brown);
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support).boho .chore:nth-of-type(6n + 6) .emoji:not(img) {
  --bh-c: var(--bh-navy);
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support).boho .hello .avatar {
  display: inline-grid;
  place-items: center;
  width: 1.45em;
  height: 1.45em;
  border-radius: 50%;
  background: color-mix(in srgb, var(--bh-blush) 30%, #fff);
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support).boho .pick.on {
  outline-color: var(--bh-navy);
  background: color-mix(in srgb, var(--bh-sand) 55%, #fff);
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support).boho.kid {
  --kid-ink: var(--kid-text, #2e3f4f);
  --kid-pg: var(--kid-pgtext, var(--kid-text, #2e3f4f));
  --kid-hi: var(--kid-acc, #2e526a);
  --kid-muted: #6b6150;
  background: var(--kid-bg, linear-gradient(160deg, #f6ece0, #ebd6cc 55%, #d7e1df));
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support).boho.kid h1 {
  text-shadow: none;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support).boho .chore {
  border-color: #fffdf8;
  box-shadow: 0 5px 0 #6b61502a;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support).boho .chore.done {
  background: #e6e4cf;
  border-color: var(--bh-sage);
  color: #3d4530;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support).boho .chore.done .m {
  color: #55603f;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support).boho .chore input[type='checkbox'],
:is(#chorezone-app, #chorezone-shop, #chorezone-support).boho.kid .chore input[type='checkbox'] {
  accent-color: #7e7b57;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support).boho .stars,
:is(#chorezone-app, #chorezone-shop, #chorezone-support).boho.kid .stars {
  background: color-mix(in srgb, var(--bh-sand) 75%, #fff);
  color: var(--bh-navy);
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support).boho .track,
:is(#chorezone-app, #chorezone-shop, #chorezone-support).boho.kid .track {
  background: #ead9c8;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support).boho .track i {
  background: linear-gradient(90deg, var(--bh-sage), var(--bh-blue));
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support).boho.kid .day.today,
:is(#chorezone-app, #chorezone-shop, #chorezone-support).boho .day.today {
  border-color: var(--bh-sage);
}
@media (prefers-reduced-motion: reduce) {
  :is(#chorezone-app, #chorezone-shop, #chorezone-support).boho .emoji:not(img) {
    animation: none;
  }
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support).boho .chip.earn {
  background: #e4e3cf;
  color: #4a4f2c;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support).boho .chip.pen {
  background: #f1dedc;
  color: #7a3f3a;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support).boho .chip.bonus {
  background: #f4e4cb;
  color: #6b4a2e;
}
/* ---- 4.6: approval, reward points, rewards chest, grab-it chores, holidays, the daily chore display ---- */
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .nb {
  display: inline-block;
  min-width: 1.5em;
  padding: 0 0.45em;
  border-radius: 999px;
  background: #b91c1c;
  color: #fff;
  font-size: 0.75em;
  font-weight: 800;
  line-height: 1.5;
  text-align: center;
  vertical-align: 0.1em;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .tabs .tab .nb {
  margin-left: 0.2em;
}
@container cc (max-width:560px) {
  :is(#chorezone-app, #chorezone-shop, #chorezone-support) .tabs.bar-fill .tab[data-t='acct'] {
    grid-column: auto;
  }
  :is(#chorezone-app, #chorezone-shop, #chorezone-support) .tabs.bar-fill.cz-odd .tab[data-t='acct'] {
    grid-column: 1/-1;
  }
}
/* 4.6.1: the login tabs (Parent, I'm a kid, Chore display) are equal-size buttons, icon and text centered together */
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .ltabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  align-items: stretch;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .ltabs.lt2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .ltabs .tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35em;
  margin: 0;
  min-width: 0;
  text-align: center;
  padding-left: 8px;
  padding-right: 8px;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .chip.pts {
  background: #ede9fe;
  color: #5b21b6;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .chip.hol {
  background: #e0f2fe;
  color: #075985;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support).boho .chip.pts {
  background: #dce5e6;
  color: #2e526a;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support).boho .chip.hol {
  background: #e7eef0;
  color: #2e526a;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .kwait {
  display: block;
  margin-top: 6px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #92400e;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .chore.done.wait {
  background: #fef9c3;
  border-color: #eab308;
  color: #713f12;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support).boho .chore.done.wait {
  background: #f4e4cb;
  border-color: var(--bh-sand);
  color: #5a3e26;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .bchip.pts {
  color: #5b21b6;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) b.pend,
:is(#chorezone-app, #chorezone-shop, #chorezone-support) small.pend {
  color: #b45309;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) ul.recent b.pend {
  opacity: 0.75;
  font-style: italic;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) tr.pend td {
  background: #fffbeb;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) ul.recent b.predeem,
:is(#chorezone-app, #chorezone-shop, #chorezone-support) ul.recent b.predeem + * {
  white-space: nowrap;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) ul.recent .ract {
  display: flex;
  align-items: center;
  gap: 8px;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .khist .ksearch {
  flex: 1 1 14em;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .khist .ksearch input {
  width: 100%;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) ul.chest {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) ul.chest li {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--cc-line);
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) ul.chest .cn {
  flex: 1 1 10em;
  min-width: 0;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) ul.chest .cost {
  font-weight: 800;
  white-space: nowrap;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) ul.chest button[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .grab {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--cc-line);
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .grab:last-child {
  border-bottom: 0;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .grab .emoji:not(img) {
  font-size: 1.8rem;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .grab .gbody {
  flex: 1 1 12em;
  min-width: 0;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .grab .gact {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .grab .gchk input {
  width: 34px;
  height: 34px;
  accent-color: #16a34a;
  cursor: pointer;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .grab.mine {
  background: color-mix(in srgb, #dcfce7 55%, transparent);
  border-radius: 14px;
  padding: 12px;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .sgrid .sc-ch .apbtn {
  display: inline-block;
  margin: 4px 0 0 6px;
  padding: 2px 8px;
  font-size: 0.8rem;
  background: #fef3c7;
  color: #92400e;
  border-color: #f59e0b;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .appr h4 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 14px 0 4px;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .appr h4 button {
  font-size: 0.85rem;
  font-weight: 600;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .gedit .gcard {
  border: 1px solid var(--cc-line);
  border-radius: var(--cc-radius);
  padding: 10px 12px;
  margin: 10px 0;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .gedit .gcard label {
  flex: 0 1 auto;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .gedit .gcard input[type='number'] {
  width: 7em;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .gedit .gcard input.snote {
  width: 100%;
  max-width: 40em;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .gedit .gst {
  flex: 1 1 16em;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .gedit .wait {
  color: #b45309;
  font-weight: 700;
}
/* the daily chore display */
:is(#chorezone-app, #chorezone-shop, #chorezone-support).disp header {
  flex-wrap: wrap;
  gap: 6px 16px;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support).disp .dclock {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  font-size: 1.15rem;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support).disp .dclock button {
  font-size: 0.85rem;
  padding: 4px 10px;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .dgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 14px;
  align-items: start;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .dkid {
  margin: 0;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .dkid .dhead {
  display: flex;
  align-items: center;
  gap: 10px;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .dkid .dhead .avatar {
  font-size: 2.4rem;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .dkid .dhead h2 {
  flex: 1;
  margin: 0;
  font-size: 1.5rem;
  min-width: 0;
  overflow-wrap: anywhere;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .dkid .dpct {
  font-size: 1.3rem;
  font-weight: 800;
  white-space: nowrap;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .dkid .dpct.all::after {
  content: ' 🏆';
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .dkid .track {
  margin: 10px 0;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) ul.dlist {
  list-style: none;
  margin: 0;
  padding: 0;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) ul.dlist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--cc-line);
  font-size: 1.1rem;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) ul.dlist li:last-child {
  border-bottom: 0;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) ul.dlist .dic {
  font-size: 1.4rem;
  line-height: 1.1;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) ul.dlist .dn {
  flex: 1;
  min-width: 0;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) ul.dlist li.done .dn {
  opacity: 0.75;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) ul.dlist li.done .dt {
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) ul.dlist li.pend .dn .m {
  color: #b45309;
  font-weight: 700;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .dsum {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 10px 0 4px;
  font-size: 1.05rem;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .ddet {
  margin-top: 8px;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .dhol {
  text-align: center;
  font-weight: 700;
  font-size: 1.15rem;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .hello .hstat {
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: 100%;
  min-width: 0;
}
/* ---- 4.7: chore available days, late chores, the missed lock and the score ---- */
:is(#chorezone-app, #chorezone-shop, #chorezone-support) td.cdays {
  white-space: nowrap;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) td.cdays .lbl {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin: 0 1px;
  font-size: 0.75rem;
  line-height: 1.1;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .sdone.miss {
  background: #fee2e2;
  border-color: #b91c1c;
  color: #b91c1c;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .stag {
  display: inline-block;
  margin: 4px 0 0 6px;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .stag.miss {
  background: #fee2e2;
  color: #991b1b;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .stag.late {
  background: #ffedd5;
  color: #9a3412;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .klate {
  display: block;
  margin-top: 6px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #9a3412;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .kmiss {
  display: block;
  margin-top: 6px;
  font-size: 0.95rem;
  font-weight: 800;
  color: #b91c1c;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .chore.late:not(.done) {
  border-color: #fb923c;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .chore.missed {
  opacity: 0.8;
  border-color: #fca5a5;
  cursor: default;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .chore .xmark {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #fee2e2;
  color: #b91c1c;
  font-size: 1.4rem;
  font-weight: 900;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .latec h3,
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .scorec h3 {
  margin-top: 0;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .scorec .srow2 {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .bchip.sc {
  display: inline-block;
  padding: 6px 12px;
  background: var(--kid-card, #fffffff0);
  color: #92400e;
  border: 3px solid #fff;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) ul.dlist li.late .dn .m {
  color: #9a3412;
  font-weight: 700;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .chore > span[style*='flex:1'] {
  min-width: 0;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .kmiss,
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .stag {
  overflow-wrap: anywhere;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .stag.ok {
  background: #dcfce7;
  color: #166534;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .sgrid .sc-ch .linkish {
  margin-left: 6px;
  font-size: 0.8rem;
}
/* ---- 4.8: premium locks (free version), Feature Options, the kiosk ---- */
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .czb-lock {
  position: relative;
  cursor: pointer;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .czb-lock > * {
  opacity: 0.45;
  filter: grayscale(1);
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .czb-lock::after {
  content: '🔒 Premium';
  position: absolute;
  top: 10px;
  right: 12px;
  padding: 2px 10px;
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e;
  font-size: 0.8rem;
  font-weight: 800;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .cz-pl {
  opacity: 0.45;
  filter: grayscale(1);
  cursor: pointer;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .tab.cz-lockd {
  opacity: 0.5;
  filter: grayscale(1);
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .fopt {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--cc-line);
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .fopt input {
  margin-top: 4px;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .ltabs.lt4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 1fr;
}
@container cc (max-width:560px) {
  :is(#chorezone-app, #chorezone-shop, #chorezone-support) .ltabs.lt4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .kqh {
  text-align: center;
  margin: 8px 0 14px;
  color: var(--kid-pg, inherit);
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .kqgrid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) button.kqcard {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 20px 12px;
  margin: 0;
  font-size: 1.3rem;
  cursor: pointer;
  text-align: center;
  min-height: 170px;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) button.kqcard .avatar {
  font-size: 3.2rem;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) button.kqcard .m {
  font-size: 0.95rem;
  font-weight: 600;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) button.kqcard[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

/* 4.9: the icon of every tab button sits in a fixed-width slot; where the buttons stack in a grid (phones), they line up on the left so the icons form a straight column */
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .tab .ti {
  display: inline-flex;
  justify-content: center;
  flex: 0 0 1.45em;
  width: 1.45em;
}
@container cc (max-width:560px) {
  :is(#chorezone-app, #chorezone-shop, #chorezone-support) .tabs.bar-fill .tab {
    justify-content: flex-start;
    text-align: left;
    padding-left: 12px;
    padding-right: 8px;
  }
  :is(#chorezone-app, #chorezone-shop, #chorezone-support) .ltabs.lt4 .tab {
    justify-content: flex-start;
    text-align: left;
    padding-left: 12px;
  }
}
/* 4.9: payroll */
:is(#chorezone-app) .pr .rvbar {
  position: sticky;
  bottom: 0;
  background: inherit;
  padding: 8px 0;
  z-index: 2;
  align-items: center;
}
:is(#chorezone-app) .pr .rvbar .p {
  margin-left: auto;
}
:is(#chorezone-app) .pr .rvk {
  margin: 12px 0;
}
:is(#chorezone-app) .pr td.neg,
:is(#chorezone-app) .pr .neg {
  color: #b91c1c;
}
:is(#chorezone-app) .pr details {
  margin: 6px 0;
}
:is(#chorezone-app) .pr .pinv {
  margin: 10px 0;
}
.cz-modal.pay.wide > div {
  max-width: 720px;
  width: min(720px, 94vw);
}
.cz-modal.pay .warn {
  background: #fff7ed;
  border-left: 4px solid #d97706;
  padding: 8px 10px;
  border-radius: 6px;
}
.cz-modal.pay label.lbl {
  display: block;
  margin: 6px 0;
}
:is(#chorezone-app) .kpay td small {
  display: block;
  opacity: 0.75;
  font-size: 0.8em;
}
:is(#chorezone-app) .kpay tr.tu td {
  color: #b45309;
}
.cz-modal.pay > div {
  max-height: 90vh;
  overflow: auto;
}
.cz-modal.pay input:not([type='radio']):not([type='checkbox']) {
  padding: 7px 9px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font: inherit;
  width: 100%;
  box-sizing: border-box;
}
.cz-modal.pay .row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0;
}
.cz-modal.pay .row label {
  flex: 1 1 180px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 0.92em;
}
.cz-modal.pay .m {
  color: #6b7280;
  font-size: 0.9em;
}
.cz-modal.pay ul.recent {
  list-style: none;
  padding: 0;
  margin: 6px 0;
}
.cz-modal.pay ul.recent li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid #eee;
}
.cz-modal.pay .amt.penalty {
  color: #b91c1c;
}
.cz-modal.pay .amt.earn {
  color: #15803d;
}

/* 4.9.1: medium widths (a phone held sideways, or a browser window about half a screen wide: a window up to 1000px wide with the app wider than a phone): the tab buttons form two even rows instead of
   one crowded row, and Settings sits in a third row under the last button of the second row. Narrower still: the phone grid below. */
@media (max-width: 1000px) {
  @container cc (min-width:561px) {
    :is(#chorezone-app, #chorezone-shop, #chorezone-support) .tabs.bar-fill {
      grid-auto-flow: row;
      grid-template-columns: repeat(var(--cz-tc, 4), minmax(0, 1fr));
    }
    :is(#chorezone-app, #chorezone-shop, #chorezone-support) .tabs.bar-fill .tab {
      font-size: var(--cz-tabfs, 1em);
    }
    :is(#chorezone-app, #chorezone-shop, #chorezone-support) .tabs.bar-fill .tab[data-t='set'] {
      order: 1;
      grid-row: 3;
      grid-column: var(--cz-sc, 4) / span 1;
    }
  }
}
/* 4.9.1: phone held upright: Settings is the last button (full width when the count is odd) and My account takes its place in the grid */
@container cc (max-width:560px) {
  :is(#chorezone-app, #chorezone-shop, #chorezone-support) .tabs.bar-fill .tab[data-t='acct'] {
    grid-column: auto;
    order: 0;
  }
  :is(#chorezone-app, #chorezone-shop, #chorezone-support) .tabs.bar-fill .tab[data-t='set'] {
    order: 1;
    grid-column: auto;
  }
  :is(#chorezone-app, #chorezone-shop, #chorezone-support) .tabs.bar-fill.cz-odd .tab[data-t='acct'] {
    grid-column: auto;
  }
  :is(#chorezone-app, #chorezone-shop, #chorezone-support) .tabs.bar-fill.cz-odd .tab[data-t='set'] {
    grid-column: 1/-1;
  }
}
/* 4.9.1: a little more room between the icon and the name on the login buttons */
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .ltabs .tab {
  gap: 0.6em;
}
/* 4.9.1: the day picker always spans the full width: seven equal buttons with even gaps */
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .row:has(> .day) {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
  justify-content: stretch;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .row:has(> .day) > .day {
  min-width: 0;
  width: 100%;
  margin: 0;
}
/* 4.9.1: the child's header tiles (stars, earnings, points, score) share one row on a phone held upright */
@container cc (max-width:480px) {
  :is(#chorezone-app, #chorezone-shop, #chorezone-support) .hello .hstat {
    flex: 1 1 100%;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 5px;
    margin-left: 0;
    max-width: 100%;
  }
  :is(#chorezone-app, #chorezone-shop, #chorezone-support) .hello .hstat > * {
    flex: 1 1 0;
    min-width: 0;
    margin: 0;
    padding: 5px 3px;
    font-size: clamp(0.72rem, 3.4cqi, 0.95rem);
    border-width: 2px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.2em;
  }
}
@container cc (max-width:480px) {
  :is(#chorezone-app, #chorezone-shop, #chorezone-support) .row:has(> .day) {
    gap: 4px;
  }
  :is(#chorezone-app, #chorezone-shop, #chorezone-support) .row:has(> .day) > .day {
    padding: 6px 0;
    font-size: clamp(0.68rem, 3.2cqi, 0.85rem);
  }
}

/* 4.9.2: Chores tab: each chore's Available days and Restrict to sit in their own rows under it, the boxes spread across */
:is(#chorezone-app) table.ch tr.chm td {
  border-bottom: 0;
  padding-bottom: 2px;
}
:is(#chorezone-app) table.ch tr.chx td {
  padding-top: 0;
  text-align: left;
}
:is(#chorezone-app) table.ch .chopt {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 16px;
  margin: 4px 0;
}
:is(#chorezone-app) table.ch .chopt .chl {
  flex: 0 0 13em;
  font-weight: 600;
  font-size: 0.92em;
}
:is(#chorezone-app) table.ch .chopt .chl small {
  font-weight: 400;
  opacity: 0.75;
}
:is(#chorezone-app) table.ch .chopt .cdays {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  flex: 1 1 auto;
}
:is(#chorezone-app) table.ch .chopt .lbl {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  white-space: nowrap;
}
@container cc (max-width:560px) {
  :is(#chorezone-app) table.ch .chopt .chl {
    flex-basis: 100%;
  }
}
:is(#chorezone-app) table.ch .chopt input[type='checkbox'] {
  width: auto !important;
  min-width: 0 !important;
  max-width: none;
  flex: 0 0 auto;
  margin: 0 !important;
  padding: 0;
  height: auto;
}
@container cc (max-width:1100px) {
  :is(#chorezone-app) table.ch tr.chm {
    margin-bottom: 0;
    border-bottom: 0;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }
  :is(#chorezone-app) table.ch tr.chx {
    display: block;
    margin-top: 0;
    border-top: 1px dashed var(--cc-line);
    border-top-left-radius: 0;
    border-top-right-radius: 0;
  }
  :is(#chorezone-app) table.ch tr.chx td {
    display: block;
  }
  :is(#chorezone-app) table.ch tr.chx td::before {
    display: none;
  }
  :is(#chorezone-app) table.ch tr.chm td:nth-last-child(2) {
    grid-column: auto;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
  }
  :is(#chorezone-app) table.ch tr.chm td:nth-last-child(2)::before {
    flex: 0 0 auto;
  }
}

/* rc5: WordPress emoji images inherit the surrounding text size, not the app's large chore-avatar treatment. */
:is(#chorezone-app, #chorezone-shop, #chorezone-support) img.emoji {
  font-size: inherit;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) :is(button, a.btn) img.emoji {
  margin-inline: 0 0.4em !important;
  flex-shrink: 0;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .tab .ti {
  align-items: center;
  min-width: 1.45em;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .tab .ti img.emoji {
  margin: 0 !important;
  max-width: 100%;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) :is(.tabs.bar-fill, .ltabs) .tab {
  column-gap: 0.65em;
}
/* Portrait schedule: child and completion control above the chore; notes and actions stay in their own columns. */
@container cc (max-width:900px) {
  :is(#chorezone-app, #chorezone-shop, #chorezone-support) .sgrid > .srow {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px 8px;
    align-items: start;
    padding: 12px 0;
  }
  :is(#chorezone-app, #chorezone-shop, #chorezone-support) .sgrid > .srow::after {
    display: none;
  }
  :is(#chorezone-app, #chorezone-shop, #chorezone-support) .sgrid .who {
    grid-column: 1/6;
    grid-row: 1;
    order: 0;
    min-width: 0;
    overflow-wrap: anywhere;
    align-self: center;
  }
  :is(#chorezone-app, #chorezone-shop, #chorezone-support) .sgrid .sdone {
    grid-column: 6;
    grid-row: 1;
    justify-self: end;
    order: 0;
    width: 32px;
    height: 32px;
  }
  :is(#chorezone-app, #chorezone-shop, #chorezone-support) .sgrid .sc-ch {
    grid-column: 1/-1;
    grid-row: 2;
    order: 0;
    min-width: 0;
    width: 100%;
    overflow-wrap: anywhere;
  }
  :is(#chorezone-app, #chorezone-shop, #chorezone-support) .sgrid .sc-rx {
    grid-column: 4/7;
  }
  :is(#chorezone-app, #chorezone-shop, #chorezone-support) .sgrid .sc-px {
    grid-column: 1/4;
  }
  :is(#chorezone-app, #chorezone-shop, #chorezone-support) .sgrid .sc-bx {
    grid-column: 1/-1;
  }
  :is(#chorezone-app, #chorezone-shop, #chorezone-support) .sgrid :is(.sc-rx, .sc-px, .sc-bx) {
    min-width: 0;
    align-self: stretch;
  }
  :is(#chorezone-app, #chorezone-shop, #chorezone-support) .sgrid :is(.sc-rx, .sc-px, .sc-bx) > button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 40px;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  :is(#chorezone-app, #chorezone-shop, #chorezone-support) .sgrid .sc-ch .linkish {
    display: block;
    max-width: 100%;
    margin: 6px 0 0;
    text-align: left;
    white-space: normal;
  }
}
@container cc (max-width:560px) {
  :is(#chorezone-app, #chorezone-shop, #chorezone-support) .tabs.bar-fill .tab {
    font-size: clamp(0.95rem, 4.4cqi, 1.05rem);
  }
  :is(#chorezone-app, #chorezone-shop, #chorezone-support) .tabs.bar-fill .tab .tl {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  :is(#chorezone-app, #chorezone-shop, #chorezone-support) .tabs.bar-fill .tab .nb {
    margin-left: 0;
  }
  :is(#chorezone-app, #chorezone-shop, #chorezone-support) .lbl:has(input[type='file']) {
    flex-wrap: wrap;
    min-width: 0;
    max-width: 100%;
  }
  :is(#chorezone-app, #chorezone-shop, #chorezone-support) input[type='file'] {
    min-width: 0;
    max-width: 100%;
  }
  /* Settings actions and flex labels must shrink with the card, including enlarged phone text. */
  #chorezone-app .cz-settings .card {
    overflow-wrap: anywhere;
  }
  #chorezone-app .cz-settings .row > label {
    min-width: 0;
    max-width: 100%;
  }
  #chorezone-app .cz-settings button {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  #chorezone-app .cz-settings .row > button {
    flex-shrink: 1;
  }
  #chorezone-app [data-blk='balance'] table {
    table-layout: fixed;
  }
  #chorezone-app [data-blk='balance'] :is(th, td) {
    overflow-wrap: anywhere;
    font-size: 0.85em;
  }
}

/* rc6: slightly larger parent controls while preserving the portrait spacing and bounded emoji images. */
@media (max-width: 600px) {
  #chorezone-app:not(.kid):not(.disp) {
    font-size: 1.05rem;
  }
}
@container cc (max-width:560px) {
  #chorezone-app:not(.kid):not(.disp) .tabs .tab {
    min-height: 58px;
    padding-top: 10px;
    padding-bottom: 10px;
  }
  #chorezone-app:not(.kid):not(.disp) :is(button, a.btn) img.emoji {
    font-size: 1.15em;
  }
  #chorezone-app .sgrid :is(.who, .sc-ch) {
    font-size: 1.05rem;
  }
  #chorezone-app .sgrid .sc-ch .m {
    font-size: 0.95rem;
  }
  #chorezone-app .sgrid .sc-ch input.snote {
    font-size: 0.95rem;
    padding: 7px 9px;
  }
  #chorezone-app .sgrid .sc-ch .linkish {
    font-size: 0.9rem;
  }
  #chorezone-app .sgrid :is(.sc-rx, .sc-px, .sc-bx) > button {
    font-size: 1rem;
    min-height: 44px;
    padding: 8px 10px;
  }
}

@container cc (max-width:560px) {
  #chorezone-app:not(.kid):not(.disp):not(.czlook-harbor):not(.czlook-boho):not(.czlook-midnight) .tabs.bar-fill .tab .ti {
    flex: 0 0 2.1rem;
    width: 2.1rem;
    min-width: 2.1rem;
    font-size: 2rem;
  }
  #chorezone-app:not(.kid):not(.disp):not(.czlook-harbor):not(.czlook-boho):not(.czlook-midnight) .tabs.bar-fill .tab .ti img.emoji {
    font-size: 2rem;
  }
  #chorezone-app:not(.kid):not(.disp) .tabs.bar-fill > .tab[data-t='set'] {
    justify-content: center;
    text-align: center;
  }
}

/* rc7: Reassign above Bonus (left) and Charge penalty (right). */
@container cc (max-width:900px) {
  #chorezone-app .sgrid .sc-rx {
    grid-column: 1/-1;
    grid-row: 3;
  }
  #chorezone-app .sgrid .sc-bx {
    grid-column: 1/4;
    grid-row: 4;
  }
  #chorezone-app .sgrid .sc-px {
    grid-column: 4/7;
    grid-row: 4;
  }
}

/* rc8: earned performance flex, with space for the 150% animation. */
#chorezone-app .score-flex {
  display: inline-block;
  line-height: 1.5;
  vertical-align: middle;
  transform-origin: 50% 75%;
  margin-inline: 0.15em 0.3em;
}
#chorezone-app .score-flex-high {
  animation: cz-score-flex 1.6s ease-in-out 3;
}
@keyframes cz-score-flex {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.5);
  }
}
@media (prefers-reduced-motion: reduce) {
  #chorezone-app .score-flex-high {
    animation: none;
  }
}
#chorezone-app.kid header h1 {
  min-width: 0;
  overflow-wrap: anywhere;
}

/* Respect the website motion switch as well as the device preference. */
#chorezone-app.czoff-motion .score-flex-high {
  animation: none;
}

/* Planner tables keep complete words; narrow screens scroll inside the dialog. */
.cz-modal.plan-preview > div {
  max-width: 960px;
  min-width: 0;
  box-sizing: border-box;
}
.cz-modal.plan-preview .plan-table-scroll {
  overflow-x: auto;
  max-width: 100%;
  margin: 12px 0;
}
.cz-modal.plan-preview table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  table-layout: auto;
}
.cz-modal.plan-preview th,
.cz-modal.plan-preview td {
  padding: 8px 10px;
  text-align: left;
  overflow-wrap: normal;
  word-break: normal;
  border-bottom: 1px solid #d1d5db;
}
.cz-modal.plan-preview th:first-child,
.cz-modal.plan-preview td:first-child {
  min-width: 110px;
}
#chorezone-app .ledger-banner {
  border: 2px solid #b45309;
  background: #fffbeb;
  color: #78350f;
  border-radius: 12px;
  padding: 16px;
  margin: 16px 0;
}
#chorezone-app .ledger-banner.level-3 {
  border-color: #b91c1c;
  background: #fef2f2;
  color: #7f1d1d;
}
#chorezone-app .ledger-banner h2 {
  font-size: 1.15em;
  margin: 0 0 8px;
}
#chorezone-app .ledger-banner p {
  margin: 8px 0;
}

/* Phone previews reflow into labelled cards; no horizontal scrolling is needed. */
.cz-modal .plan-workload-cards {
  display: none;
}
@media (max-width: 600px) {
  .cz-modal.plan-preview > div {
    padding: 18px;
    max-width: 100%;
    overflow-x: hidden !important;
  }
  .cz-modal .plan-table-scroll {
    display: none;
  }
  .cz-modal .plan-workload-cards {
    display: grid;
    gap: 12px;
    min-width: 0;
  }
  .cz-modal .plan-child-card {
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 12px;
    min-width: 0;
  }
  .cz-modal .plan-child-card h4 {
    margin: 0 0 8px;
    overflow-wrap: anywhere;
    font-size: 1.05em;
  }
  .cz-modal .plan-child-card dl {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 12px;
    margin: 0;
  }
  .cz-modal .plan-child-card dt {
    overflow-wrap: anywhere;
  }
  .cz-modal .plan-child-card dd {
    margin: 0;
    font-variant-numeric: tabular-nums;
    text-align: right;
  }
}
.cz-return-top {
  position: fixed;
  z-index: 99999;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  width: 48px;
  min-height: 48px;
  height: 48px;
  padding: 0;
  border: 2px solid currentColor;
  border-radius: 50%;
  font: 700 30px/1 system-ui;
  cursor: pointer;
  box-shadow:
    0 0 0 2px var(--cz-top-edge, #000),
    0 3px 9px #0005;
  opacity: 1;
}
.cz-return-top[hidden] {
  display: none !important;
}
.cz-return-top:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 5px;
  box-shadow: 0 0 0 9px var(--cz-top-edge, #000);
}
.cz-modal .cz-return-top {
  z-index: 100001;
  padding: 0;
  border: 2px solid currentColor;
  border-radius: 50%;
  font: 700 30px/1 system-ui;
}
.cz-modal > div.cz-top-host {
  padding-bottom: 90px;
}
@media (forced-colors: active) {
  .cz-return-top {
    forced-color-adjust: auto;
    background: ButtonFace !important;
    color: ButtonText !important;
    border-color: ButtonText;
    box-shadow: none;
  }
}
/* S07: the two deletion warnings */
.cz-modal.erase > div {
  border-top: 6px solid #b91c1c;
}
.cz-modal.erase .erase-warn {
  background: #fef2f2;
  color: #7f1d1d;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 8px 10px;
}
.cz-modal.erase input[name='erase'] {
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  font-size: 1.05rem;
  padding: 8px 10px;
  letter-spacing: 0.04em;
  margin-top: 4px;
}
.cz-modal.erase button[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}
.cz-modal.erase button.x {
  color: #b91c1c;
  border-color: #fca5a5;
  font-weight: 600;
}
.cz-modal.erase button.x:not([disabled])[data-e='go'] {
  background: #b91c1c;
  color: #fff;
  border-color: #b91c1c;
}

/* 5.2.9-alpha3: Settings > Parent permissions */
.chorezone-app .cz-pperm {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding-top: 0.6em;
  margin-top: 0.8em;
}
#chorezone-app .cz-pperm label.cz-pp {
  display: flex;
  width: 100%;
  align-items: baseline;
  gap: 0.5em;
  margin: 0.35em 0;
}
#chorezone-app .cz-pperm label.cz-pp small {
  flex: 1;
}

/* First parent layout pass: existing controls, with quieter secondary tools. */
#chorezone-app .cz-disclosure {
  min-width: 0;
  border: 1px solid var(--cc-line);
  border-radius: calc(var(--cc-radius) + 6px);
  margin: 10px 0;
  overflow-wrap: anywhere;
}
#chorezone-app .cz-disclosure > summary {
  cursor: pointer;
  padding: 12px 14px;
  min-height: 44px;
  font-weight: 600;
}
#chorezone-app .cz-disclosure > summary:focus-visible {
  outline: 3px solid var(--cc-accent);
  outline-offset: 2px;
}
#chorezone-app .cz-disclosure-body > .card {
  border: 0;
  margin: 0;
}
#chorezone-app .cz-disclosure-body > div:not(.card) {
  padding: 0 14px 14px;
}
#chorezone-app .czb > .cz-disclosure:first-child {
  margin-top: 0;
}
#chorezone-app .cz-settings-index {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}
#chorezone-app .cz-settings-index a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 4px 0;
}
#chorezone-app .cz-settings-heading {
  grid-column: 1 / -1;
  margin: 16px 0 0;
  scroll-margin-top: 100px;
}
#chorezone-app .cz-save-hint {
  margin: 10px 0 16px;
}
#chorezone-app .sgrid {
  display: block;
}
#chorezone-app .sgrid > .srow {
  display: grid;
  grid-template-columns: minmax(5em, 8em) 44px minmax(0, 1fr);
  align-items: start;
  gap: 8px 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--cc-line);
}
#chorezone-app .sgrid > .srow:last-of-type {
  border-bottom: 0;
}
#chorezone-app .sgrid > .srow::after {
  display: none;
}
#chorezone-app .sgrid .who {
  grid-column: 1;
  grid-row: 1;
  overflow-wrap: anywhere;
}
#chorezone-app .sgrid .sdone {
  grid-column: 2;
  grid-row: 1;
  width: 44px;
  height: 44px;
}
#chorezone-app .sgrid .sc-ch {
  grid-column: 3;
  grid-row: 1;
  min-width: 0;
  width: 100%;
}
#chorezone-app .sgrid .sc-ch .pnote {
  display: block;
  margin-top: 6px;
  font-style: italic;
}
#chorezone-app .sgrid .cz-chore-actions {
  grid-column: 3;
  grid-row: 2;
  margin: 0;
}
#chorezone-app .cz-chore-actions .cz-disclosure-body > div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
#chorezone-app .cz-chore-actions :is(.sc-rx, .sc-bx, .sc-px) {
  display: inline-flex;
  width: auto;
}
#chorezone-app .cz-chore-actions :is(button, .sc-rx > button, .sc-bx > button, .sc-px > button) {
  width: auto;
  min-height: 44px;
  height: auto;
  white-space: normal;
}
#chorezone-app .cz-chore-actions label {
  display: block;
  flex: 1 0 100%;
}
#chorezone-app .cz-chore-actions input.snote {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 4px 0 0;
}
@container cc (max-width:560px) {
  #chorezone-app .sgrid > .srow {
    grid-template-columns: minmax(0, 1fr) 44px;
  }
  #chorezone-app .sgrid .sc-ch {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  #chorezone-app .sgrid .cz-chore-actions {
    grid-column: 1 / -1;
    grid-row: 3;
  }
}

/* Parent presentation pass: explicit sections, compact editors and view filters. */
#chorezone-app .cz-settings-group {
  grid-column: 1 / -1;
  margin: 0;
  scroll-margin-top: 100px;
  margin-bottom: 12px;
  background: var(--cc-card);
}
#chorezone-app .cz-settings-group > summary {
  font-size: 1.1em;
  padding: 18px;
}
#chorezone-app .cz-section-contents {
  display: block;
  font-size: .85em;
  font-weight: 400;
  line-height: 1.5;
  margin-top: 6px;
}
#chorezone-app .cz-settings-body { padding: 0 14px 14px; }
#chorezone-app .cz-settings-body .card { margin: 0; }
#chorezone-app .cz-settings-body .czb { min-width: 0; }
#chorezone-app .cz-related,
#chorezone-app .cz-setup-steps,
#chorezone-app .cz-attention {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
#chorezone-app .cz-attention > h3 { flex-basis: 100%; margin-bottom: 0; }
#chorezone-app .cz-related button { text-align: left; }
#chorezone-app .cz-editor-tools { margin: 12px 0; }
#chorezone-app [data-cz-mode][aria-pressed="true"] {
  border-color: var(--cc-accent);
  background: var(--cc-accent);
  color: var(--cc-on-accent);
  font-weight: 700;
}
#chorezone-app .cz-editors > details { background: var(--cc-card); }
#chorezone-app .cz-editors > details[open] { background: transparent; }
#chorezone-app .cz-card-fields { display: block; width: 100%; min-width: 0; }
#chorezone-app .cz-card-fields > tbody { display: block; }
#chorezone-app .cz-card-fields .hd { display: none; }
#chorezone-app .cz-card-fields tr:not(.hd):not(.chx) {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
  gap: 14px;
  padding: 14px;
  border: 0;
}
#chorezone-app .cz-card-fields tr:not(.chx) > td {
  display: block;
  width: auto;
  min-width: 0;
  padding: 0;
  border: 0;
  text-align: left;
}
#chorezone-app .cz-card-fields tr:not(.chx) > td::before {
  content: attr(data-label);
  display: block;
  float: none;
  width: auto;
  margin-bottom: 6px;
  font-weight: 600;
}
#chorezone-app .cz-card-fields input,
#chorezone-app .cz-card-fields select { width: 100%; max-width: 100%; }
#chorezone-app .cz-card-fields tr.chx { display: block; border: 0; }
#chorezone-app .cz-card-fields .chx > td { display: block; padding: 0 14px 14px; }
#chorezone-app .cz-card-fields .chx input { width: auto; }
#chorezone-app .cz-money-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 14px;
}
#chorezone-app .cz-money-overview .card { margin-top: 0; }
#chorezone-app .cz-money-overview p { margin: 8px 0; }
#chorezone-app .cz-warning {
  border-left: 4px solid var(--cc-bad);
  padding: 10px 14px;
  font-weight: 600;
}
@media screen { #chorezone-app .cz-view-hidden { display: none !important; } }
@media print {
  #chorezone-app .cz-filter-empty,
  #chorezone-app .cz-setup-steps,
  #chorezone-app [data-cz-disclosure="getting-started"] { display: none !important; }
}
@container cc (max-width: 600px) {
  #chorezone-app .cz-related button { width: 100%; }
  #chorezone-app .cz-settings-body { grid-template-columns: minmax(0, 1fr); padding: 0 8px 8px; }
  #chorezone-app .cz-settings-group > summary { padding: 14px; }
}

#chorezone-app .cz-disclosure-body > p { padding: 0 14px 14px; }

/* Chart looks (Harbor, Boho, Midnight). Chosen in ChoreZone > Layout.
   These rules are more specific than the older kid-page colors, so the installed
   chart matches the preview. A child's own page colors still win when set. */
#chorezone-app.czlook-harbor,
#chorezone-shop.czlook-harbor,
#chorezone-support.czlook-harbor {
  --cz-bg: #f7f4ee;
  --cz-ink: #1f1a17;
  --cz-muted: #6b625c;
  --cz-card: #fffdf9;
  --cz-child: #d06a45;
  --cz-good: #1b7a43;
  --cz-wait: #8a5a00;
  --cc-accent: #3f3aad;
  --cc-on-accent: #fffdf9;
}
#chorezone-app.czlook-boho,
#chorezone-shop.czlook-boho,
#chorezone-support.czlook-boho {
  --cz-bg: #f4ebdf;
  --cz-ink: #2e3f4f;
  --cz-muted: #6b6158;
  --cz-card: #fffaf3;
  --cz-child: #97715c;
  --cz-good: #5f6840;
  --cz-wait: #8a5a28;
  --cc-accent: #2e526a;
  --cc-on-accent: #f7f1e8;
  font-family: Georgia, "Iowan Old Style", Palatino, "Palatino Linotype", serif;
}
#chorezone-app.czlook-midnight,
#chorezone-shop.czlook-midnight,
#chorezone-support.czlook-midnight {
  --cz-bg: #141820;
  --cz-ink: #f2eee6;
  --cz-muted: #b7b0a6;
  --cz-card: #1c222c;
  --cz-child: #f0a07a;
  --cz-good: #8ed9ae;
  --cz-wait: #f0c36a;
  --cc-accent: #3ecfb8;
  --cc-on-accent: #06241f;
  color-scheme: dark;
}
#chorezone-app.czdark,
#chorezone-shop.czdark,
#chorezone-support.czdark {
  --cz-bg: #141820;
  --cz-ink: #f2eee6;
  --cz-muted: #b7b0a6;
  --cz-card: #1c222c;
  --cz-good: #8ed9ae;
  --cz-wait: #f0c36a;
  color-scheme: dark;
}
#chorezone-app.czlook-harbor.czdark,
#chorezone-shop.czlook-harbor.czdark,
#chorezone-support.czlook-harbor.czdark { --cz-child: #e39a7e; }
#chorezone-app.czlook-boho.czdark,
#chorezone-shop.czlook-boho.czdark,
#chorezone-support.czlook-boho.czdark { --cz-child: #e0c2b0; }

:is(#chorezone-app, #chorezone-shop, #chorezone-support):is(.czlook-harbor, .czlook-boho, .czlook-midnight) {
  --cc-card: var(--cz-card);
  --cc-line: color-mix(in srgb, var(--cz-ink) 14%, transparent);
  --cc-muted: var(--cz-muted);
  --cc-soft: color-mix(in srgb, var(--cc-accent) 16%, var(--cz-card));
  --cc-good: var(--cz-good);
  --cc-on-accent: #fffdf9;
  background: var(--cz-bg);
  color: var(--cz-ink);
  border-radius: 20px;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support):is(.czlook-harbor, .czlook-boho, .czlook-midnight).kid {
  --kid-ink: var(--kid-text, var(--cz-ink));
  --kid-pg: var(--kid-pgtext, var(--kid-text, var(--cz-ink)));
  --kid-hi: var(--kid-acc, var(--cc-accent));
  background: var(--kid-bg, var(--cz-bg));
  color: var(--kid-pg);
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support):is(.czlook-harbor, .czlook-boho, .czlook-midnight) :is(h1, h2, h3) {
  text-shadow: none;
  color: var(--kid-pg, var(--cz-ink));
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support):is(.czlook-harbor, .czlook-boho, .czlook-midnight) .card,
:is(#chorezone-app, #chorezone-shop, #chorezone-support):is(.czlook-harbor, .czlook-boho, .czlook-midnight).kid .card {
  background: var(--kid-card, var(--cz-card));
  color: var(--kid-ink, var(--cz-ink));
  border: 1px solid var(--cc-line);
  border-radius: 18px;
  box-shadow: 0 4px 0 color-mix(in srgb, var(--cz-ink) 10%, transparent);
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support):is(.czlook-harbor, .czlook-boho, .czlook-midnight) :is(button, a.btn),
:is(#chorezone-app, #chorezone-shop, #chorezone-support):is(.czlook-harbor, .czlook-boho, .czlook-midnight).kid :is(button, a.btn) {
  border: 1px solid var(--cc-line);
  border-radius: 14px;
  background: var(--cz-card);
  color: var(--cz-ink);
  box-shadow: none;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support):is(.czlook-harbor, .czlook-boho, .czlook-midnight) :is(button.p, a.btn.p, .tab.on, .day.on),
:is(#chorezone-app, #chorezone-shop, #chorezone-support):is(.czlook-harbor, .czlook-boho, .czlook-midnight).kid :is(button.p, a.btn.p, .tab.on, .day.on) {
  background: var(--kid-hi, var(--cc-accent));
  color: #fffdf9;
  border-color: transparent;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support):is(.czlook-harbor, .czlook-boho, .czlook-midnight) .day,
:is(#chorezone-app, #chorezone-shop, #chorezone-support):is(.czlook-harbor, .czlook-boho, .czlook-midnight).kid .day {
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid var(--cc-line);
  background: var(--cz-card);
  color: var(--cz-ink);
  font-weight: 700;
  transform: none;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support):is(.czlook-harbor, .czlook-boho, .czlook-midnight) .day.today:not(.on) {
  box-shadow: inset 0 0 0 2px var(--cc-accent);
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support):is(.czlook-harbor, .czlook-boho, .czlook-midnight) .chore,
:is(#chorezone-app, #chorezone-shop, #chorezone-support):is(.czlook-harbor, .czlook-boho, .czlook-midnight).kid .chore,
:is(#chorezone-app, #chorezone-shop, #chorezone-support):is(.czlook-harbor, .czlook-boho, .czlook-midnight).kid .chore:not(.done) {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--cc-line);
  border-radius: 18px;
  background: var(--kid-card, var(--cz-card));
  color: var(--kid-ink, var(--cz-ink));
  box-shadow: 0 4px 0 color-mix(in srgb, var(--cz-ink) 10%, transparent);
  font-size: 1.05rem;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support):is(.czlook-harbor, .czlook-boho, .czlook-midnight) .chore.done,
:is(#chorezone-app, #chorezone-shop, #chorezone-support):is(.czlook-harbor, .czlook-boho, .czlook-midnight).kid .chore.done {
  background: color-mix(in srgb, var(--cz-good) 18%, var(--cz-card));
  border-color: color-mix(in srgb, var(--cz-good) 48%, var(--cc-line));
  color: var(--cz-ink);
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support):is(.czlook-harbor, .czlook-boho, .czlook-midnight) .chore.wait {
  background: color-mix(in srgb, var(--cz-wait) 18%, var(--cz-card));
  border-color: color-mix(in srgb, var(--cz-wait) 46%, var(--cc-line));
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support):is(.czlook-harbor, .czlook-boho, .czlook-midnight) .chore .m,
:is(#chorezone-app, #chorezone-shop, #chorezone-support):is(.czlook-harbor, .czlook-boho, .czlook-midnight).kid .m {
  color: var(--cz-muted);
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support):is(.czlook-harbor, .czlook-boho, .czlook-midnight) .chore input[type='checkbox'] {
  appearance: none;
  width: 36px;
  height: 36px;
  margin: 0;
  border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--cz-ink) 28%, transparent);
  background: transparent;
  display: grid;
  place-items: center;
  flex: none;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support):is(.czlook-harbor, .czlook-boho, .czlook-midnight) .chore input[type='checkbox']:checked {
  background: var(--cz-good);
  border-color: var(--cz-good);
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support):is(.czlook-harbor, .czlook-boho, .czlook-midnight) .chore input[type='checkbox']:checked::after {
  content: "✓";
  color: #fffdf9;
  font-weight: 800;
  font-size: 1rem;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support):is(.czlook-harbor, .czlook-boho, .czlook-midnight) :is(.emoji:not(img), .avatar, .kidemo) {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, color-mix(in srgb, white 42%, transparent), transparent 46%),
    color-mix(in srgb, var(--kid-acc, var(--cz-child)) 16%, var(--cz-card));
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--kid-acc, var(--cz-child)) 25%, transparent);
  filter: none;
  font-size: 1.35rem;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support):is(.czlook-harbor, .czlook-boho, .czlook-midnight) .hello .avatar,
:is(#chorezone-app, #chorezone-shop, #chorezone-support):is(.czlook-harbor, .czlook-boho, .czlook-midnight) header .kidemo {
  width: 56px;
  height: 56px;
  font-size: 1.8rem;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support):is(.czlook-harbor, .czlook-boho, .czlook-midnight) .track {
  height: 14px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--cc-accent) 18%, var(--cz-card));
  overflow: visible;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support):is(.czlook-harbor, .czlook-boho, .czlook-midnight) .track:has(> .rocket) {
  margin-top: 36px;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support):is(.czlook-harbor, .czlook-boho, .czlook-midnight) .rocket {
  top: -30px;
  font-size: 1.85rem;
  line-height: 1;
  z-index: 2;
  overflow: visible;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support):is(.czlook-harbor, .czlook-boho, .czlook-midnight) .track i {
  background: var(--cc-accent);
  border-radius: 999px;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support):is(.czlook-harbor, .czlook-boho, .czlook-midnight) :is(.stars, .bchip) {
  background: var(--cz-card);
  color: var(--cz-ink);
  border: 1px solid var(--cc-line);
  border-radius: 999px;
  box-shadow: none;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support):is(.czlook-harbor, .czlook-boho, .czlook-midnight) :is(.kqcard, .dkid) {
  background: var(--cz-card);
  color: var(--cz-ink);
  border-radius: 18px;
  border: 1px solid var(--cc-line);
  box-shadow: 0 4px 0 color-mix(in srgb, var(--cz-ink) 10%, transparent);
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support):is(.czlook-midnight, .czdark) :is(input:not([type='checkbox']):not([type='radio']), select, textarea) {
  background: #10141b;
  color: var(--cz-ink);
  border-color: var(--cc-line);
}

/* The first look pass lost to older rules with equal or higher specificity
   (kid gradient, white chore borders, theme accent). These match those rules. */
body.cc-full:has(.czlook-harbor) { background: #f7f4ee; color: #1f1a17; }
body.cc-full:has(.czlook-boho) { background: #f4ebdf; color: #2e3f4f; }
body.cc-full:has(.czlook-midnight),
body.cc-full:has(.czdark) { background: #141820; color: #f2eee6; }
:is(#chorezone-app, #chorezone-shop, #chorezone-support):is(.czlook-harbor, .czlook-boho, .czlook-midnight).kid,
:is(#chorezone-app, #chorezone-shop, #chorezone-support):is(.czlook-harbor, .czlook-boho, .czlook-midnight).boho.kid {
  background: var(--cz-bg);
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support):is(.czlook-harbor, .czlook-boho, .czlook-midnight) .row:has(> .day) > .day,
:is(#chorezone-app, #chorezone-shop, #chorezone-support):is(.czlook-harbor, .czlook-boho, .czlook-midnight).kid .day.on {
  transform: none;
  border-width: 1px;
  border-radius: 14px;
  box-shadow: none;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support):is(.czlook-harbor, .czlook-boho, .czlook-midnight) .row:has(> .day) > .day.on,
:is(#chorezone-app, #chorezone-shop, #chorezone-support):is(.czlook-harbor, .czlook-boho, .czlook-midnight).kid .day.on {
  background: var(--cc-accent);
  color: var(--cc-on-accent);
  border-color: transparent;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support):is(.czlook-harbor, .czlook-boho, .czlook-midnight) .chore,
:is(#chorezone-app, #chorezone-shop, #chorezone-support):is(.czlook-harbor, .czlook-boho, .czlook-midnight).boho .chore {
  border-width: 1px;
  border-style: solid;
  border-color: var(--cc-line);
  border-radius: 18px;
  box-shadow: 0 4px 0 color-mix(in srgb, var(--cz-ink) 10%, transparent);
  background: var(--cz-card);
  color: var(--cz-ink);
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support):is(.czlook-harbor, .czlook-boho, .czlook-midnight) .chore.done,
:is(#chorezone-app, #chorezone-shop, #chorezone-support):is(.czlook-harbor, .czlook-boho, .czlook-midnight).boho .chore.done {
  background: color-mix(in srgb, var(--cz-good) 18%, var(--cz-card));
  border-color: color-mix(in srgb, var(--cz-good) 48%, var(--cc-line));
  color: var(--cz-ink);
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support):is(.czlook-harbor, .czlook-boho, .czlook-midnight) .track,
:is(#chorezone-app, #chorezone-shop, #chorezone-support):is(.czlook-harbor, .czlook-boho, .czlook-midnight).boho .track,
:is(#chorezone-app, #chorezone-shop, #chorezone-support):is(.czlook-harbor, .czlook-boho, .czlook-midnight).kid .track {
  height: 12px;
  background: color-mix(in srgb, var(--cc-accent) 18%, var(--cz-card));
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support):is(.czlook-harbor, .czlook-boho, .czlook-midnight) .track i,
:is(#chorezone-app, #chorezone-shop, #chorezone-support):is(.czlook-harbor, .czlook-boho, .czlook-midnight).boho .track i {
  background: var(--cc-accent);
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support):is(.czlook-harbor, .czlook-boho, .czlook-midnight) .tabs .tab,
:is(#chorezone-app, #chorezone-shop, #chorezone-support):is(.czlook-harbor, .czlook-boho, .czlook-midnight) .ltabs .tab {
  border-radius: 14px;
  background: var(--cz-card);
  color: var(--cz-ink);
  border: 1px solid var(--cc-line);
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support):is(.czlook-harbor, .czlook-boho, .czlook-midnight) .tabs .tab.on,
:is(#chorezone-app, #chorezone-shop, #chorezone-support):is(.czlook-harbor, .czlook-boho, .czlook-midnight) .ltabs .tab.on {
  background: var(--cc-accent);
  color: var(--cc-on-accent);
  border-color: transparent;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support):is(.czlook-harbor, .czlook-boho, .czlook-midnight) button.sdone {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--cz-ink) 28%, transparent);
  background: transparent;
  color: var(--cz-ink);
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support):is(.czlook-harbor, .czlook-boho, .czlook-midnight) button.sdone.on {
  background: var(--cz-good);
  border-color: var(--cz-good);
  color: #fffdf9;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support):is(.czlook-harbor, .czlook-boho, .czlook-midnight) .kprev {
  background: var(--cz-card);
  color: var(--cz-ink);
  border: 1px solid var(--cc-line);
  border-radius: 18px;
}

/* The chart stays in the site column, the way the preview sits under the page header. */
.chorezone-wrap:has(:is(.czlook-harbor, .czlook-boho, .czlook-midnight)) {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support):is(.czlook-harbor, .czlook-boho, .czlook-midnight) {
  padding-left: 0;
  padding-right: 0;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support):is(.czlook-harbor, .czlook-boho, .czlook-midnight) .tabs.bar-fill .tab {
  min-height: 52px;
  width: 100%;
  border-radius: 14px;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support):is(.czlook-harbor, .czlook-boho, .czlook-midnight) .tabs .tab .ti {
  font-size: 1.45rem;
  line-height: 1;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support):is(.czlook-harbor, .czlook-boho, .czlook-midnight) .card {
  border-radius: 18px;
  box-shadow: 0 4px 0 color-mix(in srgb, var(--cz-ink) 10%, transparent);
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support):is(.czlook-harbor, .czlook-boho, .czlook-midnight) .chore .emoji:not(img) {
  width: 52px;
  height: 52px;
  font-size: 1.7rem;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support):is(.czlook-harbor, .czlook-boho, .czlook-midnight) .hello .avatar,
:is(#chorezone-app, #chorezone-shop, #chorezone-support):is(.czlook-harbor, .czlook-boho, .czlook-midnight) header .kidemo {
  width: 64px;
  height: 64px;
  font-size: 2rem;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support):is(.czlook-harbor, .czlook-boho, .czlook-midnight) .chore.done .emoji:not(img) {
  animation: cz-seal 0.45s ease;
}
@keyframes cz-seal {
  40% { transform: scale(1.28) rotate(-8deg); }
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support):is(.czlook-harbor, .czlook-boho, .czlook-midnight) .chore input[type='checkbox']:checked {
  background-color: var(--cz-good);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M5 12.5 9.2 17 19 7' fill='none' stroke='%23fffdf9' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px 18px;
  border-color: var(--cz-good);
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support):is(.czlook-harbor, .czlook-boho, .czlook-midnight) .chore input[type='checkbox']:checked::after {
  content: none;
  display: none;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support):is(.czlook-harbor, .czlook-boho, .czlook-midnight) button.sdone.on {
  background-color: var(--cz-good);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M5 12.5 9.2 17 19 7' fill='none' stroke='%23fffdf9' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 16px 16px;
  color: transparent;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support):is(.czlook-harbor, .czlook-boho, .czlook-midnight) .chore:has(input[type='checkbox']:checked),
:is(#chorezone-app, #chorezone-shop, #chorezone-support):is(.czlook-harbor, .czlook-boho, .czlook-midnight) .chore.done {
  background: color-mix(in srgb, var(--cz-good) 18%, var(--cz-card));
  border-color: color-mix(in srgb, var(--cz-good) 48%, var(--cc-line));
  color: var(--cz-ink);
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support):is(.czlook-harbor, .czlook-boho, .czlook-midnight) .chore:has(input[type='checkbox']:checked) .emoji:not(img) {
  animation: cz-seal 0.45s ease;
}

/* Login, parent, kitchen, and shared use the same paper, accent, and cards as the preview. */
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .ltabs.lt4,
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .ltabs.lt3,
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .ltabs.lt2 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .ltabs.lt3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .ltabs.lt2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@container cc (max-width:560px) {
  :is(#chorezone-app, #chorezone-shop, #chorezone-support) .ltabs.lt4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  :is(#chorezone-app, #chorezone-shop, #chorezone-support) .ltabs.lt4 .tab {
    justify-content: center;
    text-align: center;
    padding: 6px 2px;
  }
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support):is(.czlook-harbor, .czlook-boho, .czlook-midnight) .ltabs .tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 64px;
  height: auto;
  margin: 0;
  padding: 6px 2px;
  border-radius: 12px;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  white-space: normal;
  box-shadow: none;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support):is(.czlook-harbor, .czlook-boho, .czlook-midnight) .ltabs .tab .ti {
  width: auto;
  flex: none;
  font-size: 1.15rem;
  line-height: 1;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support):is(.czlook-harbor, .czlook-boho, .czlook-midnight) :is(button.p, a.btn.p) {
  border-radius: 14px;
  background: var(--cc-accent);
  color: var(--cc-on-accent);
  border: 0;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support):is(.czlook-harbor, .czlook-boho, .czlook-midnight) :is(input:not([type='checkbox']):not([type='radio']):not([type='color']), select, textarea) {
  border-radius: 12px;
  border: 1px solid var(--cc-line);
  background: var(--cz-card);
  color: var(--cz-ink);
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support):is(.czlook-harbor, .czlook-boho, .czlook-midnight) table.mt {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--cz-card);
  color: var(--cz-ink);
  border: 1px solid var(--cc-line);
  border-radius: 16px;
  overflow: hidden;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support):is(.czlook-harbor, .czlook-boho, .czlook-midnight) .stamps {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0 12px;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support):is(.czlook-harbor, .czlook-boho, .czlook-midnight) .stamp-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support):is(.czlook-harbor, .czlook-boho, .czlook-midnight) .stamp {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  box-sizing: border-box;
  border: 2px solid color-mix(in srgb, var(--cc-accent) 55%, var(--cc-line));
  background: transparent;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support):is(.czlook-harbor, .czlook-boho, .czlook-midnight) .stamp.on {
  background: var(--cc-accent);
  border-color: var(--cc-accent);
  box-shadow: inset 0 0 0 3px var(--cz-card);
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support):is(.czlook-harbor, .czlook-boho, .czlook-midnight) .stamps em {
  margin-left: auto;
  font-style: normal;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--cz-muted);
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support):is(.czlook-harbor, .czlook-boho, .czlook-midnight) .chore {
  font-weight: 800;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support):is(.czlook-harbor, .czlook-boho, .czlook-midnight) .chore :is(.m, .chips, .chip, .kwait, .klate, .kmiss, .knote) {
  font-weight: 500;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support):is(.czlook-harbor, .czlook-boho, .czlook-midnight) .dkid .dhead .avatar,
:is(#chorezone-app, #chorezone-shop, #chorezone-support):is(.czlook-harbor, .czlook-boho, .czlook-midnight) button.kqcard .avatar,
:is(#chorezone-app, #chorezone-shop, #chorezone-support):is(.czlook-harbor, .czlook-boho, .czlook-midnight) .kqgrid ~ header .kidemo,
:is(#chorezone-app, #chorezone-shop, #chorezone-support):is(.czlook-harbor, .czlook-boho, .czlook-midnight):has(.kqgrid) header .kidemo {
  display: inline-grid;
  place-items: center;
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  padding: 0;
  line-height: 1;
  font-size: 2rem;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support):is(.czlook-harbor, .czlook-boho, .czlook-midnight) .dkid .dhead .avatar img,
:is(#chorezone-app, #chorezone-shop, #chorezone-support):is(.czlook-harbor, .czlook-boho, .czlook-midnight) button.kqcard .avatar img {
  width: 1.15em;
  height: 1.15em;
  object-fit: contain;
  display: block;
}
/* Shared Login keeps direct emoji text centered using emoji font metrics. */
:is(#chorezone-app, #chorezone-shop, #chorezone-support):is(.czlook-harbor, .czlook-boho, .czlook-midnight) button.kqcard .avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support):is(.czlook-harbor, .czlook-boho, .czlook-midnight) button.kqcard .avatar img.emoji {
  margin: 0 !important;
  font-size: inherit;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support):is(.czlook-harbor, .czlook-boho, .czlook-midnight) .dkid {
  box-shadow:
    inset 0 4px 0 var(--cc-accent),
    0 4px 0 color-mix(in srgb, var(--cz-ink) 10%, transparent);
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support):is(.czlook-harbor, .czlook-boho, .czlook-midnight) .tabs .tab .ti {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  min-width: 36px;
  flex: 0 0 36px;
  padding: 0;
  overflow: hidden;
  border-radius: 50%;
  font-size: 1.15rem;
  line-height: 1;
  background:
    radial-gradient(circle at 35% 30%, color-mix(in srgb, white 70%, transparent), transparent 50%),
    color-mix(in srgb, var(--cz-child, var(--cc-accent)) 7%, var(--cz-card));
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--cz-child, var(--cc-accent)) 16%, transparent);
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support):is(.czlook-harbor, .czlook-boho, .czlook-midnight) .tabs .tab.on .ti {
  background:
    radial-gradient(circle at 35% 30%, color-mix(in srgb, white 80%, transparent), transparent 50%),
    color-mix(in srgb, var(--cz-child, var(--cc-accent)) 5%, var(--cz-card));
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--cz-child, var(--cc-accent)) 11%, transparent);
}
@container cc (max-width:560px) {
  #chorezone-app:is(.czlook-harbor, .czlook-boho, .czlook-midnight):not(.kid):not(.disp) .tabs.bar-fill .tab .ti {
    flex: 0 0 40px;
    width: 40px;
    min-width: 40px;
    height: 40px;
    font-size: 1.05rem;
    line-height: 1;
    overflow: hidden;
  }
  #chorezone-app:is(.czlook-harbor, .czlook-boho, .czlook-midnight):not(.kid):not(.disp) .tabs.bar-fill .tab .ti img.emoji {
    width: 1.05rem;
    height: 1.05rem;
    font-size: 1.05rem;
  }
}
@container cc (min-width: 721px) {
  :is(#chorezone-app, #chorezone-shop, #chorezone-support):is(.czlook-harbor, .czlook-boho, .czlook-midnight) .dgrid.kqgrid {
    grid-template-columns: repeat(auto-fit, minmax(210px, 240px));
    justify-content: center;
  }
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support):is(.czlook-harbor, .czlook-boho, .czlook-midnight) button.linkish[data-q='exit'] {
  padding: 10px 18px;
  white-space: nowrap;
  flex: 0 0 auto;
  line-height: 1.25;
  text-decoration: none;
  border-radius: 14px;
}

/* 5.4.7: readable Midnight accents and compact, accessible child details. */
:is(#chorezone-app, #chorezone-shop, #chorezone-support).czlook-midnight {
  --cc-on-accent: #06241f;
}
:is(#chorezone-app, #chorezone-shop, #chorezone-support).czlook-midnight :is(button.p, a.btn.p, .day.on, .tab.on),
:is(#chorezone-app, #chorezone-shop, #chorezone-support).czlook-midnight.kid :is(button.p, a.btn.p, .day.on, .tab.on) {
  color: var(--cc-on-accent);
}
#chorezone-app .cz-kid-details {
  margin-top: 12px;
  border-top: 1px solid var(--cc-line);
}
#chorezone-app .cz-kid-details > summary {
  min-height: 44px;
  padding: 12px 0;
  cursor: pointer;
  font-weight: 600;
}
#chorezone-app .cz-kid-details > summary:focus-visible {
  outline: 2px solid var(--cc-accent);
  outline-offset: 3px;
  border-radius: 6px;
}
@container cc (max-width: 560px) {
  :is(#chorezone-app, #chorezone-shop, #chorezone-support):is(.czlook-harbor, .czlook-boho, .czlook-midnight) button.kqcard {
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr);
    gap: 4px 14px;
    align-items: center;
    text-align: left;
    min-height: 100px;
    padding: 14px 16px;
  }
  :is(#chorezone-app, #chorezone-shop, #chorezone-support):is(.czlook-harbor, .czlook-boho, .czlook-midnight) button.kqcard .avatar {
    grid-row: 1 / span 2;
    width: 60px;
    height: 60px;
    min-width: 60px;
    font-size: 1.8rem;
  }
  :is(#chorezone-app, #chorezone-shop, #chorezone-support):is(.czlook-harbor, .czlook-boho, .czlook-midnight) button.kqcard > b {
    align-self: end;
    overflow-wrap: anywhere;
  }
  :is(#chorezone-app, #chorezone-shop, #chorezone-support):is(.czlook-harbor, .czlook-boho, .czlook-midnight) button.kqcard > .m {
    align-self: start;
    overflow-wrap: anywhere;
  }
}

/* 5.4.8: one home for each parent settings category and clear navigation buttons. */
#chorezone-app .cz-settings-index {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
#chorezone-app .cz-settings-index > :is(h3, p, .cz-section-tools) {
  grid-column: 1 / -1;
  margin: 0;
}
#chorezone-app .cz-settings-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
#chorezone-app .cz-settings-menu h4 { margin: 0 0 4px; }
#chorezone-app .cz-settings-menu button,
#chorezone-app .cz-section-tools button {
  min-height: 44px;
  margin: 0;
  padding: 10px 14px;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: left;
}
#chorezone-app .cz-section-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--cc-line);
}
#chorezone-app .cz-settings-group > summary {
  background: var(--cz-card, var(--cc-card));
  border-radius: inherit;
}
#chorezone-app .cz-settings-group[open] > summary {
  border-bottom: 1px solid var(--cc-line);
}
#chorezone-app .cz-settings-menu button:focus-visible,
#chorezone-app .cz-section-tools button:focus-visible {
  outline: 2px solid var(--cc-accent);
  outline-offset: 3px;
}
@container cc (max-width: 640px) {
  #chorezone-app .cz-settings-index { grid-template-columns: minmax(0, 1fr); }
  #chorezone-app .cz-settings-menu { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #chorezone-app .cz-settings-menu h4 { grid-column: 1 / -1; }
  #chorezone-app .cz-section-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Permission descriptions get their own full-width line rather than a squeezed flex column. */
#chorezone-app .cz-pperm label.cz-pp {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  gap: 4px 8px;
  min-width: 0;
  white-space: normal;
}
#chorezone-app .cz-pperm label.cz-pp > input[type='checkbox'] {
  grid-column: 1;
  grid-row: 1;
  margin-top: 3px;
}
#chorezone-app .cz-pperm label.cz-pp > b,
#chorezone-app .cz-pperm label.cz-pp > small {
  grid-column: 2;
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
}
#chorezone-app .cz-pperm label.cz-pp > small {
  display: block;
  margin: 0 0 8px;
}

/* 5.4.12: outlined shared-view controls stand out without a primary-action fill. */
#chorezone-app button.cz-session-button,
#chorezone-app.kid button.p.cz-session-button,
#chorezone-app.kid:is(.czlook-harbor, .czlook-boho, .czlook-midnight) button.p.cz-session-button {
  box-sizing: border-box;
  max-width: 100%;
  width: auto;
  height: auto;
  min-width: 0;
  padding: 8px 14px;
  line-height: 1.25;
  white-space: normal;
  overflow-wrap: anywhere;
  text-decoration: none;
  background: var(--cz-card, #fff);
  color: var(--cz-ink, #1f2937);
  border: 1px solid currentColor;
  flex: 0 1 auto;
}
#chorezone-app.disp .dclock button.cz-session-button {
  padding: 4px 10px;
}
#chorezone-app button.cz-session-button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
/* Navigation labels wrap when enlarged text leaves less room beside the bounded icon. */
#chorezone-app .tabs .tab .tl {
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}
/* Desktop navigation has room for larger icons; the disc contains both native and WP emoji. */
@container cc (min-width: 1000px) {
  #chorezone-app:not(.kid):not(.disp) .tabs .tab .ti {
    width: 44px;
    min-width: 44px;
    height: 44px;
    flex: 0 0 44px;
    font-size: min(1.75rem, 32px);
    line-height: 1;
    overflow: hidden;
    align-items: center;
    justify-content: center;
  }
  #chorezone-app:not(.disp) button.kqcard .avatar {
    font-size: min(2.75rem, 48px);
    overflow: hidden;
  }
  #chorezone-app:not(.kid):not(.disp) .tabs .tab .ti img.emoji {
    width: 1em !important;
    height: 1em !important;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    margin: 0 !important;
    font-size: inherit;
  }
}
.cz-modal.cz-message { z-index: 100010; }
.cz-modal.cz-message,
.cz-modal.cz-message * { box-sizing: border-box; }
.cz-modal.cz-message > div {
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
}
.cz-modal.cz-message #cz-message-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.cz-modal.cz-message button {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

/* Pending visual adjustment: counts sit above the icon rather than beside the label. */
#chorezone-app .tabs .tab .cz-tab-icon {
  display: inline-flex;
  position: relative;
  flex: 0 0 auto;
}
#chorezone-app .tabs .tab .cz-tab-plain {
  position: relative;
}
#chorezone-app .tabs .tab :is(.cz-tab-icon, .cz-tab-plain) > .nb {
  position: absolute;
  top: -0.35em;
  right: -0.35em;
  margin: 0;
  pointer-events: none;
}

/* 5.4.11: clearer forms; the four entry-mode buttons retain their existing layout. */
/* 5.4.15: keep entry buttons and forms in one readable centered column. */
#chorezone-app .ltabs,
#chorezone-app .cz-login-panel {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
}
#chorezone-app .cz-login-panel .cz-login-field {
  display: grid;
  gap: 6px;
  margin: 0 0 16px;
  min-width: 0;
  font-weight: 600;
}
#chorezone-app .cz-login-field input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  margin: 0;
  font-weight: 400;
}
#chorezone-app .cz-login-panel form[data-a='plogin'] > .row:first-of-type,
#chorezone-app .cz-login-panel form[data-a='pforgot'] > .row:first-of-type {
  display: block;
}
#chorezone-app .cz-login-panel form:is([data-a='login'], [data-a='qlogin'], [data-a='dlogin']) > button.p,
#chorezone-app .cz-login-panel form[data-a='plogin'] > .row > button.p {
  width: 100%;
  min-height: 44px;
  margin: 0 0 8px;
}
/* Prefer whole words, and reflow a full menu instead of reducing its type size. */
#chorezone-app .tabs .tab .tl {
  overflow-wrap: break-word;
  word-break: normal;
}
/* alpha27: in a reflowed parent menu each label stays whole (fitTabs sizes the cells and, if needed, the type). */
@container cc (min-width: 561px) {
  #chorezone-app:not(.kid) .tabs.bar-fill .tab .tl { overflow-wrap: normal; }
  #chorezone-app .tabs.bar-fill.cz-nav-two.cz-nav-two { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-columns: auto; }
  #chorezone-app .tabs.bar-fill.cz-nav-two .tab[data-t='set'],
  #chorezone-app .tabs.bar-fill.cz-nav-two .tab[data-t='acct'] { grid-row: auto; grid-column: auto; }
}
@container cc (min-width: 561px) {
  #chorezone-app .tabs.bar-fill.cz-nav-reflow {
    grid-auto-flow: row;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, max(12rem, var(--cz-tabmin, 0px))), 1fr));
    grid-auto-columns: auto;
  }
}
/* Public dialogs carry their invoking app's appearance while staying outside inert roots. */
.cz-modal[data-cz-themed] {
  color-scheme: var(--cz-dialog-scheme, light);
  font-family: var(--cz-dialog-font, sans-serif);
  font-size: var(--cz-dialog-font-size, 1rem);
  line-height: var(--cz-dialog-line-height, 1.45);
}
.cz-modal[data-cz-themed] > div {
  background: var(--cz-dialog-surface, #fff);
  color: var(--cz-dialog-ink, #1f2937);
  font-family: inherit;
  line-height: inherit;
  border: 1px solid var(--cz-dialog-line, #cbd5e1);
}
.cz-modal[data-cz-themed] :is(h2, h3, h4, label) { color: inherit; }
.cz-modal[data-cz-themed] :is(button, input, select, textarea) { font-family: inherit; }
.cz-modal[data-cz-themed] button:not(.x) {
  background: var(--cz-dialog-surface, #fff);
  color: var(--cz-dialog-ink, #1f2937);
  border-color: var(--cz-dialog-line, #cbd5e1);
}
.cz-modal[data-cz-themed] button.p:not(.x) {
  background: var(--cz-dialog-accent, #4f46e5);
  color: var(--cz-dialog-on-accent, #fff);
  border-color: transparent;
}
.cz-modal[data-cz-themed] :is(input:not([type='checkbox']):not([type='radio']), select, textarea) {
  background: var(--cz-dialog-surface, #fff);
  color: var(--cz-dialog-ink, #1f2937);
  border-color: var(--cz-dialog-line, #cbd5e1);
  accent-color: var(--cz-dialog-accent, #4f46e5);
}
.cz-modal[data-cz-themed] :is(input[type='checkbox'], input[type='radio']) {
  accent-color: var(--cz-dialog-accent, #4f46e5);
}
.cz-modal[data-cz-themed] .m { color: var(--cz-dialog-muted, #6b7280); }
.cz-modal[data-cz-themed] a { color: var(--cz-dialog-accent, #4f46e5); }
.cz-modal[data-cz-themed] :is(button, input, select, textarea, a):focus-visible {
  outline: 2px solid var(--cz-dialog-accent, #4f46e5);
  outline-offset: 3px;
}
.cz-modal[data-cz-themed] :is(th, td),
.cz-modal[data-cz-themed] ul.recent li { border-color: var(--cz-dialog-line, #cbd5e1); }
.cz-modal[data-cz-themed].pay .amt.earn { color: var(--cz-dialog-good, #15803d); }
.cz-modal[data-cz-themed].pay .warn {
  background: color-mix(in srgb, var(--cz-dialog-wait, #8a5a00) 12%, var(--cz-dialog-surface, #fff));
  color: var(--cz-dialog-ink, #1f2937);
  border-left-color: var(--cz-dialog-wait, #8a5a00);
}

.cz-modal[data-cz-themed] .m.err { color: var(--cz-dialog-bad, #b91c1c); }
/* Enlarged text gets a single menu column before ordinary words would split. */
@container cc (max-width: 560px) {
  #chorezone-app:not(.kid) .tabs.bar-fill {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr));
  }
}
/* Parent Inbox and Settings stay together while sharing the menu button sizes. */
#chorezone-app .tabs .cz-parent-tools { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); grid-column:span 2; gap:inherit; order:1; min-width:0; align-self:stretch; }
#chorezone-app .tabs .cz-parent-tools > .tab { width:100%; }
#chorezone-app:not(.kid) .tabs .cz-parent-tools > .tab[data-t='set'] { order:0; grid-column:auto; grid-row:auto; }
#chorezone-app .tabs.bar-fill.cz-meas .cz-parent-tools { grid-template-columns:repeat(2,max-content); }
@container cc (max-width:560px) {
  #chorezone-app:not(.kid) .tabs.bar-fill.cz-inbox-menu { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@container cc (min-width:561px) {
  #chorezone-app .tabs.bar-fill.cz-inbox-menu.cz-nav-reflow { grid-template-columns:repeat(auto-fit,minmax(min(calc((100% - 8px)/2),max(12rem,var(--cz-tabmin,0px))),1fr)); }
}
/* Dedicated child galleries share touch, keyboard and disc presentation. */
#chorezone-app .cz-public-links { display:flex; flex-wrap:wrap; gap:.7rem; align-items:center; margin:1rem 0; }
#chorezone-app .cz-child-nav { display:grid; grid-auto-flow:column; grid-auto-columns:minmax(0,1fr); gap:.5rem; margin:1rem 0; }
#chorezone-app .cz-child-nav button { display:flex; flex-direction:column; justify-content:center; gap:.35rem; align-items:center; min-height:5rem; min-width:0; width:100%; padding:.6rem .3rem; position:relative; overflow-wrap:anywhere; text-align:center; }
#chorezone-app .cz-child-nav .cz-inbox-badge { position:absolute; top:.3rem; right:.3rem; margin:0; }
#chorezone-app .cz-public-links .cz-guide-button { display:inline-flex; align-items:center; justify-content:center; min-height:2.75rem; margin:0; background:var(--cc-card); }
html.cz-native-app #chorezone-app :is(.cz-guide-button,.cz-guide-links) { display:none; }
#chorezone-app .cz-nav-disc { display:grid; place-items:center; width:2.5rem; height:2.5rem; border-radius:50%; background:color-mix(in srgb,var(--cc-accent,#6355bc) 15%,transparent); font-size:1.6rem; }
#chorezone-app .cz-chest { display:inline-block; position:relative; width:2.6rem; height:2.3rem; flex:none; vertical-align:middle; }
#chorezone-app .cz-chest-base, #chorezone-app .cz-chest-lid { position:absolute; left:5%; width:90%; border:2px solid #62401f; background:#b77836; box-sizing:border-box; }
#chorezone-app .cz-chest-base { top:42%; height:55%; border-radius:0 0 .3rem .3rem; }
#chorezone-app .cz-chest-lid { top:7%; height:40%; border-radius:60% 60% 0 0; transform-origin:50% 100%; }
#chorezone-app .cz-chest-lock { position:absolute; width:20%; height:28%; left:40%; top:38%; background:#ffd660; border:1px solid #62401f; border-radius:.15rem; }
#chorezone-app .cz-gallery { text-align:center; }
#chorezone-app .cz-gallery > button { display:block; }
#chorezone-app .cz-gallery h2 { margin:1rem 0; }
#chorezone-app .cz-chest-reveal .cz-chest { width:5rem; height:4.5rem; }
#chorezone-app .cz-reward-gallery .cz-chest-reveal .cz-chest-lid { transform:translateY(-25%) rotate(-18deg); }
#chorezone-app .cz-opening .cz-chest-reveal .cz-chest-lid { animation:cz-chest-open .75s ease-out; }
#chorezone-app .cz-opening .cz-prize-disc { animation:cz-prize-arrive .7s ease-out; }
#chorezone-app .cz-gallery-balance, #chorezone-app .cz-prize-value { font-weight:750; font-size:1.15rem; }
#chorezone-app .cz-carousel { max-width:38rem; margin:auto; border-radius:1rem; }
#chorezone-app .cz-carousel-stage { position:relative; overflow:hidden; padding:1rem .5rem; touch-action:pan-y; }
#chorezone-app .cz-carousel-item { position:relative; z-index:1; width:100%; max-width:26rem; margin:auto; overflow-wrap:anywhere; }
#chorezone-app .cz-prize-disc { display:grid; place-items:center; border-radius:50%; width:min(55vw,12rem); aspect-ratio:1; margin:auto; font-size:4.4rem; background:radial-gradient(circle at 35% 25%,#fff6ce,#f4c96c 70%,#d89c3b); border:.4rem solid #f9dd9c; box-shadow:0 .5rem 1.2rem #0002,inset 0 0 0 .2rem #b5752833; }
#chorezone-app .cz-disc-echo { position:absolute; top:3rem; width:8rem; aspect-ratio:1; border-radius:50%; background:color-mix(in srgb,var(--cc-accent,#6355bc) 10%,transparent); }
#chorezone-app .cz-disc-left { left:-4.8rem; } #chorezone-app .cz-disc-right { right:-4.8rem; }
#chorezone-app .cz-prize-description { white-space:pre-wrap; }
#chorezone-app .cz-carousel-controls { display:flex; align-items:center; justify-content:center; gap:1rem; }
#chorezone-app .cz-carousel-controls button { min-width:3rem; min-height:2.75rem; font-size:1.2rem; }
#chorezone-app .cz-inbox-badge { display:inline-block; border-radius:1rem; background:#b42318; color:white; padding:.1rem .45rem; margin-left:.35rem; font-size:.8rem; }
#chorezone-app .cz-inbox-item { border-block-start:1px solid #8885; padding-block:1rem; }
#chorezone-app .cz-inbox-item h3 { margin:.3rem 0; }
#chorezone-app .cz-inbox-body { white-space:pre-wrap; overflow-wrap:anywhere; }
#chorezone-app .cz-message-compose textarea { display:block; width:100%; min-height:7rem; box-sizing:border-box; }
#chorezone-app .cz-message-compose fieldset { display:flex; gap:.8rem; flex-wrap:wrap; margin:.8rem 0; }
#chorezone-app .cz-pair-code { font-size:1.6rem; letter-spacing:.1em; overflow-wrap:anywhere; }
@keyframes cz-chest-open { from { transform:translateY(0) rotate(0); } to { transform:translateY(-25%) rotate(-18deg); } }
@keyframes cz-prize-arrive { from { opacity:0; transform:translateY(1rem) scale(.9); } to { opacity:1; transform:none; } }
@media(prefers-reduced-motion:reduce) { #chorezone-app .cz-opening .cz-chest-lid, #chorezone-app .cz-opening .cz-prize-disc { animation:none; } }
#chorezone-app.czoff-motion .cz-opening .cz-chest-lid, #chorezone-app.czoff-motion .cz-opening .cz-prize-disc { animation:none; }

/* Shared game health: one child per row, using the existing card/button theme. */
#chorezone-app .cz-game-health-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
#chorezone-app .cz-game-health-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, min(7.5em, 35%)) auto;
  align-items: center;
  column-gap: clamp(.4rem, 2vw, 1rem);
  margin: 0;
  padding: .65rem 0;
}
#chorezone-app .cz-game-health-row + .cz-game-health-row {
  border-top: 1px solid var(--cc-line);
}
#chorezone-app .cz-game-health-name,
#chorezone-app .cz-game-health-status {
  min-width: 0;
  overflow-wrap: anywhere;
}
#chorezone-app .cz-game-health-status {
  text-align: right;
}
#chorezone-app .cz-game-health-row > button {
  margin: 0;
  min-height: 44px;
}

.cz-chore-builder { font:16px/1.5 system-ui,sans-serif; width:min(760px,calc(100% - 32px)); max-height:85vh; box-sizing:border-box; border:0; border-radius:16px; padding:24px; color:var(--text,#2b2140); background:var(--card,#fff); overflow:auto; }
.cz-chore-builder::backdrop { background:rgba(20,15,30,.55); }
.cz-chore-builder .row { display:flex; flex-wrap:wrap; gap:12px; align-items:center; margin:12px 0; }
.cz-chore-builder input:not([type=checkbox]), .cz-chore-builder select { max-width:100%; box-sizing:border-box; padding:8px; }
.cz-chore-builder fieldset { margin:16px 0; border:1px solid #bbb; border-radius:10px; }
.cz-chore-builder legend { font-weight:bold; }
.cz-chore-builder button { font:inherit; padding:10px 14px; cursor:pointer; }
.cz-chore-builder button:disabled { opacity:.5; cursor:default; }
.cz-chore-builder .cz-builder-choice { display:flex; gap:10px; align-items:flex-start; padding:10px 0; }
.cz-chore-builder small { display:block; }
.cz-chore-builder .cz-builder-footer { border-top:1px solid #bbb; padding-top:12px; }

@media (max-width: 600px) {
  .cz-chore-builder .cz-builder-room-name { display:flex; flex-direction:column; gap:6px; flex:1 1 100%; min-width:0; }
  .cz-chore-builder .cz-builder-room-name input { width:100%; min-width:0; }
}

.cz-chore-icon { display:inline-block; width:1.25em; height:1.25em; object-fit:contain; vertical-align:middle; }
.cz-chore-icon-editor { display:flex; gap:12px; flex-wrap:wrap; align-items:end; margin:10px 0; }
.cz-chore-icon-editor label { display:flex; flex-direction:column; gap:4px; min-width:0; flex:1 1 160px; }
.cz-chore-icon-editor select, .cz-chore-icon-editor input { width:100%; max-width:100%; }
.cz-chore-icon-editor .cz-chore-icon-default { flex:1 1 160px; min-width:0; padding:6px 0; opacity:.85; }
.cz-chore-icon-editor .cz-chore-icon-default .cz-chore-icon { width:1.4em; height:1.4em; vertical-align:middle; }
.cz-chore-icon-preview { font-size:28px; align-self:center; }
.cz-icon-catalog { margin:12px 0; }
.cz-icon-catalog-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:12px; margin:12px 0; }
.cz-icon-catalog-grid small { display:block; }
/* The message envelope uses the disc's ink color in every tab state and theme. */
#chorezone-app [data-inbox-open] .cz-nav-disc,
#chorezone-app .tabs .tab[data-inbox-open] .ti,
#chorezone-app:is(.czlook-harbor, .czlook-boho, .czlook-midnight) .tabs .tab.on[data-inbox-open] .ti {
  color: var(--cz-ink, #26334a);
  background: var(--cz-card, #fff);
}
#chorezone-app [data-inbox-open] :is(.ti, .cz-nav-disc) svg {
  width: 1em;
  height: 1em;
  display: block;
}
/* 5.7.2: parent task lists (My tasks tab, display and Shared Login cards) */
#chorezone-app .cz-mt h4 { margin:12px 0 4px; }
#chorezone-app .cz-mt-list { list-style:none; margin:4px 0; padding:0; }
#chorezone-app .cz-mt-item { display:flex; flex-wrap:wrap; align-items:center; gap:4px 12px; padding:8px 0; border-bottom:1px solid var(--cc-line, #ddd); }
#chorezone-app .cz-mt-item:last-child { border-bottom:0; }
#chorezone-app .cz-mt-item > .m { flex:1 1 auto; }
#chorezone-app .cz-mt-item.done .cz-mt-check span, #chorezone-app .cz-mt-item.done .cz-mt-name { text-decoration:line-through; opacity:.7; }
#chorezone-app .cz-mt-item.missed .m { color:var(--cc-bad, #b3261e); }
#chorezone-app .cz-mt-check { display:flex; align-items:center; gap:10px; min-height:44px; font-weight:600; cursor:pointer; flex:0 1 auto; min-width:0; overflow-wrap:anywhere; }
#chorezone-app .cz-mt-check input { width:1.4em; height:1.4em; margin:0; flex:none; }
#chorezone-app .cz-mt-move { max-width:11rem; }
#chorezone-app .cz-mt-day { padding:4px 0 8px; border-top:1px solid var(--cc-line, #ddd); }
#chorezone-app .cz-mt-day.today h4 { color:var(--cc-accent, #2558a8); }
#chorezone-app .cz-mt-over { color:var(--cc-bad, #b3261e); font-size:.9em; font-weight:600; }
#chorezone-app .cz-mt-head { justify-content:space-between; align-items:center; }
#chorezone-app .cz-mt-seg { display:inline-flex; gap:0; }
#chorezone-app .cz-mt-seg button { margin:0; border-radius:0; }
#chorezone-app .cz-mt-seg button:first-child { border-radius:var(--cc-radius, 8px) 0 0 var(--cc-radius, 8px); }
#chorezone-app .cz-mt-seg button:last-child { border-radius:0 var(--cc-radius, 8px) var(--cc-radius, 8px) 0; }
#chorezone-app .cz-mt-seg button[aria-pressed="true"] { background:var(--cc-accent, #2558a8); color:var(--cc-on-accent, #fff); }
#chorezone-app .cz-mt-days { display:flex; flex-wrap:wrap; gap:4px; margin:4px 0; }
#chorezone-app .cz-mt-days label { display:inline-flex; align-items:center; gap:3px; padding:2px 6px; border:1px solid var(--cc-line, #ccc); border-radius:999px; font-size:.9em; white-space:nowrap; }
#chorezone-app .cz-mt-add, #chorezone-app .cz-mt-form { display:flex; flex-wrap:wrap; gap:10px; align-items:end; margin:8px 0; }
#chorezone-app .cz-mt-add > input[name="n"] { flex:2 1 14rem; min-width:0; }
#chorezone-app .cz-mt-add label, #chorezone-app .cz-mt-form label { display:flex; flex-direction:column; gap:4px; flex:1 1 9rem; min-width:0; }
#chorezone-app .cz-mt-add label:has(input[type="checkbox"]) { flex-direction:row; align-items:center; flex:0 0 auto; }
#chorezone-app .cz-mt-add input[type="number"] { width:6rem; }
#chorezone-app .cz-mt-table input[type="number"] { width:5rem; }
#chorezone-app .cz-mt-table td { vertical-align:top; }
#chorezone-app .cz-mt-pv { white-space:nowrap; }
#chorezone-app .cz-parent-card .avatar { opacity:.9; }
#chorezone-app div.kqcard.cz-parent-card { display:flex; flex-direction:column; align-items:center; gap:6px; padding:16px 12px; text-align:center; font-size:1.15rem; }
#chorezone-app div.kqcard.cz-parent-card .avatar { font-size:2.4rem; }
#chorezone-app div.kqcard.cz-parent-card .dlist { align-self:stretch; text-align:left; font-size:1rem; }
#chorezone-app .cz-parent-tag { display:inline-block; vertical-align:middle; font-size:.55em; font-weight:600; padding:2px 8px; border-radius:999px; border:1px solid currentColor; opacity:.7; }
/* 5.7.3: Chores tab sections (Grab-it, Fixed, Rotating) */
#chorezone-app .cz-chore-group { background: var(--cc-card, #fff); }
#chorezone-app .cz-chore-group > summary { font-size: 1.15rem; padding: 14px 16px; }
#chorezone-app .cz-chore-group > .cz-disclosure-body > .cz-chore-section { padding: 0 10px 10px; }
#chorezone-app .cz-chore-section > .card { margin: 0 0 10px; box-shadow: none; }
#chorezone-app .cz-chore-section > .card:last-child { margin-bottom: 0; }
/* 5.7.4: Getting started (Settings) — one step per line, text left-aligned even when it wraps */
#chorezone-app .cz-disclosure-body > .cz-setup-steps,
#chorezone-app .cz-setup-steps { flex-direction: column; align-items: stretch; }
#chorezone-app .cz-setup-steps > button { text-align: left; justify-content: flex-start; width: 100%; white-space: normal; }
#chorezone-app .cz-setup-pointer { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
#chorezone-app .cz-setup-pointer > p { flex: 1 1 14rem; margin: 0; }
/* 5.7.6: adult members (Children tab) and the chore "For" field */
#chorezone-app .cz-adults .cz-adult { margin: 10px 0; box-shadow: none; }
#chorezone-app .cz-adults .cz-adult > .row input[data-f="n"] { flex: 1 1 10rem; min-width: 0; }
#chorezone-app .cz-chore-audience { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
#chorezone-app .cz-chore-audience select { margin-left: 4px; }
/* 5.7.7: the child's screen opens with one header row: avatar, greeting and Log out */
:is(#chorezone-app, #chorezone-shop, #chorezone-support) header.cz-kid-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: nowrap; }
:is(#chorezone-app, #chorezone-shop, #chorezone-support) header.cz-kid-head .hello { flex: 1 1 auto; min-width: 0; flex-wrap: nowrap; }
:is(#chorezone-app, #chorezone-shop, #chorezone-support) header.cz-kid-head > div:last-child { flex: none; }
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .cz-kid-stats .hstat { margin-left: 0; flex-wrap: wrap; flex: 1 1 100%; }
/* 5.7.7: Simple / Advanced dashboard */
/* 5.7.7: children and adult members collapse to their names */
:is(#chorezone-app, #chorezone-shop, #chorezone-support) details.cz-member > summary { font-weight: 700; font-size: 1.05em; }
:is(#chorezone-app, #chorezone-shop, #chorezone-support) details.cz-member { margin: 6px 0; }
#chorezone-app .cz-money-group > .cz-disclosure-body > .cz-money-part { padding: 0 10px 10px; }
/* 5.7.8: menu alignment. The Messaging icon is drawn the same size as the emoji icons; with an even menu,
   Settings lines up with the other buttons on phones; and at medium widths an even menu forms two full rows. */
:is(#chorezone-app, #chorezone-shop, #chorezone-support) .tabs .tab .ti svg { width: 1.1em; height: 1.1em; display: block; }
@container cc (max-width:560px) {
  #chorezone-app:not(.kid):not(.disp) .tabs.bar-fill > .tab[data-t='set'] { justify-content: flex-start; text-align: left; }
  #chorezone-app:not(.kid):not(.disp) .tabs.bar-fill.cz-odd > .tab[data-t='set'] { grid-column: auto; }
}
@media (max-width: 1000px) {
  @container cc (min-width:561px) {
    #chorezone-app:not(.kid) .tabs.bar-fill.cz-rows2:not(.cz-nav-two):not(.cz-nav-reflow) .tab[data-t='set'] { grid-row: auto; grid-column: auto; order: 0; } /* 5.7.9: follows the WordPress layout order */
    #chorezone-app:not(.kid) .tabs.bar-fill.cz-rows2:not(.cz-nav-two):not(.cz-nav-reflow) .tab[data-t='acct'] { grid-row: auto; grid-column: auto; order: 2; }
    #chorezone-app:not(.kid) .tabs.bar-fill.cz-rows2.cz-inbox-menu:not(.cz-nav-two):not(.cz-nav-reflow) { grid-template-columns: repeat(var(--cz-tc, 4), minmax(0, 1fr)); }
  }
}
/* 5.7.9: My account and Log out are menu buttons like the others; Log out comes last and, when the count is odd,
   spans a whole row (phones, medium widths and wrapped menus) so the rows stay even. */
#chorezone-app:not(.kid) .tabs .tab[data-t='acct'] { order: 2; }
#chorezone-app:not(.kid) .tabs .cz-out-tab { order: 3; }
@container cc (max-width:560px) {
  #chorezone-app:not(.kid) .tabs.bar-fill .cz-out-wide { grid-column: 1 / -1; }
}
@container cc (min-width:561px) {
  #chorezone-app:not(.kid) .tabs.bar-fill.cz-nav-reflow .cz-out-wide,
  #chorezone-app:not(.kid) .tabs.bar-fill.cz-nav-two .cz-out-wide { grid-column: span 2; }
}
@media (max-width: 1000px) {
  @container cc (min-width:561px) {
    #chorezone-app:not(.kid) .tabs.bar-fill.cz-rows2:not(.cz-nav-two):not(.cz-nav-reflow) .cz-out-wide { grid-column: span 2; }
  }
}
@media (max-width: 1000px) {
  @container cc (min-width:561px) {
    /* five buttons a row: icon above the name, so each name stays on one line */
    #chorezone-app:not(.kid) .tabs.bar-fill.cz-rows2.cz-cols5:not(.cz-nav-two):not(.cz-nav-reflow) .tab { flex-direction: column; gap: 2px; padding-top: 6px; padding-bottom: 6px; }
    #chorezone-app:not(.kid) .tabs.bar-fill.cz-rows2.cz-cols5:not(.cz-nav-two):not(.cz-nav-reflow) .tab .tl { white-space: nowrap; }
  }
}
/* 5.7.9: the view switch: a label and two equal buttons, all in the same type size */
#chorezone-app .cz-mode-line { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; font-size: 1rem; line-height: 1.3; }
#chorezone-app .cz-mode-line .cz-mode-label { font-weight: 600; }
#chorezone-app .cz-mode-line .m { font-size: inherit; margin: 0; }
#chorezone-app .cz-mode-seg { display: inline-flex; gap: 0; }
#chorezone-app .cz-mode-seg > button { font-size: inherit; line-height: inherit; font-weight: 600; margin: 0; padding: 6px 16px; min-height: 2.5em; min-width: 6.5em; border-radius: 0; text-decoration: none; }
#chorezone-app .cz-mode-seg > button:first-child { border-radius: var(--cc-radius, 8px) 0 0 var(--cc-radius, 8px); }
#chorezone-app .cz-mode-seg > button:last-child { border-radius: 0 var(--cc-radius, 8px) var(--cc-radius, 8px) 0; margin-left: -1px; }
#chorezone-app .cz-mode-seg > button[aria-pressed="true"] { background: var(--cc-accent, #2558a8); color: var(--cc-on-accent, #fff); border-color: var(--cc-accent, #2558a8); }
/* 5.7.9: Settings card choices: the control, then the name with its description underneath */
#chorezone-app .cz-mode-choices { display: flex; flex-direction: column; gap: 10px; margin: 8px 0; }
#chorezone-app label.cz-mode-choice { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: start; text-align: left; margin: 0; width: 100%; font-weight: normal; }
#chorezone-app label.cz-mode-choice > input { margin: .2em 0 0; width: 1.15em; height: 1.15em; }
#chorezone-app .cz-mode-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
#chorezone-app .cz-mode-text > b { white-space: nowrap; }
#chorezone-app .cz-mode-text > .m { margin: 0; }
#chorezone-app .cz-mode-lock { margin-top: 12px; }
/* 5.7.9: Adult Chores and the adults' schedule */
#chorezone-app .cz-adult-list :is(.ff-money, .ff-points, .ff-penalties) { display: none; }
#chorezone-app .cz-who { display: inline-block; font-weight: 700; margin-right: 6px; padding: 0 8px; border-radius: 999px; background: color-mix(in srgb, var(--cc-accent, #2558a8) 12%, transparent); }
#chorezone-app .cz-adult-day.today { border-color: var(--cc-accent, #2558a8); }
#chorezone-app .cz-chore-section > .czb { width: 100%; }
/* 5.7.9: expandable headings wrap with a hanging indent: second lines (and the contents list under a Settings
   section name) line up with the first word, not with the ▶ marker. */
#chorezone-app :is(.cz-disclosure, .cz-settings-group, .cz-kid-details) > summary { padding-left: calc(14px + 1.15em); text-indent: -1.15em; }
#chorezone-app :is(.cz-disclosure, .cz-settings-group, .cz-kid-details) > summary > * { text-indent: 0; }
#chorezone-app .cz-section-contents .cz-item { display: inline-block; max-width: 100%; }
/* 5.7.9: when the parent menu wraps into rows, every button starts its icon at the same left edge (as on phones),
   so icons and names line up down each column. A single row, and five-a-row buttons with the icon on top, stay centred. */
@container cc (min-width:561px) {
  #chorezone-app:not(.kid):not(.disp) .tabs.bar-fill:is(.cz-nav-reflow, .cz-nav-two) .tab { justify-content: flex-start; text-align: left; padding-left: 16px; padding-right: 10px; }
}
@media (max-width: 1000px) {
  @container cc (min-width:561px) {
    #chorezone-app:not(.kid):not(.disp) .tabs.bar-fill.cz-rows2:not(.cz-cols5):not(.cz-nav-reflow) .tab { justify-content: flex-start; text-align: left; padding-left: 16px; padding-right: 10px; }
  }
}
/* 5.7.12: Settings hub: picture tiles open a section page; on it each setting is a tile that opens in place.
   Getting started is a page of step tiles, and the setup guide shows one tip at a time beside the part it is about. */
#chorezone-app .cz-set-hub, #chorezone-app .cz-set-subs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 12px; margin: 8px 0 16px; }
@container cc (max-width: 560px) { #chorezone-app .cz-set-hub, #chorezone-app .cz-set-subs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
#chorezone-app .cz-set-subs { grid-auto-flow: row dense; }
#chorezone-app .cz-set-subs.cz-set-single { display: block; }
#chorezone-app button.cz-set-tile { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 4px; width: 100%; min-height: 104px; margin: 0; padding: 14px; text-align: left; white-space: normal; font: inherit; color: inherit; background: var(--cz-card, var(--cc-card)); border: 1px solid var(--cc-line); border-radius: calc(var(--cc-radius) + 6px); box-shadow: 0 1px 2px #0001; cursor: pointer; position: relative; }
#chorezone-app button.cz-set-tile:hover { border-color: var(--cc-accent); }
#chorezone-app button.cz-set-tile:focus-visible { outline: 3px solid var(--cc-accent); outline-offset: 2px; }
#chorezone-app .cz-set-tile .cz-set-ic { font-size: 1.9rem; line-height: 1.1; }
#chorezone-app .cz-set-tile b { font-size: 1.02rem; line-height: 1.25; }
#chorezone-app .cz-set-tile small { font-size: .82rem; line-height: 1.35; opacity: .78; font-weight: 400; }
#chorezone-app .cz-set-tile.cz-set-wide { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; min-height: 0; }
#chorezone-app .cz-set-tile.cz-set-wide .cz-set-ic { grid-row: span 3; font-size: 2.2rem; }
#chorezone-app .cz-set-tile.cz-set-complete { min-height: 0; }
#chorezone-app .cz-set-prog { display: block; width: 100%; height: 8px; border-radius: 99px; background: var(--cc-line); overflow: hidden; margin-top: 4px; }
#chorezone-app .cz-set-prog > i { display: block; height: 100%; background: var(--cc-accent); border-radius: inherit; }
#chorezone-app button.cz-set-tile.cz-set-back { min-height: 0; width: auto; flex-direction: row; align-items: center; padding: 8px 14px; margin: 4px 0 10px; box-shadow: none; }
#chorezone-app .cz-set-back .cz-set-ic { font-size: 1.3rem; }
#chorezone-app .cz-set-head { display: flex; align-items: center; gap: 12px; margin: 2px 0 10px; }
#chorezone-app .cz-set-head h2 { margin: 0; font-size: 1.35rem; }
#chorezone-app .cz-set-head .cz-set-ic { font-size: 1.9rem; }
#chorezone-app .cz-set-subs button.cz-set-tile { min-height: 92px; padding-right: 34px; }
#chorezone-app .cz-set-subs .cz-set-chev { position: absolute; top: 12px; right: 12px; opacity: .6; }
#chorezone-app .cz-set-subs button.cz-set-tile.on { border-color: var(--cc-accent); box-shadow: 0 0 0 2px var(--cc-accent) inset; }
#chorezone-app .cz-set-panel { grid-column: 1 / -1; border: 2px solid var(--cc-accent); border-radius: calc(var(--cc-radius) + 6px); padding: 8px 12px 12px; background: var(--cz-card, var(--cc-card)); min-width: 0; }
#chorezone-app .cz-set-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 4px 0 6px; font-size: 1.08rem; }
#chorezone-app .cz-set-panel .czb, #chorezone-app .cz-set-panel .card { margin: 0; border: 0; box-shadow: none; padding-left: 0; padding-right: 0; background: transparent; }
#chorezone-app .cz-setup-page > p { margin: 4px 0; }
#chorezone-app .cz-setup-go { margin: 12px 0; }
#chorezone-app .cz-setup-page .cz-setup-steps { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 10px; margin: 8px 0 12px; }
@container cc (max-width: 560px) { #chorezone-app .cz-setup-page .cz-setup-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
#chorezone-app .cz-setup-page button.cz-setup-step { display: flex; align-items: center; gap: 10px; width: 100%; margin: 0; padding: 12px; text-align: left; white-space: normal; font: inherit; color: inherit; background: var(--cz-card, var(--cc-card)); border: 1px solid var(--cc-line); border-radius: 14px; }
#chorezone-app .cz-setup-n { flex: none; width: 1.8rem; height: 1.8rem; border-radius: 50%; display: grid; place-items: center; font-weight: 700; border: 2px solid var(--cc-accent); color: var(--cc-accent); }
#chorezone-app .cz-setup-step.done .cz-setup-n { background: #2e9d5a; border-color: #2e9d5a; color: #fff; }
#chorezone-app .cz-setup-step.next { border-color: var(--cc-accent); box-shadow: 0 0 0 2px var(--cc-accent) inset; }
#chorezone-app .cz-setup-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
#chorezone-app .cz-setup-t small { opacity: .72; font-size: .8rem; }
#chorezone-app .cz-coach { position: relative; margin: 10px 0 16px; padding: 14px 16px; border-radius: 14px; background: var(--cc-accent); color: var(--cc-on-accent, #fff); box-shadow: 0 6px 18px #0003; grid-column: 1 / -1; }
#chorezone-app .cz-coach::after { content: ''; position: absolute; left: 28px; bottom: -9px; border: 9px solid transparent; border-bottom: 0; border-top-color: var(--cc-accent); }
#chorezone-app .cz-coach > b { display: block; font-size: 1.1rem; margin: 2px 0 4px; }
#chorezone-app .cz-coach > p { margin: 0 0 10px; line-height: 1.4; }
#chorezone-app .cz-coach-step { opacity: .85; font-weight: 600; }
#chorezone-app .cz-coach .cz-coach-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
#chorezone-app .cz-coach button { background: var(--cc-on-accent, #fff); color: var(--cc-accent); border-color: transparent; margin: 0; }
#chorezone-app .cz-coach button.p { font-weight: 700; }
#chorezone-app .cz-coach button.cz-coach-close { background: transparent; color: inherit; text-decoration: underline; border: 0; }
#chorezone-app .cz-coach-target { outline: 3px solid var(--cc-accent); outline-offset: 3px; border-radius: 10px; }
@media (prefers-reduced-motion: no-preference) { #chorezone-app .cz-coach-target { animation: cz-coach-pulse 1.6s ease-in-out 3; } }
@keyframes cz-coach-pulse { 50% { outline-offset: 7px; } }
/* 5.7.13: the login screen's secondary buttons (Forgot password?, Back to log in, Create an account) size to their
   text in every look and site theme: the box grows with the font, the text never spills over its edge. */
:is(#chorezone-app, #chorezone-shop, #chorezone-support) form.card button.linkish[data-a="pv"],
:is(#chorezone-app, #chorezone-shop, #chorezone-support):is(.czlook-harbor, .czlook-boho, .czlook-midnight) form.card button.linkish[data-a="pv"] {
  display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box;
  height: auto; min-height: 2.6em; max-width: 100%; padding: .45em 1em; margin: 4px 0;
  font: inherit; line-height: 1.3; white-space: normal; text-align: center; overflow: visible;
  border: 1px solid var(--cc-line); border-radius: 14px; background: transparent; color: var(--cc-accent);
  text-decoration: underline; text-underline-offset: .15em; box-shadow: none;
}
/* 5.7.13: setup guide tips say what each step is for and link to the matching User Guide section */
#chorezone-app .cz-coach > p.cz-coach-why { margin: 0 0 8px; opacity: .95; }
#chorezone-app .cz-coach a.cz-coach-help { display: inline-block; margin: 0 0 10px; color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: .15em; }
#chorezone-app .cz-setup-page a.cz-setup-help { display: inline-flex; margin: 4px 0 12px; }
/* 5.7.14: everything fits its space. Buttons wrap their words instead of spilling over their edges, long links
   (like the kids' login link) wrap inside their card, and the parents list stacks on phones. */
#chorezone-app :is(.card, .cz-set-panel) :is(.row, td, form) > button:not(.sdone):not(.x), #chorezone-app a.btn { max-width: 100%; white-space: normal; overflow-wrap: break-word; }
#chorezone-app .card a:not(.btn) { overflow-wrap: anywhere; word-break: break-word; }
#chorezone-app button.linkish:not([data-q='exit']) { display: inline-flex; align-items: center; min-height: 2.4em; padding: .35em .9em; line-height: 1.3; text-align: left; box-sizing: border-box; }
#chorezone-app:not(:is(.czlook-harbor, .czlook-boho, .czlook-midnight)) button.linkish:not([data-q='exit']) { padding-left: 0; padding-right: 0; min-height: 0; }
#chorezone-app table.cz-plist td:first-child { overflow-wrap: anywhere; }
#chorezone-app table.cz-plist td:last-child { text-align: right; }
#chorezone-app table.cz-plist td:last-child button { margin: 3px 0 3px 6px; }
@container cc (max-width: 560px) {
  #chorezone-app table.cz-plist, #chorezone-app table.cz-plist tbody, #chorezone-app table.cz-plist tr, #chorezone-app table.cz-plist td { display: block; width: 100%; }
  #chorezone-app table.cz-plist tr { padding: 10px 0; border-bottom: 1px solid var(--cc-line); }
  #chorezone-app table.cz-plist td { padding: 0; border: 0; }
  #chorezone-app table.cz-plist td:last-child { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-start; text-align: left; margin-top: 8px; }
  #chorezone-app table.cz-plist td:last-child button { margin: 0; }
}
/* 5.7.14: Log out is a small button at the top right of the dashboard */
#chorezone-app header button.cz-out-small { font-size: .9rem; padding: 6px 14px; min-height: 0; margin: 0; }
#chorezone-app .cz-reset-tools > .czb, #chorezone-app .cz-reset-tools > .czb > .card { border: 0; padding-left: 0; padding-right: 0; margin: 0 0 12px; box-shadow: none; background: transparent; }
/* 5.7.14: menu rows fill without gaps (My account moves up into a spare cell before Messaging & Settings) */
@container cc (max-width: 560px) { #chorezone-app:not(.kid) .tabs.bar-fill { grid-auto-flow: row dense; } }
@media (max-width: 1000px) { @container cc (min-width: 561px) { #chorezone-app:not(.kid) .tabs.bar-fill.cz-rows2 { grid-auto-flow: row dense; } } }
@container cc (max-width:560px) { #chorezone-app:not(.kid) .tabs.bar-fill.cz-odd > .tab.cz-out-wide[data-t='acct'] { grid-column: 1 / -1; } }
@media (max-width: 1000px) { @container cc (min-width:561px) { #chorezone-app:not(.kid) .tabs.bar-fill.cz-odd.cz-rows2:not(.cz-nav-two):not(.cz-nav-reflow) > .tab.cz-out-wide[data-t='acct'] { grid-column: span 2; } } }
@container cc (min-width:561px) { #chorezone-app:not(.kid) .tabs.bar-fill.cz-odd:is(.cz-nav-reflow, .cz-nav-two) > .tab.cz-out-wide[data-t='acct'] { grid-column: span 2; } }
/* 5.7.15: choice cards (true-up mode): soft, rounded, one per line, the whole card is the target */
#chorezone-app fieldset.cz-choice-cards { border: 0; margin: 10px 0; padding: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
#chorezone-app fieldset.cz-choice-cards > legend { font-weight: 700; margin-bottom: 6px; padding: 0; }
#chorezone-app label.cz-choice-card { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; margin: 0; padding: 12px 14px; border: 1px solid var(--cc-line); border-radius: 16px; background: var(--cz-card, var(--cc-card)); cursor: pointer; text-align: left; font-weight: 400; line-height: 1.35; width: 100%; box-sizing: border-box; }
#chorezone-app label.cz-choice-card:has(input:checked) { border-color: var(--cc-accent); box-shadow: 0 0 0 2px var(--cc-accent) inset; background: color-mix(in srgb, var(--cc-accent) 7%, var(--cz-card, var(--cc-card))); }
#chorezone-app label.cz-choice-card > input { width: 1.2em; height: 1.2em; margin: 0; accent-color: var(--cc-accent); }
/* 5.7.15: sub-headings that group the extra tools on each screen; account details inside each child's card */
#chorezone-app h3.cz-subhead { font-size: .95rem; text-transform: uppercase; letter-spacing: .05em; opacity: .75; margin: 18px 2px 8px; }
#chorezone-app .cz-set-hub > h3.cz-set-subhead { grid-column: 1 / -1; margin: 8px 2px 0; }
#chorezone-app details.cz-acct-disc { margin: 8px 0 0; }
#chorezone-app .cz-acct-detail .mfilters { flex-wrap: wrap; }
#chorezone-app .cz-chore-section { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
#chorezone-app .cz-chore-section > * { grid-column: 1 / -1; }
#chorezone-app .cz-chore-section > .czb.czb-h { grid-column: auto; }
@container cc (max-width: 560px) { #chorezone-app .cz-chore-section > .czb.czb-h { grid-column: 1 / -1; } }
