:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--bg:#f7f7f5;--surface:#fff;--border:#e2e0da;--text:#22201b;--muted:#6b6860;--accent:#2e6b46;--danger:#c0392b;--accent-ink:var(--accent);--danger-ink:var(--danger);--accent-bg:#eef4ee;--danger-bg:#fbeceb;--tooltip-bg:#201f1a;--tooltip-text:#fff;font-family:system-ui,-apple-system,Segoe UI,sans-serif}@media (prefers-color-scheme:dark){:root:not([data-theme=light]){--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--bg:#1b1b19;--surface:#242422;--border:#3a3934;--text:#efece4;--muted:#a19d8f;--accent-ink:#6fc393;--danger-ink:#f07f70;--accent-bg:#173022;--danger-bg:#301a17}}:root[data-theme=dark]{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--bg:#1b1b19;--surface:#242422;--border:#3a3934;--text:#efece4;--muted:#a19d8f;--accent-ink:#6fc393;--danger-ink:#f07f70;--accent-bg:#173022;--danger-bg:#301a17}:root[data-style=brutalism]{--bg:#f5f0e3;--border:#14120f;--text:#14120f;--muted:#5c584f;--tooltip-bg:#14120f;--tooltip-border:#f5f0e3;--border-w:3px;--border-w-sm:2px;--shadow-color:#14120f;--shadow:4px 4px 0 0 var(--shadow-color);--shadow-sm:2px 2px 0 0 var(--shadow-color);--shadow-lift:6px 6px 0 0 var(--shadow-color)}@media (prefers-color-scheme:dark){:root[data-style=brutalism]:not([data-theme=light]){--bg:#121210;--surface:#1d1c19;--border:#f5f0e3;--text:#f5f0e3;--shadow-color:#f5f0e3}}:root[data-style=brutalism][data-theme=dark]{--bg:#121210;--surface:#1d1c19;--border:#f5f0e3;--text:#f5f0e3;--shadow-color:#f5f0e3}*{box-sizing:border-box}html,body{margin:0;overflow-x:hidden}body{background:var(--bg);color:var(--text)}.app-shell{flex-direction:column;max-width:640px;min-height:100vh;margin:0 auto;display:flex}header{padding:1rem 1.25rem .5rem}header h1{margin:0;font-size:1.25rem}[data-style=brutalism] header h1{letter-spacing:-.01em;font-size:1.3rem;font-weight:900}nav{border-bottom:1px solid var(--border);scrollbar-width:none;gap:.5rem;padding:0 1.25rem .75rem;display:flex;overflow-x:auto}[data-style=brutalism] nav{border-bottom:var(--border-w) solid var(--border)}nav::-webkit-scrollbar{display:none}nav a{color:var(--muted);white-space:nowrap;border-radius:999px;flex-shrink:0;padding:.4rem .75rem;font-size:.9rem;text-decoration:none}[data-style=brutalism] nav a{border:var(--border-w-sm) solid transparent;border-radius:0;font-weight:700}nav a.active{background:var(--accent);color:#fff}[data-style=brutalism] nav a.active{border-color:var(--border)}main{flex:1;padding:1.25rem}.page{flex-direction:column;gap:1.5rem;display:flex}[data-style=brutalism] .page{gap:1.75rem}.field{flex-direction:column;gap:.35rem;margin-bottom:.5rem;display:flex}.field label{color:var(--muted);font-size:.85rem}[data-style=brutalism] .field label{text-transform:uppercase;letter-spacing:.03em;font-size:.78rem;font-weight:700}.radio-field{flex-direction:row;align-items:center;gap:1.25rem}.radio-field label{color:var(--text);align-items:center;gap:.35rem;display:flex}[data-style=brutalism] .radio-field label{text-transform:none;letter-spacing:normal}input[type=text],input[type=number],input[type=date],select{border:1px solid var(--border);background:var(--surface);color:var(--text);border-radius:8px;padding:.5rem .6rem;font-size:1rem}[data-style=brutalism] input[type=text],[data-style=brutalism] input[type=number],[data-style=brutalism] input[type=date],[data-style=brutalism] select{border:var(--border-w) solid var(--border);border-radius:0;font-weight:600;transition:box-shadow 50ms}[data-style=brutalism] input[type=text]:focus,[data-style=brutalism] input[type=number]:focus,[data-style=brutalism] input[type=date]:focus,[data-style=brutalism] select:focus{box-shadow:var(--shadow);outline:none}button{cursor:pointer;border:1px solid var(--border);background:var(--surface);color:var(--text);border-radius:8px;padding:.5rem .9rem;font-size:.9rem}[data-style=brutalism] button{border:var(--border-w) solid var(--border);box-shadow:var(--shadow);border-radius:0;font-weight:700;transition:transform 50ms,box-shadow 50ms}[data-style=brutalism] button:hover{box-shadow:var(--shadow-lift);transform:translate(-1px,-1px)}[data-style=brutalism] button:active{box-shadow:0 0 0 0 var(--shadow-color);transform:translate(4px,4px)}button.primary{background:var(--accent);border-color:var(--accent);color:#fff;align-self:flex-start}[data-style=brutalism] button.primary{border-color:var(--border)}button.link{color:var(--accent-ink);background:0 0;border:none;padding:0;text-decoration:underline}[data-style=brutalism] button.link{box-shadow:none;font-weight:700}[data-style=brutalism] button.link:hover,[data-style=brutalism] button.link:active{box-shadow:none;transform:none}.stepper{align-items:stretch;gap:.5rem;display:flex}.stepper input[type=number]{text-align:center;-moz-appearance:textfield;width:4rem}.stepper input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.stepper input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.stepper-btn{flex-shrink:0;width:2.75rem;padding:0;font-size:1.25rem;font-weight:600;line-height:1}[data-style=brutalism] .stepper-btn{font-weight:700}.entry-form{background:var(--surface);border:1px solid var(--border);border-radius:12px;flex-direction:column;gap:.75rem;padding:1rem;display:flex}[data-style=brutalism] .entry-form{border:var(--border-w) solid var(--border);box-shadow:var(--shadow);border-radius:0}.search-results{border:1px solid var(--border);border-radius:8px;max-height:240px;margin:0;padding:0;list-style:none;overflow-y:auto}[data-style=brutalism] .search-results{border:var(--border-w) solid var(--border);box-shadow:var(--shadow);border-radius:0}.search-results li button{border:none;border-bottom:1px solid var(--border);text-align:left;background:var(--surface);border-radius:0;justify-content:space-between;width:100%;display:flex}[data-style=brutalism] .search-results li button{border-bottom:var(--border-w-sm) solid var(--border);box-shadow:none}[data-style=brutalism] .search-results li button:hover,[data-style=brutalism] .search-results li button:active{transform:none}.search-results li:last-child button{border-bottom:none}.food-name-row{align-items:center;gap:.6rem;min-width:0;display:flex}.food-cat{color:var(--muted);font-size:.8rem}.search-results .empty{color:var(--muted);padding:.6rem}.selected-food{align-items:center;gap:.75rem;display:flex}.rae-preview{font-size:.95rem}.no-data{color:var(--muted);font-style:italic}.day-summary h2,.page h2{margin:0 0 .5rem;font-size:1.1rem}[data-style=brutalism] .day-summary h2,[data-style=brutalism] .page h2{font-size:1.15rem;font-weight:900}.total{background:var(--accent-bg);border-radius:8px;align-items:center;gap:.6rem;margin-bottom:.75rem;padding:.6rem .8rem;font-weight:600;display:flex}[data-style=brutalism] .total{border:var(--border-w) solid var(--border);box-shadow:var(--shadow-sm);border-radius:0;font-weight:800}.total.over{background:var(--danger-bg);color:var(--danger-ink)}.badge{background:var(--danger);color:#fff;border-radius:999px;padding:.15rem .5rem;font-size:.75rem}[data-style=brutalism] .badge{text-transform:uppercase;letter-spacing:.02em;border:var(--border-w-sm) solid var(--border);border-radius:0;font-size:.72rem;font-weight:800}.entry-list{flex-direction:column;gap:.5rem;margin:0;padding:0;list-style:none;display:flex}[data-style=brutalism] .entry-list{gap:.6rem}.entry-list li{background:var(--surface);border:1px solid var(--border);border-radius:8px;justify-content:space-between;align-items:center;padding:.6rem .75rem;display:flex}[data-style=brutalism] .entry-list li{border:var(--border-w) solid var(--border);box-shadow:var(--shadow-sm);border-radius:0}.entry-rae{align-items:center;gap:.75rem;display:flex}.entry-edit{align-items:center;gap:.5rem;display:flex}.entry-edit input[type=number]{text-align:center;width:4.5rem}.muted{color:var(--muted);font-size:.85rem}.empty{color:var(--muted);font-style:italic}.food-detail-title{align-items:center;gap:.75rem;display:flex}.food-detail h3{margin:0 0 .25rem}[data-style=brutalism] .food-detail h3{font-weight:900}.food-detail h4{margin:1rem 0 .4rem;font-size:.95rem}[data-style=brutalism] .food-detail h4{font-weight:800}.nutrient-list{border:1px solid var(--border);border-radius:8px;flex-direction:column;gap:0;margin:.75rem 0 0;display:flex}[data-style=brutalism] .nutrient-list{border:var(--border-w) solid var(--border);box-shadow:var(--shadow-sm);border-radius:0}.nutrient-row{border-bottom:1px solid var(--border);justify-content:space-between;gap:.75rem;padding:.55rem .75rem;display:flex}[data-style=brutalism] .nutrient-row{border-bottom:var(--border-w-sm) solid var(--border)}.nutrient-row:first-child{border-radius:8px 8px 0 0}.nutrient-row:last-child{border-bottom:none;border-radius:0 0 8px 8px}.nutrient-row dt{color:var(--muted)}.nutrient-row dd{text-align:right;margin:0;font-weight:600}[data-style=brutalism] .nutrient-row dd{font-weight:700}.nutrient-row-highlight{background:var(--accent-bg)}.nutrient-row-highlight dt,.nutrient-row-highlight dd{color:var(--accent-ink)}[data-style=brutalism] .nutrient-row-highlight dt,[data-style=brutalism] .nutrient-row-highlight dd{font-weight:800}.portion-list{margin:0;padding-left:1.1rem}.source-note{margin-top:1rem}.vitamin-a-list{border:1px solid var(--border);border-radius:8px;max-height:420px;margin:.75rem 0 0;padding:0;list-style:none;overflow-y:auto}[data-style=brutalism] .vitamin-a-list{border:var(--border-w) solid var(--border);box-shadow:var(--shadow-sm);border-radius:0}.vitamin-a-list li button{border:none;border-bottom:1px solid var(--border);text-align:left;background:var(--surface);border-radius:0;align-items:center;gap:.6rem;width:100%;padding:.55rem .75rem;display:flex}[data-style=brutalism] .vitamin-a-list li button{border-bottom:var(--border-w-sm) solid var(--border);box-shadow:none}[data-style=brutalism] .vitamin-a-list li button:hover,[data-style=brutalism] .vitamin-a-list li button:active{transform:none}.vitamin-a-list li:last-child button{border-bottom:none}.va-color-dot{border-radius:50%;flex-shrink:0;width:.7rem;height:.7rem}[data-style=brutalism] .va-color-dot{border:var(--border-w-sm) solid var(--border);border-radius:0;width:.75rem;height:.75rem}.vitamin-a-list .food-name{flex:1}.va-value{white-space:nowrap;font-size:.85rem;font-weight:600}[data-style=brutalism] .va-value{font-weight:700}.va-list-divider{color:var(--muted);background:var(--bg);border-bottom:1px solid var(--border);padding:.4rem .75rem;font-size:.75rem}[data-style=brutalism] .va-list-divider{text-transform:uppercase;letter-spacing:.02em;border-bottom:var(--border-w-sm) solid var(--border);font-size:.72rem;font-weight:700}.info-tooltip-wrap{display:inline-block;position:relative}.info-tooltip-trigger{border:1px solid var(--muted);width:1.15rem;height:1.15rem;color:var(--muted);background:0 0;border-radius:50%;justify-content:center;align-items:center;padding:0;font-family:Georgia,Times New Roman,serif;font-size:.7rem;font-style:italic;line-height:1;display:inline-flex}[data-style=brutalism] .info-tooltip-trigger{border:var(--border-w-sm) solid var(--muted);box-shadow:none}[data-style=brutalism] .info-tooltip-trigger:hover,[data-style=brutalism] .info-tooltip-trigger:active{transform:none}.info-tooltip-bubble{z-index:20;background:var(--tooltip-bg);width:max-content;max-width:min(240px,100vw - 2.5rem);color:var(--tooltip-text);border-radius:8px;padding:.5rem .6rem;font-size:.78rem;font-weight:400;line-height:1.35;display:none;position:absolute;bottom:calc(100% + .4rem);left:50%;transform:translate(-50%);box-shadow:0 4px 12px #00000026}[data-style=brutalism] .info-tooltip-bubble{border:var(--border-w-sm) solid var(--tooltip-border);box-shadow:var(--shadow-sm);border-radius:0;bottom:calc(100% + .5rem)}.info-tooltip-wrap:hover .info-tooltip-bubble,.info-tooltip-wrap.is-open .info-tooltip-bubble{display:block}.range-buttons{gap:.4rem;margin-bottom:.75rem;display:flex}.custom-range-fields{gap:1rem;margin-bottom:.75rem;display:flex}.range-buttons button.active{background:var(--accent);border-color:var(--accent);color:#fff}[data-style=brutalism] .range-buttons button.active{border-color:var(--border)}section{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:1rem}[data-style=brutalism] section{border:var(--border-w) solid var(--border);box-shadow:var(--shadow);border-radius:0}section h3{margin-top:0}[data-style=brutalism] section h3{font-weight:900}.import-confirm{flex-wrap:wrap;align-items:center;gap:.5rem;margin-top:.75rem;display:flex}.status{color:var(--accent-ink);font-size:.9rem}[data-style=brutalism] .status{font-weight:700}@media (width<=480px){main{padding:.85rem}header{padding:.85rem 1rem .5rem}nav{gap:.35rem;padding:0 1rem .65rem}nav a{padding:.5rem .7rem;font-size:.85rem}button{padding:.65rem 1rem;font-size:.95rem}input[type=text],input[type=number],input[type=date],select{padding:.65rem .7rem;font-size:1rem}.stepper-btn{width:3rem;height:3rem;font-size:1.4rem}.search-results li button{flex-direction:column;align-items:flex-start;gap:.15rem;padding:.75rem .6rem}.total,.range-buttons{flex-wrap:wrap}.range-buttons button{flex:auto}.custom-range-fields{flex-wrap:wrap}.custom-range-fields .field{flex:45%}.entry-list li{flex-wrap:wrap;row-gap:.4rem}.import-confirm button{flex:auto}}
