:root{--bg: #fafafc;--text: #000000;--muted: #555556;--subtle: #878788;--accent: #2979bf;--accent-soft: #e1ebf5;--surface: #ffffff;--surface-subtle: #e6e6e8;--border: #d7d7d9;--ink: #000000;--ink-text: #fdfdfe;--ink-muted: #9d9d9d;--radius: 16px;--pill: 35px}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-family:Poppins,sans-serif;font-size:15px;line-height:1.5;-webkit-font-smoothing:antialiased}button,input{font:inherit;color:inherit}button{cursor:pointer}h1,h2,h3{font-family:Prata,serif;font-weight:400;margin:0;line-height:1.2}h1{font-size:28px}h2{font-size:19px;margin-bottom:4px}h3{font-size:18px}p{margin:6px 0 0}.shell{max-width:520px;margin:0 auto;padding:0 16px 48px}.top{display:flex;align-items:center;gap:12px;height:64px;position:sticky;top:0;background:var(--bg);z-index:2}.logo{height:26px}.top-title{font-weight:600;margin-left:auto}.back{border:0;background:none;padding:8px 0;font-weight:600}.stack{display:flex;flex-direction:column;gap:18px}.muted{color:var(--muted)}.small{font-size:13px}.label{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--subtle)}.label.light{color:var(--ink-muted)}.field{display:flex;flex-direction:column;gap:8px}input[type=number]{width:100%;height:50px;padding:0 16px;border:1px solid var(--border);border-radius:12px;background:var(--surface)}input[type=number]:focus,button:focus-visible{outline:2px solid var(--accent);outline-offset:1px}.pair{display:grid;grid-template-columns:1fr 1fr;gap:10px}.unit{position:relative}.unit span{position:absolute;right:16px;top:50%;transform:translateY(-50%);color:var(--subtle);pointer-events:none}.units{display:flex;justify-content:flex-end;margin-bottom:-8px}.choice{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:8px}.choice.stacked{grid-auto-flow:row}.choice button{min-height:50px;padding:10px 16px;border:1px solid var(--border);border-radius:12px;background:var(--surface);text-align:left}.choice:not(.stacked) button{text-align:center}.choice button.on{border-color:var(--accent);background:var(--accent-soft);font-weight:600}.choice.small button{min-height:34px;padding:4px 12px;font-size:13px;border-radius:var(--pill)}.chips{display:flex;flex-wrap:wrap;gap:8px}.chip{padding:8px 16px;border:1px solid var(--border);border-radius:var(--pill);background:var(--surface)}.chip.on{border-color:var(--ink);background:var(--ink);color:var(--ink-text)}.toggle{display:flex;align-items:center;gap:10px}.toggle input{width:20px;height:20px;accent-color:var(--accent)}.btn{height:52px;border:0;border-radius:var(--pill);background:var(--ink);color:var(--ink-text);font-weight:600;width:100%}.btn.ghost{background:transparent;color:var(--text);border:1px solid var(--border)}.link{border:0;background:none;color:var(--accent);font-weight:600;padding:4px 0}.link.light{color:#8fbfe8}.row{display:grid;grid-template-columns:1fr 1fr;gap:10px}.targets{background:var(--ink);color:var(--ink-text);border-radius:var(--radius);padding:20px}.targets-head{display:flex;justify-content:space-between;align-items:flex-start}.big{font-family:Prata,serif;font-size:38px;line-height:1.1}.big small{font-family:Poppins,sans-serif;font-size:14px;color:var(--ink-muted)}.macros,.detail-macros{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:16px}.detail-macros{grid-template-columns:repeat(4,1fr);margin-top:0}.macro{display:flex;flex-direction:column;padding:10px 12px;border-radius:12px;background:#121212}.detail-macros .macro{background:var(--accent-soft)}.macro b{font-size:18px}.macro span{font-size:12px;color:var(--ink-muted)}.detail-macros .macro span{color:var(--muted)}.override{display:flex;flex-direction:column;gap:8px;margin-top:16px}.override label{display:flex;flex-direction:column;gap:6px;font-size:13px;color:var(--ink-muted)}.override input{background:#121212;border-color:#2e2e2e;color:var(--ink-text)}.days{display:grid;grid-template-columns:repeat(7,1fr);gap:4px}.days button{height:40px;border:0;border-radius:var(--pill);background:transparent;font-size:13px;font-weight:500;color:var(--muted)}.days button.on{background:var(--accent);color:#fff;font-weight:600}.day-total{display:flex;justify-content:space-between;flex-wrap:wrap;gap:4px 12px;font-size:13px;color:var(--muted);padding:0 4px}.day-total b{color:var(--text)}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:18px}.meal{padding:0;overflow:hidden}.meal-main{display:flex;flex-direction:column;align-items:flex-start;gap:4px;width:100%;padding:18px 18px 14px;border:0;background:none;text-align:left}.meal-actions{display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid var(--border)}.meal-actions button{height:44px;border:0;background:none;font-size:13px;font-weight:500}.meal-actions button+button{border-left:1px solid var(--border)}.meal-actions button.fav{color:var(--accent);font-weight:600}.stack>.meal-actions{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);overflow:hidden}.draft{display:inline-block;padding:1px 8px;border-radius:var(--pill);background:#fff3d6;color:#8a5a00;font-size:11px;font-weight:600;letter-spacing:.02em;text-transform:none;margin-bottom:6px}.empty{border-style:dashed}.ingredients,.method,.shop,.tips ul{margin:10px 0 0;padding:0}.ingredients li,.shop li{display:flex;justify-content:space-between;gap:12px;list-style:none;padding:10px 0;border-bottom:1px solid var(--surface-subtle)}.ingredients li:last-child,.shop li:last-child{border-bottom:0}.ingredients li span{text-align:right}.method{padding-left:20px}.method li,.tips li{margin-bottom:8px}.tips ul{padding-left:18px}.shop label{display:flex;align-items:center;gap:10px}.shop input{width:20px;height:20px;accent-color:var(--accent)}.shop .amount{font-weight:600;white-space:nowrap}.shop li.done span{color:var(--subtle);text-decoration:line-through}.stepper{display:flex;align-items:center;gap:18px}.stepper button{width:44px;height:44px;border:1px solid var(--border);border-radius:50%;background:var(--surface);font-size:20px}.stepper b{font-size:20px;min-width:20px;text-align:center}.part{font-family:Poppins,sans-serif;font-size:14px;font-weight:600;margin-top:14px}.shell{padding-bottom:96px}.tabs{position:fixed;left:50%;bottom:16px;transform:translate(-50%);display:grid;grid-template-columns:1fr 1fr;gap:4px;width:min(320px,calc(100% - 32px));padding:4px;border-radius:var(--pill);background:var(--ink);box-shadow:0 6px 24px #0000002e;z-index:5}.tabs button{height:44px;border:0;border-radius:var(--pill);background:transparent;color:var(--ink-muted);font-weight:600}.tabs button.on{background:var(--accent);color:#fff}.weeks{display:flex;align-items:center;justify-content:space-between;margin-top:14px;font-size:14px;color:var(--ink-muted)}.weeks button{font-size:20px;padding:4px 10px}.weeks button:disabled{opacity:.3}.exercise-card{display:flex;flex-direction:column;align-items:flex-start;gap:4px;width:100%;text-align:left}.exercise-card.fixed{border-style:dashed}.video{position:relative;width:100%;aspect-ratio:9 / 16;max-height:70vh;border-radius:var(--radius);overflow:hidden;background:var(--ink)}.video iframe{position:absolute;inset:0;width:100%;height:100%;border:0}.sets{display:flex;flex-direction:column;gap:8px;margin:12px 0 14px}.set{display:grid;grid-template-columns:1.3fr 1fr 1fr;gap:8px;align-items:center}.set.head{font-size:12px;font-weight:600;color:var(--subtle);text-transform:uppercase;letter-spacing:.06em}.set>span{display:flex;flex-direction:column;line-height:1.2}.set small{font-size:11px}.set input{height:44px;text-align:center}.btn.rest{margin-bottom:10px}.row-between{display:flex;justify-content:space-between;align-items:center}.swap-list,.history{margin:8px 0 0;padding:0;list-style:none}.swap-list button{display:flex;justify-content:space-between;width:100%;padding:12px 0;border:0;border-bottom:1px solid var(--surface-subtle);background:none;text-align:left}.history li{display:flex;justify-content:space-between;padding:8px 0;border-bottom:1px solid var(--surface-subtle);font-size:14px}input.text{width:100%;height:50px;padding:0 16px;border:1px solid var(--border);border-radius:12px;background:var(--surface)}input.code{font-size:24px;letter-spacing:.4em;text-align:center}.error{color:#b3261e;font-size:14px}.viewing{position:sticky;top:0;z-index:3;display:flex;align-items:center;gap:12px;padding:10px 16px;background:var(--ink);color:var(--ink-text);font-size:14px;font-weight:600}.viewing .error{color:#ffb4ab}.signout{max-width:520px;margin:-80px auto 0;padding:0 16px 110px}.tabs{grid-template-columns:1fr 1fr 1fr;width:min(380px,calc(100% - 32px))}textarea{width:100%;padding:12px 16px;border:1px solid var(--border);border-radius:12px;background:var(--surface);font:inherit;resize:vertical}.rating{display:grid;grid-template-columns:repeat(5,1fr);gap:8px}.rating button{height:48px;border:1px solid var(--border);border-radius:12px;background:var(--surface);font-weight:600}.rating button.on{border-color:var(--accent);background:var(--accent);color:#fff}.photo-picks,.photos{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.photo-pick{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;aspect-ratio:3 / 4;border:1px dashed var(--border-strong, #b4b4b5);border-radius:12px;background:var(--surface);overflow:hidden;cursor:pointer}.photo-pick span{font-size:28px;color:var(--subtle)}.photo-pick small{position:absolute;bottom:6px;padding:2px 8px;border-radius:var(--pill);background:#ffffffe6;font-size:12px;font-weight:600}.photo-pick img,.photos img{width:100%;height:100%;object-fit:cover}.photo-pick input{position:absolute;inset:0;opacity:0;cursor:pointer}.photos a{aspect-ratio:3 / 4;border-radius:10px;overflow:hidden;background:var(--surface-subtle)}.checkin{display:flex;flex-direction:column;gap:10px}.scores{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}.scores div{display:flex;flex-direction:column;align-items:center;padding:8px 4px;border-radius:10px;background:var(--accent-soft)}.scores b{font-size:18px}.scores span{font-size:11px;color:var(--muted)}.reply{padding:12px 14px;border-left:3px solid var(--accent);border-radius:8px;background:var(--accent-soft)}.stack.tight{gap:10px}.chart{width:100%;height:auto;margin:8px 0 4px}.light-text{color:var(--ink-muted);margin:6px 0 14px}.btn.light-btn{background:var(--accent);color:#fff}.tabs{grid-template-columns:repeat(4,1fr);width:min(420px,calc(100% - 24px))}.tabs button{position:relative;font-size:14px}.dot{position:absolute;top:4px;right:8px;min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:#e5484d;color:#fff;font-size:11px;line-height:18px}.draft.blue{background:var(--accent-soft);color:var(--accent);margin-left:6px}.chat{padding-bottom:170px}.chat-empty{margin-top:24px;text-align:center}.thread{display:flex;flex-direction:column;gap:8px}.bubble{max-width:80%;padding:10px 14px;border-radius:18px;line-height:1.4;white-space:pre-wrap;word-wrap:break-word}.bubble p{margin:0}.bubble small{display:block;margin-top:4px;font-size:11px;opacity:.7}.bubble img{display:block;max-width:100%;max-height:320px;margin-bottom:6px;border-radius:12px}.bubble.mine{align-self:flex-end;background:var(--accent);color:#fff;border-bottom-right-radius:6px}.bubble.theirs{align-self:flex-start;background:var(--surface);border:1px solid var(--border);border-bottom-left-radius:6px}.composer{position:fixed;left:50%;bottom:80px;transform:translate(-50%);display:flex;align-items:flex-end;gap:8px;width:min(520px,100%);padding:10px 16px;background:var(--bg);z-index:4}.composer textarea{flex:1;min-height:44px;max-height:140px;border-radius:22px;padding:11px 16px}.attach{position:relative;display:flex;align-items:center;justify-content:center;flex:0 0 44px;height:44px;border:1px solid var(--border);border-radius:50%;background:var(--surface);font-size:22px;cursor:pointer}.attach.on{background:var(--accent);border-color:var(--accent);color:#fff;font-size:16px}.attach input{position:absolute;inset:0;opacity:0;cursor:pointer}.send{flex:0 0 auto;height:44px;padding:0 18px;border:0;border-radius:22px;background:var(--ink);color:var(--ink-text);font-weight:600}.send:disabled{opacity:.4}
