*{box-sizing:border-box}:root{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;line-height:1.5;font-weight:400;color:#2d3748;background-color:#f0f2f5;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}body{margin:0;min-width:320px;min-height:100vh}#root{width:100%}button,input{font-family:inherit}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}input[type=number]{-moz-appearance:textfield}.header{padding:20px 16px 16px;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff}.header-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.header-title{font-size:24px;font-weight:700;letter-spacing:1px;margin:0}.header-top-right{display:flex;gap:8px;align-items:center}.btn-today{padding:4px 14px;border-radius:14px;border:1.5px solid rgba(255,255,255,.6);background:#ffffff26;color:#fff;font-size:13px;cursor:pointer;transition:background .2s}.btn-today:hover{background:#ffffff4d}.btn-view-toggle{padding:4px 14px;border-radius:14px;border:1.5px solid rgba(255,255,255,.6);background:#ffffff26;color:#fff;font-size:13px;cursor:pointer;transition:background .2s;font-weight:500}.btn-view-toggle:hover{background:#ffffff4d}.btn-view-toggle.active{background:#fff6;border-color:#fff}.header-nav{display:flex;align-items:center;justify-content:center;gap:16px}.btn-arrow{display:flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:50%;border:none;background:#fff3;color:#fff;cursor:pointer;transition:background .2s}.btn-arrow:hover{background:#ffffff59}.header-date{font-size:16px;font-weight:500;min-width:100px;text-align:center}.user-info{display:flex;align-items:center;gap:8px}.user-email{font-size:12px;max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.btn-logout{padding:2px 8px;border-radius:10px;border:1px solid rgba(255,255,255,.5);background:#ffffff1a;color:#fff;font-size:11px;cursor:pointer;transition:background .2s}.btn-logout:hover{background:#ffffff40}.mode-badge{font-size:11px;padding:2px 8px;border-radius:10px;background:#fff3;border:1px solid rgba(255,255,255,.4)}.body-field{margin-bottom:14px}.body-label{display:block;font-size:13px;color:#718096;margin-bottom:6px;font-weight:500}.btn-period-toggle{padding:8px 16px;border-radius:8px;border:1.5px solid #e53e6b;background:#fff;color:#e53e6b;font-size:14px;cursor:pointer;transition:all .2s}.btn-period-toggle:hover{background:#fed7e2}.btn-period-toggle.active{background:#e53e6b;color:#fff}.weight-input-row{display:flex;align-items:center;gap:6px}.weight-input{width:80px;flex:none}.weight-unit{font-size:13px;color:#a0aec0}.text-input{width:100%}.fun-item{align-items:flex-start}.fun-content{flex:1;display:flex;flex-direction:column;gap:2px}.fun-text{font-size:14px;color:#4a5568;word-break:break-word;line-height:1.5}.fun-time{font-size:12px;color:#cbd5e0}.module{background:#fff;border-radius:12px;padding:16px;margin-bottom:12px;box-shadow:0 1px 3px #0000000f}.module-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.module-title{font-size:16px;font-weight:600;margin:0;display:flex;align-items:center;gap:6px;color:#2d3748}.module-icon{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:6px;font-size:13px}.todo-icon{background:#ebf4ff;color:#4299e1}.fun-icon{background:#fefcbf;color:#d69e2e}.shop-icon{background:#c6f6d5;color:#38a169}.body-icon{background:#fed7e2;color:#e53e6b}.module-count{font-size:13px;color:#a0aec0;font-weight:500}.module-input-row{display:flex;gap:8px;margin-bottom:12px}.module-input{flex:1;padding:8px 12px;border:1.5px solid #e2e8f0;border-radius:8px;font-size:14px;outline:none;transition:border-color .2s;background:#f7fafc}.module-input:focus{border-color:#667eea;background:#fff}.btn-add{width:36px;height:36px;border-radius:8px;border:none;background:#667eea;color:#fff;font-size:18px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background .2s;flex-shrink:0}.btn-add:hover{background:#5a67d8}.todo-list{list-style:none;padding:0;margin:0}.todo-item{display:flex;align-items:center;gap:10px;padding:8px 0;border-bottom:1px solid #f0f0f0;transition:opacity .2s}.todo-item:last-child{border-bottom:none}.todo-item.done .todo-text{text-decoration:line-through;color:#a0aec0}.btn-check{width:20px;height:20px;border-radius:50%;border:1.5px solid #cbd5e0;background:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .2s;flex-shrink:0;padding:0}.btn-check.checked{background:#667eea;border-color:#667eea}.todo-text{flex:1;font-size:14px;color:#4a5568;word-break:break-word}.btn-delete{border:none;background:none;color:#cbd5e0;cursor:pointer;padding:2px;display:flex;align-items:center;transition:color .2s;flex-shrink:0}.btn-delete:hover{color:#e53e3e}.todo-parent-item{border-bottom:1px solid #f0f0f0}.todo-parent-item:last-child{border-bottom:none}.sub-todo-area{padding-left:36px;padding-bottom:4px}.sub-todo-list{list-style:none;padding:0;margin:0}.sub-item{padding:6px 0;border-bottom:1px solid #f7fafc}.sub-item:last-child{border-bottom:none}.btn-check-sub{width:16px;height:16px}.btn-sub-add{border:none;background:none;color:#cbd5e0;cursor:pointer;padding:2px;display:flex;align-items:center;transition:color .2s;flex-shrink:0}.btn-sub-add:hover{color:#667eea}.sub-count{font-size:11px;color:#a0aec0;background:#f7fafc;padding:1px 6px;border-radius:8px}.sub-input-row{display:flex;gap:6px;margin-top:4px}.sub-input{padding:6px 10px;font-size:13px}.btn-add-sub{width:28px;height:28px;font-size:14px}.module-empty{text-align:center;color:#cbd5e0;font-size:13px;margin:8px 0 0}.shop-input-row{display:flex;gap:8px;margin-bottom:12px}.shop-name{flex:2}.shop-price{flex:1;min-width:80px}.shop-item{gap:8px}.shop-item-name{flex:1;font-size:14px;color:#4a5568}.shop-item.done .shop-item-name{text-decoration:line-through;color:#a0aec0}.shop-item-price{font-size:14px;color:#38a169;font-weight:500;white-space:nowrap}.shop-item.done .shop-item-price{color:#a0aec0}.shop-summary{display:flex;gap:12px;padding:8px 12px;background:#f7fafc;border-radius:8px;margin-bottom:12px;font-size:12px}.shop-summary-item{color:#718096}.shop-summary-item.spent{color:#38a169;font-weight:600}.shop-summary-item.remaining{color:#e53e3e;font-weight:600}.month-view{padding:0 0 16px}.month-weekdays{display:grid;grid-template-columns:repeat(7,1fr);margin-bottom:2px}.month-weekday{text-align:center;font-size:12px;color:#a0aec0;font-weight:500;padding:6px 0}.month-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:1px}.month-cell{background:#fff;padding:3px 3px 2px;min-height:40px;display:flex;flex-direction:column;cursor:pointer;transition:background .15s}.month-cell:hover{background:#f7fafc}.month-cell-empty{background:transparent;cursor:default}.month-cell-empty:hover{background:transparent}.month-cell-today,.month-cell-today:hover{background:#ebf4ff}.month-cell-has-data{min-height:auto}.month-day-num{font-size:12px;color:#4a5568;font-weight:500;line-height:1;margin-bottom:2px}.month-cell-today .month-day-num{color:#667eea;font-weight:700}.month-strips{display:flex;flex-direction:column;gap:1px}.month-strip{display:flex;align-items:center;gap:3px;padding:1px 4px;border-radius:3px;font-size:10px;line-height:1.3;overflow:hidden}.strip-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0}.strip-period{background:#fed7e2;color:#e53e6b;font-weight:500}.strip-todo{background:#ebf4ff;color:#2b6cb0}.strip-todo.strip-done{color:#a0aec0;background:#f0f4f8}.strip-check{width:10px;height:10px;border-radius:50%;border:1.5px solid #4299e1;display:inline-flex;align-items:center;justify-content:center;font-size:7px;color:#fff;flex-shrink:0;cursor:pointer}.strip-check-done{background:#38a169;border-color:#38a169}.strip-fun{background:#feebc8;color:#c05621}.strip-shop-pending{background:#c6f6d5;color:#276749}.strip-shop-done{background:#fefcbf;color:#975a16}.auth-container{min-height:100vh;display:flex;align-items:center;justify-content:center;background:#f0f2f5;padding:16px}.auth-card{background:#fff;border-radius:16px;padding:32px 24px;width:100%;max-width:360px;box-shadow:0 4px 12px #00000014}.auth-title{font-size:22px;font-weight:700;color:#2d3748;margin:0 0 24px;text-align:center}.auth-field{margin-bottom:16px}.auth-label{display:block;font-size:13px;color:#718096;margin-bottom:6px;font-weight:500}.auth-input{width:100%;padding:10px 14px;border:1.5px solid #e2e8f0;border-radius:8px;font-size:14px;outline:none;transition:border-color .2s;background:#f7fafc}.auth-input:focus{border-color:#667eea;background:#fff}.auth-error{color:#e53e3e;font-size:13px;margin:12px 0;text-align:center}.auth-btn{width:100%;padding:12px;border-radius:8px;border:none;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;font-size:15px;font-weight:600;cursor:pointer;transition:opacity .2s}.auth-btn:hover:not(:disabled){opacity:.9}.auth-btn:disabled{opacity:.6;cursor:not-allowed}.auth-switch{text-align:center;margin-top:16px;font-size:13px;color:#718096}.auth-link{border:none;background:none;color:#667eea;font-weight:500;cursor:pointer;padding:0;font-size:13px}.auth-link:hover{text-decoration:underline}.auth-divider{text-align:center;margin:20px 0;position:relative}.auth-divider:before,.auth-divider:after{content:"";position:absolute;top:50%;width:calc(50% - 30px);height:1px;background:#e2e8f0}.auth-divider:before{left:0}.auth-divider:after{right:0}.auth-divider span{background:#fff;padding:0 8px;font-size:12px;color:#a0aec0}.auth-local-btn{width:100%;padding:10px;border-radius:8px;border:1.5px solid #e2e8f0;background:#fff;color:#718096;font-size:14px;cursor:pointer;transition:all .2s}.auth-local-btn:hover{border-color:#cbd5e0;background:#f7fafc}.app{min-height:100vh;background:#f0f2f5}.app-loading{min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#f0f2f5;gap:16px}.loading-spinner{width:40px;height:40px;border-radius:50%;border:3px solid #e2e8f0;border-top-color:#667eea;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.app-loading p{color:#718096;font-size:14px}.main{max-width:480px;margin:0 auto;padding:12px 16px 32px}.main-month{max-width:none;padding:12px 8px 32px}
