:root{font-family:system-ui,-apple-system,sans-serif;color:#213f36;background:#f4f5ef;line-height:1.5}*{box-sizing:border-box}body{margin:0}header{display:flex;align-items:center;gap:16px;padding:18px 4vw;background:#fff;border-bottom:1px solid #dce3d8}.brand{font-size:22px;font-weight:750;text-decoration:none;color:#234b3d;margin-right:auto}.notice{text-align:center;background:#fff0cd;padding:9px 20px;font-size:12px;color:#715820}main{max-width:1400px;margin:24px auto;padding:0 24px}h1{font-size:30px;letter-spacing:-1px;margin:0 0 10px}h2{font-size:20px;margin:0 0 12px}h3{font-size:16px}p{color:#627268}button,input,select,textarea{font:inherit;border:1px solid #cbd6c8;border-radius:9px;padding:10px 13px}button{background:#fff;color:#244e3d;cursor:pointer}button:hover{background:#edf3e7}button.primary{background:#285340;color:#fff;border-color:#285340}button:disabled{opacity:.45;cursor:default}a{color:#295a45}input,select,textarea{background:#fff;max-width:100%}label{display:block;font-size:13px;margin-bottom:14px}label input,label select,label textarea{display:block;width:100%;margin-top:6px}label.check{display:flex;gap:10px;align-items:center}label.check input{width:auto;margin:0}textarea{min-height:105px;resize:vertical}.card{background:#fff;border:1px solid #dce3d8;border-radius:18px;padding:24px;margin-bottom:20px}.narrow{max-width:510px;margin:45px auto}.grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.layout{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(310px,1fr);gap:24px}.row{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.row.between{justify-content:space-between}.muted,small{color:#748075;font-size:12px}.pill{padding:4px 9px;background:#eaf1e5;border-radius:15px;font-size:12px}.journey-button{width:100%;text-align:left;padding:16px;margin-bottom:10px}.journey-button.selected{border:2px solid #527a55}.mapcard{padding:0;overflow:hidden}.maphead{padding:20px}.maphead strong{font-size:25px}#map{height:470px;background:#e6ede3;z-index:1}.mapcontrols{padding:12px 18px}.marker{font-size:32px;text-align:center;filter:drop-shadow(0 2px 3px #fff)}.destination{background:white;border-radius:50%;font-size:24px;text-align:center}.chat{max-height:520px;overflow:auto}.bubble{background:#f1f4eb;border-radius:14px 14px 14px 3px;padding:16px;margin:12px 0;white-space:pre-wrap;overflow-wrap:anywhere}.bubble small{display:block}.bubble button{font-size:18px;padding:3px 10px;margin-top:10px}.message{border-top:1px solid #e1e6dc;padding:16px 0}.message p{white-space:pre-wrap;font-size:14px}.media-off{font-size:12px;background:#fff1d0;padding:8px;border-radius:6px;margin-top:8px}.danger{color:#943e37}.share{overflow-wrap:anywhere;background:#f5f5ea;padding:14px;border-radius:9px}.share code{font-size:24px;letter-spacing:4px}#toast{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);background:#234b3d;color:#fff;padding:12px 20px;border-radius:10px;z-index:1000;max-width:90vw;display:none}footer{font-size:12px;text-align:center;color:#788476;padding:20px}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,a:focus-visible{outline:3px solid #c29c3a;outline-offset:2px}[hidden]{display:none!important}@media(max-width:900px){.layout{grid-template-columns:1fr}.grid{grid-template-columns:1fr}main{padding:0 14px}header{padding:12px 16px}.brand{font-size:18px}.card{padding:18px}.mapcard{padding:0}#map{height:430px}h1{font-size:25px}}
fieldset{border:0;padding:0;margin:25px 0}legend{font-weight:750;font-size:16px;margin-bottom:16px}hr{border:0;border-top:1px solid #e1e6dc;margin:24px 0}.setup{max-width:720px}.eyebrow{text-transform:uppercase;letter-spacing:.12em;font-weight:650;font-size:11px;color:#7c704e;display:block;margin-bottom:10px}.journey-tabs{display:flex;overflow:auto;gap:10px;margin:18px 0 24px;padding-bottom:6px}.journey-tabs button{flex-shrink:0;text-align:left}.journey-tabs small{display:block}.journey-tabs .primary small{color:#e6ecdf}.empty{text-align:center;padding:25px}.empty-star{font-size:44px;color:#bd963d}.message.delivered{border-left:3px solid #b4c5aa;padding-left:16px}.message p{overflow-wrap:anywhere}details>summary{cursor:pointer;font-weight:700;padding:10px 0;list-style-position:inside}details[open]>summary{margin-bottom:18px}.eta strong{display:block;max-width:210px}.child-intro{text-align:center;max-width:700px;margin:28px auto}.child-intro h1{font-size:clamp(25px,4vw,42px);font-weight:750}.child-intro p{font-size:17px}.chapters{display:flex;justify-content:center;gap:35px;list-style:none;padding:0;margin:24px auto 30px;max-width:760px}.chapters li{display:flex;align-items:center;gap:9px;color:#7e887e;font-size:13px}.chapters li span{display:grid;place-items:center;background:#e4eade;border-radius:50%;width:38px;height:38px;font-size:20px}.chapters .active{color:#315543;font-weight:750}.chapters .active span{background:#e9cc7d;color:#624d22}.child-layout{grid-template-columns:minmax(0,1.8fr) minmax(300px,1fr)}.child-mode{background:radial-gradient(ellipse at top,#fff8e8,transparent 60%),#eff3ec}.child-mode .mapcard{box-shadow:0 12px 40px #304c3510}.child-mode .marker{background:#fff8e6;border:2px solid #bb9640;border-radius:50%;font-size:29px;box-shadow:0 0 0 7px #fff8e650}.inbox summary{display:flex;align-items:center;gap:12px;font-size:19px}.envelope{display:grid;place-items:center;font-size:30px;width:46px;height:46px;border-radius:12px;background:#f5ead1;color:#96732e}.badge{background:#2c5941;color:white;border-radius:20px;padding:2px 9px;font-size:13px}.bubble p{white-space:pre-wrap;margin:8px 0 0;color:#324e3d}.reactions{display:flex;flex-wrap:wrap;gap:5px}.reactions button{min-height:40px;min-width:40px}.reactions [aria-pressed=true]{background:#e1c983;border-color:#927531}.finale{position:relative;text-align:center;border:1px solid #d8bc74;background:linear-gradient(120deg,#fbf0cf,#fffaf0);border-radius:24px;padding:32px 20px;margin:20px 0 28px;overflow:hidden;animation:reveal .6s ease-out}.finale h2{font-size:clamp(26px,4vw,38px);margin:8px 0}.finale-stars{color:#b38a2d;font-size:32px;letter-spacing:12px;animation:glow 2.5s ease-in-out infinite alternate}.finale p{color:#6a634e}.child-mode #map{height:520px}.child-mode .chat{max-height:540px}.child-mode .notice{font-size:11px;background:#e8ecdf;color:#64745d}.child-mode #clock{color:#67765f}#rehearse{margin-top:12px}#day-status{font-size:14px}@keyframes reveal{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}@keyframes glow{from{opacity:.55}to{opacity:1}}@media(max-width:900px){.child-layout{grid-template-columns:1fr}.chapters{gap:12px;justify-content:space-between}.chapters li{font-size:10px;flex-direction:column;text-align:center;gap:5px}.chapters li span{width:33px;height:33px}.child-mode #map{height:410px}.child-intro{margin:18px auto}.child-intro p{font-size:15px}.eta strong{max-width:125px;font-size:20px}.child-mode .inbox{margin-top:0}.child-mode .chat{max-height:none}.child-mode main{padding:0 12px}.finale{padding:25px 15px}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

#picker{height:320px;border-radius:12px;margin-top:14px;z-index:1}#places{display:grid;gap:6px;margin-top:10px}.children-editor{margin-top:20px}.children-editor h2{font-size:16px;margin-bottom:4px}.children-editor p{font-size:13px;margin:0 0 12px}

/* Family day controls stay reachable while preparation remains a separate workspace. */
.parent-heading h1{font-size:25px}.journey-select{max-width:620px;margin:18px 0 12px}.mode-tabs{display:flex;gap:8px;margin-bottom:18px}.mode-tabs button{flex:1;max-width:260px}.live-summary{border-left:4px solid #b99743}.live-summary p{margin:8px 0}#final-status{font-weight:700;color:#294b3c}#next-message{font-size:14px}.parent-toolbar{position:fixed;z-index:700;bottom:0;left:0;right:0;display:flex;justify-content:center;gap:10px;padding:14px 20px calc(14px + env(safe-area-inset-bottom));background:#fffffff5;border-top:1px solid #ced9c8;box-shadow:0 -6px 28px #203d3210}.parent-toolbar button{min-height:48px}body:has(.parent-toolbar){padding-bottom:100px}body:has(.parent-toolbar) #toast{bottom:100px}[data-parent-mode=today] .prepare-only,[data-parent-mode=prepare] .today-only{display:none}#checklist .check{margin:20px 0 10px}.checklist-actions{margin:18px 0}#message-check{font-weight:650}.message.omitted p{opacity:.6}.invitation{border-top:1px solid #dce3d8;margin-top:16px;padding-top:14px}.invitation small{display:block;margin:5px 0}.share input{font-size:14px}#share-pin{font-size:22px;letter-spacing:4px}.invitation button{font-size:13px}dialog{max-width:620px;width:calc(100% - 24px);max-height:88dvh;overflow:auto;border:1px solid #cfdbc8;border-radius:18px;padding:24px;color:#213f36;box-shadow:0 24px 80px #132b3040}dialog::backdrop{background:#16382ec0}dialog h2{margin:0;max-width:85%}dialog>p{line-height:1.6}dialog .finale{animation:none}#correct-map{height:320px;margin:14px 0;z-index:1}#correct-results{display:grid;gap:5px}.wizard-progress{font-weight:700;border-bottom:2px solid #c7d9be;padding-bottom:12px}.icon-picker{grid-column:1/-1;margin:0}.icon-options{display:flex;flex-wrap:wrap;gap:8px}.icon-options label{position:relative;display:grid;text-align:center;padding:10px;border:2px solid #dce3d8;border-radius:12px;min-width:75px;cursor:pointer}.icon-options label:has(:checked){border-color:#9a7c2f;background:#fff4d5}.icon-options input{position:absolute;opacity:0;width:1px;height:1px}.icon-options label:has(:focus-visible){outline:3px solid #c29c3a;outline-offset:3px}.icon-options span{font-size:30px}.icon-options small{font-size:12px}.preview-character{font-size:56px;text-align:center}.wizard-preview{text-align:center;background:#f7f3e7;border-radius:16px;padding:20px;margin-bottom:22px}.setup details{margin:16px 0}.story-preview h3{text-align:center}.child-mode main{max-width:1060px;margin-top:12px;padding-bottom:85px}.child-intro{margin:10px auto 12px}.child-intro h1{font-size:clamp(22px,3vw,32px);margin:0}.child-intro p{margin:5px 0;font-size:15px}.child-mode .maphead{padding:12px 16px}.child-mode .maphead h2{display:none}.child-mode .maphead #clock{font-size:11px}.child-mode .maphead .pill{font-size:14px}.child-mode #map{height:clamp(350px,55dvh,600px)}.child-mode .mapcontrols #whole,.child-mode .mapcontrols #world{font-size:12px}.child-mode .mapcontrols{padding:8px 12px;gap:6px}.child-mode .mapcontrols #follow{font-size:15px;min-height:44px}.child-mode .mapcontrols #connection{margin-left:auto}.inbox-button{position:fixed;bottom:12px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:12px;background:#fff8e8;border:2px solid #bda153;border-radius:18px;box-shadow:0 7px 30px #2a44322a;z-index:650;white-space:nowrap;min-height:60px}.inbox-button .envelope{width:36px;height:36px;font-size:26px}.child-mode #inbox{scroll-margin-top:12px}.child-mode .letter{white-space:normal}.letter summary{font-size:17px;display:flex;align-items:center;gap:8px}.letter summary small{margin-left:auto}.letter .letter-text{font-size:21px;line-height:1.6}.letter .read-together{font-size:13px;color:#6d7664}.letter .reactions button{min-width:48px;min-height:48px;font-size:25px}.child-mode .notice{padding:6px 12px}.child-mode .finale{margin:12px 0;padding:20px}.child-mode .finale-stars{animation:none}.child-mode header{padding-top:10px;padding-bottom:10px}.child-mode header select,.child-mode header button{padding:7px}#app:has(.setup){max-width:760px}.destination{border:2px solid #6c8b66}.marker{will-change:transform}@media(max-width:600px){.parent-heading h1{font-size:22px}.parent-toolbar{gap:6px;padding:10px 10px calc(10px + env(safe-area-inset-bottom))}.parent-toolbar button{padding:9px 10px;font-size:13px;flex:1}.parent-toolbar #ready{flex:1.4}.live-summary{padding:16px}.setup{margin:16px auto}.setup .grid{gap:8px}.setup fieldset{margin:16px 0}.icon-options{gap:5px}.icon-options label{min-width:57px;padding:8px 4px;flex:1}.child-mode .maphead .pill{font-size:12px}.child-mode .eta strong{font-size:18px}.child-mode header{gap:8px}.child-mode #logout{font-size:11px}.child-mode .brand{font-size:16px}.child-mode .mapcontrols #connection{flex-basis:100%;margin-left:0}.child-mode .mapcontrols button{padding:8px}.child-mode main{padding-left:10px;padding-right:10px}.inbox-button{max-width:calc(100% - 24px);font-size:16px}.letter summary{flex-wrap:wrap}.letter summary small{font-size:11px}.letter .letter-text{font-size:19px}dialog{padding:18px}.parent-heading{gap:10px}#map{height:380px}}
.child-mode .maphead>div:first-child{flex:1;min-width:0}.child-mode .maphead .eta{flex:0 0 110px}.child-mode #clock{display:block;margin-top:4px}@media(max-width:600px){.child-mode #map{height:clamp(280px,45dvh,430px)}.child-mode .maphead{flex-wrap:nowrap}.child-mode .maphead .eta{flex-basis:100px}.child-mode .eta strong{font-size:17px}}

.destination-privacy{margin:10px 0 14px;padding:12px 14px;background:#f4f7f0;border:1px solid #d6e0d1;border-radius:12px}.destination-privacy label{margin:0}.destination-privacy label+label{margin-top:10px}.destination-privacy select{margin-top:6px}
.timeline-editor{display:grid;gap:12px;margin:14px 0}.timeline-item{display:grid;grid-template-columns:minmax(170px,1fr) minmax(150px,1fr) minmax(130px,.8fr) auto;gap:10px;align-items:end;padding:14px;background:#fff;border:1px solid #d8e0d3;border-radius:14px;cursor:auto}.timeline-item label{margin:0}.timeline-item label:nth-child(4){grid-column:1/-2}.timeline-item textarea{min-height:92px;resize:vertical}.timeline-item button{min-height:42px;white-space:nowrap}@media(max-width:650px){.timeline-item{grid-template-columns:1fr 1fr}.timeline-item label:nth-child(4){grid-column:1/-1}.timeline-item button{grid-column:1/-1}}
.timeline-editor .timeline-item label:nth-child(4),.timeline-editor .timeline-item label:has(textarea[data-field="text"]){grid-column:1/-1;min-width:0}.timeline-editor .timeline-item textarea{min-height:140px}.timeline-editor .timeline-item>p{grid-column:1/-1}.timeline-editor .timeline-item button{grid-column:1/-1;justify-self:end}
.sharing-dialog{width:min(720px,calc(100% - 24px))}.sharing-dialog #share-result{margin:18px 0}.sharing-dialog .share-generated{padding:16px}.sharing-dialog #share-email-form{margin-top:20px;padding-top:16px;border-top:1px solid #dce3d8}.sharing-dialog #share-email-form small{display:block;margin:8px 0}.sharing-dialog .share-management{margin-top:20px;padding-top:16px;border-top:1px solid #dce3d8}.sharing-dialog .share-management h3{margin:0 0 12px}.sharing-dialog .share-confirm{margin:12px 0;padding:12px;border:1px solid #d08c55;border-radius:8px;background:#fffaf0}.sharing-dialog .invite-qr{width:min(100%,220px)}

/* Account identity stays with Clerk; the app only renders the current user's display data. */
#new-journey{font-weight:650;white-space:nowrap}
.dashboard-hero{display:flex;justify-content:space-between;gap:24px;align-items:end;max-width:900px;margin:42px 0}.dashboard-hero h1{font-size:clamp(32px,4vw,48px);margin:4px 0}.dashboard-hero p{max-width:620px;font-size:17px}.dashboard-hero button{margin-bottom:10px}.dashboard-section{margin:34px 0}.dashboard-section>h2{margin-bottom:16px}.journey-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:14px}.journey-overview{margin:0}.journey-overview h3{font-size:21px;margin:16px 0 2px}.journey-overview p{margin:5px 0}.journey-overview button{margin-top:14px}.dashboard-columns{display:grid;grid-template-columns:1.1fr .9fr;gap:32px}.children-summary{display:flex;flex-wrap:wrap;gap:10px}.child-summary{display:flex;align-items:center;gap:10px;border:1px solid #dce3d8;background:#fff;border-radius:13px;padding:12px 15px;min-width:145px}.child-summary>span{display:grid;place-items:center;width:30px;height:30px;background:#f5ead1;border-radius:50%;color:#8b6b25}.child-summary small{display:block}.rehearsal-list{display:grid;gap:10px}.rehearsal-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0;padding:16px}.rehearsal-summary small{display:block;margin-top:3px}.back-link{display:inline-block;margin-bottom:8px;text-decoration:none;font-size:13px}@media(max-width:700px){.dashboard-hero{display:block;margin:25px 0}.dashboard-hero button{margin-top:8px}.dashboard-columns{grid-template-columns:1fr}}
.language-picker{position:relative}.language-trigger{display:grid;place-items:center;width:44px;height:44px;padding:0;border-radius:50%;font-size:23px}.language-menu{position:absolute;z-index:1100;right:0;top:calc(100% + 8px);min-width:152px;padding:6px;background:#fff;border:1px solid #dce3d8;border-radius:12px;box-shadow:0 12px 30px #203d3222}.language-menu button{display:flex;width:100%;gap:9px;align-items:center;border:0;text-align:left;padding:10px 12px}.language-menu button span:first-child{font-size:20px}
.profile{position:relative}.profile-trigger{display:flex;align-items:center;gap:9px;border:0;padding:3px 6px 3px 3px;border-radius:999px}.profile-avatar{width:38px;height:38px;border-radius:50%;object-fit:cover;background:#eaf1e5}.profile-name{max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:650}.profile-caret{font-size:17px;color:#627268}.profile-menu{position:absolute;z-index:1100;right:0;top:calc(100% + 8px);min-width:180px;padding:6px;background:#fff;border:1px solid #dce3d8;border-radius:12px;box-shadow:0 12px 30px #203d3222}.profile-menu button{display:block;width:100%;border:0;text-align:left;padding:10px 12px}.profile-menu button+button{border-top:1px solid #e1e6dc;border-radius:0}@media(max-width:600px){.profile-name,.profile-caret{display:none}.profile-trigger{padding:2px}.profile-avatar{width:34px;height:34px}}



.place-autocomplete{position:relative;margin-bottom:14px}.place-search{margin:0}.place-suggestions{position:absolute;z-index:500;top:100%;left:0;right:0;display:grid;gap:0;margin-top:4px;max-height:220px;overflow:auto;background:#fff;border:1px solid #cbd6c8;border-radius:10px;box-shadow:0 10px 24px #203d3220}.place-suggestions:empty{display:none}.place-suggestions button{width:100%;border:0;border-radius:0;padding:10px 13px;text-align:left;font-size:14px;line-height:1.35}.place-suggestions button+button{border-top:1px solid #e1e6dc}.place-suggestions button:hover{background:#edf3e7}

label:has(#pin-confirmed){display:none}
#chosen-place{display:block}
#chosen-place:empty{display:none}

/* The planner works on a phone without floating suggestions covering other steps. */
.setup .place-search-group label{display:flex;flex-direction:column;gap:6px;margin:0}.setup .place-search-group label input{margin-top:0}.setup .place-search-group #places{position:static;margin:4px 0 0;max-height:230px}.setup #place-help{margin:10px 0 14px}.review-timeline .timeline-item{grid-template-columns:1fr auto auto;align-items:start}.review-timeline .timeline-item p{grid-column:1/-1;margin:0}.rehearsal-controls{border:2px solid #bf9c52;margin-bottom:24px}.rehearsal-controls p{margin:8px 0 14px}.rehearsal-controls label{margin:0}.map-provider-logo img{display:block}.map-provider-logo{display:block;background:#fff;padding:3px;border-radius:4px}@media(max-width:600px){.rehearsal-controls .row{align-items:stretch}.rehearsal-controls button{flex:1 1 45%}.review-timeline .timeline-item{grid-template-columns:1fr 1fr}.review-timeline .timeline-item strong{grid-column:1/-1}}

#parent-links{display:flex;gap:12px;font-size:13px}#parent-links[hidden]{display:none}.help-page details{margin:16px 0}.help-page summary{font-weight:650;cursor:pointer}.help-page p,.help-page li{line-height:1.6}.help-page a{overflow-wrap:anywhere}@media(max-width:600px){header{flex-wrap:wrap}#parent-links{order:5;flex-basis:100%}}

.auth-card{max-width:460px;margin:56px auto;padding:36px;box-shadow:none}.auth-card h1{font-size:32px;line-height:1.18;letter-spacing:-1px}.auth-intro{margin:12px 0 16px}.auth-existing{margin:0 0 24px;font-size:14px}.auth-existing a{font-weight:650}.auth-card label{font-size:14px;font-weight:600}.auth-card input{min-height:46px;font-size:16px;width:100%}.auth-password-label{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin-bottom:6px}.auth-password-label label{margin:0}.auth-password{display:flex;align-items:stretch;border:1px solid #cbd6c8;border-radius:9px;margin-bottom:18px;background:#fff}.auth-password input{border:0;min-width:0;background:transparent}.auth-password button{border:0;background:transparent;font-size:13px;padding:8px 12px}.auth-card .auth-link{border:0;padding:0;background:transparent;color:#295a45;font-size:13px;text-decoration:underline;text-underline-offset:3px}.auth-card a{text-underline-offset:3px}.auth-submit{width:100%;min-height:46px;font-weight:650}.auth-code-link{display:block;margin:18px auto}.auth-error{color:#9e352c;font-size:14px;margin:0 0 14px}.auth-error:empty,.auth-status:empty{display:none}.auth-status{font-size:14px}.auth-switch{margin:26px 0 0;padding-top:24px;border-top:1px solid #e0e7dc;font-size:14px}.auth-switch a{font-weight:650}.auth-privacy{margin:24px 0 0;font-size:12px}.auth-privacy a{color:#627268}.auth-back{margin-top:18px}#auth-code{letter-spacing:.2em}.auth-card :focus-visible{outline:2px solid #285340;outline-offset:3px}.auth-card #clerk-captcha:empty{display:none}@media(max-width:600px){.auth-card{margin:24px auto;padding:26px 22px}.auth-card h1{font-size:28px}.auth-password-label{flex-wrap:wrap;gap:4px}}

.review-map{height:220px;border-radius:16px;margin:1rem 0;}
dialog.destination-map-dialog{width:min(960px,calc(100% - 28px));max-width:960px;padding:20px}
#destination-preview-map{height:min(58vh,480px);min-height:300px;margin:12px 0;border:1px solid #829583;border-radius:4px;background:#e8efe1;z-index:1}
#destination-map-address{margin:10px 0;color:#56645a;font-weight:600}
.destination-map-actions{justify-content:flex-end;margin-top:12px}
dialog.basic-edit-dialog{width:min(560px,calc(100% - 24px));padding:22px}
.basic-edit-dialog>label,.basic-edit-dialog fieldset>label{display:grid;gap:7px;margin:14px 0}
.basic-edit-dialog input,.basic-edit-dialog select{width:100%;min-width:0}
.basic-edit-dialog .basic-edit-icons{gap:7px}
.basic-edit-dialog .basic-edit-icons label{min-width:78px;padding:8px}
.basic-edit-dialog .basic-edit-icons .map-icon-art{width:42px;height:42px;object-fit:contain}
.basic-edit-dialog .basic-edit-children{display:grid;gap:10px;margin:12px 0}
.basic-edit-dialog .basic-edit-child{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:10px}
.basic-edit-dialog .basic-edit-child label{margin:0}
.basic-edit-dialog .basic-edit-child button{min-width:42px;min-height:42px}
.basic-edit-dialog #basic-edit-error{color:#a5322e}
@media(max-width:600px){.basic-edit-dialog{padding:16px!important}.basic-edit-dialog .basic-edit-icons label{min-width:66px}.basic-edit-dialog .row{flex-wrap:wrap}.basic-edit-dialog .row button{flex:1 1 40%}}
#app[data-closed="true"] .parent-toolbar{display:none;}
dialog .grid>section{min-width:0;overflow-wrap:anywhere;}



.invite-qr{display:block;width:min(100%,300px);height:auto;margin:12px auto;background:#fff;padding:8px;border-radius:10px}.invite-access{font-weight:650;color:#315543}.share a{display:inline-block;margin-bottom:10px}#refresh-invites{margin:14px 0;font-size:13px}#print-memory{display:none}.print-memory{font-family:Georgia,'Times New Roman',serif;color:#263b31;max-width:720px;margin:auto}.print-memory .print-ornament{text-align:center;color:#ad8732;font-size:30px;letter-spacing:.5em}.print-memory .print-eyebrow{text-align:center;text-transform:uppercase;letter-spacing:.18em;font:700 11px system-ui,sans-serif;color:#766b4b}.print-memory h1{text-align:center;font-size:32px;line-height:1.2;margin:14px 0}.print-memory .print-subtitle{text-align:center;margin:0 auto 28px;color:#657269}.print-letter{break-inside:avoid;border-top:1px solid #d2c39f;padding:20px 0}.print-letter time{font:600 12px system-ui,sans-serif;color:#756b55}.print-letter p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:19px;line-height:1.55;color:#263b31;margin:8px 0}.print-memory footer{border-top:1px solid #d2c39f;text-align:center;margin-top:28px;padding-top:15px;font:11px system-ui,sans-serif;color:#756b55}
@page{size:A4;margin:18mm}@media print{body{display:block;min-height:0}html,body{background:#fff!important;color:#263b31!important}body>header,body>.notice,body>footer,body>#toast{display:none!important}main#app{max-width:none;margin:0;padding:0}main#app>*:not(#print-memory){display:none!important}#print-memory{display:block!important}.print-memory{max-width:none}.print-letter{page-break-inside:avoid}}
/* Show the guide choice directly in the first setup step. */
.setup .icon-picker{margin:22px 0 26px}
.rehearsal-checklist{padding-left:1.4rem}.rehearsal-checklist li{padding:.35rem 0}
#wizard-progress.journey-progress{margin:22px 0 26px;min-width:0}
.journey-progress-road{position:relative;display:grid;grid-template-columns:repeat(var(--step-count),minmax(0,1fr));align-items:end;height:49px}
.journey-progress-segment{position:relative;height:17px;background:#e9eee8;border-top:2px solid #b4c3b0;border-bottom:2px solid #b4c3b0}
.journey-progress-segment:first-child{border-left:2px solid #b4c3b0;border-radius:10px 0 0 10px}
.journey-progress-segment:last-of-type{border-right:2px solid #b4c3b0;border-radius:0 10px 10px 0}
.journey-progress-segment:not(:last-of-type)::before{content:"";position:absolute;z-index:1;top:-2px;right:0;height:17px;border-right:2px solid #fff}
.journey-progress-segment::after{content:"";position:absolute;top:7px;left:9px;right:9px;border-top:2px dashed #fff}
.journey-progress-segment.is-complete{background:#548064;border-color:#436d53}
.journey-progress-segment.is-current{background:#e8c97d;border-color:#a17d37}
.journey-progress-sleigh{position:absolute;z-index:2;top:0;width:64px;height:40px;transform:translateX(-50%);filter:drop-shadow(0 2px 2px #26403540);transition:left .35s ease;pointer-events:none}
.journey-progress-labels{display:grid;grid-template-columns:repeat(var(--step-count),minmax(0,1fr));gap:0;margin-top:9px;color:#697a70;font-size:13px;font-weight:600;text-align:center}
.journey-progress-labels span{min-width:0;padding:0 5px;line-height:1.25}
.journey-progress-labels .is-current{color:#29483b;font-weight:800}
@media(max-width:600px){.journey-progress-labels{font-size:11px}.journey-progress-sleigh{width:54px;height:34px;top:6px}}

/* A child is one compact card; optional fields expand below the name. */
.setup #children-list{display:grid;gap:12px;margin:18px 0 14px}
.setup .child-row{display:grid;grid-template-columns:minmax(0,1fr) 44px;grid-template-areas:"name remove" "details details";gap:10px 12px;align-items:start;margin:0;padding:18px 20px;border:1px solid #d9e3d5;border-radius:16px;background:#fbfcf9;box-shadow:0 3px 14px #203d320a}
.setup .child-row>label{grid-area:name;min-width:0;margin:0;font-size:14px;font-weight:650}
.setup .child-row input,.setup .child-row select{min-height:46px;background:#fff}
.setup .child-row>.remove-child{grid-area:remove;width:44px;min-width:44px;height:44px;min-height:44px;padding:0;border-color:#dce5d8;border-radius:12px;background:#fff;color:#5b7464;font-size:24px;line-height:1}
.setup .child-row>.remove-child:hover{border-color:#bdccc0;background:#f4f7f0;color:#213f36}
.setup .child-details{grid-area:details;min-width:0;border-top:1px solid #e4ebe1}
.setup .child-details>summary{display:flex;align-items:center;gap:9px;list-style:none;margin:0;padding:11px 0 0;color:#476b51;font-size:13px;font-weight:700}
.setup .child-details>summary::-webkit-details-marker{display:none}
.setup .child-details>summary::before{content:"+";display:grid;place-items:center;width:20px;height:20px;flex:none;border:1px solid #cad9c7;border-radius:50%;color:#43674d;font-size:15px;line-height:1}
.setup .child-details[open]>summary{margin:0}
.setup .child-details[open]>summary::before{content:"−"}
.setup .child-details-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding-top:14px}
.setup .child-details-fields label{min-width:0;margin:0;font-size:13px;font-weight:500}
.setup #add-child{min-height:48px;padding:11px 18px;border-style:dashed;border-color:#b9ccb5;background:#f8faf6;font-weight:700}
.setup #add-child:hover{background:#edf3e9}
@media(max-width:460px){.setup .child-row{padding:16px}.setup .child-details-fields{grid-template-columns:1fr;gap:12px}}

/* Pick the celebration date before adjusting the journey's exact times. */
.setup .holiday-date-chooser{margin:24px 0 20px}
.setup .holiday-date-chooser legend{font-size:18px;margin-bottom:4px}
.setup .holiday-date-chooser p{margin:2px 0 14px;font-size:14px}
.holiday-date-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.holiday-date-options button{min-width:0;min-height:68px;padding:12px;border:2px solid #d8e2d4;border-radius:14px;background:#fff;color:#284a3a;font-size:19px;font-weight:750;line-height:1.25}
.holiday-date-options button:last-child{font-size:15px}
.holiday-date-options button:hover{border-color:#9eb595;background:#f5f8f2}
.holiday-date-options button[aria-pressed="true"]{border-color:#a48539;background:#fff7df;box-shadow:0 2px 0 #a48539;color:#284a3a}
.setup #other-holiday-date{max-width:300px;margin:16px 0 0;font-size:14px;font-weight:650}
.setup #other-holiday-date input{min-height:48px}
@media(max-width:600px){.holiday-date-options{grid-template-columns:repeat(2,minmax(0,1fr))}.holiday-date-options button:last-child{grid-column:1/-1;min-height:52px}}

/* Postcards & Parcels — warm paper, postal red and winter green across the family app. */
:root{color-scheme:light;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#29332d;background:#e8efe1;line-height:1.55}
body{min-height:100vh;color:#29332d;background-color:#e8efe1;background-image:radial-gradient(#3f775e2b 1.2px,transparent 1.5px);background-size:23px 23px}
header{position:relative;gap:16px;padding:19px clamp(18px,4vw,58px);background:#fffaf0;color:#29332d;border:0;border-top:6px solid #ce3e32;border-bottom:1px solid #29332d;box-shadow:0 5px 0 #3f775e}
header::before{content:"";position:absolute;top:-6px;left:0;right:0;height:6px;background:repeating-linear-gradient(135deg,#ce3e32 0 9px,#fffaf0 9px 18px,#3f775e 18px 27px,#fffaf0 27px 36px);pointer-events:none}
header>*{position:relative;z-index:1}
.brand{margin-right:auto;color:#29332d;font:700 1.3rem/1.1 Georgia,"Times New Roman",serif;letter-spacing:-.03em}
.brand:first-letter{color:#ce3e32}
#parent-links{display:flex;align-items:center;gap:18px;font-size:.82rem}
#parent-links a,header a{color:#3f775e;text-underline-offset:3px}
.notice{margin-top:5px;padding:10px 20px;background:#fff2d4;color:#584526;border-bottom:1px solid #d8d9c9;font-size:.8rem}
main{max-width:1320px;margin:32px auto;padding:0 clamp(16px,3vw,36px)}
h1,h2,h3,legend{font-family:Georgia,"Times New Roman",serif;color:#29332d}
h1{font-size:clamp(2rem,4vw,3.1rem);line-height:1.05;letter-spacing:-.045em}
h2{font-size:clamp(1.45rem,2.5vw,2rem);line-height:1.14;letter-spacing:-.035em}
h3{font-size:1.2rem;line-height:1.2}
p{color:#56645a}
a{color:#3f775e}
small,.muted{color:#56645a}
button,input,select,textarea{font:inherit;border:1.5px solid #829583;border-radius:4px;padding:11px 13px}
button{background:#fffaf0;color:#29332d;box-shadow:3px 3px 0 #d08c55;transition:transform .15s ease,box-shadow .15s ease,background-color .15s ease}
button:hover:not(:disabled){background:#f6efd9;transform:translate(-1px,-1px);box-shadow:4px 4px 0 #ce3e32}
button.primary,.primary{background:#3f775e;color:#fffaf0;border-color:#29332d;font-weight:750;box-shadow:4px 4px 0 #ce3e32}
button.primary:hover:not(:disabled),.primary:hover{background:#315f4a}
button:disabled{opacity:.5;box-shadow:none}
input,select,textarea{background:#fffdf7;color:#29332d}
input::placeholder,textarea::placeholder{color:#788278}
button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,a:focus-visible{outline:3px solid #ce3e32;outline-offset:3px}
.card{position:relative;background:#fffaf0;border:1.5px solid #29332d;border-radius:5px;padding:26px;margin-bottom:22px;box-shadow:7px 8px 0 #d08c55}
.narrow{max-width:760px;margin:42px auto}
.card.mapcard{padding:0;overflow:hidden}
.pill{display:inline-flex;align-items:center;padding:5px 10px;background:#fff2d4;border:1px dashed #ce3e32;border-radius:2px;color:#9c3027;font-size:.73rem;font-weight:800;letter-spacing:.035em}
.eyebrow{color:#ce3e32;text-transform:uppercase;letter-spacing:.11em;font-size:.72rem;font-weight:800}
.dashboard-hero{max-width:1000px;margin:40px 0 48px;align-items:end}
.dashboard-hero h1{max-width:760px}
.dashboard-hero p{max-width:660px;color:#56645a;font-size:1.02rem}
.dashboard-section{margin:38px 0}
.dashboard-section>h2{display:flex;align-items:center;gap:12px}
.dashboard-section>h2::after{content:"";height:2px;flex:1;background:repeating-linear-gradient(90deg,#ce3e32 0 9px,transparent 9px 15px)}
.journey-grid{gap:20px}
.journey-overview{border-top:5px solid #3f775e}
.journey-overview:nth-child(3n+2){border-top-color:#ce3e32}
.journey-overview h3{font-size:1.35rem}
.empty{background:#fffaf0}
.empty-star{color:#ce3e32}
.setup.card{max-width:940px;padding:34px clamp(18px,4vw,44px);border-top:7px solid #3f775e}
.setup.card::before{content:"";position:absolute;top:-7px;left:0;right:0;height:7px;background:repeating-linear-gradient(135deg,#ce3e32 0 9px,#fffaf0 9px 18px,#3f775e 18px 27px,#fffaf0 27px 36px);pointer-events:none}
.setup>h1{max-width:720px;margin:14px 0 10px}
.setup>p,.setup .muted{color:#56645a}
.setup form>fieldset[data-step]{margin:24px 0;padding:0;border:0;background:transparent;box-shadow:none}
.setup form>fieldset[data-step]>legend{padding:0 9px 0 0;margin-bottom:16px;color:#29332d;font-size:1.15rem;font-weight:700}
.setup form>fieldset[data-step]>legend.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.setup .story-choices{display:grid;gap:14px;margin-top:18px}
.setup .story-choices label{margin:0}
.setup .icon-picker{margin:26px 0 30px;padding:0;border:0;background:transparent;box-shadow:none}
.setup .icon-picker legend{margin-bottom:8px;font-family:inherit;font-size:1rem;font-weight:750}
.icon-description{max-width:720px;margin:0 0 16px;color:#56645a;font-size:.9rem;line-height:1.55}
.icon-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(104px,1fr));gap:13px 14px}
.map-icon-option{position:relative;display:grid;justify-items:center;align-content:start;gap:9px;min-width:0;min-height:128px;margin:0;padding:11px 8px 10px;border:1.5px solid #829583;border-radius:3px;background:#fffaf0;box-shadow:4px 5px 0 #d08c55;text-align:center;cursor:pointer;transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease}
.map-icon-option:hover{transform:translateY(-2px) rotate(-.5deg);border-color:#3f775e;box-shadow:5px 6px 0 #ce3e32}
.map-icon-option:has(input:checked){border:2px solid #ce3e32;background:#fff8e9;box-shadow:5px 6px 0 #3f775e;transform:translateY(-2px) rotate(-1deg)}
.map-icon-option:focus-within{outline:3px solid #ce3e32;outline-offset:3px}
.map-icon-option>input{position:absolute;inset:0;width:100%;height:100%;max-width:none;margin:0;padding:0;opacity:0;cursor:pointer}
.map-icon-option .icon-art{position:relative;display:grid;place-items:center;width:74px;height:74px;padding:4px;overflow:hidden;border:2px solid #29332d;border-radius:50%;background-color:#f6efd9;background-image:radial-gradient(#3f775e35 1.2px,transparent 1.6px);background-size:14px 14px;box-shadow:4px 4px 0 #3f775e;pointer-events:none}
.map-icon-option:nth-child(3n+2) .icon-art{background-color:#f6e2d8;background-image:radial-gradient(#ce3e3230 1.2px,transparent 1.6px);box-shadow:4px 4px 0 #d08c55}
.map-icon-option .map-icon-art{display:block;width:100%;height:100%;object-fit:contain}
.map-icon-option .map-icon-glyph{font-size:39px;line-height:1}
.map-icon-option .icon-label{max-width:100%;color:#29332d;font:700 .84rem/1.18 Georgia,"Times New Roman",serif;overflow-wrap:anywhere;pointer-events:none}
.setup #children-list{gap:9px}
.setup .child-row{grid-template-columns:minmax(0,1fr) minmax(max-content,auto) 36px;grid-template-areas:"name details remove";gap:8px 12px;align-items:center;padding:10px 12px;border:1px solid #d8d9c9;border-radius:4px;background:#fffaf0;box-shadow:2px 3px 0 #d08c55}
.setup .child-row>label{display:grid;grid-template-columns:max-content minmax(0,1fr);align-items:center;gap:10px}
.setup .child-row input,.setup .child-row select{min-width:0;min-height:42px}
.setup .child-row>label{color:#29332d}
.setup .child-row>.remove-child{width:36px;min-width:36px;height:36px;min-height:36px;border-radius:3px;color:#9c3027;font-size:21px}
.setup .child-details{min-width:max-content;border-top:0}
.setup .child-details>summary{padding:0;color:#3f775e;font-size:.82rem;white-space:nowrap}
.setup .child-details-fields{min-width:250px;padding-top:9px}
.setup #area-only-control{align-items:flex-start;max-width:100%;line-height:1.45}
.setup #area-only-control input{flex:0 0 auto;margin-top:4px}
.setup .holiday-date-options button[aria-pressed="true"]{border-color:#ce3e32;background:#fff2d4;box-shadow:3px 3px 0 #3f775e}
.journey-progress-segment{background:#f2ead3;border-color:#829583}
.journey-progress-segment.is-complete{background:#3f775e;border-color:#29332d}
.journey-progress-segment.is-current{background:#e6bd59;border-color:#9a7629}
.journey-progress-sleigh{filter:drop-shadow(3px 3px 0 #ce3e32)}
.mapcard{border:2px solid #29332d;box-shadow:8px 9px 0 #3f775e}
.maphead{padding:21px 24px;background:#fffaf0;border-bottom:4px solid #ce3e32}
.maphead h2{margin:5px 0 2px}
.maphead small{color:#56645a}
#map{height:clamp(360px,58vh,650px);background:#dce8df}
.mapcontrols{padding:14px 18px;background:#fffaf0;border-top:1px solid #d8d9c9}
.mapcontrols button{border-radius:3px}
.destination{display:grid;place-items:center;overflow:hidden;padding:3px;border:2px solid #29332d;background:#fff2d4;color:#ce3e32;box-shadow:3px 3px 0 #d08c55}
.destination .map-icon-art{display:block;width:100%;height:100%;min-width:0;min-height:0;object-fit:contain}
.marker,.child-mode .marker{display:grid!important;place-items:center;width:54px!important;height:54px!important;padding:3px!important;overflow:hidden;border:2px solid #29332d!important;border-radius:50%!important;background:#fffaf0!important;box-shadow:4px 4px 0 #ce3e32!important;filter:none!important;font-size:1rem!important;text-align:center}
.marker .map-icon-art{display:block;width:100%;height:100%;min-width:0;min-height:0;object-fit:contain}
.marker .map-icon-glyph{font-size:31px;line-height:1}
#picker,.review-map,#correct-map{border:2px solid #29332d;border-radius:4px;box-shadow:5px 6px 0 #d08c55}
#picker{height:340px}
.chat{padding:5px}
.bubble{border:1px solid #d8d9c9;border-radius:4px 16px 16px 16px;background:#fffdf7;box-shadow:3px 4px 0 #e8efe1}
.message{border-top:1px dashed #d08c55}
.message.delivered{border-left:4px solid #3f775e}
.envelope{border:1px solid #29332d;border-radius:3px;background:#fff2d4;color:#ce3e32;box-shadow:3px 3px 0 #d08c55}
.badge{display:inline-grid;place-items:center;min-width:30px;height:30px;padding:0 7px;background:#fff2d4;color:#9c3027;border:2px solid #29332d;border-radius:999px;font-size:15px;font-weight:800;line-height:1;box-shadow:2px 2px 0 #3f775e}
.finale{border:2px solid #29332d;border-radius:4px;background:#fff2d4;box-shadow:7px 8px 0 #ce3e32}
.finale-stars{color:#ce3e32}
.share{border:1px dashed #3f775e;border-radius:4px;background:#f6efd9}
.timeline-item,.rehearsal-controls{border:1px solid #d8d9c9;border-radius:4px;background:#fffaf0;box-shadow:3px 4px 0 #d08c55}
.parent-toolbar{border-top:5px solid #ce3e32;background:#fffaf0;box-shadow:0 -4px 0 #3f775e}
#toast{border:1px solid #29332d;border-radius:3px;background:#3f775e;box-shadow:4px 5px 0 #ce3e32}
footer{color:#56645a}
.child-mode{background-color:#e8efe1;background-image:radial-gradient(#3f775e2b 1.2px,transparent 1.5px),radial-gradient(ellipse at top,#fff2d4 0,transparent 58%);background-size:23px 23px,100% 100%;background-repeat:repeat,no-repeat}
.child-intro{padding:22px 26px;border:1.5px solid #29332d;border-top:5px solid #ce3e32;background:#fffaf0;box-shadow:5px 6px 0 #d08c55}
.child-intro h1{font-family:Georgia,"Times New Roman",serif}
.child-mode .mapcard{box-shadow:8px 9px 0 #3f775e}
.child-mode .notice{background:#fff2d4;color:#584526}
.child-mode .inbox-button{border:2px solid #29332d;border-radius:4px;background:#ce3e32;color:#fffaf0;box-shadow:5px 5px 0 #3f775e}
.auth-card{border-top:6px solid #3f775e;box-shadow:7px 8px 0 #d08c55}
.auth-card h1{font-family:Georgia,"Times New Roman",serif}
.language-trigger,.profile-trigger{border:1px solid #829583;background:#fffaf0;box-shadow:2px 2px 0 #d08c55}
.language-menu,.profile-menu{border:1.5px solid #29332d;border-radius:4px;background:#fffaf0;box-shadow:5px 6px 0 #d08c55}
@media(max-width:700px){
  header{gap:10px;padding:15px 16px}
  .brand{font-size:1.05rem}
  #parent-links{gap:12px;font-size:.76rem}
  main{margin:25px auto;padding:0 14px}
  .setup.card{padding:27px 16px}
  .setup form>fieldset[data-step]{padding:0}
  .setup .child-row{grid-template-columns:minmax(0,1fr) 36px;grid-template-areas:"name remove" "details details";gap:8px 10px;padding:10px}
  .setup .child-row>label{grid-template-columns:1fr;gap:4px}
  .setup .child-details{padding-top:7px;border-top:1px solid #d8d9c9}
  .setup .child-details-fields{min-width:0}
  .icon-options{grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}
  .map-icon-option{min-height:116px;padding:9px 6px}
  .map-icon-option .icon-art{width:66px;height:66px}
  .map-icon-option .icon-label{font-size:.77rem}
  .maphead{padding:16px}
  #map{height:clamp(330px,53vh,520px)}
  .child-intro{padding:17px}
}
@media(max-width:390px){
  #parent-links{flex-basis:100%;order:5}
  .icon-options{grid-template-columns:repeat(2,minmax(0,1fr))}
  .map-icon-option{min-height:108px}
}
@media(prefers-reduced-motion:reduce){
  .map-icon-option,button{transition:none}
}
.timeline-editor .timeline-item .format-field{grid-column:1/-1;min-width:0;display:grid;gap:6px}
.timeline-editor .timeline-item .format-label{font-size:13px;font-weight:650;color:#29332d}
.timeline-editor .format-picker{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;width:100%}
.timeline-editor .format-choice{display:grid;grid-template-rows:24px auto;align-content:center;justify-items:center;gap:5px;min-height:74px;padding:9px 12px;text-align:center;line-height:1.1}
.timeline-editor .timeline-item .format-picker .format-choice{grid-column:auto;justify-self:stretch;white-space:normal}
.timeline-editor .format-choice svg{width:24px;height:24px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.timeline-editor .format-choice span{font-size:.85rem;line-height:1.2}
.timeline-editor .format-choice[aria-pressed="true"]{background:#fff2d4;border-color:#ce3e32;color:#9c3027;box-shadow:3px 4px 0 #3f775e}
.timeline-editor .format-choice[aria-pressed="true"]:hover:not(:disabled){background:#f8e9c3}
@media(max-width:700px){
  .timeline-editor .format-picker{max-width:none;gap:7px}
  .timeline-editor .format-choice{min-height:68px;padding:8px 5px}
}
.timeline-editor{gap:8px;margin:10px 0}
.timeline-editor .timeline-item{display:block;padding:10px}
.timeline-editor .timeline-item-head{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;gap:8px;align-items:end}
.timeline-editor .timeline-item-head label{min-width:0;margin:0}
.timeline-editor .timeline-item-head input,.timeline-editor .timeline-item-head select{min-width:0;margin-top:4px;padding:8px 10px;font-size:14px}
.timeline-editor .timeline-item-head .milestone-field>span{display:block;min-height:1.2em}
.timeline-editor .timeline-item-head .timeline-item-remove{grid-column:auto;min-height:39px;padding:7px 10px}
.timeline-editor .timeline-item .format-field{margin-top:9px;gap:4px}
.timeline-editor .format-picker{gap:7px}
.timeline-editor .format-choice{grid-template-rows:20px auto auto;gap:2px;min-height:67px;padding:5px 7px}
.timeline-editor .format-choice svg{width:20px;height:20px}
.timeline-editor .format-choice .format-ai{font-size:10px;line-height:1.1;font-weight:600;color:#748075}
.timeline-editor .format-choice .format-ai span{font-size:10px}
.timeline-editor .format-choice:disabled{background:#f7f5ee;border-style:dashed;box-shadow:none}
.timeline-editor .timeline-message{margin:9px 0 0}
.timeline-editor .timeline-item .timeline-message textarea{height:84px;min-height:84px;padding:9px 11px}
.timeline-editor .timeline-state{margin:8px 0 0}
@media(max-width:600px){
  .timeline-editor .timeline-item-head{grid-template-columns:minmax(0,1fr) auto}
  .timeline-editor .timeline-item-head .milestone-field{grid-column:1/-1}
  .timeline-editor .timeline-item-head .timeline-item-remove{grid-column:2;grid-row:1}
  .timeline-editor .format-picker{gap:5px}
  .timeline-editor .format-choice{min-height:64px;padding:4px 3px}
  .timeline-editor .format-choice span{font-size:12px}
  .timeline-editor .format-choice .format-ai{font-size:9px}
}
.rehearsal-completion{margin-top:22px;padding:18px;border:1px solid #d8d9c9;border-left:5px solid #3f775e;background:#fff2d4}
.rehearsal-completion h2{margin:0 0 8px;font-size:1.3rem}
.rehearsal-completion .check{display:flex;align-items:flex-start;gap:10px;margin:13px 0;cursor:pointer}
.rehearsal-completion .check input{flex:0 0 auto;width:auto;min-height:0;margin:4px 0 0}
.rehearsal-completion button{margin-top:6px}
.rehearsal-completion #rehearsal-review-error{margin-bottom:0}

/* The rehearsal keeps the child's map in front and moves parent controls into a side workspace. */
body.rehearsal-preview{width:100%;height:100%;min-height:100dvh;overflow:hidden;background:#e8efe1}
body.rehearsal-preview>header,body.rehearsal-preview>.notice,body.rehearsal-preview>footer{display:none}
body.rehearsal-preview main#app{display:flex;flex-direction:column;width:100%;max-width:none;height:100dvh;min-height:0;margin:0;padding:0;overflow:hidden}
body.rehearsal-preview #toast{z-index:1100;bottom:18px}
.rehearsal-workspace{position:relative;display:grid;flex:1;grid-template-columns:minmax(0,1fr) minmax(340px,390px);width:100%;min-height:0;overflow:clip}
.rehearsal-child-screen{position:relative;isolation:isolate;min-width:0;min-height:0;height:100%;overflow:hidden;background:#dce8df}
.rehearsal-child-screen .mapcard{position:relative;display:flex;flex-direction:column;width:100%;height:100%;min-height:0;margin:0;border:0;border-radius:0;box-shadow:none}
.rehearsal-child-screen #map{flex:1 1 auto;width:100%;height:100%!important;min-height:0;background:#dce8df}
.rehearsal-child-screen .maphead{position:absolute;z-index:420;top:16px;right:16px;display:flex;align-items:center;gap:16px;width:auto;max-width:250px;padding:11px 14px;border:1px solid #829583;border-bottom:3px solid #ce3e32;background:#fffaf0ed;box-shadow:3px 4px 0 #3f775e}
.rehearsal-child-screen .maphead>div:first-child{flex:1;min-width:0}
.rehearsal-child-screen .maphead h2{display:none}
.rehearsal-child-screen .maphead .pill{display:inline-block}
.rehearsal-child-screen .maphead #clock{display:block;margin-top:3px;font-size:11px}
.rehearsal-child-screen .maphead .eta{flex:0 0 auto}
.rehearsal-child-screen .maphead .eta small{display:block}
.rehearsal-child-screen .maphead .eta strong{max-width:140px;font-size:18px}
.rehearsal-child-screen .child-intro{position:absolute;z-index:420;top:16px;left:16px;width:min(360px,calc(100% - 300px));margin:0;padding:14px 18px;text-align:left;border:1px solid #29332d;border-top:5px solid #ce3e32;background:#fffaf0ed;box-shadow:4px 5px 0 #d08c55}
.rehearsal-child-screen .child-intro h1{font-size:clamp(20px,2vw,27px)}
.rehearsal-child-screen .child-intro p{margin:4px 0 0;font-size:14px}
.rehearsal-child-screen .child-intro{display:none}
.rehearsal-child-screen .mapcontrols{position:absolute;z-index:420;bottom:16px;left:16px;display:flex;max-width:calc(100% - 460px);padding:9px;border:1px solid #829583;background:#fffaf0ed;box-shadow:3px 4px 0 #d08c55}
.rehearsal-child-screen .mapcontrols #connection{display:none}
.rehearsal-child-screen .mapcontrols button{min-height:42px}
.rehearsal-child-screen .inbox-button{position:absolute;z-index:730;right:20px;bottom:calc(18px + env(safe-area-inset-bottom));left:auto;max-width:min(380px,calc(100% - 32px));min-height:62px;transform:none}
.rehearsal-child-screen .chat-icon{display:block;flex:0 0 auto;width:30px;height:30px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.rehearsal-child-screen .inbox{position:absolute;z-index:740;right:20px;bottom:calc(94px + env(safe-area-inset-bottom));display:flex;flex-direction:column;width:min(390px,calc(100% - 32px));max-height:min(72dvh,700px);margin:0;padding:15px;border:1.5px solid #29332d;border-top:5px solid #ce3e32;border-radius:12px;background:#fffaf0;box-shadow:6px 7px 0 #3f775e;overflow:hidden}
.rehearsal-child-screen .inbox>.row{flex:0 0 auto;align-items:center;padding:0 2px 9px;border-bottom:1px solid #d8d9c9}
.rehearsal-child-screen .inbox h2{margin:0;font-family:Georgia,"Times New Roman",serif}
.rehearsal-child-screen .inbox .chat{flex:1 1 auto;min-height:140px;max-height:none;padding:9px 5px;overflow:auto}
.rehearsal-child-screen #inbox[hidden]{display:none!important}
.rehearsal-child-screen .finale{position:absolute;z-index:680;top:50%;left:50%;width:min(520px,calc(100% - 40px));margin:0;transform:translate(-50%,-50%);box-shadow:7px 8px 0 #ce3e32;animation:none}
#finale .finale-close{position:absolute;top:8px;right:8px;display:grid;place-items:center;width:40px;min-width:40px;height:40px;min-height:40px;padding:0;border-radius:50%;font-size:25px;line-height:1}
.rehearsal-parent-panel{position:relative;z-index:800;min-width:0;height:100%;padding:16px;overflow:auto;overscroll-behavior:contain;border-left:1px solid #29332d;border-top:6px solid #ce3e32;background:#fffaf0;box-shadow:-5px 0 0 #3f775e}
.rehearsal-panel-close{display:none}
.rehearsal-controls{margin:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}
.rehearsal-controls>.row{align-items:flex-start;gap:12px}
.rehearsal-controls>.row strong{display:block;font-family:Georgia,"Times New Roman",serif;font-size:21px}
.rehearsal-controls>.row .eyebrow{margin-bottom:3px}
.rehearsal-controls>.row a{font-size:13px;white-space:nowrap}
.rehearsal-controls>p:first-of-type{margin:10px 0 16px;font-size:14px;line-height:1.5}
.rehearsal-controls>label{margin:0 0 12px;font-weight:650}
.rehearsal-main-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:9px 0 14px}
.rehearsal-main-actions button{min-height:46px}
.rehearsal-main-actions #rehearsal-next{grid-column:1/-1}
.rehearsal-advanced{margin:8px 0 18px;border-top:1px solid #d8d9c9;border-bottom:1px solid #d8d9c9}
.rehearsal-advanced>summary{padding:11px 0;font-size:14px}
.rehearsal-check-section{margin:15px 0}
.rehearsal-check-section h2{margin:0 0 6px;font-size:18px}
.rehearsal-checklist{margin:0;padding-left:1.3rem;font-size:14px}
.rehearsal-checklist li{padding:4px 0;line-height:1.4}
.rehearsal-checklist li.done{color:#3f775e}
.rehearsal-checklist label{display:flex;align-items:flex-start;gap:9px;margin:0;cursor:pointer}
.rehearsal-checklist label input{flex:0 0 auto;width:18px;min-height:0;margin:3px 0 0}
.rehearsal-state{margin:10px 0 4px;font-weight:700;color:#3f775e}
.rehearsal-controls>#rehearsal-coverage{font-size:13px;margin:3px 0 8px}
.rehearsal-controls>.muted{font-size:12px;line-height:1.45}
.rehearsal-completion{margin-top:16px;padding:13px;border-left-width:4px}
.rehearsal-completion h2{font-size:19px}
.rehearsal-completion>p{margin:6px 0 10px;font-size:13px;line-height:1.4}
.rehearsal-completion #rehearsal-reviewed{width:100%;min-height:48px}
.rehearsal-panel-toggle,.rehearsal-panel-backdrop{display:none}
@media(max-width:900px){
  .rehearsal-workspace{display:block}
  .rehearsal-child-screen{width:100%;height:100%}
  .rehearsal-child-screen .child-intro{top:14px;left:12px;width:min(310px,calc(100% - 172px));padding:11px 13px}
  .rehearsal-child-screen .child-intro h1{font-size:20px;margin-bottom:5px}
  .rehearsal-child-screen .child-intro p{font-size:12px;line-height:1.35}
  .rehearsal-child-screen .maphead{top:14px;right:12px;gap:8px;max-width:152px;padding:8px 9px}
  .rehearsal-child-screen .maphead .pill{font-size:11px}
  .rehearsal-child-screen .maphead #clock{font-size:10px}
  .rehearsal-child-screen .maphead .eta small{font-size:10px}
  .rehearsal-child-screen .maphead .eta strong{max-width:84px;font-size:15px}
  .rehearsal-child-screen .mapcontrols{bottom:14px;left:12px;right:150px;max-width:none;gap:5px;padding:6px}
  .rehearsal-child-screen .mapcontrols button{flex:1 1 auto;min-width:0;padding:8px 7px;font-size:12px;line-height:1.2}
  .rehearsal-child-screen .inbox-button{right:12px;bottom:calc(12px + env(safe-area-inset-bottom));max-width:144px;min-height:56px;gap:8px;padding:7px 10px;font-size:13px}
  .rehearsal-child-screen .inbox-button .envelope{width:31px;height:31px;font-size:22px}
  .rehearsal-child-screen .inbox-button .chat-icon{width:31px;height:31px}
  .rehearsal-child-screen .inbox-button #inbox-label{white-space:normal;text-align:left;line-height:1.15}
  .rehearsal-child-screen .inbox-button .badge{margin-left:auto}
  .rehearsal-child-screen .inbox{right:10px;bottom:calc(78px + env(safe-area-inset-bottom));width:min(390px,calc(100% - 20px));max-height:min(68dvh,620px)}
  .rehearsal-child-screen .finale{width:calc(100% - 24px)}
  .rehearsal-parent-panel{position:absolute;top:0;right:0;bottom:0;width:min(440px,92vw);height:100%;padding:14px 16px max(16px,env(safe-area-inset-bottom));border-top:6px solid #ce3e32;border-left:2px solid #29332d;box-shadow:-6px 0 0 #3f775e;transform:translateX(calc(100% + 8px));transition:transform .22s ease}
  .rehearsal-workspace[data-parent-open="true"] .rehearsal-parent-panel{transform:translateX(0)}
  .rehearsal-panel-toggle{position:absolute;z-index:760;top:140px;right:12px;display:block;min-height:43px;padding:8px 11px;font-size:13px;font-weight:700}
  .rehearsal-panel-close{display:block;position:sticky;top:0;z-index:2;margin:0 0 10px auto;min-height:38px;padding:6px 11px}
  .rehearsal-panel-backdrop:not([hidden]){position:absolute;inset:0;z-index:780;display:block;width:100%;height:100%;padding:0;border:0;border-radius:0;background:#18271e70;box-shadow:none}
}
@media(max-width:420px){
  .rehearsal-child-screen .child-intro{width:calc(100% - 172px)}
  .rehearsal-child-screen .child-intro h1{font-size:18px}
  .rehearsal-child-screen .mapcontrols{right:138px}
  .rehearsal-child-screen .mapcontrols #whole,.rehearsal-child-screen .mapcontrols #world{display:none}
  .rehearsal-child-screen .inbox-button{max-width:132px}
  .rehearsal-panel-toggle{right:10px;padding:7px 9px;font-size:12px}
}
@media(prefers-reduced-motion:reduce){.rehearsal-parent-panel{transition:none}}

.journey-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 28px;margin:0}.journey-fact{display:grid;grid-template-columns:minmax(125px,.8fr) minmax(0,1.4fr);align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid #d8e0d3}.journey-fact dt{font-weight:650}.journey-fact dd{display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0;margin:0}.journey-fact dd>span{min-width:0;overflow-wrap:anywhere}.journey-fact-symbol{display:grid!important;place-items:center;width:58px;height:58px;flex:0 0 58px;overflow:hidden;border:2px solid #29332d;border-radius:50%;background-color:#f6efd9;background-image:radial-gradient(#3f775e35 1.2px,transparent 1.6px);background-size:14px 14px;box-shadow:4px 4px 0 #3f775e}.journey-fact-symbol .map-icon-art{display:block;width:82%;height:82%;object-fit:contain}.journey-fact-symbol .map-icon-glyph{font-size:34px;line-height:1}.journey-fact-actions{display:flex;flex:0 0 auto;flex-wrap:wrap;gap:6px}.journey-fact-actions button{min-height:34px;margin:0;padding:6px 10px;font-size:13px}.pending-edits{padding:16px 20px}.pending-edits p{margin:8px 0 0}.pending-edits .row{gap:10px}@media(max-width:900px){.journey-facts{grid-template-columns:1fr}}@media(max-width:600px){.journey-fact{grid-template-columns:minmax(110px,.7fr) minmax(0,1.3fr);gap:8px}.journey-fact dd{align-items:flex-start;flex-direction:column}.journey-fact-actions{width:100%}.pending-edits{padding:14px}}

#message-list .message{margin:0;padding:12px 0;border-top:1px solid #dce3d8}#message-list .message-row{display:grid;grid-template-columns:minmax(150px,190px) minmax(0,1fr) auto;align-items:start;gap:10px 18px}.message-meta{display:grid;align-content:start;gap:5px;min-width:0}.message-meta>small{font-size:13px}.message-category{font-size:14px}.message-copy{min-width:0;margin:0;overflow-wrap:anywhere;white-space:pre-wrap}.message-note{grid-column:2/-1}.message-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:7px}.message-actions button{min-height:38px;padding:7px 10px;font-size:14px;white-space:nowrap}.message-state-menu{position:relative;min-width:0;margin:0}.message-state-menu>summary{display:inline-flex;align-items:center;list-style:none;margin:0;padding:4px 9px;cursor:pointer}.message-state-menu>summary::-webkit-details-marker{display:none}.message-state-menu>summary::after{content:'⌄';margin-left:6px;font-size:11px}.message-state-actions{position:absolute;z-index:5;top:calc(100% + 5px);left:0;display:grid;gap:5px;min-width:140px;padding:7px;background:#fffaf0;border:1px solid #d8d9c9;border-radius:8px;box-shadow:3px 4px 0 #d08c55}.message-state-actions button{padding:6px 8px;font-size:12px;text-align:left}@media(max-width:900px){#message-list .message-row{grid-template-columns:minmax(130px,170px) minmax(0,1fr) auto;gap:9px 12px}.message-actions{gap:5px}.message-actions button{padding:6px 8px;font-size:13px}}@media(max-width:700px){#message-list .message-row{grid-template-columns:minmax(0,1fr) auto;gap:8px 12px}.message-meta{grid-column:1/-1;display:flex;align-items:center;flex-wrap:wrap;gap:6px 12px}.message-copy,.message-note{grid-column:1/-1}.message-actions{grid-column:1/-1;justify-content:flex-end}}

/* Child messages read as one conversation, with each note visible in its bubble. */
.child-mode #inbox>.row{align-items:center;padding-bottom:10px;border-bottom:1px solid #d8d9c9}
.child-mode #inbox>.row h2{margin:0;font-family:Georgia,"Times New Roman",serif}
.child-mode #inbox>.row small{display:block;margin-top:2px}
.child-mode #inbox .chat{display:flex;flex-direction:column;gap:12px;padding:14px 5px}
.child-mode #inbox .bubble.letter{align-self:flex-start;width:fit-content;max-width:90%;margin:0;padding:11px 14px 12px;border:1px solid #d8d9c9;border-radius:17px 17px 17px 5px;background:#fffdf7;box-shadow:2px 3px 0 #e8efe1}
.child-mode #inbox .letter-meta{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 9px;color:#627268;font-size:12px}
.child-mode #inbox .letter-sender{color:#3f775e;font-weight:750}
.child-mode #inbox .letter-recipient{font-weight:600}
.child-mode #inbox .letter-meta time{margin-left:auto;color:#748075;font-size:11px}
.child-mode #inbox .bubble.letter .letter-text{margin:7px 0 0;font-size:clamp(17px,2vw,20px);line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}
.child-mode #inbox .bubble.letter .reactions{gap:5px;margin-top:9px}
.child-mode #inbox .bubble.letter .reactions button{min-width:44px;min-height:44px;margin-top:0;padding:4px 8px;border-radius:12px;font-size:23px}

/* Compact character-led chat with a single-tap collapse header. */
.child-mode #inbox>.chat-header{display:flex;align-items:center;gap:11px;width:100%;min-height:54px;margin:0;padding:3px 2px 12px;border:0;border-bottom:1px solid #d8d9c9;border-radius:0;background:transparent;color:inherit;box-shadow:none;text-align:left;cursor:pointer}
.child-mode #inbox>.chat-header:hover,.child-mode #inbox>.chat-header:active{background:transparent;box-shadow:none;transform:none}
.child-mode #inbox>.chat-header:focus-visible{outline:3px solid #ce3e32;outline-offset:2px}
.child-mode #inbox .chat-header-avatar{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;overflow:hidden;border:1px solid #9bad99;border-radius:50%;background:#fff2d4;box-shadow:2px 3px 0 #d08c55}
.child-mode #inbox .chat-header-avatar .map-icon-art{display:block;width:100%;height:100%;object-fit:contain}
.child-mode #inbox .chat-header-avatar .map-icon-glyph{font-size:23px;line-height:1}
.child-mode #inbox .chat-heading-name{min-width:0;font-family:Georgia,"Times New Roman",serif;font-size:25px;font-weight:750;line-height:1.1}
.child-mode #inbox .chat-close-icon{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;margin-left:auto;border:1px solid #9bad99;border-radius:50%;background:#fff8e8;box-shadow:2px 3px 0 #d08c55;font-family:Arial,sans-serif;font-size:25px;line-height:1}
.child-mode #inbox .chat{gap:14px;padding:15px 4px 20px}
.child-mode #inbox .chat-line{display:flex;align-items:flex-end;gap:6px;width:100%;min-width:0}
.child-mode #inbox .letter-avatar{display:grid;place-items:center;flex:0 0 30px;width:30px;height:30px;margin-bottom:5px;overflow:hidden;border:1px solid #9bad99;border-radius:50%;background:#fff8e8;box-shadow:1px 2px 0 #d08c55}
.child-mode #inbox .letter-avatar .map-icon-art{display:block;width:100%;height:100%;object-fit:contain}
.child-mode #inbox .letter-avatar .map-icon-glyph{font-size:17px;line-height:1}
.child-mode #inbox .chat-line .bubble.letter{position:relative;flex:0 1 auto;align-self:flex-start;width:fit-content;max-width:calc(100% - 36px);min-width:0;margin:0 0 4px;padding:10px 13px 39px;border:1px solid #d8d9c9;border-radius:17px 17px 17px 5px;background:#fffdf7;box-shadow:2px 3px 0 #e8efe1;overflow-wrap:anywhere}
.child-mode #inbox .letter-meta{display:flex;justify-content:flex-end;align-items:baseline;min-height:14px;color:#748075;font-size:11px}
.child-mode #inbox .letter-meta time{margin-left:auto;font-size:11px}
.child-mode #inbox .chat-line .bubble.letter .letter-text{margin:5px 0 0;font-size:clamp(16px,2vw,20px);line-height:1.48;white-space:pre-wrap;overflow-wrap:anywhere}
.child-mode #inbox .letter-reactions{position:absolute;right:7px;bottom:6px;display:flex;align-items:center;gap:4px;min-height:27px}
.child-mode #inbox .letter-reactions[hidden],.child-mode #inbox .chat-reaction-picker[hidden]{display:none!important}
.child-mode #inbox .chat-reaction-badges{display:flex;align-items:center;gap:3px}
.child-mode #inbox .chat-reaction-badge{display:flex;align-items:center;justify-content:center;gap:3px;min-width:28px;min-height:25px;height:25px;margin:0;padding:2px 6px;border:1px solid #d9dccf;border-radius:14px;background:#fff8e8;box-shadow:1px 2px 0 #d8e3d6;font-size:13px;line-height:1}
.child-mode #inbox .chat-reaction-badge[aria-pressed=true]{border-color:#cfaf5c;background:#fff0c7}
.child-mode #inbox .chat-reaction-badge small{font-size:10px;line-height:1}
.child-mode #inbox .chat-reaction-trigger{position:relative;display:grid;place-items:center;flex:0 0 28px;width:28px;min-width:28px;min-height:25px;height:25px;margin:0;padding:0;border:1px solid #d9dccf;border-radius:14px;background:#fff8e8;box-shadow:1px 2px 0 #d8e3d6;font-size:17px;line-height:1}
.child-mode #inbox .chat-reaction-trigger small{position:absolute;top:0;right:3px;font-size:9px;line-height:1}
.child-mode #inbox .chat-reaction-picker{position:absolute;z-index:5;right:0;bottom:calc(100% + 7px);display:flex;align-items:center;gap:3px;padding:5px;border:1px solid #cbd5c7;border-radius:20px;background:#fffaf0;box-shadow:3px 4px 0 #3f775e;white-space:nowrap}
.child-mode #inbox .chat-reaction-picker button{display:grid;place-items:center;flex:0 0 32px;width:32px;min-width:32px;min-height:32px;height:32px;margin:0;padding:2px;border:0;border-radius:50%;background:transparent;box-shadow:none;font-size:20px;line-height:1}
.child-mode #inbox .chat-reaction-picker button:hover,.child-mode #inbox .chat-reaction-picker button[aria-pressed=true]{background:#f4e5be;box-shadow:none}
.rehearsal-child-screen .inbox>.chat-header{flex:0 0 auto;padding:0 2px 10px}
.rehearsal-child-screen .inbox .chat-header-avatar{flex-basis:38px;width:38px;height:38px}
.rehearsal-child-screen .inbox .chat-heading-name{font-size:23px}
@media(max-width:420px){
  .child-mode #inbox .chat-header-avatar{flex-basis:38px;width:38px;height:38px}
  .child-mode #inbox .chat-heading-name{font-size:23px}
  .child-mode #inbox .letter-avatar{flex-basis:27px;width:27px;height:27px}
  .child-mode #inbox .chat-line{gap:5px}
  .child-mode #inbox .chat-line .bubble.letter{max-width:calc(100% - 32px);padding-right:10px;padding-left:11px}
  .child-mode #inbox .chat-reaction-picker{gap:1px;padding:4px}
  .child-mode #inbox .chat-reaction-picker button{flex-basis:29px;width:29px;min-width:29px;height:30px;min-height:30px;font-size:18px}
}


/* Keep the parent dashboard compact while preserving a clear mobile layout. */
body{min-height:100vh;min-height:100dvh;display:flex;flex-direction:column}
body>header,body>.notice,body>main,body>footer{flex-shrink:0}
body>main{width:100%}
#footer{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:8px 14px;max-width:1400px;margin:auto auto 0;padding:14px 24px 22px;color:#748075;font-size:.76rem}
#parent-links{display:flex;align-items:center;gap:8px;font-size:inherit}
#parent-links a{color:#748075;text-decoration:none}
#parent-links a:hover{text-decoration:underline}
.dashboard-hero{max-width:none;margin:38px 0 34px}
.dashboard-hero h1{margin:0}
.dashboard-section{margin:30px 0}
.journey-grid{grid-template-columns:1fr;gap:16px}
.journey-overview{display:flex;align-items:center;justify-content:space-between;gap:22px;padding:18px 22px}
.journey-overview__summary{display:flex;align-items:center;flex:1 1 auto;flex-wrap:wrap;gap:8px 16px;min-width:0}
.journey-overview h3{flex:0 0 auto;margin:0;font-size:1.2rem}
.journey-overview p,.journey-overview__children{margin:0;color:#56645a;font-size:.92rem}
.journey-overview__children{overflow-wrap:anywhere}
.journey-overview__actions{display:flex;align-items:center;justify-content:flex-end;flex:0 1 auto;flex-wrap:wrap;gap:12px}
.journey-overview__actions button{margin:0}
@media(max-width:900px){
  .journey-overview{align-items:flex-start;flex-direction:column;gap:14px}
  .journey-overview__summary{width:100%;gap:7px 12px}
  .journey-overview__actions{width:100%;justify-content:flex-start}
}
@media(max-width:600px){
  #footer{padding:14px 16px 22px}
  .journey-overview{padding:16px}
  .journey-overview__summary{display:grid;grid-template-columns:max-content minmax(0,1fr);align-items:center}
  .journey-overview__summary .pill{justify-self:start}
  .journey-overview__summary h3{white-space:normal}
  .journey-overview__summary p,.journey-overview__children{grid-column:1/-1}
  .journey-overview__actions{gap:10px}
}

/* Separate the day overview from the live controls page. */
.parent-page-actions{gap:10px;justify-content:flex-end}
.parent-page-actions .button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 14px;border:1px solid #3f775e;border-radius:3px;background:#3f775e;color:#fffaf0;text-decoration:none;font-weight:650;box-shadow:3px 4px 0 #ce3e32}
#app[data-day-control="false"] #rehearsal-panel{display:none}
#app[data-day-control="true"] .layout{grid-template-columns:minmax(0,1fr)}
#app[data-day-control="true"] .layout>aside{display:none}
body:has(#app[data-day-control="false"]){padding-bottom:0}
body:has(#app[data-day-control="false"]) #toast{bottom:20px}
@media(max-width:700px){.parent-page-actions{justify-content:flex-start}.parent-page-actions .button{min-height:42px}}

/* The shared child view is a map-first, full-window experience. */
body.watch-mode{width:100%;height:100dvh;min-height:0;overflow:hidden;background:#dce8df}
body.watch-mode>header,body.watch-mode>.notice,body.watch-mode>footer{display:none!important}
body.watch-mode main#app{position:fixed;inset:0;z-index:0;display:block;width:100%;max-width:none;height:100dvh;min-height:0;margin:0;padding:0;overflow:hidden}
body.watch-mode #app>.child-intro{display:none}
body.watch-mode .mapcard{position:absolute;inset:0;display:block;width:100%;height:100%;min-height:0;margin:0;border:0;border-radius:0;box-shadow:none}
body.watch-mode .maphead,body.watch-mode .mapcontrols{display:none}
body.watch-mode #map{width:100%;height:100%!important;min-height:0;background:#dce8df}
body.watch-mode .departure-overlay{position:fixed;z-index:620;right:18px;bottom:calc(100px + env(safe-area-inset-bottom));display:flex;align-items:center;gap:15px;width:min(410px,calc(100% - 36px));padding:16px 19px;border:1px solid #536e5e;border-left:5px solid #ce3e32;border-radius:15px;background:rgba(255,250,240,.9);box-shadow:0 8px 32px rgba(25,48,39,.25);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);pointer-events:none}
body.watch-mode .departure-overlay[hidden]{display:none!important}
body.watch-mode .departure-avatar{display:grid;flex:0 0 58px;place-items:center;width:58px;height:58px;overflow:hidden;border:2px solid #29332d;border-radius:50%;background:#fff8e8;box-shadow:3px 3px 0 #d08c55}
body.watch-mode .departure-avatar .map-icon-art{display:block;width:100%;height:100%;object-fit:contain}
body.watch-mode .departure-avatar .map-icon-glyph{font-size:34px;line-height:1}
body.watch-mode .departure-copy{min-width:0}
body.watch-mode .departure-status{display:inline-block;margin-bottom:4px;padding:2px 8px;border:1px solid #d8b56a;border-radius:999px;background:#fff2d4;color:#715820;font-size:11px;font-weight:750;letter-spacing:.04em;text-transform:uppercase}
body.watch-mode .departure-copy h1{margin:0;font-family:Georgia,"Times New Roman",serif;font-size:clamp(20px,2.4vw,28px);line-height:1.12;letter-spacing:-.4px}
body.watch-mode .departure-copy p{margin:5px 0;color:#56645a;font-size:13px;line-height:1.35}
body.watch-mode .departure-countdown{display:block;margin:5px 0 1px;color:#29483b;font-size:clamp(24px,3.3vw,35px);font-variant-numeric:tabular-nums;letter-spacing:.025em;line-height:1.15}
body.watch-mode .departure-time{display:block;color:#627268;font-size:11px}
body.watch-mode .inbox-button{position:fixed;z-index:650;right:18px;bottom:calc(28px + env(safe-area-inset-bottom));left:auto;max-width:calc(100% - 36px);transform:none}
body.watch-mode #inbox{position:fixed;z-index:740;right:18px;bottom:calc(100px + env(safe-area-inset-bottom));display:flex;flex-direction:column;width:min(390px,calc(100% - 36px));max-height:min(72dvh,700px);margin:0;padding:15px;border:1.5px solid #29332d;border-top:5px solid #ce3e32;border-radius:12px;background:#fffaf0;box-shadow:6px 7px 0 #3f775e;overflow:hidden}
body.watch-mode #inbox[hidden]{display:none!important}
body.watch-mode #inbox>.chat-header{flex:0 0 auto}
body.watch-mode #inbox .chat{flex:1 1 auto;min-height:90px;max-height:none;overflow:auto}
body.watch-mode #toast{z-index:1100;bottom:calc(18px + env(safe-area-inset-bottom))}
@media(max-width:600px){body.watch-mode .departure-overlay{right:12px;bottom:calc(100px + env(safe-area-inset-bottom));width:calc(100% - 24px);gap:11px;padding:13px 14px}body.watch-mode .departure-avatar{flex-basis:48px;width:48px;height:48px}body.watch-mode .departure-copy h1{font-size:21px}body.watch-mode .departure-countdown{font-size:28px}body.watch-mode .inbox-button{right:12px;bottom:calc(28px + env(safe-area-inset-bottom));max-width:calc(100% - 24px)}body.watch-mode #inbox{right:12px;bottom:calc(100px + env(safe-area-inset-bottom));width:calc(100% - 24px)}}

/* Focused family workflow; preserve the existing holiday palette and typography. */
.story-summary{padding:1rem;background:var(--paper,#faf7ef);border-radius:12px;margin-bottom:1rem}
.story-summary p{margin:.35rem 0}.story-moment{padding:1rem}.story-moment p{white-space:pre-line;line-height:1.65;margin:.7rem 0 0}.timeline-editor .story-moment{border:1px solid #d9e1d8}
.experience-return{position:relative;z-index:1001;display:flex;justify-content:space-between;gap:1rem;align-items:center;padding:.7rem 1rem;background:#fffdf7;border-bottom:1px solid #d9e1d8}.experience-return a{color:#315c45;font-weight:600}
body.child-mode .experience-return{flex-shrink:0}.rehearsal-workspace{min-height:0}.change-review{max-height:45vh;overflow:auto;border-top:1px solid #d9e1d8;margin-top:1rem}
.change-review .story-moment{border-bottom:1px solid #d9e1d8}.checkout .primary{margin-top:1rem}.focused-message textarea,#focused-text,#moment-text{min-height:150px}
#co-parents>summary{font-weight:600;cursor:pointer}.parent-page-actions{gap:.5rem}.journey-facts{display:flex;flex-direction:column}
@media(max-width:600px){.experience-return{font-size:.9rem}.parent-page-actions{width:100%}.parent-page-actions .button,.parent-page-actions button{flex:1}.story-moment .row{align-items:center}.checkout{padding:1.25rem}.journey-fact dd{gap:.75rem}.setup .row{gap:.5rem}}

/* Seasonal use: clear steps, state-led actions and comfortable phone controls. */
.setup .child-row{display:grid;grid-template-columns:minmax(0,1fr) 44px;gap:10px;align-items:end}.setup .child-row label{margin:0}.setup .child-row .remove-child{min-width:44px;min-height:44px;padding:8px;margin-bottom:0}
.setup button,.payment-inline button,.parent-page-actions button,.parent-page-actions .button,.journey-overview__actions button{min-height:44px}
.personal-preview{margin:22px 0;padding:14px 17px;border-left:4px solid #3f775e;background:#f4f7ef}.personal-preview p{margin:8px 0 0;line-height:1.55}.setup #picker{height:280px;border-radius:8px}.setup #picker-panel>summary,.suggested-start summary{min-height:44px;cursor:pointer;padding:10px 0}.suggested-start{margin:20px 0}.suggested-start p{font-weight:650}.wizard-actions{margin-top:24px;padding-top:15px;border-top:1px solid #d8d9c9}.wizard-actions .primary{flex:1}
.review-fact{display:flex;justify-content:space-between;align-items:center;gap:18px;margin:14px 0}.review-fact>span{min-width:0;overflow-wrap:anywhere}.review-fact button{flex-shrink:0}.story-summary>strong{font-size:1.2rem}
.payment-inline{display:flex;flex-wrap:wrap;align-items:end;gap:12px;margin:15px 0}.payment-inline label{margin:0;min-width:110px}.payment-inline select{min-height:44px}.payment-inline button{flex:1;min-width:170px}.payment-error:empty{display:none}.payment-unavailable{font-weight:650;line-height:1.5}
.parent-page-actions .button:not(.primary){background:#fffaf0;color:#29332d;box-shadow:2px 3px 0 #d08c55}.parent-page-actions .button.primary{background:#3f775e;color:#fffaf0}.day-more>summary,.journey-more>summary{cursor:pointer;min-height:44px;padding:10px}.day-more[open]{display:flex;flex-wrap:wrap;gap:8px}.day-more button{margin:6px}
.journey-overview__actions .payment-inline{margin:0}.journey-overview__actions .payment-error{flex-basis:100%}.journey-overview__summary>small{flex-basis:100%}.sharing-dialog #invitation-payload{min-height:150px;margin:15px 0}.sharing-dialog .share-generated>.row{margin-bottom:16px}
@media(max-width:600px){.setup{padding:20px}.setup h1{font-size:29px}.journey-progress-labels{gap:4px;font-size:12px}.review-fact{align-items:flex-start;gap:10px}.review-fact button{padding:8px;font-size:13px}.payment-inline{width:100%}.payment-inline button{min-width:0}.journey-overview__actions{align-items:flex-start}.journey-overview__actions .payment-inline{flex-basis:100%}.parent-page-actions{gap:8px}.parent-page-actions button,.parent-page-actions .button{flex:0 1 auto}.parent-page-actions .primary{flex:1}.wizard-actions #next-step,.wizard-actions #wizard-submit{flex-basis:100%;order:-1}.wizard-actions #previous-step,.wizard-actions #save-exit{flex:1}}

.auth-social{display:grid;gap:22px;margin:0 0 22px;text-align:center}.auth-google{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;min-height:48px;padding:12px;background:#fff;color:#1f1f1f;border:1px solid #747775;font-weight:600}.auth-google-logo{flex:0 0 20px;width:20px;height:20px;object-fit:contain}.auth-divider{display:flex;align-items:center;gap:12px;color:#627268;font-size:13px}.auth-divider::before,.auth-divider::after{content:"";flex:1;border-top:1px solid #cbd6c8}.auth-divider span{flex-shrink:0}

/* The overview has one action row; status stays quiet and never becomes an approval card. */
.parent-heading{align-items:flex-start;gap:24px}.parent-heading>div:first-child{min-width:0}.parent-heading h1{overflow-wrap:anywhere}
#app[data-day-control="false"] .parent-heading h1{font-size:clamp(1.45rem,2.5vw,2rem)}
#app[data-day-control="false"] :is(#preparation>h2,#map-title,#story-plan>h2){font-size:25px}
@media(max-width:600px){#app[data-day-control="false"] :is(#preparation>h2,#map-title,#story-plan>h2){font-size:22px}}
.parent-page-actions{align-items:center;flex-shrink:0;max-width:100%}.parent-page-actions #schedule-story{white-space:normal;max-width:100%}
.plan-summary{margin:0 0 24px;padding:0;color:#55675b}.plan-summary .pill{background:transparent;border:0;padding:0;font-weight:700;color:#3f775e}.plan-summary #day-status{margin:8px 0 0;max-width:72ch;line-height:1.5}
@media(max-width:900px){.parent-heading{flex-wrap:wrap}.parent-page-actions{width:100%;justify-content:flex-start}.parent-page-actions #schedule-story{flex:0 1 auto}}
@media(max-width:600px){.parent-heading{gap:14px}.parent-page-actions #schedule-story{flex-basis:100%;width:100%;order:-1}.parent-page-actions #rehearse-overview,.parent-page-actions #share-open{flex:1}.plan-summary{margin-bottom:20px}}

.message-actions .message-delete{display:inline-flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;min-height:44px;padding:10px;border:0;background:transparent;box-shadow:none}.message-actions .message-delete:hover{background:#fce8e4}.message-actions .message-delete svg{display:block;flex-shrink:0}

/* Message decisions keep readable labels as well as distinct status colours. */
.message-state-menu>.pill[data-message-state="approved"]{background:#e5f2e8;color:#245c3e;border-color:#417b58}
.message-state-menu>.pill[data-message-state="pending"],.message-state-menu>.pill[data-message-state="held"]{background:#fff0d6;color:#865000;border-color:#aa6400}
.message-state-menu>.pill[data-message-state="omitted"]{background:#fce8e4;color:#a52c26;border-color:#b54b40}

/* Familiar transport controls, separate from real-day parent interventions. */
.rehearsal-transport{display:grid;grid-template-columns:48px minmax(0,1fr) 48px 48px;gap:8px;margin:16px 0 10px}
.rehearsal-transport button{min-width:0;min-height:52px;padding:8px;font-size:18px}
.rehearsal-transport .primary{font-size:16px}
.rehearsal-reset{width:100%;min-height:44px}
.rehearsal-controls .rehearsal-player-help,.rehearsal-advanced p{font-size:13px;line-height:1.5}
.rehearsal-controls #rehearsal-tempo-help{min-height:36px;font-size:12px;line-height:1.5}

/* One question per screen; the chapter timeline is the second part. */
.setup .setup-phase{margin:0 0 2px;font-size:.87rem;font-weight:700;color:#3f775e}
.recipient-choice{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.recipient-choice legend{margin-bottom:14px}
.recipient-choice label{display:flex;align-items:center;gap:9px;min-height:52px;margin:0;padding:12px;border:1px solid #829583;background:#fffdf7;border-radius:4px;cursor:pointer}
.recipient-choice label:has(input:checked){border:2px solid #3f775e;background:#edf2e7;padding:11px}
.recipient-choice input{width:auto;min-height:0;margin:0;accent-color:#3f775e}
.story-chapters{position:relative;padding-left:20px;border-left:3px solid #829583;margin-left:12px}
.story-chapters .timeline-item{margin:14px 0 24px;background:#fffdf7}
.story-chapters .chapter-milestone{position:relative;margin:24px 0;padding:18px 20px;border:1px solid #829583;border-radius:4px;background:#edf2e7}
.story-chapters .chapter-milestone h3{font-family:Georgia,serif;font-size:1.25rem;margin:6px 0}
.story-chapters .chapter-milestone p{margin:4px 0 12px}
.chapter-dot{position:absolute;left:-37px;top:15px;display:grid;place-items:center;width:30px;height:30px;border:2px solid #3f775e;border-radius:50%;background:#fffaf0;color:#29332d;font-size:18px}
@media(max-width:460px){.story-chapters{padding-left:14px;margin-left:4px}.chapter-dot{left:-31px;width:27px;height:27px}.story-chapters .chapter-milestone{padding:14px}.setup .wizard-actions{gap:12px}.setup .wizard-actions #next-step{order:1;width:100%;flex-basis:100%}.setup .wizard-actions #previous-step{order:2}.setup .wizard-actions #save-exit{order:3}}

/* Shared editing access stays beside child sharing, with a compact mobile target. */
.parent-page-actions :is(.people-trigger,.settings-trigger){display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:10px;flex:0 0 auto}
.people-dialog{width:min(620px,calc(100% - 24px))}
.people-dialog h2{font-size:1.6rem}.people-dialog>p{margin:12px 0}.people-dialog .access-permissions{font-size:.9rem;color:#596b5c}
.access-invite-form{margin-top:20px}.access-invite-form label{font-weight:600}.access-invite-form .row{gap:10px;align-items:stretch}.access-invite-form input{flex:1;min-width:0;width:220px}.access-invite-form button{white-space:nowrap}
.access-person{display:flex;gap:12px;align-items:center;justify-content:space-between;padding:12px 0;border-bottom:1px solid #d6ddcc}.access-person>span{min-width:0;overflow-wrap:anywhere}.access-person small{display:block;color:#596b5c;font-size:.82rem;margin-top:3px}.access-person button{flex:0 0 auto;font-size:.85rem;min-height:44px;padding:8px 12px}.access-management h3{font-size:1rem;margin:22px 0 4px}.access-ready{padding:16px;background:#edf2e5;border:1px solid #cdd8c8;border-radius:10px}.access-ready p{font-size:.9rem}.access-ready input{width:100%;margin-top:12px;font-size:.85rem}.access-ready .row{gap:10px}.access-ready .button{display:inline-flex;align-items:center}
@media(max-width:600px){.parent-page-actions :is(.people-trigger,.settings-trigger){flex:0 0 44px}.access-invite-form input{width:100%;flex-basis:100%}.access-invite-form button{width:100%}.access-person{align-items:flex-start}.people-dialog{padding:18px}.people-dialog h2{font-size:1.35rem}}

.story-settings-dialog{width:min(480px,calc(100% - 24px))}
.story-settings-dialog h2{font-size:1.6rem}
.story-settings-dialog .story-keep{margin:22px 0 8px;font-size:1rem;align-items:flex-start;cursor:pointer}
.story-settings-dialog .story-keep input{flex:0 0 auto;width:20px;height:20px;margin-top:2px;accent-color:#3f775e}
.story-settings-dialog #story-deletion-date{margin:8px 0 20px;font-size:.9rem}
.story-settings-dialog #story-settings-error:empty{display:none}
.story-settings-danger{margin-top:24px;padding-top:18px;border-top:1px solid #d9e1d8}
@media(max-width:600px){.story-settings-dialog{padding:18px}.story-settings-dialog h2{font-size:1.35rem}}

#app:has(.parent-heading) .layout{grid-template-columns:minmax(0,1fr)}

/* Account administration uses the existing family application palette and card controls. */
.admin-page{max-width:1240px;margin:0 auto}.admin-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:20px 0 28px}.admin-heading h1{margin:12px 0 8px}.admin-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:20px 0 28px}.admin-stats .card{margin:0;padding:20px;display:flex;flex-direction:column;gap:12px}.admin-stats strong{font-size:2rem}.admin-columns{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:24px;align-items:start}.admin-page textarea,.admin-page input,.admin-page select{width:100%;box-sizing:border-box}.admin-page label{display:block;margin:14px 0 8px}.admin-page textarea{padding:12px;border:2px solid currentColor;border-radius:8px;background:var(--paper,#fffaf0);font:inherit}.admin-page button{margin:8px 8px 8px 0}.admin-page [hidden]{display:none!important}.admin-result-list{padding:0;list-style:none}.admin-result-list li{padding:12px 0;border-bottom:1px solid #d6ded4;display:flex;flex-direction:column;gap:5px;overflow-wrap:anywhere}.admin-table-wrap{overflow-x:auto}.admin-page table{width:100%;border-collapse:collapse;text-align:left}.admin-page th,.admin-page td{padding:12px 10px;border-bottom:1px solid #d6ded4;vertical-align:top}.admin-page td:first-child{overflow-wrap:anywhere}.admin-member-details{display:grid;grid-template-columns:auto 1fr;gap:10px}.admin-member-details dd{margin:0}.admin-page #admin-status:not(:empty){padding:14px;border:2px solid currentColor;border-radius:8px}.admin-page .card{min-width:0}.admin-page p{line-height:1.55}@media(max-width:760px){.admin-columns{grid-template-columns:1fr}.admin-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-heading{align-items:flex-start;flex-direction:column}.admin-page th,.admin-page td{padding:8px}.admin-stats .card{padding:14px}.admin-stats strong{font-size:1.6rem}}

.admin-member-details dd,#admin-member h3{overflow-wrap:anywhere}.admin-member-details dd{min-width:0}

/* Administration sections retain the application palette and keyboard navigation. */
.admin-tabs{display:flex;gap:8px;border-bottom:2px solid #b6c6b5;margin:12px 0 24px;padding-bottom:8px;flex-wrap:wrap}.admin-tabs button{margin:0;border:2px solid transparent;box-shadow:none;background:transparent}.admin-tabs button[aria-selected="true"]{border-color:#315f4a;background:#3f765e;color:#fff}.admin-tabs button:focus-visible{outline:3px solid #d18a4c;outline-offset:3px}.admin-chart-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:24px}.admin-chart-grid .card{min-width:0}.admin-chart-grid h3{font-size:1.5rem;margin:0 0 10px}.admin-chart{display:block;width:100%;height:auto;overflow:visible}.admin-chart text{fill:#58685f;font:12px system-ui,sans-serif}.admin-chart-legend{display:flex;gap:18px;flex-wrap:wrap;margin:18px 0}.admin-chart-legend span{display:inline-flex;gap:7px;align-items:center}.admin-chart-legend i{display:inline-block;width:12px;height:12px;border-radius:3px}.admin-chart-data summary{cursor:pointer;text-decoration:underline}.admin-chart-data table{font-size:.9rem}.admin-report-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.admin-report-heading label{min-width:200px}.admin-search{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin-bottom:20px}.admin-search label{flex:1;min-width:180px}.admin-search button{margin-bottom:8px}.admin-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:16px}.admin-page .admin-user-link{display:block;text-align:left;padding:0;margin:0 0 6px;border:0;box-shadow:none;background:none;color:#315f4a;text-decoration:underline;font-weight:700;overflow-wrap:anywhere}.admin-page .admin-user-link:hover:not(:disabled){transform:none;box-shadow:none;background:none}.admin-page td small{display:block;overflow-wrap:anywhere}.admin-detail-counts{display:flex;gap:12px;flex-wrap:wrap;margin:24px 0}.admin-detail-counts span{padding:12px 16px;background:#e8efdf;border:1px solid #b6c6b5;border-radius:5px}.admin-detail-counts strong{display:block;font-size:1.7rem}.admin-member-details{grid-template-columns:minmax(120px,auto) minmax(0,1fr)}
@media(max-width:760px){.admin-chart-grid{grid-template-columns:1fr}.admin-report-heading{align-items:start;flex-direction:column}.admin-report-heading label{width:100%;margin-top:0}.admin-tabs{gap:4px}.admin-tabs button{padding:10px 13px}.admin-member-details{grid-template-columns:1fr;gap:4px}.admin-member-details dd{margin-bottom:12px}.admin-detail-counts span{flex:1;min-width:120px}.admin-pagination{font-size:.85rem}.admin-page #admin-user-directory th{white-space:nowrap}}
@media(max-width:760px){.admin-chart text{font-size:26px}.admin-page #admin-user-detail table{min-width:680px}}
