/* V26 bounded entrance and family surfaces. The v25 activity toolbar is unchanged. */
#entry-open,#entry-calendars,.entry-panel button{min-height:44px;min-width:44px;font:inherit;font-weight:700;cursor:pointer;border:1px solid #795b39;border-radius:10px;padding:10px 18px;background:#fff8e9;color:#244d37}
#entry-open,.entry-panel button[type=submit]{background:#244d37;color:#fff8e9;border-color:#244d37}
.site-header #entry-open{display:inline-flex!important;align-items:center;justify-content:center;margin-left:8px}
#entry-calendars{margin-left:8px}
html[data-entry-audience=nonmember] #gift-name-edit,html[data-entry-audience=nonmember] #family-current{display:none!important}
html[data-entry-audience=member] #family-current{display:none!important}
html[data-gift-marketing=true] #gift-book-spread{pointer-events:none!important}
html[data-entry-access=preview] #gift-open{display:none!important}
html[data-entry-access=preview] #gift-stage{cursor:grab}
#gift-house .gift-front{transition:transform .5s ease,filter .5s ease}

.entry-peek-hint{position:fixed;bottom:28px;left:16px;right:16px;text-align:center;color:#244d37;font-size:16px;pointer-events:none}
html[data-entry-screen=email] #gift-v7,html[data-entry-screen=setup] #gift-v7,html[data-entry-screen=dashboard] #gift-v7{display:none!important}
html[data-entry-screen=email] body,html[data-entry-screen=setup] body,html[data-entry-screen=dashboard] body{overflow:auto!important}
html[data-entry-screen=email] .site-header,html[data-entry-screen=setup] .site-header,html[data-entry-screen=dashboard] .site-header{position:relative;inset:auto;display:flex!important;justify-content:flex-end;padding:12px!important;flex-wrap:wrap;gap:8px}
.entry-panel{box-sizing:border-box;max-width:1000px;margin:0 auto;padding:24px 24px 64px;color:#244d37;font-family:inherit}
.entry-panel[hidden]{display:none!important}.entry-panel h1{font-size:clamp(27px,4vw,40px);line-height:1.15;margin:30px 0 12px;color:#244d37}.entry-panel p{line-height:1.6;max-width:65ch}
#kit-inline-slot{background:#fff8e9;border:2px dashed #927149;border-radius:14px;padding:30px;min-height:120px;max-width:600px;box-sizing:border-box;margin:26px 0}
.entry-disclosure{font-size:14px;color:#684c38}
#entry-child-form{max-width:620px}#entry-child-form>label{display:block;font-weight:700;margin:20px 0 6px}#entry-child-form input,#entry-child-form select{display:block;box-sizing:border-box;width:100%;min-height:48px;font:inherit;background:#fff8e9;color:#244d37;border:1px solid #927149;border-radius:8px;padding:10px}
.entry-actions{display:flex;gap:12px;margin:28px 0;flex-wrap:wrap}
.entry-child-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin:28px 0}
.entry-child-card{border-bottom:2px solid #b38a52;padding-bottom:24px;min-width:0}.entry-child-card img{display:block;width:100%;height:180px;object-fit:contain}.entry-child-card h2{font-size:25px;overflow-wrap:anywhere;color:#244d37}.entry-child-card p{font-size:14px;overflow-wrap:anywhere}
#entry-resources .promo-section,#entry-resources .christmas-pack-promo{display:block!important;margin:24px 0!important;padding:20px!important;background:#fff8e9;color:#244d37}#entry-resources img{max-width:100%;height:auto}#entry-resources .promo-visual{width:100%;max-width:none;margin:0 0 12px}#entry-resources .promo-visual img{display:block;position:static;width:100%;height:auto;max-height:none;object-fit:contain}#entry-status{color:#8d3028}
@media(max-width:600px){.site-header{inset:10px 10px auto auto}.site-header #entry-open,#entry-calendars{padding:10px 12px;font-size:14px}.entry-panel{padding:12px 20px 48px}.entry-child-cards{grid-template-columns:1fr}.entry-child-card{display:grid;grid-template-columns:100px minmax(0,1fr);column-gap:16px;align-items:center}.entry-child-card img{grid-row:1/5;height:120px}.entry-child-card h2{margin:0}.entry-child-card p{margin:5px 0}.entry-child-card button{grid-column:2}.entry-peek-hint{bottom:18px;font-size:14px}}
@media(prefers-reduced-motion:reduce){#gift-house .gift-front{transition:none}}
/* V27: one explicit family navigation and visible bilingual entrance controls. */
#entry-open[hidden],#entry-switch-child[hidden]{display:none!important}
.site-header{display:flex!important;align-items:center;gap:8px!important;max-width:calc(100vw - 20px)}
#entry-language{display:flex;gap:4px}
#entry-language button,#entry-switch-child{min-height:44px;min-width:44px;font:inherit;font-size:14px;font-weight:700;padding:8px 12px;border:1px solid #795b39;border-radius:10px;background:#fff8e9;color:#244d37;cursor:pointer}
#entry-language button[aria-pressed=true]{background:#244d37;color:#fff8e9}
@media(max-width:600px){.site-header{left:10px;right:10px;justify-content:flex-end}#entry-language button,#entry-switch-child{padding:8px;font-size:13px}.site-header #entry-open{margin-left:0}}
#entry-language{display:inline-flex;gap:4px}.site-header{display:flex!important;align-items:center;justify-content:flex-end;gap:8px!important}html:not([data-gift-phase=closed]) .site-header{left:auto;max-width:calc(100vw - 120px)}

/* V29: full outer opening; a single presentation-only interior door. */
html[data-gift-marketing=true] #gift-stage #doors .door[data-marketing-ajar] .door-cover{transform:rotateY(-18deg)!important;filter:drop-shadow(3px 1px 2px #39251c55)}
html[data-gift-marketing=true] #doors .door-reveal{visibility:visible!important;clip-path:inset(0 0 0 94%);pointer-events:none!important}
html[data-gift-marketing=true] #doors .door-lock{display:none!important}
html[data-gift-marketing=true] #tree-navigation{visibility:hidden;pointer-events:none}
html[data-gift-marketing=true] .entry-peek-hint{display:none}

@media(max-width:750px){
 html[data-gift-marketing=true] #gift-stage #gift-book-spread{padding-top:160px!important}
 html[data-gift-marketing=true] #gift-stage .gift-calendar-lid{left:0;top:0;width:100%;height:160px!important;overflow:visible}
 html[data-gift-marketing=true] #tree-panel{visibility:visible;height:160px;padding:0;overflow:visible}
 html[data-gift-marketing=true] #tree-board{width:130px;height:159px;min-height:0;max-height:none;max-width:130px;flex:none}
}

html[data-gift-marketing=true] #release-status,html[data-gift-marketing=true] .progress-wrap{display:none!important}

/* V30 only: presentation targets outside inert content; no activity activation. */
#gift-door-previews{position:fixed;inset:0;z-index:15;pointer-events:none}
#gift-door-previews[hidden]{display:none!important}
#gift-door-previews button{position:fixed;pointer-events:auto;border:0;border-radius:2px;background:transparent;padding:0;cursor:pointer;touch-action:manipulation}
#gift-door-previews button:focus-visible{outline:2px solid #795b39;outline-offset:2px}
html[data-gift-marketing=true] #gift-stage #doors .door:not([data-marketing-ajar]) .door-cover{transform:rotateY(0deg)!important}

/* Always-visible resources follow the actual family calendar cards, not Settings. */
#dashboard-resources{display:block!important;min-width:0;margin:28px 0}
#dashboard-resources>.promo-section,#dashboard-resources>.christmas-pack-promo{display:block!important;margin:24px 0!important;padding:20px!important;background:#fff8e9;color:#244d37}
#dashboard-resources .promo-visual{display:block;width:100%;max-width:none;margin:0 0 12px}
#dashboard-resources .promo-visual img{display:block;position:static;width:100%;max-width:100%;height:auto;max-height:none;object-fit:contain}
#dashboard-resources a{display:inline-flex;align-items:center;min-height:44px;max-width:100%;white-space:normal;overflow-wrap:anywhere}
