*{box-sizing:border-box}body{margin:0;background:#f5f5f7;color:#1d1d1f;font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","SF Pro Display",sans-serif}body.locked{overflow:hidden}button,input,select{font:inherit}.app{max-width:760px;margin:auto;padding:28px 20px 100px}.topbar{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:24px}.topbar h1{font-size:34px;margin:0;letter-spacing:-.7px}.muted{color:#6e6e73;font-size:14px}.topbar .muted{margin:5px 0 0}.icon-btn{border:0;background:transparent;font-size:24px;color:#1d1d1f;min-width:44px;min-height:44px}.panel{background:#fff;border-radius:20px;padding:22px;box-shadow:0 6px 24px #0000000d}.login-panel{max-width:420px;margin:40px auto}.panel h2{margin-top:0}input,select{display:block;width:100%;padding:14px 15px;border:1px solid #d2d2d7;border-radius:12px;margin:8px 0;background:#fff;color:#1d1d1f}.primary{width:100%;border:0;border-radius:12px;padding:14px;background:#007aff;color:#fff;font-weight:600}.filters{display:flex;gap:8px;overflow:auto;padding:4px 0 18px;scrollbar-width:none}.filters::-webkit-scrollbar{display:none}.filter{border:0;background:#e5e5ea;border-radius:999px;padding:9px 15px;white-space:nowrap}.filter.active{background:#007aff;color:#fff}.category{margin:22px 0 8px;font-size:21px;font-weight:700;letter-spacing:-.2px}.subcategory{margin:14px 0 6px;color:#6e6e73;font-weight:600}.task{display:flex;align-items:center;gap:12px;background:#fff;border-radius:15px;padding:14px;margin:7px 0;box-shadow:0 2px 10px #00000008}.task input{width:22px;height:22px;margin:0}.task.done{color:#8e8e93;text-decoration:line-through}.empty{padding:42px 10px;text-align:center;color:#6e6e73}.fab{position:fixed;right:24px;bottom:28px;width:58px;height:58px;border:0;border-radius:50%;background:#007aff;color:#fff;font-size:32px;box-shadow:0 8px 25px #0003}.backdrop,.modal-backdrop{position:fixed;inset:0;background:#0006;z-index:10}.sheet{position:fixed;left:0;right:0;bottom:0;background:#f5f5f7;border-radius:22px 22px 0 0;padding:10px 18px calc(20px + env(safe-area-inset-bottom));z-index:11;box-shadow:0 -10px 40px #0003}.sheet-handle{width:36px;height:5px;border-radius:999px;background:#c7c7cc;margin:2px auto 16px}.sheet-title{font-size:13px;color:#6e6e73;padding:0 12px 8px}.sheet button{display:block;width:100%;border:0;background:#fff;padding:17px 14px;text-align:left;border-bottom:1px solid #e5e5ea}.sheet button:first-of-type{border-radius:14px 14px 0 0}.sheet button:last-child{border-radius:0 0 14px 14px;border:0;margin-top:12px}.danger-text{color:#ff3b30!important}.overlay-view{position:fixed;inset:0;background:#f5f5f7;z-index:20;overflow:auto;padding-bottom:40px}.subbar{height:74px;padding:14px 18px;display:flex;align-items:center;gap:10px;border-bottom:1px solid #e5e5ea;background:#f5f5f7;position:sticky;top:0;z-index:2}.subbar h2{margin:0;font-size:22px}.back-btn{border:0;background:transparent;font-size:36px;line-height:1;width:44px;height:44px;color:#007aff}.small-add{margin-left:auto;border:0;background:#007aff;color:#fff;border-radius:50%;width:38px;height:38px;font-size:25px}.settings-list{max-width:760px;margin:20px auto;padding:0 20px}.settings-row{display:flex;justify-content:space-between;align-items:center;width:100%;padding:18px;border:0;border-bottom:1px solid #e5e5ea;background:#fff;text-align:left}.settings-row:first-child{border-radius:16px 16px 0 0}.settings-row.static{cursor:default}.settings-row.static:last-child{border-radius:0 0 16px 16px}.settings-row strong{font-weight:500;color:#6e6e73}.accounts-list{max-width:760px;margin:20px auto;padding:0 20px}.account-card{width:100%;display:flex;justify-content:space-between;align-items:center;gap:12px;text-align:left;border:0;border-bottom:1px solid #e5e5ea;background:#fff;padding:17px 16px}.account-card:first-child{border-radius:16px 16px 0 0}.account-card:last-child{border-radius:0 0 16px 16px}.account-card strong{display:block;font-size:17px}.account-card span{display:block;color:#6e6e73;font-size:13px;margin-top:3px}.account-meta{text-align:right}.account-meta span:last-child{color:#007aff}.modal-backdrop{display:flex;align-items:flex-end;justify-content:center;padding:12px}.modal{width:min(560px,100%);max-height:92vh;overflow:auto;background:#fff;border-radius:22px;padding:20px;box-shadow:0 10px 40px #0005}.modal-header{display:flex;align-items:center;justify-content:space-between}.modal-header h2{margin:0 0 12px;font-size:22px}.modal label{display:block;font-size:14px;color:#6e6e73;margin:13px 0}.modal label input,.modal label select{color:#1d1d1f;margin-top:6px}.permissions{background:#f5f5f7;border-radius:16px;padding:14px;margin:14px 0}.permissions .label{font-weight:600;margin-bottom:8px}.permissions label{display:flex;align-items:center;gap:8px;color:#1d1d1f;margin:7px 0}.permissions input{width:20px;height:20px;margin:0}.switch-row{display:flex!important;justify-content:space-between;align-items:center}.switch-row input{width:22px!important;height:22px;margin:0!important}.error-msg{color:#ff3b30;min-height:20px;font-size:14px}
@media (min-width:700px){.modal-backdrop{align-items:center}.app{padding-top:40px}.sheet{left:50%;right:auto;width:420px;transform:translateX(-50%);bottom:20px;border-radius:22px}.backdrop{background:#0005}}
