.shelter-actions{display:flex;flex-wrap:wrap;gap:10px;margin:14px 0}.shelter-actions .button{width:auto;min-height:44px;display:inline-flex;align-items:center;justify-content:center;text-decoration:none;padding:10px 14px}.shelter-intro{color:#b8cbd3;line-height:1.6}.shelter-local{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.shelter-card,.family-plan-card{min-width:0;border:1px solid #36515d;border-radius:10px;background:#11262f;padding:20px;margin:16px 0}.shelter-local .shelter-card{margin:0}.shelter-card h3,.family-plan-card h2{margin:0 0 14px}.shelter-card p,.family-plan-card p{line-height:1.6;overflow-wrap:anywhere}.shelter-card .button{margin-top:12px}.shelter-card textarea{width:100%;box-sizing:border-box;resize:vertical;background:#0c1c25;border:1px solid #456773;border-radius:8px;color:#ecf5f7;padding:12px;font:inherit;min-height:78px}.shelter-contact{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid #304650;padding:10px 0}.shelter-home-action{display:flex;justify-content:center;align-items:center;gap:12px;min-height:48px;background:#a9e7d2!important;color:#10252d!important;text-decoration:none;font-weight:700;margin:0 0 16px}
.family-plan-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.family-plan-form label{display:flex;flex-direction:column;gap:8px;min-width:0;font-size:14px}.family-plan-form input,.family-plan-form textarea,.family-plan-form select{font:inherit;width:100%;max-width:100%;box-sizing:border-box;min-height:44px;padding:12px;border:1px solid #456773;border-radius:8px;background:#0c1c25;color:#ecf5f7}.family-plan-form select,.family-plan-form .shelter-actions,.family-plan-form label:has(textarea){grid-column:1/-1}.family-plan-status{font-size:14px;color:#b7e9d6}
.family-dialog{width:min(600px,calc(100vw - 24px));max-height:90dvh;box-sizing:border-box;overflow:auto;padding:20px;background:#10252f;color:#eef6f8;border:1px solid #456773;border-radius:12px}.family-dialog::backdrop{background:#000b}.family-dialog header{display:flex;align-items:center;justify-content:space-between;gap:12px}.family-dialog h2{font-size:21px;margin:0}.family-dialog p{line-height:1.6}.family-dialog .button{min-height:44px;max-width:100%;margin:8px 4px 8px 0}.family-dialog canvas{display:block;width:100%;max-width:420px;height:auto;margin:18px auto;background:white;image-rendering:pixelated}.family-plan-preview dt{font-weight:700;color:#a9e7d2;margin:14px 0 6px}.family-plan-preview dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.screen-light{width:100vw;height:100dvh;max-width:100vw;max-height:100dvh;border:0;border-radius:0;background:white;color:#111;margin:0}.screen-light .button{background:#162932;color:white}.screen-light header{position:sticky;top:0}.shelter-mode :focus-visible,.family-plan-card :focus-visible,.family-dialog :focus-visible{outline:3px solid #a9e7d2;outline-offset:3px}
@media(max-width:650px){.shelter-local,.family-plan-form{grid-template-columns:minmax(0,1fr)}.shelter-card,.family-plan-card{padding:16px}.shelter-actions .button{flex:1 1 140px}.family-dialog{padding:16px}.family-dialog h2{font-size:19px}.shelter-mode>.extra-back{margin-bottom:12px}}
#extra-shelter-mode{padding:0;border:0;background:transparent;box-shadow:none;gap:10px}.installed-app #extra-shelter-mode>.extra-back{display:none}#extra-shelter-mode>.shelter-intro{font-size:14px;margin:0 0 12px;line-height:1.5}#extra-shelter-mode>.shelter-actions{margin:0 0 12px}#extra-shelter-mode>.shelter-card{margin:0 0 14px}#extra-shelter-mode .shelter-card h3{font-size:19px}#family-offline-plan>h2{font-size:20px!important}#family-offline-plan>p{font-size:14px;line-height:1.5}

/* Keep the light controls independent of the application header theme. */
dialog.family-dialog.screen-light{padding:16px;padding-top:max(16px,env(safe-area-inset-top));background:#fff;color:#111;color-scheme:light}
dialog.family-dialog.screen-light>header{position:sticky;top:0;inset-inline:auto;display:flex;flex-wrap:nowrap;justify-content:space-between;align-items:center;gap:12px;width:100%;height:auto;min-height:64px;padding:8px 0;margin:0;background:#fff;color:#111;border:0;box-shadow:none}
dialog.family-dialog.screen-light>header h2{color:#111;font-size:19px;line-height:1.4;min-width:0;overflow-wrap:anywhere}
dialog.family-dialog.screen-light>header .button{flex:0 0 auto;width:auto;min-height:44px;margin:0;padding:10px 16px;background:#162932;color:#fff;border:1px solid #162932}
dialog.family-dialog.screen-light>header .button:focus-visible{outline-color:#162932}

dialog.family-dialog.screen-light{background:var(--screen-light-fill,#fff)}
.screen-light-controls{max-width:480px;padding:14px;border-radius:10px;background:#fff;color:#111;display:grid;grid-template-columns:1fr auto;gap:12px;margin-top:12px}.screen-light-controls label{font-weight:600}.screen-light-controls input{grid-column:1/-1;width:100%;min-height:44px;accent-color:#24524b}.screen-light-tones{grid-column:1/-1;display:flex;gap:10px;flex-wrap:wrap}.screen-light-controls .button{flex:1;min-height:44px;margin:0}.screen-light-controls .button[aria-pressed=true]{background:#a9e7d2;color:#10252d;border-color:#24524b}.screen-light-controls p{grid-column:1/-1;color:#444;font-size:13px;line-height:1.5;margin:0}.shelter-offline-status ul{list-style:none;padding:0;margin:0}.shelter-offline-status li{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;padding:10px 0;border-bottom:1px solid #36515d}.shelter-offline-status li .button{margin:0;background:transparent;border:0;padding:4px 0;min-height:36px;text-decoration:underline}.shelter-offline-status li span{font-size:13px;max-width:100%;overflow-wrap:anywhere}.offline-ready{color:#a9e7d2}.offline-missing{color:#d4c39a}
