/* Android reading layout: light bean green, dark text, meals before detailed estimates. */
:root{--bg:#f3f6ee;--ink:#2e382f;--muted:#596954;--green:#426345;--green-dark:#426345;--lime:#edf3e7;--line:#dde5d6;--emphasis:#dcebcf;--radius:20px;font-size:16px;color-scheme:light}
body{font-size:16px;line-height:1.65}
.app-shell{max-width:760px;padding:0 18px 110px}
.app-header{height:74px;border:0}
.brand{font-size:24px}.brand-sub{font-size:12px;letter-spacing:0;color:var(--muted)}
.prototype-badge{font-size:13px;color:var(--green);background:#edf3e7;border-color:#dde5d6;padding:8px 10px}
.prototype-badge>span{background:var(--green)}
.intro{display:block;margin:12px 0 16px}.eyebrow{display:none}
h1{font-size:25px;letter-spacing:0}h2,.advice-card h2{font-size:20px;letter-spacing:0}h3{font-size:17px}
.intro p{font-size:15px;color:var(--muted);margin-top:4px}
.date-control{background:#edf3e7;border-radius:12px;justify-content:space-between;padding:0 5px;margin-top:14px;min-height:46px}
.date-control .date-field{font-size:14px}.date-control button{min-width:36px;height:44px}
.date-control .day-today{position:static;font-size:12px;background:white!important}
.demo-banner{background:transparent;color:var(--muted);font-size:13px;padding:0 2px;margin-bottom:14px;gap:8px}
.demo-banner button{font-size:13px;min-height:36px}.demo-banner strong{line-height:1.6}
.dashboard{display:flex;flex-direction:column;gap:16px}
.card{padding:20px;border-radius:20px;width:100%;background:white;border-color:var(--line)}
.card-header{gap:8px;margin-bottom:16px;flex-wrap:wrap}.card-header .text-button,.text-button{font-size:14px;min-height:40px}
.subtle-tag{font-size:12px;background:#edf3e7;color:var(--muted);white-space:normal}
.capture-card{order:0;display:grid;grid-template-columns:1fr auto;align-items:center;gap:2px 10px;width:100%;padding:16px 18px;border-radius:18px;background:var(--emphasis);color:var(--green)}
.capture-card .primary-button{padding:10px 0;min-height:48px;background:transparent;color:var(--green);justify-content:flex-start;font-size:18px;grid-column:1}
.capture-card p{font-size:13px;color:#596954;margin:0;grid-column:1;line-height:1.6}
.quick-manual{color:var(--green);grid-column:2;grid-row:1 / 3;font-size:14px;border:1px solid #a8bca0;border-radius:12px;padding:10px;min-height:48px;display:flex;align-items:center;gap:5px}
.quick-manual svg{width:18px;height:18px}.primary-button{font-size:16px;min-height:50px}
.meals-card{order:1;padding-bottom:8px}.advice-card{order:2}.nutrition-card{order:3}.groups-card{order:4}
.meal-item{gap:12px;padding:15px 0;border-color:var(--line)}
.meal-thumb{width:52px;height:56px;background:#edf3e7;border-radius:13px}
.meal-title{font-size:17px;color:var(--ink)}.meal-title small{font-size:12px;color:var(--muted)}
.meal-foods{font-size:15px;color:var(--muted);white-space:normal;line-height:1.6;margin-top:3px}
.meal-meta,.meal-meta b{font-size:12px;color:var(--muted);line-height:1.6;margin-top:3px}
.meal-item>svg{color:#596954}.empty-meal .meal-thumb{background:#f3f6ee;color:var(--green);border-color:#dde5d6}
.empty-meal .meal-title{color:var(--ink)}.empty-meal .meal-foods{color:var(--muted)}
.advice-card .card-header{margin-bottom:14px}.advice-leaf{background:#edf3e7;color:var(--green)}
.advice-summary,.advice-empty{font-size:15px;color:var(--muted);line-height:1.8}.advice-empty{background:#edf3e7;padding:14px}
.advice-completeness{border-color:var(--line);margin-bottom:16px;padding-bottom:12px}
.review-toggle{color:var(--ink);font-size:15px;min-height:44px}.review-toggle input{accent-color:var(--green);width:19px;height:19px}
.advice-completeness p{font-size:13px;color:var(--muted)}
.advice-findings{gap:12px}.advice-finding,.advice-finding.covered{padding:15px;background:#f1f5ec;border-color:#dde5d6}
.finding-heading h3{font-size:17px}.finding-heading>span,.covered .finding-heading>span,.finding-heading>span.covered,.finding-heading>span.unknown{font-size:12px;background:#e5efdc;color:var(--green)}
.advice-finding>strong{font-size:15px;color:var(--ink);font-weight:550}
.finding-suggestion{font-size:14px;color:var(--muted);line-height:1.8}.finding-suggestion svg{width:16px;height:16px;margin-top:4px}
.advice-plan{background:#edf3e7;padding:16px}.plan-heading{flex-wrap:wrap;gap:4px;margin-bottom:8px}
.plan-heading>span{font-size:15px;color:var(--green)}.plan-heading .text-button{font-size:13px;color:var(--green)}
.advice-plan h3{font-size:17px}.plan-foods span{font-size:14px;color:var(--green);background:#fff}.plan-foods i{color:var(--muted)}
.advice-plan>p,.plan-extra,.advice-plan>small{font-size:14px;color:var(--muted);line-height:1.8}.plan-extra b{color:var(--green)}
.plan-extra{grid-template-columns:1fr;gap:2px}
.advice-footer{gap:8px;flex-wrap:wrap}.advice-footer .text-button{font-size:14px;min-height:44px}
.advice-limit{font-size:13px;color:var(--muted);line-height:1.8}
.nutrition-top{gap:18px}.energy-ring{width:128px;height:128px;padding:11px}.ring-hole strong{font-size:28px}
.ring-hole small,.ring-hole span{font-size:12px}.macro-row{font-size:14px;gap:6px}.macro-row strong{font-size:17px}.macro-row small{font-size:12px}
.macro-row .label{color:var(--muted)}.ring-note{font-size:12px;color:var(--muted);line-height:1.8}
.minor-icon{background:#edf3e7;color:var(--green)}.minor-item .label,.minor-item small,.nutrition-footer{font-size:13px;color:var(--muted)}
.group-name,.group-item.missing .group-name{font-size:13px;color:var(--muted)}.group-icon{background:#f1f5ec;width:42px;height:42px}.group-check{background:var(--green)}
.group-note{background:#f1f5ec;color:var(--muted);font-size:14px}.group-note strong,.group-note svg{color:var(--green)}
.privacy-line{font-size:12px;color:var(--muted);line-height:1.8;align-items:flex-start;padding:0 8px}
.bottom-nav{bottom:0;width:100%;max-width:760px;border-radius:18px 18px 0 0;background:#fff;border-color:var(--line);padding:8px 12px;gap:0;box-shadow:0 -3px 18px #2e382f0a}
.bottom-nav button{font-size:13px;color:var(--muted);min-width:70px;min-height:54px}.bottom-nav button.active{color:var(--green);background:#edf3e7}.bottom-nav button.active svg{fill:none}
dialog{background:var(--bg);max-height:94vh;max-height:94dvh;border-radius:22px 22px 0 0}
dialog::backdrop{background:#2e382f66}.sheet-header{padding:17px 20px}.sheet-header h2{font-size:20px;line-height:1.5}.close-button{width:42px;height:42px;background:#edf3e7;color:var(--green)}
.sheet-body{padding:20px}.sheet-subtitle{font-size:15px;color:var(--muted);line-height:1.8;margin-bottom:18px}
.capture-option{gap:12px;padding:14px}.capture-option .option-icon{background:#edf3e7;width:42px;height:44px}.capture-option strong{font-size:17px}.capture-option small{font-size:13px}
.data-warning,.recognition-error,.compact-note,.sheet-footnote{font-size:13px;line-height:1.8;color:var(--muted)}.data-warning{background:#edf3e7}
.divider-label{font-size:13px}.demo-option{background:#edf3e7}.demo-option strong{font-size:15px}.demo-option small{font-size:13px}
.info-block h3{font-size:17px}.info-block p{font-size:15px;line-height:1.8}.info-block .text-button{font-size:14px}.advice-detail-block>strong{font-size:15px;color:var(--ink)}
.advice-detail-block .detail-suggestion{color:var(--green);background:#edf3e7}.advice-source-link{font-size:13px;color:var(--green)}
.settings-actions button{font-size:15px;min-height:48px}.steps{font-size:13px}.steps b{font-size:12px}
.confirm-photo h3{font-size:17px}.confirm-photo p,.confirm-photo .text-button{font-size:13px}.confirm-photo .photo{background:#edf3e7;color:var(--green)}
.meal-type-select button,.consumption-options button{font-size:14px;min-height:44px;color:var(--muted)}
.meal-type-select button.active,.consumption-options button.active{background:#edf3e7;color:var(--green);border-color:#a8bca0}
.form-section-heading h3{font-size:16px}.form-section-heading small{font-size:12px}
.confirmed-food{flex-wrap:wrap;padding:15px 12px;gap:10px}.confirmed-food h3,.food-name-input{font-size:16px;max-width:none}.confirmed-food .food-info small{font-size:12px}
.food-name-input{border-color:#a8bca0}.food-emoji{width:28px}.portion-control{gap:5px}.portion-control input{font-size:16px;width:46px;border-color:#a8bca0}
.portion-control button{width:36px;height:40px;background:#edf3e7;color:var(--green)}.portion-control>small{font-size:13px}.remove-food{width:30px;min-height:40px;color:#8b5660}
.add-food-button{font-size:15px;min-height:46px;color:var(--green);background:#edf3e7;border-color:#a8bca0}
.meal-preview{background:#edf3e7;font-size:14px;color:var(--muted);gap:8px}.meal-preview strong{color:var(--green)}.meal-preview .preview-macros,.meal-preview small{font-size:12px}
.delete-meal-button{font-size:14px;min-height:44px}.inline-error{font-size:14px}
.search-field input{font-size:16px;border-color:#dde5d6}.search-categories button{font-size:14px;min-height:40px}
.search-food-row strong{font-size:16px}.search-food-row small{font-size:13px}.search-food-row .add-mark{background:#edf3e7}.search-food-row .selected-mark{font-size:13px;color:var(--green)}
.nutrient-table-row .label{font-size:16px}.nutrient-table-row strong small{font-size:12px}.nutrient-source{font-size:13px;line-height:1.8}
.recognition-loading>p{font-size:14px}.recognition-spinner{border-color:#dde5d6;border-top-color:var(--green)}
.food-chip{font-size:14px;background:#edf3e7;color:var(--muted)}.meal-card-footer{font-size:14px}.meal-card-footer button{font-size:14px;min-height:44px}
.trend-pill{font-size:14px;min-height:44px}.chart-number,.chart-dates,.chart-note,.chart-legend{font-size:12px;color:var(--muted)}.chart-bar{background:#a8bca0}.chart-col.no-data .chart-bar{background:#dde5d6}
.trend-stat{background:#f1f5ec}.trend-stat small{font-size:12px}.trend-empty,.empty-state p{font-size:15px;color:var(--muted);background:#edf3e7}
.observation{background:#edf3e7;border-color:var(--line)}.observation h3{font-size:16px;color:var(--ink)}.observation p{font-size:14px;color:var(--muted)}
.toast{font-size:14px;background:#426345f2;bottom:86px}
@media(max-width:360px){.app-shell{padding-left:14px;padding-right:14px}.card{padding:17px}.sheet-body{padding:16px}.capture-card{padding:14px}.quick-manual{padding:10px 7px;font-size:13px}.energy-ring{width:110px;height:110px}.nutrition-top{gap:12px}.macro-row{font-size:13px}.macro-row strong{font-size:15px}.confirmed-food .food-info{flex-basis:calc(100% - 50px)}.portion-control{margin-left:38px}.group-name{font-size:12px}}

/* Selected layout: aligned entries. Existing text, font sizes and behavior are retained. */
.dashboard{gap:22px}
.card{padding:18px 16px;border-radius:10px}
.capture-card{border-radius:10px}
.card-header,.meals-card .card-header,.advice-card .card-header,.groups-card .card-header{padding-bottom:12px;margin-bottom:15px;border-bottom:1px solid var(--line);align-items:center}
.card-header .subtle-tag{margin-left:auto}
.meal-item{align-items:flex-start}
.meal-title{justify-content:space-between}
.meal-title small{margin-left:auto}
.advice-findings{gap:0}
.advice-finding,.advice-finding.covered{display:grid;grid-template-columns:72px minmax(0,1fr);gap:6px 14px;padding:18px 0;background:none;border:0;border-bottom:1px solid var(--line);border-radius:0}
.advice-findings .finding-heading{display:contents}
.advice-findings .finding-heading h3{grid-column:1;grid-row:1 / 4;color:var(--green)}
.advice-findings .finding-heading>span{grid-column:2;grid-row:1;justify-self:start}
.advice-finding>strong{grid-column:2;grid-row:2}
.advice-findings .finding-suggestion{grid-column:2;grid-row:3;margin-top:5px;min-width:0}
.advice-findings .finding-suggestion>span{min-width:0;overflow-wrap:anywhere}
.advice-findings .finding-suggestion svg{display:none}
.advice-plan{margin-top:20px;padding:16px 0;background:none;border-radius:0;border-bottom:1px solid var(--line)}
.plan-extra{grid-template-columns:80px minmax(0,1fr);gap:12px;align-items:start}
.plan-extra>span{min-width:0;overflow-wrap:anywhere}
.plan-foods span{background:var(--lime)}
.group-note{padding:16px 0;background:none;border-radius:0}
@media(max-width:360px){
  .card{padding:17px 14px}
  .advice-finding,.advice-finding.covered{grid-template-columns:1fr}
  .advice-findings .finding-heading{display:flex;align-items:center;justify-content:space-between}
  .advice-findings .finding-heading h3,.advice-findings .finding-heading>span,.advice-finding>strong,.advice-findings .finding-suggestion{grid-column:auto;grid-row:auto}
  .plan-extra{grid-template-columns:1fr;gap:3px}
}

/* Persistent nutrition profile and official-reference detail. */
.profile-summary{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:14px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin-bottom:14px}
.profile-summary>div{min-width:0}.profile-summary strong{display:block;font-size:14px;color:var(--green);line-height:1.7}.profile-summary small{display:block;font-size:12px;color:var(--muted);line-height:1.7;margin-top:4px}.profile-summary button{font-size:13px;flex:none}
.profile-section{padding:18px 0;border-bottom:1px solid var(--line)}.profile-section h3{margin-bottom:10px}.profile-section>p{font-size:14px;color:var(--muted);line-height:1.8;margin-bottom:12px}.profile-mode,.health-choices{display:grid;gap:10px}
.profile-choice{display:flex;align-items:center;gap:12px;border:1px solid var(--line);border-radius:10px;background:#fff;padding:14px;font-size:15px;min-height:52px}.profile-choice:has(input:checked){background:var(--lime);border-color:#a8bca0}.profile-choice input{width:20px;height:20px;accent-color:var(--green);flex:none}.profile-choice strong,.profile-choice small{display:block}.profile-choice small{font-size:13px;color:var(--muted);margin-top:4px;line-height:1.6}
.profile-fields{display:grid;grid-template-columns:1fr 1fr;gap:14px}.profile-fields label{display:grid;gap:7px;font-size:14px;min-width:0}.profile-fields input,.profile-fields select,#profile-kidney{width:100%;min-width:0;min-height:46px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--ink);padding:10px;font-size:16px}.profile-skip{justify-content:center;width:100%;margin-top:10px}
.micro-card{order:3}.micro-intro,.micro-footnote{font-size:13px;line-height:1.8;color:var(--muted)}.micro-intro{margin-bottom:8px}.micro-footnote{margin-top:16px}.micro-row{gap:14px;align-items:flex-start}.micro-row .label{font-size:16px;font-weight:550}.micro-row .nutrient-source{font-size:12px;margin-top:5px;line-height:1.8;overflow-wrap:anywhere}.nutrient-amount{flex:none;text-align:right}.nutrient-amount>span{display:block;font-size:11px;color:var(--muted);margin-top:4px}.coverage-note{font-size:12px;color:var(--muted);display:block;line-height:1.7}.nutrient-table-row>div:first-child{min-width:0}.nutrient-table-row{gap:14px}
.food-row-actions{display:flex;flex-wrap:wrap;gap:4px 12px}.food-row-actions .text-button{font-size:12px;min-height:36px}.confirmed-food .food-info>.text-button{font-size:13px}.recipe-fields{display:grid;gap:14px}.recipe-fields label{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:15px}.recipe-fields label>span{display:flex;align-items:center;gap:6px;flex:none}.recipe-fields input{width:82px;min-height:46px;border:1px solid var(--line);border-radius:8px;padding:8px;background:#fff;color:var(--ink);font-size:16px}.info-block p{overflow-wrap:anywhere}
@media(max-width:360px){.profile-summary{flex-direction:column;gap:4px}.profile-fields{grid-template-columns:1fr}.micro-row{gap:8px}.micro-row .label{font-size:15px}.nutrient-amount strong{font-size:17px}.nutrient-amount strong small{display:block}.recipe-fields label{align-items:flex-start}}
