@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;9..144,800&family=Great+Vibes&family=Zilla+Slab:ital,wght@0,500;0,600;0,700;1,500&display=swap");

:root {
  --cream: #f6f1e8;
  --ink: #1c2b22;
  --brand: #1f3d2b;
  --script: #8b5e3c;
  --rust: #c15c3a;
  --sage: #d7e5d4;
  --card: #ffffff;
  --muted: #5a6b62;
  --radius: 22px;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: "Zilla Slab", Georgia, serif;
  background: var(--cream);
  color: var(--ink);
  padding: calc(12px + env(safe-area-inset-top)) 16px calc(24px + env(safe-area-inset-bottom));
  max-width: 430px;
  margin: 0 auto;
}

.top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.face {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--sage);
}
.brand { flex: 1; min-width: 0; }
.logo {
  display: block;
  font-family: Fraunces, Georgia, serif;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--brand);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.tagline {
  display: block;
  font-family: "Great Vibes", cursive;
  font-size: 1.25rem;
  color: var(--script);
  line-height: 1.2;
}
.status {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 2px;
}

button {
  min-height: 48px;
  border: 0;
  border-radius: 16px;
  padding: 0 14px;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  background: #e8e0d6;
  color: var(--ink);
}
button.primary {
  background: var(--rust);
  color: #fff;
  min-height: 52px;
  font-size: 1.05rem;
}
button.ghost {
  background: transparent;
  border: 1px solid #d4cbc1;
}
button.mic[aria-pressed="true"] { background: var(--rust); color: #fff; }

.banner {
  background: var(--ink);
  color: var(--cream);
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 650;
  margin-bottom: 12px;
}
.hidden { display: none !important; }

.preview .hero img,
.preview .hero-ph {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--sage);
  display: block;
}
.hero-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  font-weight: 600;
}
.preview h1 {
  font-family: Fraunces, Georgia, serif;
  font-size: 2rem;
  line-height: 1.15;
  margin: 12px 0 10px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.preview h1 span {
  display: block;
  font-weight: 500;
  color: #3d4a42;
  font-size: 1.35rem;
}
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.badges span {
  background: var(--sage);
  color: var(--brand);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.85rem;
  font-weight: 650;
}
.tiles {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin: 16px 0 12px;
}
.tile {
  background: var(--card);
  border-radius: 16px;
  padding: 8px 4px;
  text-align: center;
  box-shadow: 0 1px 0 rgba(28, 43, 34, 0.06);
}
.tile .emoji {
  width: 32px;
  height: 32px;
  display: block;
  margin: 0 auto 2px;
  object-fit: contain;
}
.tile .qty {
  font-size: 0.68rem;
  color: var(--muted);
  font-weight: 650;
  line-height: 1.15;
  padding: 0 2px;
}
.shop-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--sage);
  border-radius: 18px;
  padding: 10px 12px;
  margin-bottom: 10px;
}
#shop-bar[hidden] { display: none !important; }
.shop-count {
  flex: 1;
  font-weight: 700;
  color: var(--ink);
  font-size: 0.95rem;
  text-align: center;
}
.shop-link {
  text-decoration: none;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  border: 1px solid rgba(0,0,0,.08);
  min-height: 36px;
  display: inline-flex;
  align-items: center;
}
.buy-list {
  margin: 0 0 16px;
  padding-left: 1.1rem;
  color: var(--ink);
}

.stage { margin: 8px 0 16px; }
.kicker {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--rust);
  margin: 0 0 6px;
}
.stage h1 {
  font-size: clamp(1.7rem, 7vw, 2.6rem);
  line-height: 1.2;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}
.tip { color: var(--muted); margin: 0 0 12px; }
.meter {
  height: 8px;
  background: #e4ddd4;
  border-radius: 99px;
  overflow: hidden;
}
#bar { height: 100%; width: 0; background: var(--rust); }

.actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}
.actions .primary { grid-column: 1 / -1; }
body.mode-cook .actions #btn-next.primary { grid-column: auto; }
.start-row {
  grid-column: 1 / -1;
  display: none;
  gap: 10px;
}
body.mode-preview .start-row { display: flex; }
body.mode-preview .start-row #btn-start {
  flex: 1;
  grid-column: auto;
  width: auto;
}
body.mode-preview #btn-mic-card {
  min-width: 6.5rem;
  flex-shrink: 0;
}

.need {
  background: var(--card);
  border-radius: var(--radius);
  padding: 8px 14px;
  margin-bottom: 16px;
}
.need ul { margin: 8px 0; padding-left: 1.1rem; }
.buy { color: var(--rust); font-weight: 650; }

.plated {
  margin: 12px 0 8px;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
}
.plated img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--sage);
}
.plated figcaption {
  padding: 8px 12px 12px;
  color: var(--muted);
  font-size: 0.85rem;
}

.composer {
  display: flex;
  gap: 8px;
  position: sticky;
  bottom: env(safe-area-inset-bottom);
  background: linear-gradient(to top, var(--cream), rgba(246, 241, 232, 0.92));
  padding: 8px 0;
}
.composer input {
  flex: 1;
  min-height: 48px;
  border: 1px solid #d9d0c6;
  border-radius: 12px;
  padding: 0 12px;
  font-size: 1rem;
  background: #fff;
  font-family: inherit;
}

.sheet {
  background: var(--card);
  border-radius: var(--radius);
  padding: 14px;
  margin-top: 8px;
}
.sheet h2 { margin: 0 0 10px; font-size: 1.2rem; color: var(--brand); }
.sheet label { display: block; margin: 10px 0; font-weight: 650; font-size: 0.92rem; }
.sheet input[type="number"],
.sheet select,
.sheet textarea {
  width: 100%;
  margin-top: 4px;
  border: 1px solid #d9d0c6;
  border-radius: 10px;
  padding: 10px;
  font: inherit;
}
.row { display: flex; align-items: center; gap: 8px; font-weight: 650; }
.row-btns { display: grid; gap: 8px; margin: 12px 0; }
.scan { margin-top: 8px; }
.fine { color: var(--muted); font-size: 0.8rem; text-align: center; }
#btn-install { width: 100%; margin: 8px 0 16px; }
.saved-item { display: flex; gap: 8px; margin: 6px 0; }
.saved-item button { flex: 1; }

body.mode-preview .stage,
body.mode-preview .need,
body.mode-preview .composer { display: none !important; }
body.mode-preview #btn-next,
body.mode-preview #btn-save-finish { display: none !important; }
body.mode-cook .preview,
body.mode-done .preview { display: none !important; }
body.mode-idle .preview { display: none !important; }
body.mode-idle #shop-bar,
body.mode-idle #buy-list { display: none !important; }

body.night {
  --cream: #141a16;
  --ink: #f3eee4;
  --brand: #d7e5d4;
  --script: #e0c4a8;
  --rust: #e07a55;
  --sage: #2a3a30;
  --card: #1e2621;
  --muted: #b7c0b8;
}
#splash {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(16px + env(safe-area-inset-top)) 16px calc(16px + env(safe-area-inset-bottom));
  background: var(--cream);
  text-align: center;
  overflow: auto;
}
html.no-splash #splash { display: none; }
.splash-art {
  display: block;
  width: 100%;
  max-width: 420px;
  max-height: 42vh;
  object-fit: cover;
  object-position: top;
  border-radius: 22px;
}
.splash-name {
  font-family: Fraunces, Georgia, serif;
  font-weight: 800;
  font-size: clamp(2.25rem, 9vw, 3.25rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--brand);
  margin: 0.6rem 0 0.2rem;
}
.splash-sub {
  font-style: italic;
  font-size: clamp(1.15rem, 4.5vw, 1.4rem);
  color: var(--script);
  margin: 0 0 0.85rem;
}
#splash-go {
  width: 100%;
  max-width: 420px;
  min-height: 56px;
  font-size: 1.25rem;
  font-weight: 700;
}
.splash-url {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0.55rem 0 0;
}
body.night .splash-art { filter: brightness(0.8); }

.lc-shop-chips, .lc-shop-stores { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 8px; }
.lc-shop-chip, .lc-shop-store { min-height: 44px; min-width: 44px; padding: 10px 16px; border-radius: 22px; font: inherit; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; border: 2px solid transparent; }
.lc-shop-chip { background: var(--card); color: var(--ink); }
.lc-shop-chip[aria-pressed="true"] { border-color: #B5502F; }
.lc-shop-chip[aria-pressed="true"]::before { content: "\2713\00a0"; }
.lc-shop-store { flex: 1 1 40%; background: #B5502F; color: #ffffff; }
.lc-shop-chip { max-width: 100%; }
.lc-shop-chip-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lc-shop-chip-qty { flex: none; white-space: nowrap; margin-left: 0.3em; font-weight: 400; color: #5C6B62; }
body.night .lc-shop-chip-qty { color: #B7C0B8; }

body.night .shop-link,
body.night .tile,
body.night .sheet,
body.night .composer input,
body.night .need {
  background: var(--card);
  color: var(--ink);
}

/* ---- Use-it-up planner (use-it-up-planner-HANDAPPLY.md P5). The "Premium" pill itself
   (.lc-premium) ships in glass.css, next to the glass tokens it uses. ---- */
.lc-uiu-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 6px 0; }
.lc-uiu-toggle, .lc-uiu-days, .lc-uiu-btn, .lc-uiu-dinner button, .lc-uiu-actions button { min-height: 44px; min-width: 44px; }
.lc-uiu-toggle { border: 1px solid currentColor; border-radius: 999px; padding: 0 14px; background: transparent; color: inherit; }
.lc-uiu-toggle[aria-pressed="true"] { border-width: 2px; font-weight: 700; } /* plus the \2713 in its text: not colour-only */
.lc-uiu-row p, .lc-uiu-note { flex-basis: 100%; margin: 2px 0; }
.lc-uiu-dinner { margin: 10px 0; padding: 10px 12px; border-radius: 14px; }
.lc-uiu-actions { display: flex; gap: 8px; margin-top: 10px; }
.lc-uiu-actions button { flex: 1; }
/* ---- end Use-it-up planner ---- */
.lc-uiu-card.lc-glass { margin-top: 12px; }

/* ---- Talking timers (talking-timers-HANDAPPLY.md P3). The "Premium" pill (.lc-premium) is the
   Use-it-up one in glass.css; add it from use-it-up-planner-HANDAPPLY.md P5 if it isn't there. ---- */
.lc-timer-strip { position: sticky; top: 0; z-index: 5; margin: 6px 0; padding: 8px 10px; border-radius: 14px; }
.lc-tt-head { display: flex; align-items: center; gap: 8px; font-weight: 700; margin-bottom: 4px; }
.lc-timer { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 4px 6px; border-radius: 10px;
            border: 1px solid transparent; }
.lc-tt-name { flex: 1 1 auto; }
.lc-tt-left { font-variant-numeric: tabular-nums; font-weight: 700; }
.lc-tt-btn, .lc-tt-chip { min-height: 44px; min-width: 44px; border-radius: 999px; border: 1px solid currentColor;
                          background: transparent; color: inherit; padding: 0 14px; }
.lc-tt-chip { margin: 8px 0; font-weight: 700; }
.lc-timer.ringing { border: 2px solid currentColor; font-weight: 700; animation: lc-tt-flash 1s steps(2) infinite; }
@keyframes lc-tt-flash { 50% { border-color: transparent; } }
@media (prefers-reduced-motion: reduce) { .lc-timer.ringing { animation: none; border-width: 4px; } }
.lc-tt-banner { margin: 6px 0; padding: 8px 10px; border-radius: 14px; border: 2px solid currentColor; }
.lc-tt-banner p { margin: 4px 0; }
/* ---- end Talking timers ---- */

.lc-fam-note { background: var(--lc-g-tile, rgba(255,255,255,.72)); color: #1C2B22; border-radius: 12px;
  padding: .55rem .8rem; margin: .4rem 0; font-size: .95rem; line-height: 1.35; }
.lc-fam-guest { background: #FFF4D6; color: #5C3D00; border-radius: 12px; padding: .6rem .8rem;
  margin: .4rem 0; font-weight: 700; line-height: 1.35; }
html.lc-night .lc-fam-note { background: rgba(255,255,255,.06); color: #F3EEE4; }
html.lc-night .lc-fam-guest { background: #3A2C0E; color: #FFE6A8; }

.lc-reheat { margin: .8rem 0 1rem; }
.lc-reheat h2 { font-size: 1.15rem; margin: 0 0 .25rem; }
.lc-reheat-card {
  background: var(--lc-g-tile, rgba(255,255,255,.72));
  color: #1C2B22;
  border-radius: 12px;
  padding: .7rem .8rem;
  margin: .45rem 0;
}
.lc-reheat-card h3 { margin: 0 0 .15rem; font-size: 1rem; }
.lc-reheat-card p { margin: .2rem 0; }
.lc-reheat-card ol { margin: .3rem 0 .3rem 1.1rem; padding: 0; }
html.lc-night .lc-reheat-card { background: rgba(255,255,255,.06); color: #F3EEE4; }
#prep-days { width: 4.5rem; }
@media print {
  body.printing-cards * { visibility: hidden; }
  body.printing-cards #reheat,
  body.printing-cards #reheat * { visibility: visible; }
  body.printing-cards #reheat { position: absolute; left: 0; top: 0; width: 100%; }
  body.printing-cards .lc-reheat-actions { display: none !important; }
}

.kitchen-login {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(16px + env(safe-area-inset-top)) 16px calc(16px + env(safe-area-inset-bottom));
  background: var(--cream);
  text-align: center;
  overflow: auto;
}
.kitchen-login[hidden] { display: none; }
#login-form { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 0.7rem; }
.login-label { font-weight: 700; color: var(--ink); }
.login-pass {
  width: 100%;
  min-height: 52px;
  font: inherit;
  font-size: 1.15rem;
  padding: 0.6rem 0.9rem;
  border-radius: 14px;
  border: 2px solid var(--brand);
  background: var(--card);
  color: var(--ink);
}
#login-go { width: 100%; max-width: 420px; min-height: 56px; font-size: 1.25rem; font-weight: 700; }
.login-error { color: var(--rust); min-height: 1.2em; margin: 0.4rem 0 0; font-weight: 700; }
.login-skip {
  margin-top: 0.6rem;
  background: transparent;
  border: 0;
  color: var(--muted);
  font: inherit;
  min-height: 44px;
}
.lc-mc-menu { margin: 4px 0 14px; }
.lc-mc-menu > summary { min-height: 48px; display: flex; align-items: center; font-weight: 700; cursor: pointer; }
.lc-mc-box { background: rgba(255,255,255,.72); color: #1C2B22; border-radius: 16px; padding: .7rem .9rem; margin: .5rem 0; }
.lc-mc-box > button { display: block; width: 100%; margin-top: .45rem; }
.lc-mc-head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.lc-mc-badge { background: #FFE2C2; color: #7A3300; border-radius: 999px; padding: .1rem .6rem; font-size: .85rem; font-weight: 700; }
.lc-mc-warn { background: #FDECEA; color: #8A1C12; border-radius: 12px; padding: .6rem .8rem; font-weight: 700; margin: .4rem 0; }
.lc-mc-tiles { display: flex; gap: .4rem; overflow-x: auto; margin: .4rem 0; }
.lc-mc-tile { flex: 0 0 auto; background: #FFFFFF; color: #1C2B22; border-radius: 12px; padding: .45rem .6rem; min-width: 7.5rem; }
.lc-mc-tile.hot { background: #FFF1E6; color: #6E2A00; }
.lc-mc-left { display: block; font-variant-numeric: tabular-nums; }
.lc-mc-next { margin: .4rem 0; padding-left: 1.2rem; line-height: 1.4; }
.lc-mc-more, .lc-mc-cap { margin: .3rem 0; color: #3D4A41; }
.lc-mc-full summary { min-height: 52px; display: flex; align-items: center; font-weight: 700; cursor: pointer; }
.lc-mc-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.lc-mc-chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .8rem; border-radius: 999px;
  background: #FFFFFF; color: #1C2B22; border: 1px solid #8C8579; text-decoration: none; }
html.lc-night .lc-mc-box { background: rgba(24,26,22,.86); color: #F3EEE4; }
html.lc-night .lc-mc-badge { background: #4A2A0C; color: #FFD7AE; }
html.lc-night .lc-mc-warn { background: #4A1410; color: #FFD6D0; }
html.lc-night .lc-mc-tile { background: #2A2C27; color: #F3EEE4; }
html.lc-night .lc-mc-tile.hot { background: #4A2A0C; color: #FFD7AE; }
html.lc-night .lc-mc-more, html.lc-night .lc-mc-cap { color: #D6D0C4; }
html.lc-night .lc-mc-chip { background: #2A2C27; color: #F3EEE4; border-color: #8C8579; }

/* premium-chef-voices Part B, P4 */
.lc-cv-box { display: grid; gap: 8px; padding: 12px; border: 1px solid #D9D2C6; border-radius: 12px; background: #F6F1E8; color: #1C2B22; }
.lc-cv-head { display: flex; align-items: center; justify-content: space-between; }
.lc-cv-badge { background: #FCE8D9; color: #8A3A12; border-radius: 999px; padding: 2px 10px; font-size: 0.85em; }
.lc-cv-sub { color: #434F48; margin: 0; }
.lc-cv-card { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; min-height: 52px; padding: 8px 12px; border: 2px solid #D9D2C6; border-radius: 10px; background: #FFFFFF; color: #1C2B22; }
.lc-cv-card.selected { border-color: #A8482A; background: #FFF4ED; }
.lc-cv-card input { grid-row: span 2; align-self: center; width: 22px; height: 22px; }
.lc-cv-line { color: #434F48; }
.lc-cv-play { min-height: 52px; border: 0; border-radius: 10px; background: #B5502F; color: #FFFFFF; font-weight: 600; }
.lc-cv-note { background: #D7E5D4; color: #1C2B22; border-radius: 10px; padding: 10px 12px; margin: 0; }
body.night .lc-cv-box, html.lc-night .lc-cv-box { background: #141A16; color: #F3EEE4; border-color: #2A3A30; }
body.night .lc-cv-sub, body.night .lc-cv-line, html.lc-night .lc-cv-sub, html.lc-night .lc-cv-line { color: #B7C0B8; }
body.night .lc-cv-card, html.lc-night .lc-cv-card { background: #1E2621; color: #F3EEE4; border-color: #2A3A30; }
body.night .lc-cv-card.selected, html.lc-night .lc-cv-card.selected { background: #2A3A30; border-color: #F2A07E; }
body.night .lc-cv-badge, html.lc-night .lc-cv-badge { background: #4A2A1A; color: #FFD2B8; }
body.night .lc-cv-note, html.lc-night .lc-cv-note { background: #2A3A30; color: #F3EEE4; }

/* ---- pantry dates additions ---- */
#by-dates-wrap {
  margin: 4px 0 14px;
  --ok-bg: #E8F5EC;
  --ok-ink: #14532D;
  --warn-bg: #FDECEA;
  --warn-ink: #8A1C1C;
  --warn-edge: #B42318;
}
#by-dates-wrap > summary { min-height: 48px; display: flex; align-items: center; font-weight: 700; cursor: pointer; }
#by-dates-wrap .item {
  background: #fff;
  color: #1C2B22;
  border: 1px solid #D9D2C6;
  border-radius: 12px;
  padding: 10px 12px;
  margin: 8px 0;
}
#by-dates-wrap .top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 4px; }
#by-dates-wrap .nm { margin: 0; font-weight: 700; }
#by-dates-wrap .dt, #by-dates-wrap .meta, #by-dates-wrap .rule, #by-dates-wrap .src { margin: 4px 0; }
#by-dates-wrap .meta, #by-dates-wrap .src { color: #3D4A41; font-size: 0.92rem; }
#by-dates-wrap .tag2, #by-dates-wrap .xbadge, #by-dates-wrap .xbadge-premium {
  display: inline-block;
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 0.85rem;
  font-weight: 700;
}
#by-dates-wrap .tag2 { background: #1C2B22; color: #F6F1E8; }
#by-dates-wrap .xbadge-premium { background: #FCE8D9; color: #8A3A12; margin-left: 8px; }
#by-dates-wrap .item.expired {
  background: var(--warn-bg);
  color: var(--warn-ink);
  border: 2px solid var(--warn-edge);
  backdrop-filter: none;
}
#by-dates-wrap .item.expired .xbadge { background: var(--warn-ink); color: var(--warn-bg); }
#by-dates-wrap .dchips, #by-dates-wrap .kind, #by-dates-wrap .rbtns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; align-items: center; }
#by-dates-wrap .by-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: 8px; }
#by-dates-wrap .by-cal-hd, #by-dates-wrap .by-cal-pad { text-align: center; font-size: 0.8rem; color: #3D4A41; }
#by-dates-wrap .by-cal-day { width: 100%; min-height: 44px; padding: 0; border-radius: 10px; }
#by-dates-wrap .dchip {
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid #8C8579;
  background: #fff;
  color: #1C2B22;
  padding: 0 12px;
  font: inherit;
  font-weight: 700;
}
#by-dates-wrap .dchip[aria-pressed="true"] { background: #1C2B22; color: #F6F1E8; }
#by-dates-wrap .lbl { display: inline-block; border-radius: 999px; padding: 2px 10px; font-weight: 700; }
#by-dates-wrap .lbl.printed { background: var(--ok-bg); color: var(--ok-ink); border: 1px solid var(--ok-ink); }
#by-dates-wrap .lbl.guess { background: #FFF4E0; color: #6B3A00; border: 2px dashed #6B3A00; }
#by-dates-photo .btn {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 16px;
  background: #e8e0d6;
  font-weight: 700;
  cursor: pointer;
}
body.night #by-dates-wrap .dchip,
html.lc-night #by-dates-wrap .dchip,
html.night #by-dates-wrap .dchip,
body.night #by-dates-wrap .by-cal-day,
html.lc-night #by-dates-wrap .by-cal-day { min-height: 52px; }
body.night #by-dates-wrap,
html.lc-night #by-dates-wrap {
  --ok-bg: #12301F;
  --ok-ink: #CDEFD9;
  --warn-bg: #3A1714;
  --warn-ink: #FFD7D0;
  --warn-edge: #F97066;
}
body.night #by-dates-wrap .item,
html.lc-night #by-dates-wrap .item { background: #1E2621; color: #F3EEE4; border-color: #2A3A30; }
body.night #by-dates-wrap .item.expired,
html.lc-night #by-dates-wrap .item.expired { background: var(--warn-bg); color: var(--warn-ink); border-color: var(--warn-edge); backdrop-filter: none; }
body.night #by-dates-wrap .dchip,
html.lc-night #by-dates-wrap .dchip { background: #2A2C27; color: #F3EEE4; border-color: #8C8579; }
body.night #by-dates-wrap .meta,
body.night #by-dates-wrap .src,
html.lc-night #by-dates-wrap .meta,
html.lc-night #by-dates-wrap .src,
body.night #by-dates-wrap .by-cal-hd,
html.lc-night #by-dates-wrap .by-cal-hd { color: #D6D0C4; }
body.night #by-dates-wrap .lbl.guess,
html.lc-night #by-dates-wrap .lbl.guess { background: #33250D; color: #FBE3B5; border-color: #FBE3B5; }
/* elevenlabs-voices E3: per-chef voice selects (light 13.9:1, night 15.2:1) */
.lc-el-row { display: grid; gap: 4px; color: #1C2B22; }
.lc-el-select { min-height: 44px; padding: 6px 10px; border: 2px solid #D9D2C6; border-radius: 10px; background: #FFFFFF; color: #1C2B22; font: inherit; }
body.night .lc-el-row, html.lc-night .lc-el-row { color: #F3EEE4; }
body.night .lc-el-select, html.lc-night .lc-el-select { background: #1E2621; color: #F3EEE4; border-color: #2A3A30; }
