/* Calm, native-feeling, and readable at arm's length on a phone.
   Everything is a token so light and dark stay in step. */
:root {
  --bg: #f6f6f7;
  --surface: #ffffff;
  --surface-2: #ececed;
  --ink: #16161a;
  --ink-2: #6b6b73;
  --ink-3: #9a9aa3;
  --line: rgba(0, 0, 0, .09);
  --accent: #3b6ef5;
  --accent-ink: #ffffff;
  --warn: #d1642a;
  --ok: #2f8f5b;
  --bubble-me: #3b6ef5;
  --bubble-me-ink: #fff;
  --bubble-it: #ffffff;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.05);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e0e11;
    --surface: #1a1a1f;
    --surface-2: #24242b;
    --ink: #f2f2f5;
    --ink-2: #a0a0ab;
    --ink-3: #6e6e79;
    --line: rgba(255, 255, 255, .10);
    --accent: #5b84ff;
    --bubble-me: #3b6ef5;
    --bubble-it: #1a1a1f;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.3);
  }
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
/* An id selector with `display` beats the UA's [hidden] rule, so hiding a
   panel by attribute silently does nothing without this. */
[hidden] { display: none !important; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.45 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
        Roboto, system-ui, sans-serif;
  overscroll-behavior-y: none;
}
button, input, textarea { font: inherit; color: inherit; }

/* ---------- app shell ---------- */
#app { display: flex; flex-direction: column; height: 100dvh; }

/* One sticky bar, not two — on a 390px phone the old pair ate 115px before
   any content appeared. */
header {
  padding: calc(var(--safe-top) + 10px) 16px 0;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
}
header .row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
header h1 { margin: 0; font-size: 17px; font-weight: 650; letter-spacing: -.02em; }
header .date { color: var(--ink-2); font-size: 13px; font-weight: 500; }

/* ---------- scroll area ---------- */
main {
  flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 14px 14px 8px;
  display: flex; flex-direction: column; gap: 14px;
}

/* ---------- upcoming cards ---------- */
.board { display: flex; flex-direction: column; gap: 8px; }
.board h2 {
  margin: 2px 4px; font-size: 12px; font-weight: 660; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink-3);
}
.card {
  background: var(--surface); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 13px 15px;
  display: flex; align-items: center; gap: 12px;
  animation: rise .28s cubic-bezier(.2,.7,.3,1) both;
}
.card .body { flex: 1; min-width: 0; }
.card .title { font-weight: 560; letter-spacing: -.01em; }
.card .meta { font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.card.soon { box-shadow: var(--shadow), inset 3px 0 0 var(--warn); }
.card.overdue .meta { color: var(--warn); font-weight: 560; }
.card .tick {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  border: 1.6px solid var(--line); background: transparent;
  display: grid; place-items: center; cursor: pointer;
  transition: transform .15s, background .15s, border-color .15s;
}
.card .tick:active { transform: scale(.88); }
.card .tick svg { width: 15px; height: 15px; opacity: 0; transition: opacity .15s; }
.card .tick:hover { border-color: var(--ok); }
.card .tick:hover svg { opacity: .45; }
.card.ticking { opacity: 0; transform: translateX(28px); transition: all .3s; }

.pill {
  font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px;
  background: var(--surface-2); color: var(--ink-2); white-space: nowrap;
}

/* ---------- chat ---------- */
.thread { display: flex; flex-direction: column; gap: 9px; }
.msg {
  max-width: 82%; padding: 10px 14px; border-radius: 20px;
  word-wrap: break-word; animation: rise .26s cubic-bezier(.2,.7,.3,1) both;
  line-height: 1.42;
}
.msg.me {
  align-self: flex-end; background: var(--bubble-me); color: var(--bubble-me-ink);
  border-bottom-right-radius: 7px;
}
.msg.it {
  align-self: flex-start; background: var(--bubble-it); color: var(--ink);
  border-bottom-left-radius: 7px; box-shadow: var(--shadow);
}
.msg b { font-weight: 640; }
.msg i { font-style: normal; opacity: .72; font-size: 14px; }
.msg.me i { opacity: .85; }

.typing { display: flex; gap: 4px; align-items: center; padding: 14px 16px; }
.typing span {
  width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3);
  animation: blink 1.3s infinite;
}
.typing span:nth-child(2) { animation-delay: .18s; }
.typing span:nth-child(3) { animation-delay: .36s; }

/* ---------- composer ---------- */
footer {
  padding: 8px 12px calc(var(--safe-bottom) + 10px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-top: 1px solid var(--line);
}
.chips {
  display: flex; gap: 7px; overflow-x: auto; padding: 2px 2px 9px;
  scrollbar-width: none;
  /* fade the right edge so a half-visible chip reads as "scroll me" */
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 26px), transparent);
  mask-image: linear-gradient(to right, #000 calc(100% - 26px), transparent);
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; padding: 6px 13px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink-2); font-size: 13.5px; font-weight: 540;
  cursor: pointer; transition: transform .12s, background .12s;
}
.chip:active { transform: scale(.94); background: var(--surface-2); }

.composer { display: flex; gap: 9px; align-items: flex-end; }
.composer textarea {
  flex: 1; resize: none; border: 1px solid var(--line); background: var(--surface);
  border-radius: 21px; padding: 10px 16px; max-height: 130px; min-height: 42px;
  outline: none; transition: border-color .15s;
}
.composer textarea:focus { border-color: var(--accent); }
.send {
  flex: none; width: 42px; height: 42px; border-radius: 50%; border: 0;
  background: var(--accent); color: var(--accent-ink); cursor: pointer;
  display: grid; place-items: center; transition: transform .12s, opacity .15s;
}
.send:active { transform: scale(.9); }
.send:disabled { opacity: .35; }
.send svg { width: 19px; height: 19px; }

/* ---------- banners ---------- */
.banner {
  display: flex; gap: 12px; align-items: center;
  background: var(--surface); border-radius: var(--radius); padding: 13px 15px;
  box-shadow: var(--shadow); animation: rise .3s both;
}
.banner .body { flex: 1; }
.banner .body strong { display: block; font-weight: 600; letter-spacing: -.01em; }
.banner .body span { font-size: 13.5px; color: var(--ink-2); }
.banner button {
  flex: none; border: 0; border-radius: 999px; padding: 8px 15px;
  background: var(--accent); color: var(--accent-ink); font-weight: 580;
  font-size: 14px; cursor: pointer;
}
.banner button.ghost { background: var(--surface-2); color: var(--ink-2); }

/* ---------- login ---------- */
#login {
  position: fixed; inset: 0; z-index: 60; background: var(--bg);
  display: grid; place-items: center; padding: 24px;
}
#login .box { width: 100%; max-width: 320px; text-align: center; }
#login h1 { font-size: 24px; letter-spacing: -.03em; margin: 0 0 6px; }
#login p { color: var(--ink-2); font-size: 14.5px; margin: 0 0 22px; }
#login input {
  width: 100%; padding: 13px 16px; border-radius: 14px; text-align: center;
  border: 1px solid var(--line); background: var(--surface); outline: none;
  letter-spacing: .04em;
}
#login input:focus { border-color: var(--accent); }
#login button {
  width: 100%; margin-top: 10px; padding: 13px; border: 0; border-radius: 14px;
  background: var(--accent); color: var(--accent-ink); font-weight: 600; cursor: pointer;
}
#login .err { color: var(--warn); font-size: 13.5px; min-height: 19px; margin-top: 10px; }

.empty { text-align: center; color: var(--ink-3); font-size: 14px; padding: 18px 10px; }

@keyframes rise { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
@keyframes blink { 0%, 60%, 100% { opacity: .25; } 30% { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ===================== voice + polish ===================== */

:root {
  --glow: radial-gradient(circle at 30% 25%, #7aa2ff, #3b6ef5 42%, #2a49c9 72%, #1b2f8f);
}

/* header bits */
header .brand { display: flex; align-items: center; gap: 9px; }
header .head-right { display: flex; align-items: center; gap: 10px; }
.dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--ok);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 60%, transparent);
  animation: pulse 2.6s infinite;
}
.dot.off { background: var(--ink-3); animation: none; box-shadow: none; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 55%, transparent); }
  70% { box-shadow: 0 0 0 7px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.iconbtn {
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink-3); display: grid; place-items: center;
  cursor: pointer; transition: color .15s, border-color .15s, transform .12s;
}
.iconbtn svg { width: 16px; height: 16px; }
.iconbtn .wave { opacity: 0; transition: opacity .18s; }
.iconbtn.on { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.iconbtn.on .wave { opacity: 1; }
.iconbtn:active { transform: scale(.9); }

/* mic in the composer */
.mic {
  flex: none; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2);
  display: grid; place-items: center; cursor: pointer; transition: transform .12s;
}
.mic svg { width: 19px; height: 19px; }
.mic:active { transform: scale(.9); }
.mic[hidden] { display: none !important; }

/* the assistant bubble while it is being read aloud */
.msg.it.speaking {
  box-shadow: var(--shadow), 0 0 0 1.5px color-mix(in srgb, var(--accent) 55%, transparent);
}

/* ---------- voice overlay ---------- */
#voice {
  position: fixed; inset: 0; z-index: 50;
  /* Opaque, not translucent. backdrop-filter is a nice-to-have; when it does
     not apply the page showed straight through the orb. */
  background: var(--bg);
  backdrop-filter: blur(26px) saturate(150%);
  -webkit-backdrop-filter: blur(26px) saturate(150%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 26px; padding: calc(var(--safe-top) + 20px) 26px calc(var(--safe-bottom) + 28px);
  animation: fade .22s ease both;
}
#voice .close {
  position: absolute; top: calc(var(--safe-top) + 14px); left: 18px;
  background: none; border: 0; color: var(--ink-2); font-size: 16px; cursor: pointer;
}
.orb-wrap { display: grid; place-items: center; height: 220px; width: 220px; }
.orb { position: relative; width: 128px; height: 128px; display: grid; place-items: center; }
.orb .core {
  width: 112px; height: 112px; border-radius: 50%; background: var(--glow);
  box-shadow: 0 10px 50px color-mix(in srgb, var(--accent) 45%, transparent);
  transform: scale(var(--level, 1));
  transition: transform .07s linear;
}
.orb .ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1.5px solid color-mix(in srgb, var(--accent) 40%, transparent);
  animation: ripple 2.8s cubic-bezier(.2,.6,.3,1) infinite;
}
.orb .r2 { animation-delay: .9s; }
.orb .r3 { animation-delay: 1.8s; }
@keyframes ripple {
  0%   { transform: scale(.86); opacity: .65; }
  100% { transform: scale(1.75); opacity: 0; }
}
#voice.thinking .orb .core { animation: breathe 1.5s ease-in-out infinite; }
@keyframes breathe { 0%,100% { transform: scale(.92); } 50% { transform: scale(1.06); } }

.heard {
  margin: 0; font-size: 21px; font-weight: 560; text-align: center;
  letter-spacing: -.02em; min-height: 56px; max-width: 460px; line-height: 1.3;
}
.heard.dim { color: var(--ink-3); font-weight: 500; }
.hint { margin: -14px 0 0; color: var(--ink-3); font-size: 14px; text-align: center; }
#voice .stop {
  border: 0; border-radius: 999px; padding: 13px 34px; font-size: 16px; font-weight: 600;
  background: var(--accent); color: var(--accent-ink); cursor: pointer;
}
#voice .stop:active { transform: scale(.95); }

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* undo, because one tap should never be final */
.toast {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(var(--safe-bottom) + 110px); z-index: 70;
  display: flex; align-items: center; gap: 14px;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 10px 10px 10px 18px; box-shadow: var(--shadow);
  max-width: calc(100vw - 32px); animation: rise .22s cubic-bezier(.2,.7,.3,1) both;
}
.toast span { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toast button {
  flex: none; border: 0; border-radius: 999px; padding: 7px 15px;
  background: var(--accent); color: var(--accent-ink); font-weight: 600;
  font-size: 14px; cursor: pointer;
}

/* ===================== today / health ===================== */
.tabs { display: flex; gap: 2px; margin-top: 4px; }
.tab {
  flex: 1; border: 0; background: transparent; color: var(--ink-3);
  padding: 8px 0 9px; font-size: 14.5px; font-weight: 570; cursor: pointer;
  border-bottom: 2px solid transparent; transition: color .15s, border-color .15s;
}
.tab.on { color: var(--ink); border-bottom-color: var(--accent); }

#healthView { display: flex; flex-direction: column; gap: 16px; }
#healthView[hidden] { display: none !important; }

.stat {
  background: var(--surface); border-radius: var(--radius); padding: 18px 20px;
  box-shadow: var(--shadow);
}
.stat .big { font-size: 34px; font-weight: 680; letter-spacing: -.035em; line-height: 1; }
.stat .sub { color: var(--ink-2); font-size: 14px; margin-top: 6px; }
.stat .sub b { color: var(--ink); font-weight: 600; }

/* sleep bars — a week at a glance, no charting library */
.chart { display: flex; align-items: flex-end; gap: 7px; height: 108px; padding: 4px 2px 0; }
.chart .col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.chart .bar {
  width: 100%; border-radius: 7px 7px 3px 3px; background: var(--accent);
  min-height: 4px; transition: height .35s cubic-bezier(.2,.7,.3,1);
}
.chart .bar.low { background: var(--warn); }
.chart .bar.none { background: var(--surface-2); }
.chart .lbl { font-size: 11px; color: var(--ink-3); font-weight: 560; }
.chart .val { font-size: 11px; color: var(--ink-2); font-weight: 600; }

.line {
  display: flex; gap: 10px; align-items: baseline;
  background: var(--surface); border-radius: 14px; padding: 11px 14px;
  box-shadow: var(--shadow); margin-bottom: 7px;
}
.line .t { flex: none; font-size: 12px; color: var(--ink-3); font-weight: 600;
           min-width: 52px; }
.line .v { flex: 1; font-size: 15px; }

.quickrow, .askrow { display: flex; gap: 8px; margin-top: 8px; }
.quickrow input, .askrow input {
  flex: 1; border: 1px solid var(--line); background: var(--surface);
  border-radius: 13px; padding: 11px 14px; outline: none;
}
.quickrow input:focus, .askrow input:focus { border-color: var(--accent); }
.quickrow button {
  flex: none; border: 0; border-radius: 13px; padding: 0 18px; font-weight: 600;
  background: var(--accent); color: var(--accent-ink); cursor: pointer;
}
.askrow button {
  flex: none; width: 44px; border: 0; border-radius: 13px;
  background: var(--accent); color: var(--accent-ink); cursor: pointer;
  display: grid; place-items: center;
}
.askrow button svg { width: 18px; height: 18px; }

.ask {
  background: var(--surface); border-radius: var(--radius); padding: 16px 18px;
  box-shadow: var(--shadow), inset 3px 0 0 var(--accent);
}
.ask p { margin: 0; font-size: 17px; font-weight: 560; letter-spacing: -.015em; }

.empty code {
  display: inline-block; margin-top: 4px; padding: 5px 8px; border-radius: 7px;
  background: var(--surface-2); color: var(--ink); font-size: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* WHOOP setup is long and one-time — collapse it so it does not dominate
   the pane he looks at every day. */
#whoopBoard details {
  background: var(--surface); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
#whoopBoard summary {
  list-style: none; cursor: pointer; padding: 14px 16px;
  font-weight: 570; font-size: 15px; display: flex; align-items: center; gap: 9px;
}
#whoopBoard summary::-webkit-details-marker { display: none; }
#whoopBoard summary::after {
  content: "›"; margin-left: auto; color: var(--ink-3); font-size: 20px;
  transition: transform .2s;
}
#whoopBoard details[open] summary::after { transform: rotate(90deg); }
#whoopBoard summary::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--ink-3); flex: none;
}
#whoopBoard details.live summary::before { background: var(--ok); }
#whoopBody { padding: 0 16px 16px; }

/* ===================== more ===================== */
#moreView { display: flex; flex-direction: column; gap: 16px; }
#moreView[hidden] { display: none !important; }

.setting {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); border-radius: 14px; padding: 13px 15px;
  box-shadow: var(--shadow); margin-bottom: 7px;
}
.setting .body { flex: 1; min-width: 0; }
.setting .body strong { display: block; font-weight: 590; font-size: 15px; }
.setting .body span { font-size: 13px; color: var(--ink-2); }
.setting .chip { flex: none; }

.person {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border-radius: 14px; padding: 12px 15px;
  box-shadow: var(--shadow); margin-bottom: 7px;
}
.person .name { flex: 1; font-weight: 560; }
.person .ago { font-size: 13px; color: var(--ink-2); }
.person.due .ago { color: var(--warn); font-weight: 600; }
.person button {
  flex: none; border: 0; background: var(--surface-2); color: var(--ink-2);
  border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 560;
  cursor: pointer;
}

.day {
  background: var(--surface); border-radius: 14px; padding: 12px 15px;
  box-shadow: var(--shadow); margin-bottom: 7px;
}
.day .head { display: flex; gap: 10px; align-items: baseline; }
.day .head .d { font-weight: 600; font-size: 14.5px; }
.day .head .s { font-size: 13px; color: var(--ink-2); margin-left: auto; }
.day ul { margin: 7px 0 0; padding-left: 17px; }
.day li { font-size: 13.5px; color: var(--ink-2); margin: 2px 0; }

/* the orb, when it is the assistant talking rather than him */
#voice.speaking .orb .core { animation: talk 1.1s ease-in-out infinite; }
@keyframes talk {
  0%, 100% { transform: scale(.94); }
  35% { transform: scale(1.1); }
  60% { transform: scale(1.0); }
}
#voice.speaking .stop { background: var(--surface-2); color: var(--ink); }

/* ===================== themes ===================== */
/* One accent, swapped by a data-accent on <html>. Everything already reads
   --accent, so a theme is two lines. */
:root[data-accent="violet"] { --accent: #7c5cff; --glow: radial-gradient(circle at 30% 25%, #b49cff, #7c5cff 42%, #5b39d6 72%, #3d227f); }
:root[data-accent="green"]  { --accent: #17a06a; --glow: radial-gradient(circle at 30% 25%, #6fe0b0, #17a06a 42%, #0d7a4f 72%, #075437); }
:root[data-accent="amber"]  { --accent: #d98016; --glow: radial-gradient(circle at 30% 25%, #ffc678, #d98016 42%, #a75c08 72%, #6d3c05); }
:root[data-accent="rose"]   { --accent: #e2427a; --glow: radial-gradient(circle at 30% 25%, #ff9dbd, #e2427a 42%, #b02458 72%, #74153a); }
:root[data-accent="cyan"]   { --accent: #0e9cc4; --glow: radial-gradient(circle at 30% 25%, #7fdcf2, #0e9cc4 42%, #07708f 72%, #044a5f); }

.swatches { display: flex; gap: 10px; flex-wrap: wrap; padding: 4px 2px 0; }
.swatch {
  width: 38px; height: 38px; border-radius: 50%; border: 2px solid transparent;
  cursor: pointer; padding: 0; position: relative; transition: transform .14s;
}
.swatch:active { transform: scale(.9); }
.swatch.on { border-color: var(--ink); }
.swatch.on::after {
  content: ""; position: absolute; inset: 5px; border-radius: 50%;
  border: 2px solid #fff; opacity: .85;
}

/* ===================== meals with photos ===================== */
.mealgrid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 9px;
}
.meal {
  position: relative; border-radius: 15px; overflow: hidden;
  background: var(--surface); box-shadow: var(--shadow);
  aspect-ratio: 1; display: flex; flex-direction: column; justify-content: flex-end;
  animation: rise .3s cubic-bezier(.2,.7,.3,1) both;
}
.meal img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.meal .shade {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.78) 0%, rgba(0,0,0,.15) 52%, transparent 78%);
}
.meal .label {
  position: relative; padding: 9px 10px; font-size: 12.5px; font-weight: 570;
  line-height: 1.25; color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,.5);
}
.meal .time {
  position: absolute; top: 8px; left: 9px; z-index: 1;
  font-size: 10.5px; font-weight: 650; letter-spacing: .03em;
  color: #fff; background: rgba(0,0,0,.42); padding: 3px 7px; border-radius: 999px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
/* no photo: a tinted tile rather than an empty box */
.meal.noimg { background: linear-gradient(145deg,
  color-mix(in srgb, var(--accent) 22%, var(--surface)), var(--surface)); }
.meal.noimg .label { color: var(--ink); text-shadow: none; }
.meal.noimg .time { color: var(--ink-2); background: var(--surface-2); backdrop-filter: none; }
.meal.noimg .shade { display: none; }

.iconsq {
  flex: none; width: 44px; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink-2); border-radius: 13px; display: grid; place-items: center;
  cursor: pointer; transition: transform .12s, color .15s;
}
.iconsq svg { width: 20px; height: 20px; }
.iconsq:active { transform: scale(.92); }
.iconsq.armed { color: var(--accent); border-color: var(--accent); }

/* ===================== mood chips ===================== */
.moods { display: flex; gap: 7px; flex-wrap: wrap; margin: 11px 0 2px; }
.mood {
  border: 1px solid var(--line); background: var(--surface-2); color: var(--ink);
  border-radius: 999px; padding: 7px 13px; font-size: 14px; font-weight: 540;
  cursor: pointer; transition: transform .12s, background .15s, border-color .15s;
}
.mood:active { transform: scale(.93); }
.mood:hover { border-color: var(--accent); }

/* a little more life in the headings */
.board h2 {
  display: flex; align-items: center; gap: 7px;
}
.board h2::before {
  content: ""; width: 13px; height: 2px; border-radius: 2px;
  background: var(--accent); opacity: .8;
}
