/* shell.css: the hub's look for the pages around the labs (owner: the look and feel stays). Tokens from the original
   landing/index.html; shapes from accounts/shared/accounts.css (160px tiles, 88px keys, four dots). */
@font-face { font-family: 'Fredoka'; font-style: normal; font-weight: 300 700; font-display: swap; src: url('/fonts/fredoka-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Fredoka'; font-style: normal; font-weight: 300 700; font-display: swap; src: url('/fonts/fredoka-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
:root {
  --emerald: #059669; --emerald-dark: #047857; --emerald-soft: #ecfdf5; --amber: #f59e0b; --amber-soft: #fef3c7; --amber-ink: #92400e;
  --slate: #64748b; --ink: #1e293b; --line: #e2e8f0; --purple: #5b21b6; --purple-soft: #ede9fe; --rose: #b91c1c; --rose-soft: #fee2e2;
  --sky-soft: #e0f2fe; --sky-ink: #075985; --card: rgba(255,255,255,0.94);
  --shadow: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.08);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font-family: 'Fredoka', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink);
  background: linear-gradient(135deg, #ecfdf5 0%, #e0f2fe 30%, #ede9fe 65%, #fef3c7 100%); min-height: 100vh; padding: 1rem 16px; }
@media (min-width: 640px) { body { padding: 2rem; } }
.wrap { max-width: 760px; margin: 0 auto; } .wrap.wide { max-width: 1024px; }
a { color: var(--emerald-dark); }
.banner { position: relative; overflow: clip; border-radius: 1.5rem; min-height: 150px; padding: 1.5rem; color: white; display: flex; flex-direction: column; justify-content: center;
  background: linear-gradient(110deg, #047857 0%, #0369a1 40%, #6d28d9 75%, #b45309 100%); box-shadow: 0 20px 25px -5px rgba(0,0,0,0.12), 0 8px 10px -6px rgba(0,0,0,0.1); }
@media (min-width: 640px) { .banner { padding: 2.5rem; } .banner.has-img { aspect-ratio: 3 / 1; } }
.banner.set-girl { background: linear-gradient(110deg, #9d174d 0%, #6d28d9 45%, #0369a1 80%, #b45309 100%); }
.banner.set-boy { background: linear-gradient(110deg, #1e3a8a 0%, #0369a1 40%, #047857 75%, #b45309 100%); }
.banner .banner-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner .scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,23,42,0.72) 0%, rgba(15,23,42,0.5) 38%, rgba(15,23,42,0) 66%); }
@media (max-width: 639px) { .banner .banner-img { object-position: 88% center; } .banner .scrim { background: linear-gradient(90deg, rgba(15,23,42,0.72), rgba(15,23,42,0.5) 60%, rgba(15,23,42,0.35)); } }
.banner .kicker, .banner .hello { position: relative; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.95; }
.banner h1 { position: relative; margin: 0.1rem 0 0; font-size: 2.2rem; font-weight: 700; text-shadow: 0 3px 8px rgba(0,0,0,0.25); text-wrap: balance; }
@media (min-width: 640px) { .banner h1 { font-size: 3rem; } }
.banner p { position: relative; margin: 0.5rem 0 0; max-width: 30rem; font-size: 1.15rem; font-weight: 700; text-shadow: 0 1px 4px rgba(0,0,0,0.25); }
.card { background: var(--card); border: 1px solid white; border-radius: 1.5rem; box-shadow: var(--shadow); padding: 1.1rem 1.2rem; min-width: 0; }
.card h3 { margin: 0 0 0.5rem; font-size: 1.15rem; font-weight: 700; color: var(--emerald-dark); }
.center { text-align: center; }
.muted { color: var(--slate); font-size: 0.92rem; }
.big { font-size: 2.2rem; font-weight: 700; color: var(--emerald-dark); margin: 0.6rem 0 0.2rem; }
.sub { margin: 0 0 1.2rem; color: var(--slate); font-size: 1.1rem; font-weight: 600; }
.logo { font-size: 3.2rem; line-height: 1; }
h2.section { font-size: 1.6rem; font-weight: 700; color: var(--purple); margin: 1.75rem 0 0.75rem; }
.f { display: grid; grid-template-columns: 1fr; gap: 0.75rem; margin-top: 0.5rem; text-align: left; }
@media (min-width: 640px) { .f.two { grid-template-columns: 1fr 1fr; } .f.two .full { grid-column: 1 / -1; } }
.f label { display: flex; flex-direction: column; gap: 0.25rem; font-weight: 600; font-size: 0.95rem; }
.f input, .f select { font: inherit; font-size: 1.05rem; padding: 0.7rem 0.9rem; border: 2px solid var(--line); border-radius: 14px; background: white; color: var(--ink); width: 100%; }
.f input:focus, .f select:focus { outline: none; border-color: var(--emerald); }
fieldset { border: 2px solid var(--line); border-radius: 1rem; padding: 0.6rem 0.9rem 0.8rem; margin: 0; min-width: 0; }
legend { font-weight: 700; font-size: 0.9rem; padding: 0 0.3rem; }
.avatars { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.avpick input { position: absolute; opacity: 0; width: 0; height: 0; }
.avpick span { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; font-size: 1.8rem; border: 2px solid var(--line); border-radius: 14px; background: white; cursor: pointer; }
.avpick input:checked + span { border-color: var(--emerald); background: var(--emerald-soft); }
.avpick input:focus-visible + span { outline: 3px solid #8b5cf6; }
.msg { min-height: 24px; color: var(--rose); font-weight: 700; margin: 4px 0; }
.msg.ok { color: var(--emerald-dark); } .msg.info { color: var(--slate); }
.tools { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin-top: 0.4rem; }
.tools.center { justify-content: center; }
.btn { display: inline-block; font: inherit; font-weight: 700; font-size: 1rem; border-radius: 999px; padding: 0.65rem 1.3rem; border: 2px solid var(--line); background: white; color: var(--ink); cursor: pointer; text-decoration: none; }
.btn.go { background: var(--emerald); border-color: var(--emerald); color: white; }
.btn:disabled { opacity: 0.5; cursor: default; }
.btn:focus-visible, .profile:focus-visible, .pad button:focus-visible, .card.lab:focus-visible { outline: 3px solid #8b5cf6; outline-offset: 2px; }
.link { background: none; border: 0; color: var(--slate); font: inherit; font-weight: 700; cursor: pointer; text-decoration: underline; }
.profiles { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.profile { width: 160px; padding: 18px 12px; border: 3px solid var(--line); border-radius: 24px; background: white; text-decoration: none; color: var(--ink);
  display: flex; flex-direction: column; align-items: center; gap: 8px; box-shadow: var(--shadow); position: relative; }
.profile:hover { border-color: var(--emerald); }
.profile .avatar { font-size: 64px; line-height: 1; } .profile .name { font-size: 20px; font-weight: 700; } .profile .set { font-size: 12px; color: var(--slate); font-weight: 600; }
.profile.locked { border-color: #fbbf24; }
.profile .lock { position: absolute; top: -10px; right: -6px; background: var(--amber); color: #451a03; font-size: 0.75rem; font-weight: 700; border-radius: 999px; padding: 0.15rem 0.6rem; }
.grownups { margin: 2rem auto 0; max-width: 30rem; background: var(--card); border: 1px solid white; border-radius: 1.2rem; padding: 0.9rem 1rem; box-shadow: var(--shadow); }
.grownups h2 { margin: 0 0 0.3rem; font-size: 1rem; color: var(--slate); }
.who { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 22px; font-weight: 700; margin: 0.4rem 0 1rem; }
.who .avatar { font-size: 48px; line-height: 1; }
.dots { display: flex; justify-content: center; gap: 18px; margin: 8px 0 12px; }
.dots span { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--emerald); }
.dots span.on { background: var(--emerald); }
.dots.shake { animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-10px); } 75% { transform: translateX(10px); } }
.pad { display: grid; grid-template-columns: repeat(3, 88px); gap: 14px; justify-content: center; margin: 12px 0 18px; }
.pad button { height: 88px; border-radius: 50%; border: 2px solid var(--line); background: white; font: inherit; font-size: 34px; font-weight: 700; color: var(--ink); cursor: pointer; }
.pad button:active { background: var(--emerald-soft); } .pad button.ghost { visibility: hidden; } .pad button:disabled { opacity: 0.4; }
.plan { margin: 1rem 0 0; padding: 0.8rem 1rem; border-radius: 1rem; background: var(--sky-soft); color: var(--sky-ink); font-weight: 600; }
.summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; margin: 1.25rem 0 0; font-weight: 700; color: #475569; }
.grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 560px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .grid { grid-template-columns: 1fr 1fr 1fr; } }
.card.lab { display: flex; flex-direction: column; position: relative; padding: 0 0 1rem; text-decoration: none; color: inherit; }
.card.lab.off { opacity: 0.6; }
/* The picture at its own 16:9 shape (2026-10-03: a 9rem strip showed 72% of it on a phone, heads cut off). */
.card.lab .cover { position: relative; aspect-ratio: 16 / 9; border-radius: 1.5rem 1.5rem 0 0; overflow: hidden; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--c1, #d1fae5), var(--c2, #e0e7ff)); }
.card.lab .cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* A lab whose card shows its wide 3:1 banner (Art, Minnesota Social Studies): the card takes the banner's shape. */
.card.lab .cover.wide { aspect-ratio: 3 / 1; }
/* On a phone the front banner shows its whole picture with the words under it, as the labs' banners do (owner,
   2026-10-03: "Banners/tiles are still cutoff"). The objects are not tappable below 640 px anyway. */
@media (max-width: 639px) {
  .banner.has-img { padding: 0 0 1.1rem; justify-content: flex-start; }
  .banner.has-img .banner-img { position: relative; display: block; height: auto; aspect-ratio: 3 / 1; object-position: center; margin-bottom: 0.8rem; }
  .banner.has-img .scrim { display: none; }
  .banner.has-img .hello, .banner.has-img h1, .banner.has-img p { margin-left: 1.1rem; margin-right: 1.1rem; }
}
.card.lab .cover img + .big { display: none; }
.card.lab .cover .big { font-size: 4.5rem; line-height: 1; margin: 0; filter: drop-shadow(0 4px 6px rgba(0,0,0,0.15)); color: inherit; }
.card.lab.done .cover::after { content: '✓ trial done'; position: absolute; top: 0.6rem; left: 0.6rem; background: var(--amber); color: #451a03; font-size: 0.75rem; font-weight: 700; border-radius: 999px; padding: 0.2rem 0.6rem; }
.card.lab .body { padding: 0.9rem 1.1rem 0; }
.card.lab .kicker { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: #a21caf; }
.card.lab .name { font-weight: 700; font-size: 1.3rem; margin: 0.1rem 0 0.2rem; }
.card.lab .desc { font-size: 0.9rem; color: var(--slate); font-weight: 500; line-height: 1.35; }
.card.lab .progress-line { margin: 0.5rem 1.1rem 0; }
.card.lab .progress-main { font-size: 0.9rem; font-weight: 700; color: #6d28d9; }
.card.lab .progress-bar { height: 7px; border-radius: 99px; background: var(--purple-soft); margin-top: 0.35rem; overflow: hidden; }
.card.lab .progress-bar > div { height: 100%; border-radius: 99px; background: linear-gradient(90deg, #a78bfa, #d946ef); }
.kids { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.kid { display: flex; gap: 0.6rem; align-items: center; border: 2px solid var(--line); border-radius: 1rem; padding: 0.5rem 0.8rem; background: white; }
.kid .av { font-size: 1.8rem; line-height: 1; } .kid b { display: block; } .kid small { color: var(--slate); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th, td { text-align: left; padding: 0.5rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--slate); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.chip { display: inline-block; font-size: 0.78rem; font-weight: 700; padding: 0.15rem 0.6rem; border-radius: 999px; white-space: nowrap; background: var(--line); }
.chip.trial { background: var(--sky-soft); color: var(--sky-ink); } .chip.active { background: var(--emerald-soft); color: var(--emerald-dark); }
.chip.awaiting_confirmation { background: var(--amber-soft); color: var(--amber-ink); } .chip.past_due { background: var(--rose-soft); color: var(--rose); }
.qr { min-height: 220px; display: flex; align-items: center; justify-content: center; }
.qr img { border-radius: 12px; border: 6px solid white; box-shadow: var(--shadow); }
code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.9em; background: #f1f5f9; padding: 0.1rem 0.35rem; border-radius: 0.4rem; }
.mail { border-top: 1px solid var(--line); padding: 0.8rem 0; }
.mail pre { white-space: pre-wrap; font: inherit; margin: 0.3rem 0 0; background: #f8fafc; padding: 0.6rem 0.8rem; border-radius: 0.8rem; overflow-wrap: anywhere; }
footer { text-align: center; margin-top: 1.5rem; font-size: 0.8rem; color: #94a3b8; }
.toast { position: fixed; left: 50%; bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 30px); max-width: min(92vw, 40rem); padding: 0.75rem 1.1rem;
  border-radius: 1rem; background: white; border-left: 6px solid var(--emerald); box-shadow: 0 8px 28px rgba(0,0,0,.18); font-weight: 700; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 50; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } .dots.shake { animation: none; } }

/* Phase 4: a grown-up looking as a kid, the feedback box, and the kid's comfort settings. */
.acting { margin: 0 0 1rem; padding: 0.7rem 1rem; border-radius: 1rem; background: #d946ef; color: white; font-weight: 700; display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; justify-content: space-between; }
.acting button { font: inherit; font-weight: 700; border: 2px solid white; background: transparent; color: white; border-radius: 999px; padding: 0.3rem 0.9rem; cursor: pointer; }
.plan.readonly { background: var(--rose-soft); color: var(--rose); }
.feedback summary { cursor: pointer; font-weight: 700; color: var(--slate); }
.feedback textarea { font: inherit; font-size: 1rem; padding: 0.6rem 0.8rem; border: 2px solid var(--line); border-radius: 14px; background: white; color: var(--ink); width: 100%; min-height: 3.5rem; }
.closed { padding: 3rem 1rem; }
body.a-big { font-size: 1.15rem; }
body.a-dyslexia { font-family: 'Comic Sans MS', 'Trebuchet MS', Verdana, sans-serif; letter-spacing: 0.02em; word-spacing: 0.08em; }
body.a-still *, body.a-still *::before, body.a-still *::after { animation: none !important; transition: none !important; }

/* The objects in the front banner can be tapped, as in the original hub (landing/index.html, owner 2026-09-30): each is
   its own cut-out over the picture (pages.js bannerHotspots, shell.js). Only while the picture is shown whole (640 px
   and up); a phone crops it differently. Stacking, bottom to top: picture, objects (1), shade (2), words (3), bubble (4).
   The shade lies over the objects, so a still object looks exactly like the picture. */
.banner .hotspots { display: none; }
@media (min-width: 640px) { .banner .banner-img ~ .hotspots { display: block; position: absolute; inset: 0; z-index: 1; } }
.banner .scrim { z-index: 2; pointer-events: none; }
/* Pico after he has flown to the table (shell.js): above the shade, shown only while the objects are (640 px and up). */
.banner .hot.on-table { display: none; }
@media (min-width: 640px) { .banner .banner-img ~ .hot.on-table { display: block; z-index: 3; } }
.banner .hello, .banner h1, .banner p { z-index: 3; }
.hot { position: absolute; padding: 0; border: 0; background: transparent; cursor: pointer; transform-origin: 50% 92%;
  -webkit-tap-highlight-color: transparent; }
.hot img { display: block; width: 100%; height: 100%; pointer-events: none; }
.hot-base { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.hot:focus { outline: none; }
.hot:focus-visible img { filter: drop-shadow(0 0 6px rgba(255,255,255,0.9)); }
.hot.wiggle { animation: hotWiggle 0.75s ease-out; }
.hot.hint { animation: hotHint 1s ease-in-out; }
@keyframes hotWiggle { 0% { transform: rotate(0); } 15% { transform: rotate(-6deg) scale(1.04); } 35% { transform: rotate(5deg) scale(1.04); }
  55% { transform: rotate(-3deg); } 75% { transform: rotate(1.5deg); } 100% { transform: rotate(0); } }
@keyframes hotHint { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-3deg); } 60% { transform: rotate(2deg); } }
.hot-bubble { position: absolute; z-index: 4; transform: translate(-50%, -50%); white-space: nowrap; padding: 0.55rem 1rem;
  border-radius: 999px; background: white; color: #4c1d95; font-weight: 700; font-size: 1.05rem; text-decoration: none;
  box-shadow: 0 10px 20px -4px rgba(0,0,0,0.3); animation: bubbleIn 0.3s ease-out backwards; }
a.hot-bubble:hover { background: #f5f3ff; }
.hot-bubble.bye { opacity: 0; transition: opacity 0.25s ease-in; }
@keyframes bubbleIn { from { opacity: 0; transform: translate(-50%, -50%) scale(0.6); } }
body.a-still .hot, body.a-still .hot-bubble { animation: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) { .hot, .hot-bubble { animation: none !important; transition: none !important; } }
