.preparedness-page{display:grid;gap:16px}.prep-page-title{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:4px}.prep-page-title h1{font-size:1.85rem}.prep-page-title p{margin-top:7px;color:var(--muted);font-size:.91rem}.prep-page-actions{display:flex;align-items:flex-end;gap:9px}.prep-page-actions label{min-width:120px;margin:0;color:#8fa2b1;font-size:.7rem}.prep-page-actions select{min-height:44px;margin-top:4px}.prep-tabs{display:flex;gap:6px;padding:6px;border:1px solid var(--border-soft);border-radius:13px;background:#0a1724}.prep-tabs button{min-height:40px;padding:8px 16px;border:0;border-radius:9px;background:transparent;color:#7e93a2;font-size:.78rem;font-weight:650}.prep-tabs button.active{background:#2d251d;color:#f4bd70;box-shadow:inset 0 0 0 1px #4c3c29}.prep-notice{padding:11px 14px;border:1px solid #35604d;border-radius:10px;background:#11261e;color:#9de1ba;font-size:.76rem}.prep-score-hero{min-height:245px;padding:30px;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:30px;background:radial-gradient(circle at 88% 12%,#81501d55,transparent 34%),linear-gradient(145deg,#182635,#0c1926)}.prep-score-hero h2{font-size:1.55rem}.prep-score-hero p{max-width:650px;margin-top:10px;color:#91a4b1;font-size:.82rem;line-height:1.65}.prep-hero-actions{display:flex;gap:9px;margin-top:23px}.prep-score-ring{width:156px;height:156px;display:grid;place-items:center;border-radius:50%;background:conic-gradient(var(--amber) var(--prep-score),#1c2e3d 0);box-shadow:0 18px 45px #03081266}.prep-score-ring:before{content:'';position:absolute}.prep-score-ring>div{width:128px;height:128px;display:flex;flex-direction:column;align-items:center;justify-content:center;border-radius:50%;background:#0d1a27}.prep-score-ring strong{font-family:'Manrope';font-size:2rem}.prep-score-ring span{color:#7890a0;font-size:.68rem;text-transform:uppercase;letter-spacing:.1em}.prep-coverage-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.prep-coverage-card{padding:22px}.prep-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.prep-card-head h2{font-size:1.2rem}.prep-card-head>strong{font-size:1.55rem;color:#cfe6e7}.prep-progress,.prep-scenario-meter{height:8px;margin:18px 0 12px;overflow:hidden;border-radius:99px;background:#1a2b3a}.prep-progress span,.prep-scenario-meter span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#36b9a8,#62d7c9)}.prep-water .prep-progress span{background:linear-gradient(90deg,#438fc9,#62c6e6)}.prep-coverage-card p{color:#8195a3;font-size:.72rem}.prep-coverage-card small{display:block;margin-top:8px}.prep-gap{color:#e3b166}.prep-good{color:#77d59d}.prep-baseline-note{padding:18px 22px;display:flex;align-items:center;gap:16px}.prep-note-icon{width:44px;height:44px;display:grid;place-items:center;flex:none;border-radius:13px;background:#34291d;color:var(--amber);font-family:'Manrope';font-size:1.25rem;font-weight:700}.prep-baseline-note h2{font-size:.93rem}.prep-baseline-note p{margin-top:5px;color:#8094a2;font-size:.72rem;line-height:1.55}.prep-two-column{display:grid;grid-template-columns:1.15fr .85fr;gap:14px}.prep-panel{padding:23px}.prep-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.prep-count{min-width:32px;height:32px;display:grid;place-items:center;border-radius:10px;background:#32271c;color:#f1b460;font-size:.78rem;font-weight:700}.prep-gap-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 0;border-top:1px solid #203243}.prep-gap-row:first-of-type{margin-top:15px}.prep-gap-row span,.prep-gap-row strong,.prep-gap-row small{display:block}.prep-gap-row strong{font-size:.78rem}.prep-gap-row small{margin-top:3px;font-size:.65rem}.prep-gap-row .text-button{flex:none}.prep-empty{margin-top:16px;color:#8296a4;font-size:.78rem}.prep-facts{margin:16px 0 0}.prep-facts div{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-top:1px solid #203243}.prep-facts dt{color:#8195a3;font-size:.72rem}.prep-facts dd{margin:0;color:#dce7eb;font-size:.76rem;font-weight:700}.prep-helper{margin-top:15px;color:#6f8494;font-size:.68rem;line-height:1.55}.prep-kit-intro{display:grid;grid-template-columns:1fr 1.2fr;gap:24px;align-items:center}.prep-kit-intro p{margin-top:8px;color:#8195a3;font-size:.74rem}.prep-group-switches{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.prep-group-switches label{min-height:56px;margin:0;padding:10px;display:flex;align-items:center;gap:9px;border:1px solid #2b4051;border-radius:10px;background:#0b1926;color:#a9bbc4;font-size:.69rem}.prep-group-switches input{width:18px;height:18px;min-height:18px}.prep-kit-groups{display:grid;gap:12px}.prep-kit-group{overflow:hidden}.prep-kit-group>summary{padding:19px 21px;display:flex;align-items:center;justify-content:space-between;gap:18px;cursor:pointer;list-style:none}.prep-kit-group>summary::-webkit-details-marker{display:none}.prep-kit-group>summary span:first-child,.prep-kit-group>summary strong,.prep-kit-group>summary small{display:block}.prep-kit-group>summary strong{font-size:.9rem}.prep-kit-group>summary small{margin-top:4px;color:#768b9a;font-size:.68rem}.prep-kit-summary{color:#d6aa6d;font-size:.7rem}.prep-kit-list{border-top:1px solid #203243}.prep-kit-row{display:grid;grid-template-columns:minmax(240px,1.4fr) 100px minmax(220px,.8fr);align-items:center;gap:13px;padding:14px 20px;border-bottom:1px solid #1d3040}.prep-kit-row:last-child{border-bottom:0}.prep-kit-row.owned{background:#10241d66}.prep-owned-check{display:flex;align-items:center;gap:12px;margin:0}.prep-owned-check span,.prep-owned-check strong,.prep-owned-check small{display:block}.prep-owned-check strong{font-size:.76rem}.prep-owned-check small{margin-top:3px;color:#718696;font-size:.63rem}.prep-quantity{margin:0;color:#748998;font-size:.62rem}.prep-quantity input{min-height:38px;margin-top:3px;padding:6px 8px}.prep-kit-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px}.prep-kit-actions .button{min-height:38px;padding:.5rem .7rem;font-size:.68rem}.prep-kit-actions .text-button{font-size:.68rem}.prep-scenario-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}.prep-scenario-card{padding:22px}.prep-scenario-card>p{margin-top:8px;color:#8195a3;font-size:.75rem}.prep-status{padding:5px 8px;border:1px solid #3d4d3f;border-radius:99px;background:#14271e;color:#94d8aa;font-size:.62rem}.prep-scenario-meter{margin-bottom:7px}.prep-scenario-score{font-size:.75rem}.prep-scenario-gaps{margin-top:17px;padding:13px;border:1px solid #4b3d2b;border-radius:10px;background:#211d17}.prep-scenario-gaps>span{color:#e0b36f;font-size:.65rem;text-transform:uppercase;letter-spacing:.08em}.prep-scenario-gaps ul,.prep-advice ul{margin:8px 0 0;padding-left:18px;color:#aebbc1;font-size:.7rem;line-height:1.65}.prep-advice{margin-top:14px}.prep-advice summary{color:#dfb268;font-size:.7rem;cursor:pointer}.prep-sources h2{font-size:1.05rem}.prep-sources>div{display:flex;flex-wrap:wrap;gap:8px;margin-top:15px}.prep-sources a{padding:8px 10px;border:1px solid #2b4152;border-radius:9px;background:#0c1a27;color:#9db0bc;font-size:.68rem}.prep-dashboard-card{margin:14px 0;padding:17px 20px;display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:22px;background:radial-gradient(circle at 0 0,#38b8a711,transparent 40%),linear-gradient(145deg,#112333,#0c1926);transition:.18s ease}.prep-dashboard-card:hover{transform:translateY(-1px);border-color:#3b5364}.prep-dashboard-card h2{font-size:1rem}.prep-dashboard-card p{margin-top:5px;color:#8094a2;font-size:.68rem}.prep-dashboard-score{text-align:right}.prep-dashboard-score strong,.prep-dashboard-score span{display:block}.prep-dashboard-score strong{font-size:1.35rem}.prep-dashboard-score span{color:#d1a35f;font-size:.62rem}.prep-dashboard-link{color:#efb35f;font-size:.72rem;font-weight:650}

.prep-guidance{padding:24px;background:radial-gradient(circle at 100% 0,#2a8f7d1c,transparent 42%),linear-gradient(145deg,#102331,#0c1926)}.prep-guidance-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.prep-guidance h2{font-size:1.15rem}.prep-guidance>p{max-width:760px;margin-top:9px;color:#8ea1ae;font-size:.76rem;line-height:1.6}.prep-guidance-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-top:18px}.prep-guidance-grid>div{padding:14px;border:1px solid #263d4d;border-radius:11px;background:#0a1824}.prep-guidance-grid strong,.prep-guidance-grid span{display:block}.prep-guidance-grid strong{color:#e7b66f;font-size:.73rem}.prep-guidance-grid span{margin-top:6px;color:#91a4af;font-size:.67rem;line-height:1.5}.prep-home-hero{background:radial-gradient(circle at 88% 12%,#b8762d44,transparent 38%),linear-gradient(145deg,#223445,#101e2b)!important}.prep-home-hero h2{font-size:clamp(1.45rem,2vw,2.1rem)!important}.prep-home-hero p{max-width:390px}.prep-home-stats{display:flex;flex-wrap:wrap;gap:7px;margin:15px 0 18px}.prep-home-stats span{padding:7px 9px;border:1px solid #ffffff22;border-radius:9px;background:#07131db8;color:#a9bac3;font-size:.62rem}.prep-home-stats strong{color:#f2bf76;font-size:.76rem}.fr-resource-count{display:block;margin:10px 0 2px;color:#8fa3af;font-size:.68rem}.page-title [data-manage-resources]{margin-left:auto}

@media(max-width:900px){.prep-page-title{align-items:flex-start}.prep-kit-intro{grid-template-columns:1fr}.prep-guidance-grid{grid-template-columns:repeat(2,1fr)}.prep-dashboard-card{grid-template-columns:1fr auto}.prep-dashboard-link{grid-column:1/-1}.prep-kit-row{grid-template-columns:minmax(220px,1fr) 90px}.prep-kit-actions{grid-column:1/-1;justify-content:flex-start;padding-left:33px}}
@media(max-width:700px){.prep-page-title{flex-direction:column}.prep-page-actions{width:100%}.prep-page-actions label{flex:1}.prep-tabs{overflow-x:auto}.prep-tabs button{flex:1;white-space:nowrap;padding:8px 11px}.prep-score-hero{min-height:270px;padding:22px;grid-template-columns:1fr auto;gap:15px}.prep-score-ring{width:112px;height:112px}.prep-score-ring>div{width:92px;height:92px}.prep-score-ring strong{font-size:1.4rem}.prep-hero-actions{grid-column:1/-1;flex-wrap:wrap}.prep-coverage-grid,.prep-two-column,.prep-scenario-grid{grid-template-columns:1fr}.prep-guidance-heading{flex-direction:column}.prep-guidance-grid{grid-template-columns:1fr}.prep-group-switches{grid-template-columns:1fr}.prep-kit-group>summary{align-items:flex-start;flex-direction:column}.prep-kit-row{grid-template-columns:1fr 82px;padding:14px}.prep-owned-check{min-width:0}.prep-kit-actions{padding-left:0}.prep-dashboard-card{margin:10px 0;padding:15px}.prep-dashboard-score strong{font-size:1.1rem}}

/* Stable route shell: the custom page never rewrites React-owned markup. */
.preparedness-portal{position:fixed;inset:90px 0 0 228px;z-index:14;overflow:auto;padding:28px 30px 48px;background:#07131f}
.preparedness-portal[hidden]{display:none}
.preparedness-portal .preparedness-page{max-width:1380px;margin:0 auto}
body.prep-route-active{overflow:hidden}

/* Keep the requested navigation order without moving React-managed nodes. */
.sidebar nav a[href="/home"]{order:1}
.sidebar nav [data-preparedness-nav]{order:2}
.sidebar nav a[href="/resources"]{order:3}
.sidebar nav a[href="/plan"]{order:4}
.sidebar nav a[href="/shopping"]{order:5}
.sidebar nav a[href="/insights"]{order:6}
.sidebar nav a[href="/guides"]{order:7}
.sidebar nav a[href="/settings"]{order:8}
.sidebar nav a[href="/inventory"],.sidebar nav a[href="/community"],.more-sheet a[href="/community"]{display:none}

/* Preparedness dashboard artwork and readable live readiness data. */
.prep-home-hero{position:relative;isolation:isolate;overflow:hidden;background-image:linear-gradient(90deg,#07131ff5 0%,#091724df 43%,#0a17236b 68%,#07131f26 100%),url('/dashboard/preparedness.jpg')!important;background-size:cover!important;background-position:center!important}
.prep-home-hero>*{position:relative;z-index:1}
.prep-home-hero p{color:#c2d0d7!important;text-shadow:0 1px 10px #02070dcc}

@media(max-width:1200px){.preparedness-portal{left:218px}}
@media(max-width:900px){.preparedness-portal{inset:72px 0 calc(72px + env(safe-area-inset-bottom)) 0;padding:20px 18px 35px}.bottom-nav a[href="/inventory"]{display:none}.bottom-nav a[href="/home"]{order:1}.bottom-nav [data-preparedness-nav]{order:2}.bottom-nav a[href="/resources"]{order:3}.bottom-nav a[href="/shopping"]{order:4}.bottom-nav button{order:5}}
@media(max-width:460px){.preparedness-portal{inset:64px 0 calc(70px + env(safe-area-inset-bottom)) 0;padding:14px 12px 28px}.prep-home-hero{background-position:58% center!important}}

/* Theme control lives outside React so it remains stable across every route. */
.fr-theme-control{position:fixed;right:22px;bottom:22px;z-index:60}
.fr-theme-control button{min-height:43px;padding:9px 13px;display:flex;align-items:center;gap:8px;border:1px solid #31485a;border-radius:999px;background:#0c1b28e8;color:#dce7eb;box-shadow:0 12px 34px #0207116b;backdrop-filter:blur(14px);font:650 .72rem/1 'Manrope',sans-serif;cursor:pointer;transition:transform .18s ease,border-color .18s ease,background .18s ease}
.fr-theme-control button:hover{transform:translateY(-2px);border-color:#d18d3f;background:#132637}
.fr-theme-control button:focus-visible{outline:3px solid #f0a84b66;outline-offset:3px}

/* Warm, cream-based light theme. Images remain the original site assets. */
html[data-theme="light"]{color-scheme:light;color:#24323a;background:#f3eadc;--bg:#f3eadc;--bg-deep:#eadcc9;--sidebar:#eadcc8;--surface:#fffaf1;--surface-2:#f7eddc;--surface-soft:#efe1cc;--border:#d6c3a8;--border-soft:#e2d2bc;--text:#24323a;--muted:#677578;--muted-2:#7c8888;--amber:#b86f22;--amber-soft:#f3ddbd;--teal:#238e86;--cyan:#337f9f;--green:#31845b;--red:#b55252;--shadow:0 20px 55px #6f513229}
html[data-theme="light"] body{color:var(--text);background:radial-gradient(circle at 82% -12%,#d8e5e1 0,transparent 31%),radial-gradient(circle at 4% 84%,#e1e9d7 0,transparent 25%),linear-gradient(145deg,#f5eddf 0%,#efe4d3 55%,#f8f1e7 100%)}
html[data-theme="light"] ::selection{background:#dca866;color:#1f2c33}
html[data-theme="light"] a{color:inherit}
html[data-theme="light"] h1,html[data-theme="light"] h2,html[data-theme="light"] h3,html[data-theme="light"] strong{color:#25353d}
html[data-theme="light"] .page-title p,html[data-theme="light"] .helper,html[data-theme="light"] .assumption-note,html[data-theme="light"] small{color:#687779}

html[data-theme="light"] .sidebar{background:radial-gradient(circle at 30% 12%,#d8e5df 0,transparent 34%),linear-gradient(180deg,#eee2cf 0%,#e6d7c1 100%);border-right-color:#cfbaa0;box-shadow:18px 0 50px #7053301f}
html[data-theme="light"] .brand strong{color:#26383e}
html[data-theme="light"] .brand small,html[data-theme="light"] .sidebar-foot p{color:#6c7b7c}
html[data-theme="light"] .sidebar-status{color:#526f68}
html[data-theme="light"] .sidebar nav a{color:#607176}
html[data-theme="light"] .sidebar nav a:hover{color:#24353c;background:#f8efe1aa}
html[data-theme="light"] .sidebar nav a.active{color:#6f431a;background:linear-gradient(90deg,#efd7b5 0%,#f7eee1 88%);box-shadow:inset 0 0 0 1px #d7b98f,0 8px 24px #8d66351a}
html[data-theme="light"] .sidebar nav a.active svg{color:#b86f22}
html[data-theme="light"] .topbar{background:linear-gradient(180deg,#f7f0e6f2,#f4ebdece);border-bottom-color:#dac8ae;box-shadow:0 8px 24px #72532f12}
html[data-theme="light"] .global-search{border-color:#d5c3aa;background:linear-gradient(145deg,#fffaf2,#f1e5d4);box-shadow:inset 0 1px 0 #ffffff,0 9px 28px #74552f12}
html[data-theme="light"] .global-search input{color:#2a3940}
html[data-theme="light"] .global-search input::placeholder{color:#7d8988}
html[data-theme="light"] .global-search svg{color:#8a755e}
html[data-theme="light"] .global-search button{background:#e8d8c1;color:#6c4b27}
html[data-theme="light"] .topbar-profile{border-color:#d8c5aa;background:#f8f0e4;color:#33434a;box-shadow:inset 0 1px 0 #fff}
html[data-theme="light"] .topbar-profile>span{background:linear-gradient(145deg,#7c9e9c,#416e70);color:#fff}
html[data-theme="light"] .topbar-profile small,html[data-theme="light"] .save-status{color:#6b797b}
html[data-theme="light"] .save-status{border-color:#deceb8;background:#f1e6d6}

html[data-theme="light"] .surface:not(.overall-card):not(.home-plan-hero):not(.dashboard-resource),html[data-theme="light"] .card:not(.overall-card):not(.home-plan-hero):not(.dashboard-resource){border-color:#d8c6ad;background:linear-gradient(145deg,#fffaf2 0%,#f5ead9 100%);box-shadow:inset 0 1px 0 #fff,0 16px 42px #76552e16}
html[data-theme="light"] input,html[data-theme="light"] select,html[data-theme="light"] textarea{border-color:#cfbda4;background:#fffaf2;color:#29383f;box-shadow:inset 0 1px 2px #7b5b3512}
html[data-theme="light"] select option{background:#fffaf2;color:#29383f}
html[data-theme="light"] input:focus,html[data-theme="light"] select:focus,html[data-theme="light"] textarea:focus{border-color:#b87a35;box-shadow:0 0 0 3px #c98b3f26}
html[data-theme="light"] label{color:#5e6d70}
html[data-theme="light"] .button{background:linear-gradient(135deg,#d99443,#b96a25);color:#fffaf3;box-shadow:0 9px 24px #aa692a35}
html[data-theme="light"] .button.secondary{border-color:#cbb79d;background:#f5eadb;color:#35464d;box-shadow:none}
html[data-theme="light"] .button.secondary:hover{background:#eadbc6;border-color:#bda486}
html[data-theme="light"] .text-button,html[data-theme="light"] .text-link,html[data-theme="light"] .card-link{color:#8b551f}
html[data-theme="light"] .icon-button{color:#667678}
html[data-theme="light"] .icon-button:hover{background:#eadcc8;color:#38494f}

html[data-theme="light"] .settings-section,html[data-theme="light"] .form-card,html[data-theme="light"] .list-header,html[data-theme="light"] .inventory-row{border-color:#ddcbb2}
html[data-theme="light"] .list-header{background:#efe2cf;color:#536267}
html[data-theme="light"] .inventory-row{background:#fffaf1}
html[data-theme="light"] .item-icon{background:#dce9dd;color:#347253}
html[data-theme="light"] .item-icon.water,html[data-theme="light"] .water .item-icon{background:#dceaf0;color:#32728c}
html[data-theme="light"] .stepper,html[data-theme="light"] .search-input,html[data-theme="light"] .filter-row button{border-color:#d5c2aa;background:#f6ecdd;color:#526267}
html[data-theme="light"] .filter-row button.active{border-color:#c59c66;background:#eed9bb;color:#7c4a1a}
html[data-theme="light"] .badge,html[data-theme="light"] .status-badge.good{border-color:#9fc8aa;background:#dcecdf;color:#2d6f4c}
html[data-theme="light"] .badge.soon,html[data-theme="light"] .status-badge.fair{border-color:#d7b781;background:#f2e1c2;color:#80521d}
html[data-theme="light"] .badge.neutral,html[data-theme="light"] .status-badge.neutral{border-color:#b9c7ca;background:#e5edef;color:#52666c}
html[data-theme="light"] .status-badge.attention{border-color:#d6a3a0;background:#f2ddda;color:#8e4141}
html[data-theme="light"] .notice{border-color:#d4ad77;background:#f4e1c4;color:#765021}
html[data-theme="light"] .plan-choices button,html[data-theme="light"] .input-method,html[data-theme="light"] .setup-targets,html[data-theme="light"] dialog{border-color:#d6c3a9;background:#f8efe1;color:#43545a}
html[data-theme="light"] .plan-choices button.selected,html[data-theme="light"] .input-method.selected,html[data-theme="light"] .input-method:hover{border-color:#c89758;background:linear-gradient(145deg,#efd6b2,#f8eee0);color:#764719}
html[data-theme="light"] .wizard-steps span{background:#ddcdb7;color:#667477}
html[data-theme="light"] .wizard-steps span.active{background:#b86f22;color:#fff}

html[data-theme="light"] .recommendation-panel,html[data-theme="light"] .fuel-price-tile,html[data-theme="light"] .fuel-summary,html[data-theme="light"] .fuel-empty,html[data-theme="light"] .community-hero{border-color:#d6c3aa;background:radial-gradient(circle at 100% 0,#d9b78335 0,transparent 42%),linear-gradient(145deg,#fff8ed,#eee1cf)}
html[data-theme="light"] .recommendation-icon,html[data-theme="light"] .empty-tag,html[data-theme="light"] .people-pill,html[data-theme="light"] .inventory-total,html[data-theme="light"] .priority-number,html[data-theme="light"] .fuel-source-note,html[data-theme="light"] .fuel-news a,html[data-theme="light"] .fuel-vehicle-metrics span,html[data-theme="light"] .fuel-scenario span,html[data-theme="light"] .station-rank{border-color:#d6c3aa;background:#eee2d0;color:#526268}
html[data-theme="light"] .metric-progress,html[data-theme="light"] .distribution-chart>div>div,html[data-theme="light"] .prep-progress,html[data-theme="light"] .prep-scenario-meter{background:#d9ccba}
html[data-theme="light"] .trend-panel .trend-empty,html[data-theme="light"] .trend-placeholder{background:repeating-linear-gradient(to right,transparent 0,transparent 89px,#b7aa983d 90px),repeating-linear-gradient(to bottom,transparent 0,transparent 48px,#b7aa983d 49px)}
html[data-theme="light"] .trend-empty-icon,html[data-theme="light"] .inventory-summary>div:nth-child(2) a{border-color:#d7c4aa;background:#eee2d1;color:#637276}
html[data-theme="light"] .fuel-map{background:#eee5d7}
html[data-theme="light"] .fuel-provider-note,html[data-theme="light"] .recipe-card .recipe-missing,html[data-theme="light"] .recipe-missing-panel{border-color:#d8c19b;background:#f2e4cc;color:#6f552f}

html[data-theme="light"] .preparedness-portal{background:#f3eadc}
html[data-theme="light"] .prep-tabs{border-color:#d5c2aa;background:#eadcc7}
html[data-theme="light"] .prep-tabs button{color:#657477}
html[data-theme="light"] .prep-tabs button.active{background:#f3dab7;color:#754718;box-shadow:inset 0 0 0 1px #d2ac79}
html[data-theme="light"] .prep-notice{border-color:#9fc5ac;background:#dceade;color:#2f704e}
html[data-theme="light"] .prep-score-hero,html[data-theme="light"] .prep-guidance{border-color:#d6c2a8;background:radial-gradient(circle at 88% 12%,#dca65938,transparent 34%),linear-gradient(145deg,#fff8ed,#eadfce)}
html[data-theme="light"] .prep-score-hero p,html[data-theme="light"] .prep-guidance>p,html[data-theme="light"] .prep-coverage-card p,html[data-theme="light"] .prep-scenario-card>p,html[data-theme="light"] .prep-kit-intro p{color:#667578}
html[data-theme="light"] .prep-score-ring{background:conic-gradient(var(--amber) var(--prep-score),#dccdb9 0);box-shadow:0 14px 35px #72523124}
html[data-theme="light"] .prep-score-ring>div{background:#fff9ef}
html[data-theme="light"] .prep-guidance-grid>div,html[data-theme="light"] .prep-group-switches label{border-color:#d6c3aa;background:#f4e9d9;color:#55666a}
html[data-theme="light"] .prep-gap-row,html[data-theme="light"] .prep-facts div,html[data-theme="light"] .prep-kit-list,html[data-theme="light"] .prep-kit-row{border-color:#dfcdb5}
html[data-theme="light"] .prep-kit-row.owned{background:#e2eee2}
html[data-theme="light"] .prep-count,html[data-theme="light"] .prep-note-icon{background:#efd9b8;color:#86521e}
html[data-theme="light"] .prep-scenario-gaps{border-color:#d8bd94;background:#f3e5ce}
html[data-theme="light"] .prep-status{border-color:#a9c7af;background:#deebe0;color:#36704f}
html[data-theme="light"] .prep-sources a{border-color:#d5c2a9;background:#f4e9d9;color:#526468}

/* Light-mode imagery shares one daylight palette; Dark mode keeps the original cinematic assets. */
html[data-theme="light"] .overall-card,html[data-theme="light"] .home-plan-hero,html[data-theme="light"] .dashboard-resource{border-color:#cbb99f;box-shadow:0 18px 44px #6c4c2d20;color:#2b3b41}
html[data-theme="light"] .overall-card{background:linear-gradient(90deg,#f8f1e8f7 0%,#f7efe2dc 44%,#f7efe251 70%,transparent 100%),url('/dashboard/light/household.jpg') center/cover}
html[data-theme="light"] .overall-card::before{background:radial-gradient(circle at 72% 38%,#6e9e8e1c 0,transparent 34%),linear-gradient(180deg,transparent 55%,#e8dcc6a3 100%)}
html[data-theme="light"] .home-plan-hero{background:linear-gradient(90deg,#e4eeebf5 0%,#edf1ead8 44%,#f2eadc45 72%,transparent 100%),url('/dashboard/light/household.jpg') center/cover}
html[data-theme="light"] .prep-home-hero{background-image:linear-gradient(90deg,#dbe8e6f7 0%,#e8ede6dc 44%,#eee5d66b 70%,transparent 100%),url('/dashboard/light/preparedness.jpg')!important;background-size:cover!important;background-position:center!important}
html[data-theme="light"] .resource-food{background-image:url('/dashboard/light/food.jpg')}
html[data-theme="light"] .resource-water{background-image:url('/dashboard/light/water.jpg')}
html[data-theme="light"] .resource-fuel{background-image:url('/dashboard/light/fuel.jpg')}
html[data-theme="light"] .resource-energy{background-image:url('/dashboard/light/energy.jpg')}
html[data-theme="light"] .dashboard-resource::before{background:linear-gradient(90deg,#fff9eff5 0%,#f5eddfdc 48%,#f7efe07a 72%,#f7efe01c 100%),linear-gradient(0deg,#e8dcc5b3 0%,transparent 58%)}
html[data-theme="light"] .overall-card h1,html[data-theme="light"] .overall-card h2,html[data-theme="light"] .overall-card h3,html[data-theme="light"] .overall-card strong,html[data-theme="light"] .home-plan-hero h1,html[data-theme="light"] .home-plan-hero h2,html[data-theme="light"] .home-plan-hero h3,html[data-theme="light"] .home-plan-hero strong,html[data-theme="light"] .dashboard-resource h1,html[data-theme="light"] .dashboard-resource h2,html[data-theme="light"] .dashboard-resource h3,html[data-theme="light"] .dashboard-resource strong{color:#293b40;text-shadow:none}
html[data-theme="light"] .overall-card p,html[data-theme="light"] .home-plan-hero p,html[data-theme="light"] .dashboard-resource p,html[data-theme="light"] .dashboard-resource small,html[data-theme="light"] .dashboard-resource .not-measured-line,html[data-theme="light"] .resource-card-foot>span:last-child{color:#5c6f70;text-shadow:none}
html[data-theme="light"] .resource-label{color:#31464a}
html[data-theme="light"] .resource-food .metric-icon{color:#4e805e;filter:drop-shadow(0 3px 7px #527c5533)}
html[data-theme="light"] .resource-water .metric-icon{color:#337f91;filter:drop-shadow(0 3px 7px #3d859133)}
html[data-theme="light"] .resource-fuel .metric-icon{color:#a1613c;filter:drop-shadow(0 3px 7px #9a623b33)}
html[data-theme="light"] .resource-energy .metric-icon{color:#a96a2d;filter:drop-shadow(0 3px 7px #a96a2d33)}
html[data-theme="light"] .dashboard-resource .metric-progress{background:#b9aa948f}
html[data-theme="light"] .dashboard-resource .status-badge{border-color:#bba98f;background:#fff8edcf;color:#4c6264;backdrop-filter:blur(8px)}
html[data-theme="light"] .overall-resource-strip>span{background:linear-gradient(90deg,var(--segment-color) var(--segment-progress),#b9ab9699 var(--segment-progress))}
html[data-theme="light"] .resilience-dial{background:conic-gradient(#3b9d83 0,var(--dial-progress),#c8bcaa var(--dial-progress),#c8bcaa 100%);box-shadow:0 12px 30px #6f513027}
html[data-theme="light"] .resilience-dial::before,html[data-theme="light"] .plan-dial::before{background:radial-gradient(circle,#fffaf1 0,#eee3d2 70%)}
html[data-theme="light"] .resilience-dial strong,html[data-theme="light"] .resilience-dial span{color:#30484c}
html[data-theme="light"] .recommendation-food .recommendation-visual{background-image:url('/dashboard/light/food.jpg')}
html[data-theme="light"] .recommendation-water .recommendation-visual{background-image:url('/dashboard/light/water.jpg')}
html[data-theme="light"] .recommendation-fuel .recommendation-visual{background-image:url('/dashboard/light/fuel.jpg')}
html[data-theme="light"] .recommendation-energy .recommendation-visual{background-image:url('/dashboard/light/energy.jpg')}
html[data-theme="light"] .recommendation-visual{box-shadow:inset 0 0 24px #7a604322,0 10px 26px #72512d1c}

html[data-theme="light"] .bottom-nav{border-top-color:#cfbca3;background:#f3eadcf2;box-shadow:0 -10px 30px #72512d1d}
html[data-theme="light"] .bottom-nav a,html[data-theme="light"] .bottom-nav button{color:#66777a}
html[data-theme="light"] .bottom-nav a.active,html[data-theme="light"] .bottom-nav button.active{background:#efd8b8;color:#7c4b1b}
html[data-theme="light"] .more-sheet{border-color:#d2bea4;background:#f8f0e4;box-shadow:0 18px 55px #72502c32}
html[data-theme="light"] .more-sheet a,html[data-theme="light"] .more-sheet button{color:#53656a}
html[data-theme="light"] .more-sheet a:hover{background:#eadcc8}
html[data-theme="light"] .app-footer{color:#758183}
html[data-theme="light"] .fr-theme-control button{border-color:#c9b497;background:#fff8eee8;color:#68441f;box-shadow:0 12px 34px #6f4e2b29}
html[data-theme="light"] .fr-theme-control button:hover{border-color:#af793c;background:#f1e3cf}

@media(max-width:900px){.fr-theme-control{right:12px;bottom:calc(82px + env(safe-area-inset-bottom))}.fr-theme-control button{min-width:43px;padding:10px}.fr-theme-control button span{display:none}}
@media(max-width:460px){.prep-page-actions{align-items:stretch;flex-direction:column}.prep-score-hero{grid-template-columns:1fr}.prep-score-ring{grid-row:1;justify-self:end;margin-bottom:-88px}.prep-score-hero>div:first-child{padding-top:85px}.prep-hero-actions{grid-column:auto}.prep-hero-actions .button{flex:1}.prep-kit-row{grid-template-columns:1fr}.prep-quantity{max-width:100px;margin-left:33px}.prep-kit-actions{margin-left:33px;align-items:flex-start;flex-direction:column}.prep-dashboard-card{grid-template-columns:1fr}.prep-dashboard-score{text-align:left}.prep-dashboard-link{grid-column:auto}}
