:root{--bg: #fff4f1;--card: #ffffff;--ink: #2b2230;--muted: #8d8190;--line: #f1e4e1;--accent: #ff6f61;--accent-2: #ff9a8b;--accent-ink: #ffffff;--pink: #ffe0e4;--lilac: #ece6ff;--mint: #dcf5ec;--peach: #ffe9d6;--danger: #d94b5c;--radius: 22px;--shadow: 0 6px 24px rgba(155, 80, 70, .08);--safe-b: env(safe-area-inset-bottom, 0px);--safe-t: env(safe-area-inset-top, 0px);font-family:ui-rounded,SF Pro Rounded,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,system-ui,sans-serif;color:var(--ink);background:var(--bg);-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent}*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:var(--bg)}body{overscroll-behavior-y:none}button{font:inherit;color:inherit;border:0;background:none;cursor:pointer;padding:0}button:disabled{opacity:.45;cursor:default}a{color:inherit;text-decoration:none}h1,h2,h3,p{margin:0}img{display:block;max-width:100%}#root{max-width:520px;margin:0 auto;min-height:100vh}.app.with-tabs{padding-bottom:calc(84px + var(--safe-b))}.screen{padding:calc(12px + var(--safe-t)) 18px calc(110px + var(--safe-b));display:flex;flex-direction:column;gap:14px;animation:fade-in .25s ease}.app.with-tabs .screen{padding-bottom:24px}.screen.center{align-items:center;justify-content:center;text-align:center;min-height:100vh}@keyframes fade-in{0%{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}.display{font-size:30px;font-weight:800;letter-spacing:-.02em;line-height:1.1}.display.small{font-size:24px}.lead{color:var(--muted);font-size:16px;line-height:1.45}.muted{color:var(--muted)}.small{font-size:13px}.section{font-size:18px;font-weight:800;margin-top:8px}.header{display:grid;grid-template-columns:44px 1fr auto;align-items:center;gap:8px;min-height:44px}.header h1{font-size:20px;font-weight:800;text-align:center}.header-right{display:flex;gap:4px;min-width:44px;justify-content:flex-end}.icon-btn{width:44px;height:44px;border-radius:14px;display:grid;place-items:center}.icon-btn:active{background:var(--pink)}.icon-btn.accent{color:var(--accent)}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:0 18px;border-radius:16px;background:var(--card);box-shadow:var(--shadow);font-weight:700;font-size:16px;transition:transform .12s}.btn:active:not(:disabled){transform:scale(.97)}.btn.primary{background:linear-gradient(135deg,var(--accent-2),var(--accent));color:var(--accent-ink);box-shadow:0 8px 22px #ff6f6159}.btn.big{min-height:58px;font-size:18px;border-radius:20px;width:100%}.btn.ghost{background:transparent;box-shadow:none}.btn.danger{color:var(--danger)}.btn.google{background:#fff;color:var(--ink);box-shadow:var(--shadow)}.round{width:52px;height:52px;border-radius:50%;background:var(--pink);color:var(--accent);display:grid;place-items:center;flex:none}.round:active{transform:scale(.92)}.row-buttons{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}.bottom-bar{position:fixed;left:0;right:0;bottom:0;padding:12px 18px calc(12px + var(--safe-b));background:linear-gradient(transparent,var(--bg) 30%);max-width:520px;margin:0 auto;z-index:5}.input{width:100%;font:inherit;font-size:16px;padding:14px 16px;border-radius:16px;border:2px solid transparent;background:var(--card);box-shadow:var(--shadow);color:var(--ink);outline:none}.input:focus{border-color:var(--accent-2)}textarea.input{resize:vertical;line-height:1.45}.title-input{font-size:18px;font-weight:700}.field{display:flex;flex-direction:column;gap:8px}.field>span{font-weight:700;font-size:14px;color:var(--muted)}.toggle{display:flex;align-items:center;gap:10px;font-weight:600}.toggle input{width:22px;height:22px;accent-color:var(--accent)}.segmented{display:flex;background:var(--card);border-radius:14px;padding:4px;box-shadow:var(--shadow)}.segmented button{flex:1;min-height:40px;border-radius:10px;font-weight:700}.segmented button.on{background:var(--accent);color:#fff}.chips{display:flex;gap:8px;flex-wrap:wrap}.chips.scroll{flex-wrap:nowrap;overflow-x:auto;margin:0 -18px;padding:0 18px;scrollbar-width:none}.chips.scroll::-webkit-scrollbar{display:none}.chip{white-space:nowrap;padding:9px 14px;border-radius:999px;background:var(--card);font-weight:600;font-size:14px;box-shadow:var(--shadow)}.chip.on{background:var(--ink);color:#fff}.tags{display:flex;flex-wrap:wrap;gap:6px}.tag{font-size:13px;padding:5px 10px;border-radius:999px;background:var(--pink);color:#8a3b33;font-weight:600}.tag.strong{background:var(--accent);color:#fff}.tag.ghost{background:transparent;border:1px dashed var(--accent-2)}.card{background:var(--card);border-radius:var(--radius);padding:16px;box-shadow:var(--shadow)}.stack{display:flex;flex-direction:column;gap:12px}.stack.gap{margin-top:6px}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:12px}.list{display:flex;flex-direction:column;background:var(--card);border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden}.row{display:flex;align-items:center;gap:12px;padding:12px 14px;min-height:60px;text-align:left;width:100%;border-bottom:1px solid var(--line)}.row:last-child{border-bottom:0}.row.rest b{color:var(--muted);font-weight:600}.row-text{flex:1;display:flex;flex-direction:column;gap:2px;min-width:0;text-align:left}.row-text b{font-weight:700;overflow:hidden;text-overflow:ellipsis}.row-text small{color:var(--muted);font-size:13px}.row-action{color:var(--accent)}.ex-row .media{width:56px;height:56px;border-radius:14px;flex:none}.empty{text-align:center;color:var(--muted);padding:18px;line-height:1.45}.note{display:flex;gap:12px;align-items:center;padding:14px 16px;border-radius:18px;background:var(--lilac);text-align:left;width:100%;line-height:1.4}.note span{flex:1;display:flex;flex-direction:column;gap:2px}.note small{color:var(--muted)}.note.warn{background:#ffe1e1;color:#8a2b35}.note.resume{background:var(--mint);font-weight:700}.note.install{background:var(--peach);font-size:14px}.note.add-own,.note.wish-cta{background:var(--card);box-shadow:var(--shadow);color:var(--ink)}.note.add-own svg,.note.wish-cta svg:first-child{color:var(--accent)}.media{position:relative;width:100%;aspect-ratio:1;border-radius:18px;overflow:hidden;background:var(--pink)}.media.big{aspect-ratio:4 / 3;border-radius:26px}.media img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;mix-blend-mode:multiply}.media img.frame2{animation:frames 1.6s steps(1) infinite}@keyframes frames{0%{opacity:0}50%{opacity:1}}.media img.breathe{animation:breathe 3s ease-in-out infinite}@keyframes breathe{50%{transform:scale(1.05)}}.media.placeholder{display:grid;place-items:center;color:var(--accent)}.media .pulse{animation:pulse 1.8s ease-in-out infinite;display:grid}@keyframes pulse{50%{transform:scale(1.12) rotate(-6deg)}}.tabbar{position:fixed;bottom:0;left:0;right:0;max-width:520px;margin:0 auto;display:grid;grid-template-columns:repeat(4,1fr);background:#ffffffeb;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);padding:8px 8px calc(8px + var(--safe-b));border-radius:24px 24px 0 0;box-shadow:0 -4px 24px #9b504614;z-index:10}.tabbar a{display:flex;flex-direction:column;align-items:center;gap:3px;font-size:11px;font-weight:700;color:var(--muted);padding:6px 0;border-radius:14px}.tabbar a.on{color:var(--accent)}.login{min-height:100vh;display:flex;flex-direction:column;justify-content:center;gap:18px;padding:24px 24px calc(24px + var(--safe-b));text-align:center;align-items:center}.login-art{animation:float 4s ease-in-out infinite;margin-bottom:8px}@keyframes float{50%{transform:translateY(-8px) rotate(-3deg)}}.start-hero{display:flex;flex-direction:column;gap:10px;align-items:flex-start;margin:18px 0 10px}.choice{display:flex;align-items:center;gap:14px;text-align:left;padding:18px;border-radius:var(--radius);background:var(--card);box-shadow:var(--shadow)}.choice.auto{background:linear-gradient(135deg,#fff,var(--pink));outline:2px solid var(--accent-2)}.choice-icon{width:52px;height:52px;border-radius:16px;display:grid;place-items:center;background:var(--accent);color:#fff;flex:none}.choice:not(.auto) .choice-icon{background:var(--lilac);color:#6b52d9}.choice-text{flex:1;display:flex;flex-direction:column;gap:4px}.choice-text b{font-size:18px}.choice-text span{color:var(--muted);font-size:14px;line-height:1.4}.quiz .header{grid-template-columns:44px 1fr 44px}.progress{height:8px;background:var(--pink);border-radius:99px;overflow:hidden;width:100%}.progress span{display:block;height:100%;background:var(--accent);border-radius:99px;transition:width .3s ease}.q-title{font-size:26px;font-weight:800;letter-spacing:-.01em;margin-top:8px}.options{display:flex;flex-direction:column;gap:10px}.option{display:flex;align-items:center;gap:12px;padding:16px;border-radius:18px;background:var(--card);box-shadow:var(--shadow);text-align:left;border:2px solid transparent;transition:border-color .15s,transform .12s}.option:active{transform:scale(.98)}.option.on{border-color:var(--accent);background:#fff8f6}.option .emoji{font-size:26px}.option-text{flex:1;display:flex;flex-direction:column;gap:2px}.option-text small{color:var(--muted)}.tick{width:26px;height:26px;border-radius:50%;border:2px solid var(--line);display:grid;place-items:center;color:#fff;flex:none}.tick.square{border-radius:8px}.option.on .tick{background:var(--accent);border-color:var(--accent)}.big-picks{display:flex;gap:10px;flex-wrap:wrap}.big-pick{flex:1;min-width:56px;height:72px;border-radius:20px;background:var(--card);box-shadow:var(--shadow);font-size:26px;font-weight:800;display:flex;flex-direction:column;align-items:center;justify-content:center;border:2px solid transparent}.big-pick.wide{height:96px}.big-pick small{font-size:13px;color:var(--muted);font-weight:600}.big-pick.on{border-color:var(--accent);color:var(--accent);background:#fff8f6}.building{display:flex;gap:10px;margin-bottom:18px}.building span{width:18px;height:18px;border-radius:50%;background:var(--accent);animation:bounce .9s ease-in-out infinite}.building span:nth-child(2){animation-delay:.15s;background:var(--accent-2)}.building span:nth-child(3){animation-delay:.3s;background:#b9a7ff}@keyframes bounce{50%{transform:translateY(-16px)}}.week-summary{display:flex;flex-direction:column;gap:8px}.week-row{display:flex;gap:12px;align-items:center;padding:12px 14px;border-radius:16px;background:var(--card);box-shadow:var(--shadow);font-weight:600}.week-row .day{width:34px;height:34px;border-radius:12px;display:grid;place-items:center;background:var(--accent);color:#fff;font-size:13px}.week-row.rest{opacity:.6;box-shadow:none;background:transparent}.week-row.rest .day{background:var(--line);color:var(--muted)}.hello{display:flex;justify-content:space-between;align-items:flex-end;margin-top:6px}.week-strip{display:grid;grid-template-columns:repeat(7,1fr);gap:6px}.wday{display:flex;flex-direction:column;align-items:center;gap:6px;padding:10px 0 8px;border-radius:16px;background:var(--card);font-size:12px;color:var(--muted);font-weight:700}.wday b{font-size:16px;color:var(--ink);height:20px;display:grid;place-items:center}.wday i{width:6px;height:6px;border-radius:50%;background:transparent}.wday.planned i{background:var(--accent-2)}.wday.today{background:var(--ink);color:#fff}.wday.today b{color:#fff}.wday.done b{color:#fff;background:#4cc38a;width:24px;height:24px;border-radius:50%}.workout-card{background:var(--card);border-radius:28px;padding:16px;box-shadow:var(--shadow);display:flex;flex-direction:column;gap:10px}.workout-card h3{font-size:22px;font-weight:800}.thumbs{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.thumbs .media{border-radius:16px}.rest-card{background:linear-gradient(160deg,#fff,var(--mint));border-radius:28px;padding:22px;display:flex;flex-direction:column;gap:10px;align-items:flex-start}.rest-emoji{font-size:40px}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.stats.big{grid-template-columns:1fr 1fr;width:100%}.stats div{background:var(--card);border-radius:18px;padding:14px 10px;display:flex;flex-direction:column;gap:4px;align-items:center;text-align:center;box-shadow:var(--shadow)}.stats b{font-size:22px;font-weight:800;color:var(--accent)}.stats span{font-size:12px;color:var(--muted)}.search{padding-left:16px}.ex-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.ex-card{position:relative;background:var(--card);border-radius:22px;padding:8px 8px 12px;box-shadow:var(--shadow);display:flex;flex-direction:column;gap:6px;text-align:left;border:2px solid transparent}.ex-card b{font-size:14px;line-height:1.25;padding:0 4px}.ex-card small{font-size:12px;color:var(--muted);padding:0 4px}.ex-card.on{border-color:var(--accent)}.pick-tick{position:absolute;top:14px;right:14px;width:28px;height:28px;border-radius:50%;background:#ffffffe6;display:grid;place-items:center;color:#fff}.ex-card.on .pick-tick{background:var(--accent)}.steps{margin:0;padding-left:22px;display:flex;flex-direction:column;gap:8px;line-height:1.45}.chart{width:100%;height:auto}.stepper{display:flex;flex-direction:column;gap:8px;align-items:center;background:var(--bg);border-radius:18px;padding:12px 8px}.card .stepper{background:transparent;padding:4px 0}.stepper-label{font-size:13px;color:var(--muted);font-weight:700;text-align:center}.stepper-row{display:flex;align-items:center;gap:10px}.stepper .round{width:42px;height:42px}.stepper-value{min-width:64px;text-align:center;font-size:24px;font-weight:800}.stepper-value small{font-size:13px;color:var(--muted)}.sheet-backdrop{position:fixed;inset:0;background:#2b223059;display:flex;align-items:flex-end;justify-content:center;z-index:30;animation:fade .2s}@keyframes fade{0%{opacity:0}}.sheet{width:100%;max-width:520px;max-height:88vh;overflow:auto;background:var(--bg);border-radius:28px 28px 0 0;padding:10px 18px calc(18px + var(--safe-b));display:flex;flex-direction:column;gap:14px;animation:up .25s cubic-bezier(.2,.9,.3,1.1)}@keyframes up{0%{transform:translateY(100%)}}.sheet-handle{width:40px;height:5px;border-radius:9px;background:var(--line);margin:0 auto 4px}.sheet-title{font-size:20px;font-weight:800}.player{min-height:100vh;padding:calc(10px + var(--safe-t)) 18px calc(20px + var(--safe-b));display:flex;flex-direction:column;gap:14px}.player-top{display:grid;grid-template-columns:44px 1fr auto;align-items:center;gap:10px}.clock{font-variant-numeric:tabular-nums;font-weight:700;color:var(--muted)}.work{display:flex;flex-direction:column;gap:14px}.work-head h1{font-size:26px;font-weight:800;margin-top:2px}.set-dots{display:flex;align-items:center;gap:6px;margin-top:8px;flex-wrap:wrap}.set-dots i{width:22px;height:8px;border-radius:9px;background:var(--line)}.set-dots i.done{background:#4cc38a}.set-dots i.cur{background:var(--accent)}.set-dots .mini{width:26px;height:26px;border-radius:9px;background:var(--card);font-weight:800;color:var(--muted)}.set-dots .muted{margin-left:4px}.values{display:flex;flex-direction:column;gap:10px;background:var(--card);border-radius:26px;padding:14px;box-shadow:var(--shadow)}.value{display:flex;align-items:center;justify-content:space-between;gap:10px}.big-num{font-size:52px;font-weight:800;font-variant-numeric:tabular-nums;letter-spacing:-.02em;text-align:center}.big-num small,.mid-num small{font-size:16px;color:var(--muted);font-weight:700}.mid-num{font-size:30px;font-weight:800}.value.small .round{width:44px;height:44px}.player-actions{display:grid;grid-template-columns:auto 1fr;gap:10px;align-items:center}.technique{background:var(--card);border-radius:18px;padding:12px 16px}.technique summary{font-weight:700;cursor:pointer}.technique .steps{margin-top:10px}.rest-phase{display:flex;flex-direction:column;align-items:center;gap:18px;padding-top:4vh}.ring{--p: 100;width:240px;height:240px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(var(--accent) calc(var(--p) * 1%),var(--pink) 0);transition:background .25s linear}.ring span{width:200px;height:200px;border-radius:50%;background:var(--bg);display:grid;place-items:center;font-size:56px;font-weight:800;font-variant-numeric:tabular-nums}.up-next{width:100%;display:flex;flex-direction:column;gap:8px}.up-next .row{background:var(--card);border-radius:20px}.up-next .media{width:56px;height:56px;border-radius:14px;flex:none}.done{gap:16px}.medal{font-size:84px;animation:pop .6s cubic-bezier(.2,1.6,.4,1)}@keyframes pop{0%{transform:scale(.2) rotate(-30deg);opacity:0}}.confetti{position:fixed;inset:0;width:100vw;height:100vh;pointer-events:none;z-index:20}.profile-card{display:flex;gap:14px;align-items:center;background:var(--card);border-radius:var(--radius);padding:16px;box-shadow:var(--shadow)}.profile-card>div{display:flex;flex-direction:column;gap:2px}.avatar{width:56px;height:56px;border-radius:50%;background:var(--accent);color:#fff;display:grid;place-items:center;font-size:24px;font-weight:800;object-fit:cover}.wish-text{min-height:150px}.photo-hint{display:flex;gap:12px;align-items:center;padding:14px 16px;border-radius:18px;background:var(--peach);color:#7a4a2a}.photo-hint>div{display:flex;flex-direction:column;gap:3px}.photo-hint small{color:#9b6b4b;line-height:1.4}.photos{display:grid;grid-template-columns:repeat(auto-fill,minmax(92px,1fr));gap:10px}.photo{position:relative;aspect-ratio:1;border-radius:18px;overflow:hidden;background:var(--card);box-shadow:var(--shadow)}.photo img{width:100%;height:100%;object-fit:cover}.photo .icon-btn{position:absolute;top:4px;right:4px;width:30px;height:30px;border-radius:50%;background:#ffffffe6}.photo.add{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;color:var(--accent);border:2px dashed var(--accent-2);box-shadow:none;background:transparent}.history summary{list-style:none;display:flex;width:100%}.history summary::-webkit-details-marker{display:none}.row.history{flex-direction:column;align-items:stretch}.history ul{margin:8px 0 0;padding-left:18px;color:var(--muted);font-size:14px;line-height:1.5}.splash,.loading{min-height:60vh;display:grid;place-items:center}.splash{min-height:100vh}.spinner{width:36px;height:36px;border-radius:50%;border:4px solid var(--pink);border-top-color:var(--accent);animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.toast{position:fixed;left:50%;bottom:calc(100px + var(--safe-b));transform:translate(-50%);background:var(--ink);color:#fff;padding:12px 18px;border-radius:16px;font-weight:600;z-index:40;animation:fade .2s;max-width:90vw;text-align:center}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}.player .media.big{aspect-ratio:auto;height:min(34vh,300px)}.photo-hint svg,.note svg{flex:none}
