/* Lighter 0.8 — one responsive layout for Chinese text and larger system fonts. */
:root {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  font-size: 100%;
  line-height: 1.7;
  font-synthesis: none;
  color: #243126;
  background: #ebeee7;
  --paper: #fff;
  --bg: #f6f7f3;
  --ink: #243126;
  --muted: #5c6959;
  --line: #e1e7dc;
  --lime: #d8f58b;
}
* { box-sizing: border-box; }
body { margin: 0; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
button, input, select, textarea { font: inherit; }
button {
  cursor: pointer;
  min-width: 0;
  min-height: 2.75rem;
  border: 0;
  border-radius: 13px;
  padding: .625rem .875rem;
  background: transparent;
  color: inherit;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
button:disabled { opacity: .5; cursor: wait; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 2px solid #718f31;
  outline-offset: 3px;
}
a { color: inherit; overflow-wrap: anywhere; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(2.25rem, 9vw, 3rem); line-height: 1.4; font-weight: 600; }
h2 { font-size: 1.625rem; line-height: 1.5; font-weight: 600; overflow-wrap: anywhere; }
h3 { font-size: 1.0625rem; line-height: 1.6; font-weight: 600; }
p, .sub, .notice, .settings { line-break: strict; overflow-wrap: anywhere; }
p { line-height: 1.85; }
img, canvas { max-width: 100%; }
[hidden] { display: none !important; }
#app { max-width: 480px; margin: auto; background: var(--bg); min-height: 100vh; min-height: 100dvh; }
header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .5rem .75rem;
  padding: max(20px, env(safe-area-inset-top)) 24px 12px;
}
header > * { min-width: 0; max-width: 100%; }
.brand { flex-shrink: 0; font-size: 1.875rem; line-height: 1.3; letter-spacing: -.075rem; font-weight: 650; }
.brand span { color: #789834; }
.brand-note { font-size: .8125rem; }
.sub { font-size: .875rem; color: var(--muted); line-height: 1.8; }
.eyebrow { font-size: .8125rem; letter-spacing: .03rem; color: var(--muted); margin: 18px 0; }
.lead { font-size: 1.125rem; line-height: 1.8; }
.primary, .secondary { width: 100%; min-height: 3rem; font-weight: 600; }
.primary { background: var(--lime); color: #28371d; }
.secondary { background: var(--paper); border: 1px solid var(--line); }
.quiet { color: var(--muted); font-size: .875rem; }
.danger { color: #9b3330; }
.row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem; }
.row > *, .two > *, .weight-fields > * { min-width: 0; }
.row > h3 { margin-bottom: 0; }
.stack { display: grid; gap: .75rem; }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.5rem), 1fr)); gap: .75rem; }
.tile { background: var(--paper); border-radius: 22px; padding: 22px; margin: 16px 0; }
.tile h3 { margin-bottom: 10px; }
.tile .row { gap: .5rem; }
.tile .row h3 { margin-bottom: 0; }
.pad { padding: 12px 24px calc(7rem + env(safe-area-inset-bottom)); }
.auth { padding: 8px 26px 32px; min-height: calc(100vh - 80px); min-height: calc(100svh - 80px); display: flex; flex-direction: column; }
.auth h1 { margin: 24px 0 14px; }
.auth h2 { margin: 12px 0; }
.auth form { margin-top: 10px; }
.auth form > .primary { margin-top: 16px; }
.grow { flex: 1; min-height: 32px; }
.auth-links { display: flex; flex-wrap: wrap; justify-content: space-between; margin-top: 14px; gap: 4px .75rem; }
.auth-links button { padding: 10px 0; text-align: left; }
.auth-note { margin-top: 24px; font-size: .75rem; }
.mark { background: var(--lime); padding: 0 5px; border-radius: 7px; }
.pills { display: flex; flex-wrap: wrap; gap: .5rem; margin: 20px 0; }
.pills span, .pill { border-radius: 20px; background: #eef1e8; padding: .4375rem .6875rem; font-size: .75rem; }
.pills .done { background: var(--lime); }
label { display: block; font-size: .875rem; color: var(--ink); line-height: 1.7; margin: 16px 0 8px; }
input:not([type=checkbox]), select, textarea {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 3rem;
  margin-top: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: .75rem;
  background: var(--paper);
  color: var(--ink);
  font-size: 1rem;
}
textarea { resize: vertical; min-height: 5.5rem; }
input[type=checkbox] { width: 1.125rem; height: 1.125rem; accent-color: #789834; flex-shrink: 0; }
.check { display: flex; gap: .5625rem; align-items: flex-start; cursor: pointer; }
.check input { margin-top: .25rem; }
.date { width: 9.5rem !important; min-height: 2.75rem !important; font-size: .875rem !important; border: 0 !important; background: transparent !important; padding: 2px !important; margin-top: 0 !important; }
.password-field { display: block; position: relative; margin: 0 0 16px; }
.password-field input { margin-top: 0; padding-right: 4.5rem; }
.password-toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); min-height: 2.75rem; min-width: 3.625rem; padding: .5rem .625rem; color: #4c651e; font-size: .875rem; line-height: 1.4; white-space: nowrap; }
.password-toggle:focus-visible { outline-offset: -2px; }
.password-field + label { margin-top: 16px; }
.field-hint { font-size: .75rem; color: var(--muted); margin: 4px 0 14px; line-height: 1.75; }
.field-error { color: #9b3330; font-size: .8125rem; line-height: 1.7; margin: 8px 0; }
.field-error:empty { display: none; }
[aria-invalid=true] { border-color: #b75448 !important; }
.weight-fields { display: grid; grid-template-columns: minmax(0, 1fr) 5.875rem; gap: .75rem; }
.weight-fields + .field-hint { margin-top: 0; }
.hero { background: var(--paper); border-radius: 24px; padding: 22px; }
.hero .eyebrow { margin: 8px 0; }
.remaining { font-size: .875rem; color: var(--muted); margin-top: 23px; }
.big { font-size: 4rem; line-height: 1.2; letter-spacing: -.1875rem; font-weight: 500; margin: 3px 0 14px; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.big small { font-size: .875rem; letter-spacing: 0; color: var(--muted); }
.big.words { font-size: 1.625rem; line-height: 1.5; letter-spacing: 0; margin: 10px 0 20px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 4.6rem), 1fr)); gap: .625rem; margin: 20px 0; }
.stats > div { min-width: 0; }
.stats span { font-size: .75rem; color: var(--muted); display: block; margin-bottom: 7px; line-height: 1.6; }
.stats strong { font-size: 1.3125rem; font-weight: 600; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.meals { border-top: 1px solid var(--line); padding-top: 16px; }
.meals .pills span { flex: 1; text-align: center; }
.coach { padding: 22px 4px; font-size: .9375rem; line-height: 1.8; overflow-wrap: anywhere; }
.log { display: flex; flex-wrap: wrap; align-items: center; gap: .625rem; padding: 16px 0; border-bottom: 1px solid var(--line); }
.log-title { font-size: .9375rem; line-height: 1.7; overflow-wrap: anywhere; }
.log .log-main { flex: 1; min-width: min(100%, 6rem); text-align: left; padding: 0; }
.log img { width: 44px; height: 44px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
.log .symbol { background: white; border-radius: 12px; padding: .75rem; color: #71814f; flex-shrink: 0; }
.log > div:last-child { max-width: 100%; margin-left: auto; text-align: right; }
.log .quiet { font-size: .75rem; padding: 6px 0; }
.notice { background: #edf3e2; padding: 15px; border-radius: 14px; font-size: .875rem; line-height: 1.8; margin: 12px 0; }
.notice .quiet { white-space: normal; }
.nav { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: min(100%, 480px); display: flex; gap: 4px; background: #fffffff5; border-top: 1px solid var(--line); padding: 8px 15px max(10px, env(safe-area-inset-bottom)); z-index: 5; }
.nav button { flex: 1; min-height: 3rem; font-size: .9375rem; color: var(--muted); }
.nav button.active { color: #27371c; background: #f0f7e5; }
/* The text field always owns its row; controls never squeeze it into a column. */
.composer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.5fr); gap: .5rem; align-items: center; border: 1px solid var(--line); border-radius: 17px; background: white; margin: 20px 0 8px; padding: 10px; }
.composer textarea { grid-column: 1 / -1; grid-row: 1; width: 100%; min-height: 5.5rem; height: 5.5rem; max-height: 40vh; margin: 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: .625rem; font-size: 1rem; line-height: 1.7; resize: vertical; }
.composer > label { grid-column: 1; grid-row: 2; display: flex; align-items: center; justify-content: center; min-height: 2.75rem; margin: 0; padding: .5rem; font-size: .875rem; cursor: pointer; text-align: center; }
.composer button { padding: .5rem; white-space: normal; }
.composer #mic { grid-column: 2; grid-row: 2; }
.composer #send { grid-column: 3; grid-row: 2; font-size: .875rem; }
.composer #mic[aria-pressed=true] { background: #f9e2d9; color: #803d24; }
.small-action { background: var(--lime); }
.composer-hint { font-size: .75rem; margin-bottom: 12px; }
.voice-panel { border: 1px solid var(--line); border-radius: 16px; padding: 16px; margin: 12px 0; background: var(--paper); }
.voice-status { background: #eef5e4; border-radius: 12px; padding: 12px 14px; font-size: .875rem; line-height: 1.7; overflow-wrap: anywhere; white-space: pre-wrap; }
.voice-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 12px; }
.voice-actions button { flex: 1 1 7rem; }
.voice-panel audio { display: block; width: 100%; max-width: 100%; margin: 12px 0; }
details { font-size: .875rem; color: var(--muted); line-height: 1.8; margin-top: 15px; }
summary { cursor: pointer; min-height: 2.75rem; overflow-wrap: anywhere; }
dialog { border: 1px solid var(--line); border-radius: 24px; width: min(calc(100% - 24px), 27.5rem); max-height: 90vh; max-height: 90dvh; padding: 22px; color: var(--ink); background: var(--bg); overflow-y: auto; overscroll-behavior: contain; }
dialog::backdrop { background: #17220c66; backdrop-filter: blur(3px); }
dialog h2 { font-size: 1.4375rem; margin-bottom: 10px; }
dialog .quiet { width: 100%; margin-top: 8px; }
dialog .password-toggle { width: auto; margin: 0; }
dialog .two { gap: 10px; }
dialog .row { align-items: flex-start; }
dialog input[type=file] { max-width: 100%; font-size: .8125rem; padding: 10px 6px; }
#toast { position: fixed; bottom: calc(6rem + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); max-width: 90%; width: 360px; background: #263321; color: white; padding: 14px 18px; border-radius: 14px; z-index: 30; font-size: .875rem; line-height: 1.6; overflow-wrap: anywhere; display: none; }
#toast.show { display: block; }
.preview-photo { width: 100%; max-height: 240px; object-fit: contain; border-radius: 15px; margin: 10px 0; }
.poster-canvas { width: 100%; border-radius: 18px; display: block; }
.empty { padding: 26px 6px; text-align: center; color: var(--muted); font-size: .875rem; line-height: 1.9; }
.settings { border-bottom: 1px solid var(--line); padding: 16px 0; }
.settings .quiet { width: 100%; text-align: left; }
.account-name { font-size: 1.5rem; line-height: 1.5; overflow-wrap: anywhere; }
.account-actions { display: grid; padding: 8px 20px; }
.account-actions button { width: 100%; text-align: left; min-height: 3.25rem; border-radius: 0; border-bottom: 1px solid var(--line); font-size: .9375rem; padding: 14px 0; }
.account-actions button:last-child { border-bottom: 0; }
.usage-details { border-top: 1px solid var(--line); padding-top: 12px; }
.usage-details summary { color: var(--ink); }
.usage-details .sub { padding: 2px 0 10px; }
.code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 1.125rem; line-height: 1.8; letter-spacing: .03rem; overflow-wrap: anywhere; user-select: all; word-break: break-all; }
.story { white-space: pre-line; margin: 35px 0 !important; min-height: 190px; }
.bar { height: 5px; background: var(--line); border-radius: 8px; margin: 16px 0; }
.bar div { height: 100%; background: var(--lime); border-radius: 8px; }
.day-buttons { display: flex; gap: .5rem; flex-wrap: wrap; }
.day-buttons button { background: var(--paper); border: 1px solid var(--line); font-size: .8125rem; }
.muted-line { padding: 12px 0; font-size: .75rem; color: var(--muted); }
#connection-banner { max-width: 480px; margin: auto; background: #fff1cc; color: #514525; padding: 12px 20px; font-size: .8125rem; line-height: 1.6; overflow-wrap: anywhere; }
@media (min-width: 600px) {
  #app { border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
}
@media (max-width: 350px) {
  header, .auth, .pad { padding-left: 18px; padding-right: 18px; }
  .tile, .hero { padding: 17px; }
  .auth-links { display: grid; justify-content: stretch; }
  .brand { font-size: 1.6875rem; }
  .brand-note { font-size: .75rem; }
  .two { grid-template-columns: 1fr; }
  dialog { padding: 18px; }
  .weight-fields { grid-template-columns: minmax(0, 1fr) 5.125rem; gap: .5rem; }
  .log { gap: .5rem; }
  .log .symbol { padding: .5rem; }
  .big { font-size: 3.25rem; }
  .big.words { font-size: 1.5rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .story { animation: enter .25s ease-out; }
  @keyframes enter { from { opacity: .3; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
}

/* 0.8.2: prominent phase and accessible estimation feedback */
.phase-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;flex-wrap:wrap}
.phase-heading>div{flex:1;min-width:180px}
.phase-kicker{margin:0 0 6px;color:var(--muted,#657061);font-size:13px}
.phase-title{font-size:clamp(26px,5vw,32px);font-weight:750;line-height:1.3;margin:0;letter-spacing:.02em}
.phase-note{margin:10px 0 0;font-size:14px;line-height:1.7;color:var(--muted,#657061)}
.phase-steps{list-style:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:0;margin:22px 0 26px;gap:6px}
.phase-steps li{padding:10px 2px;text-align:center;border-radius:12px;background:#f3f4f0;color:#626b60;font-size:12px;line-height:1.5}
.phase-steps li.active{background:#e7f2d5;color:#304622;font-weight:700;box-shadow:inset 0 0 0 1px #c4d5a6}
.phase-steps li>span{display:block;margin-bottom:4px;font-size:14px;font-weight:700}
.estimate-tools{margin:0 0 18px;display:flex;align-items:flex-start;gap:12px;flex-wrap:wrap}
.estimate-tools button{font-size:14px;padding:10px 14px;flex-shrink:0}
.estimate-tools p{flex:1;min-width:160px;margin:0;line-height:1.7;font-size:14px}

/* The record follows photo → description → estimate → editable calories → save. */
.entry-photo-section{margin:0 0 18px}
.entry-photo-section .preview-photo{display:block;width:100%;max-height:260px;object-fit:contain;background:#eef0e9;border-radius:16px;margin:12px 0}
.entry-photo-section input[type=file]{font-size:14px;max-width:100%}
#entry-form .estimate-tools{margin-top:8px}
#entry-form .estimate-tools button{min-height:44px}

.input-examples{margin:12px 0;color:var(--muted);font-size:14px}.input-examples p{margin:10px 0}.stats strong{overflow-wrap:anywhere}.poster-canvas{height:auto}#estimate-breakdown{padding-left:22px;overflow-wrap:anywhere}#estimate-breakdown li{margin:8px 0;font-size:14px}

.stats .energy-unit{display:block;font-size:13px;line-height:1.5;font-weight:400;white-space:nowrap;margin-top:3px}.stats strong{font-size:clamp(19px,5vw,26px)}

/* 0.8.7: explicit settings entry, with no changes to form or recording layout. */
.profile-entry{display:flex;align-items:center;gap:14px;width:100%;padding:22px 18px;margin:22px 0;background:#edf4da;border:1px solid #c7d7a7;border-radius:24px;color:var(--ink);text-align:left;min-height:100px;box-shadow:none}
.profile-icon{display:grid;place-items:center;flex:0 0 50px;height:50px;background:#dce8bd;border-radius:16px;color:#526632}.profile-icon svg{width:34px;height:34px}.profile-copy{flex:1;min-width:0}.profile-copy strong{display:block;font-size:1.1rem;line-height:1.5}.profile-copy small{display:block;margin-top:5px;font-size:.82rem;line-height:1.65;color:#62704f}.profile-arrow{display:grid;place-items:center;flex:0 0 34px;height:34px;border-radius:50%;background:#ffffffba;font-size:30px;line-height:1}.profile-entry:hover{background:#e5efcd}.profile-entry:focus-visible{outline:3px solid #7e9848;outline-offset:3px}.profile-entry:active{background:#dce9bf}
.today-learn{text-align:center;margin:24px 0 8px}.today-learn button{max-width:100%;min-height:48px;white-space:normal;overflow-wrap:anywhere;font-size:.9rem;color:#536535}.account-actions button{width:100%;min-height:54px;white-space:normal;overflow-wrap:anywhere;text-align:left}.site-download-entry{display:flex;flex-wrap:wrap;gap:16px;margin:20px 0;font-size:.85rem;color:var(--muted)}
@media(max-width:360px){.profile-entry{gap:10px;padding:18px 12px}.profile-icon{flex-basis:40px;height:40px}.profile-icon svg{width:28px;height:28px}.profile-copy strong{font-size:1rem}.profile-arrow{flex-basis:28px;height:28px}}

.profile-copy strong{font-weight:750}.preferences-card .settings{border-bottom:0;margin-bottom:0}
/* 0.8.8: scoped home actions and record calendar */
.record-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:20px 0}
.record-action{min-height:48px;padding:10px 8px;border:1px solid #d5ddce;border-radius:14px;background:#fff;color:#344638;font-size:15px}
.record-action.is-complete{background:#edf4df;border-color:#d5dfc4}
.today-learn .learn-button{min-height:48px;padding:12px 22px;background:#edf4df;color:#344638;border:1px solid transparent;border-radius:16px;font-size:15px}
.record-action:active,.learn-button:active{background:#e0ebd2}
.calendar-trigger{width:auto;min-height:44px;background:transparent;border:1px solid #d5ddce;border-radius:12px;font-size:16px;color:#344638;padding:8px 12px;cursor:pointer}
.calendar-heading{display:flex;align-items:center;justify-content:space-between;margin:12px 0 20px}
.calendar-heading button{background:transparent;font-size:28px;min-width:44px;min-height:44px;padding:0}
.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:7px 3px}
.calendar-week{text-align:center;font-size:14px;color:#697267;padding-bottom:8px}
.calendar-day{position:relative;aspect-ratio:1;min-width:0;width:100%;padding:0;background:transparent;color:#737b73;border:2px solid transparent;border-radius:50%;font-size:16px}
.calendar-day.full{background:#e5efce;color:#334b29}.calendar-day.partial{background:#fff0c7;color:#6a511d}
.calendar-day.selected{border-color:#344638}.calendar-day.is-today:after{content:'';position:absolute;bottom:3px;left:calc(50% - 2px);width:4px;height:4px;border-radius:50%;background:currentColor}
.calendar-day.future{opacity:.35}.calendar-check{position:absolute;right:0;top:-4px;font-size:12px;color:#35562e;background:#f6f7f3;border-radius:50%;line-height:15px;width:15px}
.calendar-legend{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;font-size:12px;color:#65715f;margin:20px 0 8px}.calendar-note{font-size:12px}
@media(max-width:360px){.record-action,.today-learn .learn-button{font-size:13px}.calendar-day{font-size:14px}.calendar-grid{gap:8px 1px}.calendar-trigger{font-size:14px;padding:8px}}

.calendar-legend>span{display:inline-flex;align-items:center;gap:4px}.calendar-key{display:inline-block;width:10px;height:10px;border-radius:50%}.calendar-key.full{background:#b4ca87}.calendar-key.partial{background:#efd077}.calendar-key.empty{background:#c9cfc5}
/* 0.8.9: three-task hierarchy; existing recording and sharing dialogs preserved. */
.energy-overview{padding:24px}.energy-overview>.row{gap:8px}.energy-overview .quiet{font-size:13px;padding:10px 0}.energy-equation{display:grid;grid-template-columns:1fr 24px 1fr;align-items:center;padding:26px 0 22px;border-bottom:1px solid #e5e8df;gap:8px}.energy-equation>div{display:flex;flex-direction:column;gap:7px}.energy-equation span,.gap-row>div>span{font-size:14px;color:#626b60}.energy-equation strong{font-size:26px}.energy-equation small{font-size:12px;font-weight:400;color:#626b60}.energy-equation strong small{margin-left:4px}.energy-equation>b{color:#88917f;font-weight:400}.gap-row{display:grid;grid-template-columns:1fr 1fr;gap:12px;align-items:center;padding:23px 0 10px}.current-gap{display:flex;flex-direction:column;gap:6px}.current-gap strong{font-size:42px;line-height:1.3;overflow-wrap:anywhere}.current-gap strong.words{font-size:25px}.current-gap small{font-size:14px;font-weight:400;margin-left:5px}.planned-gap{background:#edf4e2;border-radius:16px;padding:14px 12px;display:flex;flex-direction:column;gap:8px;align-items:flex-start}.planned-gap>span{font-size:12px!important}.planned-gap>span small{color:#6a755f;font-size:11px}.planned-gap strong{font-size:25px}.planned-gap strong small{font-size:13px;font-weight:400;margin-left:5px}.energy-note{font-size:12px!important;color:#66715f;line-height:1.6;margin:4px 0 0}.quick-manual{margin:10px 0 24px}.quick-manual .record-action{width:100%;padding:12px}.record-list{background:#fff;border-radius:24px;padding:0 16px}.record-row{width:100%;border:0;border-bottom:1px solid #edf0e8;border-radius:0;display:flex;align-items:center;gap:12px;text-align:left;padding:20px 0;background:transparent}.record-row:last-child{border-bottom:0}.record-row>img,.record-row>.symbol{width:44px;height:48px;object-fit:cover;border-radius:12px;flex-shrink:0}.record-copy{flex:1;min-width:0;display:flex;flex-direction:column;gap:7px}.record-copy strong{font-size:15px;font-weight:500;overflow-wrap:anywhere}.record-copy small{font-size:12px;color:#65705f}.record-energy{font-size:12px;white-space:nowrap;text-align:right;color:#4f6250;line-height:1.8}.record-energy.exercise{color:#566c87}.record-actions.single{display:block}.record-actions.single button{width:100%}.week-stats{display:grid;grid-template-columns:1fr 1fr;gap:12px;background:#f5f7f0;border-radius:14px;padding:16px}.week-stats>div{display:flex;flex-direction:column;gap:9px}.week-stats span{font-size:13px;color:#64705e}.week-stats strong{font-size:19px}.weight-large{font-size:36px;font-weight:700;margin:8px 0}.tile progress{width:100%;height:9px;accent-color:#839950;border:0;border-radius:9px;overflow:hidden}.tile progress::-webkit-progress-bar{background:#edf0e7}.tile progress::-webkit-progress-value{background:#b3cf70}.weight-history{display:flex;align-items:center;gap:12px;border-bottom:1px solid #e5e8df;padding:12px 0}.weight-history>span{flex:1}.account-top{display:flex;align-items:center;gap:12px;padding:12px 0 22px}.account-top>div{flex:1;min-width:0}.account-top h2{margin:0 0 8px;font-size:26px;overflow-wrap:anywhere}.account-top p{margin:0;font-size:13px;overflow-wrap:anywhere}.account-top button{flex-shrink:0;font-size:13px}.settings-group{padding:18px 20px}.settings-group h3{font-size:13px;color:#747d6d;margin-bottom:8px}.setting-row{display:flex;align-items:center;gap:10px;width:100%;min-height:59px;border:0;border-bottom:1px solid #edf0e8;border-radius:0;background:transparent;padding:10px 0;text-align:left;text-decoration:none;color:inherit}.setting-row:last-child{border-bottom:0}.setting-row strong{font-size:15px;font-weight:500;flex-shrink:0}.setting-icon{font-size:20px;color:#6b8151;width:24px;text-align:center}.setting-summary{margin-left:auto;font-size:12px;color:#6b7663;text-align:right}.compact-invite{padding:20px}.compact-invite h3{margin:0}.invite-share{width:auto;background:#edf5db;border:0;border-radius:12px;padding:9px 14px;font-size:13px;min-height:42px}.invite-code-line{display:flex;align-items:center;gap:12px;font-size:14px;margin-top:8px}.invite-code-line strong{letter-spacing:1px;margin-left:5px}.copy-inline{font-size:12px;text-decoration:underline;min-height:44px}.compact-invite .field-hint{margin-bottom:0}.danger-zone{border-top:1px solid #e4e6df;margin-top:8px;padding-top:12px}.danger-zone .danger{background:transparent;text-align:left;padding-left:0;font-size:14px}.logout-button{width:100%}.version-footer{text-align:center;color:#77816e;font-size:12px;line-height:2;margin:24px 0}.settings-group .setting-row:focus-visible,.record-row:focus-visible{outline:2px solid #768e45;outline-offset:2px}.tile>.two button{font-size:14px;padding:13px 8px}@media(max-width:360px){.hero.energy-overview{padding:18px}.gap-row{gap:8px}.current-gap strong{font-size:34px}.planned-gap{padding:12px 8px}.planned-gap>span small{display:block}.setting-row{gap:6px}.setting-row strong{font-size:14px}.setting-summary{font-size:11px}}
/* 0.9.1 optional nutrition, body records, and compact secondary entry points. */
.protein-row{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;width:100%;margin:0 0 18px;padding:13px 16px;border:1px solid #e0e6d8;border-radius:16px;background:#eef4e4;color:#34402e;font-size:14px;text-align:left;line-height:1.7}.protein-row>span:last-of-type{color:#536947;font-size:12px}.protein-row small{display:block;width:100%;color:#626b5d;font-size:12px}.quick-manual{display:grid;grid-template-columns:1fr 1fr;gap:10px}.quick-manual button{min-width:0;padding:12px 8px}.body-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:12px;margin:14px 0}.body-summary:empty{display:none}.body-summary>div{display:flex;flex-direction:column;border-left:2px solid #dce8c6;padding:0 0 0 10px;gap:4px}.body-summary span{font-size:13px;color:#606a5b}.body-summary strong{font-size:18px}.body-summary small{font-size:11px;color:#687161;line-height:1.5}.body-advanced{margin:12px 0;border:1px solid #e2e5dd;padding:12px;border-radius:12px}.body-advanced summary{cursor:pointer;min-height:28px}.body-chart{display:block;width:100%;background:#f5f7f0;border-radius:12px;margin-top:16px}.body-history .weight-history{align-items:center;gap:8px}.body-history .weight-history>div{flex:1;min-width:0}.body-history p{font-size:13px;line-height:1.7;margin:5px 0;overflow-wrap:anywhere}.body-history small{font-size:12px;color:#63705a}.body-history button{padding:10px 8px;min-height:44px;font-size:13px;white-space:nowrap}.bmr-entry{margin-top:20px;background:#f0f5e7;border-radius:14px}.bmr-preview{background:#f0f5e7;border-radius:14px;padding:16px;margin:16px 0}.bmr-preview p{margin:6px 0}.estimate-tools .sub{overflow-wrap:anywhere}.settings-group .setting-row strong{white-space:normal}.energy-overview .field-error{margin-top:12px;font-size:13px}#official-post-teaser{margin-top:20px}button[disabled]{cursor:wait}.body-history{max-height:50vh;overflow:auto;overscroll-behavior:contain}@media(max-width:360px){.quick-manual{gap:6px}.quick-manual button{font-size:13px}.body-summary{grid-template-columns:1fr}.protein-row{padding:12px}}
.planned-gap>span small{display:block;white-space:nowrap;margin-top:2px}.bmr-current{padding:12px 0 4px;font-size:14px}

/* Training controls 0.10.5: stable headings, large tap target. */
.tr-fold-tools{display:flex;flex-wrap:wrap;gap:8px}.tr-action-title{text-align:left;padding:8px 0;min-height:44px;font:inherit}.tr-dose-summary{margin:0 0 6px}.tr-actual .tr-collapse{min-height:44px;min-width:48px}

/* Localized selected-photo control. Keep the real file input focusable and its existing handlers. */
.photo-picker109{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap;border:1px solid #dde2d5;border-radius:12px;padding:.65rem}
.photo-picker-button109{position:relative;display:inline-flex;align-items:center;justify-content:center;padding:.5rem .85rem;border:1px solid #a1ab91;border-radius:8px;cursor:pointer;flex-shrink:0}
.photo-picker-button109:focus-within{outline:3px solid #809541;outline-offset:2px}
.photo-picker-input109{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.photo-picker-status109{overflow-wrap:anywhere;font-size:.9em}
.photo-picker-button109:has(input:disabled){opacity:.6;cursor:default}
