:root{font-family:Inter,"Pretendard","Noto Sans KR",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#20342e;background:#f5f6f3;font-synthesis:none;--green:#183d35;--accent:#ddf796;--muted:#6c7a73;--line:#e2e7df;--red:#b63f37}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer;min-height:46px;border:1px solid var(--line);border-radius:10px;background:white;color:var(--green);padding:10px 16px;font-weight:650}button:hover{background:#edf3e6}button:disabled{opacity:.5;cursor:wait}button.primary{background:var(--green);border-color:var(--green);color:white}button.accent{background:var(--accent);border-color:var(--accent)}button.danger{color:var(--red)}button.ghost{background:transparent;border-color:transparent}button.icon{padding:8px 12px}a{color:inherit}input,select,textarea{width:100%;min-height:46px;border:1px solid #cbd5ca;border-radius:9px;background:#fff;padding:10px 12px;color:inherit}input:focus,select:focus,textarea:focus{outline:2px solid #618d65;outline-offset:2px}input[type=checkbox]{width:22px;min-height:22px;accent-color:var(--green)}textarea{resize:vertical;min-height:80px}label{display:block;font-size:14px;font-weight:600;margin-bottom:7px}h1,h2,h3,p{margin-top:0}h1{font-size:34px;letter-spacing:-1.4px;margin-bottom:8px}h2{font-size:23px;letter-spacing:-.6px}h3{font-size:18px;margin-bottom:10px}p{line-height:1.65}small,.small{font-size:13px;color:var(--muted)}.muted{color:var(--muted)}.eyebrow{font-size:13px;letter-spacing:1.4px;font-weight:700;color:#678163;margin-bottom:12px}.sidebar{position:fixed;inset:0 auto 0 0;width:238px;background:#fff;border-right:1px solid var(--line);padding:36px 22px;display:flex;flex-direction:column}.brand{font-size:24px;font-weight:850;display:flex;align-items:center;gap:8px;text-decoration:none;letter-spacing:-1px}.brand-icon{display:inline-grid;place-items:center;background:var(--green);color:var(--accent);width:36px;height:36px;border-radius:10px;letter-spacing:2px}.beta{font-size:9px;letter-spacing:1px;margin-left:auto;color:var(--muted)}.side-label{font-size:12px;color:#8c958f;margin:48px 12px 16px}nav{display:flex;flex-direction:column;gap:8px}nav a{display:flex;align-items:center;gap:13px;text-decoration:none;padding:14px;border-radius:10px;color:#67776b;font-size:15px;font-weight:600}nav a.active{color:var(--green);background:#edf3e5}nav svg{width:21px;height:21px;stroke:currentColor;fill:none;stroke-width:1.7}.side-bottom{margin-top:auto;font-size:12px;color:#89948c;padding:12px}.side-bottom p{margin-top:8px}.shell{margin-left:238px}.topbar{height:76px;padding:0 42px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;font-size:11px;letter-spacing:1.3px;color:#89918a}.topbar #save-status{letter-spacing:0;font-size:13px}.topbar .failed{color:var(--red)}main{max-width:1140px;margin:auto;padding:36px 42px 80px}.page-head{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:30px}.page-head p{margin-bottom:6px}.date-badge{padding:11px 15px;background:white;border:1px solid var(--line);border-radius:8px;font-size:14px;white-space:nowrap}.grid{display:grid;grid-template-columns:1.55fr 1fr;gap:22px}.hero{background:var(--green);color:white;border-radius:20px;padding:32px;position:relative;overflow:hidden;min-height:290px}.hero h2{font-size:32px;line-height:1.4;margin-top:22px;margin-bottom:12px}.hero p{color:#b8cec3;font-size:15px;max-width:380px}.hero .pill{background:#33564a;color:#d9ecbf;border:0}.hero button{margin-top:6px}.hero .hero-num{position:absolute;right:24px;bottom:18px;font-size:115px;font-weight:850;color:#295247;line-height:1;pointer-events:none}.pill{display:inline-block;padding:5px 9px;border-radius:6px;font-size:11px;letter-spacing:1px;background:#edf3e6;color:#536b3c}.card{background:white;border:1px solid var(--line);border-radius:16px;padding:23px;margin-bottom:20px}.card.flat{margin:0}.card-head,.row{display:flex;align-items:center;justify-content:space-between;gap:12px}.row.wrap{flex-wrap:wrap}.row.start{justify-content:flex-start}.section-head{margin:30px 0 16px;display:flex;justify-content:space-between;align-items:center}.section-head h2{margin:0;font-size:20px}.metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:22px 0}.metric{background:white;border:1px solid var(--line);border-radius:13px;padding:18px}.metric strong{display:block;font-size:28px;margin-top:10px;letter-spacing:-1px}.metric strong span{font-size:14px;color:var(--muted);margin-left:5px}.week{display:grid;grid-template-columns:repeat(7,1fr);gap:5px;text-align:center;margin-top:25px}.week div{font-size:12px;color:var(--muted)}.week b{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;margin:10px auto;color:var(--green);font-size:14px;background:#f4f6f0}.week b.done{background:var(--green);color:white}.week b.today{outline:2px solid #bfd780;outline-offset:3px}.empty{text-align:center;padding:32px 12px;color:var(--muted)}.empty h3{color:var(--green)}.empty-symbol{width:46px;height:46px;border:1px solid var(--line);border-radius:12px;display:grid;place-items:center;font-size:24px;margin:0 auto 15px}.list-row{padding:16px 0;border-bottom:1px solid var(--line);display:flex;gap:14px;align-items:center}.list-row:last-child{border-bottom:0}.thumb{width:55px;height:55px;object-fit:cover;border-radius:12px;background:#eef2e8;display:grid;place-items:center;color:#68824d;font-weight:750;flex-shrink:0}.grow{flex:1;min-width:0}.grow h3{margin:0 0 5px;overflow-wrap:anywhere}.grow p{margin:0}.toolbar{display:grid;grid-template-columns:2fr 1fr 1fr;gap:12px;margin-bottom:22px}.exercise-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.exercise-grid .card{margin:0}.chips{display:flex;gap:6px;flex-wrap:wrap;margin-top:10px}.chip{font-size:12px;padding:5px 8px;border-radius:5px;background:#f0f3ec;color:#617158}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.field{margin-bottom:18px}.wide{grid-column:1/-1}.check-label{display:flex;align-items:center;gap:9px;font-weight:400}.photo-preview{max-width:100%;max-height:180px;border-radius:12px;display:block;margin-bottom:12px}.note{padding:13px 16px;background:#f2f5ec;border-radius:9px;font-size:14px;line-height:1.6;color:#60714e}.set-head,.set-row{display:grid;grid-template-columns:32px minmax(68px,1fr) 70px minmax(60px,1fr) 58px 42px;gap:8px;align-items:center}.set-head{font-size:12px;color:var(--muted);padding:14px 0 8px;text-align:center}.set-row{margin-bottom:9px}.set-row input{text-align:center;padding:10px 4px;font-variant-numeric:tabular-nums}.set-row select{padding:10px 4px}.set-row .set-index{text-align:center;font-weight:700;font-size:14px}.set-row.completed input,.set-row.completed select{background:#eff6e8;border-color:#dbe9cc}.set-row.completed .complete{background:var(--green);color:white}.set-row button{padding:8px 4px}.history-box{background:#f3f6ef;border-radius:10px;padding:15px;margin:16px 0;color:#607251;font-size:14px}.history-box p{margin:6px 0}.history-sets{display:flex;gap:7px;flex-wrap:wrap}.history-sets span{background:white;border:1px solid #e0e8d7;border-radius:5px;padding:5px 8px}.action-bar{display:flex;gap:10px;flex-wrap:wrap;margin:16px 0}.full{width:100%}.calendar{display:grid;grid-template-columns:repeat(7,1fr);gap:7px}.calendar .day-name{font-size:12px;text-align:center;color:var(--muted);padding:10px}.calendar button{position:relative;min-height:52px;padding:8px;border:0;font-weight:500}.calendar button.selected{background:var(--green);color:white}.calendar button .dot{position:absolute;bottom:5px;left:calc(50% - 3px);width:6px;height:6px;background:#89ae50;border-radius:50%}.calendar button.selected .dot{background:var(--accent)}.calendar button.today{outline:1px solid #b1ca86}.details-sets{font-size:14px;line-height:1.9;color:#5c6e61}.chart{display:flex;align-items:flex-end;gap:8px;height:130px;padding-top:15px}.bar-col{flex:1;text-align:center;font-size:11px;min-width:0}.bar{background:#708f57;border-radius:4px 4px 0 0;min-height:2px;margin:5px auto;width:70%;max-width:45px}.bar-col span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.stat-table{width:100%;font-size:14px;border-collapse:collapse}.stat-table td,.stat-table th{text-align:left;padding:12px 8px;border-bottom:1px solid var(--line)}dialog{border:0;border-radius:18px;padding:26px;width:min(620px,calc(100% - 24px));max-height:88dvh;color:var(--green);box-shadow:0 20px 80px #142e3444}dialog::backdrop{background:#132b2470;backdrop-filter:blur(3px)}dialog h2{margin:0}.modal-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px}.modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}#toast{position:fixed;bottom:105px;left:50%;transform:translateX(-50%);background:#203f34;color:white;padding:12px 20px;border-radius:10px;box-shadow:0 5px 30px #0002;z-index:100;max-width:90vw;display:none}#timer{position:fixed;bottom:22px;right:30px;z-index:20;background:#183d35;color:white;border:1px solid #406559;border-radius:15px;box-shadow:0 7px 30px #1233;padding:17px 20px;min-width:325px}#timer[hidden]{display:none}#timer .timer-time{font-size:32px;font-weight:750;font-variant-numeric:tabular-nums}#timer .small{color:#bcd2c4}#timer button{min-height:38px;padding:6px 10px;background:#30594a;color:white;border-color:#496b5d;font-size:13px}footer{max-width:1056px;margin:auto;padding:22px 0 35px;border-top:1px solid var(--line);font-size:11px;letter-spacing:2px;color:#8a958c}footer span{float:right;letter-spacing:0}.error{color:var(--red);font-size:14px}pre{white-space:pre-wrap}body:has(#timer:not([hidden])) main{padding-bottom:190px}
@media(min-width:1350px){main{padding-top:44px}.hero{min-height:305px}}@media(max-width:1000px){.sidebar{width:195px;padding:30px 14px}.shell{margin-left:195px}main{padding:28px 24px 80px}.topbar{padding:0 24px}.grid{grid-template-columns:1fr}.exercise-grid{grid-template-columns:1fr}footer{margin:0 24px}.hero{min-height:260px}.hero h2{font-size:30px}}@media(max-width:650px){.sidebar{inset:auto 0 0;width:auto;height:76px;padding:5px 3px max(5px,env(safe-area-inset-bottom));z-index:30;border:0;border-top:1px solid var(--line)}.brand,.side-label,.side-bottom{display:none}nav{flex-direction:row;justify-content:space-around;gap:0}nav a{flex:1;flex-direction:column;gap:4px;padding:8px 2px;border-radius:8px;font-size:11px;white-space:nowrap}nav svg{width:21px;height:21px}.shell{margin:0}.topbar{height:52px;padding:0 18px;font-size:10px}.topbar #save-status{font-size:12px}main{padding:26px 16px 102px}.page-head{margin-bottom:23px;gap:12px;flex-wrap:wrap}h1{font-size:28px}.date-badge{font-size:12px;padding:8px 10px}.eyebrow{font-size:11px}.hero{padding:26px;min-height:275px;border-radius:15px}.hero h2{font-size:29px}.hero .hero-num{font-size:100px;right:18px}.metrics{gap:8px}.metric{padding:14px 10px}.metric small{font-size:11px}.metric strong{font-size:25px}.metric strong span{font-size:12px;margin-left:2px}.card{padding:18px 14px;border-radius:13px}.toolbar{grid-template-columns:1fr 1fr;gap:8px}.toolbar input{grid-column:1/-1}.set-head,.set-row{grid-template-columns:25px minmax(52px,1fr) 59px minmax(46px,1fr) 46px 32px;gap:5px}.set-row input{font-size:16px}.set-row select{font-size:14px}.set-row button{font-size:13px}.form-grid{gap:12px}#timer{bottom:85px;left:12px;right:12px;min-width:0;padding:12px 15px}footer{margin:0 16px 86px}dialog{padding:20px 16px}.calendar{gap:4px}.row.wrap button{flex-grow:1}.action-bar button{flex:1}.stat-table{font-size:12px}.stat-table td,.stat-table th{padding:10px 4px}.row h2{font-size:20px}.card-head{flex-wrap:wrap}.hide-mobile{display:none}}
/* Keep the timer controls legible on narrow workout screens. */
#timer .row>div:first-child{min-width:0;flex:1}#timer .row>.row{flex:0 0 auto;gap:5px}#timer button{white-space:nowrap}#timer .small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:180px}#toast{bottom:215px}img.thumb{border:1px solid var(--line)}
@media(max-width:400px){#timer{padding:12px}#timer .small{max-width:140px;font-size:12px}#timer .timer-time{font-size:28px}#timer button{padding:6px 8px}#timer .row{gap:5px}}
/* Phone installation, safe areas and on-screen keyboards. */
#mobile-install-open{font-size:14px;letter-spacing:0;min-height:44px;padding:8px 14px}
.topbar .journal-label{margin-right:auto;margin-left:18px}
.install-guides{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:20px}
.install-guides .card{padding:16px;margin:0}.install-guides .recommended{border-color:#96b378;background:#f7faf2}
.install-guides ol{padding-left:22px;margin-bottom:0;font-size:15px;line-height:1.8}.install-guides li+li{margin-top:9px}
#install-dialog{overscroll-behavior:contain}#install-dialog #mobile-link{font-size:14px}
button,a{touch-action:manipulation}
@media(max-width:650px){
  .topbar .journal-label{display:none}.topbar{padding-left:max(16px,env(safe-area-inset-left));padding-right:max(16px,env(safe-area-inset-right));height:60px}
  main{padding-left:max(16px,env(safe-area-inset-left));padding-right:max(16px,env(safe-area-inset-right));padding-bottom:calc(102px + env(safe-area-inset-bottom))}
  .sidebar{height:calc(76px + env(safe-area-inset-bottom));padding-bottom:calc(5px + env(safe-area-inset-bottom))}
  #timer{bottom:calc(85px + env(safe-area-inset-bottom))}#toast{bottom:calc(215px + env(safe-area-inset-bottom))}
  input,select,textarea,.set-row select{font-size:16px}input{scroll-margin:90px 0 140px}
  .install-guides{grid-template-columns:1fr}#install-dialog{max-height:85dvh}#install-title{font-size:20px}
  body.keyboard-open .sidebar,body.keyboard-open #timer{visibility:hidden;pointer-events:none}
  body.keyboard-open main{padding-bottom:30px}body.keyboard-open #toast{bottom:20px}
}
