/* ============================================================
   Bloom — Check-ins (sheet over Home + Class Feelings page)
   Same tokens as style.css: paper, cards, Fredoka titles, leaf
   green = done, coral = today, sunny = reward. Tap targets 88px+
   on the child screens; nothing under 16px type.
   ============================================================ */

body.ck-open { overflow: hidden; }

.ck-sheet {
  position: fixed; inset: 0; z-index: 130;
  background: var(--paper);
  display: flex; align-items: center; justify-content: center;
  padding: 18px; overflow: auto;
  animation: ck-up 0.35s var(--ease);
}
@keyframes ck-up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ck-sheet { animation: none; } .bump { animation: none !important; } }

.ck-wrap {
  position: relative; width: 100%; max-width: 1100px;
  background: var(--card); border: var(--line); border-radius: var(--r-tile, 24px);
  box-shadow: var(--shadow); padding: 28px 30px 24px; text-align: center;
}
.ck-x { position: absolute; top: 14px; right: 16px; border: 0; background: none; font-size: 22px; color: var(--ink-soft); cursor: pointer; padding: 6px 10px; }
.ck-title { font-family: var(--hand); font-size: 36px; font-weight: 600; line-height: 1.1; margin: 4px 0 6px; }
.ck-title u { text-decoration-color: var(--coral); text-underline-offset: 4px; }
.ck-sub { color: var(--ink-soft); font-size: 18px; margin: 0 0 16px; }
.ck-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; text-align: left; }
.ck-count { font-size: 17px; color: var(--ink-soft); white-space: nowrap; }
.ck-count b { font-family: var(--hand); font-size: 26px; color: var(--ink); }
.ck-count.teacher-count { opacity: 0.55; }
.ck-row { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 18px; flex-wrap: wrap; }
.ck-row.end { justify-content: flex-end; }
.ck-link { border: 0; background: none; font: inherit; font-size: 17px; color: var(--ink-soft); text-decoration: underline; cursor: pointer; padding: 10px 12px; min-height: 44px; }
.ck-link.on { color: var(--coral-deep); font-weight: 700; }
.ck-btn { font-size: 19px; padding: 12px 30px; min-height: 52px; }
.ck-btn.big { font-size: 24px; padding: 16px 40px; min-height: 72px; background: var(--green); border-color: var(--green-deep); color: #fff; }
.ck-btn.big:hover { background: var(--green-deep); }
.ck-btn.big[disabled] { opacity: 0.35; cursor: default; }
.ck-err { color: var(--coral-deep); font-size: 17px; margin: 8px 0; }

.ck-fox { display: block; margin: 0 auto; width: 160px; height: 160px; object-fit: contain; }
.ck-wrap img { display: inline-block; }
.ck-fox, .ck-fox-sm, .ck-pic-face img, .ck-face img { display: block; margin-left: auto; margin-right: auto; }
.ck-fox-big { width: 240px; height: 240px; }
.ck-fox-sm { width: 110px; height: 110px; object-fit: contain; flex: 0 0 auto; }

/* ---- start: choose how ---- */
.ck-modes { display: flex; gap: 18px; justify-content: center; margin: 14px 0 6px; flex-wrap: wrap; }
.ck-mode {
  flex: 1 1 260px; max-width: 320px; min-height: 120px;
  border: var(--line); border-radius: var(--r-card); background: var(--card);
  padding: 16px 18px; cursor: pointer; font: inherit; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  box-shadow: var(--shadow); transition: transform 0.12s var(--bounce);
}
/* no preselected mode (23 Oct): both buttons look the same */
.ck-mode:hover { transform: translateY(-2px); }
.ck-mode:active { transform: translateY(2px); box-shadow: var(--shadow-press); }
.ck-mode-ic { font-size: 34px; line-height: 1; }
.ck-mode b { font-family: var(--hand); font-size: 22px; }
.ck-mode small { color: var(--ink-soft); font-size: 15px; max-width: 280px; line-height: 1.3; }

/* ---- the confirm buttons: tick icon, grey until something is chosen ---- */
.ck-btn.big { display: inline-flex; align-items: center; justify-content: center; gap: 12px; }
.ck-btn.big[disabled] { opacity: 1; background: #C9CFD6; border-color: #C9CFD6; color: #fff; cursor: default; }
.ck-tick { flex: 0 0 auto; }

/* ---- the teacher's exit from the child screens ---- */
.ck-exit {
  position: absolute; left: 18px; bottom: 14px;
  display: inline-flex; align-items: center; gap: 8px;
  font: inherit; font-size: 14px; color: var(--ink-soft);
  background: var(--card); border: 2px solid var(--line-c, rgba(46,44,69,.18)); border-radius: 999px;
  padding: 8px 14px; min-height: 40px; cursor: pointer; opacity: 0.8;
}
.ck-exit:hover { opacity: 1; background: var(--beige); }
.ck-running { position: absolute; right: 22px; bottom: 20px; font-size: 14px; }

/* ---- "In today" stepper (D14) ---- */
.ck-present { display: inline-flex; align-items: center; gap: 10px; background: var(--card); border: var(--line); border-radius: 999px; padding: 6px 8px 6px 18px; margin: 6px auto 4px; }
.ck-present.inline { margin: 0; }
.ck-present-l { font-family: var(--hand); font-size: 17px; color: var(--ink-soft); }
.ck-present-n { font-family: var(--hand); font-size: 30px; font-weight: 600; min-width: 56px; text-align: center; }
.ck-step { width: 48px; height: 48px; border-radius: 50%; border: var(--line); background: var(--card); font-family: var(--hand); font-size: 24px; color: var(--ink); cursor: pointer; }
.ck-step:hover { background: var(--beige); }
.ck-field-note { font-size: 13px; color: var(--ink-soft); margin-left: 8px; }
.ck-qnote { margin: -2px 0 6px; font-size: 15px; }

/* ---- an open session from earlier: Carry on / Finish / Skip ---- */
.ck-open-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; text-align: left; background: var(--sunny-l); border: 2px solid var(--sunny); border-radius: 16px; padding: 10px 16px; margin: 0 0 12px; font-size: 15px; }
.ck-open-acts { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.ck-sm { font-family: var(--hand); font-weight: 600; font-size: 15px; border-radius: 999px; padding: 8px 16px; min-height: 44px; border: var(--line); background: var(--card); color: var(--ink); cursor: pointer; }
.ck-sm.primary { background: var(--green); border-color: var(--green-deep); color: #fff; }
.ck-sm.quiet { border-color: transparent; color: var(--ink-soft); }
.ck-start .ck-mode[disabled] { opacity: 0.45; cursor: default; }
.ck-ask-else { border: var(--line); border-radius: 999px; text-decoration: none; background: var(--card); font-family: var(--hand); font-weight: 600; color: var(--ink); padding: 10px 20px; }
.ck-ask-else:hover { background: var(--beige); }

/* ---- choose a question (D5) ---- */
.ck-choose { text-align: left; }
.ck-choose .ck-title { text-align: center; }
.ck-back-l { position: absolute; top: 14px; left: 14px; text-decoration: none; }
.ck-qcols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; margin-top: 10px; }
@media (max-width: 760px) { .ck-qcols { grid-template-columns: 1fr; } }
.ck-qlbl { font-family: var(--hand); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 8px 4px; }
.ck-qrow { display: flex; gap: 8px; align-items: stretch; margin-bottom: 10px; }
.ck-q { flex: 1; display: flex; align-items: center; gap: 12px; text-align: left; font: inherit; font-size: 18px; color: var(--ink); background: var(--card); border: var(--line); border-radius: 16px; padding: 12px 16px; min-height: 56px; cursor: pointer; box-shadow: var(--shadow); }
.ck-q:hover { background: var(--beige); }
.ck-q.on { border-color: var(--green-deep); background: var(--green-l); }
.ck-q .ck-spk { width: 32px; height: 32px; border-radius: 50%; background: var(--green-l); color: var(--green-deep); display: inline-grid; place-items: center; opacity: 1; flex: none; }
.ck-q .ck-spk.no-audio, .ck-q .ck-spk-none { display: inline-block; width: 32px; height: 32px; visibility: hidden; }
.ck-q-t { flex: 1; }
.ck-q-hide { width: 48px; border: var(--line); border-radius: 14px; background: var(--card); color: var(--ink-soft); font-size: 18px; cursor: pointer; }
.ck-qempty { color: var(--ink-soft); font-size: 15px; margin: 4px 4px 10px; }
.ck-qnew { background: var(--card); border: 2px solid var(--sky, #3FA9E0); border-radius: 16px; padding: 12px 16px; display: flex; flex-direction: column; gap: 10px; }
.ck-qnew input { border: 0; outline: none; font: inherit; font-size: 19px; color: var(--ink); width: 100%; background: transparent; }
.ck-qnew-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.ck-qcount { font-size: 13px; color: var(--ink-soft); }
.ck-qnew .ck-err { margin: 0; font-size: 15px; }

/* ---- finish: the count with its ✎ ---- */
.ck-pic-count { font-size: 17px; color: var(--ink-soft); margin: 2px 0 4px; display: flex; justify-content: center; align-items: center; gap: 6px; min-height: 48px; }
.ck-pic-count b { font-family: var(--hand); font-size: 26px; color: var(--ink); margin-right: 4px; }
.ck-edit-present { padding: 6px 10px; min-height: 40px; text-decoration: none; font-size: 18px; }

/* ---- settings ---- */
.ck-field { text-align: left; margin: 14px auto 0; max-width: 620px; }
.ck-field-l { font-weight: 700; margin-bottom: 6px; }
.ck-seg { display: flex; gap: 8px; flex-wrap: wrap; }
.ck-seg-b { border: var(--line); border-radius: 999px; background: var(--card); padding: 8px 16px; font: inherit; font-size: 16px; cursor: pointer; min-height: 44px; }
.ck-seg-b.on { background: var(--green-l); border-color: var(--green-deep); font-weight: 700; }

/* ---- faces ---- */
.ck-faces { display: flex; gap: 14px; justify-content: center; margin: 16px 0 6px; flex-wrap: wrap; }
.ck-face {
  position: relative; flex: 1 1 0; min-width: 120px; max-width: 200px; min-height: 180px;
  border: var(--line); border-radius: var(--r-tile, 24px); background: var(--card);
  padding: 14px 8px 12px; cursor: pointer; font: inherit;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  box-shadow: var(--shadow); transition: transform 0.15s var(--bounce), background 0.15s;
}
.ck-face img { width: 100%; max-width: 150px; aspect-ratio: 1; object-fit: contain; }
.ck-face-l { font-family: var(--hand); font-size: 18px; font-weight: 600; }
.ck-face.sel { background: var(--sunny-l); border-color: var(--sunny); transform: scale(1.06); }
.ck-faces:has(.sel) .ck-face:not(.sel) { opacity: 0.55; }
.ck-face.big { min-height: 200px; }
.ck-face-col { flex: 1 1 0; min-width: 120px; max-width: 200px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.ck-face-col .ck-face { width: 100%; }
.ck-col-row { display: flex; gap: 8px; }
.ck-mini { border: var(--line); border-radius: 999px; background: var(--card); min-width: 44px; min-height: 44px; font: inherit; font-size: 20px; cursor: pointer; padding: 0 14px; }
.ck-mini.words { font-size: 15px; }
.ck-mini:hover { background: var(--beige); }
.ck-bubble {
  position: absolute; top: -10px; right: -10px; min-width: 40px; height: 40px; padding: 0 10px;
  border-radius: 999px; background: var(--coral); color: #fff; border: 3px solid var(--card);
  font-family: var(--hand); font-size: 20px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.ck-bubble.sm { min-width: 30px; height: 30px; font-size: 15px; top: -8px; right: -8px; }
.ck-confirm { min-height: 84px; display: flex; justify-content: center; align-items: center; margin-top: 10px; }

/* ---- words ---- */
.ck-wtop, .ck-bw-top { display: flex; align-items: center; gap: 16px; justify-content: center; margin: 6px 0 12px; }
.ck-meaning { background: var(--sunny-l); border-radius: 12px; padding: 10px 16px; font-size: 19px; max-width: 520px; text-align: left; }
.ck-words { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ck-words.six { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ck-word {
  position: relative; border: var(--line); border-radius: var(--r-card); background: var(--card);
  min-height: 96px; padding: 8px 10px; cursor: pointer; font: inherit;
  display: flex; align-items: center; gap: 10px; text-align: left; box-shadow: var(--shadow);
  transition: transform 0.15s var(--bounce), background 0.15s;
}
.ck-word img { width: 56px; height: 56px; object-fit: contain; flex: 0 0 auto; }
.ck-word-l { font-family: var(--hand); font-size: 20px; font-weight: 600; flex: 1; }
.ck-word.sel { background: var(--sunny-l); border-color: var(--sunny); transform: scale(1.04); }
.ck-spk { font-size: 16px; opacity: 0.6; cursor: pointer; }
.ck-spk.no-audio { display: none; }
.ck-title .ck-spk { font-size: 22px; vertical-align: middle; }
@media (max-width: 760px) { .ck-words, .ck-words.six { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ck-title { font-size: 28px; } }

/* ---- react + pass ---- */
.ck-react-word { font-family: var(--hand); font-size: 40px; font-weight: 700; margin-top: 6px; text-transform: lowercase; }
.ck-react .ck-meaning { display: inline-block; margin-top: 10px; text-align: center; }
.ck-reply { margin-top: 18px; font-size: 20px; color: var(--ink-soft); }
.ck-completed { position: absolute; left: 18px; bottom: 14px; font-size: 15px; opacity: 0.6; }
.ck-completed:hover { opacity: 1; }
.ck-react .ck-confirm { margin-top: 18px; }

/* ---- the meadow (one Fox per response, clustered by face) ---- */
.ck-meadow-wrap { margin: 10px 0 4px; }
.ck-meadow-n { display: flex; justify-content: flex-end; align-items: baseline; font-size: 15px; color: var(--ink-soft); margin: 0 4px 6px 0; }
.ck-meadow-n b { font-family: var(--hand); font-size: 22px; color: var(--ink); margin-right: 4px; }
.ck-meadow { display: flex; gap: 10px; align-items: stretch; min-height: 180px; }
.ck-meadow-big { min-height: 300px; }
.ck-meadow-mini { min-height: 70px; gap: 4px; }
.ck-patch { flex: 1 1 0; display: flex; flex-direction: column; gap: 6px; border-radius: 22px; padding: 12px 10px 8px; min-width: 0; }
.ck-meadow-mini .ck-patch { padding: 6px; border-radius: 12px; gap: 0; }
.ck-patch.f5 { background: rgba(76,175,110,.14); } .ck-patch.f4 { background: rgba(143,209,158,.18); } .ck-patch.f3 { background: rgba(245,194,66,.18); } .ck-patch.f2 { background: rgba(242,155,90,.18); } .ck-patch.f1 { background: rgba(111,143,214,.18); }
.ck-crowd { display: flex; flex-wrap: wrap; gap: 6px 4px; align-content: flex-start; justify-content: center; flex: 1; }
.ck-one { display: inline-flex; flex-direction: column; align-items: center; gap: 1px; --fox: 64px; width: var(--fox); }
.ck-one img { width: var(--fox); height: var(--fox); object-fit: contain; display: block; }
.ck-one small { font-size: 11px; color: var(--ink-soft); line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.ck-mw-l .ck-one { --fox: 84px; } .ck-mw-m .ck-one { --fox: 64px; } .ck-mw-s .ck-one { --fox: 48px; } .ck-mw-xs .ck-one { --fox: 34px; }
.ck-meadow-mini .ck-one { --fox: 18px; }
.ck-patch-cap { font-family: var(--hand); font-size: 14px; font-weight: 600; color: var(--ink-soft); text-align: center; white-space: nowrap; }
.ck-meadow-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--ink-soft); font-size: 17px; }
.ck-meadow-empty img { width: 110px; height: 110px; object-fit: contain; }
@media (prefers-reduced-motion: no-preference) {
  .ck-one { animation: ck-grow 0.4s var(--bounce) both; }
  @keyframes ck-grow { from { transform: scale(0.4); opacity: 0; } to { transform: none; opacity: 1; } }
}
@media (max-width: 760px) { .ck-meadow { flex-wrap: wrap; } .ck-patch { flex-basis: 45%; } }

/* ---- the heartbeat (one thin stacked bar per school day) ---- */
.ck-hb { display: flex; align-items: flex-end; gap: 3px; height: 56px; padding: 4px 2px 0; overflow-x: auto; }
.ck-hb-bar { flex: 1 1 4px; max-width: 14px; min-width: 3px; height: 100%; border: 0; padding: 0; background: transparent; display: flex; flex-direction: column-reverse; border-radius: 2px; overflow: visible; cursor: pointer; position: relative; }
.ck-hb-bar.none { height: 100%; cursor: default; }
.ck-hb-bar.mon::before { content: ""; position: absolute; left: 0; bottom: -6px; width: 100%; height: 3px; background: rgba(46,44,69,.25); border-radius: 1px; }
.ck-hb-bar i { display: block; width: 100%; }
.ck-hb-bar i.f5 { background: #4caf6e; } .ck-hb-bar i.f4 { background: #8fd19e; } .ck-hb-bar i.f3 { background: #f5c242; } .ck-hb-bar i.f2 { background: #f29b5a; } .ck-hb-bar i.f1 { background: #6f8fd6; }
.ck-hb-bar.today { flex-basis: 6px; min-width: 5px; }
.ck-hb-bar.sel { outline: 2px solid var(--ink); outline-offset: 2px; }
.ck-hb-bar:hover { opacity: .8; }
.ck-hb-foot { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-soft); margin-top: 8px; }

/* ---- class picture ---- */
.ck-pic-faces { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 14px 0; }
.ck-pic-face { flex: 1 1 0; min-width: 100px; max-width: 170px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.ck-pic-face img { width: 100%; max-width: 120px; aspect-ratio: 1; object-fit: contain; }
.ck-pic-face b { font-family: var(--hand); font-size: 34px; }
.ck-pic-face span { font-size: 15px; color: var(--ink-soft); }
.ck-pic-words { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 8px 0; }
.ck-chip { background: var(--beige); border-radius: 999px; padding: 6px 14px; font-family: var(--hand); font-weight: 600; }
.ck-chip small { color: var(--ink-soft); font-weight: 400; }
.ck-summary { font-size: 20px; margin: 10px 0 0; }
.ck-flowers { margin-top: 8px; color: var(--green-deep); font-weight: 700; font-size: 18px; }

.bump { animation: ck-bump 0.45s var(--bounce); }
@keyframes ck-bump { 0% { transform: scale(1); } 40% { transform: scale(1.12); } 100% { transform: scale(1); } }

/* ---- Home: the check-in card under the week strip ---- */
.checkin-card { margin-top: 16px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.checkin-card img { width: 64px; height: 64px; object-fit: contain; }
.checkin-card .ck-home-t { font-family: var(--hand); font-size: 22px; font-weight: 600; }
.checkin-card .ck-home-s { color: var(--ink-soft); font-size: 15px; }
.checkin-card .ck-home-main { flex: 1; min-width: 200px; }
.checkin-card .ck-home-faces { display: flex; gap: 8px; }
.checkin-card .ck-home-faces span { display: flex; flex-direction: column; align-items: center; font-size: 13px; color: var(--ink-soft); }
.checkin-card .ck-home-faces img { width: 36px; height: 36px; }
.checkin-card .ck-home-faces b { font-family: var(--hand); font-size: 18px; color: var(--ink); }
.cal .ck-mark { position: absolute; left: 8px; bottom: 6px; font-size: 16px; }

.checkin-card .ck-home-asks { flex-basis: 100%; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; border-top: 1px solid var(--line-c, rgba(46,44,69,.12)); padding-top: 10px; margin-top: 4px; }
.checkin-card .ck-home-ask { display: inline-flex; gap: 10px; align-items: baseline; font-size: 15px; }
.checkin-card .ck-home-ask-q { font-family: var(--hand); font-weight: 600; }
.checkin-card .ck-home-ask-n { color: var(--ink-soft); }
.checkin-card .ck-ask-else { margin-left: auto; font-size: 15px; padding: 8px 16px; min-height: 40px; }

/* ---- Class Feelings: other questions ---- */
.fl-asks { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.fl-ask { text-align: left; font: inherit; color: var(--ink); background: var(--paper); border: var(--line); border-radius: 20px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; cursor: pointer; }
.fl-ask:hover { background: var(--beige); }
.fl-ask-q { font-family: var(--hand); font-size: 18px; font-weight: 600; line-height: 1.2; }
.fl-ask-m { font-size: 14px; color: var(--ink-soft); }
.fl-ask-hb .ck-hb.mini { height: 28px; gap: 4px; padding: 0; }
.fl-ask-hb .ck-hb.mini .ck-hb-bar { flex: 0 0 7px; max-width: 7px; cursor: default; }
.fl-ask-mini .ck-meadow { min-height: 0; }
.fl-ask-big { margin-top: 14px; border-top: 1px solid var(--line-c, rgba(46,44,69,.12)); padding-top: 12px; }

/* ---- Class Feelings page ---- */
.ck-now { background: var(--green); border-color: var(--green-deep); color: #fff; font-weight: 600; font-size: 18px; padding: 10px 24px; }
.ck-now:hover { background: var(--green-deep); }
.ck-now.done { background: var(--green-l); color: var(--green-deep); }
.fl-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.fl-range { display: flex; gap: 8px; }
.fl-range .btn.on { background: var(--green-l); border-color: var(--green-deep); }
.fl-today { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.fl-chart { display: flex; align-items: flex-end; gap: 6px; height: 240px; box-sizing: border-box; padding: 30px 0 0; border-bottom: 2px solid var(--line-c); overflow-x: auto; }
.fl-bar { flex: 1 0 34px; max-width: 60px; display: flex; flex-direction: column-reverse; align-items: stretch; height: 100%; position: relative; }
.fl-seg { width: 100%; }
.fl-seg.f5 { background: #4caf6e; } .fl-seg.f4 { background: #8fd19e; } .fl-seg.f3 { background: #f5c242; } .fl-seg.f2 { background: #f29b5a; } .fl-seg.f1 { background: #6f8fd6; }
.fl-bar .fl-n { position: absolute; top: -20px; left: 0; right: 0; text-align: center; font-size: 13px; color: var(--ink-soft); }
.fl-xlabels { display: flex; gap: 6px; margin-top: 6px; }
.fl-xlabels span { flex: 1 0 34px; max-width: 60px; text-align: center; font-size: 12px; color: var(--ink-soft); }
.fl-key { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 10px; font-size: 14px; color: var(--ink-soft); }
.fl-key i { display: inline-block; width: 14px; height: 14px; border-radius: 3px; vertical-align: -2px; margin-right: 4px; }
.fl-words { display: flex; flex-direction: column; gap: 8px; }
.fl-word { display: flex; align-items: center; gap: 12px; }
.fl-word .w { flex: 0 0 150px; font-family: var(--hand); font-weight: 600; font-size: 18px; }
.fl-word .bar { flex: 1; height: 14px; background: var(--beige); border-radius: 999px; overflow: hidden; }
.fl-word .bar i { display: block; height: 100%; background: var(--green); }
.fl-word .n { flex: 0 0 40px; text-align: right; color: var(--ink-soft); }
.fl-guard { color: var(--ink-soft); font-size: 15px; background: var(--beige); border-radius: 10px; padding: 10px 14px; }

/* small bits the site stylesheet does not carry */
.fl-range .btn.sm { font-size: 15px; padding: 6px 16px; }
#fl-trend .empty, #fl-words .empty { color: var(--ink-soft); font-size: 16px; padding: 14px 0 4px; }

/* ============================================================
   The teacher's own check-in (Staff Check-in Spec v1, 24 Oct 2026,
   teacher-checkin.js). tck- prefix. Teacher mode only.
   ============================================================ */

/* ---- S1 · the morning prompt: a small sheet over Today, page dimmed ---- */
body.tck-open { overflow: hidden; }
.tck-sheet {
  position: fixed; inset: 0; z-index: 125;
  background: rgba(46, 44, 69, 0.42);
  display: flex; align-items: center; justify-content: center;
  padding: 18px; overflow: auto;
  animation: tck-in 0.25s var(--ease);
}
@keyframes tck-in { from { opacity: 0; } to { opacity: 1; } }
.tck-card {
  position: relative; width: 100%; max-width: 760px;
  background: var(--card); border: var(--line); border-radius: var(--r-tile, 24px);
  box-shadow: 0 14px 40px rgba(46, 44, 69, 0.18); padding: 26px 30px 22px;
  display: flex; flex-direction: column; gap: 16px; text-align: left;
  animation: ck-up 0.3s var(--ease);
}
.tck-head { display: flex; align-items: center; gap: 16px; }
.tck-fox { width: 64px; height: 64px; object-fit: contain; flex: 0 0 auto; }
.tck-fox.big { width: 140px; height: 140px; margin: 0 auto; }
.tck-hello { font-size: 16px; color: var(--ink-soft); }
.tck-title { font-family: var(--hand); font-size: 32px; font-weight: 600; line-height: 1.1; margin: 2px 0 0; }
.tck-sub { margin: 6px 0 0; color: var(--ink-soft); font-size: 15px; }
.tck-kicker { font-family: var(--hand); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.tck-faces { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.tck-face {
  border: var(--line); border-radius: 22px; background: var(--card); color: var(--ink);
  padding: 12px 6px 10px; cursor: pointer; font: inherit; min-height: 118px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  box-shadow: var(--shadow); transition: transform 0.15s var(--bounce), background 0.15s;
}
.tck-face img { width: 60px; height: 60px; object-fit: contain; }
.tck-face-l { font-family: var(--hand); font-size: 15px; font-weight: 600; text-align: center; }
.tck-face.sel { background: var(--green-l); border-color: var(--green-deep); transform: scale(1.05); }
.tck-faces:has(.sel) .tck-face:not(.sel) { opacity: 0.6; }
.tck-chips { display: flex; gap: 8px; flex-wrap: wrap; min-height: 44px; }
.tck-chips-empty { color: var(--ink-soft); font-size: 15px; align-items: center; display: flex; }
.tck-chip {
  font-family: var(--hand); font-weight: 600; font-size: 15px; border-radius: 999px; padding: 8px 14px; min-height: 40px;
  border: var(--line); background: var(--card); color: var(--ink); cursor: pointer; font-style: normal;
}
.tck-chip:hover { background: var(--beige); }
.tck-chip.on { background: var(--green-l); border-color: var(--green-deep); }
.tck-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.tck-link { border: 0; background: transparent; font: inherit; font-size: 15px; color: var(--ink-soft); text-decoration: underline; min-height: 44px; cursor: pointer; padding: 6px 4px; }
.tck-go {
  font-family: var(--hand); background: var(--green-deep); color: #fff; border: 0; border-radius: 999px;
  padding: 12px 28px; font-size: 18px; font-weight: 600; min-height: 48px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 10px;
}
.tck-go:hover { background: var(--green); }
.tck-go[disabled] { background: var(--beige); color: var(--ink-soft); cursor: default; }
.tck-err { color: var(--coral-deep); font-size: 15px; }
.tck-thanks { text-align: center; align-items: center; }
.tck-react { font-family: var(--hand); font-size: 32px; font-weight: 700; text-transform: lowercase; }
@media (max-width: 640px) {
  .tck-card { padding: 18px 16px 16px; }
  .tck-faces { gap: 6px; }
  .tck-face { min-height: 96px; padding: 8px 4px; }
  .tck-face img { width: 44px; height: 44px; }
  .tck-face-l { font-size: 12px; }
  .tck-title { font-size: 22px; }
}

/* ---- S2 · the nav icon: dot = not done / skipped, green = done ---- */
.tck-nav {
  position: relative; width: 38px; height: 38px; border-radius: 50%; margin-left: 4px;
  display: inline-grid; place-items: center; border: 1px solid var(--line-c); background: var(--card); color: var(--ink);
  cursor: pointer; padding: 0; flex: none;   /* matches the identity pill (Nav Right Side, 24 Oct) */
}
.tck-nav .tck-dot { position: absolute; top: -3px; right: -3px; width: 12px; height: 12px; border-radius: 50%; background: var(--coral); border: 2px solid var(--card); display: none; }
.tck-nav.dot .tck-dot { display: block; }
.tck-nav.done { background: var(--green-l); border-color: transparent; color: var(--green-deep); }
.tck-nav:hover { background: var(--beige); }
.tck-nav.done:hover { background: var(--green-l); }

/* ---- S3 · the "You" row at the top of Today's Check-ins card (frame 21) ---- */
.tck-you {
  flex-basis: 100%; display: flex; align-items: center; gap: 16px; min-height: 56px;
  padding: 2px 0 12px; margin-bottom: 4px; border-bottom: 2px dashed var(--line-c, rgba(46,44,69,.12));
  position: relative;
}
.tck-you-ico { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: var(--line); background: var(--card); color: var(--ink); flex: none; position: relative; }
.tck-you-ico.done { background: var(--green-l); border-color: var(--green); color: var(--green-deep); }
.tck-you-ico.dot:after { content: ""; position: absolute; top: -3px; right: -3px; width: 12px; height: 12px; border-radius: 50%; background: var(--coral); border: 2px solid var(--card); }
.tck-you-lbl { min-width: 190px; }
.tck-row-title { font-family: var(--hand); font-size: 17px; font-weight: 600; line-height: 1.15; }
.tck-row-title .tck-word { text-transform: lowercase; color: var(--green-deep); }
.tck-row-sub { font-size: 13px; color: var(--ink-soft); }
.tck-days { display: flex; gap: 8px; margin-left: 6px; }
.tck-day { display: flex; flex-direction: column; align-items: center; gap: 3px; width: 40px; }
.tck-day-l { font-size: 11px; color: var(--ink-soft); }
.tck-pill {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; box-sizing: border-box;
  border: var(--line); background: var(--card); color: var(--ink-soft);
  font: inherit; font-family: var(--hand); font-weight: 700; font-size: 14px; padding: 0;
}
.tck-pill.done { background: var(--green); border-color: var(--green-deep); color: #fff; cursor: pointer; }
.tck-pill.done:hover { background: var(--green-deep); }
.tck-pill.skip { color: var(--ink-soft); }
.tck-pill.today { outline: 3px solid var(--coral); outline-offset: 2px; }
.tck-pill.future { opacity: 0.35; }
.tck-sp { flex: 1; }
.tck-cta { font-size: 15px; padding: 8px 20px; min-height: 44px; background: var(--green-deep); border-color: var(--green-deep); color: #fff; white-space: nowrap; }
.tck-cta:hover { background: var(--green); }
.tck-change { font-size: 15px; padding: 7px 16px; white-space: nowrap; }
/* the heartbeat fits its box: no scrollbar (the Monday marks sit 6px below the bars) */
.pic-row .pic-hb .ck-hb { overflow: visible; padding-bottom: 6px; height: 44px; }
/* "Ask something else" beside the Results / Check-in button; a full line only when asks are listed */
.pic-row .ck-home-asks { flex-basis: auto; border-top: 0; padding-top: 0; margin-top: 0; }
.pic-row .ck-home-asks.has-asks { flex-basis: 100%; border-top: 1px solid var(--line-c, rgba(46,44,69,.12)); padding-top: 10px; margin-top: 4px; }
/* the class row's button turns green once the teacher has checked in */
.pic-row .pic-btn.tck-primary { background: var(--green-deep); border-color: var(--green-deep); color: #fff; }
.pic-row .pic-btn.tck-primary:hover { background: var(--green); }
.tck-pop {
  position: absolute; top: calc(100% + 4px); width: 180px; z-index: 5;
  background: var(--card); border: var(--line); border-radius: 14px; box-shadow: var(--shadow);
  padding: 10px 12px; display: flex; align-items: center; gap: 10px;
}
.tck-pop[hidden] { display: none; }
.tck-pop img { width: 44px; height: 44px; object-fit: contain; }
.tck-pop b { display: block; font-family: var(--hand); font-size: 17px; }
.tck-pop small { color: var(--ink-soft); font-size: 12px; }
@media (max-width: 640px) {
  .tck-you { gap: 10px; flex-wrap: wrap; }
  .tck-you-lbl { min-width: 0; flex: 1; }
  .tck-days { gap: 6px; margin-left: 0; }
  .tck-day { width: 34px; }
  .tck-pill { width: 30px; height: 30px; font-size: 13px; }
  .tck-sp { display: none; }
  .tck-cta, .tck-change { margin-left: auto; }
}

/* ---- the "You" row, restyled for Today v2 (24 Oct pm) ----
   A band of its own at the top of the Class mood card: warm paper
   like the calendar's zones, a real bottom rule, and day dots in the
   same language as the calendar's chain (filled green + tick = done,
   ringed = today, hollow = ahead). The card's own padding is undone so
   the band runs edge to edge. */
.checkin-card.pic-row .tck-you {
  margin: -10px -22px 14px; padding: 14px 22px; border-bottom: 2px solid var(--line-c);
  flex: 0 0 calc(100% + 44px); width: calc(100% + 44px); box-sizing: border-box;
  background: #e9f1f9; border-radius: 14px 14px 0 0; gap: 18px;
}
.tck-you-ico { width: 40px; height: 40px; }
.tck-you-ico.dot:after { background: var(--ink); }
.tck-you-lbl { min-width: 170px; }
.tck-row-title { font-size: 16px; }
.tck-days { gap: 0; margin-left: 10px; position: relative; padding: 0 2px; }
.tck-day { width: 46px; gap: 5px; flex-direction: column-reverse; }
.tck-day-l { font-family: var(--hand); font-size: 12px; font-weight: 600; color: #a7a9b8; }
.tck-pill {
  width: 26px; height: 26px; border: 3px solid #c8cdd9; background: var(--card);
  color: #fff; font-size: 13px; line-height: 1;
}
.tck-pill.done { background: var(--green-deep); border-color: var(--green-deep); color: #fff; }
.tck-pill.done:hover { background: #24894f; }
.tck-pill.done + .tck-day-l, .tck-day:has(.tck-pill.done) .tck-day-l { color: var(--green-deep); font-weight: 700; }
.tck-pill.skip { background: var(--card); border-style: dashed; color: #a7a9b8; }
.tck-pill.today { outline: none; border: 3px solid var(--ink); box-shadow: 0 0 0 3px #e9f1f9, 0 0 0 5px var(--ink); color: var(--ink); }
.tck-day:has(.tck-pill.today) .tck-day-l { color: var(--ink); font-weight: 800; }
.tck-pill.today.done { border-color: var(--green-deep); box-shadow: 0 0 0 3px #e9f1f9, 0 0 0 5px var(--green-deep); }
.tck-pill.future { opacity: 1; }
.tck-cta { background: var(--ink); border-color: var(--ink); font-weight: 700; }
.tck-cta:hover { background: #1d1b30; }
@media (max-width: 760px) {
  .checkin-card.pic-row .tck-you { margin: -12px -16px 12px; padding: 12px 16px; flex-basis: calc(100% + 32px); width: calc(100% + 32px); }
  .tck-day { width: 38px; }
}
