/* btw… brand layer (App Brand Spec v1, October 2026).
   Logo, type and shapes apply in every look; colors marked html[data-look="btw"] are the default look only. */

:root{--font-logo:'Urbanist',sans-serif;--font-display:'Young Serif',Georgia,serif;--font-ui:'DM Sans',system-ui,sans-serif;
  --radius-card:20px;--radius-photo:24px;--radius-bubble:18px 18px 18px 6px;--radius-reply:18px 18px 6px 18px;
  --dot-blue:#0a60a2;--dot-coral:#e56330;--dot-gold:#ebc35f;--dot-blue-dark:#6fb3ea;--dot-coral-dark:#f08a5d}
/* Young Serif has one weight: never fake a bold or an italic. */
html{font-synthesis:none}
.intro h1 em,.kids-top h1 em,.fb-head h1 em,.kc-top h1 em{font-style:normal}

/* ---------- logo ---------- */
.brand{display:flex!important;align-items:center;text-decoration:none;color:var(--ink)}
.btw-logo{display:inline-flex;flex-direction:column;gap:5px}
.btw-word{font-family:var(--font-logo);font-weight:900;font-size:40px;letter-spacing:-.055em;line-height:.82;color:var(--ink);white-space:nowrap}
.btw-dots{display:inline-flex;gap:.09em;margin-left:.07em;vertical-align:baseline}
.btw-dots i{display:inline-block;width:.15em;height:.15em;border-radius:50%;background:var(--dot-blue)}
.btw-dots i:nth-child(2){background:var(--dot-coral)}.btw-dots i:nth-child(3){background:var(--dot-gold)}
.btw-tag{font-family:var(--font-logo);font-weight:600;font-size:12px;color:var(--muted);padding-left:3px;letter-spacing:0}
aside .brand{margin:0 0 6px 6px}
.crumb-logo{display:none;text-decoration:none}
.crumb-logo .btw-word{font-size:26px}
@media(max-width:1150px){aside .btw-word{font-size:34px}}
@media(max-width:760px){
  aside .brand{display:none!important}
  .breadcrumb .crumb-home,.breadcrumb .crumb-sep,.breadcrumb #crumb{display:none}
  .crumb-logo{display:inline-block}
}
@media(min-width:761px){.breadcrumb .crumb-home{display:inline}}
/* three-dot loading / "typing" indicator */
.btw-typing{display:inline-flex;gap:6px;align-items:center}
.btw-typing i{width:9px;height:9px;border-radius:50%;background:var(--dot-blue);animation:btwPulse 1.2s infinite}
.btw-typing i:nth-child(2){background:var(--dot-coral);animation-delay:.3s}.btw-typing i:nth-child(3){background:var(--dot-gold);animation-delay:.6s}
@keyframes btwPulse{0%,60%,100%{transform:scale(.7);opacity:.45}30%{transform:scale(1);opacity:1}}
@media(prefers-reduced-motion:reduce){.btw-typing i{animation:none}}

/* ---------- shapes (all looks) ---------- */
.card{border-radius:var(--radius-card);box-shadow:none}
.primary,.outline{border-radius:999px;min-height:44px;font-weight:700;padding:11px 20px}
.top-actions .primary{min-height:0}
.tabs button,.cal-views button{border-radius:999px}
dialog{border-radius:24px}
input,select,textarea{border-radius:12px}
.photo-board,.photo-board>img{border-radius:var(--radius-photo)}

/* ---------- btw… colors (default look) ---------- */
html[data-look="btw"] body{background:var(--bg);color:var(--ink)}
html[data-look="btw"] aside{background:#ffffff;border-right:1px solid var(--line)}
html[data-look="btw"] nav button{color:#4a4f57;border-radius:999px}
html[data-look="btw"] nav button:hover{background:#fbf7f0}
html[data-look="btw"] nav button.active{background:var(--primary);color:#fff;box-shadow:none}
html[data-look="btw"] .nav-group,html[data-look="btw"] .family-tag{color:#1e7b79}
html[data-look="btw"] .card{background:#fff;border:1px solid var(--line)}
html[data-look="btw"] .outline{background:#fff;color:var(--ink);border:1.5px solid #d9cdb8}
html[data-look="btw"] .outline:hover{border-color:var(--primary);color:var(--primary)}
html[data-look="btw"] .outline.chosen{background:var(--teal-tint);border-color:var(--teal);color:#155e5c}
html[data-look="btw"] .textbtn{color:var(--primary);font-weight:600}
html[data-look="btw"] .eyebrow{color:var(--teal-text);font-weight:700;letter-spacing:.14em}
html[data-look="btw"] .tabs button{background:#f3ebdd;color:var(--ink)}
html[data-look="btw"] .tabs button.active{background:var(--primary);color:#fff}
html[data-look="btw"] .task-row.done .check,html[data-look="btw"] .todo-row.done .check{background:var(--teal);border-color:var(--teal);color:#fff}
html[data-look="btw"] .check{border-color:#d9cdb8}
html[data-look="btw"] .count{background:var(--sky);color:var(--navy)}
html[data-look="btw"] .person.selected,html[data-look="btw"] .person[aria-pressed="true"]{background:#fff;border-color:#d9cdb8;color:var(--ink)}
html[data-look="btw"] .person{color:#4a4f57}
html[data-look="btw"] dialog{border-color:var(--line)}
html[data-look="btw"] input:not([type=checkbox]):not([type=radio]),html[data-look="btw"] select,html[data-look="btw"] textarea{background:#fbf7f0;border-color:#e4d8c4}
html[data-look="btw"] :focus-visible{outline:3px solid #6fb3ea;outline-offset:2px}
html[data-look="btw"] .breadcrumb b{color:var(--ink)}
html[data-look="btw"] .dinner{background:var(--coral-tint);border-color:#f3cdb9}
html[data-look="btw"] .dinner .eyebrow,html[data-look="btw"] .dinner .textbtn{color:#8c3413}
html[data-look="btw"] .tchip.repeat,html[data-look="btw"] .todo-repeat{background:var(--teal-tint);color:#155e5c}
html[data-look="btw"] .tchip.high{background:var(--coral-tint);color:#8c3413}
html[data-look="btw"] .tchip.remind{background:var(--sky);color:var(--navy)}
html[data-look="btw"] .tchip.due{background:var(--gold-tint);color:#6e5310}
@media(max-width:760px){
  html[data-look="btw"] aside{background:#ffffffee;border-top:1px solid var(--line)}
  html[data-look="btw"] nav button.active{background:transparent;color:var(--primary);font-weight:700}
  html[data-look="btw"] nav button{color:#5b6068;border-radius:0}
}

/* ---------- today's faith moment: the passage in a btw bubble over a time-of-day scene ---------- */
.btw-moment{position:relative;border-radius:var(--radius-photo);overflow:hidden;min-height:260px;display:flex;flex-direction:column;justify-content:flex-end;gap:12px;padding:26px;isolation:isolate;border:0!important;background:var(--scene-bg)}
.btw-scene{position:absolute;inset:0;z-index:-1;overflow:hidden}
.btw-scene i{position:absolute;display:block;border-radius:58% 42% 55% 45%/48% 60% 40% 52%}
.btw-bubble{align-self:flex-start;max-width:min(640px,92%);background:#fff;color:var(--ink);border-radius:var(--radius-bubble);padding:16px 20px 14px;display:flex;flex-direction:column;gap:6px;box-shadow:0 14px 30px -18px rgba(46,50,56,.45)}
.btw-bubble-label{font-size:11.5px;font-weight:700;color:#c24e22;letter-spacing:.01em}
.btw-passage{margin:0;font-family:var(--font-display);font-size:19px;line-height:1.5;color:var(--ink)}
.btw-bubble-sub{font-size:12.5px;color:var(--muted)}
.btw-bubble-sub b{color:var(--ink);font-weight:700}
.btw-moment-actions{display:flex;gap:10px;flex-wrap:wrap}
.btw-moment-actions .open-faith{background:#fff;color:var(--primary);border-radius:999px;padding:10px 18px;font-weight:700;font-size:13px;min-height:44px;display:inline-flex;align-items:center;gap:6px;border:0;cursor:pointer}
/* morning: linen, a gold sun rising, warm soft shapes */
.scene-morning{--scene-bg:#f3e3c3}
.scene-morning .s1{width:190px;height:190px;border-radius:50%!important;background:#ebc35f;right:7%;top:-40px}
.scene-morning .s2{width:340px;height:200px;background:#fbe1d5;left:-80px;bottom:-110px}
.scene-morning .s3{width:260px;height:150px;background:#fbf7f0;right:-60px;bottom:-60px}
.scene-morning .s4{width:46px;height:44px;background:#e56330;right:34%;top:34px}
.scene-morning .s5{width:22px;height:22px;border-radius:50%!important;background:#0a60a2;right:4%;top:150px}
/* midday: sky, clouds, a teal hill */
.scene-midday{--scene-bg:#d4e8f8}
.scene-midday .s1{width:240px;height:110px;background:#fff;right:6%;top:26px}
.scene-midday .s2{width:150px;height:72px;background:#fff;right:28%;top:-20px;opacity:.85}
.scene-midday .s3{width:420px;height:210px;background:#d7eeec;right:-120px;bottom:-120px}
.scene-midday .s4{width:84px;height:84px;border-radius:50%!important;background:#ebc35f;right:3%;top:-24px}
.scene-midday .s5{width:30px;height:28px;background:#e56330;left:46%;bottom:22px}
/* evening: coral tint, a low sun, long warm shapes */
.scene-evening{--scene-bg:#fbe1d5}
.scene-evening .s1{width:230px;height:230px;border-radius:50%!important;background:#e56330;right:8%;bottom:-120px}
.scene-evening .s2{width:380px;height:150px;background:#f7ecc7;right:-90px;top:-50px}
.scene-evening .s3{width:300px;height:130px;background:#f3e3c3;left:-90px;bottom:-80px}
.scene-evening .s4{width:40px;height:38px;background:#ebc35f;right:36%;top:30px}
.scene-evening .s5{width:20px;height:20px;border-radius:50%!important;background:#0f3554;right:5%;top:40px}
/* night: navy, a crescent moon, gold and sky stars */
.scene-night{--scene-bg:#0f3554}
.scene-night .s1{width:120px;height:120px;border-radius:50%!important;background:#f7ecc7;right:9%;top:28px;box-shadow:-34px -6px 0 0 #0f3554 inset}
.scene-night .s2{width:420px;height:200px;background:#154670;right:-120px;bottom:-120px}
.scene-night .s3{width:10px;height:10px;border-radius:50%!important;background:#ebc35f;right:32%;top:40px;box-shadow:120px 70px 0 -1px #6fb3ea,-60px 110px 0 -2px #ebc35f,200px 150px 0 -2px #f08a5d,-180px 20px 0 -2px #6fb3ea}
.scene-night .s4{width:240px;height:110px;background:#0a4876;left:-70px;bottom:-70px}
.scene-night .s5{width:8px;height:8px;border-radius:50%!important;background:#fff;right:4%;top:170px;opacity:.8}
@media(max-width:760px){.btw-moment{min-height:300px;padding:18px}.btw-bubble{max-width:100%}.btw-passage{font-size:17px}}

/* passage reference sits inside the reading box */
.reading-ref-in{display:flex;align-items:center;gap:8px;font:700 13px var(--font-ui);color:var(--ink);margin:4px 0 6px}
.reading-ref-in svg{width:18px;height:18px}

/* ---------- Kids' Board: Urbanist numbers, small corner wordmark ---------- */
.kc-kid-count,.kc-goal-text b,.kids-clock,.kc-ev-time,.ring-num,.star-balance{font-family:var(--font-logo);font-weight:900;letter-spacing:-.02em}
.kc-corner-logo{position:absolute;right:22px;bottom:14px;opacity:.9}
.kc-corner-logo .btw-word{font-size:22px}
.kids-board{position:relative}
/* fixes: breadcrumb spans and button colors */
.breadcrumb .crumb-home{margin:0}
.breadcrumb .crumb-logo span{margin:0;color:inherit}
@media(max-width:760px){.breadcrumb .crumb-logo .btw-word{display:inline-block!important;color:var(--ink)}.breadcrumb .crumb-logo .btw-dots{display:inline-flex!important}.breadcrumb .crumb-logo .btw-dots i{display:inline-block}}

/* no left-border accent cards (brand rule): readings and events use soft fills */
html[data-look="btw"] .scripture-reading{border-left:0;border-radius:16px;background:#fbf7f0;border:1px solid var(--line)}
html[data-look="btw"] .scripture-reading p{color:var(--ink);font-family:var(--font-display);font-size:18px}
html[data-look="btw"] .scripture-reading sup{color:var(--muted)}
html[data-look="btw"] .reading-reference{background:var(--sky);color:var(--navy);border-radius:999px;padding:10px 16px;font-size:12px;font-weight:600}
html[data-look="btw"] .cal-event{border-left:0;border-radius:12px}
html[data-look="btw"] .cal-agenda-event{border-left:0;border-radius:16px}
html[data-look="btw"] .cal-account{border-left:0}
html[data-look="btw"] .kids-board{background:#fbf7f0}
/* readable small text in the default look */
html[data-look="btw"] .breadcrumb,html[data-look="btw"] .breadcrumb .crumb-home,html[data-look="btw"] .breadcrumb .crumb-sep{color:#5b6068}
html[data-look="btw"] .demo-dot,html[data-look="btw"] .local-note,html[data-look="btw"] .memory-storage-note,html[data-look="btw"] .info{color:#5b6068}
html[data-look="btw"] .sectionhead .count,html[data-look="btw"] .count{background:var(--sky);color:var(--navy)}
html[data-look="btw"] .star-balance,html[data-look="btw"] .picture-stars{color:#8a6a12}
html[data-look="btw"] .notice{color:#c24e22}
html[data-look="btw"] .picture-stars{color:#6e5310}
html[data-look="btw"] .meal-day .eyebrow,html[data-look="btw"] .eyebrow{color:#1a6e6c}
html[data-look="btw"] .dinner p{color:#6b2a10}
html .btw-moment.card{background:var(--scene-bg)!important}
/* ---------- live app: sign-in and setup screens ---------- */
#btwGate{display:none}
html.btw-gate #btwGate{display:grid;position:fixed;inset:0;z-index:1000;place-items:center;padding:24px 16px;overflow-y:auto;background:#0f3554}
html.btw-gate body{overflow:hidden}
#btwGate::before{content:'';position:fixed;width:420px;height:380px;right:-140px;top:-140px;background:#154670;border-radius:58% 42% 55% 45%/48% 60% 40% 52%}
.gate-card{position:relative;width:min(440px,100%);background:#fff;color:var(--ink);border-radius:24px;padding:32px 28px;display:flex;flex-direction:column;gap:14px;font-family:var(--font-ui)}
.gate-logo{margin-bottom:6px}.gate-logo .btw-word{font-size:52px}
.gate-card h1{font:400 30px var(--font-display);margin:4px 0 0}
.gate-lead{margin:0;color:#4a4f57;font-size:15px;line-height:1.5}
.gate-card form{display:flex;flex-direction:column;gap:12px}
.gate-card label{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:600}
.gate-card input:not([type=radio]):not([type=checkbox]){font:inherit;font-size:16px;padding:12px 14px;border:1.5px solid #e4d8c4;border-radius:12px;background:#fbf7f0}
.gate-card .primary{width:100%;min-height:48px;font-size:15px}
.gate-card .textbtn{color:var(--primary);font-weight:600;font-size:13px;align-self:flex-start;padding:6px 0;background:none;border:0;cursor:pointer}
.gate-note{margin:0;font-size:13px;color:#5b6068;line-height:1.5}
.gate-note[role=alert]{color:#8c3413;background:#fbe1d5;border-radius:10px;padding:8px 12px}
.gate-start{border:0;padding:0;margin:0;display:grid;gap:8px}.gate-start legend{font-size:13px;font-weight:600;margin-bottom:6px}
.gate-start .approval-toggle{flex-direction:row;font-weight:400;align-items:flex-start;gap:10px;line-height:1.45}
.gate-loading{display:flex;flex-direction:column;align-items:center;gap:12px;padding:20px 0}.gate-loading p{margin:0;color:#5b6068}
.invite-form{display:flex;flex-direction:column;gap:10px;margin-top:14px;border-top:1px solid var(--line);padding-top:14px}
.invite-form h3{margin:0;font:700 15px var(--font-ui)}
.demo-dot.offline{color:#8c3413}
.gate-code summary{cursor:pointer;font-size:13px;color:var(--primary);font-weight:600}.gate-code form{margin-top:10px}
@media(max-width:760px){aside{height:calc(74px + env(safe-area-inset-bottom))!important}main{padding-bottom:calc(96px + env(safe-area-inset-bottom))}}
.btw-signout-side{margin-top:4px}
.btw-signout-side svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.more-account{margin-top:18px;padding-top:14px;border-top:1px solid var(--line);display:grid;gap:10px;font-size:13px;color:var(--muted)}
.more-account span{overflow-wrap:anywhere}
/* events from connected calendars */
.ext-event h2{font:400 26px var(--font-display);margin:6px 0}
.ext-when{font-weight:600;margin:0 0 6px}.ext-where{margin:0 0 6px;color:var(--muted)}
.ext-who{display:flex;align-items:center;gap:8px;margin:8px 0}
.ext-dot{width:10px;height:10px;border-radius:50%}
.cal-status.ok{background:var(--teal-tint,#d7eeec);color:#155e5c}
html[data-look] .cal-status.ok,.cal-status.ok{background:#d7eeec;color:#155e5c}html[data-look] .cal-status.needs,.cal-status.needs{background:#fbe1d5;color:#8c3413}
/* counts next to headings: small, in the reading font */
h2 .count,.album-head h2 .count{font:700 12px var(--font-ui);letter-spacing:0;padding:4px 10px;border-radius:999px;vertical-align:middle;margin-left:8px;position:relative;top:-3px;display:inline-block;line-height:1.2}
/* photos: tidy rows that close up after a delete; size per device */
.album-grid.compact{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(var(--tile,230px),1fr));gap:16px;columns:auto}
.album-grid.compact .album-photo{margin:0;display:flex;flex-direction:column;gap:8px;padding:12px}
.album-grid.compact .album-photo>img{width:100%;height:auto!important;aspect-ratio:4/5!important;object-fit:contain;background:#f3ebdd;border-radius:14px;cursor:zoom-in}
.album-grid.photos-small{gap:8px}
.album-grid.photos-small .album-photo{padding:6px;border-radius:14px}
.album-grid.photos-small .album-photo>img{aspect-ratio:1!important;object-fit:cover;border-radius:10px}
.album-grid.photos-small .album-photo>:not(img){display:none!important}
.album-grid.photos-large .album-photo>img{aspect-ratio:auto!important;max-height:560px}
.photo-size{display:inline-flex;gap:4px;background:#f3ebdd;border-radius:999px;padding:4px;margin:0 0 14px}
.photo-size button{width:40px;height:36px;border-radius:999px;border:0;background:transparent;display:grid;place-items:center;cursor:pointer}
.photo-size button.on{background:#fff;box-shadow:0 1px 3px rgba(46,50,56,.15)}
.photo-size svg{fill:#4a4f57}.photo-size button.on svg{fill:#0a60a2}
.textbtn.danger,.outline.danger{color:#a83a14}
.photo-actions{display:flex;justify-content:space-between;gap:10px;margin-top:auto}
.archive-bar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 16px}
/* the viewer */
.photo-viewer{width:min(1100px,96vw);max-width:96vw;max-height:96vh;padding:12px 12px 14px;border-radius:20px}
.photo-viewer::backdrop{background:rgba(15,53,84,.8)}
.pv-top{display:flex;justify-content:space-between;align-items:center;padding:2px 4px 8px}
.pv-count{font-size:13px;font-weight:700;color:var(--muted)}
.pv-stage{position:relative;display:grid;place-items:center;min-height:200px}
.pv-stage img{max-width:100%;max-height:70vh;object-fit:contain;border-radius:12px;display:block;touch-action:pan-y}
.pv-nav{position:absolute;top:50%;transform:translateY(-50%);width:48px;height:48px;border-radius:50%;border:0;background:rgba(255,255,255,.95);box-shadow:0 2px 10px rgba(15,53,84,.18);color:#0f3554;font-size:30px;line-height:1;cursor:pointer;display:grid;place-items:center}
.pv-nav.prev{left:8px}.pv-nav.next{right:8px}.pv-nav[hidden]{display:none}
.pv-details{display:grid;gap:8px;margin-top:10px}

.pv-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.pv-actions .approval-toggle{margin:0}
.pv-actions select{width:auto;max-width:180px;margin:0;padding:6px 10px}
.pv-actions .textbtn.danger{margin-left:auto}
@media(max-width:760px){.album-grid.compact{gap:10px}.pv-nav{width:40px;height:40px;font-size:26px}.pv-stage img{max-height:62vh}}
/* tall photos on the boards: whole photo over a blurred copy */
.photo-board.has-portrait{isolation:isolate}
.photo-board.has-portrait::before{content:'';position:absolute;inset:-20px;background:var(--photo) center/cover;filter:blur(22px) brightness(.85);z-index:-1}
.photo-board>img.is-portrait{object-fit:contain;background:transparent}
/* drag and drop */
#dropHint{position:fixed;inset:12px;z-index:900;border:3px dashed #0a60a2;border-radius:24px;background:rgba(212,232,248,.85);display:grid;place-items:center;pointer-events:none}
#dropHint[hidden]{display:none}
#dropHint div{display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center;color:#0f3554}
#dropHint b{font:400 28px var(--font-display)}#dropHint small{font-size:14px}
.drop-icon{width:64px;height:64px;border-radius:50%;background:#0a60a2;color:#fff;display:grid;place-items:center;font-size:34px}
@media(max-width:760px){.album-grid.compact{columns:2 150px;column-gap:10px}.album-grid.compact .album-photo{margin-bottom:10px;padding:10px}}
/* Hiding an outside event (calendar-sync.js) */
.ext-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-top:6px}
.ext-hide{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.ext-hide-q{font-size:13px;font-weight:600;color:var(--muted)}
.ext-hide .outline{width:auto}
.ext-hide-note{margin-top:10px}
/* Event form: All Day, Repeats, Delete (recurring-events.js) */
#eventMore{display:grid;gap:10px;margin:4px 0 8px}
#eventMore[hidden],#evRepeatPanel[hidden],#evDays[hidden]{display:none}
#evRepeatPanel{display:grid;gap:10px}
.ev-days{display:flex;gap:6px;flex-wrap:wrap}
.ev-day{margin:0!important;cursor:pointer}
.ev-day input{position:absolute;opacity:0;width:1px;height:1px}
.ev-day span[aria-hidden]{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;border:1.5px solid var(--line);font-weight:700;font-size:13px;color:var(--muted);background:#fff}
.ev-day input:checked+span{background:var(--primary,#0A60A2);border-color:var(--primary,#0A60A2);color:#fff}
.ev-day input:focus-visible+span{outline:2px solid var(--primary,#0A60A2);outline-offset:2px}
.ev-delete{display:flex;gap:10px;flex-wrap:wrap;align-items:center;justify-content:center;margin-top:14px}
.ev-delete[hidden]{display:none}
.ev-delete .outline{width:auto}
.textbtn.danger{color:#B4361B}
/* Chore library: Create a New Chore, and choosing several children (chores-flow.js) */
.chore-template.chore-template-new{border:2px dashed #C9B48E!important;background:#FBF7F0!important}
.chore-template.chore-template-new>span{font-size:30px;color:var(--primary,#0A60A2);font-weight:700}
.chore-template.chore-template-new b{color:var(--primary,#0A60A2)}
.chore-who .event-people-row{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
#saveToLibrary[hidden]{display:none}
/* Phones: typing never zooms the page (iPhone zooms into any field under 16px) */
@media (max-width:760px),(pointer:coarse){input:not([type=checkbox]):not([type=radio]),select,textarea{font-size:16px!important}}
/* Two fields side by side never overlap; on phones they stack */
.form-two{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.form-two>label{min-width:0}
input[type=date],input[type=time]{min-width:0;max-width:100%;width:100%;box-sizing:border-box}
@media(max-width:520px){.form-two{grid-template-columns:1fr!important}}
/* To-do lists: done items at the bottom (todo-polish.js) */
.todo-done{margin-top:10px;border-top:1px dashed var(--line);padding-top:6px;overflow:hidden}
.todo-done-head{display:flex;justify-content:space-between;align-items:center;padding:6px 0;font-size:12.5px;font-weight:700;color:#1E7B79}
.todo-done-head .textbtn{font-size:12.5px}
.todo-done .todo-row{transition:transform .16s ease,background .16s;position:relative;touch-action:pan-y}
.todo-done .todo-row.swipe-armed{background:#FBE1D5}
.todo-done .todo-row .task-name{text-decoration:line-through;color:var(--muted)}
.todo-del{flex:none;width:34px;height:34px;border-radius:50%;border:1px solid var(--line);background:#fff;color:#B4361B;font-size:18px;line-height:1;cursor:pointer}
.todo-del:hover{background:#FBE1D5}
/* Reward picker for phones (chores-flow.js) */
.goal-mini{display:none}
@media(max-width:760px){.star-children.overview .star-child>.goal-mini{display:inline-flex;align-items:center;justify-content:center;gap:4px;margin:8px auto 0;padding:6px 10px;border-radius:999px;border:1px solid var(--line);background:#F7ECC7;color:#6E5310;font:700 12px 'DM Sans',sans-serif;cursor:pointer;max-width:100%}}
.goal-picker{width:min(440px,calc(100vw - 32px))}
.goal-list{display:grid;gap:8px;margin-top:12px}
.goal-option{display:flex;align-items:center;gap:12px;width:100%;text-align:left;padding:12px 14px;border-radius:16px;border:1.5px solid var(--line);background:#fff;cursor:pointer;color:inherit;font:inherit}
.goal-option.on{border-color:var(--primary,#0A60A2);background:#EEF5FB}
.goal-emoji{font-size:26px;flex:none}
.goal-text{flex:1;min-width:0}.goal-text b{display:block;font-size:15px}.goal-text small{color:var(--muted);font-size:12.5px}
.goal-check{color:var(--primary,#0A60A2);font-weight:800;font-size:18px}
/* Older browsers (compat.js) */
html.no-dialog dialog:not([open]){display:none}
html.no-dialog dialog[open].dlg-modal{position:fixed;inset:0;margin:auto;z-index:1200;max-height:calc(100vh - 32px);overflow:auto;box-shadow:0 0 0 100vmax rgba(15,53,84,.45)}
.btw-startup-problem{position:fixed;inset:0;z-index:2000;display:grid;place-items:center;padding:24px;background:#0f3554;color:#fff;font:16px/1.5 -apple-system,system-ui,sans-serif;text-align:center}
.btw-startup-problem>div{max-width:440px}
.btw-startup-problem h1{font-size:24px;margin:0 0 10px}
.btw-startup-problem button{margin:14px 0;padding:12px 24px;border-radius:999px;border:0;background:#EBC35F;color:#0f3554;font-weight:700;font-size:16px}
.btw-startup-problem pre{white-space:pre-wrap;text-align:left;font-size:12px;background:rgba(255,255,255,.1);padding:10px;border-radius:10px}
/* Chore days, edit mode (chore-days.js) */
.cd-days{display:grid;gap:8px;border:0;padding:0;margin:4px 0 8px}
.cd-days[hidden]{display:none}
.cd-quick{display:flex;gap:14px}
.cd-label{display:block;margin-top:4px;font-size:11px;font-weight:700;color:#1E7B79}
.picture-chore.not-today{opacity:.5}
.picture-chore.cd-editing{outline:2px dashed #C9B48E;outline-offset:2px}
.picture-chore.cd-editing .picture-status{visibility:hidden}
.picture-chore.cd-editing::after{content:'✎ Edit';position:absolute;top:8px;right:10px;font:700 11px 'DM Sans',sans-serif;color:#0A60A2;background:#fff;border-radius:999px;padding:3px 8px}
.picture-chore{position:relative}
.task-column .cd-edit{position:absolute;top:18px;right:20px}
.task-column{position:relative}
.cd-remove{display:block;margin:12px auto 0}
/* Routines tab (rhythms.js) */
.rr-note{margin:0 0 14px}
.rr-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:18px;margin-bottom:18px}
.rr-routine{margin:0}
.rr-kid{padding:12px 0;border-top:1px solid var(--line)}
.rr-who{display:flex;align-items:center;gap:10px;margin-bottom:8px}
.rr-who b{font-size:15px}.rr-who span{margin-left:auto;font-size:13px;color:var(--muted);font-weight:600}
.rr-who .rr-all{color:#1E7B79}
.rr-steps{display:flex;flex-wrap:wrap;gap:8px}
.rr-step{display:flex;flex-direction:column;align-items:center;gap:2px;width:68px;padding:8px 4px;border-radius:14px;border:1.5px dashed var(--kedge);background:#fff;text-align:center}
.rr-step span{font-size:24px}.rr-step small{font-size:10.5px;line-height:1.2;color:var(--muted)}
.rr-step.on{border-style:solid;background:var(--kbg)}
.rr-step.on small{color:var(--ink)}
.rr-who{justify-content:flex-start}.rr-who .avatar{margin:0!important;flex:none}
/* Recipe from a link (recipe-link.js) */
.import-link{display:flex;gap:10px;align-items:flex-end;flex-wrap:wrap}
.import-link label{flex:1 1 260px;margin:0}
.import-link .primary{white-space:nowrap}
.import-or{display:flex;align-items:center;gap:12px;color:var(--muted);font-size:13px;margin:18px 0 6px}
.import-or::before,.import-or::after{content:'';flex:1;border-top:1px solid var(--line)}
