:root{color-scheme:dark;--bg:#111715;--panel:#19211f;--panel2:#1e2925;--border:#2c3833;--text:#e8eeea;--muted:#96a49d;--dim:#66766e;--green:#bce8c5;--green-dark:#244b37;--coral:#ffad91;--blue:#a9c9f4;--gold:#f0d186;--purple:#c5b3ec;--danger:#efaa9f;--shadow:0 22px 50px #080c0a55}
*{box-sizing:border-box}html{min-height:100%;background:var(--bg)}body{margin:0;color:var(--text);font:15px/1.55 'DM Sans',sans-serif;background:radial-gradient(ellipse 85% 35% at 60% -16%,#31533d44,transparent 75%),var(--bg);min-height:100vh}h1,h2,h3,strong,.brand{font-family:Manrope,'DM Sans',sans-serif}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(2.1rem,4vw,3.1rem);line-height:1.08;letter-spacing:-.055em;margin-bottom:12px}h2{font-size:1.35rem;line-height:1.2;letter-spacing:-.03em;margin-bottom:0}h3{font-size:1.1rem;margin-bottom:5px}a{color:inherit;text-decoration:none}a:hover{color:var(--green)}button,input,select,textarea{font:inherit}.topbar{height:72px;max-width:1240px;margin:auto;padding:0 32px;display:flex;align-items:center;gap:38px;border-bottom:1px solid #ffffff0b}.brand{display:flex;align-items:center;gap:10px;font-size:1.12rem;font-weight:800;letter-spacing:-.045em}.brand-mark{display:grid;place-items:center;width:29px;height:29px;border-radius:10px;background:var(--green);color:#14221a;font-weight:800;font-family:Manrope}.nav-links{display:flex;gap:28px;align-items:center;flex:1}.nav-links a,.link-button{font-size:.87rem;color:#aab7b0}.nav-links a:hover,.link-button:hover{color:var(--text)}.logout-form{margin-left:auto}.link-button{border:0;background:none;padding:7px;cursor:pointer}.page-shell{max-width:1160px;padding:42px 28px 56px;margin:auto;min-height:calc(100vh - 130px)}.footer{max-width:1160px;padding:0 28px 28px;margin:auto;color:#66756e;font-size:.75rem}.footer span{padding:0 6px;color:#8ca398}.hero-row,.page-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:28px}.hero-row .muted,.page-heading .muted{margin-bottom:0}.eyebrow{font-size:.67rem;font-weight:700;letter-spacing:.15em;color:#95b29f;margin-bottom:11px}.muted{color:var(--muted)}.small{font-size:.83rem}.date-caption{font-size:.96rem;letter-spacing:0;color:var(--muted);font-weight:500;white-space:nowrap;margin-left:8px}.day-jump{display:flex;gap:8px}.icon-button{display:grid;place-items:center;width:38px;height:38px;border:1px solid var(--border);border-radius:12px;color:#b7c4bd;background:#18201d}.icon-button:hover{border-color:#6e9e7d;color:var(--green)}.quick-actions{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:40px}.quick-action{display:flex;align-items:center;gap:12px;padding:15px 14px;background:linear-gradient(145deg,#202b26,#19211f);border:1px solid var(--border);border-radius:15px;transition:transform .15s,border-color .15s}.quick-action:hover{transform:translateY(-2px);border-color:#638470}.quick-action>span:nth-child(2){display:grid;min-width:0;flex:1}.quick-action strong{font-size:.82rem;font-weight:700;white-space:nowrap}.quick-action small{color:var(--muted);font-size:.72rem;margin-top:2px}.quick-action>b{font-size:.9rem;color:#8fa398}.action-icon{display:grid;place-items:center;flex:none;width:39px;height:39px;border-radius:12px;font-size:1.17rem;font-weight:700}.coral{color:var(--coral);background:#703e354d}.green{color:var(--green);background:#2b5d3e5c}.blue{color:var(--blue);background:#375b855c}.gold{color:var(--gold);background:#765f2c55}.section-heading{display:flex;justify-content:space-between;align-items:flex-end;margin:0 0 14px;gap:16px}.section-heading .eyebrow{margin-bottom:6px}.text-link{font-size:.82rem;color:#b7d3bf}.text-link span{margin-left:6px}.timeline-panel,.panel{background:linear-gradient(145deg,#1c2522,#18201e);border:1px solid var(--border);border-radius:17px;box-shadow:0 12px 30px #080c0a14}.timeline-panel{padding:2px 24px}.timeline{list-style:none;padding:0;margin:0}.timeline-item{position:relative;display:grid;grid-template-columns:76px 14px minmax(0,1fr) 24px;gap:15px;align-items:start;padding:19px 0;border-bottom:1px solid #ffffff0c}.timeline-item:last-child{border-bottom:0}.timeline-item time{font-size:.77rem;color:var(--muted);padding-top:4px;white-space:nowrap}.timeline-dot{width:9px;height:9px;border-radius:50%;margin-top:8px;box-shadow:0 0 0 4px #ffffff09}.dot-coral{background:var(--coral)}.dot-green{background:var(--green)}.dot-blue{background:var(--blue)}.dot-gold{background:var(--gold)}.timeline-copy{min-width:0}.item-kind{display:block;color:#91a098;font-size:.66rem;letter-spacing:.09em;text-transform:uppercase;font-weight:700;margin-bottom:2px}.item-title{font-family:Manrope,sans-serif;font-weight:700;font-size:.92rem}.timeline-copy p{font-size:.8rem;color:var(--muted);margin:2px 0 0;overflow-wrap:anywhere}.row-edit{color:#81958a;font-size:.76rem;white-space:nowrap;padding:3px}.row-edit:hover{color:var(--green)}.empty-state{text-align:center;padding:45px 15px;color:var(--muted)}.empty-sun{display:block;font-size:1.6rem;color:var(--green);margin-bottom:8px}.empty-state p{margin:0;font-size:.86rem}.empty-state h3{color:var(--text)}.totals-heading{margin-top:35px}.soft-badge{display:inline-block;border-radius:100px;background:#34463b;color:#b7d2bf;padding:5px 10px;font-size:.69rem}.metric-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:11px}.metric-card{padding:16px 17px;background:#19211f;border:1px solid var(--border);border-radius:14px;min-height:104px}.metric-card span,.metric-card small{display:block;color:var(--muted);font-size:.76rem}.metric-card strong{display:block;margin:8px 0 3px;font-size:1.27rem;letter-spacing:-.04em}.metric-card small{color:#728279;font-size:.68rem}.auth-card{width:min(100%,430px);margin:7vh auto 0;padding:35px;background:linear-gradient(145deg,#202a26,#19211f);border:1px solid var(--border);border-radius:20px;box-shadow:var(--shadow)}.auth-card h1{font-size:2.2rem}.auth-card .muted{margin-bottom:26px}.stack-form{display:grid;gap:9px}.stack-form label,.field label{font-size:.78rem;color:#b9c5bf;font-weight:600;margin-top:5px}.input-validation-error{border-color:#ad6a5f!important}.stack-form input,.field input,.field select,.field textarea,.range-form select,.range-form input{width:100%;min-width:0;color:var(--text);background:#121916;border:1px solid #34413b;border-radius:9px;padding:11px 12px;outline:none}.stack-form input:focus,.field input:focus,.field select:focus,.field textarea:focus,.range-form input:focus,.range-form select:focus{border-color:#87bd94;box-shadow:0 0 0 3px #70ad7c20}.stack-form textarea,.field textarea{resize:vertical}.stack-form .button{margin-top:13px}.button{display:inline-flex;align-items:center;justify-content:center;gap:12px;border:1px solid transparent;padding:10px 15px;border-radius:10px;font-weight:700;font-size:.81rem;cursor:pointer;transition:filter .15s,transform .15s;white-space:nowrap}.button:hover{filter:brightness(1.08);transform:translateY(-1px)}.button.primary{background:var(--green);color:#183021}.button.secondary{background:#263b30;border-color:#3e5948;color:#c4e4cc}.button.quiet{background:#202a26;border-color:#34413b;color:#b5c1ba}.button.danger{background:#442923;border-color:#654038;color:#ffc0b0}.validation{color:#ffb9a9;font-size:.8rem}.validation ul{margin:5px 0;padding-left:20px}.success{color:var(--green);font-size:.82rem;margin:7px 0}.auth-card .small{margin:20px 0 0}.auth-card .small a{color:var(--green)}.notice{border:1px solid #567360;background:#203228;padding:14px;border-radius:10px}.notice a{color:var(--green)}.form-panel{padding:25px;max-width:820px}.form-panel h2{margin-bottom:20px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 20px}.field{display:grid;gap:7px;min-width:0}.field.full,.full{grid-column:1/-1}.inline-fields{display:flex;gap:8px}.inline-fields input{flex:1}.inline-fields select{width:130px}.form-divider{border-top:1px solid var(--border);padding-top:15px;color:#d5e0da;font-size:.83rem;font-weight:700;display:flex;justify-content:space-between}.form-divider small,.checkbox-field small{color:var(--muted);font-weight:400}.checkbox-field{display:flex;align-items:center;gap:10px}.checkbox-field label{display:flex;align-items:center;gap:9px;margin:0}.checkbox-field input{width:auto;accent-color:#9bcba5}.form-actions{display:flex;justify-content:flex-end;gap:9px;border-top:1px solid #ffffff10;padding-top:17px}.delete-form{border-top:1px solid #ffffff10;margin-top:14px;padding-top:15px}.optional,.range-hint{font-weight:400;color:#829188;font-size:.7rem;margin-left:5px}.range-scale{display:flex;justify-content:space-between;color:#819087;font-size:.68rem}.narrow{max-width:530px}.two-column{display:grid;grid-template-columns:1.2fr .8fr;gap:14px}.two-column .form-panel{max-width:none}.table-panel{overflow:hidden}.table-scroll{overflow-x:auto}table{width:100%;border-collapse:collapse;text-align:left;font-size:.79rem;white-space:nowrap}th{font-weight:600;color:#91a098;font-size:.68rem;text-transform:uppercase;letter-spacing:.07em;background:#ffffff04}th,td{padding:13px 15px;border-bottom:1px solid #ffffff0c}tbody tr:last-child td{border-bottom:0}td{color:#c4cec8}.item-title{color:#e1e9e3}.archived{opacity:.58}.empty-cell{text-align:center;color:var(--muted);padding:27px}.filter-panel{padding:17px;margin-bottom:25px}.range-form{display:flex;align-items:flex-end;gap:12px}.range-form .field{flex:1}.range-form .button{height:42px}.range-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px}.range-title h2{font-size:1.1rem}.range-title h2 span{color:var(--dim);font-size:.8rem;font-weight:400;padding:0 5px}.history-grid{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(360px,1fr);gap:20px;align-items:start}.history-side{display:grid;gap:22px}.history-side .section-heading{margin-bottom:11px}.history-side h2{font-size:1.12rem}.compact-table{font-size:.7rem}.compact-table th,.compact-table td{padding:10px 9px}.table-note{font-size:.71rem;color:var(--muted);padding:0 14px 13px;margin:0;white-space:normal}.section-block .panel{box-shadow:none}.export-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.export-card{padding:26px}.export-card .eyebrow{margin-top:20px}.export-card h2{margin-bottom:10px}.export-card .muted{max-width:430px;min-height:70px;font-size:.87rem}.export-card code{color:#c2dec9;background:#26352e;padding:2px 5px;border-radius:4px}.empty-card{padding:30px}.empty-card p{margin:8px 0 20px}.range-form .field:first-child{max-width:160px}.range-form .field:nth-child(2),.range-form .field:nth-child(3){max-width:190px}
@media(max-width:900px){.quick-actions{grid-template-columns:repeat(2,1fr)}.history-grid{grid-template-columns:1fr}.history-side{grid-template-columns:1fr 1fr;align-items:start}.history-side>.section-block:first-child{grid-column:1/-1}.metric-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:640px){.topbar{height:auto;min-height:64px;padding:12px 17px;gap:15px;flex-wrap:wrap}.brand{margin-right:auto}.nav-links{order:3;width:100%;justify-content:space-between;border-top:1px solid #ffffff0d;padding-top:10px;gap:12px}.nav-links a{font-size:.8rem}.logout-form{margin-left:0}.page-shell{padding:30px 16px 42px}.footer{padding:0 16px 20px}.hero-row,.page-heading{align-items:flex-start;margin-bottom:22px}.hero-row{flex-direction:column;gap:14px}.hero-row h1{font-size:2.25rem}.quick-actions{gap:8px;margin-bottom:30px}.quick-action{padding:11px 9px;gap:8px;border-radius:12px}.quick-action strong{font-size:.72rem;white-space:normal}.quick-action small{font-size:.67rem}.action-icon{width:34px;height:34px}.quick-action>b{display:none}.date-caption{display:block;margin:8px 0 0;font-size:.82rem}.timeline-panel{padding:0 13px}.timeline-item{grid-template-columns:56px 12px minmax(0,1fr) 18px;gap:8px;padding:15px 0}.timeline-item time{font-size:.68rem}.timeline-copy p{font-size:.75rem}.item-title{font-size:.84rem}.metric-grid{grid-template-columns:repeat(2,1fr);gap:8px}.metric-card{padding:13px;min-height:96px}.metric-card strong{font-size:1.06rem}.section-heading{align-items:center}.section-heading h2{font-size:1.18rem}.page-heading{flex-direction:column;align-items:flex-start}.page-heading .button{align-self:flex-start}.form-panel{padding:18px}.form-grid{grid-template-columns:1fr;gap:14px}.field.full,.full{grid-column:auto}.form-divider{display:grid;gap:3px}.form-actions{grid-column:auto}.two-column,.export-grid{grid-template-columns:1fr}.range-form{display:grid;grid-template-columns:1fr 1fr;align-items:end}.range-form .field:first-child{grid-column:1/-1;max-width:none}.range-form .field:nth-child(2),.range-form .field:nth-child(3){max-width:none}.range-form .button{grid-column:1/-1}.history-side{grid-template-columns:1fr}.history-side>.section-block:first-child{grid-column:auto}.range-title{align-items:flex-start;gap:8px}.range-title h2{font-size:.93rem}.auth-card{margin:5vh auto 0;padding:25px 20px}.export-card{padding:22px}.export-card .muted{min-height:0}.date-caption{white-space:normal}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important}}
.heading-actions{display:flex;gap:9px;align-items:center}.catalog-details{white-space:normal;min-width:145px}.catalog-details summary{color:#b7d3bf;cursor:pointer;font-size:.76rem}.catalog-details-body{width:min(340px,80vw);max-height:360px;overflow:auto;margin-top:8px;padding:12px;border:1px solid #42534a;border-radius:11px;background:#17201c;white-space:normal}.catalog-details-body strong{display:block;margin:7px 0 3px;color:#d9e6dd;font-size:.76rem}.catalog-details-body ul,.catalog-details-body ol{margin:0;padding-left:19px;color:#bbc9c0;font-size:.75rem}.catalog-details-body li{padding:2px 0}.catalog-details-body li+li{margin:0}
.workout-form-panel{max-width:none}.workout-time-field{max-width:360px}.exercise-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:12px;margin-top:13px}.exercise-heading .eyebrow{margin-bottom:5px}.exercise-heading h3{margin:0}.exercise-row{display:grid;grid-template-columns:1fr 1.5fr 1fr .65fr .75fr auto;gap:12px;align-items:end;padding:15px;margin-top:10px;border:1px solid #33413a;border-radius:13px;background:#151d19}.exercise-row .field{gap:6px}.exercise-row .field label{margin-top:0}.remove-exercise{height:41px;padding:0 10px;border:1px solid #59403a;border-radius:9px;background:#30201d;color:#e5a99b;font-size:.73rem;cursor:pointer}.remove-exercise:hover{border-color:#a66d5c;color:#ffc0b0}.workout-list-heading{margin-top:35px}.workout-history{display:grid;gap:13px}.workout-card{padding:17px 19px}.workout-card-heading{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:10px}.workout-card-heading h3{margin:0;font-size:.95rem}.workout-card table{white-space:normal}.workout-card th,.workout-card td{padding:10px 12px}.workout-card tbody tr:last-child td{border-bottom:0}
.weight-input-group{display:flex;gap:6px}.weight-input-group input{flex:1;min-width:0}.weight-input-group select{width:67px;min-width:67px;flex:none;padding:11px 7px;text-align:center}
.exercise-search-field{position:relative;min-width:0}.exercise-suggestions{position:absolute;z-index:5;top:calc(100% + 4px);left:0;right:0;overflow:hidden;border:1px solid #46574e;border-radius:10px;background:#1b2520;box-shadow:0 12px 28px #0007}.exercise-suggestions[hidden]{display:none}.exercise-suggestion{display:block;width:100%;padding:10px 12px;border:0;background:transparent;color:#e1ebe4;text-align:left;cursor:pointer}.exercise-suggestion:hover,.exercise-suggestion:focus{outline:0;background:#293830}.exercise-catalog-panel{max-width:760px}.exercise-catalog-add{display:grid;grid-template-columns:1fr auto;gap:12px;align-items:end}.exercise-catalog-add .validation{grid-column:1/-1}.exercise-catalog-add .button{height:42px}.exercise-catalog-panel h2{margin-top:0}
@media(max-width:900px){.exercise-row{grid-template-columns:repeat(3,minmax(0,1fr))}.exercise-row .remove-exercise{justify-self:start}}
@media(max-width:640px){.exercise-heading{align-items:center}.exercise-heading .heading-actions{flex-wrap:wrap}.exercise-heading .button{padding:9px 10px}.exercise-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;padding:12px}.exercise-row .field:nth-child(2){grid-column:1/-1}.exercise-row .remove-exercise{height:36px}.exercise-catalog-add{grid-template-columns:1fr}.exercise-catalog-add .validation{grid-column:auto}.exercise-catalog-add .button{justify-self:start}.nav-links{gap:8px;flex-wrap:wrap}.workout-card{padding:14px 11px}.workout-card th,.workout-card td{padding:9px 7px;font-size:.7rem}.workout-card-heading h3{font-size:.82rem}}
.food-picker{position:relative;min-width:0}.food-suggestions{max-height:280px;overflow-y:auto}.food-suggestion{text-align:left}.food-suggestion small{display:block;margin-top:2px;color:#91a098;font-size:.7rem}
.import-panel{margin-bottom:16px}.upload-form{display:grid;gap:9px}.upload-form>label{font-size:.8rem;color:#b9c5bf;font-weight:600}.upload-form input:not([type=file]){width:100%;min-width:0;color:var(--text);background:#121916;border:1px solid #34413b;border-radius:9px;padding:11px 12px}.upload-form .button{justify-self:start;margin-top:4px}.import-matches{margin-top:23px}.import-matches>.eyebrow{margin-bottom:9px}.nutrition-search-summary{max-width:78ch;line-height:1.55;color:#d1ddd5;font-size:.88rem}.import-match{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:13px 0;border-top:1px solid #ffffff0c}.import-match>div{display:grid;gap:3px;min-width:0}.import-match strong{font-size:.86rem}.import-match small{font-size:.73rem}.source-note{padding:11px 13px;border:1px solid #34483b;border-radius:10px;background:#1c2a21;color:#c4d8ca;font-size:.78rem}.source-note a{margin-left:6px;color:var(--green);text-decoration:underline;text-underline-offset:2px}.source-list{display:grid;gap:8px;margin:8px 0 18px;padding:0;list-style:none}.source-list li{display:grid;gap:2px;padding:9px 12px;border:1px solid #2d3d34;border-radius:9px;background:#151e19;font-size:.77rem}.source-list a{color:var(--green);text-decoration:underline;text-underline-offset:2px}.source-list small{color:var(--muted)}
@media(max-width:640px){.import-match{align-items:flex-start;flex-direction:column}.import-match .button{align-self:flex-start}}
.quick-actions{grid-template-columns:repeat(5,minmax(0,1fr))}.purple{color:var(--purple);background:#493d665c}.dot-purple{background:var(--purple)}
.sleep-history-heading{margin-top:34px}.sleep-history{display:grid;gap:12px}.sleep-card{padding:18px 21px}.sleep-card-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.sleep-card-heading h3{margin:0}.sleep-duration{margin:10px 0 7px;color:var(--muted);font-size:.82rem}.sleep-duration strong{color:var(--text);font-family:Manrope,sans-serif}.sleep-details,.sleep-notes{display:flex;flex-wrap:wrap;gap:8px 19px;color:var(--muted);font-size:.75rem}.sleep-notes{margin-top:8px;color:#bac9bf}.sleep-notes:empty{display:none}
@media(max-width:900px){.quick-actions{grid-template-columns:repeat(2,minmax(0,1fr))}}
.upload-form input[type=file]{color:var(--muted);font-size:.82rem}.upload-form input[type=file]::file-selector-button{margin-right:12px;padding:8px 13px;border:1px solid #34413b;border-radius:9px;background:#202a26;color:#b5c1ba;font:inherit;font-weight:700;cursor:pointer}.upload-form input[type=file]::file-selector-button:hover{border-color:#6e9e7d;color:var(--text)}.repeater-list{display:grid;gap:8px}.repeater-list:empty{display:none}.repeater-row{display:grid;gap:10px;align-items:center;padding:9px 10px;border:1px solid #33413a;border-radius:12px;background:#151d19}.nutrition-fact-columns,.nutrition-fact-row{grid-template-columns:minmax(0,1.7fr) minmax(0,1fr) 92px minmax(0,.8fr) 82px}.ingredient-row{grid-template-columns:minmax(0,1fr) minmax(0,1.3fr) 82px}.repeater-head{display:grid;gap:10px;padding:0 11px;margin-bottom:-10px;color:#91a098;font-size:.66rem;font-weight:600;letter-spacing:.07em;text-transform:uppercase}.repeater-field{display:grid;gap:4px;min-width:0}.repeater-field>span{display:none;color:#91a098;font-size:.7rem;font-weight:600}.repeater-row input:not([type=checkbox]),.repeater-row select,.add-row select{width:100%;min-width:0;height:38px;color:var(--text);background:#121916;border:1px solid #34413b;border-radius:9px;padding:0 11px;outline:none}.repeater-row input:not([type=checkbox]):focus,.repeater-row select:focus,.add-row select:focus{border-color:#87bd94;box-shadow:0 0 0 3px #70ad7c20}.repeater-row .button,.add-row .button{height:38px;padding:0 13px}.nutrient-less{display:flex;align-items:center;gap:7px;color:#b9c5bf;font-size:.78rem;white-space:nowrap;cursor:pointer}.nutrient-less input{margin:0;width:15px;height:15px;accent-color:#9bcba5}.add-row{display:flex;gap:8px}.add-row select{flex:1;max-width:340px}
@media(max-width:640px){.repeater-head{display:none}.repeater-field>span{display:block}.nutrition-fact-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:end}.nutrition-fact-row .nutrient-code{grid-column:1/-1}.nutrition-fact-row>.repeater-field:has(.nutrient-dv){order:3}.nutrition-fact-row .nutrient-less{order:4;height:38px}.nutrition-fact-row>.button{order:5;justify-self:end}.ingredient-row{grid-template-columns:minmax(0,1fr)}.ingredient-row .button{justify-self:start}}
