/* Lumo Planner v3 — the 5 looks. Loaded after styles.css. Each look sets palette, type, surfaces, buttons, menu and the living backdrop.
   1 Sunny Clay (default) · 2 Dreamy Pastel · 3 Bright Sticker · 4 Cosy Night (dark) · 5 Fresh Garden */
@font-face { font-family: 'FredokaV'; src: url('fonts/Fredoka.woff2') format('woff2'); font-weight: 300 700; font-display: swap; }
@font-face { font-family: 'Lexend'; src: url('fonts/Lexend.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Baloo 2'; src: url('fonts/Baloo2.woff2') format('woff2'); font-weight: 400 800; font-display: swap; }

/* ---------------------------------------------------------------- look tokens */
:root, [data-look="sunny"] {
  --font-head: 'FredokaV', 'Fredoka', 'Nunito', system-ui, sans-serif; --font: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif; --head-w: 600;
  --bg: #FFF8F0; --surface: #FFFFFF; --surface2: #FFF3E6; --surface3: #FFE9D6; --text: #2B2346; --muted: #5E5379; --line: #F3E5D6; --line-2: #EAD5BF;
  --primary: #2B2346; --on-primary: #FFFFFF; --soft: #FFF0D6; --soft-strong: #FFD9A0; --accent-text: #8A4A0A;
  --card: #FFFFFF; --card-line: transparent;
  --card-sh: 0 14px 30px -14px rgba(190,95,30,.30), 0 2px 0 rgba(255,255,255,.9) inset, 0 -3px 8px rgba(255,170,110,.10) inset;
  --hero-bg: linear-gradient(180deg, #FFFFFF 0%, #FFFBF5 100%);
  --go-bg: linear-gradient(180deg, #FFD978 0%, #FFB627 100%); --go-ink: #2B2346; --go-sh: 0 12px 22px -8px rgba(226,128,10,.6), inset 0 3px 0 rgba(255,255,255,.7), inset 0 -5px 8px rgba(190,95,0,.28); --go-border: 0;
  --soft-bg: #FFF3E6; --soft-ink: #5B3B12; --soft-sh: inset 0 2px 0 #fff, inset 0 -2px 3px rgba(224,99,31,.14);
  --chip-bg: #FFF3E6; --chip-ink: #4A3F6B; --chip-sh: inset 0 2px 0 #fff, inset 0 -2px 3px rgba(224,99,31,.12); --chip-border: 0;
  --chip-on-bg: linear-gradient(180deg, #FFE6A6, #FFC83D); --chip-on-ink: #2B2346; --chip-on-sh: 0 6px 12px -4px rgba(232,149,26,.55), inset 0 2px 0 rgba(255,255,255,.75), inset 0 -3px 4px rgba(200,110,10,.25);
  --add-bg: linear-gradient(180deg, #FF9A7A, #FF6F5B); --add-ink: #fff; --add-sh: 0 6px 12px -4px rgba(217,71,58,.55), inset 0 2px 0 rgba(255,255,255,.5);
  --tick-line: #E4D3C1; --tick-on: linear-gradient(180deg, #7BE3BC, #2FB985); --done: #1F9E70;
  --nav-bg: rgba(255,255,255,.96); --nav-sh: 0 18px 34px -14px rgba(160,80,20,.38), inset 0 2px 0 #fff, inset 0 -3px 6px rgba(255,160,90,.12); --nav-border: 0;
  --nav-ink: #6B5F86; --nav-on-ink: #2B2346; --nav-pill: #FFF0D6; --nav-pill-sh: inset 0 2px 0 #fff, inset 0 -2px 4px rgba(224,99,31,.15);
  --tile-sh: 0 14px 28px -16px rgba(190,95,30,.35), inset 0 2px 0 #fff;
  --ring-a: #FF7466; --ring-b: #FFC83D; --say-bg: #FFF6EC; --pill-ok: #D3F7E8; --pill-ok-ink: #14724F;
  --sky-ink: #2B2346; --sky-sub: #5E3F2A;
  --e-low: #2FB985; --e-med: #F5B300; --e-high: #FF6F5B;
  --frost: none;
}
[data-look="pastel"] {
  --font-head: 'Lexend', system-ui, sans-serif; --font: 'Lexend', system-ui, sans-serif; --head-w: 500;
  --bg: #F8F5FF; --surface: #FFFFFF; --surface2: #F3F0FB; --surface3: #EAE4FA; --text: #1E2A4A; --muted: #4A5578; --line: #ECE8F7; --line-2: #DCD4F2;
  --primary: #4B4BD8; --on-primary: #FFFFFF; --soft: #EEE8FF; --soft-strong: #CBBDFF; --accent-text: #4B3FB0;
  --card: rgba(255,255,255,.94); --card-line: rgba(255,255,255,.8);
  --card-sh: 0 20px 40px -22px rgba(90,70,190,.35), 0 0 0 1px rgba(255,255,255,.7) inset;
  --hero-bg: linear-gradient(180deg, rgba(255,255,255,.95), rgba(250,247,255,.9));
  --go-bg: linear-gradient(110deg, #5B4BDB 0%, #4A62E0 55%, #3F6BD8 100%); --go-ink: #fff; --go-sh: 0 14px 26px -10px rgba(74,80,224,.7), inset 0 1px 0 rgba(255,255,255,.35); --go-border: 0;
  --soft-bg: #F1ECFF; --soft-ink: #3B3290; --soft-sh: 0 0 0 1px rgba(255,255,255,.8) inset;
  --chip-bg: #F3F0FB; --chip-ink: #4A5578; --chip-sh: none; --chip-border: 0;
  --chip-on-bg: #fff; --chip-on-ink: #1E2A4A; --chip-on-sh: 0 0 0 2px #9C88FF, 0 6px 14px -6px rgba(122,97,238,.55);
  --add-bg: linear-gradient(135deg, #8E7BFF, #5B4BDB); --add-ink: #fff; --add-sh: 0 6px 14px -5px rgba(91,75,219,.6);
  --tick-line: #CFC6EC; --tick-on: linear-gradient(135deg, #8FE3C4, #33AE88); --done: #1F8A69;
  --nav-bg: rgba(255,255,255,.97); --nav-sh: 0 22px 40px -18px rgba(90,70,190,.42), 0 0 0 1px rgba(255,255,255,.8) inset; --nav-border: 0;
  --nav-ink: #5A6489; --nav-on-ink: #1E2A4A; --nav-pill: linear-gradient(180deg, #F1ECFF, #E5DDFF); --nav-pill-sh: none;
  --tile-sh: 0 18px 34px -22px rgba(90,70,190,.45), 0 0 0 1px rgba(255,255,255,.8) inset;
  --ring-a: #8E7BFF; --ring-b: #FF9CC8; --say-bg: #F4F0FF; --pill-ok: #E6F8F0; --pill-ok-ink: #1F7A5C;
  --sky-ink: #1E2A4A; --sky-sub: #3E4870;
  --e-low: #33AE88; --e-med: #E6A93A; --e-high: #E2605A;
  --frost: none;
}
[data-look="sticker"] {
  --font-head: 'Baloo 2', 'Nunito', system-ui, sans-serif; --font: 'Nunito', system-ui, sans-serif; --head-w: 800;
  --bg: #FFF4CC; --surface: #FFFFFF; --surface2: #FFF6D9; --surface3: #FFEDB3; --text: #1D1B4C; --muted: #46437A; --line: #EFE7CC; --line-2: #1D1B4C;
  --primary: #1D1B4C; --on-primary: #FFFFFF; --soft: #FFF6D9; --soft-strong: #FFD43B; --accent-text: #1D1B4C;
  --card: #FFFFFF; --card-line: #1D1B4C;
  --card-sh: 0 10px 22px -10px rgba(29,27,76,.45);
  --hero-bg: #FFFFFF;
  --go-bg: #D92A7B; --go-ink: #fff; --go-sh: 0 7px 0 -1px #1D1B4C; --go-border: 2.5px solid #1D1B4C;
  --soft-bg: #FFF6D9; --soft-ink: #1D1B4C; --soft-sh: 0 4px 0 -1px #1D1B4C;
  --chip-bg: #FFF6D9; --chip-ink: #1D1B4C; --chip-sh: none; --chip-border: 2px solid #1D1B4C;
  --chip-on-bg: #2D5FE0; --chip-on-ink: #fff; --chip-on-sh: 0 3px 0 0 #1D1B4C;
  --add-bg: #2ED3A0; --add-ink: #1D1B4C; --add-sh: 0 3px 0 0 #1D1B4C;
  --tick-line: #1D1B4C; --tick-on: #2ED3A0; --done: #0B6B4D;
  --nav-bg: #1D1B4C; --nav-sh: 0 14px 26px -10px rgba(29,27,76,.6); --nav-border: 3px solid #fff;
  --nav-ink: #D6D3F7; --nav-on-ink: #FFD43B; --nav-pill: #35327A; --nav-pill-sh: none;
  --tile-sh: 0 6px 0 -1px #1D1B4C;
  --ring-a: #FF4FA0; --ring-b: #FFD43B; --say-bg: #FFF6D9; --pill-ok: #C4F5E3; --pill-ok-ink: #0B6B4D;
  --sky-ink: #1D1B4C; --sky-sub: #2E2B66;
  --e-low: #12A57A; --e-med: #F5A800; --e-high: #D63328;
  --frost: none;
}
[data-look="night"] {
  color-scheme: dark;
  --font-head: 'FredokaV', 'Fredoka', 'Nunito', system-ui, sans-serif; --font: 'Nunito', system-ui, sans-serif; --head-w: 600;
  --bg: #141236; --surface: #221D52; --surface2: #2B2563; --surface3: #352E74; --text: #F7F3FF; --muted: #C9C2EC; --line: #3A3380; --line-2: #4A4294;
  --primary: #FFD66B; --on-primary: #1C1838; --soft: #2F2868; --soft-strong: #5A4FB0; --accent-text: #FFE7A3;
  --card: rgba(38,32,90,.95); --card-line: rgba(187,164,255,.18);
  --card-sh: 0 20px 40px -20px rgba(0,0,0,.6), 0 0 0 1px rgba(187,164,255,.14) inset, 0 1px 0 rgba(255,255,255,.06) inset;
  --hero-bg: linear-gradient(180deg, rgba(48,40,110,.92), rgba(36,30,86,.92));
  --go-bg: linear-gradient(180deg, #FFE28E 0%, #FFC94A 100%); --go-ink: #1C1838; --go-sh: 0 0 28px -4px rgba(255,214,107,.55), inset 0 2px 0 rgba(255,255,255,.6), inset 0 -4px 7px rgba(190,120,0,.3); --go-border: 0;
  --soft-bg: #322B70; --soft-ink: #F1ECFF; --soft-sh: 0 0 0 1px rgba(187,164,255,.2) inset;
  --chip-bg: #2E2866; --chip-ink: #E4DEFF; --chip-sh: 0 0 0 1px rgba(187,164,255,.16) inset; --chip-border: 0;
  --chip-on-bg: linear-gradient(180deg, #FFE28E, #FFC94A); --chip-on-ink: #1C1838; --chip-on-sh: 0 0 16px -3px rgba(255,214,107,.6);
  --add-bg: linear-gradient(180deg, #FFE28E, #FFC94A); --add-ink: #1C1838; --add-sh: 0 0 18px -4px rgba(255,214,107,.6);
  --tick-line: #6A5FC0; --tick-on: linear-gradient(180deg, #8AF0CC, #2BB58A); --done: #62E0B6;
  --nav-bg: rgba(34,29,82,.97); --nav-sh: 0 18px 40px -14px rgba(0,0,0,.7), 0 0 0 1px rgba(187,164,255,.18) inset; --nav-border: 0;
  --nav-ink: #BDB4E8; --nav-on-ink: #FFE7A3; --nav-pill: rgba(187,164,255,.2); --nav-pill-sh: 0 0 0 1px rgba(187,164,255,.25) inset;
  --tile-sh: 0 18px 34px -18px rgba(0,0,0,.7), 0 0 0 1px rgba(187,164,255,.16) inset;
  --ring-a: #BBA4FF; --ring-b: #FFD66B; --say-bg: rgba(187,164,255,.14); --pill-ok: rgba(98,224,182,.18); --pill-ok-ink: #9DF2D3;
  --sky-ink: #F7F3FF; --sky-sub: #DCD5FF;
  --e-low: #62E0B6; --e-med: #FFD66B; --e-high: #FF8F82;
  --low: #1F4A40; --low-t: #BDF5DE; --med: #4A3F1F; --med-t: #FFE7A3; --high: #4F2633; --high-t: #FFC9C2; --warn: #4F2633; --warn-t: #FFC9C2; --ok: #1F4A40; --ok-t: #BDF5DE;
  --frost: none;
}
[data-look="garden"] {
  --font-head: 'FredokaV', 'Fredoka', 'Nunito', system-ui, sans-serif; --font: 'Nunito', system-ui, sans-serif; --head-w: 600;
  --bg: #F6FAF2; --surface: #FFFFFF; --surface2: #EEF7EA; --surface3: #E1F0DA; --text: #1F3A33; --muted: #45625A; --line: #E1EEDB; --line-2: #C9E0C1;
  --primary: #1F3A33; --on-primary: #fff; --soft: #E3F5E4; --soft-strong: #A9DDB0; --accent-text: #22593A;
  --card: #FFFFFF; --card-line: transparent;
  --card-sh: 0 14px 30px -14px rgba(40,120,80,.28), 0 2px 0 rgba(255,255,255,.9) inset, 0 -3px 8px rgba(90,203,147,.10) inset;
  --hero-bg: linear-gradient(180deg, #FFFFFF 0%, #F8FDF5 100%);
  --go-bg: linear-gradient(180deg, #7FDDA8 0%, #3FB97A 100%); --go-ink: #0F2E22; --go-sh: 0 12px 22px -8px rgba(40,150,90,.55), inset 0 3px 0 rgba(255,255,255,.6), inset 0 -5px 8px rgba(20,110,60,.25); --go-border: 0;
  --soft-bg: #EAF7E6; --soft-ink: #1F4A33; --soft-sh: inset 0 2px 0 #fff, inset 0 -2px 3px rgba(40,150,90,.14);
  --chip-bg: #EEF7EA; --chip-ink: #2F4F45; --chip-sh: inset 0 2px 0 #fff, inset 0 -2px 3px rgba(40,150,90,.12); --chip-border: 0;
  --chip-on-bg: linear-gradient(180deg, #FFF1B0, #FFD45C); --chip-on-ink: #1F3A33; --chip-on-sh: 0 6px 12px -4px rgba(229,169,46,.5), inset 0 2px 0 rgba(255,255,255,.75), inset 0 -3px 4px rgba(190,130,10,.22);
  --add-bg: linear-gradient(180deg, #FFAEC9, #F77FB0); --add-ink: #fff; --add-sh: 0 6px 12px -4px rgba(208,78,135,.5), inset 0 2px 0 rgba(255,255,255,.5);
  --tick-line: #C9E0C1; --tick-on: linear-gradient(180deg, #7FDDA8, #3FB97A); --done: #2E9A66;
  --nav-bg: rgba(255,255,255,.96); --nav-sh: 0 18px 34px -14px rgba(40,120,80,.35), inset 0 2px 0 #fff; --nav-border: 0;
  --nav-ink: #557067; --nav-on-ink: #1F3A33; --nav-pill: #E3F5E4; --nav-pill-sh: inset 0 2px 0 #fff, inset 0 -2px 4px rgba(40,150,90,.15);
  --tile-sh: 0 14px 28px -16px rgba(40,120,80,.32), inset 0 2px 0 #fff;
  --ring-a: #5ACB93; --ring-b: #FFD45C; --say-bg: #F0F9EC; --pill-ok: #DDF5CC; --pill-ok-ink: #2B6B1A;
  --sky-ink: #1F3A33; --sky-sub: #2F5247;
  --e-low: #2E9A66; --e-med: #E5A92E; --e-high: #DC5C4E;
  --frost: none;
}
/* section tints stay gentle and follow the look */
[data-look="night"] body[data-section] { --tint: rgba(187,164,255,.16); --tint-strong: #BBA4FF; --tint-ink: #FFE7A3; }
[data-look="sticker"] body[data-section] { --tint: #FFF6D9; --tint-strong: #FFD43B; --tint-ink: #1D1B4C; }

/* ---------------------------------------------------------------- backdrop */
body { background: var(--bg); }
#backdrop { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: var(--bg); contain: strict; }
#backdrop .bd-svg { position: absolute; left: 50%; top: 0; width: max(100%, 520px); height: 100%; transform: translateX(-50%); }
@media (min-width: 900px) { #backdrop .bd-svg { width: 100%; } }
/* living backdrop: one still picture + small moving pieces, each on its own GPU layer (transform/opacity only) */
.bd-live { overflow: hidden; }
.bd-stage { position: absolute; left: 0; top: 0; width: 100%; aspect-ratio: 390 / 844; }
.bd-base { position: absolute; inset: 0; width: 100%; height: 100%; display: block; user-select: none; }
.bd-d { position: absolute; display: block; will-change: transform, opacity; pointer-events: none; }
.bd-d svg { display: block; width: 100%; height: 100%; overflow: visible; }
.bd-still { display: block; object-fit: cover; object-position: 50% 0; }
.bd-drift.d1 { animation: bd-drift 46s ease-in-out infinite alternate; } .bd-drift.d2 { animation: bd-drift 34s ease-in-out infinite alternate-reverse; }
@keyframes bd-drift { from { transform: translateX(-12px); } to { transform: translateX(22px); } }
.bd-float.f1 { animation: bd-float 26s ease-in-out infinite alternate; } .bd-float.f2 { animation: bd-float 32s ease-in-out infinite alternate-reverse; } .bd-float.f3 { animation: bd-float 22s ease-in-out infinite alternate; }
@keyframes bd-float { from { transform: translate(-10px, 6px) scale(1); } to { transform: translate(14px, -10px) scale(1.04); } }
.bd-breathe { transform-origin: 50% 30%; will-change: transform; animation: bd-breathe 30s ease-in-out infinite alternate; }
@keyframes bd-breathe { from { transform: scale(1.02) translate(-4px, 3px); } to { transform: scale(1.07) translate(6px, -6px); } }
.bd-star { animation: bd-twinkle 4.2s ease-in-out infinite; } .bd-star.s1 { animation-delay: 1.1s; } .bd-star.s2 { animation-delay: 2.2s; } .bd-star.s3 { animation-delay: 3.1s; animation-duration: 5.4s; }
.bd-tw { animation: bd-twinkle 4.8s ease-in-out infinite; } .bd-tw.t2 { animation-delay: 1.6s; } .bd-tw.t3 { animation-delay: 3s; }
@keyframes bd-twinkle { 0%, 100% { opacity: .95; } 50% { opacity: .3; } }
.bd-wiggle.w1 { animation: bd-wiggle 5s ease-in-out infinite; } .bd-wiggle.w2 { animation: bd-wiggle 6.5s ease-in-out infinite reverse; }
@keyframes bd-wiggle { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg) translateY(-3px); } }
.bd-bob { animation: bd-bob 4s ease-in-out infinite; } .bd-bob.b2 { animation-delay: 1.5s; }
@keyframes bd-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.bd-fall { animation: bd-fall 22s linear infinite; } .bd-fall.l1 { animation-delay: -4s; animation-duration: 26s; } .bd-fall.l2 { animation-delay: -9s; } .bd-fall.l3 { animation-delay: -14s; animation-duration: 28s; } .bd-fall.l4 { animation-delay: -18s; animation-duration: 24s; } .bd-fall.l5 { animation-delay: -2s; animation-duration: 30s; }
@keyframes bd-fall { 0% { transform: translate(0, 0) rotate(0deg); opacity: 0; } 8% { opacity: .9; } 50% { transform: translate(26px, 430px) rotate(160deg); } 92% { opacity: .9; } 100% { transform: translate(-10px, 880px) rotate(320deg); opacity: 0; } }
/* low-power phones: fewer moving pieces; hidden tab: everything rests */
html.lite .lite-hide { display: none; }
html.lite .bd-breathe, html.lite .bd-float { animation: none; }
html.paused .bd-svg *, html.paused .lumo * { animation-play-state: paused !important; }

/* ---------------------------------------------------------------- type */
body { font-family: var(--font); color: var(--text); }
h1, h2, h3, .hero-title, .card-title, .tile-name, .pick-title, .big-time, .safe-num, .stat b, .tw-screen h2 { font-family: var(--font-head); font-weight: var(--head-w); }
[data-look="sticker"] h1 { letter-spacing: -.01em; line-height: 1; }
[data-look="pastel"] h1, [data-look="pastel"] h2 { letter-spacing: -.03em; }
[data-look="pastel"] body { font-weight: 400; }
.page-head h1 { font-size: 2.35rem; }
.page-head p.muted { color: var(--muted); font-weight: 650; }

/* ---------------------------------------------------------------- surfaces */
.card { background: var(--card); box-shadow: var(--card-sh); border: 1.5px solid var(--card-line); border-radius: 28px; -webkit-backdrop-filter: var(--frost); backdrop-filter: var(--frost); }
[data-look="sticker"] .card { border-width: 2.5px; }
.card-title { display: flex; align-items: center; gap: 10px; font-size: 1.18rem; }
.card-title .art { flex: none; margin: -6px 0 -6px -4px; }
.count { background: var(--soft-bg); color: var(--soft-ink); }
.hint, .muted { color: var(--muted); }

/* ---------------------------------------------------------------- buttons, chips, fields */
.btn.primary { background: var(--go-bg); color: var(--go-ink); box-shadow: var(--go-sh); border: var(--go-border); }
.btn.primary:hover { filter: brightness(1.04); background: var(--go-bg); }
.btn.primary .ic { color: var(--go-ink); }
.btn.soft { background: var(--soft-bg); color: var(--soft-ink); box-shadow: var(--soft-sh); }
[data-look="sticker"] .btn.soft { border: 2px solid #1D1B4C; }
.btn.soft:hover { background: var(--soft-bg); filter: brightness(.98); }
.btn.ghost { color: var(--text); }
[data-look="sticker"] .btn.primary, [data-look="sticker"] .btn.soft { transition: transform .12s, box-shadow .12s; }
[data-look="sticker"] .btn.primary:active { transform: translateY(4px); box-shadow: 0 2px 0 -1px #1D1B4C; }
.chip { background: var(--chip-bg); color: var(--chip-ink); box-shadow: var(--chip-sh); border: var(--chip-border); font-weight: 800; }
[data-look="pastel"] .chip { font-weight: 500; }
.chip[aria-checked="true"], .chip[aria-pressed="true"], [data-mode="dark"] .chip[aria-checked="true"], [data-mode="dark"] .chip[aria-pressed="true"] { background: var(--chip-on-bg); color: var(--chip-on-ink); box-shadow: var(--chip-on-sh); border: var(--chip-border); }
.icon-btn.filled { background: var(--add-bg); color: var(--add-ink); box-shadow: var(--add-sh); }
[data-look="sticker"] .icon-btn.filled { border: 2.5px solid #1D1B4C; }
input:not([type="checkbox"]):not([type="range"]):not([type="file"]), select, textarea { background: var(--surface2); color: var(--text); border-color: transparent; }
[data-look="sticker"] input:not([type="checkbox"]):not([type="range"]):not([type="file"]), [data-look="sticker"] select, [data-look="sticker"] textarea { border: 2px solid #1D1B4C; background: #fff; }
[data-look="night"] input::placeholder, [data-look="night"] textarea::placeholder { color: #A9A1D6; }
.quick { background: var(--card); box-shadow: var(--card-sh); border: 1.5px solid var(--card-line); border-radius: 28px; -webkit-backdrop-filter: var(--frost); backdrop-filter: var(--frost); }
[data-look="sticker"] .quick { border-width: 2.5px; }
.quick input { background: transparent !important; border: 0 !important; }
.toggle input:checked + .track { background: var(--done); }
.tick-svg circle { stroke: var(--tick-line); }
.tick[aria-pressed="true"] .tick-svg circle, .tick.on .tick-svg circle, .task.completing .tick-svg circle { fill: var(--done); stroke: var(--done); }
.edot { background: var(--e-med); } .e-low .edot { background: var(--e-low); } .e-high .edot { background: var(--e-high); }
.done-count { background: color-mix(in srgb, var(--card) 85%, transparent); color: var(--pill-ok-ink); }
.pill { background: var(--soft-bg); color: var(--soft-ink); }

/* ---------------------------------------------------------------- navigation */
.nav { background: var(--nav-bg); box-shadow: var(--nav-sh); border: var(--nav-border); border-radius: 34px; height: 82px; }
:root { --nav-h: 82px; }
.nav-pill { background: var(--nav-pill) !important; box-shadow: var(--nav-pill-sh); border-radius: 24px; }
.nav-item { color: var(--nav-ink); font-size: .74rem; gap: 1px; }
.nav-item.on { color: var(--nav-on-ink); }
.nav-item .art { width: 40px; height: 40px; transition: transform 320ms var(--spring), filter 240ms var(--ease); }
.nav-item:not(.on) .art { filter: saturate(.45) opacity(.82); transform: scale(.9); }
[data-look="sticker"] .nav-item:not(.on) .art { filter: saturate(.8) opacity(.9); }
[data-look="night"] .nav-item:not(.on) .art { filter: saturate(.5) opacity(.7); }
.nav-item.on .art { transform: translateY(-1px) scale(1.04); }
.nav-item:active .art { transform: scale(.86); }
@media (min-width: 900px) {
  .nav { height: auto; border-radius: 30px; }
  .nav .brand .lumo { flex: none; }
  .nav-item { flex-direction: row; justify-content: flex-start; gap: 12px; padding: 6px 14px; font-size: 1rem; min-height: 56px; }
  .nav-item .art { width: 38px; height: 38px; }
}

/* ---------------------------------------------------------------- Now: greeting + Lumo */
.sky { -webkit-mask-image: none; mask-image: none; min-height: 210px; padding-bottom: 56px; color: var(--sky-ink); overflow: visible; }
.sky .sky-art { display: none; }
.sky-text { max-width: calc(100% - 150px); }
.sky h1 { font-size: 2.3rem; line-height: 1.02; letter-spacing: -.02em; }
[data-look="sticker"] .sky h1 { font-size: 2.45rem; }
.sky-date { color: var(--sky-sub); opacity: 1; }
.sky-sub { color: var(--sky-sub); opacity: 1; font-weight: 650; }
.sky-lumo { position: absolute; right: 2px; top: calc(env(safe-area-inset-top) + 2px); z-index: 2; }
.sky-kind { margin-top: 6px; display: inline-block; max-width: 30ch; padding: 8px 12px; border-radius: 16px 16px 16px 4px; background: color-mix(in srgb, var(--card) 82%, transparent); box-shadow: 0 8px 18px -12px rgba(0,0,0,.35); font-weight: 700; font-size: .9rem; color: var(--text); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
[data-look="sticker"] .sky-kind { border: 2px solid #1D1B4C; background: #fff; }
.sky + .card { margin-top: -36px; }
.hero { background: var(--hero-bg); padding-top: 18px; }
.hero-title { font-size: 1.7rem; }
.lumo-say .say { background: var(--say-bg); color: var(--text); }
.pick-btns .btn.primary { min-height: 58px; font-size: 1.15rem; border-radius: 30px; }
.pick-title { color: var(--text); }

/* ---------------------------------------------------------------- Life tiles */
.tile { background: var(--card); box-shadow: var(--tile-sh); border: 1.5px solid var(--card-line); border-radius: 26px; -webkit-backdrop-filter: var(--frost); backdrop-filter: var(--frost); overflow: hidden; }
[data-look="sticker"] .tile { border-width: 2.5px; }
.tile::after { opacity: .5; }
.tile .tool-ic, .sub-head .tool-ic { background: none !important; box-shadow: none !important; width: auto; height: auto; }
.tile .tool-ic .art { width: 58px; height: 58px; margin: -6px 0 -2px -6px; }
.sub-head .tool-ic .art { width: 52px; height: 52px; }
.tile-name { font-size: 1.15rem; color: var(--text); }
.tile-stat { color: var(--muted); font-weight: 700; }
.tile:active .art { transform: scale(.92); }

/* ---------------------------------------------------------------- mood faces, focus ring */
.face .art { width: 46px; height: 46px; }
.face[aria-checked="true"] { background: var(--soft-bg); box-shadow: 0 0 0 2.5px var(--ring-a); }
.fr-track { stroke: color-mix(in srgb, var(--line) 80%, transparent); }
.buddy .lumo { flex: none; }

/* ---------------------------------------------------------------- Lumo character */
.lumo { overflow: visible; display: block; }
.lumo .lu-all, .lumo .lu-sun, .lumo .lu-rays, .lumo .lu-arm, .lumo .lu-eyes, .lumo .lu-cloud, .lumo .lu-zz path, .lumo .sp, .lumo .lu-heart, .lumo .lu-aura, .lumo .lu-book { transform-box: view-box; }
.lumo .lu-all { transform-origin: 110px 200px; }
.lumo .lu-rays { transform-origin: 110px 76px; }
.lumo .lu-eyes { transform-origin: 110px 76px; }
.lumo .lu-aura { transform-origin: 110px 76px; }
.lumo .lu-arm-r { transform-origin: 138px 112px; }
.lumo .lu-arm-l { transform-origin: 82px 112px; }
.lumo .lu-cloud { transform-origin: 110px 176px; }
.lumo.anim .lu-all { animation: lu-bob 4.6s ease-in-out infinite; }
.lumo.anim .lu-rays { animation: lu-spin 60s linear infinite; }
.lumo.anim .lu-eyes { animation: lu-blink 5.2s ease-in-out infinite; }
.lumo.anim .lu-aura { animation: lu-glow 4.6s ease-in-out infinite; }
.lumo.anim.lu-wave .lu-arm-r { animation: lu-wave 2.4s ease-in-out infinite; transform-origin: 170px 70px; }
.lumo.anim.lu-jump .lu-all { animation: lu-jump 1.1s cubic-bezier(.3,.7,.4,1) infinite; }
.lumo.anim.lu-cheer .lu-all { animation: lu-hop 1.4s ease-in-out infinite; }
.lumo.anim.lu-cheer .lu-arm-l { animation: lu-arm-l 1.4s ease-in-out infinite; }
.lumo.anim.lu-cheer .lu-arm-r { animation: lu-arm-r 1.4s ease-in-out infinite; }
.lumo.anim .sp { transform-box: fill-box; transform-origin: center; animation: lu-twinkle 1.6s ease-in-out infinite; }
.lumo.anim .sp.s1 { animation-delay: .4s; } .lumo.anim .sp.s2 { animation-delay: .8s; } .lumo.anim .sp.s3 { animation-delay: 1.1s; } .lumo.anim .sp.s4 { animation-delay: .2s; }
.lumo.anim.lu-sleepy .lu-all { animation: lu-bob 6.5s ease-in-out infinite; }
.lumo.anim.lu-sleepy .lu-rays { animation: lu-spin 120s linear infinite; opacity: .8; }
.lumo.anim .lu-zz path { transform-box: fill-box; transform-origin: center; animation: lu-zz 3.2s ease-in-out infinite; }
.lumo.anim .lu-zz .z2 { animation-delay: 1.4s; }
.lumo.anim.lu-focus .lu-all { animation: lu-bob 7s ease-in-out infinite; }
.lumo.anim.lu-focus .lu-head { transform-box: view-box; transform-origin: 110px 120px; animation: lu-nod 7s ease-in-out infinite; }
.lumo.anim.lu-hug .lu-cloud { animation: lu-squeeze 2.8s ease-in-out infinite; }
.lumo.anim.lu-hug .lu-heart { transform-box: fill-box; transform-origin: center; animation: lu-heart 2.8s ease-in-out infinite; }
.lumo.anim.lu-sunrise .lu-sun { animation: lu-rise 2.6s cubic-bezier(.2,.8,.2,1) both; }
.lumo.anim.lu-sunrise .lu-rays > g { transform-box: view-box; transform-origin: 110px 76px; animation: lu-rays-in 2.6s cubic-bezier(.2,.8,.2,1) both; }
@keyframes lu-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes lu-spin { to { transform: rotate(360deg); } }
@keyframes lu-blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
@keyframes lu-glow { 0%, 100% { opacity: .8; transform: scale(1); } 50% { opacity: 1; transform: scale(1.06); } }
@keyframes lu-wave { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-18deg); } 40% { transform: rotate(12deg); } 60% { transform: rotate(-14deg); } 80% { transform: rotate(6deg); } }
@keyframes lu-jump { 0%, 100% { transform: translateY(0) scale(1, 1); } 12% { transform: translateY(2px) scale(1.06, .94); } 45% { transform: translateY(-22px) scale(.97, 1.03); } 70% { transform: translateY(0) scale(1.04, .96); } 85% { transform: translateY(-3px) scale(1, 1); } }
@keyframes lu-hop { 0%, 100% { transform: translateY(0) rotate(0); } 25% { transform: translateY(-10px) rotate(-3deg); } 50% { transform: translateY(0) rotate(0); } 75% { transform: translateY(-10px) rotate(3deg); } }
@keyframes lu-arm-l { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-14deg) translateY(-4px); } }
@keyframes lu-arm-r { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(14deg) translateY(-4px); } }
@keyframes lu-twinkle { 0%, 100% { opacity: 1; transform: scale(1) rotate(0); } 50% { opacity: .35; transform: scale(.6) rotate(25deg); } }
@keyframes lu-zz { 0% { opacity: 0; transform: translate(0, 6px) scale(.7); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(10px, -14px) scale(1.1); } }
@keyframes lu-nod { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-3deg) translateY(1px); } 60% { transform: rotate(2deg); } }
@keyframes lu-squeeze { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(.96, 1.03); } }
@keyframes lu-heart { 0% { opacity: 0; transform: translateY(14px) scale(.6); } 25% { opacity: 1; transform: translateY(0) scale(1.1); } 70% { opacity: 1; transform: translateY(-8px) scale(1); } 100% { opacity: 0; transform: translateY(-18px) scale(.9); } }
@keyframes lu-rise { from { transform: translateY(70px); } to { transform: translateY(0); } }
@keyframes lu-rays-in { from { transform: scale(.55) rotate(-40deg); opacity: 0; } to { transform: scale(1) rotate(0); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .lumo *, .bd-svg * { animation: none !important; } }
.calm .lumo *, .calm .bd-svg * { animation: none !important; }

/* ---------------------------------------------------------------- Lumo moments (celebrations, comfort) */
.moment { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 24px; background: color-mix(in srgb, var(--bg) 46%, rgba(20,14,40,.42)); opacity: 0; transition: opacity 220ms var(--ease); }
.moment.open { opacity: 1; }
.moment-card { width: min(360px, 100%); text-align: center; background: var(--card); border: 1.5px solid var(--card-line); border-radius: 34px; box-shadow: var(--card-sh), 0 30px 60px -30px rgba(0,0,0,.45); padding: 22px 22px 20px; transform: translateY(16px) scale(.96); transition: transform 380ms var(--spring); }
[data-look="sticker"] .moment-card { border: 3px solid #1D1B4C; box-shadow: 0 10px 0 -2px #1D1B4C; }
.moment.open .moment-card { transform: none; }
.moment-card .lumo, .moment-card .moment-sticker { margin: -64px auto 4px; }
.moment-sticker { width: 132px; height: 132px; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--ring-b) 40%, transparent), transparent 70%); animation: m-pop 700ms var(--spring) both; }
.moment-sticker .art { width: 112px; height: 112px; }
@keyframes m-pop { from { transform: scale(.3) rotate(-30deg); opacity: 0; } to { transform: none; opacity: 1; } }
.moment-card h2 { font-size: 1.55rem; margin: 4px 0 6px; }
.moment-card p { color: var(--muted); font-weight: 650; margin-bottom: 16px; }
.moment-card .btn { width: 100%; }

/* toast with a jumping Lumo */
.toast .lumo { flex: none; margin: -14px -2px -10px -6px; }
.toast { gap: 10px; }

/* ---------------------------------------------------------------- sticker book */
.sticker-head { display: flex; align-items: center; gap: 12px; }
.sticker-meter { height: 10px; border-radius: 99px; background: var(--surface2); overflow: hidden; margin: 8px 0 4px; }
.sticker-meter i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--ring-a), var(--ring-b)); }
.sticker-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 12px; }
.sticker { aspect-ratio: 1; display: grid; place-items: center; border-radius: 22px; background: var(--surface2); position: relative; }
[data-look="sticker"] .sticker { border: 2px dashed #1D1B4C; background: #FFFBEA; }
.sticker .art { width: 76%; height: 76%; }
.sticker.locked .art { filter: grayscale(1) opacity(.22); }
[data-look="night"] .sticker.locked .art { filter: grayscale(1) opacity(.3) brightness(1.6); }
.sticker.got { background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--ring-b) 28%, var(--surface)) , var(--surface2)); }
.sticker.got .art { animation: st-in 600ms var(--spring) both; }
@keyframes st-in { from { transform: scale(.6) rotate(-12deg); } to { transform: none; } }
.sticker-cap { font-size: .8rem; color: var(--muted); font-weight: 700; }

/* ---------------------------------------------------------------- look picker (welcome + Me) */
.looks { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.tour-card .looks { grid-template-columns: repeat(2, 1fr); gap: 10px; }
.look-card { position: relative; display: grid; gap: 6px; padding: 8px 8px 10px; border-radius: 24px; border: 2px solid transparent; background: var(--surface2); text-align: left; transition: transform var(--t) var(--ease), border-color var(--t); }
.look-card:active { transform: scale(.97); }
.look-card[aria-checked="true"] { border-color: var(--ring-a); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ring-a) 22%, transparent); }
.look-card .lc-screen { position: relative; height: 112px; border-radius: 18px; overflow: hidden; isolation: isolate; }
.tour-card .look-card .lc-screen { height: 92px; }
.look-card .lc-screen .bd-svg { position: absolute; inset: 0; width: 100%; height: 300%; }
.look-card .lc-lumo { position: absolute; right: 2px; top: 4px; }
.look-card .lc-icons { position: absolute; left: 6px; bottom: 6px; right: 6px; display: flex; gap: 2px; padding: 4px 6px; border-radius: 14px; justify-content: space-between; }
.look-card .lc-icons .art { width: 24px; height: 24px; }
.look-card .lc-name { font-weight: 800; font-size: .95rem; line-height: 1.15; padding: 0 4px; color: var(--text); }
.look-card .lc-sub { font-size: .78rem; color: var(--muted); font-weight: 650; padding: 0 4px; }
.look-card .lc-check { position: absolute; top: 12px; left: 12px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--done); color: #fff; opacity: 0; transform: scale(.6); transition: all var(--t) var(--spring); }
.look-card[aria-checked="true"] .lc-check { opacity: 1; transform: none; }
.look-card .lc-check .ic { width: 16px; height: 16px; stroke-width: 3; }
.lc-sunny .lc-icons { background: rgba(255,255,255,.95); } .lc-pastel .lc-icons { background: rgba(255,255,255,.92); }
.lc-sticker .lc-icons { background: #1D1B4C; border: 2px solid #fff; } .lc-night .lc-icons { background: rgba(34,29,82,.92); } .lc-garden .lc-icons { background: rgba(255,255,255,.95); }

/* ---------------------------------------------------------------- welcome tour */
.tour-sky { background: var(--bg); }
.tour-sky .bd-svg { position: absolute; left: 50%; top: 0; height: 100%; width: max(100%, 520px); transform: translateX(-50%); }
.tour-card { background: var(--card); border: 1.5px solid var(--card-line); box-shadow: var(--card-sh), 0 30px 60px -30px rgba(0,0,0,.3); -webkit-backdrop-filter: var(--frost); backdrop-filter: var(--frost); }
[data-look="sticker"] .tour-card { border: 3px solid #1D1B4C; }
.tw-art .lumo { margin: 0 auto; }

/* ---------------------------------------------------------------- empty states */
.empty-state .lumo { margin: 0 auto; }
.empty-state p { color: var(--muted); font-weight: 650; }

/* night: keep text readable on glass */
[data-look="night"] .sky { color: #F7F3FF; }
[data-look="night"] .toast { background: #F7F3FF; color: #1C1838; }
[data-look="night"] .moment { background: rgba(8,6,24,.5); }

/* ---------------------------------------------------------------- v3 polish pass 1 */
.sky { min-height: 0; padding: calc(env(safe-area-inset-top) + 26px) 20px 50px; }
.sky-text { max-width: calc(100% - 138px); gap: 2px; }
.sky h1 { font-size: 2rem; line-height: 1.04; }
[data-look="sticker"] .sky h1 { font-size: 2.15rem; }
.sky-date { font-size: .92rem; margin-top: 4px; }
.sky-kind { margin: 6px 0 8px; padding: 0; background: none; box-shadow: none; border-radius: 0; -webkit-backdrop-filter: none; backdrop-filter: none; font-size: .98rem; font-weight: 700; line-height: 1.35; color: var(--sky-sub); max-width: 24ch; }
[data-look="sticker"] .sky-kind { border: 0; background: none; }
.sky-lumo { right: -4px; top: calc(env(safe-area-inset-top) + 6px); }
.sky-lumo .lumo { width: 140px; height: auto; }
.hero-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.hero-top .hero-title { margin: 0; }
.hero-say { font-size: .82rem; font-weight: 700; color: var(--muted); text-align: right; line-height: 1.3; max-width: 17ch; }
.hero .field { margin-top: 12px; }
.hero .field > span { font-size: .86rem; margin-bottom: 8px; }
.hero .chips { flex-wrap: nowrap; gap: 8px; }
.hero .chip { min-height: 42px; padding: 0 13px; font-size: .92rem; white-space: nowrap; }
.hero .pick-btns { margin-top: 16px; }
@media (max-width: 380px) { .hero .chip { padding: 0 10px; font-size: .86rem; } }
.nav-item:not(.on) .art { filter: saturate(.62) opacity(.9); }
.hero-top { display: grid; gap: 2px; align-items: start; justify-content: stretch; }
.hero-say { text-align: left; max-width: none; font-size: .9rem; }

/* Calm mode: same look, quieter. No movement, softer colour on chips and buttons. */
html.calm .bd-svg { filter: saturate(.7); }
html.calm .chip[aria-checked="true"], html.calm .chip[aria-pressed="true"] { box-shadow: none; }
html.calm .btn.primary { box-shadow: none; }
html.calm .moment { -webkit-backdrop-filter: none; backdrop-filter: none; }
.hero .chips { flex-wrap: wrap; row-gap: 8px; }
[data-look="sticker"] .hero .chip { padding: 0 11px; }
html[lang="de"] .hero .chip { padding: 0 11px; }
/* welcome: never taller than the screen; the look step stays compact so all 5 cards and the buttons fit */
.tour-sky { pointer-events: none; }
.tour-card { max-height: calc(100dvh - 8px); }
.tour-card:has(.tw-screen.s3) { overflow-y: auto; overscroll-behavior: contain; }
.tw-screen.s3 { padding-top: 22px; gap: 8px; }
.tw-screen.s3 h2 { font-size: 1.65rem; }
.tw-screen.s3 p { font-size: .95rem; }
.tour-card .looks { width: 100%; margin-top: 6px; }
.tour-card .look-card { padding: 6px 6px 8px; gap: 4px; }
.tour-card .look-card .lc-screen { height: 74px; }
.tour-card .look-card .lc-lumo .lumo { width: 50px; height: auto; }
.tour-card .look-card .lc-icons .art { width: 20px; height: 20px; }
.tour-card .look-card .lc-sub { display: none; }
.tour-card .look-card .lc-name { font-size: .9rem; }
.tour-card .look-card .lc-check { top: 10px; left: 10px; width: 22px; height: 22px; }
.tw-foot { position: sticky; bottom: 0; background: var(--card); padding-top: 12px; margin-top: 12px; }
[data-look="pastel"] .tw-foot, [data-look="night"] .tw-foot { background: transparent; }

/* ---------------------------------------------------------------- v3.1 polish */
/* Cosy Night: the moon sits clear of titles on every screen; on Now, Lumo is the light in the sky, so the moon rests */
.bd-moon { transition: opacity 400ms var(--ease); }
body[data-section="now"] .bd-moon { opacity: 0; }
/* What now?: the four time choices always share one row, in every look and language */
.hero .chips:has(> [data-chip="time"]) { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.hero .chips:has(> [data-chip="time"]) .chip { justify-content: center; padding: 0 4px; min-width: 0; white-space: nowrap; }
@media (max-width: 360px) { .hero .chips:has(> [data-chip="time"]) .chip { font-size: .84rem; } }
/* welcome, screen 1: Lumo stands in the sky, and three short promises fill the card */
.tw-art.tw-hero { margin-top: -158px; }
.tw-perks { list-style: none; margin: 16px auto 6px; padding: 0; display: grid; gap: 8px; text-align: left; width: min(100%, 340px); }
.tw-perks li { display: flex; align-items: center; gap: 12px; padding: 8px 14px 8px 10px; border-radius: 18px; background: var(--surface2); color: var(--text); font-weight: 750; font-size: .95rem; line-height: 1.25; }
.tw-perks .art { width: 34px; height: 34px; flex: none; }
[data-look="sticker"] .tw-perks li { border: 2px solid #1D1B4C; background: #fff; }
[data-look="night"] .tw-perks li { background: rgba(255,255,255,.07); }
@media (max-height: 700px) { .tw-perks { gap: 6px; margin-top: 10px; } .tw-perks li { padding: 6px 12px 6px 8px; font-size: .88rem; } .tw-art.tw-hero { margin-top: -120px; } .tw-art.tw-hero .lumo { width: 170px; height: auto; } }
/* calmer line breaks; Dreamy Pastel's wider letters get a touch more room */
.sky h1, .sky-kind, .hero-say { text-wrap: balance; }
[data-look="pastel"] .sky-kind { max-width: 30ch; font-size: .94rem; letter-spacing: -.012em; }
[data-look="pastel"] .hero-say { font-size: .86rem; letter-spacing: -.01em; }
/* look cards: the five little icons always fit inside the card */
.look-card .lc-icons .art { flex: 0 1 24px; min-width: 0; height: auto; aspect-ratio: 1; }

/* ---------------------------------------------------------------- v3.2 private sync */
.btn.wide { width: 100%; justify-content: center; }
.tiny { font-size: .82rem; }
.sync-card .btn.wide { margin-top: 10px; }
.sync-status { display: flex; align-items: center; gap: 10px; margin: 10px 0 2px; padding: 10px 12px; border-radius: 16px; background: var(--surface2); font-weight: 750; font-size: .92rem; color: var(--text); }
.sync-status span { flex: 1; }
.sync-status .btn.sm { min-height: 36px; padding: 4px 12px; }
.sync-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; background: #A6A2B8; }
[data-tone="ok"] > .sync-dot, .nav-sync[data-tone="ok"] { background: #2FB67A; }
[data-tone="busy"] > .sync-dot, .nav-sync[data-tone="busy"] { background: #4B9BEA; animation: pulse 1.4s ease-in-out infinite; }
[data-tone="wait"] > .sync-dot, .nav-sync[data-tone="wait"] { background: #E8A93A; }
[data-tone="bad"] > .sync-dot, .nav-sync[data-tone="bad"] { background: var(--coral, #FF7A66); }
.nav-sync { position: absolute; top: 6px; right: calc(50% - 22px); width: 9px; height: 9px; border-radius: 50%; box-shadow: 0 0 0 2.5px var(--surface); }
@media (min-width: 900px) { .nav-sync { top: 50%; right: 16px; transform: translateY(-50%); } }
.sync-sheet { display: grid; gap: 14px; }
.sync-hero { display: grid; justify-items: center; gap: 4px; text-align: center; margin-top: -6px; }
.sync-hero.small { grid-template-columns: auto 1fr; justify-items: start; text-align: left; align-items: center; gap: 10px; }
.sync-lead { font-family: var(--head-font, inherit); font-weight: 800; font-size: 1.22rem; line-height: 1.25; color: var(--text); max-width: 26ch; }
.sync-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sync-points li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 18px; background: var(--surface2); font-weight: 650; line-height: 1.35; }
.sync-err { margin: 0; padding: 10px 12px; border-radius: 14px; background: #FFE5DF; color: #8A2A17; font-weight: 750; }
[data-look="night"] .sync-err { background: rgba(255,122,102,.18); color: #FFD9D1; }
.sync-note { margin: 0; padding: 10px 12px; border-radius: 14px; background: var(--surface2); font-weight: 650; }
.key-code { display: grid; grid-template-columns: repeat(5, auto); justify-content: center; gap: 6px 8px; padding: 14px 10px; border-radius: 18px; background: var(--surface2); border: 2px dashed var(--line-2); font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 800; font-size: 1.02rem; letter-spacing: .04em; color: var(--text); user-select: all; -webkit-user-select: all; }
.key-code span { padding: 4px 6px; border-radius: 8px; background: var(--surface); }
.key-code span:first-child { color: var(--muted); }
@media (max-width: 360px) { .key-code { grid-template-columns: repeat(4, auto); font-size: .95rem; } }
.sync-actions { gap: 8px; }
.sync-actions.center { justify-content: center; }
.sync-confirm { margin-top: 2px; }
.qr-box { justify-self: center; padding: 12px; border-radius: 24px; background: #fff; box-shadow: 0 12px 26px -16px rgba(31,42,68,.45); line-height: 0; }
.qr-box svg { width: 232px; height: 232px; max-width: 64vw; max-height: 64vw; }
.sync-input { width: 100%; font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 700; font-size: 1rem; min-height: 64px; resize: vertical; }
.scan-box { position: relative; border-radius: 22px; overflow: hidden; background: #000; aspect-ratio: 1; max-height: 52vh; }
.scan-box video { width: 100%; height: 100%; object-fit: cover; display: block; }
.scan-frame { position: absolute; inset: 18%; border: 3px solid rgba(255,255,255,.9); border-radius: 22px; box-shadow: 0 0 0 100vmax rgba(0,0,0,.28); }
.list-btn .lb-ico { display: flex; align-items: center; gap: 12px; }
.sync-sheet:focus { outline: none; }
.list-btn.danger b { color: var(--warn-t, #B3361F); }
.tw-link { margin: 14px auto 0; display: block; border: 0; background: none; padding: 8px 10px; min-height: 44px; font: inherit; font-weight: 800; font-size: .95rem; color: var(--tint-ink, var(--text)); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---------------------------------------------------------------- v3.2 greeting: kind line uses the full width under Lumo */
.sky-text { max-width: none; }
.sky h1, .sky-date { max-width: calc(100% - 138px); }
.sky-kind { max-width: min(34ch, calc(100% - 70px)); }
/* night: the Me header text stops before the moon */
[data-look="night"] .me-head > div { max-width: calc(100% - 92px); }
.sync-lead, .sync-sheet .wiz-title { text-wrap: balance; }
.sync-sheet .btn-stack .btn { text-align: left; }
.sync-sheet .btn-stack .btn.primary { justify-content: center; }
.key-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.key-acts .btn { justify-content: center; text-align: center; }
.key-acts [data-s="print"] { grid-column: 1 / -1; justify-self: center; }
.sync-status span { line-height: 1.25; }
