/* Platewise — a calm, editorial food diary. Over-target rings stay green. */
:root {
  --bg-grad: linear-gradient(180deg, #F6F7F2, #F6F7F2);
  --bg: #F6F7F2;
  --card: #FFFFFF;
  --card-solid: #FFFFFF;
  --pill: #EFF2E9;
  --input: #FAFBF7;
  --line: #E7EBE1;
  --hero: #315B3D;
  --hero-ink: #FFFFFF;
  --ring: #7B9B60;
  --ring-deep: #315B3D;
  --ring-track: #EDF0E7;
  --week-dot: #7B9B60;
  --protein: #89A977;
  --carbs: #D8B665;
  --fat: #C99174;
  --estimated: #C98A12;
  --estimated-dot: #F4C166;
  --warn-bg: #FFF6E3;
  --text: #29372B;
  --text-2: #717A6D;
  --radius-card: 22px;
  --radius-pill: 999px;
  --shadow-soft: 0 4px 18px rgba(34, 55, 33, .025);
  --font-round: "Segoe UI", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --tabbar-h: 64px;
  --logbar-h: 64px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg-grad: linear-gradient(180deg, #0F1A17 0%, #111816 60%, #0E1412 100%);
    --bg: #111816; --card: #18221F; --card-solid: #1B2622; --pill: #24312D; --input: #1B2622;
    --line: #26332F; --hero: #3E9C7C; --hero-ink: #0D2419; --ring: #5FBF9B; --ring-deep: #8ED9BB; --ring-track: #24312D;
    --week-dot: #5FBF9B; --protein: #6FAF98; --carbs: #D9A64F; --fat: #DB7B4D;
    --estimated: #E6B24A; --estimated-dot: #E6B24A; --warn-bg: #2A2416;
    --text: #E8F0EC; --text-2: #9AABA4; --shadow-soft: 0 8px 24px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--font-round);
  color: var(--text);
  background: var(--bg-grad) fixed, var(--bg);
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.muted { color: var(--text-2); }
h1 { font-size: 30px; font-weight: 800; letter-spacing: -.01em; margin: 0; }

.view {
  max-width: 560px; margin: 0 auto;
  padding: calc(env(safe-area-inset-top) + 20px) 16px
           calc(var(--tabbar-h) + var(--logbar-h) + env(safe-area-inset-bottom) + 28px);
}
.card {
  background: var(--card); border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft); padding: 18px; margin-bottom: 14px;
}

/* ---------- greeting ---------- */
.greet { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.greet p { margin: 4px 0 0; font-size: 17px; }
.kiwi { width: 112px; height: auto; margin: -10px -6px -6px 0; }
@media (prefers-reduced-motion: no-preference) {
  .kiwi { animation: bob 3.2s ease-in-out infinite; }
  .kiwi.happy { animation: hop .5s ease-out 1, bob 3.2s ease-in-out .5s infinite; }
  @keyframes bob { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-5px) } }
  @keyframes hop { 30% { transform: translateY(-14px) rotate(-4deg) } 60% { transform: translateY(0) } }
}

/* ---------- summary ---------- */
.summary { display: grid; grid-template-columns: 150px 1fr; gap: 18px; align-items: center; }
.ring-wrap { position: relative; width: 150px; height: 150px; }
.ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 11; stroke-linecap: round; }
.ring-track { stroke: var(--ring-track); }
.ring-fill { stroke: var(--ring); stroke-dasharray: 314.16; stroke-dashoffset: 314.16;
  transition: stroke-dashoffset .8s cubic-bezier(.2, .8, .2, 1); }
.ring-over { stroke: var(--ring-deep); stroke-dasharray: 314.16; stroke-dashoffset: 314.16; opacity: 0;
  transition: stroke-dashoffset .8s cubic-bezier(.2, .8, .2, 1); }
.ring-label { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring-label strong { font-size: 32px; font-weight: 800; font-variant-numeric: tabular-nums; }
.ring-label span { font-size: 14px; margin-top: 2px; }
.macros { display: grid; gap: 14px; }
.macro-row { display: flex; justify-content: space-between; font-size: 16px; margin-bottom: 6px; }
.macro-row b { font-weight: 700; font-variant-numeric: tabular-nums; }
.bar { height: 8px; border-radius: 99px; background: var(--ring-track); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; border-radius: 99px; transition: width .8s cubic-bezier(.2, .8, .2, 1); }
.macro[data-k=protein] i { background: var(--protein); }
.macro[data-k=carbs] i { background: var(--carbs); }
.macro[data-k=fat] i { background: var(--fat); }

/* ---------- plate ---------- */
.plate-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 8px; }
.bubble { flex: none; width: 38px; height: 38px; border-radius: 50%; background: #DDF1E8; display: grid; place-items: center; }
.bubble svg { width: 20px; fill: var(--hero); }
.plate-head small { display: block; color: var(--text-2); font-size: 14px; }
.plate-head h2 { font-size: 18px; font-weight: 800; margin: 2px 0 0; line-height: 1.3; }
.item { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; padding: 12px 0;
  border-top: 1px solid var(--line); align-items: start; }
.item:first-of-type { border-top: 0; }
.thumb { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  font-weight: 800; font-size: 18px; color: var(--hero); background: #E3F3EC; }
.thumb.ask { background: var(--warn-bg); color: var(--estimated); }
.item-name { font-weight: 700; font-size: 17px; line-height: 1.25; }
.item-meta { color: var(--text-2); font-size: 15px; margin-top: 3px; font-variant-numeric: tabular-nums; }
.item-meta button.link { font-size: 15px; color: var(--text-2); font-weight: 600;
  text-decoration-style: dotted; text-decoration-color: color-mix(in srgb, var(--text-2) 60%, transparent); }
.est { color: var(--estimated); font-size: 14px; margin-top: 4px; display: flex; align-items: center; gap: 6px; }
button.est { border: 0; background: none; padding: 0; font-weight: 600; }
.est::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--estimated-dot); }
.warn { font-size: 13px; color: var(--text-2); margin-top: 4px; }
.pill { border: 0; background: var(--pill); color: var(--text-2); font-size: 13px; font-weight: 700;
  padding: 5px 11px; border-radius: var(--radius-pill); white-space: nowrap; }
.pill.mine { background: #DDF1E8; color: var(--hero); }
.item-side { display: grid; justify-items: end; gap: 6px; }
.x { border: 0; background: none; color: var(--text-2); font-size: 20px; line-height: 1; padding: 2px 4px; }
.q { font-weight: 700; font-size: 16px; margin: 2px 0 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1.5px solid var(--line); background: var(--card-solid); border-radius: var(--radius-pill);
  padding: 8px 13px; font-size: 15px; font-weight: 600; min-height: 40px; }
.chip small { color: var(--text-2); font-weight: 600; margin-left: 4px; }
.chip.soft { border-style: dashed; }
.inline-form { display: flex; gap: 8px; margin-top: 10px; align-items: center; flex-wrap: wrap; }
.inline-form input { flex: 1; min-width: 110px; height: 42px; border-radius: 14px; border: 1.5px solid var(--line);
  background: var(--input); padding: 0 12px; font-size: 16px; }
.inline-form label.remember { font-size: 14px; color: var(--text-2); display: flex; gap: 8px; align-items: center; flex-basis: 100%; }
.inline-form input[type=checkbox] { flex: none; width: 20px; height: 20px; min-width: 0; padding: 0; accent-color: var(--hero); }
.btn-small { height: 42px; border: 0; border-radius: 14px; padding: 0 16px; background: var(--pill); font-weight: 700; }
.plate-actions { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; margin-top: 14px; }
.btn-hero { height: 54px; border: 0; border-radius: var(--radius-pill); background: var(--hero); color: var(--hero-ink);
  font-size: 18px; font-weight: 800; padding: 0 22px; box-shadow: 0 6px 16px rgba(32, 106, 84, .25); }
.btn-hero:disabled { opacity: .45; box-shadow: none; }
.btn-quiet { border: 0; background: none; color: var(--text-2); font-weight: 700; font-size: 17px; padding: 10px 14px; }
.plate-note { font-size: 14px; color: var(--text-2); margin: 10px 0 0; }
.thinking { display: flex; gap: 12px; align-items: center; color: var(--text-2); padding: 6px 0; }
.dots i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ring); margin-right: 4px; opacity: .3; }
@media (prefers-reduced-motion: no-preference) {
  .dots i { animation: blink 1.2s infinite; } .dots i:nth-child(2) { animation-delay: .2s } .dots i:nth-child(3) { animation-delay: .4s }
  @keyframes blink { 50% { opacity: 1 } }
}

/* ---------- timeline ---------- */
.timeline h3 { font-size: 15px; color: var(--text-2); font-weight: 700; margin: 0 0 4px; text-transform: none; }
.entry { display: grid; grid-template-columns: 52px 1fr auto; gap: 10px; padding: 11px 0; border-top: 1px solid var(--line);
  align-items: center; width: 100%; text-align: left; background: none; border-left: 0; border-right: 0; border-bottom: 0; }
.entry:first-of-type { border-top: 0; }
.entry time { color: var(--text-2); font-size: 14px; font-variant-numeric: tabular-nums; }
.entry .kc { font-weight: 800; font-variant-numeric: tabular-nums; }
.empty { text-align: center; color: var(--text-2); padding: 22px 18px; }
.empty p { margin: 0; }

/* ---------- week ---------- */
.week { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; padding: 14px 8px; }
.wd { display: grid; gap: 8px; justify-items: center; font-size: 15px; color: var(--text-2); background: none; border: 0; }
.wd.today { color: var(--text); font-weight: 800; }
.dot { width: 18px; height: 18px; border-radius: 50%; background: var(--ring-track); }
.dot.one { background: color-mix(in srgb, var(--week-dot) 55%, var(--ring-track)); }
.dot.full { background: var(--week-dot); }
.dot.future { background: var(--ring-track); opacity: .55; }
.wd.today .dot { box-shadow: 0 0 0 3px var(--card), 0 0 0 5px var(--week-dot); }

.credits { text-align: center; margin: 4px 0 0; }
.link { border: 0; background: none; color: var(--hero); font-weight: 700; padding: 0; text-decoration: underline;
  text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* ---------- log bar + tab bar ---------- */
.logbar { position: fixed; left: 0; right: 0; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  display: flex; gap: 10px; padding: 10px 16px; max-width: 560px; margin: 0 auto;
  background: linear-gradient(180deg, transparent, var(--bg) 35%); }
.logbar input { flex: 1; height: 50px; border-radius: var(--radius-pill); border: 1.5px solid var(--line);
  background: var(--card-solid); padding: 0 20px; font-size: 17px; box-shadow: var(--shadow-soft); min-width: 0; }
.logbar input:focus, .inline-form input:focus { outline: 2px solid var(--ring); outline-offset: 1px; }
.round { width: 50px; height: 50px; flex: none; border-radius: 50%; border: 0; background: var(--card-solid);
  box-shadow: var(--shadow-soft); display: grid; place-items: center; }
.round svg { width: 23px; fill: var(--text-2); }
.round.rec { background: var(--hero); } .round.rec svg { fill: #fff; }
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom); display: grid; grid-template-columns: repeat(4, 1fr);
  background: color-mix(in srgb, var(--card-solid) 88%, transparent); backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px); border-top: 1px solid var(--line); }
.tab { border: 0; background: none; display: grid; justify-items: center; align-content: center; gap: 3px;
  color: var(--text-2); font-size: 12px; font-weight: 700; position: relative; }
.tab svg { width: 25px; fill: currentColor; }
.tab.active { color: var(--hero); }
.tab.active::after { content: ""; position: absolute; bottom: 6px; width: 5px; height: 5px; border-radius: 50%; background: var(--hero); }

/* ---------- auth ---------- */
.auth { max-width: 420px; margin: 0 auto; padding: calc(env(safe-area-inset-top) + 40px) 16px 40px; text-align: center; }
.auth-kiwi { width: 150px; height: auto; }
.auth h1 { margin-top: 8px; }
.auth > p { margin: 8px 0 22px; font-size: 17px; }
.auth-card { display: grid; gap: 14px; text-align: left; padding: 22px; }
.auth-card label { display: grid; gap: 6px; font-weight: 700; font-size: 15px; }
.auth-card input { height: 48px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--input); padding: 0 14px; font-size: 17px; }
.form-error { color: #B3261E; margin: 0; min-height: 1em; font-size: 15px; }
@media (prefers-color-scheme: dark) { .form-error { color: #F2B8B5; } }

/* ---------- sheet + toast ---------- */
.sheet { border: 0; padding: 0; width: min(560px, 100%); max-height: 86dvh; margin: auto auto 0; border-radius: 26px 26px 0 0;
  background: var(--card-solid); color: var(--text); box-shadow: 0 -10px 40px rgba(0, 0, 0, .18); }
.sheet::backdrop { background: rgba(10, 25, 20, .35); }
.sheet-body { padding: 22px 18px calc(22px + env(safe-area-inset-bottom)); overflow: auto; }
.sheet h2 { font-size: 21px; margin: 0 0 6px; }
.sheet dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 14px 0; }
.sheet dt { color: var(--text-2); } .sheet dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.src { padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; }
.src b { display: block; }
.sheet-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.scan-video { width: 100%; border-radius: 18px; background: #000; aspect-ratio: 4 / 3; object-fit: cover; }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--tabbar-h) + var(--logbar-h) + env(safe-area-inset-bottom) + 18px);
  background: var(--text); color: var(--bg); padding: 12px 18px; border-radius: 16px; font-weight: 700; font-size: 15px;
  box-shadow: var(--shadow-soft); max-width: calc(100% - 32px); z-index: 20; }

/* ---------- shared page bits ---------- */
.page-head { display: flex; justify-content: space-between; align-items: center; margin: 6px 0 16px; }
.round.small { width: 40px; height: 40px; box-shadow: none; background: var(--card); }
.round.small svg { width: 21px; }
.greet-side { position: relative; }
.gear { position: absolute; top: -8px; right: -6px; width: 36px; height: 36px; opacity: .85; }
.logday { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px;
  background: var(--warn-bg); font-size: 15px; }

/* ---------- diary ---------- */
.month-nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.month-nav h2 { font-size: 19px; margin: 0; font-weight: 800; }
.cal-head, .cal { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; }
.cal-head span { font-size: 13px; color: var(--text-2); font-weight: 700; padding-bottom: 6px; }
.cal { gap: 4px; }
.cday { aspect-ratio: 1; border: 0; border-radius: 14px; background: none; display: grid; place-items: center;
  align-content: center; gap: 3px; font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text); }
.cday.out { color: var(--text-2); opacity: .45; }
.cday.future { color: var(--text-2); }
.cday.today { background: color-mix(in srgb, var(--week-dot) 14%, transparent); }
.cday .dot { width: 12px; height: 12px; }
.dot.done { box-shadow: 0 0 0 2px var(--card), 0 0 0 3.5px var(--hero); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 12px; font-size: 13px; color: var(--text-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend .dot { width: 11px; height: 11px; display: inline-block; }
.weeks h3, .results h3, #my-section h3 { font-size: 15px; color: var(--text-2); margin: 0 0 6px; }
.wk { display: flex; justify-content: space-between; padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; }
.wk:first-of-type { border-top: 0; }
.wk b { font-variant-numeric: tabular-nums; }

/* ---------- library ---------- */
.lib-search input { width: 100%; height: 50px; border-radius: var(--radius-pill); border: 1.5px solid var(--line);
  background: var(--card-solid); padding: 0 20px; font-size: 17px; box-shadow: var(--shadow-soft); }
.lib-search input:focus { outline: 2px solid var(--ring); outline-offset: 1px; }
.chips.filter { margin: 12px 0 14px; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.chip.on { background: var(--hero); color: var(--hero-ink); border-color: var(--hero); }
.frow { display: grid; grid-template-columns: 1fr auto; gap: 10px; width: 100%; text-align: left; padding: 11px 0;
  border: 0; border-top: 1px solid var(--line); background: none; align-items: center; }
.frow:first-of-type { border-top: 0; }
.frow .item-meta { font-size: 14px; }
.frow .kc { font-weight: 800; font-variant-numeric: tabular-nums; text-align: right; }
.frow .kc small { display: block; font-weight: 600; color: var(--text-2); font-size: 12px; }
.mine-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 10px 0; border-top: 1px solid var(--line); align-items: center; font-size: 15px; }
.mine-row:first-of-type { border-top: 0; }
.cite { font-size: 13px; color: var(--text-2); background: var(--pill); border-radius: 14px; padding: 10px 12px; margin: 12px 0; }
.sheet h3 { font-size: 15px; color: var(--text-2); margin: 16px 0 6px; }

/* ---------- settings ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-grid label, .sheet label.field { display: grid; gap: 5px; font-weight: 700; font-size: 14px; }
.form-grid input, .form-grid select, .sheet label.field input { height: 44px; border-radius: 12px; border: 1.5px solid var(--line);
  background: var(--input); padding: 0 12px; font-size: 16px; color: var(--text); width: 100%; }
.seg { display: flex; gap: 6px; flex-wrap: wrap; }
.btn-danger { height: 46px; border: 1.5px solid #E0B4B0; background: none; color: #A1342C; border-radius: 14px;
  font-weight: 800; padding: 0 16px; }
@media (prefers-color-scheme: dark) { .btn-danger { border-color: #6B3A36; color: #F2B8B5; } }
.hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0 4px; }

@media (max-width: 380px) {
  .summary { grid-template-columns: 124px 1fr; gap: 12px; }
  .ring-wrap { width: 124px; height: 124px; }
  .ring-label strong { font-size: 26px; }
  h1 { font-size: 26px; }
}

/* ---------- responsive editorial shell ---------- */
:root { --sidebar-w: 216px; --mobile-nav-h: 72px; }
html { scroll-padding: 24px 0; }
body { line-height: 1.5; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { transition: background .18s, box-shadow .18s, transform .18s; }
button:disabled { cursor: default; opacity: .55; }
button:not(:disabled):active { transform: translateY(1px); }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 3px; }
@media (hover: hover) { button:not(:disabled):hover { filter: brightness(.96); } }
h1 { font-weight: 650; letter-spacing: -.035em; line-height: 1.2; overflow-wrap: anywhere; }
.eyebrow { display: block; font-size: 11px; line-height: 1.5; font-weight: 700; letter-spacing: 1.3px; color: var(--text-2); }
.card { border: 1px solid var(--line); padding: 24px; margin-bottom: 22px; }
.view { max-width: 1320px; padding: 34px 36px 40px; }
#app { margin-left: var(--sidebar-w); }
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar-w); background: var(--card); border-right: 1px solid var(--line); padding: 30px 22px 22px; z-index: 10; display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; text-decoration: none; color: var(--text); font-size: 27px; font-weight: 700; letter-spacing: -1.2px; }
.brand-period { color: var(--ring); }
.brand-mark { display: grid; place-items: center; margin-right: 7px; width: 30px; height: 36px; }
.brand-mark svg { width: 29px; fill: var(--hero); }
.brand-mark .leaf-stem { stroke: var(--hero); stroke-width: 2; stroke-linecap: round; fill: none; }
.sidebar-caption { margin: 38px 0 0 8px; font-size: 10px; letter-spacing: 1px; font-weight: 650; color: var(--text-2); }
.sidebar-note { margin-top: auto; border-radius: 18px; background: var(--bg); padding: 0 14px 18px; text-align: center; }
.sidebar-note img { object-fit: contain; display: block; margin: -26px auto 6px; }
.sidebar-note h3 { margin: 0 0 8px; font: 21px/1.25 Georgia, serif; }
.sidebar-note p { font-size: 12px; color: var(--text-2); line-height: 1.7; margin: 0; }
.sidebar-settings { margin-top: 20px; min-height: 44px; display: flex; align-items: center; gap: 9px; background: none; border: 0; padding: 10px 0; font-size: 13px; font-weight: 600; color: var(--text-2); text-align: left; }
.sidebar-settings svg { width: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; }
.sidebar-foot { font-size: 11px; color: var(--text-2); margin-top: 12px; }
.tabbar { top: 166px; left: 14px; right: auto; bottom: auto; width: calc(var(--sidebar-w) - 28px); height: auto; display: grid; grid-template-columns: 1fr; gap: 6px; background: none; border: 0; padding: 0; backdrop-filter: none; z-index: 11; }
.tab { display: flex; justify-content: flex-start; align-items: center; gap: 12px; padding: 14px 18px; min-height: 50px; border-radius: 11px; font-size: 14px; font-weight: 600; }
.tab svg { width: 21px; height: 21px; flex: none; opacity: .8; }
.tab.active { background: var(--pill); color: var(--hero); }
.tab.active svg { opacity: 1; }
.tab.active::after { bottom: auto; right: 14px; width: 5px; height: 5px; }
.greet { min-height: 70px; margin-bottom: 24px; gap: 16px; }
.greet .eyebrow { margin-bottom: 7px; }
.greet h1 { font-size: clamp(25px, 2.4vw, 32px); }
.greet p { font-size: 14px; margin-top: 7px; }
.greet-side { flex: none; }
.gear { position: static; opacity: 1; }
.round.small { background: var(--card); border: 1px solid var(--line); width: 44px; height: 44px; }
.page-head { gap: 16px; margin: 0 0 26px; }
.page-head h1 { font-size: 32px; margin-top: 7px; }
.page-head p { font-size: 15px; margin: 8px 0 0; }
.page-head > div, .greet > div:first-child { min-width: 0; }

/* Photography has its own column so text stays legible at every width. */
.welcome-banner { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.9fr); min-height: 250px; position: relative; overflow: hidden; background: #F2EEE4; border: 1px solid #E6E3D8; border-radius: 22px; margin-bottom: 26px; }
.welcome-photo { position: absolute; inset: 0 0 0 auto; width: 47.3684%; height: 100%; object-fit: cover; object-position: 65% 52%; }
.welcome-copy { grid-column: 1; grid-row: 1; padding: 28px 32px; color: #293E2E; }
.welcome-copy .eyebrow { font-size: 10px; letter-spacing: 1.3px; color: #5D6C52; display: flex; align-items: center; gap: 8px; }
.tiny-leaf { font-size: 17px; }
.welcome-copy h2 { font: clamp(34px, 3vw, 44px)/1.1 Georgia, serif; letter-spacing: -1.2px; margin: 12px 0; }
.welcome-copy p { font-size: 14px; color: #596550; margin: 0 0 18px; line-height: 1.6; }
.welcome-copy .btn-hero { height: 44px; font-size: 14px; font-weight: 600; padding: 0 18px; background: #315B3D; color: white; box-shadow: none; border-radius: 10px; display: inline-flex; gap: 20px; align-items: center; }
.welcome-copy .btn-hero span { font-size: 20px; }
.photo-caption { position: absolute; bottom: 15px; right: 16px; max-width: 42%; font-size: 11px; background: rgba(255,255,255,.93); color: #4C5843; padding: 7px 11px; border-radius: 7px; }

/* Dashboard */
.dashboard-grid { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(280px,1fr); gap: 24px; align-items: start; }
.dashboard-main, .dashboard-aside { min-width: 0; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.section-heading > div { min-width: 0; }
.section-heading h2, .timeline h2 { font-size: 20px; line-height: 1.3; font-weight: 650; letter-spacing: -.4px; margin: 5px 0 0; }
.section-heading .eyebrow { font-size: 10px; letter-spacing: 1.2px; }
.text-button { background: none; border: 0; padding: 8px 0; min-height: 44px; font-size: 13px; font-weight: 650; color: var(--hero); }
.text-button span { margin-left: 5px; font-size: 17px; }
.summary { grid-template-columns: 164px minmax(0,1fr); column-gap: 24px; row-gap: 22px; }
.summary .section-heading { grid-column: 1 / -1; }
.energy-block { text-align: center; min-width: 0; }
.ring-wrap { width: 164px; height: 164px; margin: 0 auto 8px; }
.ring circle { stroke-width: 8; }
.ring-label strong { font-size: 36px; letter-spacing: -1.4px; font-weight: 650; line-height: 1.1; }
.ring-label .ring-unit { font-size: 12px; color: var(--text-2); margin-top: 7px; }
#kcal-target { font-size: 12px; }
.energy-remaining { font-size: 12px; font-weight: 600; color: var(--hero); margin: 6px 0 0; line-height: 1.5; }
.macros { gap: 23px; min-width: 0; }
.macro-row { font-size: 14px; margin-bottom: 9px; gap: 7px; flex-wrap: wrap; }
.macro-row > span { display: flex; align-items: center; gap: 5px; }
.macro-row b { font-size: 15px; font-weight: 650; white-space: nowrap; }
.macro-target { font-size: 12px; color: var(--text-2); white-space: nowrap; }
.macro-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--protein); }
.macro[data-k=carbs] .macro-dot { background: var(--carbs); }
.macro[data-k=fat] .macro-dot { background: var(--fat); }
.bar { height: 7px; }
.summary-foot { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 15px; color: var(--text-2); font-size: 12px; display: flex; align-items: center; gap: 8px; }
.status-dot { display: inline-block; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--ring); }
.week-panel .section-heading { margin-bottom: 20px; }
.week-symbol { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 50%; font-size: 20px; color: var(--text-2); }
.week { padding: 0; gap: 3px; margin-bottom: 14px; }
.wd { font-size: 12px; gap: 10px; min-width: 0; min-height: 64px; padding: 5px 0; border-radius: 10px; }
.wd .dot { display: grid; place-items: center; width: 28px; height: 28px; font-size: 11px; color: var(--text); }
.wd .dot.full { color: #172713; }
.wd.today .dot { box-shadow: 0 0 0 3px var(--card), 0 0 0 4px var(--week-dot); }
.wd:disabled { opacity: .55; }
.week-caption { font-size: 12px; color: var(--text-2); margin: 0; text-align: center; }
.kiwi-note { display: flex; align-items: center; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); gap: 12px; }
.kiwi-note .kiwi { width: 66px; height: auto; margin: 0; flex: none; }
.kiwi-note strong { font: 18px/1.4 Georgia, serif; }
.kiwi-note p { font-size: 13px; line-height: 1.6; color: var(--text-2); margin: 5px 0 0; }
.timeline { min-height: 200px; }
.timeline .section-heading { margin-bottom: 12px; }
.entry { grid-template-columns: 44px minmax(0,1fr) auto; gap: 12px; padding: 17px 0; min-height: 64px; }
.entry .item-name { font-size: 15px; font-weight: 600; display: block; overflow-wrap: anywhere; }
.entry .item-meta { display: block; font-size: 13px; line-height: 1.6; }
.entry .kc { font-size: 17px; font-weight: 650; }
.entry .kc small { display: block; font-size: 11px; font-weight: 400; color: var(--text-2); text-align: right; }
.entry time { font-size: 12px; }
.entry:hover { background: var(--input); }
.timeline-empty { display: flex; align-items: flex-start; gap: 16px; text-align: left; padding: 17px 0 0; }
.empty-icon { width: 44px; height: 44px; display: grid; place-items: center; background: var(--pill); border-radius: 14px; flex: none; }
.empty-icon svg { width: 23px; fill: none; stroke: var(--hero); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.timeline-empty h3 { color: var(--text); font-size: 16px; margin: 0 0 7px; font-weight: 600; }
.timeline-empty p { font-size: 14px; color: var(--text-2); line-height: 1.7; margin: 0; }
.inspiration { display: grid; grid-template-columns: minmax(90px,.7fr) minmax(0,1.3fr); padding: 0; overflow: hidden; }
.inspiration > img { width: 100%; height: 100%; min-height: 230px; object-fit: cover; object-position: 52% 50%; }
.inspiration > div { padding: 22px 18px; min-width: 0; }
.inspiration .eyebrow { font-size: 10px; letter-spacing: 1px; }
.inspiration h2 { font: 25px/1.2 Georgia, serif; margin: 10px 0; letter-spacing: -.6px; }
.inspiration p { font-size: 13px; line-height: 1.7; color: var(--text-2); margin: 0 0 7px; }
.credits { display: flex; gap: 7px; justify-content: center; align-items: center; font-size: 12px; color: var(--text-2); margin: 0; flex-wrap: wrap; line-height: 1.7; }
.credits .link { font-size: inherit; min-height: 44px; font-weight: 600; text-decoration: none; }

/* Meal entry stays in the document flow, including when the keyboard opens. */
.logbar { position: static; inset: auto; display: block; max-width: none; width: 100%; margin: 0 0 22px; padding: 22px 24px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-soft); border-radius: var(--radius-card); scroll-margin-block: 24px; }
.composer-title { display: block; font-size: 19px; font-weight: 650; letter-spacing: -.3px; }
.composer-hint { font-size: 13px; color: var(--text-2); margin: 3px 0 14px; }
.logbar input { display: block; width: 100%; height: 52px; border: 1px solid var(--line); background: var(--input); box-shadow: none; padding: 0 14px; font-size: 16px; border-radius: 12px; }
.logbar input::placeholder { color: var(--text-2); opacity: 1; }
.composer-tools { display: flex; gap: 8px; align-items: center; margin-top: 12px; }
.logbar .round { width: 44px; height: 44px; box-shadow: none; background: var(--pill); border-radius: 11px; }
.logbar .round svg { width: 21px; }
.composer-tip { font-size: 12px; color: var(--text-2); margin-left: 3px; }
.logbar .log-send { margin-left: auto; display: inline-flex; align-items: center; justify-content: center; gap: 12px; height: 44px; min-width: 120px; font-size: 14px; font-weight: 650; border-radius: 11px; padding: 0 15px; box-shadow: none; }
.log-send svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.logbar .round.rec { background: var(--hero); }
.logbar .round.rec svg { fill: var(--hero-ink); }
.plate, .timeline { scroll-margin-block: 24px; }
.plate-head h2 { overflow-wrap: anywhere; }
.item { grid-template-columns: 40px minmax(0,1fr) auto; gap: 12px; }
.item-name { overflow-wrap: anywhere; }
.item .thumb { width: 40px; height: 40px; }
.x { min-width: 44px; min-height: 44px; }
.pill { min-height: 32px; }
.chip, .btn-small { min-height: 44px; }
.inline-form input { flex: 1 1 140px; min-width: 0; }
.plate-actions { grid-template-columns: minmax(0,1fr) auto; gap: 10px; }
.plate-actions .btn-hero { font-size: 16px; padding: 0 16px; height: 48px; }
.plate-actions .btn-quiet { font-size: 14px; min-height: 44px; padding: 8px 12px; }
.toast { bottom: 24px; font-size: 14px; font-weight: 600; max-width: min(440px, calc(100% - 32px)); }

/* Diary and library use available space without oversized calendar cells. */
#view-diary { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(250px,1fr); gap: 22px; align-items: start; }
#view-diary .page-head { grid-column: 1 / -1; margin-bottom: 0; }
#view-diary .card { margin-bottom: 0; }
.cday { aspect-ratio: auto; min-width: 0; min-height: 64px; }
.cal { gap: 4px; }
.wk { gap: 12px; align-items: baseline; flex-wrap: wrap; }
.wk b { white-space: nowrap; }
.legend { font-size: 12px; gap: 10px 14px; }
#view-library { max-width: 1100px; }
.chips.filter .chip { flex: none; white-space: nowrap; }
.frow { grid-template-columns: minmax(0,1fr) auto; gap: 16px; padding: 16px 0; }
.frow .item-meta { display: block; margin-top: 4px; }
.mine-row > span, .cite, .src, .sheet dd { overflow-wrap: anywhere; }
.form-grid { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
.form-grid input, .form-grid select { min-width: 0; }
.logday { flex-wrap: wrap; }

/* All dialogs have a visible close control that remains reachable while scrolling. */
.sheet { border: 1px solid var(--line); border-radius: 22px; margin: auto; max-height: calc(100dvh - 40px); overscroll-behavior: contain; }
.sheet-toolbar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 8px 18px; background: var(--card-solid); border-bottom: 1px solid var(--line); }
.sheet-toolbar > span { font-size: 13px; font-weight: 650; color: var(--text-2); }
.sheet-toolbar svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.sheet-body { padding: 24px; overflow: visible; }
.sheet dl { grid-template-columns: minmax(0,1fr) minmax(0,1fr); font-size: 14px; }
.sheet h2 { line-height: 1.3; overflow-wrap: anywhere; }

/* Sign in */
.auth { max-width: 1120px; padding: 0; margin: 5vh auto; display: grid; grid-template-columns: 1.05fr 1fr; min-height: 680px; border: 1px solid var(--line); border-radius: 26px; overflow: hidden; background: var(--card); box-shadow: 0 20px 80px rgba(40,55,30,.04); text-align: left; }
.auth-story { position: relative; isolation: isolate; overflow: hidden; background: #F2EEE4; color: #293E2E; padding: 36px; }
.auth-story .brand { color: #293E2E; position: relative; z-index: 1; }
.auth-story-copy { position: relative; z-index: 1; margin-top: 34px; }
.auth-story-copy .eyebrow { font-size: 10px; color: #596550; }
.auth-story h1 { font: 43px/1.12 Georgia, serif; letter-spacing: -1.5px; margin-top: 14px; }
.auth-story p { font-size: 14px; color: #596550; line-height: 1.7; }
.auth-food { position: absolute; inset: auto 0 0; width: 100%; height: 54%; object-fit: cover; object-position: 50% 55%; z-index: -1; }
.auth-story::after { content: ""; position: absolute; inset: 46% 0 0; z-index: 0; background: linear-gradient(#F2EEE4, transparent 25%); pointer-events: none; }
.auth-photo-note { position: absolute; bottom: 18px; left: 24px; background: rgba(255,255,255,.94); border-radius: 7px; padding: 10px 12px; font: 14px Georgia, serif; z-index: 1; }
.auth-welcome { align-self: center; padding: 36px 48px; min-width: 0; }
.auth-heading { text-align: center; }
.auth-kiwi { width: 80px; height: auto; margin-bottom: 14px; }
.auth-heading .eyebrow { font-size: 10px; letter-spacing: 1.2px; }
.auth-heading h2 { font: 32px/1.2 Georgia, serif; margin: 12px 0; letter-spacing: -.7px; }
.auth-heading p { font-size: 14px; line-height: 1.7; margin-bottom: 24px; }
.auth-card { border: 0; box-shadow: none; padding: 0; margin: 0; gap: 16px; background: transparent; }
.auth-card label { font-size: 14px; gap: 8px; font-weight: 600; }
.auth-card input { height: 50px; width: 100%; min-width: 0; border-width: 1px; border-radius: 10px; font-size: 16px; }
.auth-card .btn-hero { height: 48px; border-radius: 10px; font-size: 15px; font-weight: 600; box-shadow: none; }
.auth-card .btn-quiet { font-size: 13px; min-height: 44px; padding: 8px 0; }
.auth-card .form-error { font-size: 13px; min-height: 0; }
.auth-trust { display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 12px; color: var(--text-2); margin-top: 22px; }
.auth-trust svg { width: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

@media (min-width: 1001px) and (max-width: 1200px) {
  :root { --sidebar-w: 196px; }
  .sidebar { padding: 26px 18px 20px; }
  .brand { font-size: 25px; }
  .view { padding-left: 24px; padding-right: 24px; }
  .dashboard-grid { grid-template-columns: minmax(0,1.5fr) minmax(260px,1fr); gap: 18px; }
  .card { padding: 20px; }
  .summary { grid-template-columns: 140px minmax(0,1fr); column-gap: 18px; }
  .ring-wrap { width: 140px; height: 140px; }
  .section-heading h2 { font-size: 18px; }
  .text-button { font-size: 12px; }
  .composer-tip { display: none; }
  .inspiration { padding: 0; grid-template-columns: 1fr; }
  .inspiration > img { height: 135px; min-height: 0; object-position: 50% 45%; }
  .inspiration h2 br { display: none; }
  #view-diary { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 1200px) { .auth { margin: 32px; } }
@media (max-width: 1000px) {
  html { scroll-padding-bottom: calc(var(--mobile-nav-h) + 20px + env(safe-area-inset-bottom)); }
  #app { margin-left: 0; }
  .sidebar { display: none; }
  .view { max-width: 940px; padding: calc(env(safe-area-inset-top) + 26px) 24px calc(var(--mobile-nav-h) + 24px + env(safe-area-inset-bottom)); }
  .dashboard-grid { grid-template-columns: minmax(0,1.5fr) minmax(275px,1fr); gap: 18px; }
  .card { padding: 22px; }
  .summary { grid-template-columns: 140px minmax(0,1fr); gap: 18px; }
  .ring-wrap { width: 140px; height: 140px; }
  .section-heading h2 { font-size: 18px; }
  .composer-tip { display: none; }
  .inspiration { padding: 0; grid-template-columns: 1fr; }
  .inspiration > img { height: 150px; min-height: 0; }
  .inspiration h2 br { display: none; }
  .tabbar { top: auto; bottom: 0; left: 0; right: 0; width: auto; height: calc(var(--mobile-nav-h) + env(safe-area-inset-bottom)); grid-template-columns: repeat(4,minmax(0,1fr)); gap: 0; padding: 0 max(10px,env(safe-area-inset-right)) env(safe-area-inset-bottom) max(10px,env(safe-area-inset-left)); border-top: 1px solid var(--line); background: var(--card-solid); }
  .tab { display: grid; justify-content: center; gap: 4px; padding: 10px 8px; border-radius: 0; font-size: 12px; min-width: 0; }
  .tab.active { background: none; }
  .tab.active::after { display: none; }
  .tab svg { width: 22px; height: 22px; }
  .toast { bottom: calc(var(--mobile-nav-h) + 12px + env(safe-area-inset-bottom)); }
  .sheet { margin: auto auto 0; border-radius: 22px 22px 0 0; max-height: calc(100dvh - env(safe-area-inset-top) - 16px); }
  .sheet-body { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
  #view-diary { grid-template-columns: minmax(0,1fr); }
  .cday { min-height: 58px; }
  .auth-story { padding: 28px; }
  .auth-story h1 { font-size: 35px; }
  .auth-welcome { padding: 30px; }
}
@media (max-width: 800px) {
  .dashboard-grid { display: block; }
  .dashboard-aside { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 18px; }
  .summary { grid-template-columns: minmax(150px,.8fr) minmax(0,1.2fr); gap: 24px; }
  .ring-wrap { width: 164px; height: 164px; }
  .composer-tip { display: block; }
  .auth { display: block; max-width: 560px; margin: 24px auto; }
  .auth-story { height: 240px; padding: 24px; }
  .auth-story .brand { font-size: 25px; }
  .auth-story-copy { margin-top: 24px; }
  .auth-story-copy .eyebrow, .auth-story-copy p, .auth-photo-note { display: none; }
  .auth-story h1 { font-size: 31px; margin-top: 0; max-width: 62%; letter-spacing: -1.1px; }
  .auth-food { width: 47%; height: 100%; inset: 0 0 0 auto; object-position: 52% 50%; }
  .auth-story::after { inset: 0; background: linear-gradient(90deg,#F2EEE4 48%,transparent 85%); }
  .auth-welcome { max-width: 450px; margin: 0 auto; padding: 28px 32px 32px; }
  .auth-kiwi { width: 64px; margin-bottom: 7px; }
}
@media (max-width: 600px) {
  .view { padding: calc(env(safe-area-inset-top) + 22px) 16px calc(var(--mobile-nav-h) + 24px + env(safe-area-inset-bottom)); }
  .greet { margin-bottom: 20px; }
  .greet h1 { font-size: 25px; }
  .greet p { font-size: 13px; }
  .greet .eyebrow { font-size: 10px; letter-spacing: 1px; }
  .welcome-banner { grid-template-columns: minmax(0,1.2fr) minmax(0,1fr); min-height: 174px; margin-bottom: 20px; border-radius: 18px; }
  .welcome-copy { padding: 20px; }
  .welcome-copy .eyebrow, .welcome-copy p, .photo-caption { display: none; }
  .welcome-copy h2 { font-size: 31px; letter-spacing: -.8px; margin: 0 0 16px; }
  .welcome-copy .btn-hero { padding: 0 14px; gap: 12px; font-size: 13px; white-space: nowrap; }
  .welcome-photo { width: 45.4545%; object-position: 65% 50%; }
  .card { padding: 20px; border-radius: 18px; margin-bottom: 18px; }
  .dashboard-aside { display: block; }
  .summary { grid-template-columns: 130px minmax(0,1fr); column-gap: 18px; row-gap: 20px; }
  .ring-wrap { width: 130px; height: 130px; }
  .ring-label strong { font-size: 30px; }
  .ring-label .ring-unit { font-size: 11px; }
  .section-heading h2 { font-size: 18px; }
  .section-heading .eyebrow { font-size: 10px; letter-spacing: .8px; }
  .section-heading { align-items: flex-start; gap: 10px; flex-wrap: wrap; }
  .section-heading .text-button { margin-left: auto; font-size: 12px; padding: 4px 0; }
  .macro-row { font-size: 13px; gap: 4px; }
  .macro-row b { font-size: 14px; }
  .macro-target { font-size: 11px; }
  .macros { gap: 19px; }
  .summary-foot { font-size: 12px; }
  .entry { grid-template-columns: 38px minmax(0,1fr) auto; gap: 10px; }
  .entry .item-name { font-size: 14px; }
  .entry .item-meta { font-size: 12px; }
  .timeline-empty { gap: 12px; }
  .timeline-empty h3 { font-size: 15px; }
  .timeline-empty p { font-size: 13px; }
  .logbar { padding: 20px; }
  .composer-tip { display: none; }
  .logbar input { font-size: 16px; }
  .inspiration { padding: 0; grid-template-columns: minmax(100px,.7fr) minmax(0,1.3fr); }
  .inspiration > img { height: 100%; min-height: 230px; }
  .inspiration h2 br { display: initial; }
  .inspiration > div { padding: 22px 18px; }
  .inspiration h2 { font-size: 26px; }
  .page-head h1 { font-size: 28px; }
  .page-head p { font-size: 14px; }
  .cday { min-height: 48px; }
  .cal { gap: 2px; }
  .legend { font-size: 11px; gap: 10px; }
  .sheet-body { padding: 20px 18px calc(22px + env(safe-area-inset-bottom)); }
  .sheet-toolbar { padding: 6px 16px; }
  .plate .item { grid-template-columns: 32px minmax(0,1fr) auto; gap: 8px; }
  .plate .thumb { width: 32px; height: 32px; border-radius: 10px; font-size: 14px; }
  .plate .item-name { font-size: 15px; }
  .plate .item-meta { font-size: 13px; }
  .plate .pill { font-size: 11px; padding: 5px 8px; }
  .plate-actions .btn-hero { font-size: 15px; padding: 0 12px; }
  .plate-actions .btn-quiet { font-size: 13px; padding: 8px; }
  .auth { margin: 0; border: 0; border-radius: 0; min-height: 100dvh; }
  .auth-story { padding-top: calc(env(safe-area-inset-top) + 22px); }
  .auth-welcome { padding: 24px 28px calc(30px + env(safe-area-inset-bottom)); }
}
@media (max-width: 360px) {
  .view { padding-left: 12px; padding-right: 12px; }
  .card { padding: 16px; }
  .summary { grid-template-columns: 114px minmax(0,1fr); gap: 16px; }
  .ring-wrap { width: 114px; height: 114px; }
  .ring-label strong { font-size: 28px; }
  .macro-row { flex-direction: column; align-items: flex-start; gap: 3px; }
  .welcome-copy { padding: 18px 16px; }
  .welcome-copy h2 { font-size: 28px; }
  .welcome-copy .btn-hero { gap: 7px; padding: 0 11px; }
  .inspiration { padding: 0; grid-template-columns: minmax(90px,.65fr) minmax(0,1.35fr); }
  .inspiration > div { padding: 20px 16px; }
  .inspiration h2 { font-size: 24px; }
  .form-grid { grid-template-columns: minmax(0,1fr); }
  .auth-story h1 { font-size: 28px; }
}
@media (max-height: 800px) and (min-width: 1001px) {
  .sidebar-note { display: none; }
  .sidebar-settings { margin-top: auto; }
}
@media (max-height: 600px) and (min-width: 1001px) {
  .sidebar-caption, .sidebar-foot, .sidebar-settings { display: none; }
  .tabbar { top: 100px; }
}
@media (prefers-color-scheme: dark) {
  .welcome-banner { border-color: #4B4D3C; }
  .energy-remaining, .text-button, .tab.active { color: #ACD2B0; }
  .summary-foot, .credits { color: #A4B3A7; }
  .wd .dot.full { color: #10251C; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
