@font-face { font-family: 'Inter'; font-weight: 400; font-display: swap; src: url(/fonts/inter-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 600; font-display: swap; src: url(/fonts/inter-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 700; font-display: swap; src: url(/fonts/inter-latin-700-normal.woff2) format('woff2'); }

/*
 * Flat, like bikybag.com, in earth colours: warm off-white page, sand panels with big rounded corners,
 * pill buttons (dark when it's the main action, outlined when not), bold tight headings, no shadows.
 * Olive means done, ochre means points and PC time, clay means waiting, terracotta means a warning.
 * The old colour names are kept so the page code can use them.
 */
:root {
  --paper: #fbf9f5;
  --sand: #f1ece3;
  --sand-deep: #e6dfd3;
  --ink: #26221d;
  --ink-soft: #6f675c;
  --line: #e4ddd1;
  --line-strong: #cbc1b2;
  --olive: #5f6f3e;
  --olive-soft: #e7eadc;
  --ochre: #b98330;
  --ochre-soft: #f4e8cf;
  --clay: #8b6f57;
  --clay-soft: #eee5da;
  --terra: #b0502e;
  --terra-soft: #f6e2d9;
  --stone: #a39b8d;
  --card: #ffffff;
  --knob: #ffffff;
  --hero: #26221d;
  --hero-ink: #fbf9f5;
  --hero-soft: #d8d0c4;
  --hero-hot: #e4b866;
  --hero-line: rgba(251, 249, 245, .16);
  --warn-ink: #7a5418;
  --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2326221d' stroke-width='1.6'/%3E%3C/svg%3E");

  /* Old names */
  --sky: var(--paper);
  --mist: var(--sand);
  --white: var(--card);
  --sun: var(--ochre);
  --sun-deep: var(--ochre);
  --leaf: var(--olive);
  --leaf-deep: var(--olive);
  --plum: var(--clay);
  --plum-deep: var(--clay);
  --tomato: var(--terra);
  --tomato-deep: var(--terra);

  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --head: var(--font);
  --body: var(--font);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}

/* Dark: the same earth colours on a dark warm brown. Auto follows the phone; Light and Dark are set per phone. */
:root[data-theme="dark"] {
  --paper: #1c1a17;
  --sand: #27241f;
  --sand-deep: #3a352e;
  --ink: #eee8de;
  --ink-soft: #a89f92;
  --line: #34302a;
  --line-strong: #4d463d;
  --olive: #a3b277;
  --olive-soft: #2c311f;
  --ochre: #d6a24e;
  --ochre-soft: #3b301c;
  --clay: #c8a888;
  --clay-soft: #362c23;
  --terra: #e3825d;
  --terra-soft: #3e251c;
  --stone: #7f786d;
  --card: #23201c;
  --knob: #d9d1c5;
  --hero: #2f2b25;
  --hero-ink: #eee8de;
  --hero-soft: #b3a99b;
  --hero-hot: #e0b464;
  --hero-line: rgba(238, 232, 222, .14);
  --warn-ink: #e0b464;
  --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23eee8de' stroke-width='1.6'/%3E%3C/svg%3E");
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #1c1a17;
    --sand: #27241f;
    --sand-deep: #3a352e;
    --ink: #eee8de;
    --ink-soft: #a89f92;
    --line: #34302a;
    --line-strong: #4d463d;
    --olive: #a3b277;
    --olive-soft: #2c311f;
    --ochre: #d6a24e;
    --ochre-soft: #3b301c;
    --clay: #c8a888;
    --clay-soft: #362c23;
    --terra: #e3825d;
    --terra-soft: #3e251c;
    --stone: #7f786d;
    --card: #23201c;
    --knob: #d9d1c5;
    --hero: #2f2b25;
    --hero-ink: #eee8de;
    --hero-soft: #b3a99b;
    --hero-hot: #e0b464;
    --hero-line: rgba(238, 232, 222, .14);
    --warn-ink: #e0b464;
    --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23eee8de' stroke-width='1.6'/%3E%3C/svg%3E");
    color-scheme: dark;
  }
}


* { box-sizing: border-box; }
/* No zoom on a double tap (pinch to zoom still works). On every element: iPhone Safari doesn't pass it down. /taps.js covers
   what's left. */
html { -webkit-text-size-adjust: 100%; }
*, *::before, *::after { touch-action: manipulation; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.5 var(--font);
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
h1, h2, h3 { font-weight: 700; line-height: 1.15; letter-spacing: -0.03em; margin: 0; }
p { margin: 0; }
.boot { padding: 40px 20px; font-weight: 600; color: var(--ink-soft); }

#app { max-width: 560px; margin: 0 auto; padding: calc(20px + var(--safe-top)) 20px calc(28px + var(--safe-bottom)); }

/* ---------- shared controls ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 22px;
  border: 1px solid var(--ink); border-radius: 999px;
  background: var(--ink); color: var(--paper);
  font-weight: 600; font-size: 16px; white-space: nowrap;
  transition: opacity .12s;
}
.btn:active { opacity: .75; }
.btn.sun { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn.leaf { background: var(--olive); border-color: var(--olive); color: var(--paper); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn.danger { background: transparent; color: var(--terra); border-color: var(--line-strong); }
.btn.small { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn.wide { width: 100%; }
.btn[disabled] { opacity: .4; pointer-events: none; }
.link { background: none; border: 0; padding: 6px 4px; color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.field { display: grid; gap: 6px; margin: 0 0 16px; }
.field > span { font-weight: 600; font-size: 15px; }
.field small { color: var(--ink-soft); font-size: 13px; }
.input, textarea.input, select.input {
  width: 100%; min-height: 50px; padding: 10px 16px;
  border: 1px solid var(--line-strong); border-radius: 14px; background: var(--white);
  font-size: 16px; /* smaller text makes iPhones zoom in when you tap the box */
  -webkit-appearance: none; appearance: none;
}
select.input {
  background-image: var(--select-arrow);
  background-repeat: no-repeat; background-position: right 16px center; background-size: 12px; padding-right: 40px;
}
textarea.input { min-height: 110px; resize: vertical; font-size: 16px; }
.input:focus { border-color: var(--ink); outline: none; }
.suffix { display: flex; align-items: center; gap: 8px; }
.suffix .input { max-width: 110px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-width: 44px; min-height: 40px; padding: 0 14px;
  border: 1px solid var(--line-strong); border-radius: 999px; background: transparent;
  font-weight: 600; font-size: 15px;
}
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; }
.toggle input { appearance: none; -webkit-appearance: none; width: 50px; height: 30px; border-radius: 999px; background: var(--sand-deep); position: relative; flex: none; transition: background .15s; }
.toggle input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--knob); transition: transform .15s; }
.toggle input:checked { background: var(--ink); }
.toggle input:checked::after { transform: translateX(20px); background: var(--paper); }
.toggle span small { display: block; color: var(--ink-soft); font-size: 13px; }

#toast {
  position: fixed; left: 50%; bottom: calc(96px + var(--safe-bottom)); transform: translate(-50%, 12px);
  width: max-content; max-width: min(92vw, 480px); padding: 12px 20px; border-radius: 999px;
  background: var(--ink); color: var(--paper); font-weight: 600; font-size: 15px;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 50;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- welcome / setup ---------- */

.welcome { display: grid; gap: 22px; padding-top: 8vh; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand-mark { width: 48px; height: 48px; flex: none; }
.brand h1 { font-size: 32px; }
.welcome .lead { font-size: 17px; color: var(--ink-soft); max-width: 34ch; }
.who { display: grid; gap: 12px; margin-top: 10px; }
.who .btn { min-height: 60px; font-size: 18px; }
.panel { background: var(--sand); border-radius: 22px; padding: 20px; }
.panel h2 { font-size: 22px; margin-bottom: 6px; }
.panel .note { color: var(--ink-soft); margin-bottom: 16px; }
.code-input { text-align: center; letter-spacing: .3em; font-size: 28px; font-weight: 700; text-transform: uppercase; }
.err { color: var(--terra); font-weight: 600; font-size: 14px; min-height: 1.4em; margin: 6px 0; }
.note { color: var(--ink-soft); }

.pin-dots { display: flex; justify-content: center; gap: 14px; margin: 14px 0 18px; min-height: 14px; }
.pin-dots i { width: 14px; height: 14px; border-radius: 50%; background: var(--ink); }
.pinpad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pinpad button { min-height: 62px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--white); font-size: 24px; font-weight: 600; }
.pinpad button:active { background: var(--sand); }
.pinpad .ok { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* ---------- child ---------- */

.kid { display: grid; gap: 16px; }
.kid-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.kid-head h1 { font-size: 32px; }
.kid-head .date { color: var(--ink-soft); font-weight: 600; }
.star-count { display: grid; justify-items: end; font-size: 28px; font-weight: 700; line-height: 1; letter-spacing: -0.03em; }
.star-count small { font-size: 13px; font-weight: 600; color: var(--ink-soft); letter-spacing: 0; margin-top: 4px; }

.charge { background: var(--hero); color: var(--hero-ink); border-radius: 26px; padding: 20px 20px 22px; }
.charge-label { font-weight: 600; color: var(--hero-soft); }
.charge-time { font-size: 52px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; margin: 4px 0 16px; }
.battery { display: flex; align-items: center; gap: 0; }
.battery-body {
  flex: 1; height: 48px; border: 2px solid var(--hero-ink); border-radius: 14px; padding: 4px;
  display: flex; gap: 3px; overflow: hidden;
}
.battery-cap { width: 7px; height: 20px; background: var(--hero-ink); border-radius: 0 4px 4px 0; }
.seg { height: 100%; border-radius: 8px; min-width: 0; transition: flex-basis .6s cubic-bezier(.2,.8,.2,1); }
.seg.base { background: var(--stone); }
.seg.earned { background: var(--ochre); }
.seg.waiting { background: repeating-linear-gradient(135deg, var(--clay) 0 8px, #a58a72 8px 16px); }
.charge-key { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; font-size: 14px; color: var(--hero-soft); }
.charge-key b { color: var(--hero-ink); }
.key-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: 0; }
.charge-used { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--hero-line); font-weight: 600; }
.charge-used.out { color: var(--hero-hot); }

.next { background: var(--sand); border-radius: 26px; padding: 20px; display: grid; gap: 14px; }
.next-label { font-weight: 600; color: var(--ink-soft); }
.next-main { display: flex; align-items: center; gap: 14px; }
.next-title { font-size: 28px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.next-pts { font-weight: 600; color: var(--ochre); font-size: 17px; }
.next-actions { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.next-actions .btn { min-height: 56px; font-size: 18px; }
.next.all-done { text-align: center; background: var(--olive-soft); color: var(--olive); }
.next.all-done .next-title { font-size: 28px; color: var(--ink); }

.period h2 { font-size: 20px; margin: 6px 2px 10px; display: flex; justify-content: space-between; align-items: baseline; }
.period h2 small { font-size: 14px; color: var(--ink-soft); font-weight: 600; letter-spacing: 0; }
.tiles { display: grid; gap: 8px; }
.tile {
  position: relative; display: flex; align-items: center; gap: 12px; width: 100%;
  min-height: 66px; padding: 10px 16px; text-align: left;
  border: 1px solid var(--line); border-radius: 18px; background: var(--white);
}
button.tile:active { background: var(--sand); }
.tile-text { flex: 1; display: grid; min-width: 0; }
.tile-title { font-weight: 600; font-size: 17px; }
.tile-sub { font-size: 14px; color: var(--ink-soft); font-weight: 500; }
.tile-pts { font-weight: 700; font-size: 17px; color: var(--ochre); flex: none; }
.tile.is-pending { background: var(--clay-soft); border-color: var(--clay-soft); }
.tile.is-pending .tile-sub, .tile.is-pending .tile-pts { color: var(--clay); }
.tile.is-approved { background: var(--olive-soft); border-color: var(--olive-soft); }
.tile.is-approved .tile-sub, .tile.is-approved .tile-pts { color: var(--olive); }
.tile.is-rejected .tile-sub { color: var(--terra); }
.tile .link { flex: none; }

.week { background: var(--sand); border-radius: 22px; padding: 18px 20px; }
.week h2 { font-size: 20px; }
.week-bar { position: relative; height: 12px; border-radius: 999px; background: var(--sand-deep); margin: 12px 0 8px; overflow: hidden; }
.week-bar i { position: absolute; inset: 0 auto 0 0; background: var(--ochre); border-radius: 999px; }
.week p { color: var(--ink-soft); font-weight: 600; }
.kid-foot { text-align: center; }
.charge-rules { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--hero-line); font-size: 14px; color: var(--hero-soft); display: grid; gap: 2px; }
.charge-rules b { color: var(--hero-ink); }
.charge-rules .hot { color: var(--hero-hot); }
.rewards { background: var(--sand); border-radius: 22px; padding: 18px 20px; }
.rewards h2 { font-size: 20px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.rewards h2 small { font-size: 15px; font-weight: 600; color: var(--ochre); white-space: nowrap; letter-spacing: 0; }
.rewards .note { color: var(--ink-soft); margin: 8px 0 12px; }
.reward-list { display: grid; gap: 8px; margin: 12px 0 14px; }
.reward { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--white); }
.reward.is-given { background: var(--olive-soft); }
.reward.is-claimed { background: var(--clay-soft); }
.reward.is-declined { opacity: .7; }
.reward-main { flex: 1; min-width: 0; }
.reward-title { display: block; font-weight: 600; }
.reward-sub { display: block; font-size: 14px; color: var(--ink-soft); }
.reward .week-bar { display: block; height: 8px; margin: 6px 0 4px; background: var(--sand-deep); }
.reward .btn, .reward .link { flex: none; }
.reward-set { display: flex; gap: 8px; margin-top: 6px; align-items: center; }
.reward-set .input { max-width: 110px; min-height: 44px; }
.ask-row { flex-wrap: wrap; }
.ask-set { flex: 1 0 100%; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding-left: 46px; }
.ask-set .input { max-width: 110px; min-height: 44px; }
.ask-set .toggle { flex: 1 0 100%; padding: 4px 0 0; font-size: 15px; }
.time-range { display: flex; align-items: center; gap: 8px; }
.time-range .input { max-width: 150px; }
.row.search.flag .row-title { color: var(--terra); }
.row.search.flag .row-sub b { color: var(--terra); }
.log { background: var(--hero); color: var(--hero-ink); font: 12px/1.45 ui-monospace, Menlo, Consolas, monospace; padding: 12px 14px; border-radius: 14px; max-height: 55dvh; overflow: auto; white-space: pre-wrap; word-break: break-word; margin: 0; }

/* A tick: a few dots burst out. */
.burst { position: fixed; pointer-events: none; z-index: 60; }
.burst span { position: absolute; width: 10px; height: 10px; border-radius: 50%; animation: fly .7s ease-out forwards; }
@keyframes fly {
  from { transform: translate(-50%, -50%) scale(.4); opacity: 1; }
  to { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1); opacity: 0; }
}
.pop { animation: pop .35s ease-out; }
@keyframes pop { 40% { transform: scale(1.03); } }

/* sheets */
.overlay {
  position: fixed; inset: 0; z-index: 40; background: rgba(38, 34, 29, .45);
  display: flex; align-items: flex-end; justify-content: center;
}
.sheet {
  width: min(560px, 100%); max-height: 92dvh; overflow: auto;
  background: var(--paper); border-radius: 26px 26px 0 0;
  padding: 22px 20px calc(22px + var(--safe-bottom));
}
.sheet h2 { font-size: 24px; margin-bottom: 14px; }
.sheet-actions { display: flex; gap: 10px; margin-top: 18px; }
.sheet-actions .btn { flex: 1; }
.timer-ring { display: block; width: 220px; height: 220px; margin: 6px auto 10px; }
.timer-ring circle { fill: none; stroke-width: 14; }
.timer-ring .track { stroke: var(--sand-deep); }
.timer-ring .left { stroke: var(--ochre); stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; transition: stroke-dashoffset 1s linear; }
.timer-ring text { font-weight: 700; font-size: 44px; letter-spacing: -0.03em; fill: var(--ink); text-anchor: middle; dominant-baseline: central; }
.timer-for { text-align: center; font-weight: 600; color: var(--ink-soft); }
.timer-done { text-align: center; font-size: 30px; font-weight: 700; color: var(--olive); }

/* ---------- parent ---------- */

.parent { padding-bottom: 84px; }
.p-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.p-head h1 { font-size: 30px; }
.p-head p { color: var(--ink-soft); font-weight: 600; }
.sec { background: var(--sand); border-radius: 22px; padding: 18px 18px; margin-bottom: 12px; }
.sec > h2 { font-size: 20px; margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.sec > p.note { color: var(--ink-soft); margin: -4px 0 12px; font-size: 15px; }
.sec.alert { background: var(--terra-soft); color: var(--terra); display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.sec.alert .btn { background: var(--terra); border-color: var(--terra); color: var(--paper); }

.rows { display: grid; }
.row { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); }
.row:first-child { border-top: 0; }
.row-main { flex: 1; min-width: 0; }
.row-title { font-weight: 600; }
.row-sub { font-size: 14px; color: var(--ink-soft); }
.row-actions { display: flex; gap: 6px; flex: none; align-items: center; }
.row.dim { opacity: .5; }
.badge { font-size: 12px; font-weight: 600; border-radius: 999px; padding: 2px 10px; white-space: nowrap; }
.badge.todo { background: var(--sand-deep); color: var(--ink-soft); }
.badge.pending { background: var(--clay-soft); color: var(--clay); }
.badge.approved { background: var(--olive-soft); color: var(--olive); }
.badge.rejected { background: var(--terra-soft); color: var(--terra); }
.icon-btn { width: 40px; height: 40px; border: 1px solid var(--line-strong); border-radius: 50%; background: transparent; font-size: 16px; font-weight: 700; flex: none; display: inline-grid; place-items: center; }
.icon-btn.yes { background: var(--olive); border-color: var(--olive); color: var(--paper); }
.icon-btn.no { color: var(--terra); }

.big-num { font-size: 44px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; margin: 12px 0; font-size: 15px; }
.kv dt { color: var(--ink-soft); }
.kv dd { margin: 0; font-weight: 600; text-align: right; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }
.status-line { font-size: 14px; font-weight: 500; padding: 10px 14px; border-radius: 14px; background: var(--white); margin-top: 12px; }
.status-line.warn { background: var(--ochre-soft); color: var(--warn-ink); }

.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--paper); border-top: 1px solid var(--line);
  padding: 6px max(8px, calc((100vw - 560px) / 2)) calc(6px + var(--safe-bottom));
}
.tabs button {
  border: 0; background: none; min-height: 54px; border-radius: 14px;
  display: grid; justify-items: center; gap: 2px; font-size: 12px; font-weight: 600; color: var(--ink-soft);
}
.tabs button svg { width: 24px; height: 24px; }
.tabs button[aria-current="page"] { color: var(--ink); font-weight: 700; }
.tabs .dot { position: relative; }
.tabs .dot::after { content: ''; position: absolute; top: -2px; right: -6px; width: 9px; height: 9px; border-radius: 50%; background: var(--terra); }

.daynav { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.daynav h2 { font-size: 20px; text-align: center; }
.bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; align-items: end; height: 110px; margin-top: 6px; }
.bar { display: grid; justify-items: center; align-content: end; gap: 4px; height: 100%; font-size: 12px; font-weight: 600; color: var(--ink-soft); border: 0; background: none; padding: 0; }
.bar i { display: block; width: 100%; max-width: 28px; border-radius: 8px; background: var(--ochre); min-height: 4px; }
.bar.sel { color: var(--ink); }
.bar.sel i { background: var(--ink); }
.bar .flag { width: 8px; height: 8px; border-radius: 50%; background: var(--terra); }
.row-pts { flex: none; font-weight: 700; color: var(--olive); }
.row-pts.pending { color: var(--clay); }
.row-pts.off { color: var(--ink-soft); text-decoration: line-through; }
.row-pts.none { color: var(--ink-soft); }
.row-pts.spent { color: var(--terra); }
.search { padding: 10px 0; border-top: 1px solid var(--line); }
.search:first-child { border-top: 0; }
.search-q { font-weight: 600; word-break: break-word; }
.search-meta { font-size: 13px; color: var(--ink-soft); }
.search.flagged .search-q { color: var(--terra); }

.pair-code { font-size: 40px; font-weight: 700; letter-spacing: .18em; text-align: center; padding: 12px; border-radius: 18px; background: var(--white); margin: 10px 0 6px; }
.stepper { display: flex; align-items: center; gap: 12px; }
.stepper output { font-size: 26px; font-weight: 700; min-width: 2ch; text-align: center; }
.holiday { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; align-items: center; margin-bottom: 8px; }
.holiday .input { min-height: 44px; padding: 6px 10px; font-size: 16px; }

/* The logo follows the colours. */
.brand-mark .b { fill: var(--ink); }
.brand-mark .c { fill: var(--ochre); }
.brand-mark .z { fill: var(--paper); }

/* A parent's well done on a done task */
.tile-sub.praise { color: var(--olive); font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.theme-pick { display: flex; justify-content: center; margin-top: 14px; }

/* Pictures: thin line icons in a circle. */
.ic { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--sand); color: var(--ink); flex: none; }
.ic svg { width: 22px; height: 22px; }
.ic.big { width: 64px; height: 64px; }
.ic.big svg { width: 32px; height: 32px; }
.ic.sm { width: 26px; height: 26px; background: transparent; }
.ic.sm svg { width: 18px; height: 18px; }
.sec .ic, .next .ic, .rewards .ic, .tile.is-approved .ic, .tile.is-pending .ic { background: var(--card); }
.row-icon { display: inline-grid; place-items: center; width: 36px; height: 36px; flex: none; }
.row-icon svg { width: 20px; height: 20px; }
.row-actions .btn.small { padding: 0 12px; }
.row-actions .icon-btn { width: 38px; height: 38px; }
.chip.with-ic { display: inline-flex; align-items: center; gap: 6px; padding-left: 8px; }
.chip.with-ic[aria-pressed="true"] .ic { color: var(--paper); }
.icon-pick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.icon-pick button { width: 48px; height: 48px; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--card); color: var(--ink); display: grid; place-items: center; padding: 0; }
.icon-pick button svg { width: 22px; height: 22px; }
.icon-pick button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* The grown-ups' day from You Can Do It, on the child's screen */
.family-row { display: grid; margin-top: 12px; }
.family-row .week-bar { margin: 6px 0 4px; height: 10px; }
.family-name { font-weight: 700; }
.family-name small { color: var(--olive); font-weight: 600; font-size: 14px; }
.family-sub { color: var(--ink-soft); font-weight: 600; font-size: 14px; }

/* Links to the other apps on this website */
a.app-link { color: inherit; text-decoration: none; }
a.app-link > span:last-child { font-size: 22px; color: var(--ink-soft); }
