/* Homora — warm, big, touch-friendly. Avoids newer CSS (flex gap, clamp, aspect-ratio,
   inset) so it renders on the fridge's older built-in browser. Grid gap is fine. */
:root {
  --bg: #fbf7f2;
  --card: #ffffff;
  --ink: #2b2420;
  --muted: #6e6259;
  --line: #ece4da;
  --accent: #bd4c1b;        /* buttons + links: white text on it passes WCAG AA */
  --accent-bright: #e86a3a; /* decoration only (glows, rings) — never behind text */
  --accent-ink: #ffffff;
  --good: #167a54;
  --warn: #9a5b00;
  --bad: #c53a3a;
  --soft: #f4ede4;
  --radius: 22px;
  --shadow: 0 2px 0 rgba(60, 40, 20, .04), 0 8px 24px rgba(60, 40, 20, .07);
  --font: 'Nunito', -apple-system, 'Segoe UI', Roboto, sans-serif;
  --read: 'Lexend', 'Nunito', sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink); font-family: var(--font); }
body { min-height: 100vh; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
input, select, textarea { font-size: 16px; }
h1, h2, h3 { margin: 0; line-height: 1.15; }
a { color: var(--accent); }
.boot { font-size: 80px; text-align: center; padding-top: 30vh; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.center { text-align: center; }
.hidden { display: none !important; }

/* ---------- generic pieces ---------- */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.card h2 { font-size: 20px; font-weight: 900; margin-bottom: 12px; }
.card h2 .count { color: var(--muted); font-weight: 700; }
.stack { display: grid; grid-gap: 16px; gap: 16px; }
.row { display: grid; grid-auto-flow: column; grid-gap: 10px; gap: 10px; align-items: center; justify-content: start; }
.row.spread { justify-content: space-between; }
.row.end { justify-content: end; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; grid-gap: 16px; gap: 16px; }
.btn { display: inline-block; padding: 14px 22px; border-radius: 999px; font-weight: 800; font-size: 17px; background: var(--soft); color: var(--ink); min-height: 48px; text-align: center; text-decoration: none; }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.good { background: var(--good); color: #fff; }
.btn.danger { background: #fde8e8; color: var(--bad); }
.btn.block { display: block; width: 100%; }
.btn.small { padding: 8px 14px; min-height: 36px; font-size: 14px; }
.btn:disabled { opacity: .5; }
.chip { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--soft); font-weight: 700; font-size: 14px; margin: 0 6px 6px 0; }
.chip.on { background: var(--ink); color: #fff; }
.who { display: inline-block; width: 30px; height: 30px; line-height: 30px; text-align: center; border-radius: 50%; font-size: 17px; margin-right: 4px; vertical-align: middle; }
.who.all { background: var(--soft); }
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-weight: 800; font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; padding: 13px 14px; border: 2px solid var(--line); border-radius: 14px; background: #fff; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.empty { color: var(--muted); padding: 10px 0; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 14px 22px; border-radius: 999px; font-weight: 800; z-index: 100; box-shadow: var(--shadow); max-width: 90vw; text-align: center; }
.confetti { position: fixed; left: 0; top: 0; right: 0; bottom: 0; pointer-events: none; z-index: 90; overflow: hidden; }
.confetti span { position: absolute; top: -60px; animation: fall 2.4s ease-in forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(540deg); } }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 70% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }

/* ---------- login + home ---------- */
.login { max-width: 420px; margin: 0 auto; padding: 14vh 20px 40px; text-align: center; }
.login .logo { font-size: 72px; }
.login h1 { font-size: 34px; font-weight: 900; margin: 10px 0 6px; }
.login form { margin-top: 26px; text-align: left; }
.err { color: var(--bad); font-weight: 700; margin: 8px 0; }
.home { max-width: 760px; margin: 0 auto; padding: 8vh 20px 40px; text-align: center; }
.home h1 { font-size: 36px; font-weight: 900; margin: 8px 0 26px; }
.devices { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); grid-gap: 16px; gap: 16px; }
.device { background: var(--card); box-shadow: var(--shadow); border-radius: var(--radius); padding: 26px 18px; text-align: center; }
.device .big { font-size: 54px; }
.device b { display: block; font-size: 21px; margin: 8px 0 4px; }

/* ---------- fridge ---------- */
.fridge { padding: 22px; max-width: 1400px; margin: 0 auto; }
.fridge-top { display: grid; grid-template-columns: 1fr auto; align-items: center; margin-bottom: 18px; }
.clock { font-size: 76px; font-weight: 900; letter-spacing: -2px; line-height: 1; }
.clock small { font-size: 30px; font-weight: 800; color: var(--muted); letter-spacing: 0; }
.date-line { font-size: 24px; font-weight: 800; color: var(--muted); margin-top: 4px; }
.weather { text-align: right; }
.weather .temp { font-size: 52px; font-weight: 900; line-height: 1; }
.weather .temp span { font-size: 44px; }
.weather .hi-lo { font-size: 18px; color: var(--muted); font-weight: 700; }
.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); grid-gap: 12px; gap: 12px; margin-bottom: 18px; }
.person { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 8px 12px; text-align: center; border-bottom: 6px solid var(--c); }
.person .face { font-size: 46px; line-height: 1.1; }
.person b { display: block; font-size: 18px; margin-top: 4px; }
.person .stars { font-size: 15px; font-weight: 800; color: var(--warn); }
.person .todo { font-size: 13px; font-weight: 800; color: var(--muted); }
.fridge-grid { display: grid; grid-template-columns: 1.4fr 1fr; grid-gap: 18px; gap: 18px; }
@media (orientation: portrait) { .fridge-grid { grid-template-columns: 1fr; } }
.agenda .ev { display: grid; grid-template-columns: 92px 1fr auto; grid-gap: 12px; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.agenda .ev:first-of-type { border-top: 0; }
.agenda .ev.past { opacity: .45; }
.agenda .ev.now { background: #fff6ec; margin: 0 -12px; padding: 12px; border-radius: 14px; }
.ev .time { font-weight: 900; font-size: 18px; }
.ev .title { font-weight: 800; font-size: 20px; }
.ev .meta { color: var(--muted); font-size: 15px; font-weight: 700; }
.ev .bring { display: inline-block; margin-top: 4px; background: #fff1d6; color: #8a5a00; border-radius: 10px; padding: 3px 10px; font-size: 14px; font-weight: 800; }
.day-label { font-size: 15px; font-weight: 900; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin: 14px 0 2px; }
.list-item { display: grid; grid-template-columns: 44px 1fr auto; grid-gap: 10px; gap: 10px; align-items: center; padding: 8px 0; font-weight: 700; font-size: 18px; border-top: 1px solid var(--line); }
.list-item:first-child { border-top: 0; }
.tick { width: 40px; height: 40px; border-radius: 12px; border: 3px solid var(--line); background: #fff; font-size: 22px; line-height: 34px; text-align: center; }
.tick.on { background: var(--good); border-color: var(--good); color: #fff; }
.done-text { text-decoration: line-through; color: var(--muted); }
.add-row { display: grid; grid-template-columns: 1fr auto; grid-gap: 8px; gap: 8px; margin-top: 10px; }
.add-row input { padding: 12px 14px; border: 2px solid var(--line); border-radius: 14px; font-size: 18px; }
.msg { padding: 10px 0; border-top: 1px solid var(--line); font-size: 18px; font-weight: 700; }
.msg:first-child { border-top: 0; }
.msg .from { font-size: 13px; color: var(--muted); }
.dinner { font-size: 24px; font-weight: 900; }
.fridge-foot { display: grid; grid-template-columns: auto auto; justify-content: space-between; margin-top: 18px; }

/* idle slideshow */
.slideshow { position: fixed; left: 0; top: 0; right: 0; bottom: 0; background: #111; z-index: 50; color: #fff; }
.collage-host { position: absolute; left: 0; top: 0; right: 0; bottom: 0; overflow: hidden; }
.collage { position: absolute; left: 0; top: 0; right: 0; bottom: 0; opacity: 0; transition: opacity 1.4s; }
.collage.in { opacity: 1; }
.collage .ph { position: absolute; overflow: hidden; border-radius: 16px; background: #222; }
.collage .ph-img { position: absolute; left: 0; top: 0; right: 0; bottom: 0; background-size: cover; background-position: center; animation: kenburns 18s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.07); } }
.collage .ph-blur { position: absolute; left: -40px; top: -40px; right: -40px; bottom: -40px; background-size: cover; background-position: center; filter: blur(34px) brightness(.7); }
.collage .ph-single { position: absolute; left: 24px; top: 24px; right: 24px; bottom: 24px; display: flex; align-items: center; justify-content: center; }
.collage .ph-single img { max-width: 100%; max-height: 100%; border-radius: 18px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.slideshow .shade { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px; background: linear-gradient(transparent, rgba(0, 0, 0, .65)); pointer-events: none; z-index: 2; }
.slideshow .clock { color: #fff; font-size: 96px; }
.slideshow .cap { font-size: 26px; font-weight: 800; opacity: .9; }
.slideshow .hint { position: absolute; top: 24px; right: 30px; font-weight: 800; opacity: .8; z-index: 2; text-shadow: 0 1px 4px rgba(0, 0, 0, .6); }
.slideshow.noimg { background: linear-gradient(135deg, #e86a3a, #8e5bd6); }

/* ---------- kid day screen ---------- */
.kid { padding: 22px; max-width: 1100px; margin: 0 auto; }
.kid-head { display: grid; grid-template-columns: auto 1fr auto; grid-gap: 16px; gap: 16px; align-items: center; background: var(--cd, var(--c)); color: #fff; border-radius: var(--radius); padding: 18px 22px; margin-bottom: 18px; }
.kid-head .face { font-size: 64px; line-height: 1; }
.kid-head h1 { font-size: 36px; font-weight: 900; }
.kid-head .stars { font-size: 22px; font-weight: 900; }
.kid-head .next { font-size: 15px; font-weight: 700; opacity: .9; }
.kid-grid { display: grid; grid-template-columns: 1fr 1fr; grid-gap: 18px; gap: 18px; }
@media (max-width: 800px) { .kid-grid { grid-template-columns: 1fr; } }
.slots { margin-bottom: 10px; }
.big-check { display: grid; grid-template-columns: 56px 1fr; grid-gap: 14px; gap: 14px; align-items: center; padding: 12px; margin-bottom: 8px; border-radius: 18px; background: var(--soft); font-size: 22px; font-weight: 800; width: 100%; text-align: left; }
.big-check .ico { font-size: 34px; text-align: center; }
.big-check.on { background: #dff5ea; color: #136b48; }
.big-check.on .label { text-decoration: line-through; }
.learn-cta { display: block; width: 100%; padding: 22px; border-radius: var(--radius); background: var(--cd, var(--c)); color: #fff; font-size: 26px; font-weight: 900; text-align: center; box-shadow: var(--shadow); }
.learn-cta small { display: block; font-size: 16px; font-weight: 700; opacity: .9; }
.back { font-size: 18px; font-weight: 900; padding: 10px 18px; border-radius: 999px; background: rgba(255, 255, 255, .25); color: inherit; }
.back.dark { background: var(--soft); color: var(--ink); }
.progress { height: 14px; border-radius: 999px; background: rgba(255, 255, 255, .35); overflow: hidden; margin-top: 6px; }
.progress i { display: block; height: 100%; background: #ffd34d; border-radius: 999px; }

/* ---------- parent (phone-first) ---------- */
.parent { max-width: 720px; margin: 0 auto; padding: 16px 16px 110px; }
.p-head { display: grid; grid-template-columns: 1fr auto; align-items: center; margin: 6px 0 16px; }
.p-head h1 { font-size: 28px; font-weight: 900; }
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); z-index: 20; }
.tabbar a { text-align: center; text-decoration: none; color: var(--muted); font-size: 13px; font-weight: 800; padding: 4px 0; }
.tabbar a .i { display: block; font-size: 24px; height: 34px; }
.tabbar a .i img { width: 34px; height: 34px; opacity: .78; transition: transform .15s; }
.tabbar a.on .i img { opacity: 1; transform: scale(1.14); }
.tabbar a.on { color: var(--accent); }
.tabbar a.scan .i { background: var(--accent); color: #fff; width: 56px; height: 56px; line-height: 56px; border-radius: 50%; margin: -24px auto 2px; box-shadow: var(--shadow); overflow: hidden; border: 3px solid #fff; }
.tabbar a.scan .i img { width: 100%; height: 100%; opacity: 1; display: block; }
.item-row { display: grid; grid-template-columns: 1fr auto; grid-gap: 10px; gap: 10px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.item-row:first-child { border-top: 0; }
.item-row b { display: block; }
.alert { background: #fff; border-left: 6px solid var(--accent-bright); box-shadow: var(--shadow); border-radius: 16px; padding: 12px 14px; font-weight: 700; margin-bottom: 8px; }
.alert.blue { background: #eaf2fd; border-left-color: #3b7dd8; box-shadow: none; }
.drop { border: 3px dashed var(--line); border-radius: var(--radius); padding: 28px 16px; text-align: center; background: #fff; }
.drop .big { font-size: 56px; }
.scan-btns { display: grid; grid-template-columns: 1fr 1fr; grid-gap: 10px; gap: 10px; margin-top: 16px; }
.file-btn { position: relative; overflow: hidden; }
.file-btn input { position: absolute; left: 0; top: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.review { border: 2px solid var(--line); border-radius: 18px; padding: 14px; margin-bottom: 12px; background: #fff; }
.review.off { opacity: .45; }
.review .two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-gap: 10px; gap: 10px; }
.review .field { margin-bottom: 10px; }
.pickers { margin-top: 4px; }
.pickers .chip { cursor: pointer; }
.conf-low { color: var(--bad); font-weight: 800; font-size: 13px; }
.spinner { width: 44px; height: 44px; border: 5px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin 1s linear infinite; margin: 20px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--soft); border-radius: 999px; padding: 4px; margin-bottom: 14px; }
.seg button { padding: 10px 6px; border-radius: 999px; font-weight: 800; font-size: 14px; color: var(--muted); }
.seg button.on { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.bars { display: grid; grid-template-columns: repeat(14, 1fr); grid-gap: 4px; gap: 4px; align-items: end; height: 70px; margin-top: 8px; }
.bars i { display: block; background: var(--good); border-radius: 4px 4px 0 0; min-height: 3px; }
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-gap: 8px; gap: 8px; }
.photo-grid div { padding-top: 100%; background-size: cover; background-position: center; border-radius: 12px; position: relative; }
.photo-grid button { position: absolute; top: 4px; right: 4px; background: rgba(0, 0, 0, .55); color: #fff; border-radius: 50%; width: 28px; height: 28px; }
.quick { display: grid; grid-template-columns: repeat(4, 1fr); grid-gap: 8px; gap: 8px; }
.quick button { background: var(--soft); border-radius: 16px; padding: 12px 4px; font-weight: 800; font-size: 14px; min-height: 76px; }
.quick button .i { display: block; font-size: 28px; }
.menu a { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; padding: 16px 4px; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 800; font-size: 18px; }
.menu a:first-child { border-top: 0; }
.menu a .i { font-size: 24px; }
.menu a .i img { width: 34px; height: 34px; display: block; }
.menu a { grid-template-columns: 48px 1fr auto; }
.color-dot { display: inline-block; width: 34px; height: 34px; border-radius: 50%; margin: 0 6px 6px 0; border: 3px solid transparent; }
.color-dot.on { border-color: var(--ink); }

/* ---------- learning ---------- */
.learn { min-height: 100vh; padding: 20px; max-width: 1000px; margin: 0 auto; font-family: var(--read); }
.learn .top { display: grid; grid-template-columns: auto 1fr auto; grid-gap: 12px; gap: 12px; align-items: center; margin-bottom: 18px; }
.learn .top .title { font-size: 22px; font-weight: 700; text-align: center; }
.learn .star-count { font-weight: 700; font-size: 20px; color: var(--warn); }
.game-menu { display: grid; grid-template-columns: 1fr 1fr; grid-gap: 16px; gap: 16px; }
.game-tile { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; text-align: left; border-top: 8px solid var(--c); }
.game-tile .i { font-size: 44px; }
.game-tile b { display: block; font-size: 26px; margin: 8px 0 2px; font-family: var(--read); }
.game-tile span { color: var(--muted); font-size: 17px; }
.today-plan { background: var(--cd, var(--c)); color: #fff; border-radius: var(--radius); padding: 24px; margin-bottom: 18px; box-shadow: var(--shadow); }
.today-plan h2 { font-size: 28px; margin-bottom: 6px; }
.today-plan .btn { background: #fff; color: var(--ink); font-size: 20px; margin-top: 14px; }
.level-pill { display: inline-block; background: rgba(255, 255, 255, .25); border-radius: 999px; padding: 4px 12px; font-weight: 600; font-size: 15px; margin-right: 6px; }
.stage { background: var(--card); border-radius: 28px; box-shadow: var(--shadow); padding: 28px 22px; text-align: center; min-height: 420px; }
.prompt { font-size: 26px; font-weight: 600; margin-bottom: 18px; }
.hear { display: inline-block; font-size: 22px; font-weight: 700; padding: 18px 28px; border-radius: 999px; background: #eaf2fd; color: #1f5fb8; margin-bottom: 22px; }
.hear .i { font-size: 30px; vertical-align: middle; margin-right: 6px; }
.options { display: grid; grid-template-columns: repeat(2, 1fr); grid-gap: 14px; gap: 14px; max-width: 640px; margin: 0 auto; }
.opt { background: var(--soft); border-radius: 22px; padding: 22px 10px; font-family: var(--read); font-size: 40px; font-weight: 600; letter-spacing: 1px; min-height: 96px; }
.opt.small-text { font-size: 24px; letter-spacing: 0; }
.opt.right { background: #c9f0dc; color: #0f6b43; animation: pop .35s; }
.opt.wrong { background: #fbd5d5; color: #a32828; animation: shake .35s; }
.word-big { font-family: var(--read); font-size: 76px; font-weight: 600; letter-spacing: 3px; margin: 10px 0 18px; }
.chunks { margin: 18px 0; }
.chunk { display: inline-block; font-family: var(--read); font-size: 64px; font-weight: 600; padding: 6px 16px; margin: 4px; border-radius: 18px; background: var(--soft); color: #c9bfb4; transition: all .25s; }
.chunk.lit { color: var(--ink); background: #fff1d6; transform: translateY(-4px); }
.chunk.vowel.lit { background: #ffe0e0; color: #c0392b; }
.chunks.joined .chunk { margin: 4px 0; border-radius: 0; background: #fff1d6; color: var(--ink); }
.chunks.joined .chunk:first-child { border-radius: 18px 0 0 18px; }
.chunks.joined .chunk:last-child { border-radius: 0 18px 18px 0; }
.slots-row { margin: 10px 0 20px; min-height: 92px; }
.slot { display: inline-block; min-width: 76px; height: 86px; line-height: 80px; border-bottom: 5px solid var(--line); margin: 0 6px; font-family: var(--read); font-size: 56px; font-weight: 600; vertical-align: bottom; }
.slot.filled { border-color: var(--c); }
.tiles { max-width: 700px; margin: 0 auto; }
.tile { display: inline-block; min-width: 80px; padding: 14px 18px; margin: 6px; border-radius: 18px; background: #fff1d6; font-family: var(--read); font-size: 42px; font-weight: 600; box-shadow: 0 4px 0 #e8d3a8; }
.tile.vowel { background: #ffe0e0; box-shadow: 0 4px 0 #f0b8b8; }
.tile.used { visibility: hidden; }
.keyboard { max-width: 760px; margin: 10px auto 0; }
.keyboard > div { white-space: nowrap; }
.keyboard button { display: inline-block; width: 64px; height: 64px; margin: 4px; border-radius: 14px; background: var(--soft); font-family: var(--read); font-size: 30px; font-weight: 600; }
.keyboard button.vowel { background: #ffe0e0; }
.keyboard button.wide { width: 130px; font-size: 20px; }
.typed { font-family: var(--read); font-size: 60px; font-weight: 600; letter-spacing: 6px; min-height: 84px; border-bottom: 4px solid var(--line); max-width: 520px; margin: 0 auto 10px; }
.sentence { font-family: var(--read); font-size: 44px; line-height: 1.6; font-weight: 500; margin: 10px 0 20px; }
.sentence .w { display: inline-block; padding: 0 6px; border-radius: 10px; cursor: pointer; }
.sentence .w.hl { background: #fff1d6; }
.feedback { font-size: 28px; font-weight: 700; min-height: 44px; margin-top: 18px; }
.feedback.good { color: var(--good); }
.feedback.bad { color: var(--bad); }
.meter { height: 16px; border-radius: 999px; background: var(--soft); overflow: hidden; margin: 0 auto 18px; max-width: 640px; }
.meter i { display: block; height: 100%; background: var(--c); border-radius: 999px; transition: width .3s; }
.self-check { display: grid; grid-template-columns: 1fr 1fr; grid-gap: 14px; gap: 14px; max-width: 560px; margin: 18px auto 0; }
.self-check button { padding: 18px; border-radius: 20px; font-size: 22px; font-weight: 700; font-family: var(--read); }
.done-screen .big { font-size: 90px; animation: pop .5s; }
.done-screen h2 { font-size: 40px; margin: 10px 0; }
.math-q { font-family: var(--read); font-size: 88px; font-weight: 600; margin: 10px 0; }
.numpad { display: grid; grid-template-columns: repeat(3, 96px); grid-gap: 10px; gap: 10px; justify-content: center; margin-top: 14px; }
.numpad button { height: 80px; border-radius: 18px; background: var(--soft); font-size: 34px; font-weight: 700; font-family: var(--read); }
.no-voice { background: #fff1d6; border-radius: 16px; padding: 12px; font-weight: 700; margin-bottom: 14px; font-family: var(--font); }

/* Big fridge screens: scale everything up a touch */
@media (min-width: 1000px) and (min-height: 1500px) {
  .fridge, .kid { padding: 34px; }
  .clock { font-size: 110px; }
}
@media (max-width: 560px) {
  .clock { font-size: 54px; }
  .fridge { padding: 14px; }
  .word-big { font-size: 56px; }
  .opt { font-size: 32px; }
  .chunk { font-size: 46px; }
  .tile { font-size: 32px; min-width: 60px; }
  .slot { min-width: 54px; font-size: 42px; height: 66px; line-height: 60px; }
  .sentence { font-size: 30px; }
  .keyboard button { width: 31px; height: 50px; margin: 2px; font-size: 20px; border-radius: 9px; }
  .keyboard button.wide { width: 100px; }
  .typed { font-size: 42px; }
  .numpad { grid-template-columns: repeat(3, 80px); }
  .math-q { font-size: 64px; }
}

/* ---------- homework photos + repeating homework ---------- */
.viewer { position: fixed; left: 0; top: 0; right: 0; bottom: 0; background: rgba(20, 16, 12, .94); z-index: 95; text-align: center; padding: 60px 16px 70px; }
.viewer img { max-width: 100%; max-height: 100%; border-radius: 12px; background: #fff; }
.viewer-close { position: absolute; top: 14px; right: 18px; color: #fff; font-weight: 900; font-size: 20px; background: rgba(255, 255, 255, .15); padding: 8px 16px; border-radius: 999px; }
.viewer-cap { position: absolute; left: 0; right: 0; bottom: 18px; color: #fff; font-weight: 800; font-size: 22px; }
.photo-btn { display: inline-block; background: #eaf2fd; color: #1f5fb8; border-radius: 12px; padding: 6px 12px; font-weight: 800; font-size: 15px; white-space: nowrap; }
.kid .photo-btn { font-size: 18px; padding: 10px 14px; }
.repeat-tag { display: inline-block; background: #efe7fb; color: #6a3fb0; border-radius: 8px; padding: 1px 8px; font-size: 12px; font-weight: 800; margin-left: 4px; }
.thumb { width: 44px; height: 44px; border-radius: 10px; background-size: cover; background-position: center; display: inline-block; vertical-align: middle; }

/* floating full-screen button (fridge + tablet) */
.fs-btn { position: fixed; top: 14px; right: 14px; z-index: 60; width: 56px; height: 56px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 28px; font-weight: 900; line-height: 56px; text-align: center; box-shadow: var(--shadow); opacity: .85; }
.fs-btn.on { width: 40px; height: 40px; line-height: 40px; font-size: 18px; opacity: .35; }
.fs-btn[hidden] { display: none; }
.screen-fridge .weather, .screen-learn .learn .top { padding-right: 70px; }
.screen-kid .kid-head { margin-right: 70px; }

/* adaptive difficulty */
.diff-row { text-align: center; margin: -6px 0 12px; }
.diff { display: inline-block; background: var(--soft); border-radius: 999px; padding: 4px 14px; font-weight: 600; font-size: 15px; }
.challenge { display: inline-block; background: #fff1d6; color: #8a5a00; border-radius: 999px; padding: 4px 14px; font-weight: 700; font-size: 15px; margin-left: 8px; animation: pop .35s; }
.typed .blank { color: #cfc6bb; letter-spacing: 10px; }

/* profile pictures */
.ava { display: inline-block; width: 1.5em; height: 1.5em; line-height: 1.5em; border-radius: 50%; text-align: center; color: #5b3f9e; font-family: 'Noto Music', 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', var(--font); }
.person .face .ava { font-size: 34px; }
.kid-head .face { position: relative; background: none; color: inherit; padding: 0; }
.kid-head .face .ava { font-size: 46px; background-color: rgba(255, 255, 255, .9); }
.ava-edit { position: absolute; right: -4px; bottom: -2px; font-size: 18px; background: #fff; border-radius: 50%; width: 30px; height: 30px; line-height: 30px; text-align: center; box-shadow: var(--shadow); }
.picker-layer { position: fixed; left: 0; top: 0; right: 0; bottom: 0; background: rgba(30, 24, 18, .55); z-index: 96; padding: 20px; overflow-y: auto; }
.picker-card { background: var(--card); border-radius: var(--radius); max-width: 620px; margin: 6vh auto 0; padding: 22px; box-shadow: var(--shadow); }
.picker-card h2 { font-size: 24px; font-weight: 900; margin-bottom: 14px; text-align: center; }
.ava-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); grid-gap: 10px; gap: 10px; }
.ava-choice { border-radius: 20px; padding: 10px 0; border: 3px solid transparent; }
.ava-choice.on { border-color: var(--ink); }
.ava-choice .ava { font-size: 34px; width: auto; height: auto; }
.ava-pick { display: block; text-align: left; padding: 4px 0; font-size: 30px; }
.who, .tile, .opt { font-family: inherit; }
.who { font-family: 'Noto Music', 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', var(--font); }

/* grade-level math, vocabulary and reading */
.math-prompt { font-size: 30px; font-weight: 600; line-height: 1.4; margin: 6px auto 12px; max-width: 680px; }
.math-prompt .math-word { font-size: 28px; text-align: left; margin: 0; }
.math-answer { display: inline-block; min-width: 160px; font-size: 54px; font-weight: 700; color: var(--c); border-bottom: 4px solid var(--line); margin-bottom: 6px; }
.emoji-row { font-size: 40px; letter-spacing: 4px; line-height: 1.3; margin-bottom: 8px; word-break: break-all; }
.math-pic { display: block; margin: 0 auto 10px; }
.coins { margin-bottom: 10px; }
.coin { display: inline-block; width: 64px; height: 64px; line-height: 64px; border-radius: 50%; margin: 4px; font-size: 18px; font-weight: 800; color: #3a3026; box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .15); }
.coin.c25 { background: #d9dde3; width: 74px; height: 74px; line-height: 74px; }
.coin.c10 { background: #e3e6ea; width: 54px; height: 54px; line-height: 54px; }
.coin.c5 { background: #cfd4da; }
.coin.c1 { background: #d79a63; width: 56px; height: 56px; line-height: 56px; }
.frac { display: inline-block; vertical-align: middle; text-align: center; margin: 0 4px; line-height: 1.05; }
.frac span { display: block; padding: 0 6px; }
.frac span:first-child { border-bottom: 3px solid currentColor; }
.frac-eq { font-size: 48px; font-weight: 600; }
.small-hear { font-size: 17px; padding: 10px 18px; margin-bottom: 12px; }
.vocab-word { margin-bottom: 6px; }
.vocab-example { font-size: 26px; color: var(--muted); margin-bottom: 18px; }
.vocab-hl { color: var(--ink); background: #fff1d6; border-radius: 6px; padding: 0 4px; }
.vocab-meaning { font-size: 34px; font-weight: 600; margin: 0 auto 20px; max-width: 640px; }
.options.one-col { grid-template-columns: 1fr; max-width: 600px; }
.options.one-col .opt { min-height: 64px; padding: 16px; text-align: left; }
.passage { text-align: left; font-size: 30px; line-height: 1.7; background: #fffdf8; border: 2px solid var(--line); border-radius: 20px; padding: 18px 22px; margin: 0 auto 18px; max-width: 760px; }
.passage h3 { font-size: 26px; margin-bottom: 6px; }
.passage .w { cursor: pointer; border-radius: 6px; }
.passage .w.hl { background: #fff1d6; }
.passage.small { font-size: 20px; line-height: 1.55; max-height: 34vh; overflow-y: auto; }
.passage.small h3 { font-size: 18px; }
.pills .level-pill { margin-bottom: 6px; }
@media (max-width: 560px) {
  .math-prompt, .math-prompt .math-word { font-size: 22px; }
  .passage { font-size: 22px; }
  .vocab-example { font-size: 20px; }
  .vocab-meaning { font-size: 26px; }
  .frac-eq { font-size: 36px; }
}

/* math whiteboard */
.math-tools { margin-bottom: 8px; }
.math-tools .small-hear { margin: 0 8px 8px 0; vertical-align: middle; }
.wb-toggle { vertical-align: middle; margin-bottom: 8px; }
.board-host:empty { display: none; }
.board { margin-top: 14px; border: 3px solid var(--line); border-radius: 20px; background: #fff; overflow: hidden; }
.board-tools { text-align: left; padding: 8px; background: var(--soft); white-space: nowrap; overflow-x: auto; }
.board-tools button { display: inline-block; vertical-align: middle; margin-right: 6px; }
.board-tools .pen { width: 36px; height: 36px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--line); }
.board-tools .pen.on { box-shadow: 0 0 0 3px var(--ink); }
.board-tools .tool { padding: 6px 12px; border-radius: 999px; background: #fff; font-weight: 800; font-size: 15px; min-height: 36px; }
.board-tools .tool.on { background: var(--ink); color: #fff; }
.board-canvas { display: block; width: 100%; height: 320px; touch-action: none; cursor: crosshair;
  background-image: linear-gradient(#eef3fb 1px, transparent 1px); background-size: 100% 40px; }
@media (min-width: 900px) {
  .stage.with-board { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); grid-gap: 22px; gap: 22px; align-items: start; }
  .stage.with-board .board { margin-top: 0; }
  .stage.with-board .board-canvas { height: 470px; }
  .stage.with-board .math-q { font-size: 64px; }
  .stage.with-board .numpad { grid-template-columns: repeat(3, 84px); }
  .stage.with-board .numpad button { height: 70px; }
}
@media (min-width: 900px) and (min-height: 1400px) {
  .stage.with-board .board-canvas { height: 760px; }
}
.ava-img { width: 1.2em; height: 1.2em; vertical-align: -0.25em; }
.ava .ava-img { width: 1.3em; height: 1.3em; vertical-align: middle; margin-top: -0.12em; }
.ava-photo { border-radius: 50%; object-fit: cover; }
.ava .ava-photo { width: 100%; height: 100%; margin: 0; vertical-align: top; }
.who .ava-photo { width: 100%; height: 100%; vertical-align: top; }

/* phones: tighter spacing so games and keyboards fit 320–414px screens */
@media (max-width: 560px) {
  .learn { padding: 12px; }
  .stage { padding: 18px 10px; border-radius: 22px; }
  .keyboard button { width: calc(10% - 4px); margin: 2px; height: 50px; font-size: 20px; }
  .keyboard button.wide { width: calc(30% - 4px); font-size: 16px; }
  .kid, .fridge { padding: 12px; }
  .kid-head { grid-template-columns: auto 1fr; }
  .kid-head .back { grid-column: 1 / -1; justify-self: start; }
  .kid-head h1 { font-size: 28px; }
  .people { grid-template-columns: repeat(3, 1fr); }
  .person .face .ava { font-size: 28px; }
  .person b { font-size: 15px; }
  .weather .temp { font-size: 38px; }
  .weather .temp span { font-size: 30px; }
  .agenda .ev { grid-template-columns: 64px 1fr auto; }
  .ev .time { font-size: 15px; }
  .ev .title { font-size: 17px; }
  .big-check { font-size: 18px; grid-template-columns: 44px 1fr; }
  .big-check .ico { font-size: 28px; }
  .options { grid-gap: 10px; gap: 10px; }
  .opt.small-text { font-size: 19px; }
  .game-tile { padding: 16px; }
  .today-plan { padding: 18px; }
  .today-plan h2 { font-size: 24px; }
  .screen-learn .learn .top, .screen-fridge .weather { padding-right: 56px; }
  .fs-btn { width: 44px; height: 44px; line-height: 44px; font-size: 22px; top: 10px; right: 10px; }
}

/* ---------- welcome, sign-in, pairing, onboarding ---------- */
.welcome { max-width: 480px; margin: 0 auto; padding: 8vh 16px 40px; }
.welcome .card { margin-bottom: 14px; }
.hero { text-align: center; margin-bottom: 20px; }
.hero .logo { font-size: 64px; line-height: 1; }
.hero h1 { font-size: 40px; font-weight: 900; letter-spacing: -1px; margin: 8px 0 4px; }
.hero.small h1 { font-size: 28px; }
.hero.small .logo { font-size: 44px; }
.tagline { color: var(--muted); font-size: 18px; font-weight: 700; margin: 0 0 6px; }
.signin .btn { display: block; position: relative; margin-bottom: 10px; }
.signin .btn svg { position: absolute; left: 18px; top: 50%; margin-top: -10px; }
.btn.google { background: #fff; border: 2px solid var(--line); color: var(--ink); }
.btn.apple { background: #000; color: #fff; }
.or { text-align: center; color: var(--muted); font-weight: 800; font-size: 13px; margin: 6px 0 12px; position: relative; }
.or:before { content: ''; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid var(--line); }
.or span { position: relative; background: var(--card); padding: 0 10px; }
.screen-cta { display: grid; grid-template-columns: 1fr auto; grid-gap: 12px; gap: 12px; align-items: center; }
.screen-cta b { display: block; }
.features { list-style: none; padding: 0; margin: 18px 4px; color: var(--muted); font-weight: 700; }
.features li { padding: 6px 0; }
.legal { text-align: center; color: var(--muted); font-size: 13px; margin-top: 18px; }
.legal a { color: var(--muted); }
.pair-code { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 54px; font-weight: 800; letter-spacing: 6px; margin: 14px 0 8px; color: var(--accent); }
.pair-code span { color: var(--line); margin: 0 2px; }
.steps { margin-top: 10px; }
.steps span { display: inline-block; font-size: 13px; font-weight: 800; color: var(--muted); background: var(--soft); border-radius: 999px; padding: 4px 10px; margin: 2px; }
.steps span.on { background: var(--accent); color: #fff; }
.steps span.done { background: #dff5ea; color: var(--good); }
.kid-row { display: grid; grid-template-columns: 1fr 120px auto; grid-gap: 8px; gap: 8px; margin-bottom: 8px; align-items: center; }
.kid-row input, .kid-row select { padding: 12px; border: 2px solid var(--line); border-radius: 14px; background: #fff; font-size: 16px; min-width: 0; }
.install-card { display: grid; grid-template-columns: 44px 1fr auto; grid-gap: 10px; gap: 10px; align-items: center; width: 100%; text-align: left; background: linear-gradient(135deg, #fff3ea, #fff); border: 2px solid #f6d2bf; border-radius: var(--radius); padding: 12px 14px; margin-bottom: 14px; }
.install-card .i { font-size: 30px; text-align: center; }
.install-card b { display: block; }
.install-card .go { font-size: 24px; color: var(--accent); font-weight: 900; }
.install-help ol { padding-left: 22px; line-height: 1.6; font-weight: 600; }
.share-ico { display: inline-block; border: 2px solid currentColor; border-radius: 6px; padding: 0 4px; font-size: 13px; }
.copy-box { display: grid; grid-template-columns: 1fr auto; grid-gap: 8px; gap: 8px; margin-top: 8px; }
.copy-box input { padding: 10px 12px; border: 2px solid var(--line); border-radius: 12px; font-size: 13px; background: var(--soft); min-width: 0; }
.danger-zone h2 { color: var(--bad); }
.plans { display: grid; grid-template-columns: 1fr 1fr; grid-gap: 14px; gap: 14px; }
@media (max-width: 640px) { .plans { grid-template-columns: 1fr; } }
.plan.current { border: 3px solid var(--accent); }
.plan.plus { background: linear-gradient(160deg, #fff6ee, #fff); }
.plan .price { font-size: 28px; font-weight: 900; margin: -4px 0 6px; }
.plan ul { padding-left: 18px; line-height: 1.7; font-weight: 600; }
.cal-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 8px; vertical-align: middle; }
.cal-pick { background: none; }
.parent .card + .card { margin-top: 16px; }
@media (max-width: 520px) {
  .screen-cta { grid-template-columns: 1fr; }
  .screen-cta .btn { width: 100%; }
  .kid-row { grid-template-columns: 1fr 104px auto; }
}
.add-row input { min-width: 0; width: 100%; }

/* Homora illustrations (Homi & friends) */
.art { display: block; margin: 0 auto; max-width: 100%; height: auto; -webkit-user-drag: none; user-select: none; }
.art.hero-art { width: 100%; max-width: 420px; margin-bottom: 4px; }
.art.md { width: 200px; }
.art.sm { width: 140px; }
.art.xs { width: 96px; }
.hero .art.md { width: 180px; }
.hero.small .art.md { width: 150px; }
.art-empty { text-align: center; }
.art-empty .art { margin-bottom: 6px; }
.slot-art { width: 120px; margin-bottom: 6px; }
.game-tile .tile-art { width: 132px; height: 132px; object-fit: contain; margin: -6px 0 2px; }
.today-plan { position: relative; overflow: hidden; }
.today-plan .plan-art { position: absolute; right: -10px; bottom: -14px; width: 190px; opacity: .95; }
.today-plan > *:not(.plan-art) { position: relative; z-index: 1; max-width: calc(100% - 150px); }
.done-screen .art { width: 220px; }
.art.pop { animation: pop .5s; }
.drop .art { margin-bottom: 6px; }
.login .art { margin-bottom: 4px; }
@media (max-width: 560px) {
  .today-plan .plan-art { width: 130px; opacity: .35; }
  .today-plan > *:not(.plan-art) { max-width: 100%; }
  .game-tile .tile-art { width: 72px; height: 72px; }
}
.game-tile { text-align: center; }
.game-tile .tile-art { margin: -4px auto 4px; }
@media (max-width: 560px) {
  .game-menu { grid-template-columns: 1fr 1fr; grid-gap: 12px; gap: 12px; }
  .game-tile { padding: 14px 10px; }
  .game-tile b { font-size: 17px; }
  .game-tile span { font-size: 13px; }
  .game-tile .tile-art { width: 88px; height: 88px; }
}

/* meals & recipes */
.meal-row { display: grid; grid-template-columns: 58px 1fr auto; grid-gap: 10px; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.meal-row:first-of-type { border-top: 0; }
.meal-day b { display: block; }
.meal-pick { text-align: left; background: var(--soft); border-radius: 14px; padding: 12px; font-weight: 800; font-size: 16px; min-height: 48px; }
.meal-pick.empty { color: var(--muted); border: 2px dashed var(--line); background: #fff; }
.meal-pick .e, .recipe-choice .e, .recipe-line .e { font-size: 24px; margin-right: 8px; vertical-align: middle; }
.recipe-search { width: 100%; padding: 12px; border: 2px solid var(--line); border-radius: 14px; font-size: 16px; margin-bottom: 10px; }
.recipe-list { max-height: 46vh; overflow-y: auto; }
.recipe-choice, .recipe-line { display: grid; grid-template-columns: 44px 1fr; align-items: center; width: 100%; text-align: left; padding: 10px 6px; border-top: 1px solid var(--line); }
.recipe-choice b, .recipe-line b { display: block; }
.recipe-card { position: relative; max-width: 560px; }
.recipe-card .close-x { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; background: var(--soft); font-size: 18px; font-weight: 900; }
.recipe-emoji { font-size: 64px; text-align: center; }
.recipe-card h2 { text-align: center; font-size: 28px; }
.recipe-card h3 { font-size: 18px; margin: 16px 0 6px; }
.ingredients { list-style: none; padding: 0; margin: 0; font-size: 19px; font-weight: 700; }
.ingredients li { padding: 7px 0; border-top: 1px solid var(--line); }
.ingredients .qty { color: var(--accent); min-width: 70px; display: inline-block; }
.steps-list { padding-left: 24px; font-size: 19px; line-height: 1.5; font-weight: 600; }
.steps-list li { margin-bottom: 8px; }
.recipe-line { border-top: 0; padding: 0; }

/* voice add */
.voice-cta { display: grid; grid-template-columns: 64px 1fr; grid-gap: 12px; gap: 12px; align-items: center; width: 100%; text-align: left; background: var(--accent); color: #fff; border-radius: var(--radius); padding: 16px; margin-bottom: 16px; box-shadow: var(--shadow); }
.voice-cta .mic { width: 64px; height: 64px; line-height: 64px; text-align: center; font-size: 32px; background: rgba(255, 255, 255, .25); border-radius: 50%; }
.voice-cta b { display: block; font-size: 22px; }
.voice-cta .muted { color: rgba(255, 255, 255, .9); }
.voice-card { text-align: center; }
.mic-pulse { width: 96px; height: 96px; line-height: 96px; margin: 4px auto 8px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 44px; animation: micpulse 1.4s ease-in-out infinite; }
@keyframes micpulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(232, 106, 58, .45); } 50% { box-shadow: 0 0 0 22px rgba(232, 106, 58, 0); } }
.voice-text { min-height: 72px; background: var(--soft); border-radius: 16px; padding: 14px; font-size: 20px; font-weight: 700; margin: 12px 0 16px; text-align: left; }

/* email inbox */
.inbox-item { padding: 12px 0; border-top: 1px solid var(--line); }
.inbox-item:first-of-type { border-top: 0; }
.inbox-item.dismissed, .inbox-item.saved { opacity: .6; }
.inbox-top { display: grid; grid-template-columns: 1fr auto; grid-gap: 8px; gap: 8px; align-items: start; }
.chip.ok { background: #dff5ea; color: var(--good); }
.chip.bad { background: #fde8e8; color: var(--bad); }
.howto { margin-top: 10px; }
.howto summary { font-weight: 800; cursor: pointer; }
.howto ol { padding-left: 20px; line-height: 1.6; }

/* ---------- big family screens (fridge, wall tablets) ----------
   app.js adds .big-screen and --z (≈1.4 on the 1080×1920 Family Hub) on the fridge,
   kid and learning-menu screens. zoom scales text AND tap targets together. */
.big-screen .fridge, .big-screen .kid, .big-screen .learn.hub { zoom: var(--z); }
.big-screen .fridge { display: flex; flex-direction: column; min-height: var(--fill); }
.big-screen .fridge-grid { flex: 1 0 auto; align-content: start; }
.big-screen .fridge-foot { margin-top: auto; padding-top: 18px; }
.big-screen .learn.hub, .big-screen .kid { min-height: var(--fill); }
.big-screen .person .todo, .big-screen .ev .meta, .big-screen .msg .from, .big-screen .fridge .small { font-size: 16px; }
.big-screen .person .stars { font-size: 17px; }
.big-screen .fridge .card h2 { font-size: 24px; }
.big-screen .ev .title { font-size: 22px; }
.big-screen .list-item { font-size: 20px; padding: 10px 0; }
.big-screen .fridge-foot .btn.small { font-size: 16px; padding: 12px 18px; min-height: 48px; margin-left: 10px; }
.big-screen .game-tile { padding: 28px 18px; }
@media (orientation: portrait) {
  .big-screen .kid-grid { grid-template-columns: 1fr; }
  .big-screen .learn.hub .game-tile { min-height: 300px; }
  .big-screen .learn.hub .game-tile .tile-art { width: 160px; height: 160px; }
  .big-screen .people { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
  .big-screen .person { padding: 18px 8px 14px; }
}

/* ---------- night dim: a soft dark veil over the family screens; a tap lifts it ---------- */
html.night body:after { content: ''; position: fixed; left: 0; top: 0; right: 0; bottom: 0; background: rgba(12, 9, 6, .62); pointer-events: none; z-index: 200; transition: opacity .6s; }

/* careful answering */
.stage.locked .opt { opacity: .5; }
.stage.need-hear .hear { animation: hearpulse 1.2s ease-in-out infinite; }
@keyframes hearpulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(31, 95, 184, .45); } 50% { box-shadow: 0 0 0 14px rgba(31, 95, 184, 0); } }
.first-try { display: inline-block; margin-left: 8px; font-size: .7em; animation: pop .45s; vertical-align: middle; }
.careful-box { background: var(--soft); border-radius: 16px; padding: 12px 14px; margin-top: 12px; }
.careful-box select { width: 100%; padding: 12px; border: 2px solid var(--line); border-radius: 14px; background: #fff; }

/* Homora picture avatars fill their tile in the picker */
.ava-choice.pic { padding: 0; overflow: hidden; }
.ava-choice.pic .ava { display: block; width: 100%; height: auto; line-height: 0; font-size: 0; }
.ava-choice.pic .ava-photo { display: block; width: 100%; height: auto; border-radius: 0; margin: 0; }
