/* Session Mode — uses the Step Up variables from /style.css. Calm by design:
   soft colours, gentle motion only, nothing flashing. */

.pilot-pill {
  display: inline-block; vertical-align: middle; margin-left: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  background: #fff; color: var(--cta); border: 1.5px solid var(--cta); border-radius: 99px; padding: 1px 8px;
}
.sm-wrap { max-width: 920px; margin: 0 auto; padding: 24px 20px 48px; }
.sm-hero { margin-bottom: 20px; }
.sm-card {
  background: var(--panel); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 24px; margin-bottom: 20px;
}
.sm-card h1 { margin-top: 0; font-size: 28px; }
.sm-h2 { text-transform: none; letter-spacing: 0; font-size: 16px; color: var(--accent); margin: 18px 0 8px; }

/* ---------- Setup ---------- */
.sm-learner { max-width: 320px; }
.sm-learner input { font-size: 20px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.sm-learner small { margin-top: 2px; }
.sm-fieldset { border: 0; padding: 0; margin: 4px 0 18px; }
.sm-fieldset legend { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.sm-programs { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.sm-program {
  display: grid; gap: 4px; text-align: left; padding: 14px 16px; cursor: pointer;
  background: #fff; border: 2px solid var(--line); border-radius: 12px; font: inherit; color: var(--text);
}
.sm-program strong { color: var(--ink); font-size: 17px; }
.sm-program.chosen { border-color: var(--accent); background: #f3f4fd; box-shadow: 0 0 0 3px rgba(76, 81, 191, .15); }
.sm-program-emoji { font-size: 32px; }
.sm-program-skill { font-size: 13px; font-weight: 700; color: var(--accent); }
.sm-program-about { font-size: 13px; color: var(--muted); }
.sm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 4px 16px; }
.sm-checks { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 18px; }
.sm-checks .robo-toggle { font-size: 15px; }
.sm-start { width: auto !important; padding: 14px 40px !important; font-size: 19px !important; }
.sm-privacy { font-size: 14px; color: var(--muted); margin: 14px 0 0; }

/* ---------- Child view ---------- */
body.child-mode #site-header, body.child-mode #site-footer { display: none; }
body.child-mode { background: #f4f8f7; }
.sm-run { max-width: 980px; margin: 0 auto; padding: 16px 20px 90px; min-height: 100vh; }
.sm-topstrip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.sm-firstthen {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px; background: #fff;
  border-radius: 99px; padding: 8px 16px; box-shadow: var(--shadow); font-size: 16px;
}
.sm-ft-label { font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--muted); letter-spacing: .05em; }
.sm-ft-item { font-weight: 700; color: var(--ink); }
.sm-ft-count { font-size: 13px; color: var(--muted); }
.sm-ft-arrow { color: var(--muted); }
.sm-tokens { display: flex; gap: 8px; }
.sm-token {
  width: 44px; height: 44px; border-radius: 50%; border: 3px dashed #c8d3d0; background: #fff;
  display: grid; place-items: center; font-size: 24px;
}
.sm-token.on { border: 3px solid #f2c94c; background: #fff8de; }
.sm-token.new { animation: sm-pop .5s ease; }
@keyframes sm-pop { 50% { transform: scale(1.25); } }

.sm-instruction { text-align: center; margin: 8px 0 22px; min-height: 90px; display: grid; justify-items: center; gap: 6px; }
.sm-ins-text { font-size: clamp(24px, 4vw, 34px); font-weight: 700; color: var(--ink); }
.sm-ins-word { font-size: clamp(34px, 6vw, 52px); font-weight: 800; color: var(--accent); }
.sm-ins-sample {
  font-size: 80px; line-height: 1; background: #fff; border-radius: 18px; padding: 14px 22px;
  box-shadow: var(--shadow); border: 3px solid var(--line);
}
.sm-ins-sample.small { font-size: 44px; padding: 8px 14px; }

.sm-field { display: grid; gap: 18px; justify-content: center; margin: 0 auto; max-width: 760px; }
.sm-field.n2 { grid-template-columns: repeat(2, minmax(0, 220px)); }
.sm-field.n3 { grid-template-columns: repeat(3, minmax(0, 210px)); }
.sm-field.n4 { grid-template-columns: repeat(2, minmax(0, 200px)); }
.sm-field.n5, .sm-field.n6 { grid-template-columns: repeat(3, minmax(0, 190px)); }
.sm-choice {
  position: relative; aspect-ratio: 1; border-radius: 22px; background: #fff; cursor: pointer;
  border: 4px solid var(--line); box-shadow: var(--shadow); font: inherit; color: var(--ink);
  display: grid; place-content: center; gap: 4px; transition: transform .15s ease, border-color .15s ease;
}
.sm-choice-emoji { font-size: clamp(56px, 11vw, 96px); line-height: 1; }
.sm-choice-word { font-size: 16px; color: var(--muted); }
.sm-choice.prompt { border-color: #f2c94c; box-shadow: 0 0 0 8px rgba(242, 201, 76, .35); }
.sm-choice.prompt::after {
  content: "👆"; position: absolute; bottom: -18px; right: 10px; font-size: 40px;
  animation: sm-nudge 1.2s ease-in-out infinite;
}
@keyframes sm-nudge { 50% { transform: translateY(-8px); } }
.sm-choice.correct { border-color: var(--good); background: #eaf7ef; transform: scale(1.05); }
.sm-choice.nope { opacity: .45; }


.sm-cheer { text-align: center; font-size: 28px; font-weight: 700; color: var(--good); min-height: 44px; margin-top: 18px; }

/* Press-and-hold therapist button: small, quiet, bottom corner */
.sm-hold {
  position: fixed; right: 16px; bottom: 16px; width: 48px; height: 48px; border-radius: 50%;
  border: 0; background: rgba(45, 55, 72, .08); color: var(--muted); font-size: 20px; cursor: pointer;
  display: grid; place-items: center; z-index: 5; touch-action: none; user-select: none; -webkit-user-select: none;
}
.sm-hold-ring {
  position: absolute; inset: -4px; border-radius: 50%; border: 4px solid var(--accent);
  clip-path: inset(0 100% 0 0); opacity: 0;
}
.sm-hold.holding .sm-hold-ring { opacity: 1; clip-path: inset(0 0 0 0); transition: clip-path var(--hold-ms, 1500ms) linear; }
.sm-hold-btn { position: relative; touch-action: none; user-select: none; -webkit-user-select: none; }
.sm-hold-btn.holding { background: #eef0fb; transition: background var(--hold-ms, 1500ms) linear; }

/* ---------- Break ---------- */
.sm-break {
  position: relative; min-height: 100vh; overflow: hidden;
  background: linear-gradient(180deg, #e8f4fb 0%, #e9f6f2 100%);
}
.sm-break-top { position: relative; z-index: 2; display: flex; justify-content: center; align-items: center; gap: 16px; padding: 20px; }
.sm-break-title { font-size: 30px; font-weight: 800; color: var(--ink); }
.sm-countdown {
  --left: 1; width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; font-size: 18px; color: var(--ink);
  background: radial-gradient(#fff 58%, transparent 59%), conic-gradient(var(--accent) calc(var(--left) * 360deg), #d7dbe8 0);
}
.sm-bubbles { position: absolute; inset: 0; }
.sm-bubble {
  --hue: 200; position: absolute; bottom: -160px; border-radius: 50%; border: 0; cursor: pointer;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .95) 0 12%, hsla(var(--hue), 70%, 75%, .55) 13% 100%);
  box-shadow: inset 0 0 0 2px hsla(var(--hue), 60%, 60%, .5);
  animation: sm-float 10s linear forwards;
}
@keyframes sm-float { to { transform: translateY(calc(-100vh - 200px)); } }
.sm-bubble.pop { animation: sm-burst .3s ease forwards; }
@keyframes sm-burst { to { transform: scale(1.6); opacity: 0; } }
#hold-break { position: fixed; }

/* ---------- Results & history ---------- */
.sm-alldone { text-align: center; padding: 40px 24px; }
.sm-alldone-emoji { font-size: 80px; }
.sm-alldone h1 { font-size: 40px; margin: 8px 0; }
.sm-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 16px 0; }
.sm-tile { background: var(--bg); border-radius: 10px; padding: 14px; text-align: center; }
.sm-tile.good { background: #e6f4f1; }
.sm-tile-big { font-size: 26px; font-weight: 800; color: var(--ink); }
.sm-tile-label { font-size: 13px; color: var(--muted); }
.sm-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 16px; }
.sm-actions .btn.primary { width: auto; }
.sm-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.sm-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 8px; border-bottom: 2px solid var(--line); }
.sm-table td { padding: 8px; border-bottom: 1px solid var(--line); }
.sm-badge { font-size: 13px; font-weight: 700; border-radius: 99px; padding: 3px 10px; white-space: nowrap; }
.sm-badge.independent { background: #e6f4f1; color: #276749; }
.sm-badge.prompted { background: #fff8de; color: #8a6d1f; }
.sm-badge.incorrect { background: #fdecec; color: #9b2c2c; }
.sm-badge.skipped { background: #edf2f7; color: var(--muted); }
.sm-history-top { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; }
.sm-history-top .field { min-width: 200px; margin-bottom: 0; }
.sm-history-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.sm-history-bottom { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; margin-top: 20px; }
.sm-history-bottom .btn.primary { width: auto; }
.sm-trend { display: flex; align-items: flex-end; gap: 8px; height: 120px; padding: 8px; background: var(--bg); border-radius: 10px; margin-bottom: 14px; }
.sm-bar { flex: 1; max-width: 48px; height: var(--h); background: var(--accent); border-radius: 6px 6px 0 0; position: relative; }
.sm-bar span { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); font-size: 11px; color: var(--muted); }
.sm-panel { gap: 8px; }
.sm-panel .btn { width: 100%; text-align: center; text-decoration: none; }

@media (max-width: 640px) {
  .sm-field { gap: 10px; }
  .sm-field.n3, .sm-field.n5, .sm-field.n6 { grid-template-columns: repeat(3, 1fr); }
  .sm-field.n2, .sm-field.n4 { grid-template-columns: repeat(2, 1fr); }
  .sm-choice { border-radius: 16px; }
  .sm-token { width: 36px; height: 36px; font-size: 20px; }
  .sm-table { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .sm-choice.prompt::after, .sm-token.new { animation: none; }
  .sm-bubble { animation-duration: 20s !important; }
}

/* ---------- Levels, numbers, signs and clocks ---------- */
.sm-level { max-width: 520px; }
.sm-level select { font-weight: 700; }
.sm-next {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
  background: #e6f4f1; border-radius: 10px; padding: 12px 14px; margin: 8px 0 4px; font-weight: 600; color: var(--ink);
}

/* Groups of pictures (More or Less levels 1–2) */
.sm-dots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 8px; font-size: clamp(26px, 5vw, 40px); line-height: 1.1; }
.sm-dots.many { grid-template-columns: repeat(4, 1fr); font-size: clamp(20px, 4vw, 32px); }
.kind-dots .sm-choice { aspect-ratio: auto; min-height: 200px; }

/* Numbers (levels 3–4); dots underneath fade the support at level 3 */
.sm-num { display: grid; justify-items: center; gap: 8px; }
.sm-num-n { font-size: clamp(64px, 12vw, 104px); font-weight: 800; color: var(--ink); line-height: 1; font-variant-numeric: tabular-nums; }
.sm-num-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; max-width: 120px; }
.sm-num-dots i { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); opacity: .7; }

/* Signs and the "a ☐ b" question (levels 5–6) */
.sm-sign { font-size: clamp(64px, 12vw, 104px); font-weight: 800; color: var(--accent); line-height: 1; }
.sm-compare {
  display: flex; align-items: center; gap: 18px; font-size: clamp(48px, 9vw, 80px); font-weight: 800; color: var(--ink);
  background: #fff; border-radius: 18px; padding: 10px 26px; box-shadow: var(--shadow); font-variant-numeric: tabular-nums;
}
.sm-box { width: .9em; height: .9em; border: 4px dashed var(--accent); border-radius: 12px; display: inline-block; }
.kind-sign .sm-choice { aspect-ratio: auto; min-height: 150px; }

/* Times and clocks */
.sm-time { font-size: clamp(40px, 8vw, 64px); font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.sm-time.big {
  font-size: clamp(48px, 9vw, 80px); color: var(--accent); background: #fff; border-radius: 18px; padding: 6px 26px; box-shadow: var(--shadow);
}
.kind-time .sm-choice { aspect-ratio: auto; min-height: 130px; }
.sm-clock { width: 100%; max-width: 170px; height: auto; display: block; }
.sm-clock.big { width: min(56vw, 230px); max-width: none; background: #fff; border-radius: 50%; box-shadow: var(--shadow); }
.sm-clock .face { fill: #fff; stroke: var(--ink); stroke-width: 4; }
.sm-clock .tick { stroke: #a0aec0; stroke-width: 1.5; }
.sm-clock .tick.big { stroke: var(--ink); stroke-width: 3; }
.sm-clock .num { font: 700 17px Arial, sans-serif; fill: var(--ink); text-anchor: middle; dominant-baseline: central; }
.sm-clock .hand { stroke-linecap: round; }
.sm-clock .hand.hour { stroke: var(--ink); stroke-width: 9; }
.sm-clock .hand.minute { stroke: var(--accent); stroke-width: 5; }
.sm-clock .pin { fill: var(--ink); }
.kind-clock .sm-choice { padding: 10px; }
@media (max-width: 640px) {
  .kind-dots .sm-choice { min-height: 150px; }
  .sm-compare { gap: 10px; padding: 8px 16px; }
}

/* ---------- Number line (More or Less levels 3–6) ---------- */
.sm-numline { width: min(92vw, 640px); height: auto; display: block; margin-top: 6px; background: #fff; border-radius: 14px; box-shadow: var(--shadow); }
.sm-numline .axis { stroke: var(--ink); stroke-width: 4; stroke-linecap: round; }
.sm-numline .tick { stroke: #718096; stroke-width: 2; }
.sm-numline .tick.big { stroke: var(--ink); stroke-width: 3; }
.sm-numline .lbl { font: 700 17px Arial, sans-serif; fill: var(--ink); text-anchor: middle; }
.sm-numline .end { font: 700 17px Arial, sans-serif; fill: var(--muted); }
.sm-numline .end.less { text-anchor: start; }
.sm-numline .end.more { text-anchor: end; }
.sm-numline .flag rect, .sm-numline .flag path { fill: var(--accent); }
.sm-numline .flag.b rect, .sm-numline .flag.b path { fill: #dd6b20; }
.sm-numline .flag-n { font: 800 19px Arial, sans-serif; fill: #fff; text-anchor: middle; dominant-baseline: central; }
.sm-numline .dot.a { fill: var(--accent); }
.sm-numline .dot.b { fill: #dd6b20; }
@media (prefers-reduced-motion: reduce) { .sm-numline .flag { transition: none !important; } }
.sm-compare.linked span:first-child { color: var(--accent); }
.sm-compare.linked span:last-child { color: #dd6b20; }
.sm-num-n.flag-a { color: var(--accent); }
.sm-num-n.flag-b { color: #dd6b20; }

/* ---------- Visual help: pictures (+ number line) ---------- */
.sm-help { display: grid; justify-items: center; gap: 10px; margin-top: 4px; }
.sm-help.appear { animation: sm-fade .5s ease; }
@keyframes sm-fade { from { opacity: 0; transform: translateY(6px); } }
.sm-qty-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.sm-qty {
  display: grid; justify-items: center; gap: 6px; background: #fff; border-radius: 14px; box-shadow: var(--shadow);
  padding: 10px 14px; border-top: 6px solid var(--accent); min-width: 140px;
}
.sm-qty.b { border-top-color: #dd6b20; }
.sm-qty-n { font-size: 28px; font-weight: 800; color: var(--accent); line-height: 1; }
.sm-qty.b .sm-qty-n { color: #dd6b20; }
/* Ten-frames: 5 across, 2 down */
.sm-frames { display: grid; gap: 6px; }
.sm-frame { display: grid; grid-template-columns: repeat(5, 20px); grid-auto-rows: 20px; gap: 3px; padding: 4px; border: 2px solid #cbd5e0; border-radius: 6px; }
.sm-frame i { border-radius: 50%; background: #edf2f7; }
.sm-qty.a .sm-frame i.on { background: var(--accent); }
.sm-qty.b .sm-frame i.on { background: #dd6b20; }
/* Tens rods and ones cubes */
.sm-blocks { display: flex; align-items: flex-end; gap: 3px; min-height: 104px; }
.sm-rod { display: grid; grid-template-rows: repeat(10, 9px); gap: 1px; }
.sm-rod i, .sm-ones i { width: 9px; height: 9px; border-radius: 2px; display: block; }
.sm-ones { display: grid; grid-template-columns: repeat(2, 9px); gap: 1px; margin-left: 4px; align-content: end; }
.sm-qty.a .sm-rod i, .sm-qty.a .sm-ones i { background: var(--accent); }
.sm-qty.b .sm-rod i, .sm-qty.b .sm-ones i { background: #dd6b20; }
@media (max-width: 640px) {
  .sm-frame { grid-template-columns: repeat(5, 15px); grid-auto-rows: 15px; }
  .sm-qty { min-width: 0; padding: 8px 10px; }
  .sm-rod { grid-template-rows: repeat(10, 7px); }
  .sm-rod i, .sm-ones i { width: 7px; height: 7px; }
  .sm-ones { grid-template-columns: repeat(2, 7px); }
}
@media (prefers-reduced-motion: reduce) { .sm-help.appear { animation: none; } }
.sm-panel-prompt { display: block; margin-top: 6px; font-weight: 700; color: var(--ink); }

/* ---------- Live sessions (teletherapy) ---------- */
.sm-start-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.sm-start-live { padding: 14px 22px; font-size: 17px; }
.sm-live-hint { margin: 8px 0 0; font-size: 14px; }
body.live-child .sm-hold, body.live-child #hold-break { display: none; }

/* Child: waiting / pause screen */
.sm-waiting { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: #f4f8f7; }
.sm-wait-card { text-align: center; background: #fff; border-radius: 24px; box-shadow: var(--shadow); padding: 40px 48px; max-width: 520px; }
.sm-wait-emoji { font-size: 96px; line-height: 1; animation: sm-breathe 3s ease-in-out infinite; }
@keyframes sm-breathe { 50% { transform: scale(1.06); } }
.sm-wait-card h1 { font-size: 36px; margin: 14px 0 6px; }
.sm-wait-card .sub { font-size: 20px; }
.sm-wait-status { margin: 18px 0 0; font-size: 14px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.sm-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--good); display: inline-block; }
.sm-wait-status.off .sm-dot { background: #dd6b20; }
@media (prefers-reduced-motion: reduce) { .sm-wait-emoji { animation: none; } }

/* Therapist: live view */
.sm-live { max-width: 1100px; }
.sm-live-head h1 { margin-bottom: 4px; }
.sm-live-link { display: flex; gap: 10px; margin: 14px 0 6px; }
.sm-live-link input { flex: 1; font-size: 16px; font-weight: 700; color: var(--accent); }
.sm-live-link .btn.primary { width: auto; }
.sm-live-conn { font-weight: 700; margin: 10px 0; padding: 8px 12px; border-radius: 8px; display: inline-block; }
.sm-live-conn.on { background: #e6f4f1; color: #276749; }
.sm-live-conn.off { background: #fdf0e8; color: #9c4221; }
.sm-live-controls { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.sm-live-controls .btn.primary { width: auto; }
.sm-live-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; align-items: start; }
.sm-mirror { text-align: center; }
.sm-mirror-status { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.sm-live-clock { font-weight: 700; color: var(--ink); }
.sm-mirror-ins { font-size: 22px; font-weight: 700; color: var(--ink); margin: 6px 0 10px; }
.sm-mirror-big { font-size: 22px; font-weight: 700; color: var(--ink); }
.sm-mirror .sm-clock.big { width: 150px; }
.sm-mirror .sm-compare { font-size: 40px; }
.sm-mirror .sm-time.big { font-size: 40px; }
.sm-mirror-field { display: grid; gap: 10px; margin: 12px auto; max-width: 520px; grid-template-columns: repeat(3, 1fr); }
.sm-mirror-field.n2, .sm-mirror-field.n4 { grid-template-columns: repeat(2, 1fr); }
.sm-mirror-choice {
  position: relative; border: 3px solid var(--line); border-radius: 14px; background: #fff;
  min-height: 90px; display: grid; place-items: center; padding: 8px;
}
.sm-mirror-choice .sm-choice-emoji { font-size: 44px; }
.sm-mirror-choice .sm-num-n, .sm-mirror-choice .sm-sign { font-size: 44px; }
.sm-mirror-choice .sm-time { font-size: 26px; }
.sm-mirror-choice .sm-clock { max-width: 100px; }
.sm-mirror-choice .sm-dots { font-size: 20px; }
.sm-mirror-choice.answer { border-color: var(--good); }
.sm-mirror-choice.tapped-right { background: #e6f4f1; }
.sm-mirror-choice.tapped-wrong { background: #fdecec; border-color: #e53e3e; }
.sm-mirror-tag { position: absolute; top: 4px; right: 6px; font-size: 11px; font-weight: 700; color: var(--good); }
.sm-livedata-sum { font-weight: 700; color: var(--ink); }
@media (max-width: 860px) { .sm-live-grid { grid-template-columns: 1fr; } }

/* ---------- Progress chart ---------- */
.sm-progress { width: 100%; height: auto; display: block; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.sm-chart-box { margin: 10px 0 18px; }
.sm-chart-box .btn.small { margin-top: 8px; }
.sm-chart-filters { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.sm-chart-filters .field { min-width: 200px; margin-bottom: 8px; }

/* ---------- Printable reports ---------- */
.print-report { display: none; }
@media print {
  @page { margin: 14mm; }
  body.printing > *:not(#print-report) { display: none !important; }
  body.printing { background: #fff; display: block; }
  body.printing .print-report { display: block; color: #2d3748; font: 12px/1.45 Arial, Helvetica, sans-serif; }
  .pr-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 2px solid #a0cac1; padding-bottom: 6px; margin-bottom: 10px; }
  .pr-brand strong { font-size: 15px; }
  .pr-date { color: #718096; font-size: 11px; }
  .print-report h1 { font-size: 20px; margin: 6px 0 8px; color: #2d3748; }
  .print-report h2 { font-size: 14px; margin: 14px 0 6px; color: #4c51bf; text-transform: none; letter-spacing: 0; }
  .pr-details { display: grid; grid-template-columns: max-content 1fr; gap: 2px 14px; margin: 0 0 10px; }
  .pr-details dt { font-weight: 700; color: #718096; }
  .pr-details dd { margin: 0; }
  .pr-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 8px 0; }
  .pr-tile { border: 1px solid #e2e8f0; border-radius: 6px; padding: 6px; text-align: center; }
  .pr-big { font-size: 18px; font-weight: 800; }
  .pr-label { font-size: 10px; color: #718096; }
  .print-report .sm-progress { width: 100%; border: 1px solid #e2e8f0; break-inside: avoid; }
  .print-report .sm-table { width: 100%; border-collapse: collapse; font-size: 11px; }
  .print-report .sm-table th, .print-report .sm-table td { border-bottom: 1px solid #e2e8f0; padding: 4px 6px; text-align: left; }
  .print-report .sm-table tr { break-inside: avoid; }
  .print-report .sm-badge { padding: 0; background: none !important; font-weight: 700; }
  .pr-foot { margin-top: 12px; color: #718096; font-size: 10px; }
}

/* ---------- How-to guide ---------- */
.sm-guide-link { margin: 10px 0 0; }
.sm-guide-link a { color: var(--accent); font-weight: 700; text-decoration: none; }
.sm-guide-link a:hover { text-decoration: underline; }
.sm-guide-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 6px; }
.sm-guide-actions { display: flex; gap: 8px; }
.sm-guide-actions .btn.primary { width: auto; text-decoration: none; }
.sm-guide h1 { margin: 6px 0 6px; }
.sm-guide h2 { font-size: 19px; text-transform: none; letter-spacing: 0; color: var(--accent); margin: 26px 0 8px; }
.sm-guide p, .sm-guide li { line-height: 1.55; }
.sm-guide ul, .sm-guide ol { padding-left: 22px; margin: 6px 0; }
.sm-guide li { margin: 4px 0; }
.sm-guide code { background: var(--mint); padding: 1px 6px; border-radius: 4px; font-size: 14px; }
.sm-guide .sm-table { margin: 6px 0; }
.sm-guide-note { background: #f3f4fd; border-left: 4px solid var(--accent); border-radius: 6px; padding: 10px 14px; margin: 12px 0; }
@media print {
  .print-report .sm-card { box-shadow: none; padding: 0; }
  .print-report h2 { break-after: avoid; }
  .print-report li, .print-report .sm-guide-note { break-inside: avoid; }
  .print-report .sm-guide-note { background: #f7f7fc; border-left: 3px solid #4c51bf; padding: 6px 10px; }
  .print-report code { background: #eef2f1; padding: 0 4px; }
}

/* Crossword as a Session Mode program (uses /crossword/crossword.css) */
.sm-field.sm-cw { display: block; max-width: 1000px; }
.sm-cw .cw-main { text-align: left; }
#instruction .cw-clue { max-width: 1000px; margin: 0 auto 12px; text-align: left; }
.cw-letter.ghost { color: #c3c8d4; }
.cw-grid.small { width: min(100%, calc(var(--cols) * 40px)); }
.cw-grid.small .cw-letter { font-size: 18px; }
.cw-grid.small .cw-cell { cursor: default; }
.cw-clue-ans { margin-left: auto; color: var(--muted); font-weight: 700; letter-spacing: 1px; }
.cw-clue-hints { flex-basis: 100%; padding-left: 26px; font-size: 13px; color: #975a16; }
.sm-mirror .cw-clues { box-shadow: none; padding: 6px 0; }
.sm-mirror .cw-clue-item { cursor: default; padding: 5px 8px; }
.sm-mirror-cw { display: grid; grid-template-columns: auto minmax(220px, 1fr); gap: 16px; align-items: start; }
@media (max-width: 860px) { .sm-mirror-cw { grid-template-columns: 1fr; } }
.sm-mirror .cw-clue-item, .sm-cw .cw-clue-item { flex-wrap: wrap; }

/* Feelings and Sight Words */
.sm-say-again { margin-left: 12px; vertical-align: middle; }
.sm-word { font-size: clamp(30px, 6vw, 52px); font-weight: 800; color: var(--ink); letter-spacing: .5px; padding: 18px 8px; }
.kind-word .sm-choice { min-height: 120px; }
.sm-face { display: grid; justify-items: center; gap: 6px; }
.sm-face-emoji { font-size: clamp(64px, 12vw, 104px); line-height: 1.1; }
.sm-face.big .sm-face-emoji { font-size: clamp(96px, 16vw, 140px); }
.sm-face-label { font-size: 22px; font-weight: 800; color: var(--ink); }
.sm-story { display: flex; align-items: center; gap: 14px; max-width: 640px; margin: 10px auto 4px; background: #fff; border-radius: 14px; box-shadow: var(--shadow); padding: 14px 18px; text-align: left; }
.sm-story-emoji { font-size: 56px; line-height: 1; }
.sm-story-text { font-size: clamp(20px, 3.4vw, 26px); font-weight: 700; color: var(--ink); }
.sm-action { display: grid; justify-items: center; gap: 8px; padding: 10px 6px; }
.sm-action-emoji { font-size: 52px; line-height: 1; }
.sm-action-text { font-size: clamp(17px, 2.6vw, 21px); font-weight: 800; color: var(--ink); text-align: center; }
.sm-mirror .sm-word { font-size: 26px; padding: 6px; }
.sm-mirror .sm-face-emoji { font-size: 46px; }
.sm-mirror .sm-story-emoji { font-size: 34px; }
.sm-mirror .sm-story-text { font-size: 17px; }
.sm-mirror .sm-action-emoji { font-size: 30px; }
.sm-mirror .sm-action-text { font-size: 14px; }

/* Money and Add and Take Away */
.sm-coin { display: block; filter: drop-shadow(0 2px 2px rgba(0,0,0,.18)); }
.sm-instruction .sm-coin { margin: 8px auto; }
.sm-coins { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin: 10px auto; max-width: 620px; }
.sm-money { font-size: clamp(34px, 6vw, 54px); font-weight: 800; color: var(--ink); padding: 14px 6px; }
.sm-yesno { font-size: clamp(30px, 5vw, 44px); font-weight: 800; color: var(--ink); padding: 18px 10px; }
.sm-shop { display: grid; gap: 10px; justify-items: center; margin: 8px auto; }
.sm-shop-item { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 14px; box-shadow: var(--shadow); padding: 8px 18px; }
.sm-shop-emoji { font-size: 56px; line-height: 1; }
.sm-shop-price { font-size: 34px; font-weight: 800; color: var(--accent); background: #fff8de; border: 2px dashed #d69e2e; border-radius: 10px; padding: 2px 12px; }
.sm-shop-wallet { display: grid; justify-items: center; }
.sm-shop-label { font-weight: 700; color: var(--muted); }
.sm-sum { display: grid; gap: 10px; justify-items: center; margin: 8px auto; }
.sm-sum-pics { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center; }
.sm-sum-group { display: grid; grid-template-columns: repeat(5, auto); gap: 4px; background: #fff; border-radius: 12px; box-shadow: var(--shadow); padding: 8px 10px; font-size: clamp(26px, 4.5vw, 38px); line-height: 1.1; }
.sm-sum-group i { font-style: normal; }
.sm-sum-group .gone { position: relative; }
.sm-sum-group .gone i { opacity: .3; }
.sm-sum-group .gone::after { content: '✕'; position: absolute; inset: 0; display: grid; place-items: center; color: #e53e3e; font-weight: 800; opacity: 1; }
.sm-sum-line { display: flex; align-items: center; gap: 14px; font-size: clamp(40px, 7vw, 60px); font-weight: 800; color: var(--ink); }
.sm-sum-op { color: var(--accent); }
.sm-sum-line .sm-box { width: 1.1em; height: 1.1em; }
.sm-mirror .sm-sum-line { font-size: 30px; }
.sm-mirror .sm-sum-group { font-size: 20px; }
.sm-mirror .sm-money, .sm-mirror .sm-yesno { font-size: 24px; padding: 4px; }
.sm-mirror .sm-shop-emoji { font-size: 32px; }
.sm-mirror .sm-shop-price { font-size: 20px; }

/* First Sounds */
.sm-letter { font-size: clamp(56px, 10vw, 88px); font-weight: 800; color: var(--ink); line-height: 1.1; padding: 6px; }
.sm-letter.big { color: var(--accent); background: #fff; border-radius: 16px; box-shadow: var(--shadow); padding: 4px 26px; display: inline-block; margin: 6px auto; }
.sm-mirror .sm-letter { font-size: 34px; }

/* What Comes Next? and Calendar */
.sm-word.small { font-size: clamp(22px, 3.8vw, 34px); padding: 18px 4px; }
.sm-pattern, .sm-numseq { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin: 10px auto; background: #fff; border-radius: 16px; box-shadow: var(--shadow); padding: 12px 18px; max-width: 760px; }
.sm-pattern-item { font-size: clamp(34px, 6vw, 54px); line-height: 1; }
.sm-numseq-n { font-size: clamp(34px, 6vw, 54px); font-weight: 800; color: var(--ink); min-width: 1.4em; text-align: center; }
.sm-numseq-n:not(:last-of-type)::after { content: ','; color: var(--muted); }
.sm-pattern .sm-box, .sm-numseq .sm-box { font-size: clamp(34px, 6vw, 54px); }
.sm-steps { display: flex; flex-wrap: wrap; align-items: stretch; justify-content: center; gap: 8px; margin: 10px auto; }
.sm-step { display: grid; justify-items: center; align-content: start; gap: 4px; width: 170px; background: #fff; border-radius: 14px; box-shadow: var(--shadow); padding: 10px; }
.sm-step.next { place-content: center; }
.sm-step-label { font-size: 13px; font-weight: 800; color: var(--accent); text-transform: uppercase; letter-spacing: .5px; }
.sm-step-emoji { font-size: 44px; line-height: 1.1; }
.sm-step-text { font-size: 17px; font-weight: 700; color: var(--ink); text-align: center; }
.sm-step-arrow { align-self: center; font-size: 28px; color: var(--muted); }
.sm-step .sm-box { font-size: 48px; }
.sm-cal { background: #fff; border-radius: 16px; box-shadow: var(--shadow); padding: 12px 14px; margin: 10px auto; width: min(100%, 460px); }
.sm-cal-title { font-size: 22px; font-weight: 800; color: var(--accent); margin-bottom: 6px; }
.sm-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.sm-cal-head { font-size: 13px; font-weight: 800; color: var(--muted); padding: 4px 0; }
.sm-cal-day { font-size: 17px; font-weight: 700; color: var(--ink); padding: 6px 0; border-radius: 8px; background: #f7fafc; }
.sm-cal-day.empty { background: transparent; }
.sm-cal-day.mark { background: #fff3c4; box-shadow: inset 0 0 0 3px #d69e2e; color: #975a16; }
.sm-mirror .sm-pattern-item, .sm-mirror .sm-numseq-n { font-size: 28px; }
.sm-mirror .sm-step { width: 120px; }
.sm-mirror .sm-step-emoji { font-size: 28px; }
.sm-mirror .sm-step-text { font-size: 13px; }
.sm-mirror .sm-cal { width: min(100%, 320px); }
.sm-mirror .sm-cal-day { font-size: 13px; padding: 3px 0; }
