:root{--primary: #5b7553;--primary-soft: #e8eee4;--gold: #c4a265;--gold-soft: #f6eedf;--bg: #faf6f1;--surface: #ffffff;--fg: #2c2418;--muted: #8c7e6e;--border: #e5ddd2;--error: #b85450;--error-soft: #f8e7e6;--radius: 14px;--tab-h: 62px;color-scheme:light}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body{margin:0;padding:0;background:var(--bg);color:var(--fg)}body{font-family:-apple-system,BlinkMacSystemFont,Apple SD Gothic Neo,Pretendard,Noto Sans KR,sans-serif;font-size:16px;line-height:1.45;-webkit-font-smoothing:antialiased;overscroll-behavior-y:none}button,input,textarea,select{font:inherit;color:inherit}input,textarea,select{font-size:16px}a{color:inherit;text-decoration:none}h1,h2,h3,p{margin:0}.app{max-width:560px;margin:0 auto;min-height:100dvh;padding-bottom:calc(var(--tab-h) + env(safe-area-inset-bottom) + 16px)}.page{padding:calc(env(safe-area-inset-top) + 14px) 16px 16px;display:flex;flex-direction:column;gap:14px}.page-title{font-size:22px;font-weight:800;letter-spacing:-.3px}.page-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.sub{color:var(--muted);font-size:14px}.small{font-size:13px}.row{display:flex;align-items:center;gap:8px}.row.wrap{flex-wrap:wrap}.between{justify-content:space-between}.grow{flex:1;min-width:0}.stack{display:flex;flex-direction:column;gap:10px}.stack.tight{gap:6px}.center{text-align:center}.ellipsis{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:14px}.card.soft{background:var(--primary-soft);border-color:transparent}.card.gold{background:var(--gold-soft);border-color:transparent}.card.tap{cursor:pointer;transition:transform .08s}.card.tap:active{transform:scale(.985)}.card-title{font-weight:700;font-size:16px}.section-title{font-weight:800;font-size:17px;margin-top:4px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:0 16px;border-radius:12px;border:1px solid var(--border);background:var(--surface);font-weight:700;cursor:pointer;white-space:nowrap}.btn:disabled{opacity:.5;cursor:default}.btn.primary{background:var(--primary);border-color:var(--primary);color:#fff}.btn.gold{background:var(--gold);border-color:var(--gold);color:#fff}.btn.danger{color:var(--error);border-color:var(--error-soft);background:var(--error-soft)}.btn.ghost{background:transparent;border-color:transparent;color:var(--muted)}.btn.block{width:100%}.btn.sm{min-height:34px;padding:0 12px;font-size:14px;border-radius:10px}.btn.icon{width:44px;padding:0}.chip{display:inline-flex;align-items:center;gap:4px;min-height:34px;padding:0 12px;border-radius:999px;border:1px solid var(--border);background:var(--surface);font-size:14px;cursor:pointer}.chip.on{background:var(--primary);border-color:var(--primary);color:#fff;font-weight:700}.badge{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 6px;border-radius:10px;background:var(--error);color:#fff;font-size:12px;font-weight:700}.tag{display:inline-block;padding:2px 8px;border-radius:6px;background:var(--primary-soft);color:var(--primary);font-size:12px;font-weight:700}.tag.gold{background:var(--gold-soft);color:#9a7a3e}.tag.gray{background:#f0ebe4;color:var(--muted)}.field{display:flex;flex-direction:column;gap:6px}.field>span{font-size:14px;color:var(--muted);font-weight:600}.input,.textarea,.select{width:100%;min-height:46px;padding:10px 12px;border-radius:12px;border:1px solid var(--border);background:var(--surface);outline:none}.input:focus,.textarea:focus,.select:focus{border-color:var(--primary)}.textarea{min-height:84px;resize:vertical}.input.num{text-align:center;padding:6px;min-height:40px}.tabbar{position:fixed;left:0;right:0;bottom:0;z-index:20;background:#fffffff5;border-top:1px solid var(--border);padding-bottom:env(safe-area-inset-bottom);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.tabbar-inner{max-width:560px;margin:0 auto;display:flex;height:var(--tab-h)}.tab{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;color:var(--muted);font-size:11px;font-weight:600;position:relative}.tab.on{color:var(--primary)}.tab svg{width:24px;height:24px}.tab .badge{position:absolute;top:6px;left:calc(50% + 6px)}.segment{display:flex;background:#efe9e1;border-radius:12px;padding:3px}.segment button{flex:1;min-height:38px;border:0;border-radius:10px;background:transparent;font-weight:700;color:var(--muted);cursor:pointer}.segment button.on{background:var(--surface);color:var(--fg);box-shadow:0 1px 3px #00000014}.cal-head{display:flex;align-items:center;justify-content:space-between}.cal-head b{font-size:17px}.cal-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:2px}.cal-dow{text-align:center;font-size:12px;color:var(--muted);padding:4px 0;font-weight:600}.cal-day{aspect-ratio:1 / 1.05;border:0;background:transparent;border-radius:10px;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;padding-top:6px;gap:3px;cursor:pointer;font-size:15px;position:relative}.cal-day.out{color:#cfc6ba}.cal-day.today{font-weight:800;color:var(--primary)}.cal-day.sel{background:var(--primary);color:#fff}.cal-day.streak:not(.sel){background:#eef3ea}.cal-dots{display:flex;gap:3px;height:6px}.cal-dot{width:6px;height:6px;border-radius:3px;background:var(--primary)}.cal-dot.gold{background:var(--gold)}.cal-day.sel .cal-dot{background:#fff}.cal-label{font-size:10px;line-height:1.1;max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;padding:0 2px;color:var(--primary);font-weight:700}.cal-day.sel .cal-label{color:#fff}.sheet-back{position:fixed;top:0;right:0;bottom:0;left:0;background:#1e181066;z-index:50;display:flex;align-items:flex-end;justify-content:center;animation:fade .15s}.sheet{width:100%;max-width:560px;max-height:92dvh;background:var(--bg);border-radius:20px 20px 0 0;display:flex;flex-direction:column;animation:up .2s ease-out}.sheet-head{display:flex;align-items:center;justify-content:space-between;padding:14px 16px 10px;border-bottom:1px solid var(--border)}.sheet-head b{font-size:17px}.sheet-body{overflow-y:auto;padding:14px 16px;display:flex;flex-direction:column;gap:14px;-webkit-overflow-scrolling:touch}.sheet-foot{padding:10px 16px calc(10px + env(safe-area-inset-bottom));border-top:1px solid var(--border);display:flex;gap:8px;background:var(--surface)}@keyframes up{0%{transform:translateY(40px);opacity:.6}to{transform:none;opacity:1}}@keyframes fade{0%{opacity:0}to{opacity:1}}.toast-wrap{position:fixed;left:0;right:0;top:calc(env(safe-area-inset-top) + 10px);z-index:100;display:flex;justify-content:center;pointer-events:none;padding:0 16px}.toast{background:#2c2418;color:#fff;padding:12px 16px;border-radius:12px;font-size:15px;max-width:520px;box-shadow:0 6px 20px #0000002e;animation:fade .15s;pointer-events:auto}.toast.error{background:var(--error)}.empty{color:var(--muted);text-align:center;padding:18px 8px;font-size:14px}.spinner{width:26px;height:26px;border:3px solid var(--border);border-top-color:var(--primary);border-radius:50%;animation:spin .7s linear infinite;margin:24px auto}@keyframes spin{to{transform:rotate(360deg)}}.err-box{background:var(--error-soft);color:var(--error);border-radius:12px;padding:12px;font-size:14px}.set-row{display:grid;grid-template-columns:30px 1fr 1fr 44px;gap:6px;align-items:center}.set-row .n{text-align:center;color:var(--muted);font-weight:700;font-size:14px}.set-head{font-size:12px;color:var(--muted);text-align:center;font-weight:600}.check{width:40px;height:40px;border-radius:10px;border:1.5px solid var(--border);background:var(--surface);display:flex;align-items:center;justify-content:center;cursor:pointer}.check.on{background:var(--primary);border-color:var(--primary);color:#fff}.timer{position:sticky;bottom:0;background:var(--fg);color:#fff;border-radius:14px;padding:10px 14px;display:flex;align-items:center;justify-content:space-between;gap:8px}.timer b{font-size:24px;font-variant-numeric:tabular-nums}.timer .btn{background:#ffffff1f;border-color:transparent;color:#fff;min-height:36px}.thumbs{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.thumb{position:relative;aspect-ratio:1;border-radius:10px;overflow:hidden;background:#efe9e1;border:0;padding:0;cursor:pointer}.thumb img,.thumb video{width:100%;height:100%;object-fit:cover;display:block}.thumb .x{position:absolute;top:4px;right:4px;width:26px;height:26px;border-radius:13px;background:#0000008c;color:#fff;border:0;font-size:16px;line-height:1;cursor:pointer}.thumb .play{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;color:#fff;font-size:28px;text-shadow:0 1px 6px rgba(0,0,0,.5);pointer-events:none}.thumb.add{display:flex;align-items:center;justify-content:center;flex-direction:column;color:var(--muted);font-size:13px;border:1.5px dashed var(--border);background:transparent}.viewer{position:fixed;top:0;right:0;bottom:0;left:0;background:#000;z-index:120;display:flex;align-items:center;justify-content:center}.viewer img,.viewer video{max-width:100%;max-height:100%}.viewer .close{position:absolute;top:calc(env(safe-area-inset-top) + 10px);right:12px;color:#fff;background:#ffffff26;border:0;width:40px;height:40px;border-radius:20px;font-size:22px;cursor:pointer}.comment{padding:10px 12px;border-radius:12px;background:#f4efe8;font-size:15px;white-space:pre-wrap;word-break:break-word}.comment.coach{background:var(--primary-soft)}.comment .who{font-size:12px;color:var(--muted);font-weight:700;margin-bottom:2px;display:flex;justify-content:space-between;gap:8px}.list-row{display:flex;align-items:center;gap:12px;padding:12px 14px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);cursor:pointer}.avatar{width:40px;height:40px;border-radius:20px;background:var(--primary-soft);color:var(--primary);display:flex;align-items:center;justify-content:center;font-weight:800;flex-shrink:0}.unread{width:8px;height:8px;border-radius:4px;background:var(--error);flex-shrink:0}.bars{display:flex;align-items:flex-end;gap:6px;height:110px}.bar-col{flex:1;display:flex;flex-direction:column;align-items:center;gap:4px;height:100%;justify-content:flex-end}.bar{width:100%;max-width:30px;border-radius:6px 6px 3px 3px;background:var(--primary);min-height:2px}.bar.gold{background:var(--gold)}.bar.none{background:#ece5dc}.bar-col small{font-size:11px;color:var(--muted)}.bar-col em{font-style:normal;font-size:11px;font-weight:700}.slider{width:100%;accent-color:var(--primary);height:32px}.stat{display:flex;flex-direction:column;gap:2px}.stat b{font-size:20px}.stat span{font-size:12px;color:var(--muted)}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:10px}.grid4{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}hr.sep{border:0;border-top:1px solid var(--border);margin:2px 0;width:100%}
