/* The Mom Centre bedtime routine. Scoped under .tmcb (parent page) and .tmcb-kid (child mode). */
.tmcb, .tmcb-kid, .tmcb-print {
  --b-teal: #0E9DA5; --b-teal-dark: #0A6F75; --b-teal-soft: #E3F5F6;
  --b-orange: #FF8C15; --b-orange-deep: #E8590C; --b-gold: #F5B700; --b-orange-soft: #FFF1E2;
  --b-navy: #1B2452; --b-text: #24283b; --b-muted: #5d6275; --b-line: #dfe3ea;
  --b-amber: #a15c00; --b-amber-soft: #fff3dc; --b-red: #c0392b;
  --b-round: ui-rounded, "SF Pro Rounded", "Nunito", "Varela Round", "Quicksand", system-ui, -apple-system, "Segoe UI", sans-serif;
}
.tmcb { font-family: inherit; color: var(--b-text); font-size: 16px; line-height: 1.5; max-width: 780px; margin: 0 auto; }
.tmcb *, .tmcb *::before, .tmcb *::after, .tmcb-kid *, .tmcb-kid *::before, .tmcb-kid *::after { box-sizing: border-box; }
.tmcb h2, .tmcb h3, .tmcb h4 { color: var(--b-navy); margin: 0 0 .45em; line-height: 1.25; }
.tmcb h2 { font-size: 1.6em; } .tmcb h3 { font-size: 1.18em; display: flex; align-items: center; gap: 10px; } .tmcb h4 { font-size: 1em; margin-top: 18px; }
.tmcb p { margin: 0 0 .7em; }
.tmcb button { font: inherit; cursor: pointer; }
.tmcb button:focus-visible, .tmcb input:focus-visible { outline: 3px solid rgba(14,157,165,.45); outline-offset: 2px; }
.tmcb-card { background: #fff; border: 1px solid var(--b-line); border-radius: 16px; padding: 20px; margin: 0 0 16px; position: relative; }
.tmcb-small { font-size: .88em; color: var(--b-muted); }
.tmcb-draft { background: var(--b-amber-soft); color: var(--b-amber); border-radius: 10px; padding: 8px 12px; margin-bottom: 12px; font-weight: 600; font-size: .9em; }
.tmcb-note { background: var(--b-orange-soft); border-radius: 10px; padding: 10px 12px; font-size: .94em; margin: 12px 0 0; }
.tmcb-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 12px; }
.tmcb-btn { background: var(--b-orange); color: #1B2452; border: 0; border-radius: 999px; padding: 11px 22px; font-weight: 700; line-height: 1.2; }
.tmcb-btn:hover { background: var(--b-orange-deep); color: #fff; } .tmcb-btn[disabled] { opacity: .55; cursor: default; }
.tmcb-btn-big { font-size: 1.08em; padding: 14px 26px; }
.tmcb-btn-ghost { background: transparent; color: var(--b-teal-dark); border: 2px solid var(--b-teal); padding: 9px 18px; }
.tmcb-link { background: none; border: 0; padding: 0; color: var(--b-teal-dark); text-decoration: underline; }
.tmcb label { display: block; font-weight: 600; margin: 10px 0 4px; }
.tmcb input[type=text], .tmcb input[type=email], .tmcb input[type=time], .tmcb input[type=number] {
  width: 100%; padding: 10px 12px; border: 1px solid #b9c0cc; border-radius: 10px; font: inherit; background: #fff; color: var(--b-text); }
.tmcb-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 520px) { .tmcb-grid2 { grid-template-columns: 1fr; } }
.tmcb-num { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--b-teal); color: #fff; display: inline-grid; place-items: center; font-size: .85em; }

/* hero */
.tmcb-hero { display: flex; gap: 20px; align-items: center; background: linear-gradient(135deg, #0A5E64 0%, #0E9DA5 70%, #12B3BB 100%); border-bottom: 4px solid var(--b-orange); color: #fff; border-radius: 20px; padding: 24px; margin-bottom: 16px; }
.tmcb-hero h2 { color: #fff; } .tmcb-hero p { color: #EAFBFC; }
.tmcb-hero-art { position: relative; flex: none; width: 110px; height: 110px; }
.tmcb-hero-art .tmcb-moon { font-size: 78px; position: absolute; left: 10px; top: 14px; line-height: 1; filter: drop-shadow(0 0 18px rgba(255,214,110,.55)); }
.tmcb-hero-art span:not(.tmcb-moon) { position: absolute; font-size: 20px; animation: tmcb-twinkle 2.4s ease-in-out infinite; }
.tmcb-hero-art .s1 { right: 0; top: 0; } .tmcb-hero-art .s2 { right: 12px; bottom: 8px; animation-delay: .8s; } .tmcb-hero-art .s3 { left: 0; bottom: 0; font-size: 14px; animation-delay: 1.5s; }
@media (max-width: 560px) { .tmcb-hero { flex-direction: column; text-align: center; padding: 20px 16px; } .tmcb-hero .tmcb-row { justify-content: center; } .tmcb-hero-art { width: 96px; height: 90px; } .tmcb-hero-art .tmcb-moon { font-size: 64px; } }
@keyframes tmcb-twinkle { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.8); } }

/* install */
.tmcb-install { background: var(--b-teal-soft); border-color: #bfe0e3; }
.tmcb-install p:last-child { margin: 0; }
.tmcb-x { position: absolute; right: 10px; top: 8px; border: 0; background: none; font-size: 24px; line-height: 1; color: var(--b-muted); padding: 4px 8px; }
.tmcb-steps { margin: 0 0 .7em 1.2em; padding: 0; } .tmcb-steps li { margin: 4px 0; }
.tmcb-ico { display: inline-block; font-size: .95em; }

/* children tabs */
.tmcb-kids { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.tmcb-kidtab { border: 2px solid var(--b-line); background: #fff; border-radius: 999px; padding: 8px 16px; font-weight: 700; color: var(--b-navy); }
.tmcb-kidtab[aria-selected=true] { border-color: var(--b-teal); background: var(--b-teal); color: #fff; }
.tmcb-kidadd { border-style: dashed; color: var(--b-teal-dark); }

/* buddies */
.tmcb-buddies { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; max-width: 460px; }
@media (max-width: 420px) { .tmcb-buddies { grid-template-columns: repeat(6, 1fr); } }
.tmcb-buddy { aspect-ratio: 1; border: 2px solid transparent; background: #f2f4f8; border-radius: 14px; font-size: 26px; padding: 0; line-height: 1; }
.tmcb-buddy[aria-pressed=true] { border-color: var(--b-orange); background: var(--b-orange-soft); transform: scale(1.06); }

/* activities */
.tmcb-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.tmcb-act-wrap { position: relative; display: inline-flex; }
.tmcb-act { display: inline-flex; align-items: center; gap: 8px; border: 2px solid var(--b-line); background: #fff; border-radius: 999px; padding: 8px 14px 8px 10px; font-weight: 600; color: var(--b-text); }
.tmcb-act-e { font-size: 1.3em; line-height: 1; }
.tmcb-act[aria-pressed=true] { border-color: var(--b-teal); background: var(--b-teal-soft); color: var(--b-teal-dark); }
.tmcb-act[aria-pressed=true]::after { content: "✓"; font-weight: 800; }
.tmcb-act-del { position: absolute; right: -6px; top: -6px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: var(--b-muted); color: #fff; font-size: 14px; line-height: 22px; padding: 0; }
.tmcb-addline { display: flex; gap: 8px; margin-top: 12px; max-width: 460px; }
.tmcb-addline input { flex: 1; min-width: 0; }

/* routine list */
.tmcb-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tmcb-item { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: #fff; border: 1px solid var(--b-line); border-left: 8px solid var(--c); border-radius: 14px; padding: 8px 10px; }
.tmcb-item-e { flex: none; width: 52px; height: 52px; border-radius: 12px; border: 0; background: var(--c); font-size: 28px; padding: 0; line-height: 1; }
.tmcb-item-main { flex: 1; min-width: 150px; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; }
.tmcb .tmcb-item-t { border: 1px solid transparent !important; background: transparent !important; font-weight: 700 !important; padding: 4px 6px !important; flex: 1 1 100%; color: var(--b-navy) !important; }
.tmcb .tmcb-item-t:hover, .tmcb .tmcb-item-t:focus { border-color: #b9c0cc !important; background: #fff !important; }
.tmcb-item-main .tmcb-small { padding-left: 6px; }
.tmcb label.tmcb-mins { display: inline-flex; align-items: center; gap: 4px; font-weight: 400; font-size: .85em; color: var(--b-muted); margin: 0; padding-left: 6px; }
.tmcb .tmcb-mins input { width: 56px; padding: 3px 6px; }
.tmcb-item-btns { display: flex; gap: 4px; margin-left: auto; }
.tmcb-item-btns button { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--b-line); background: #f6f8fa; color: var(--b-navy); padding: 0; font-size: 14px; }
.tmcb-item-btns button[disabled] { opacity: .3; cursor: default; }
.tmcb-item-btns button[data-a=del] { color: var(--b-red); }
.tmcb-total { margin: 12px 0 0; color: var(--b-navy); }
.tmcb-picker { flex: 1 1 100%; display: grid; grid-template-columns: repeat(auto-fill, minmax(42px, 1fr)); gap: 4px; padding: 8px; background: #f6f8fa; border-radius: 12px; }
.tmcb-picker button { aspect-ratio: 1; border: 2px solid transparent; background: #fff; border-radius: 10px; font-size: 22px; padding: 0; line-height: 1; }
.tmcb-picker button[aria-pressed=true] { border-color: var(--b-orange); }
.tmcb-palette { display: flex; flex-wrap: wrap; gap: 8px; }
.tmcb-pal { display: inline-flex; align-items: center; gap: 8px; border: 2px dashed #c6ccd8; background: #fff; border-radius: 12px; padding: 8px 12px; font-weight: 600; color: var(--b-text); }
.tmcb-pal span { font-size: 1.35em; line-height: 1; }
.tmcb-pal:hover { border-color: var(--b-teal); border-style: solid; }
.tmcb-own { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.tmcb-own input { flex: 1; min-width: 0; }
.tmcb-own-e { flex: none; width: 48px; height: 48px; border-radius: 12px; background: var(--b-orange-soft); display: grid; place-items: center; font-size: 26px; }
@media (max-width: 480px) { .tmcb-own { flex-wrap: wrap; } .tmcb-own .tmcb-btn { width: 100%; } }

/* go + stars */
.tmcb-go { background: linear-gradient(180deg, #fff 0%, #fff8f3 100%); border-color: #f6cdb5; }
.tmcb-week { display: flex; gap: 6px; justify-content: center; margin: 16px 0 6px; }
.tmcb-day { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 12px; color: var(--b-muted); min-width: 34px; }
.tmcb-day b { font-size: 24px; line-height: 1.1; color: #c4cad6; font-weight: 400; }
.tmcb-day.today { font-weight: 700; color: var(--b-navy); }
.tmcb-day.got b, .tmcb-kid .tmcb-day.got b { color: #F5B700; text-shadow: 0 0 8px rgba(255,211,110,.6); }
.tmcb-week-s { justify-content: flex-start; }
.tmcb-go .tmcb-small { margin: 0; }

/* email */
.tmcb-email { border-top: 5px solid var(--b-orange); }
.tmcb-install { border-left: 5px solid var(--b-teal); }
.tmcb-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.tmcb label.tmcb-check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .94em; margin-top: 12px; }
.tmcb-check input { margin-top: 4px; width: 18px; height: 18px; flex: none; }
.tmcb-err { color: var(--b-red); margin: 8px 0 0; font-weight: 600; }

/* info */
.tmcb-info h3 + * { margin-top: 0; }
.tmcb-info h3:not(:first-child) { margin-top: 20px; }
.tmcb-table { width: 100%; border-collapse: collapse; margin: 0 0 6px; font-size: .95em; }
.tmcb-table th, .tmcb-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--b-line); }
.tmcb-table th { background: var(--b-teal-soft); color: var(--b-navy); }
.tmcb-tips { margin: 0 0 0 1.2em; padding: 0; } .tmcb-tips li { margin: 6px 0; }
.tmcb-foot { text-align: center; }

/* installed app: the tool fills the screen, without the website around it */
html.tmcb-standalone .tmcb { position: fixed; inset: 0; z-index: 99990; max-width: none; overflow-y: auto; -webkit-overflow-scrolling: touch; background: #f3f5f9; padding: max(12px, env(safe-area-inset-top)) 12px max(20px, env(safe-area-inset-bottom)); }
html.tmcb-standalone .tmcb-parent { max-width: 780px; margin: 0 auto; }

/* ================================================================ child mode */
html.tmcb-kid-open, html.tmcb-kid-open body { overflow: hidden !important; }
.tmcb-kid { position: fixed; inset: 0; z-index: 2147483000; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  background: radial-gradient(ellipse at 80% 0%, #3b4fa0 0%, transparent 55%), linear-gradient(180deg, #141a44 0%, #23306d 55%, #3a3f8f 100%);
  color: #fff; font-family: var(--b-round); line-height: 1.35;
  padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) calc(76px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.tmcb-kid button { font-family: inherit; cursor: pointer; -webkit-touch-callout: none; }
.tmcb-kid h2 { color: #fff; font-size: clamp(24px, 6vw, 36px); margin: 0 0 6px; font-weight: 800; letter-spacing: .01em; }
.tmcb-kid p { margin: 0 0 12px; font-size: clamp(17px, 4.4vw, 22px); color: #dfe4ff; }
.tmcb-sky { position: fixed; inset: 0; pointer-events: none; }
.tmcb-sky i { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #fff; box-shadow: 0 0 6px #fff; animation: tmcb-twinkle 3s ease-in-out infinite; }
.tmcb-k-top { position: relative; display: flex; align-items: center; gap: 10px; max-width: 900px; margin: 0 auto 10px; }
.tmcb-k-who { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 20px; }
.tmcb-k-buddy { font-size: 36px; line-height: 1; }
.tmcb-k-prog { flex: 1; display: flex; flex-wrap: wrap; justify-content: center; gap: 0 2px; font-size: 20px; line-height: 1.1; color: rgba(255,255,255,.25); }
.tmcb-k-prog .on { color: #FFD36E; text-shadow: 0 0 10px rgba(255,211,110,.7); }
.tmcb-k-sound { border: 0; background: rgba(255,255,255,.14); color: #fff; width: 46px; height: 46px; border-radius: 50%; font-size: 22px; padding: 0; }
.tmcb-k-head { position: relative; text-align: center; max-width: 900px; margin: 6px auto 14px; }
.tmcb-k-head h2 { font-size: clamp(20px, 5vw, 30px); }
.tmcb-k-grid { position: relative; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; max-width: 900px; margin: 0 auto; }
@media (min-width: 640px) { .tmcb-k-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 980px) { .tmcb-k-grid { grid-template-columns: repeat(4, 1fr); } }
.tmcb-k-tile { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 150px; padding: 18px 10px 14px;
  border: 0; border-radius: 26px; background: var(--c); color: #1B2452; box-shadow: 0 6px 0 rgba(0,0,0,.18), 0 10px 24px rgba(0,0,0,.25); transition: transform .12s, filter .2s, opacity .2s; }
.tmcb-k-tile:active { transform: translateY(4px) scale(.98); box-shadow: 0 2px 0 rgba(0,0,0,.18); }
.tmcb-k-e { font-size: clamp(52px, 14vw, 72px); line-height: 1; }
.tmcb-k-t { font-weight: 800; font-size: clamp(16px, 4.3vw, 21px); text-align: center; line-height: 1.2; }
.tmcb-k-n { position: absolute; left: 12px; top: 10px; width: 28px; height: 28px; border-radius: 50%; background: rgba(27,36,82,.15); font-weight: 800; font-size: 15px; display: grid; place-items: center; }
.tmcb-k-hint { font-size: 14px; font-weight: 700; background: rgba(27,36,82,.13); border-radius: 999px; padding: 2px 10px; }
.tmcb-k-tick { position: absolute; inset: 0; display: grid; place-items: center; font-size: 92px; font-weight: 900; color: #fff; text-shadow: 0 3px 0 #2e7d4f, 0 0 20px rgba(46,125,79,.8); opacity: 0; transform: scale(.4); transition: transform .3s cubic-bezier(.3,1.6,.5,1), opacity .2s; pointer-events: none; }
.tmcb-k-tile.done { filter: saturate(.45) brightness(.8); opacity: .8; }
.tmcb-k-tile.done .tmcb-k-tick { opacity: 1; transform: scale(1); }
.tmcb-k-tile.pop { animation: tmcb-pop .5s ease; }
@keyframes tmcb-pop { 0% { transform: scale(1); } 40% { transform: scale(1.08) rotate(-2deg); } 100% { transform: scale(1); } }
.tmcb-k-choose .tmcb-k-tile { min-height: 140px; }

.tmcb-k-center { position: relative; min-height: calc(100vh - 120px); min-height: calc(100dvh - 120px); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; max-width: 560px; margin: 0 auto; }
.tmcb-k-bigbuddy { position: relative; font-size: clamp(110px, 32vw, 160px); line-height: 1.05; animation: tmcb-bob 3s ease-in-out infinite; }
@keyframes tmcb-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.tmcb-k-go { border: 0; border-radius: 999px; background: #FFD36E; color: #1B2452; font-weight: 900; font-size: clamp(20px, 5.4vw, 26px); padding: 16px 34px; box-shadow: 0 6px 0 #c99a2e, 0 12px 26px rgba(0,0,0,.3); margin-top: 8px; }
.tmcb-k-go:active { transform: translateY(4px); box-shadow: 0 2px 0 #c99a2e; }
.tmcb-k-ghost { border: 2px solid rgba(255,255,255,.6); background: transparent; color: #fff; border-radius: 999px; font-weight: 800; font-size: 18px; padding: 12px 24px; }
.tmcb-k-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-items: center; margin-top: 10px; }
.tmcb-k-star { font-size: 90px; line-height: 1; animation: tmcb-spin 1.2s cubic-bezier(.3,1.5,.5,1) both; filter: drop-shadow(0 0 22px rgba(255,211,110,.9)); }
@keyframes tmcb-spin { from { transform: scale(0) rotate(-180deg); } to { transform: scale(1) rotate(0); } }
.tmcb-kid .tmcb-week { margin: 14px 0 8px; }
.tmcb-kid .tmcb-day { color: #c9d0ff; font-size: 13px; }
.tmcb-kid .tmcb-day b { color: rgba(255,255,255,.3); font-size: 28px; }
.tmcb-kid .tmcb-day.today { color: #fff; }
.tmcb-confetti { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
.tmcb-confetti i { position: absolute; top: -50px; font-style: normal; animation: tmcb-fall linear forwards; }
@keyframes tmcb-fall { to { transform: translateY(110vh) rotate(360deg); opacity: .2; } }
.tmcb-kid.tmcb-k-sleep { background: linear-gradient(180deg, #05071a 0%, #0d1236 100%); }
.tmcb-k-sleep h2, .tmcb-k-sleep p { opacity: .75; }
.tmcb-k-sleep .tmcb-k-bigbuddy { animation-duration: 5s; filter: brightness(.75); }
.tmcb-zz { position: absolute; right: -24px; top: -10px; font-size: 30px; font-weight: 800; color: #c9d0ff; }
.tmcb-zz i, .tmcb-zz b { font-style: normal; display: inline-block; animation: tmcb-z 2.4s ease-in-out infinite; }
.tmcb-zz i { font-size: 1.2em; animation-delay: .4s; } .tmcb-zz b { font-size: 1.45em; animation-delay: .8s; }
@keyframes tmcb-z { 0%, 100% { opacity: .2; transform: translateY(6px); } 50% { opacity: 1; transform: translateY(-6px); } }

/* overlay panels: tooth timer and balloon breathing */
.tmcb-k-over { position: fixed; inset: 0; z-index: 5; background: rgba(10,14,40,.82); display: grid; place-items: center; padding: 16px; animation: tmcb-fade .2s ease; }
@keyframes tmcb-fade { from { opacity: 0; } }
.tmcb-k-panel { width: 100%; max-width: 440px; text-align: center; background: linear-gradient(180deg, #2a3680, #1b2452); border-radius: 30px; padding: 24px 18px; box-shadow: 0 20px 50px rgba(0,0,0,.45); }
.tmcb-ring { position: relative; width: 220px; height: 220px; margin: 8px auto 12px; }
.tmcb-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.tmcb-ring circle { fill: none; stroke-width: 16; }
.tmcb-ring .bg { stroke: rgba(255,255,255,.15); } .tmcb-ring .fg { stroke: #9FE3D6; stroke-linecap: round; transition: stroke-dashoffset 1s linear; }
.tmcb-ring-in { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.tmcb-ring-e { font-size: 56px; line-height: 1; animation: tmcb-brush .5s ease-in-out infinite alternate; }
@keyframes tmcb-brush { from { transform: translateX(-6px) rotate(-8deg); } to { transform: translateX(6px) rotate(8deg); } }
.tmcb-ring-t { font-size: 40px; font-weight: 900; }
.tmcb-kid .tmcb-k-part { font-weight: 800; color: #FFD36E; min-height: 2.6em; }
.tmcb-kid .tmcb-small-k { font-size: 15px; color: #c9d0ff; }
.tmcb-balloon { height: 220px; display: grid; place-items: center; }
.tmcb-balloon span { font-size: 70px; line-height: 1; display: inline-block; transform: scale(.8); transition: transform 3.8s ease-in-out; }
.tmcb-balloon.in span { transform: scale(2.1); } .tmcb-balloon.out span { transform: scale(.8); }

/* press-and-hold lock for grown-ups */
.tmcb-lock { position: fixed; left: 50%; transform: translateX(-50%); bottom: max(12px, env(safe-area-inset-bottom)); z-index: 6; overflow: hidden; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.1); color: #c9d0ff; border-radius: 999px; padding: 10px 18px; font-size: 14px; font-weight: 700; touch-action: none; }
.tmcb-lock-t { position: relative; }
.tmcb-lock-fill { position: absolute; inset: 0; width: 0; background: rgba(255,211,110,.55); }
.tmcb-lock.holding .tmcb-lock-fill { width: 100%; transition: width 1.5s linear; }

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

/* ================================================================ print chart */
.tmcb-print { display: none; }
@media print {
  html.tmcb-printing body > *:not(#tmcb-print) { display: none !important; }
  html.tmcb-printing #tmcb-print { display: block !important; font-family: var(--b-round); color: #1B2452; }
  .tmcb-pr-head { display: flex; align-items: center; justify-content: center; gap: 18px; margin-bottom: 14px; text-align: center; }
  .tmcb-pr-head h1 { margin: 0; font-size: 30px; } .tmcb-pr-head p { margin: 2px 0 0; font-size: 16px; }
  .tmcb-pr-b { font-size: 48px; }
  .tmcb-pr-t { width: 100%; border-collapse: separate; border-spacing: 4px; }
  .tmcb-pr-t th { font-size: 14px; padding: 4px; }
  .tmcb-pr-task { -webkit-print-color-adjust: exact; print-color-adjust: exact; border-radius: 10px; padding: 8px 10px; font-weight: 800; font-size: 16px; width: 38%; }
  .tmcb-pr-task span { font-size: 26px; margin-right: 8px; vertical-align: middle; }
  .tmcb-pr-box { border: 2px solid #c4cad6; border-radius: 10px; height: 46px; }
  .tmcb-pr-foot { text-align: center; font-size: 12px; color: #5d6275; margin-top: 10px; }
}

/* ================================================================ illustrated pictures (Canva PNGs) */
.tmcb-pic { display: block; width: 100%; height: 100%; object-fit: contain; -webkit-user-drag: none; }
.tmcb-emo { line-height: 1; }
.tmcb-act-e { display: inline-grid; place-items: center; width: 34px; height: 34px; }
.tmcb-item-e { width: 68px; height: 68px; background: #fff; border: 3px solid var(--c); padding: 4px; }
.tmcb-pal span { display: inline-grid; place-items: center; width: 40px; height: 40px; font-size: 1em; }
.tmcb-own-e { width: 64px; height: 64px; background: #fff; border: 2px solid var(--b-line); padding: 4px; }
.tmcb-picker { grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 6px; }
.tmcb-picker button { padding: 4px; background: #fff; }
/* child mode: the picture is the main thing on each tile */
.tmcb-k-tile { min-height: 200px; padding: 16px 10px 14px; gap: 8px; }
.tmcb-k-e { display: grid; place-items: center; width: min(78%, 150px); aspect-ratio: 1; background: rgba(255,255,255,.85); border-radius: 22px; padding: 8px; box-shadow: inset 0 -3px 0 rgba(27,36,82,.08); }
.tmcb-k-e .tmcb-emo { font-size: clamp(52px, 14vw, 72px); }
.tmcb-k-choose .tmcb-k-tile { min-height: 190px; }
.tmcb-ring-e { width: 76px; height: 76px; }
.tmcb-balloon span { width: 90px; height: 90px; font-size: 70px; }
@media print { .tmcb-pr-task span { display: inline-block; width: 40px; height: 40px; } }
