*{box-sizing:border-box}:root{--accent:#fd7e14;--accent-soft:#fd7e1414;--accent-hover:#e56f0e;--bg:#fafafa;--surface:#fff;--surface-alt:#f5f5f7;--text:#1a1a1f;--text-muted:#86868b;--text-subtle:#6e6e73;--border:#0000000f;--shadow:0 1px 3px #0000000a, 0 10px 30px #0000000a;--shadow-lg:0 4px 20px #00000014, 0 20px 60px #00000014;--radius:14px;--radius-lg:20px}@media (prefers-color-scheme:dark){:root{--bg:#000;--surface:#1c1c1e;--surface-alt:#2c2c2e;--text:#f2f2f7;--text-muted:#8e8e93;--text-subtle:#aeaeb2;--border:#ffffff14;--shadow:0 1px 3px #0000004d;--shadow-lg:0 4px 20px #0006}}html,body,#root{background:var(--bg);height:100%;color:var(--text);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;letter-spacing:-.01em;overscroll-behavior-x:none;touch-action:manipulation;-webkit-text-size-adjust:100%;margin:0;padding:0;font-family:-apple-system,BlinkMacSystemFont,SF Pro Text,Inter,system-ui,sans-serif;font-size:15px;line-height:1.4;overflow-x:hidden}button{font:inherit;cursor:pointer;color:inherit;background:0 0;border:none}input,select,textarea{font:inherit;color:inherit}.app{flex-direction:column;max-width:560px;min-height:100vh;margin:0 auto;padding-bottom:100px;display:flex;position:relative}.header{background:var(--bg);-webkit-backdrop-filter:blur(20px);z-index:10;border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:12px;padding:16px 20px 12px;display:flex;position:sticky;top:0}.brand,.header-right{align-items:center;gap:10px;display:flex}.week-total{flex-direction:column;align-items:flex-end;line-height:1.1;display:flex}.week-total-label{color:var(--text-subtle);text-transform:uppercase;letter-spacing:.08em;font-size:10px;font-weight:600}.week-total-value{color:var(--text);font-variant-numeric:tabular-nums;font-size:16px;font-weight:600}.week-total-label{text-overflow:ellipsis;white-space:nowrap;max-width:180px;overflow:hidden}.week-total--filter{cursor:pointer;background:var(--accent-soft);border-radius:8px;margin-right:-6px;padding:2px 6px}.week-total--filter .week-total-label{color:var(--accent)}.week-total--filter:hover{background:var(--accent)}.week-total--filter:hover .week-total-label,.week-total--filter:hover .week-total-value,.week-total--filter:hover .week-total-pct{color:#fff}.icon-btn{width:36px;height:36px;color:var(--text-subtle);border-radius:50%;justify-content:center;align-items:center;transition:background .1s,color .1s;display:inline-flex}.icon-btn:hover{background:var(--border);color:var(--text)}.status-dot{border-radius:50%;width:6px;height:6px;margin-left:4px;display:inline-block}.status-dot--online{background:#30d158}.status-dot--offline{background:#8e8e93}.logo-dot{background:var(--accent);width:10px;height:10px;box-shadow:0 0 0 4px var(--accent-soft);border-radius:50%}.logo-text{letter-spacing:-.02em;font-size:18px;font-weight:700}.running-bar{z-index:9;background:linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);border-radius:var(--radius-lg);color:#fff;cursor:pointer;align-items:center;gap:12px;margin:12px 16px;padding:14px 16px;transition:box-shadow .15s;display:flex;position:sticky;top:68px;box-shadow:0 8px 30px #fd7e1440}.running-bar:hover{box-shadow:0 12px 40px #fd7e1459}.running-bar:active{opacity:.92}.running-info{flex:1;min-width:0}.running-title{text-overflow:ellipsis;white-space:nowrap;font-size:16px;font-weight:600;overflow:hidden}.running-sub{opacity:.85;text-overflow:ellipsis;white-space:nowrap;font-size:13px;overflow:hidden}.running-time{font-variant-numeric:tabular-nums;letter-spacing:-.02em;font-size:22px;font-weight:700}.btn-stop{color:#fff;background:#fff3;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:40px;height:40px;transition:background .15s;display:flex}.btn-stop:hover{background:#ffffff4d}.list{padding:8px 0}.empty{text-align:center;color:var(--text-muted);padding:80px 20px}.day{margin-bottom:24px}.day-header{color:var(--text-subtle);text-transform:uppercase;letter-spacing:.05em;justify-content:space-between;align-items:center;padding:12px 20px 8px;font-size:13px;font-weight:600;display:flex}.day-total{color:var(--text-muted);font-variant-numeric:tabular-nums;font-weight:500}.entry{background:var(--surface);border-radius:var(--radius);cursor:pointer;border:1px solid var(--border);gap:12px;margin:4px 12px;padding:14px 16px;transition:background .1s,transform .1s;display:flex}.entry:hover{background:var(--surface-alt)}.entry:active{transform:scale(.98)}.entry--running{border-color:var(--accent);background:var(--accent-soft)}.entry--nonbillable{opacity:.65}.entry-main{flex:1;min-width:0}.entry-title{text-overflow:ellipsis;white-space:nowrap;align-items:center;gap:8px;font-size:15px;font-weight:600;display:flex;overflow:hidden}.pulse-dot{background:var(--accent);border-radius:50%;flex-shrink:0;width:8px;height:8px;animation:1.5s ease-in-out infinite pulse}@keyframes pulse{0%,to{opacity:1;transform:scale(1)}50%{opacity:.3;transform:scale(.85)}}.entry-sub{color:var(--text-muted);text-overflow:ellipsis;white-space:nowrap;margin-top:2px;font-size:12px;overflow:hidden}button.entry-sub{text-align:left;background:0 0;border:none;width:100%;padding:0;display:block}.entry-sub--filter{cursor:pointer}.entry-sub--filter:hover{color:var(--accent)}.entry-desc{color:var(--text-subtle);text-overflow:ellipsis;white-space:nowrap;margin-top:6px;font-size:13px;overflow:hidden}.entry-times{text-align:right;flex-shrink:0}.entry-duration{font-variant-numeric:tabular-nums;font-size:15px;font-weight:600}.entry-range{color:var(--text-muted);font-variant-numeric:tabular-nums;margin-top:2px;font-size:11px}.fab{background:var(--accent);color:#fff;z-index:50;border-radius:50%;justify-content:center;align-items:center;width:56px;height:56px;transition:transform .15s,box-shadow .15s,background .15s;display:flex;position:fixed;bottom:36px;left:auto;right:24px;box-shadow:0 8px 24px #fd7e1466,0 2px 8px #fd7e1433}.fab:hover{background:var(--accent-hover);transform:translateY(-2px)scale(1.05);box-shadow:0 12px 32px #fd7e1480,0 4px 12px #fd7e1440}.fab:active{transform:translateY(0)scale(.95)}@media (width>=560px){.fab{right:calc(50% - 256px)}}.backdrop{z-index:90;background:#0006;animation:.2s ease-out fadeIn;position:fixed;inset:0}@keyframes fadeIn{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}.sheet{background:var(--surface);z-index:100;border-radius:20px 20px 0 0;flex-direction:column;width:100%;max-width:560px;max-height:92vh;animation:.3s cubic-bezier(.2,.8,.2,1) slideUp;display:flex;position:fixed;bottom:0;left:50%;transform:translate(-50%);box-shadow:0 -8px 40px #00000026}@keyframes slideUp{0%{transform:translate(-50%,100%)}to{transform:translate(-50%)}}.sheet-header{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;padding:14px 18px;display:flex}.sheet-title{font-size:16px;font-weight:600}.sheet-back,.sheet-save{width:36px;height:36px;color:var(--text-muted);border-radius:50%;justify-content:center;align-items:center;transition:background .15s;display:flex}.sheet-back:hover{background:var(--surface-alt)}.sheet-save{background:var(--accent);color:#fff;box-shadow:0 2px 8px #fd7e1459}.sheet-save:hover{background:var(--accent-hover);box-shadow:0 4px 12px #fd7e1473}.sheet-save:active{transform:scale(.92)}.sheet-body{flex:1;padding:18px;overflow-y:auto}.running-display{text-align:center;background:linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);border-radius:var(--radius-lg);color:#fff;margin-bottom:8px;padding:24px 16px}.running-duration{font-variant-numeric:tabular-nums;letter-spacing:-.03em;font-size:44px;font-weight:700;line-height:1}.running-label{opacity:.85;margin-top:8px;font-size:13px}.field{margin-bottom:16px}.field label{color:var(--text-subtle);text-transform:uppercase;letter-spacing:.05em;margin-bottom:6px;font-size:12px;font-weight:600;display:block}.field input,.field select,.field textarea{background:var(--surface-alt);resize:vertical;border:1px solid #0000;border-radius:10px;width:100%;padding:12px 14px;font-size:15px;transition:border-color .15s,background .15s}.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--accent);background:var(--surface);outline:none}.field-row{grid-template-columns:1fr 1fr;gap:12px;display:grid}.checkbox{cursor:pointer;-webkit-user-select:none;user-select:none;align-items:center;gap:10px;margin:18px 0;font-size:15px;font-weight:500;display:flex}.checkbox input{width:20px;height:20px;accent-color:var(--accent);cursor:pointer}.action-row{gap:10px;margin-top:8px;display:flex}.btn-primary,.btn-secondary,.btn-delete{white-space:nowrap;border-radius:12px;flex:1;justify-content:center;align-items:center;gap:6px;padding:14px 16px;font-size:14px;font-weight:600;transition:transform .1s,background .15s;display:flex}.btn-primary{background:var(--accent);color:#fff}.btn-primary:hover{background:var(--accent-hover)}.btn-primary:active{transform:scale(.97)}.btn-primary--disabled{opacity:.5;cursor:default}.btn-primary--disabled:hover{background:var(--accent)}.needs-desc{color:#e5484d;text-align:center;margin-bottom:6px;font-size:12px}.btn-secondary{background:var(--surface-alt);color:var(--text)}.btn-secondary:hover{background:var(--border)}.btn-secondary--disabled{opacity:.4;cursor:default}.btn-secondary--disabled:hover{background:var(--surface-alt)}.btn-delete{color:#e5484d;background:0 0;border:1px solid #e5484d33;width:100%;margin-top:24px}.btn-delete:hover{background:#e5484d14}.btn-delete--confirm{color:#fff;background:#e5484d;border-color:#e5484d}.btn-delete--confirm:hover{background:#c93a3e}.search{background:var(--surface);border:1px solid var(--border);color:var(--text-subtle);border-radius:12px;align-items:center;gap:8px;margin:12px 16px 8px;padding:10px 12px;transition:border-color .15s,box-shadow .15s;display:flex;position:relative}.search:focus-within{border-color:var(--accent);box-shadow:0 0 0 3px #fd7e1426}.search input{color:var(--text);background:0 0;border:none;outline:none;flex:1;min-width:0;font-family:inherit;font-size:15px}.search input::placeholder{color:var(--text-subtle)}.search-clear{width:24px;height:24px;color:var(--text-subtle);cursor:pointer;background:0 0;border:none;border-radius:50%;justify-content:center;align-items:center;padding:0;display:flex}.search-clear:hover{background:var(--border);color:var(--text)}.picker{position:relative}.picker-trigger{background:var(--surface);border:1px solid var(--border);width:100%;color:var(--text);text-align:left;cursor:pointer;border-radius:12px;justify-content:space-between;align-items:center;gap:12px;padding:12px 14px;font-family:inherit;font-size:15px;transition:border-color .15s;display:flex}.picker-trigger:hover{border-color:var(--text-subtle)}.picker-trigger-text{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.picker-trigger-sub{color:var(--text-subtle);text-transform:uppercase;letter-spacing:.04em;font-size:12px;font-weight:500}.picker-trigger-main{color:var(--text);text-overflow:ellipsis;white-space:nowrap;font-size:15px;font-weight:500;overflow:hidden}.picker-trigger-placeholder{color:var(--text-subtle);font-size:15px}.picker-trigger svg{color:var(--text-subtle);flex-shrink:0}.picker-dropdown{background:var(--surface);border:1px solid var(--border);z-index:100;border-radius:12px;flex-direction:column;max-height:340px;display:flex;position:absolute;top:calc(100% + 6px);left:0;right:0;overflow:hidden;box-shadow:0 10px 30px #0000001f}.picker-search{border-bottom:1px solid var(--border);color:var(--text-subtle);align-items:center;gap:8px;padding:10px 12px;display:flex}.picker-search input{color:var(--text);background:0 0;border:none;outline:none;flex:1;min-width:0;font-family:inherit;font-size:15px}.picker-list{padding:4px 0;overflow-y:auto}.picker-empty{text-align:center;color:var(--text-subtle);padding:16px;font-size:14px}.picker-group{padding:4px 0}.picker-group-label{text-transform:uppercase;letter-spacing:.06em;color:var(--text-subtle);padding:8px 14px 4px;font-size:11px;font-weight:600}.picker-item{text-align:left;cursor:pointer;background:0 0;border:none;flex-direction:column;gap:2px;width:100%;padding:8px 14px;font-family:inherit;transition:background .1s;display:flex}.picker-item:hover{background:var(--bg)}.picker-item--active{background:#fd7e1414}.picker-item--active .picker-item-main{color:var(--accent)}.picker-item-main{color:var(--text);font-size:14px;font-weight:500}.picker-item-sub{color:var(--text-subtle);font-size:12px}.chips{-webkit-overflow-scrolling:touch;scrollbar-width:none;gap:8px;padding:4px 16px 12px;display:flex;overflow-x:auto}.chips::-webkit-scrollbar{display:none}.chip{color:var(--text-subtle);background:var(--surface);border:1px solid var(--border);border-radius:999px;flex-shrink:0;padding:6px 14px;font-size:13px;font-weight:500;transition:background .1s,color .1s,border-color .1s}.chip:hover{color:var(--text)}.chip--active{background:var(--accent);color:#fff;border-color:var(--accent)}.chip--active:hover{color:#fff}.chip--project{background:var(--accent-soft);color:var(--accent);text-overflow:ellipsis;white-space:nowrap;border-color:#0000;align-items:center;gap:6px;max-width:240px;display:inline-flex;overflow:hidden}.chip--project svg{flex-shrink:0;width:14px;height:14px}.chip--project:hover{background:var(--accent);color:#fff}.entry-wrap{border-radius:var(--radius);margin:0 16px 8px;position:relative;overflow:hidden}.entry-wrap .entry{z-index:1;margin:0;position:relative}.entry-delete-bg{color:#fff;border-radius:var(--radius);opacity:0;pointer-events:none;cursor:pointer;background:#e5484d;border:none;justify-content:flex-end;align-items:center;padding-right:28px;transition:opacity .15s,background .1s;display:flex;position:absolute;inset:0}.entry-wrap--swiping .entry-delete-bg,.entry-wrap--committed .entry-delete-bg{opacity:1;pointer-events:auto}.entry-delete-bg:hover{background:#c93a3e}.entry-delete-bg:active{background:#b32e31}.undo-toast{z-index:200;color:#f2f2f7;border-radius:var(--radius);background:#1a1a1f;align-items:center;gap:12px;max-width:528px;margin:0 auto;padding:16px 18px;font-size:15px;animation:.25s cubic-bezier(.2,.8,.2,1) toastIn;display:flex;position:fixed;bottom:100px;left:16px;right:16px;box-shadow:0 12px 40px #00000059,0 2px 8px #0003}@keyframes toastIn{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}.undo-toast-icon{color:#ff6b6f;background:#e5484d26;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:32px;height:32px;display:inline-flex}.undo-toast-text{flex:1;font-weight:500}.undo-toast-btn{background:var(--accent);color:#fff;cursor:pointer;border:none;border-radius:10px;flex-shrink:0;padding:10px 18px;font-size:14px;font-weight:600;transition:background .15s,transform .1s}.undo-toast-btn:hover{background:var(--accent-hover)}.undo-toast-btn:active{transform:scale(.95)}@supports (padding:max(0px)){.undo-toast{bottom:max(100px, calc(env(safe-area-inset-bottom) + 100px))}}.entry-wrap--committed .entry{opacity:0;transition:transform .2s,opacity .2s}.entry-resume{width:32px;height:32px;color:var(--accent);background:var(--accent-soft);border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;margin-left:8px;transition:background .1s,transform .1s;display:inline-flex}.entry-resume:hover{background:var(--accent);color:#fff;transform:scale(1.05)}.running-bar--warn{animation:2s ease-in-out infinite warnPulse}@keyframes warnPulse{0%,to{box-shadow:0 4px 16px #fd7e144d}50%{box-shadow:0 4px 24px #e5484d8c}}.warn-chip{vertical-align:middle;background:#ffffff38;border-radius:999px;align-items:center;gap:4px;margin-left:8px;padding:2px 8px;font-size:11px;font-weight:500;display:inline-flex}.empty-hero{text-align:center;padding:40px 20px}.empty-icon{background:var(--accent-soft);width:64px;height:64px;color:var(--accent);border-radius:50%;justify-content:center;align-items:center;margin:0 auto 16px;display:flex}.empty-icon svg{width:32px;height:32px}.empty-hero h3{color:var(--text);margin:0 0 6px;font-size:18px}.empty-hero p{color:var(--text-subtle);margin:0}.auth-screen{background:linear-gradient(160deg, var(--bg) 0%, var(--accent-soft) 100%);justify-content:center;align-items:center;min-height:100vh;padding:24px;animation:.3s ease-out fadeIn;display:flex}.auth-card{background:var(--surface);border-radius:var(--radius-lg);width:100%;max-width:380px;box-shadow:var(--shadow-lg);border:1px solid var(--border);padding:36px 28px 28px}.auth-logo{justify-content:center;align-items:center;gap:12px;margin-bottom:8px;display:flex}.logo-dot--big{width:14px;height:14px}.logo-text--big{font-size:22px}.auth-hint{text-align:center;color:var(--text-subtle);margin:0 0 28px;font-size:14px}.auth-card .field input{border:1px solid var(--border);background:var(--surface-alt);width:100%;color:var(--text);border-radius:12px;padding:12px 14px}.auth-card .field input:focus{border-color:var(--accent);outline:none;box-shadow:0 0 0 3px #fd7e1426}.btn-full{justify-content:center;width:100%;margin-top:8px}.auth-footer{text-align:center;margin-top:20px;font-size:13px}.auth-footer a{color:var(--text-subtle);text-decoration:none}.auth-footer a:hover{color:var(--accent)}.onboarding{background:var(--surface);border-radius:var(--radius-lg);width:100%;max-width:380px;box-shadow:var(--shadow-lg);border:1px solid var(--border);flex-direction:column;min-height:360px;padding:40px 28px 24px;display:flex}.onb-slide{text-align:center;flex:1;animation:.35s ease-out slideIn}@keyframes slideIn{0%{opacity:0;transform:translate(20px)}to{opacity:1;transform:translate(0)}}.onb-icon{background:var(--accent-soft);width:72px;height:72px;color:var(--accent);border-radius:50%;justify-content:center;align-items:center;margin:0 auto 20px;animation:.5s cubic-bezier(.34,1.56,.64,1) iconPop;display:flex}.onb-icon svg{width:36px;height:36px}@keyframes iconPop{0%{opacity:0;transform:scale(.5)}to{opacity:1;transform:scale(1)}}.onb-slide h2{color:var(--text);margin:0 0 10px;font-size:22px}.onb-slide p{color:var(--text-subtle);margin:0;line-height:1.5}.onb-dots{justify-content:center;gap:6px;margin:24px 0 18px;display:flex}.onb-dot{background:var(--border);border-radius:50%;width:6px;height:6px;transition:all .2s}.onb-dot--active{background:var(--accent);border-radius:3px;width:20px}.onb-actions{justify-content:space-between;align-items:center;gap:8px;display:flex}.btn-text{color:var(--text-subtle);padding:10px 16px;font-size:14px;font-weight:500}.btn-text:hover{color:var(--text)}.action-hint{color:var(--text-muted);margin-top:22px;font-size:11px;line-height:1.5}.action-hint p{margin:0 0 4px}.action-hint strong{color:var(--text-subtle)}.sheet--compact{min-height:auto;max-height:60vh}.sheet--tall{min-height:80vh}.menu-item{border-bottom:1px solid var(--border);width:100%;color:var(--text);text-align:left;align-items:center;gap:14px;padding:14px 4px;font-size:15px;text-decoration:none;display:flex}.menu-item svg{color:var(--text-subtle);flex-shrink:0}.menu-item:hover{background:var(--surface-alt)}.menu-item-hint{color:var(--text-subtle);margin-left:auto;font-size:12px}.help-body section{border-bottom:1px solid var(--border);padding:10px 0}.help-body section:last-child{border-bottom:none}.help-body h3{color:var(--accent);margin:0 0 6px;font-size:15px}.help-body p{color:var(--text-subtle);margin:0;font-size:14px;line-height:1.5}.menu-user{color:var(--text-subtle);border-bottom:1px solid var(--border);padding:12px 4px 8px;font-size:13px}.menu-item--danger,.menu-item--danger svg{color:#e5484d}.menu-item:last-child{border-bottom:none}.app-loading{min-height:100vh;color:var(--text-subtle);flex-direction:column;justify-content:center;align-items:center;gap:16px;display:flex}.spinner{border:3px solid var(--border);border-top-color:var(--accent);border-radius:50%;width:32px;height:32px;animation:.8s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.load-error{color:#e5484d;text-align:center;max-width:320px;margin:0}.auth-error{color:#e5484d;background:#e5484d14;border:1px solid #e5484d40;border-radius:10px;margin:8px 0 12px;padding:10px 12px;font-size:13px}.busy-dot{background:var(--accent);border-radius:50%;width:6px;height:6px;margin-left:4px;animation:1s ease-in-out infinite busyPulse;display:inline-block}@keyframes busyPulse{0%,to{opacity:1}50%{opacity:.3}}@supports (padding:max(0px)){.app{padding-bottom:max(100px, env(safe-area-inset-bottom))}.fab{bottom:max(36px, calc(env(safe-area-inset-bottom) + 12px))}.sheet{padding-bottom:max(18px, env(safe-area-inset-bottom))}}
