/* ListAndConnect Beta 1.0: premium iPad enhancement layer.
   Existing household rules and data model are intentionally unchanged. */
:root {
  --bg:#f5f3ec; --paper:#fffefa; --ink:#233c31; --muted:#708176;
  --line:#e2e8de; --accent:#315b45; --pale:#ebf1e8; --warm:#f4ebda;
  --lc-gold:#cfaf78; --lc-sage:#8caa8c; --lc-rose:#c48a75;
  --lc-shadow:0 3px 8px rgba(34,62,45,.018),0 18px 46px rgba(34,62,45,.055);
  --lc-spring:cubic-bezier(.2,.9,.23,1.14);
}
html {scroll-behavior:smooth;scroll-padding-top:104px;color-scheme:light}
body { background: radial-gradient(ellipse 560px 420px at -8% -20%,rgba(211,224,204,.60),transparent 90%),radial-gradient(ellipse 600px 420px at 105% 10%,rgba(239,220,191,.32),transparent 85%),var(--bg);letter-spacing:-.009em}
.wrap {max-width:1440px; padding:clamp(15px,2.6vw,34px) clamp(16px,3.1vw,42px) 92px}
.wrap>header {display:flex;justify-content:space-between;align-items:center;gap:18px;min-height:108px;margin:0 0 14px}
header h1 {font-size:clamp(31px,3.2vw,44px);font-weight:780;letter-spacing:-.073em;line-height:1.0;margin:9px 0 7px}
header .sub {color:#7b8b7e;letter-spacing:.006em;font-size:13px;margin:3px 0}
#currentDateBanner.pill {background:#eaf0e6;color:#497156;border:1px solid #deeadb;font-size:11px;font-weight:730;padding:7px 12px;max-width:100%;white-space:normal}
.lc-mark {font-family:Georgia,serif;font-weight:400;font-size:.85em;color:#b68d58;vertical-align:3px}
.lc-head-side {display:flex;gap:9px;align-items:center}
.lc-local-chip {display:inline-flex;align-items:center;gap:7px;color:#78907b;background:#ecf2e9;border:1px solid #e0e9db;padding:7px 11px;border-radius:999px;font-size:11px;font-weight:700}
.lc-local-chip:before {content:'';width:7px;height:7px;background:#7f9f78;border-radius:50%;box-shadow:0 0 0 3px #7f9f781c}
.lc-settings{position:relative;z-index:60}
.lc-settings>summary{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:47px;padding:10px 14px;background:#fffdf9;border:1px solid #dfe7df;border-radius:15px;color:#385846;box-shadow:0 5px 18px #183e2410;list-style:none;cursor:pointer;font-size:12px;font-weight:750}
.lc-settings>summary::-webkit-details-marker {display:none}
.lc-settings[open]>summary{background:#e9f0e6}
.lc-settings-pop {position:absolute;right:0;top:calc(100% + 8px);width:min(340px,calc(100vw - 34px));z-index:80;background:#fffefa;border:1px solid #dbe7da;border-radius:19px;box-shadow:0 22px 55px #1a3f2e25;padding:20px;display:grid;gap:11px}
.lc-settings-pop h3{font-size:18px;margin:0}.lc-settings-pop .small{font-size:12px;margin:0}
.lc-settings-pop button {width:100%;text-align:center}
.lc-file-picker {display:flex;flex-direction:column;gap:9px;font-size:12px;color:#42634d;font-weight:700;cursor:pointer}
.lc-file-picker input[type=file]{display:block;width:100%;font-size:14px;background:#f0f5ec;border:1px solid #d6e3d6;border-radius:12px;padding:11px 8px;min-height:52px;color:#355841;max-width:100%}
.lc-file-picker input::file-selector-button {color:#fff;background:#365e48;border:none;border-radius:9px;padding:9px 11px;margin-right:8px;font-weight:700}
#lcImportFeedback{font-size:12px;color:#597963;min-height:16px}
.lc-settings-pop .lc-settings-note{background:#f4f4ea;padding:11px;border-radius:12px;color:#66786b;font-size:11px;line-height:1.5}
/* Four-destination navigation, including touch-size labels on iPad */
.tabs {margin:0 0 25px;padding:7px;border-radius:22px;border:1px solid #e1e8e0;box-shadow:0 8px 32px #1c432508;position:sticky;top:8px;z-index:45;background:rgba(255,254,251,.93);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);display:flex;gap:5px;justify-content:space-around;overflow:visible}
.tabs button {flex:1;display:flex;align-items:center;justify-content:center;gap:10px;font-size:13px;min-height:52px;padding:10px 14px;border:0;border-radius:15px;transition:background .2s ease,transform .22s var(--lc-spring),color .2s ease;white-space:nowrap}
.tabs button svg,.lc-subnav button svg {width:20px;height:20px;flex:none;stroke-width:1.8}
.tabs button.active {background:linear-gradient(140deg,#2e5d44,#3e7354);box-shadow:0 6px 16px rgba(32,87,53,.18);color:#fff}
.tabs button:active {transform:scale(.975)}
.lc-subnav {display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:0 1px 15px;margin-top:-10px;margin-bottom:10px}
.lc-subnav[hidden] {display:none!important}
.lc-subnav button {font-size:12px;min-height:43px;padding:10px 15px;border-radius:999px;background:#fcfdf8;border:1px solid #dfe7dd;color:#607467}
.lc-subnav button.active {background:#dae9d9;border-color:#c8ddc7;color:#2e6245;box-shadow:none}
/* MagicBento-inspired quiet depth and asymmetric composition */
.card,.home-mini,.meal-day,.meal-toolbox,.shop-main,.shop-side-card,.hero-tile,.widget-tile,.meal-feature-main,.meal-feature-next {border-color:#e0e7df;border-radius:24px;box-shadow:var(--lc-shadow)}
.panel {animation:lc-page-in .26s cubic-bezier(.2,.8,.2,1)}
@keyframes lc-page-in{from{opacity:.65;transform:translateY(8px)}to{opacity:1;transform:none}}
.home-top {display:grid;grid-template-columns:minmax(0,.90fr) minmax(0,.87fr) minmax(0,1.35fr);gap:16px;margin:0 0 25px;align-items:stretch}
.home-top>.hero-tile,.home-top>.widget-tile{min-height:252px;padding:23px 24px}
.hero-tile {position:relative;overflow:hidden;justify-content:space-between!important;background:linear-gradient(148deg,#e4ede3 0%,#eff2e8 62%,#f7ead7 100%);border:1px solid #dbe6d9;box-shadow:none}
.hero-tile:before{content:'✳';position:absolute;right:-8px;bottom:-69px;font:150px Georgia,serif;color:#55765b0b;pointer-events:none}
.hero-tile h2{font-size:clamp(32px,3.55vw,48px);margin:5px 0 0;letter-spacing:-.07em}
.hero-tile .hero-date{font-size:13px;color:#68806c}
.hero-tile .big-clock {font-size:clamp(42px,4.2vw,58px);font-weight:730;margin:3px 0 0;letter-spacing:-.07em}
.hero-tile .eyebrow {color:#4f715a}
.hero-progress{margin:4px 0 0;font-size:12px;color:#608169}
.lc-hero-upper{display:flex;justify-content:space-between;align-items:center;gap:10px}
.lc-hero-dategroup{margin:5px 0 auto}
.lc-hero-sun{display:flex;align-items:center;justify-content:center;width:35px;height:35px;border:1px solid #ccdcca80;border-radius:50%;font-size:21px;color:#8ca785}
.widget-tile:not(.dinner-showcase){background:linear-gradient(158deg,#ffffff,#fcfdf9);justify-content:space-between;gap:9px}
.widget-tile:not(.dinner-showcase) .row{align-items:center}
.weather-now{margin:9px 0 3px}.weather-temp{font-size:clamp(36px,3.8vw,51px)}.weather-emoji{font-size:33px}
.forecast{margin:7px 0 0;gap:5px}.forecast span{font-size:11px;padding:5px 7px;border-radius:10px}
.dinner-showcase{position:relative;isolation:isolate;overflow:hidden;background:radial-gradient(circle at 80% 25%,rgba(214,198,148,.12),transparent 45%),linear-gradient(135deg,#244b36,#325d43 60%,#4d7655);border:1px solid #52765b!important;box-shadow:0 20px 42px rgba(31,78,47,.16)!important;color:#fffcf5;gap:0}
.dinner-showcase:after{content:'';position:absolute;top:-38px;right:-67px;width:195px;height:195px;border:1px solid rgba(244,236,198,.2);border-radius:100%;box-shadow:0 0 0 18px rgba(235,226,185,.04),0 0 0 37px rgba(235,226,185,.025);z-index:-1;pointer-events:none}
.dinner-glow {display:none}
.lc-dinner-art{position:absolute;right:4px;top:44px;width:155px;height:155px;opacity:.36;z-index:-1;pointer-events:none;transform:rotate(7deg)}
.dinner-heading{position:relative;z-index:2}.dinner-focus{min-height:87px;padding:14px 0 9px}.dinner-dish{font-weight:710;line-height:1.07;font-size:clamp(26px,2.9vw,38px);max-width:88%;letter-spacing:-.055em}
.dinner-overline{font-size:11px}.dinner-day{letter-spacing:.11em}
.dinner-chef{padding:9px 0}.dinner-links{padding:4px 0 0}.dinner-edit{padding-top:2px}.dinner-next{display:flex;gap:12px;align-items:center;justify-content:space-between;padding-top:9px;margin-top:7px}
.dinner-next span {font-size:10px}.dinner-next b{font-size:11px;max-width:68%;text-align:right;font-weight:700}
.lc-section-title .eyebrow{font-size:11px}
.home-label-row{margin:0 0 13px}.home-label-row h2{font-size:clamp(24px,2.6vw,31px)}
.home-two{gap:16px}.routine-card{border-radius:22px;background:#fffefa}.routine-summary{min-height:113px;padding:18px 22px}.routine-summary strong{font-size:26px}.routine-meter{margin-top:8px}.routine-content{padding:8px 20px 21px}
.home-extras{display:grid;grid-template-columns:1fr 1.08fr 1fr;gap:16px;margin-top:17px}
.home-mini{background:#fffefa;padding:21px 23px;position:relative;overflow:hidden}
.home-mini:nth-child(2) {background:linear-gradient(145deg,#eef3eb,#fffcf5)}
.home-mini:nth-child(2):after {content:'✿';font:92px Georgia,serif;color:#7c9b7820;position:absolute;right:-11px;top:-23px;pointer-events:none}
.home-mini h3{font-size:22px;margin:9px 0 12px}
.home-mini .mini-row{padding:9px 0}.mini-marcie{position:relative;z-index:2}.home-bottom{justify-content:flex-start;margin:14px 0 0}.home-bottom button{font-size:12px}
/* Chroma-inspired card accents, intentionally touch-first, never cursor-dependent */
.meal-feature-main,.meal-feature-next,.meal-day {position:relative;isolation:isolate;overflow:hidden}
.meal-feature-main {background:linear-gradient(127deg,#f7e7cf,#fff9ed);border-color:#e9dcc6}
.meal-feature-next{background:linear-gradient(150deg,#e4ede3,#f3f6ed)}
.meal-day {background:#fffefb;transition:transform .22s var(--lc-spring),box-shadow .22s ease,border-color .2s ease}
.meal-day:before{content:'';position:absolute;inset:0;pointer-events:none;border-radius:inherit;box-shadow:inset 0 1px 0 rgba(255,255,255,.8)}
.meal-day:focus-within,.meal-day.lc-selected{border-color:#adcab1;box-shadow:0 10px 28px #254b3619,0 0 0 2px #99b69d33}
.meal-day:active{transform:scale(.995)}
.meal-current{background:#fffbf2;border-color:#c7b288}
.meal-grid{gap:13px}.meal-day{border-radius:20px}
.shop-main,.shop-side-card{background:#fffefa}
.shop-entry{background:#f0f3eb}
/* AnimatedList-inspired entrance, selection feedback and readable tappable rows */
.task,.maint,.shopping-item {position:relative;transition:background .2s ease,border-color .2s ease; border-radius:13px;min-height:52px}
.task:focus-within,.maint:focus-within,.shopping-item:focus-within,.task.lc-selected,.maint.lc-selected,.shopping-item.lc-selected {background:#eef4eaf2;box-shadow:inset 0 0 0 1px #b7d4b480}
.lc-list-enter {animation:lc-list-pop .44s var(--lc-spring) both;animation-delay:var(--lc-item-delay,0ms)}
@keyframes lc-list-pop{from{opacity:0;transform:translateY(11px) scale(.989)}to{opacity:1;transform:none}}
.task input[type=checkbox],.maint input[type=checkbox],.shopping-item input[type=checkbox],.mini-marcie input[type=checkbox]{min-width:23px;min-height:23px;width:23px;height:23px;accent-color:#4a8061;cursor:pointer}
.task label,.maint .description,.shopping-item label{font-size:14px}
.task .hint,.maint small{font-size:12px;color:#7b8b80}
.task:has(input:checked) label{color:#748778}
.due-badge.due-overdue{background:#f8e8e1;color:#a65a47}.due-badge.due-today{background:#f9ecdb;color:#956d41}
/* Accessible selection indicators and native control ergonomics */
button, input,select,textarea,summary {font-family:inherit}
button{min-height:44px}input[type=text],input[type=date],select,textarea{min-height:46px;font-size:16px}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible,.lc-file-picker:focus-within{outline:3px solid #8cbfa0;outline-offset:2px}
input[type=checkbox]:focus-visible{outline:3px solid #8cbfa0;outline-offset:3px}
.lc-subnav button,.tabs button{touch-action:manipulation}
/* compact iPad landscape */
@media (min-width:980px) and (orientation:landscape){
  .home-top {grid-template-columns:minmax(0,.90fr) minmax(0,.83fr) minmax(0,1.34fr)}
  .home-top>.hero-tile,.home-top>.widget-tile{min-height:255px}
  .home-extras{grid-template-columns:1fr 1.06fr 1fr}
  .home-mini:last-child{grid-column:auto}
}
@media (max-width:1020px){
  .home-top{grid-template-columns:repeat(2,minmax(0,1fr))}
  .home-top .dinner-showcase{grid-column:1/-1;min-height:224px}
  .home-top .hero-tile,.home-top .widget-tile:not(.dinner-showcase){min-height:185px}
  .home-extras{grid-template-columns:repeat(2,minmax(0,1fr))}
  .home-mini:last-child{grid-column:1/-1}
  .lc-dinner-art{right:18px;top:28px}
}
@media (max-width:720px){
  .wrap{padding:15px 15px 105px}
  .wrap>header{flex-direction:row;align-items:flex-start;min-height:94px;margin-bottom:11px}
  header h1{font-size:32px}.lc-local-chip{display:none}
  .lc-head-side{padding-top:14px}.lc-settings>summary {min-height:45px;padding:9px 11px;font-size:0;gap:0}
  .lc-settings>summary svg{width:21px;height:21px}
  .tabs{position:fixed;top:auto;bottom:max(10px,env(safe-area-inset-bottom));left:12px;right:12px;width:auto;margin:0;padding:6px 5px;border-radius:21px;z-index:55;box-shadow:0 16px 45px #1c402f2b}
  .tabs button{display:flex;flex-direction:column;min-height:56px;gap:3px;padding:7px 3px;font-size:10px;border-radius:16px}
  .tabs button svg{width:20px;height:20px}
  .lc-subnav{margin:0 0 15px;gap:6px}
  .lc-subnav button{font-size:11px;min-height:43px;padding:9px 11px}
  .home-top{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
  .home-top>.hero-tile,.home-top>.widget-tile:not(.dinner-showcase){min-height:195px;padding:18px}
  .hero-tile h2{font-size:32px}.hero-tile .big-clock{font-size:43px}
  .weather-now{gap:4px}.weather-temp{font-size:36px}.weather-emoji{font-size:26px}
  .weather-details{font-size:12px}.forecast{gap:3px}.forecast span{font-size:10px;padding:4px}
  .home-top>.dinner-showcase{grid-column:1/-1;min-height:230px;padding:22px}
  .home-two{grid-template-columns:1fr 1fr;gap:10px}
  .routine-summary{padding:15px 14px;min-height:113px}.routine-summary strong{font-size:21px}.routine-expand .routine-open-label{display:none}
  .routine-content{padding:6px 14px 17px}
  .home-extras{grid-template-columns:1fr;gap:11px}
  .home-mini:last-child{grid-column:auto}
  .home-mini{padding:20px}
  .home-label-row{flex-direction:row;align-items:end}
  .home-label-row>.small{display:none}
  .home-bottom{padding-bottom:12px}
}
@media (max-width:500px){
  .home-top{grid-template-columns:1fr}.home-top>.dinner-showcase{grid-column:auto}
  .home-top>.hero-tile,.home-top>.widget-tile:not(.dinner-showcase){min-height:169px}
  .home-two{grid-template-columns:1fr}
  .home-label-row{margin-top:2px}
  .home-mini{padding:18px}
  .lc-dinner-art{width:130px;top:46px;right:0}
}
@media (prefers-reduced-motion:reduce){
  *,*:before,*:after {animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}
}
@media print {.tabs{position:static}.lc-settings,.lc-subnav{display:none!important}}
/* Beta polish: the dinner summary should not push today's tasks off the iPad. */
.dinner-showcase .dinner-focus{flex:none;min-height:66px;padding:9px 0 6px}
.dinner-showcase .dinner-chef{padding:7px 0}
.dinner-showcase .dinner-edit:not([open]){display:none}
.dinner-showcase .dinner-links{padding:3px 0}
.dinner-showcase .dinner-next{margin-top:4px;padding-top:8px}
.home-top>.widget-tile.dinner-showcase{min-height:247px}
/* iPad portrait gets a native-style bottom bar without sacrificing content space. */
@media (max-width:820px) and (orientation:portrait){
  .wrap{padding-bottom:112px}
  .tabs{position:fixed;top:auto;bottom:max(10px,env(safe-area-inset-bottom));left:12px;right:12px;width:auto;margin:0;padding:6px 5px;border-radius:20px;z-index:55;box-shadow:0 16px 45px #1c402f23}
  .tabs button{display:flex;flex-direction:column;min-height:58px;gap:3px;padding:7px 4px;font-size:11px;border-radius:15px}
  .tabs button svg{width:21px;height:21px}
}
@media(max-width:500px){
  .wrap>header{display:flex;flex-direction:row!important;flex-wrap:nowrap;align-items:flex-start;justify-content:space-between;gap:8px}
  .wrap>header>div:first-child{flex:1;min-width:0}
  .wrap>header .lc-head-side{flex:none;align-self:flex-start;margin:0;padding-top:10px}
  header h1{font-size:28px}
  header .sub{font-size:11.5px}
  #currentDateBanner.pill{font-size:9px;padding:6px 8px}
}


/* Dark mode, premium weather card and Marcie page */
.lc-theme-toggle{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:47px;padding:10px 14px;background:#fffdf9;border:1px solid #dfe7df;border-radius:15px;color:#385846;box-shadow:0 5px 18px #183e2410;font-size:12px;font-weight:750}
.lc-theme-toggle span{display:inline-block}
.lc-theme-picker{display:grid;gap:8px;padding:11px 12px;background:#f6f5ee;border:1px solid #e6e8df;border-radius:14px}
.lc-theme-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.lc-theme-options button{min-height:41px;font-size:12px;padding:8px 6px}
.lc-theme-options button.active{background:var(--accent);border-color:var(--accent);color:#fff}
.weather-card{background:linear-gradient(160deg,#fff,#f6faf5)!important}
.weather-shell{display:grid;gap:14px}
.weather-header{display:flex;align-items:center;justify-content:space-between;gap:10px}
.weather-city{display:inline-flex;align-items:center;gap:7px;font-size:11px;font-weight:800;letter-spacing:.12em;color:#5d7a66;text-transform:uppercase}
.weather-city:before{content:'◌';font-size:10px;color:#8baa93}
.weather-live{display:inline-flex;align-items:center;justify-content:center;padding:6px 10px;border-radius:999px;background:#eef4ed;color:#476451;font-size:11px;font-weight:700}
.weather-shell .weather-now{display:grid;grid-template-columns:auto 1fr;gap:14px;align-items:center;margin:0}
.weather-shell .weather-emoji{display:grid;place-items:center;width:58px;height:58px;border-radius:18px;background:linear-gradient(145deg,#fff8de,#f4efd3);box-shadow:inset 0 1px 0 rgba(255,255,255,.9);font-size:30px}
.weather-shell .weather-temp{font-size:clamp(36px,3.8vw,49px);line-height:.95;font-weight:760;letter-spacing:-.07em}
.weather-summary{font-size:15px;font-weight:700;color:#335444}
.weather-details{font-size:12px;color:#6c7d72}
.weather-forecast-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.forecast-card{display:grid;gap:4px;justify-items:start;padding:11px 12px;border-radius:16px;background:#eef4ec;border:1px solid #e1eadf}
.forecast-day{font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:#6b7c70;font-weight:800}
.forecast-icon{font-size:18px;line-height:1}
.forecast-card strong{font-size:18px;letter-spacing:-.04em;color:#2e4e3d}
.weather-empty{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:12px}
.marcie-page-hero{position:relative;overflow:hidden;display:grid;gap:14px;background:linear-gradient(145deg,#eef4eb,#fffaf4);border-color:#dfe9dc}
.marcie-page-ornament{position:absolute;right:18px;top:10px;font:88px Georgia,serif;color:#86a2851f;pointer-events:none}
.marcie-page-summary{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.marcie-summary-badge,.marcie-chip{display:inline-flex;align-items:center;justify-content:center;padding:6px 10px;border-radius:999px;background:#eaf0e6;color:#45634e;font-size:11px;font-weight:800}
.marcie-summary-note{font-size:12px;color:#68806d}
.marcie-maint{padding:13px 0}
.marcie-maint .description b{font-size:15px}
.marcie-maint .description small{display:block;margin-top:5px}
html[data-theme="dark"]{color-scheme:dark}
html[data-theme="dark"] body{background:radial-gradient(ellipse 580px 420px at -8% -20%,rgba(35,61,47,.45),transparent 90%),radial-gradient(ellipse 600px 420px at 105% 10%,rgba(74,87,63,.24),transparent 85%),#122018;color:#e7efe8}
html[data-theme="dark"] :root{}
html[data-theme="dark"] .wrap{color:#e7efe8}
html[data-theme="dark"] #currentDateBanner.pill{background:#1d3127;border-color:#2a4335;color:#cfe0d3}
html[data-theme="dark"] header .sub,html[data-theme="dark"] .small,html[data-theme="dark"] .tiny,html[data-theme="dark"] .hint,html[data-theme="dark"] .hero-date,html[data-theme="dark"] .hero-progress,html[data-theme="dark"] .task .hint,html[data-theme="dark"] .maint small,html[data-theme="dark"] .forecast-day,html[data-theme="dark"] .weather-details,html[data-theme="dark"] .weather-live,html[data-theme="dark"] .weather-city,html[data-theme="dark"] .marcie-summary-note{color:#a9b8ad}
html[data-theme="dark"] .tabs,html[data-theme="dark"] .lc-settings>summary,html[data-theme="dark"] .lc-theme-toggle,html[data-theme="dark"] .lc-subnav button,html[data-theme="dark"] .lc-settings-pop,html[data-theme="dark"] .lc-theme-picker,html[data-theme="dark"] .card,html[data-theme="dark"] .home-mini,html[data-theme="dark"] .meal-day,html[data-theme="dark"] .shop-main,html[data-theme="dark"] .shop-side-card,html[data-theme="dark"] .hero-tile,html[data-theme="dark"] .widget-tile:not(.dinner-showcase),html[data-theme="dark"] .routine-card,html[data-theme="dark"] .forecast-card,html[data-theme="dark"] .weather-shell .weather-emoji,html[data-theme="dark"] .marcie-page-hero{background:#182820!important;color:#e8f0e8;border-color:#2b3d33;box-shadow:0 14px 36px rgba(0,0,0,.28)}
html[data-theme="dark"] .tabs{background:rgba(18,32,24,.85)!important;border-color:#2a3f33}
html[data-theme="dark"] .tabs button,html[data-theme="dark"] .lc-subnav button,html[data-theme="dark"] button:not(.primary):not(.active),html[data-theme="dark"] .mini-mini-link{color:#d8e5dc}
html[data-theme="dark"] button,html[data-theme="dark"] input,html[data-theme="dark"] select,html[data-theme="dark"] textarea{background:#13211a;color:#e7efe8;border-color:#2b4134}
html[data-theme="dark"] .lc-file-picker input[type=file]{background:#13211a;color:#d8e5dc;border-color:#2b4134}
html[data-theme="dark"] .lc-file-picker input::file-selector-button{background:#315b45}
html[data-theme="dark"] .hero-tile{background:linear-gradient(145deg,#1a2b22,#22352a 64%,#2f3a2b 100%)!important}
html[data-theme="dark"] .home-mini:nth-child(2){background:linear-gradient(145deg,#1b2d24,#212f27)!important}
html[data-theme="dark"] .meal-feature-main{background:linear-gradient(145deg,#382e1f,#272216)!important;border-color:#564932}
html[data-theme="dark"] .meal-feature-next{background:linear-gradient(145deg,#1b2d24,#223229)!important}
html[data-theme="dark"] .meal-current{background:#202a20!important;border-color:#57694d}
html[data-theme="dark"] .shop-entry,html[data-theme="dark"] .task:focus-within,html[data-theme="dark"] .maint:focus-within,html[data-theme="dark"] .shopping-item:focus-within,html[data-theme="dark"] .task.lc-selected,html[data-theme="dark"] .maint.lc-selected,html[data-theme="dark"] .shopping-item.lc-selected{background:#22362b!important}
html[data-theme="dark"] .weather-card{background:linear-gradient(160deg,#1a2b22,#21352a)!important}
html[data-theme="dark"] .weather-shell .weather-emoji{background:linear-gradient(145deg,#3e3521,#2d2716)!important}
html[data-theme="dark"] .weather-live,html[data-theme="dark"] .marcie-summary-badge,html[data-theme="dark"] .marcie-chip{background:#22362c;color:#d6e3d8}
html[data-theme="dark"] .forecast-card{background:#1d3025!important;border-color:#2c4638}
html[data-theme="dark"] .forecast-card strong,html[data-theme="dark"] .weather-summary,html[data-theme="dark"] .task label,html[data-theme="dark"] .maint .description b,html[data-theme="dark"] .shopping-item label,html[data-theme="dark"] h1,html[data-theme="dark"] h2,html[data-theme="dark"] h3{color:#edf4ef}
html[data-theme="dark"] .lc-local-chip{background:#1a2c22;border-color:#2a4335;color:#cfe0d3}
html[data-theme="dark"] .lc-local-chip:before{background:#8db18d;box-shadow:0 0 0 3px rgba(141,177,141,.15)}
html[data-theme="dark"] .lc-settings-pop .lc-settings-note{background:#13211a;color:#aab8ae}
html[data-theme="dark"] .tabs button.active,html[data-theme="dark"] .lc-theme-options button.active,html[data-theme="dark"] .primary,html[data-theme="dark"] button.active{background:linear-gradient(140deg,#2e5d44,#488064)!important;border-color:#4f8c6c;color:#fff}
html[data-theme="dark"] footer{color:#92a79a}
@media(max-width:720px){.lc-theme-toggle span{display:none}.weather-forecast-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.marcie-page-ornament{font-size:72px;right:10px;top:6px}}


/* Beta 1.1.1: Marcie's Corner dark-mode contrast fix. */
html[data-theme="dark"] .home-mini .mini-marcie {
  background:linear-gradient(145deg,#254332,#233c2f);
  border:1px solid #44634e;
  box-shadow:inset 0 1px 0 rgba(238,250,239,.07);
}
html[data-theme="dark"] .home-mini .mini-marcie label {
  color:#f1f6ed;
}
html[data-theme="dark"] .home-mini .mini-marcie .tiny {
  color:#bdd2c2;
}
html[data-theme="dark"] .home-mini .mini-marcie.done label {
  color:#c9ddcc;
}
