:root{color:#15191f;background:#dfeaff;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-synthesis:none;font-size:15px;line-height:1.45;text-rendering:optimizeLegibility}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh;background:linear-gradient(180deg,#dfe7ff 0%,#7fc8ef 100%)}button{font:inherit}input,select,textarea{width:100%;border:1px solid #d7dce5;border-radius:8px;background:#ffffff;color:#15191f;font:inherit;padding:9px 11px}textarea{resize:vertical}.app-shell{display:grid;grid-template-rows:auto 1fr;width:min(780px,100%);min-height:100vh;margin:0 auto;background:#ffffff;box-shadow:0 24px 80px #243a5c2e}.app-header{position:sticky;top:0;z-index:30;display:grid;grid-template-columns:auto 1fr;align-items:center;gap:18px;border-bottom:1px solid #eef1f6;background:rgba(255,255,255,.96);padding:10px clamp(14px,4vw,42px);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}.app-header h1,.placeholder-panel h2{margin:0;letter-spacing:0}.app-header h1{font-size:clamp(2rem,1.6rem + 1vw,2.8rem)}.icon-button{display:inline-grid;place-items:center;min-width:38px;min-height:38px;border:1px solid transparent;border-radius:8px;background:transparent;color:#15191f;cursor:pointer;font-weight:900}.icon-button:hover{border-color:#dce2ec;background:#f4f7fb}.hamburger-button{gap:4px}.hamburger-button span{display:block;width:24px;height:3px;border-radius:999px;background:#15191f}.app-title-button{justify-self:start;display:inline-flex;align-items:center;gap:8px;border:0;background:transparent;color:#15191f;cursor:pointer;font-size:1.12rem;font-weight:800;min-width:0;padding:4px 0}.eyebrow{margin:0 0 6px;color:#607083;font-size:.78rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase}.app-main{width:min(720px,100%);margin:0 auto;padding:14px clamp(12px,4vw,24px) 24px}.placeholder-panel{border:1px solid #e0e5ec;border-radius:8px;background:#ffffff;padding:clamp(20px,5vw,36px)}.placeholder-panel h2{color:#1f3529;font-size:clamp(1.6rem,1.35rem + .8vw,2.25rem)}.placeholder-panel p:last-child{max-width:680px;margin-bottom:0;color:#607083}.page-section{display:grid;gap:14px}.page-heading{display:grid;gap:6px}.page-heading h2,.section-title-row h3,.entry-card h3,.empty-state h3{margin:0;letter-spacing:0}.page-heading h2{color:#1f3529;font-size:clamp(1.35rem,1.18rem + .7vw,1.8rem)}.page-heading p{max-width:680px;margin:0;color:#607083}.today-topline{display:flex;align-items:center;justify-content:space-between}.date-title-picker{position:relative;display:inline-flex;align-items:center;gap:10px;color:#15191f;cursor:pointer;font-size:1.12rem;font-weight:800;line-height:1;padding:8px 0}.date-title-picker:after{width:8px;height:8px;border-right:2px solid #15191f;border-bottom:2px solid #15191f;content:"";transform:translateY(-2px) rotate(45deg)}.date-title-picker input{position:absolute;top:0;right:0;bottom:0;left:0;cursor:pointer;opacity:0}.date-strip{display:grid;grid-auto-columns:minmax(74px,1fr);grid-auto-flow:column;gap:10px;overflow-x:auto;padding-bottom:2px;scrollbar-width:none}.date-strip::-webkit-scrollbar{display:none}.date-chip{display:grid;gap:2px;min-height:52px;border:1px solid #d5f5dd;border-radius:10px;background:#edfff1;color:#182a20;cursor:pointer;padding:7px 10px}.date-chip span{font-size:.76rem}.date-chip strong{font-size:1rem}.date-chip.active{border-color:#57ad6d;background:#fbfffc;box-shadow:inset 0 0 0 1px #57ad6d}.field{display:grid;gap:6px;color:#3d4856;font-size:.92rem;font-weight:700}.field span{color:#607083}.compact-field{max-width:220px}.entry-form,.editing-panel,.empty-state,.entry-card,.total-tile{border:1px solid #ded8ca;border-radius:8px;background:#ffffff}.entry-form,.editing-panel,.empty-state{padding:clamp(18px,4vw,28px)}.form-grid{display:grid;gap:16px}.span-2{grid-column:1 / -1}.form-actions,.entry-actions,.section-title-row{display:flex;align-items:center;gap:10px}.form-actions{justify-content:flex-end;margin-top:20px}.section-title-row{justify-content:space-between}.section-title-row h3{color:#15191f;font-size:1rem}.primary-button,.secondary-button,.danger-button{min-height:38px;border-radius:8px;cursor:pointer;font-weight:800;padding:0 14px}.primary-button{border:1px solid #15191f;background:#15191f;color:#fff}.primary-button:disabled{cursor:not-allowed;opacity:.65}.secondary-button{border:1px solid #d7dce5;background:#ffffff;color:#15191f}.danger-button{border:1px solid #b85a49;background:#fff7f4;color:#943d2f}.small-button{min-height:34px;padding:0 10px}.form-error{margin:14px 0 0;color:#943d2f;font-weight:700}.status-message,.muted-text{margin:0;color:#607083;font-weight:700}.totals-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.summary-grid{display:grid;grid-template-columns:1fr;gap:12px}.summary-card{display:grid;gap:10px;min-width:0;border:1px solid #dbeafe;border-radius:8px;background:#edf6ff;padding:12px}.summary-card h3{display:flex;align-items:center;gap:8px;margin:0;color:#15191f;font-size:.92rem;letter-spacing:0}.summary-card h3:before{display:none;place-items:center;width:16px;height:16px;border-radius:999px;background:#ff9d2f;color:#fff;content:""}.macro-summary-card h3:before,.daily-overview-card h3:before{background:#dc3b91}.summary-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.summary-stats div{min-width:0}.summary-stats strong,.summary-stats span{display:block}.summary-stats strong{overflow-wrap:anywhere;color:#15191f;font-size:1.2rem;line-height:1.1}.summary-stats span{color:#405367;font-size:.8rem;font-weight:700}.macro-progress-group{display:grid;gap:8px}.macro-progress-row{display:grid;gap:4px}.progress-label-row{display:flex;align-items:center;justify-content:space-between;gap:12px;color:#405367;font-size:.74rem;font-weight:800}.progress-track{height:7px;overflow:hidden;border-radius:999px;background:#d9e8fb}.macro-progress{width:0;max-width:100%;height:100%;border-radius:999px;background:#3b82f6;transition:width .16s ease}.macro-progress.over-target{background:#d94a3a}.over-target-text{margin:0;color:#a13b30;font-size:.74rem;font-weight:800}.macro-helper-text{margin:0;color:#607083;font-size:.72rem;font-weight:800}.total-tile{display:grid;gap:4px;min-height:92px;border-color:#dbeafe;background:#edf6ff;padding:16px}.total-tile span{color:#405367;font-size:.84rem;font-weight:800;text-transform:uppercase}.total-tile strong{color:#15191f;font-size:1.55rem;line-height:1.1}.total-tile small{color:#607083;font-weight:800}.empty-state{display:grid;justify-items:start;gap:10px}.empty-state p{margin:0;color:#607083}.entry-list{display:grid;gap:12px}.entry-card{display:grid;gap:16px;box-shadow:0 8px 24px #243a5c0f;padding:18px}.entry-meta,.entry-notes{margin:0;color:#7a8796}.entry-meta{font-size:.82rem;font-weight:800;text-transform:uppercase}.entry-card h3{color:#15191f;font-size:1.12rem}.entry-macros{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:0}.entry-macros div{border-radius:8px;background:#f4f6f9;padding:10px}.entry-macros dt{color:#607083;font-size:.76rem;font-weight:800}.entry-macros dd{margin:2px 0 0;color:#15191f;font-weight:900}.entry-actions{justify-content:flex-end}.recipe-form-grid{margin-top:16px}.split-heading{grid-template-columns:auto 1fr;align-items:start}.back-button{margin-top:4px}.ingredient-title-row{margin-top:24px}.ingredient-list{display:grid;gap:10px;max-height:min(42vh,380px);overflow-y:auto;margin:12px 0 16px}.ingredient-row{display:grid;gap:12px;border:1px solid #e0e5ec;border-radius:8px;background:#f8fafc;padding:14px}.ingredient-list-item{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:14px;width:100%;border:1px solid #e0e5ec;border-radius:8px;background:#ffffff;color:#15191f;cursor:pointer;padding:12px;text-align:left}.ingredient-list-item:hover{border-color:#b8c7da;background:#fbfdff}.ingredient-list-item strong,.ingredient-list-item small{display:block}.ingredient-list-item strong{overflow-wrap:anywhere}.ingredient-list-item small{color:#7a8796;font-size:.76rem;font-weight:700}.ingredient-editor-modal{max-height:min(86vh,680px);overflow-y:auto}.food-entry-modal{width:min(520px,100%)}.food-entry-modal .entry-form{border:0;padding:0}.food-entries-form{display:grid;gap:14px}.food-entry-stack{display:grid;gap:12px;max-height:min(46vh,420px);overflow-y:auto;padding-right:2px}.food-entry-block{display:grid;gap:12px;border:1px solid #e0e5ec;border-radius:8px;background:#f8fafc;padding:12px}.food-entry-block-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.food-entry-block-heading strong{color:#15191f}.compact-macro-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.full-width-button{width:100%}.ingredient-popup-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ingredient-name-field{grid-column:1 / -1}.recipe-log-row{display:grid;gap:12px}.recipe-list,.log-list{display:grid;gap:10px}.recipe-list-item,.log-list-item{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:14px;width:100%;border:1px solid #e0e5ec;border-radius:8px;background:#ffffff;color:#15191f;cursor:pointer;padding:12px;text-align:left;box-shadow:0 8px 24px #243a5c0f}.recipe-list-item:hover,.log-list-item:hover{border-color:#b8c7da;background:#fbfdff}.recipe-list-item strong,.recipe-list-item small,.log-list-item strong,.log-list-item small{display:block}.recipe-list-item strong,.log-list-item strong{overflow-wrap:anywhere}.recipe-list-item small,.log-list-item small{color:#7a8796;font-size:.76rem;font-weight:700}.recipe-list-macros{min-width:58px;border-radius:8px;background:#edf6ff;padding:7px 9px;text-align:center}.recipe-modal-layer{position:fixed;top:0;right:0;bottom:0;left:0;z-index:45;display:grid;place-items:center;padding:18px}.recipe-modal-backdrop{position:absolute;top:0;right:0;bottom:0;left:0;border:0;background:rgba(21,25,31,.36);cursor:pointer}.recipe-modal{position:relative;z-index:1;display:grid;gap:18px;width:min(420px,100%);border:1px solid #e0e5ec;border-radius:8px;background:#ffffff;box-shadow:0 22px 70px #243a5c3d;padding:16px}.recipe-modal-heading{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:12px}.recipe-modal-heading h3{margin:0;color:#15191f;font-size:1.12rem;letter-spacing:0}.recipe-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0}.recipe-detail-grid div{border-radius:8px;background:#edf6ff;padding:12px}.recipe-detail-grid dt{color:#405367;font-size:.78rem;font-weight:900;text-transform:uppercase}.recipe-detail-grid dd{margin:2px 0 0;color:#15191f;font-size:1.05rem;font-weight:900}.recipe-modal-actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(88px,1fr));gap:8px}.settings-panel{display:grid;gap:12px;border:1px solid #e0e5ec;border-radius:8px;background:#ffffff;padding:clamp(18px,4vw,28px)}.settings-copy{max-width:760px;margin:0;color:#607083}.file-input-button{display:inline-grid;place-items:center;width:fit-content;min-height:42px;border:1px solid #cfc7b9;border-radius:8px;background:#ffffff;color:#15191f;cursor:pointer;font-weight:800;padding:0 16px}.file-input-button input{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.dictation-field{grid-column:1 / -1}.dictation-row{display:flex;align-items:center;flex-wrap:wrap;gap:10px}.dictation-row .muted-text{min-width:0}.draft-panel{display:grid;gap:16px;border:1px solid #e0e5ec;border-radius:8px;background:#ffffff;padding:clamp(18px,4vw,28px)}.confidence-pill{border:1px solid #d7dce5;border-radius:999px;background:#f4f6f9;color:#405367;font-size:.78rem;font-weight:900;padding:4px 10px;text-transform:uppercase}.draft-item-list{display:grid;gap:10px}.draft-item{display:grid;gap:10px;border:1px solid #e0e5ec;border-radius:8px;background:#f8fafc;padding:14px}.draft-item h4,.draft-item p{margin:0}.draft-item h4{color:#15191f;font-size:1rem}.draft-item p{color:#607083}.draft-edit-row{display:grid;gap:12px;border:1px solid #e0e5ec;border-radius:8px;background:#f8fafc;padding:14px}.draft-name-field{grid-column:1 / -1}.drawer-layer{position:fixed;top:0;right:0;bottom:0;left:0;z-index:40}.drawer-backdrop{position:absolute;top:0;right:0;bottom:0;left:0;border:0;background:rgba(21,25,31,.32);cursor:pointer}.app-drawer{position:relative;display:grid;align-content:start;gap:10px;width:min(320px,84vw);min-height:100%;border-right:1px solid #e0e5ec;background:#ffffff;padding:24px;box-shadow:18px 0 48px #243a5c2e}.drawer-heading h2{margin:0 0 12px;color:#15191f;letter-spacing:0}.butler-layer{position:fixed;top:0;right:0;bottom:0;left:0;z-index:60;pointer-events:none}.butler-dock-button{position:absolute;pointer-events:auto;display:grid;place-items:center;width:72px;height:72px;border:2px solid #ffffff;border-radius:50%;background:#ffffff;box-shadow:0 14px 34px #243a5c3d;cursor:pointer;padding:0;overflow:hidden;touch-action:none;-webkit-user-select:none;user-select:none;transition:left .24s cubic-bezier(.22,1,.36,1),top .24s cubic-bezier(.22,1,.36,1),transform .16s ease,box-shadow .16s ease}.butler-dock-button:hover{transform:translateY(-1px)}.butler-dock-button.top-right{box-shadow:0 10px 22px #243a5c2e}.butler-dock-button.dragging{cursor:grabbing;transition:none;box-shadow:0 18px 42px #243a5c57}.butler-icon{width:100%;height:100%;object-fit:cover;transform:scale(.9)}.butler-modal-layer{position:fixed;top:0;right:0;bottom:0;left:0;z-index:44;display:grid;place-items:center;padding:18px;pointer-events:auto}.butler-modal-backdrop{position:absolute;top:0;right:0;bottom:0;left:0;border:0;background:rgba(21,25,31,.32);cursor:pointer}.butler-bar,.butler-results,.butler-listening{pointer-events:auto;width:min(560px,100%);margin:0 auto}.butler-bar{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;border:1px solid #e7ebf1;border-radius:8px;background:rgba(255,255,255,.98);box-shadow:0 14px 40px #243a5c33;padding:8px;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);margin-top:14px}.butler-action-row{display:flex;justify-content:flex-end;gap:8px}.butler-bar textarea{border:0;background:#f4f6f9;border-radius:8px;min-height:96px;max-height:220px;resize:vertical;line-height:1.4;padding:12px 14px}.icon-action-button{display:grid;place-items:center;width:44px;height:44px;min-height:44px;border-radius:50%;padding:0}.icon-action-button svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:2.2}.icon-action-button svg rect{fill:currentColor;stroke:currentColor}.butler-results{position:relative;z-index:1;max-height:min(76vh,620px);overflow:auto;border:1px solid #e0e5ec;border-radius:8px;background:rgba(255,255,255,.98);box-shadow:0 18px 48px #243a5c2e;padding:14px}.butler-title-row{display:grid;grid-template-columns:48px minmax(0,1fr);align-items:center;gap:12px}.butler-title-icon{width:48px;height:48px;border-radius:50%;object-fit:cover;border:1px solid #e0e5ec}.butler-modal-heading{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;margin-bottom:12px}.butler-modal-heading h3{margin:0;color:#15191f;letter-spacing:0}.butler-chat-log{display:grid;gap:10px;max-height:min(42vh,340px);overflow:auto;padding:4px 2px}.butler-chat-message{display:grid;max-width:88%;border-radius:8px;padding:10px 12px;white-space:pre-wrap}.butler-chat-message p{margin:0;font-size:.88rem;line-height:1.45}.butler-chat-message.butler{justify-self:start;border:1px solid #dbe7f5;background:#eef6ff;color:#23384d}.butler-chat-message.user{justify-self:end;background:#15191f;color:#fff}.butler-card{display:grid;gap:14px}.butler-listening{border-radius:999px;background:#15191f;color:#fff;font-weight:800;padding:8px 14px;margin-top:10px}.nav-link{min-height:44px;width:100%;border:1px solid transparent;border-radius:8px;background:transparent;color:#405367;cursor:pointer;font-size:.92rem;font-weight:700;text-align:left;padding:0 14px}.nav-link:hover{border-color:#dce2ec;background:#f4f7fb}.nav-link.active{border-color:#15191f;background:#15191f;color:#fff}@media (min-width: 760px){.app-shell{grid-template-rows:auto 1fr}.form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.totals-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.entry-card{grid-template-columns:1fr auto;align-items:center}.entry-macros,.entry-actions{grid-column:1 / -1}.ingredient-row{grid-template-columns:2fr repeat(6,minmax(80px,1fr)) auto;align-items:end}.ingredient-name-field{grid-column:auto}.recipe-card{grid-template-columns:1fr}.recipe-log-row{grid-template-columns:minmax(160px,220px) 1fr;align-items:end}.draft-item{grid-template-columns:1fr auto;align-items:center}.draft-edit-row{grid-template-columns:2fr repeat(6,minmax(80px,1fr));align-items:end}.draft-name-field{grid-column:auto}}
