:root{color:#4e4258;background:#fff9fc;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Arial,sans-serif;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh;background:linear-gradient(180deg,#fff9fc,#fcfbff)}button,input,select,textarea{font:inherit}input,select,textarea{font-size:16px}.app-shell{width:min(1120px,100%);min-height:100vh;margin:0 auto;padding:18px}.app-header{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:18px 2px 20px;border-bottom:1px solid #eadfeb}.date-tools{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.menu-toggle{min-height:42px;border:1px solid #eadfeb;border-radius:14px;padding:8px 12px;color:#4e4258;background:#fff;font-weight:900;cursor:pointer}.menu-toggle span{margin-right:6px}.date-tools input,.date-tools button{min-height:38px;border:1px solid #eadfeb;border-radius:12px;padding:7px 10px;color:#4e4258;background:#fff;font-weight:800}.app-mark{width:58px;height:58px;display:grid;place-items:center;flex:0 0 auto;border-radius:18px;color:#7f5878;font-weight:900;background:linear-gradient(135deg,#f7cfe0,#dcccf8)}h1{margin:0 0 4px;font-size:28px;line-height:1.15}h2{margin:0 0 10px;font-size:26px;line-height:1.15}p{margin:0;color:#7f738c;font-size:16px}.app-layout{display:grid;gap:18px;padding:20px 0 32px}.app-nav{display:none;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:10px;border:1px solid #eadfeb;border-radius:18px;background:#fff}.app-nav.open{display:grid}.app-nav button{min-height:46px;border:1px solid #eadfeb;border-radius:16px;background:#fff;color:#4e4258;font-weight:850;cursor:pointer;box-shadow:none}.app-nav button.active{border-color:#e7cfe6;color:#7f5878;background:linear-gradient(135deg,#fce6f1,#f2ecff)}.app-content{min-width:0}.section-panel{min-height:320px;padding:22px;border:1px solid #eadfeb;border-radius:22px;background:#fff;box-shadow:0 10px 28px #6e54731a}.section-kicker{display:inline-flex;margin-bottom:10px;padding:6px 10px;border-radius:999px;background:#f6eef9;color:#6f5780;font-size:12px;font-weight:850}.summary-date{margin-top:18px;color:#7f738c;font-size:14px;font-weight:750}.metric-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:14px}.metric-card{min-height:92px;padding:14px;border:1px solid #eadfeb;border-radius:18px;background:#fff9fc}.metric-card span{display:block;margin-bottom:8px;color:#7f738c;font-size:13px;font-weight:800}.metric-card strong{display:block;color:#4e4258;font-size:26px;line-height:1}.balance-card{grid-column:1 / -1;background:linear-gradient(135deg,#f7f4ff,#f2fbf8)}.empty-state{margin-top:18px;padding:16px;border:1px solid #eadfeb;border-radius:18px;background:#fff9fc}.home-hero-grid,.meal-overview-grid,.macro-progress-grid,.badge-grid{display:grid;gap:12px;margin-top:16px}.balance-card-large,.event-card,.meal-overview,.macro-progress,.week-section,.subsection,.badge-card{padding:14px;border:1px solid #eadfeb;border-radius:18px;background:#fff9fc}.balance-card-large{display:grid;gap:14px;background:linear-gradient(135deg,#f7f4ff,#f2fbf8)}.balance-visual-row{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:14px}.balance-orb{width:128px;aspect-ratio:1;display:grid;place-items:center;padding:18px;border-radius:999px;text-align:center;background:radial-gradient(circle at center,#fff 0 58%,transparent 59%),conic-gradient(#b8dccd 0 var(--balance-angle),#f7cfe0 var(--balance-angle) 100%);box-shadow:inset 0 0 0 1px #eadfeb}.balance-orb span,.balance-orb small{color:#7f738c;font-size:11px;font-weight:850}.balance-orb strong{margin:0;font-size:24px}.balance-card-large span,.event-card span{display:block;color:#7f738c;font-size:13px;font-weight:850}.balance-card-large strong,.event-card strong,.meal-overview strong{display:block;margin-top:6px;color:#4e4258;font-size:28px;line-height:1}.balance-mini-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.balance-mini-grid span{padding:8px;border-radius:12px;background:#fff}.between-line{display:flex;align-items:center;justify-content:space-between;gap:10px}.macro-progress,.activity-bars{display:grid;gap:10px}.progress-track{height:10px;overflow:hidden;border-radius:999px;background:#efe6f0}.progress-track span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#f7cfe0,#b8dccd)}.meal-overview h3,.week-section h3{margin:0;font-size:16px}.meal-overview p,.week-section p{margin-top:8px;font-size:14px}.home-reading{margin-top:16px}.home-reading h3{margin:0 0 10px}.week-summary{margin-top:18px}.week-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:10px}.week-toolbar button{min-height:38px;border:1px solid #eadfeb;border-radius:12px;padding:7px 11px;color:#6f5780;background:#fff;font-weight:850;cursor:pointer}.week-toolbar button:disabled{opacity:.5;cursor:default}.week-metrics{margin-bottom:16px}.week-list{display:grid;gap:10px}.chip-list,.pattern-list{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:10px}.pattern-list{display:grid}.pattern-item{display:grid;gap:5px;padding:12px;border:1px solid #eadfeb;border-radius:14px;background:#fff}.pattern-item span{color:#7f738c;font-size:14px}.summary-box{width:100%;max-height:320px;overflow:auto;margin:12px 0 0;padding:12px;border:1px solid #eadfeb;border-radius:14px;color:#4e4258;background:#fff;white-space:pre-wrap;font:13px/1.45 ui-monospace,SFMono-Regular,Consolas,monospace}.week-row{padding:14px;border:1px solid #eadfeb;border-radius:18px;background:#fff9fc}.week-row>div{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}.week-row p{font-size:14px}.status-pill{display:inline-flex;align-items:center;border:0;border-radius:999px;padding:5px 9px;font-size:12px;font-weight:850}button.status-pill{cursor:pointer}.status-pill.good{background:#eaf8f1;color:#487b6c}.status-pill.warn{background:#fff4db;color:#8a6631}.status-pill.soft{background:#f4eeff;color:#6f5780}.nutrition-summary{margin-top:18px}.meal-list{display:grid;gap:12px;margin-top:16px}.add-food-panel{display:grid;gap:12px;margin-top:16px;padding:14px;border:1px solid #eadfeb;border-radius:18px;background:#fcfbff}.add-food-panel h3{margin:0;font-size:17px}.add-food-panel p{color:#7f738c;font-size:14px;font-weight:750}.add-feedback{border:1px solid #eadfeb;border-radius:14px;padding:10px 12px;background:#fff}.add-feedback.success{border-color:#bfe7d3;color:#487b6c;background:#eaf8f1}.add-food-grid{display:grid;gap:10px}.add-food-grid label{display:grid;gap:5px;color:#7f738c;font-size:12px;font-weight:850}.add-food-grid input,.add-food-grid select{width:100%;min-height:40px;border:1px solid #eadfeb;border-radius:12px;padding:8px 10px;color:#4e4258;background:#fff}.add-food-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px}.add-food-actions button{min-height:40px;border:0;border-radius:14px;padding:0 14px;color:#fff;background:#6f5780;font-weight:850;cursor:pointer}.add-food-actions span{color:#7f738c;font-size:13px;font-weight:800}.meal-card{padding:14px;border:1px solid #eadfeb;border-radius:18px;background:#fff9fc}.meal-card-highlight{border-color:#bfe7d3;box-shadow:0 0 0 3px #75b8972e}.meal-card-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.meal-card h3{margin:0;font-size:17px}.meal-card-header span{color:#6f5780;font-size:13px;font-weight:850}.meal-card-actions{display:grid;justify-items:end;gap:6px}.meal-card-actions button{min-height:34px;border:1px solid #eadfeb;border-radius:12px;padding:0 10px;color:#6f5780;background:#fff;font-size:13px;font-weight:850;cursor:pointer}.meal-state{display:inline-flex;width:fit-content;margin-top:4px;border-radius:999px;padding:4px 8px;font-size:12px}.meal-state.open{background:#eaf8f1;color:#487b6c}.meal-state.closed{background:#f4eeff;color:#6f5780}.meal-macros{margin-bottom:10px;font-size:13px}.meal-tools{margin-top:12px;padding-top:10px;border-top:1px solid #eadfeb}.meal-tools summary{cursor:pointer;color:#6f5780;font-weight:800}.meal-tool-actions{margin-top:10px}.meal-tools-grid{margin-top:10px;align-items:end}.meal-tools-grid button{min-height:40px}.food-list{display:grid;gap:8px}.food-row{display:flex;justify-content:space-between;gap:12px;padding:10px;border:1px solid #eadfeb;border-radius:14px;background:#fff}.food-row div{display:grid;gap:6px}.food-row strong{font-size:14px}.food-row span{color:#7f738c;font-size:13px}.food-row label{display:grid;gap:4px;color:#7f738c;font-size:12px;font-weight:800}.food-row input{width:110px;min-height:36px;border:1px solid #eadfeb;border-radius:12px;padding:7px 9px;color:#4e4258;background:#fff9fc}.food-row-actions{display:flex;align-items:flex-end;justify-content:space-between;gap:8px;flex:0 0 auto}.food-row-actions span{color:#4e4258;font-weight:850}.food-row-actions button{min-height:34px;border:1px solid #eadfeb;border-radius:12px;padding:0 10px;color:#8a4856;background:#fff9fc;font-size:13px;font-weight:850;cursor:pointer}.meal-empty{padding:10px;border:1px dashed #eadfeb;border-radius:14px;background:#fff;font-size:14px}.nutrition-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-top:16px}.nutrition-actions button{min-height:42px;border:0;border-radius:14px;padding:0 16px;color:#fff;background:#7f5878;font-weight:850;cursor:pointer}.nutrition-actions button:disabled{cursor:default;opacity:.55}.nutrition-actions button.secondary{border:1px solid #eadfeb;color:#7f5878;background:#fff}.nutrition-actions span{color:#487b6c;font-size:14px;font-weight:850}.nutrition-actions span.pending{color:#8a6631}.tool-panel{display:grid;gap:14px;margin-top:18px;padding:14px;border:1px solid #eadfeb;border-radius:18px;background:#fff9fc}.tool-panel h3,.recipe-card h4{margin:0}.subsection{display:grid;gap:12px}.subsection summary{cursor:pointer;color:#4e4258;font-weight:900}.tool-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px}.tool-actions button,.tool-actions select,.file-button,.compact-row button,.soft-button{min-height:38px;border:1px solid #eadfeb;border-radius:12px;padding:7px 11px;color:#6f5780;background:#fff;font-weight:850;cursor:pointer}.tool-actions .good-button{border-color:#b8dccd;color:#487b6c;background:#eaf8f1}.file-button input{display:none}.panel-message{color:#487b6c;font-size:14px;font-weight:850}.form-grid,.recipe-grid{display:grid;gap:10px}.form-grid label,.wide-field{display:grid;gap:5px;color:#7f738c;font-size:12px;font-weight:850}.form-grid input,.form-grid select,.form-grid textarea,.wide-field input,.wide-field select,.wide-field textarea,.tool-actions select{width:100%;min-height:40px;border:1px solid #eadfeb;border-radius:12px;padding:8px 10px;color:#4e4258;background:#fff}.form-grid textarea,.wide-field textarea{min-height:90px;resize:vertical}.compact-list,.workout-list{display:grid;gap:8px}.compact-row,.workout-step,.recipe-card{padding:12px;border:1px solid #eadfeb;border-radius:14px;background:#fff}.badge-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.badge-card{display:grid;gap:6px;text-align:center}.badge-card div{font-size:30px}.badge-card span,.badge-card small{color:#7f738c;font-size:13px}.badge-card.locked{opacity:.55;filter:grayscale(1)}.badge-card.earned{border-color:#b8dccd;background:#eaf8f1}.badge-card.history{border-color:#dcccf8;background:#f7f4ff}.cardio-chip-grid{display:flex;flex-wrap:wrap;gap:8px}.cardio-chip-grid button{min-height:40px;border:1px solid #eadfeb;border-radius:999px;padding:8px 12px;color:#6f5780;background:#fff;font-weight:850;cursor:pointer}.cardio-chip-grid button.active{border-color:#b8dccd;color:#487b6c;background:#eaf8f1}.selection-note{font-size:14px;font-weight:850}.exercise-guide{margin-top:10px;padding:10px;border:1px solid #eadfeb;border-radius:14px;background:#fcfbff}.exercise-guide summary{color:#6f5780}.guide-grid{display:grid;gap:8px;margin-top:10px}.guide-grid article{display:grid;gap:4px;padding:10px;border-radius:12px;background:#fff}.guide-grid span{color:#7f738c;font-size:14px}.backup-panel{margin-top:0;background:#fcfbff}.backup-actions{align-items:stretch}.backup-actions button,.backup-actions .file-button,.backup-actions select{flex:1 1 160px;justify-content:center;text-align:center}.compact-row{display:flex;justify-content:space-between;gap:10px}.compact-row>div{display:flex;gap:8px}.workout-step summary{cursor:pointer;font-weight:850}.active-workout-card{display:grid;gap:14px;margin-top:16px;padding:16px;border:1px solid #eadfeb;border-radius:18px;background:#fff9fc}.completed-workout-card{display:grid;gap:14px;margin-top:16px;padding:18px;border:1px solid #bfe7d3;border-radius:20px;background:#eaf8f1;box-shadow:0 10px 24px #487b6c1f}.completed-workout-card h3{margin:4px 0;color:#315f52;font-size:24px;line-height:1.1}.completed-workout-card p{color:#487b6c;font-weight:850}.celebration-mark{display:inline-grid;width:42px;height:42px;place-items:center;border-radius:14px;background:#fff;font-size:24px}.completed-workout-card .soft-button{width:fit-content;min-height:40px;border:1px solid #b8dccd;border-radius:14px;padding:0 14px;color:#315f52;background:#fff;font-weight:900}.optional-workout-card,.circuit-mode-card{display:grid;gap:12px;margin-top:16px;padding:16px;border:1px solid #d9e8db;border-radius:18px;background:#f4fbf5}.optional-workout-card h3{margin:0;color:#315f52;font-size:22px;line-height:1.15}.optional-workout-card p,.circuit-mode-card small{color:#487b6c;font-weight:800}.optional-status-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.optional-status-grid span{display:grid;gap:3px;padding:10px;border:1px solid #d9e8db;border-radius:14px;background:#fff;color:#6f5780;font-size:12px;font-weight:850}.optional-status-grid b{color:#315f52;font-size:14px}.optional-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.optional-actions button{min-height:42px;border:1px solid #d9e8db;border-radius:14px;color:#315f52;background:#fff;font-weight:900}.optional-actions button.primary{border:0;color:#fff;background:#487b6c}.circuit-mode-card>span{color:#7f738c;font-size:12px;font-weight:850}.circuit-mode-card>b{color:#315f52;font-size:16px}.workout-progress-head,.workout-status-line,.active-workout-title{display:grid;gap:6px}.workout-progress-head{grid-template-columns:1fr;color:#6f5780;font-size:13px;font-weight:850}.workout-progress-bar{height:8px;overflow:hidden;border-radius:999px;background:#f3e8f5}.workout-progress-bar span{display:block;height:100%;border-radius:inherit;background:#7fb59a}.active-workout-title span{color:#7f738c;font-size:13px;font-weight:850}.active-workout-title h3{margin:0;font-size:22px;line-height:1.15}.active-workout-title p{font-size:15px;font-weight:800}.quick-workout-actions{display:flex;justify-content:flex-end}.compact-action{min-height:34px;border:1px solid #eadfeb;border-radius:12px;padding:0 10px;color:#6f5780;background:#fff;font-size:13px;font-weight:850}.workout-nav-actions{display:grid;grid-template-columns:1fr 1.4fr;gap:10px}.workout-nav-actions button{min-height:44px;border:1px solid #eadfeb;border-radius:14px;color:#6f5780;background:#fff;font-weight:900}.workout-nav-actions button.primary{border:0;color:#fff;background:#7f5878}.workout-nav-actions button:disabled{opacity:.45}.workout-status-line{grid-template-columns:repeat(3,minmax(0,1fr));color:#7f738c;font-size:12px;font-weight:850}.mobility-log{display:grid;gap:10px}.mobility-log label{display:grid;gap:5px;color:#7f738c;font-size:12px;font-weight:850}.mobility-log input{width:100%;min-height:40px;border:1px solid #eadfeb;border-radius:12px;padding:8px 10px;color:#4e4258;background:#fff}.routine-overview{margin-top:14px}.routine-row{width:100%;text-align:left;background:#fff;cursor:pointer}.routine-row.active{border-color:#bfe7d3;background:#eaf8f1}.last-workout-note{display:grid;gap:4px;margin:10px 0;padding:10px 12px;border:1px solid #eadfeb;border-radius:14px;background:#fff9fc}.last-workout-note span{color:#7f738c;font-size:12px;font-weight:850}.last-workout-note b{color:#4e4258;font-size:14px}.series-grid{margin-top:10px}.series-grid input:disabled{color:#7f738c;background:#f6eef9}.recipe-grid{grid-template-columns:1fr}@media(min-width:760px){.menu-toggle{display:none}.app-layout{grid-template-columns:220px 1fr;align-items:start}.app-nav{display:grid;position:sticky;top:18px;grid-template-columns:1fr;padding:0;border:0;background:transparent}.section-panel{min-height:460px;padding:28px}.metric-grid{grid-template-columns:repeat(5,minmax(0,1fr))}.home-hero-grid{grid-template-columns:2fr 1fr}.balance-card-large{grid-row:span 2}.meal-overview-grid,.macro-progress-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.balance-card{grid-column:auto}.meal-list{grid-template-columns:repeat(2,minmax(0,1fr))}.add-food-grid{grid-template-columns:1fr 1.2fr 1.8fr .8fr}.custom-food-grid,.form-grid.series-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.form-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.wide-field{grid-column:1 / -1}.recipe-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.badge-grid{grid-template-columns:repeat(5,minmax(0,1fr))}.badge-grid-compact{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:520px){.balance-visual-row{grid-template-columns:1fr}.balance-orb{width:min(160px,100%);justify-self:center}.backup-actions{display:grid}.backup-actions button,.backup-actions .file-button,.backup-actions select{width:100%}}
