:root{font-family:system-ui,-apple-system,Roboto,sans-serif;color:#202126;background:#f3f3fa;--accent:#4d63f5;--muted:#626572;--line:#eeeef4}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer;color:inherit;border:0}button:disabled{opacity:.4;cursor:default}[hidden]{display:none!important}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,a:focus-visible,.task-copy:focus-visible{outline:3px solid var(--accent);outline-offset:3px}a{color:var(--accent)}.gallery{max-width:520px;margin:auto;padding:12px}.gallery-head,.variants,.notes,.gallery-foot{display:none}.workspace{display:block}.device{height:calc(100dvh - 24px);min-height:460px;max-height:950px;padding:4px;position:relative;display:flex;flex-direction:column;overflow:hidden;--bg:#f3f3fa;--fg:#202126;--muted:#626572}.app-header{height:48px;flex-shrink:0;display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.mode{background:none;font-size:16px;font-weight:600;min-height:48px;padding:0 4px}.settings{background:none;font-size:26px;width:48px;height:48px}.task-area{flex:1;min-height:0;position:relative;display:flex;margin:0 0 12px}.task{background:white;border-radius:20px;padding:24px 20px;width:100%;height:100%;display:flex;flex-direction:column;min-height:0;position:relative;transition:transform 180ms ease-out;touch-action:auto;will-change:transform}.task.dragging{transition:none;user-select:none}.task h2{font-size:25px;line-height:1.25;font-weight:650;letter-spacing:-.5px;margin:0 0 16px;overflow-wrap:anywhere;max-height:32%;overflow:auto;touch-action:none;flex-shrink:0}.task-copy{flex:1;min-height:44px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;touch-action:pan-y}.description{font-size:16px;line-height:1.65;color:#41434d;white-space:pre-wrap;overflow-wrap:anywhere;margin:0;padding-bottom:16px}.context{display:grid;grid-template-columns:1fr 1fr;gap:10px 18px;border-top:1px solid var(--line);padding-top:14px;margin-top:10px;font-size:13px;line-height:1.4;touch-action:none;flex-shrink:0;max-height:28%;overflow:auto}.context span{overflow-wrap:anywhere}.context small{display:block;font-size:11px;color:var(--muted);margin-bottom:2px}.more{align-self:flex-start;min-height:44px;background:none;padding:12px 0 0;font-size:13px;color:var(--accent);touch-action:none;flex-shrink:0}.actions{flex-shrink:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;background:#fff;border-radius:14px;padding:4px}.action{background:none;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:62px;padding:5px 2px;border-radius:10px;font-size:12px}.action .arrow{font-size:20px;line-height:1}.action .label{font-size:11px;line-height:1.25;text-align:center}.action[data-direction=right]{background:#eef0ff;color:#3449d0}.action[data-direction=down]{color:#ba3647}.action:active{background:#e9ebfa}.app-footer{flex-shrink:0;display:flex;align-items:center;justify-content:space-between;min-height:48px;font-size:12px;color:var(--muted)}.app-footer button{min-height:48px;background:none;padding:8px;font-size:13px;color:var(--muted)}.feedback{position:absolute;left:12px;right:12px;top:12px;background:#eef0ff;color:#3449d0;border:1px solid #b9c2ff;border-radius:10px;padding:10px;font-size:14px;font-weight:600;opacity:0;pointer-events:none;box-shadow:0 3px 12px #2021260d}.feedback[data-ready=true]{background:var(--accent);color:#fff;border-color:var(--accent)}.storage-warning{position:absolute;z-index:5;top:54px;left:5px;right:5px;background:#fff4da;border:1px solid #dbc38d;color:#5d451e;border-radius:10px;padding:12px;font-size:12px;line-height:1.4;pointer-events:none}#recover-storage{position:absolute;z-index:6;bottom:60px;left:20px;right:20px;min-height:48px;background:#fff4da}.session-ended{position:absolute;inset:0;background:var(--bg);display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:24px;z-index:2}.session-ended h2{font-size:25px}.session-ended p{font-size:14px;color:var(--muted)}.session-ended button{background:var(--accent);color:white;min-height:48px;border-radius:12px;padding:12px 20px}.session-ended .end-undo{margin-top:12px;background:none;color:var(--muted)}dialog{background:#fff;color:#202126;border:0;border-radius:20px;width:calc(100% - 24px);max-width:430px;padding:22px;max-height:88dvh;overflow:auto}dialog::backdrop{background:#17192566}dialog h2{font-size:23px;font-weight:650;margin:0 0 16px}dialog p{font-size:13px;line-height:1.65;color:var(--muted)}dialog label{font-size:13px;display:block;margin:18px 0 8px}dialog input,dialog select,dialog textarea{width:100%;border:1px solid #dddfea;background:#fff;border-radius:10px;padding:12px;font-size:15px;min-height:48px}dialog textarea{min-height:140px}.dialog-top{display:flex;align-items:center;justify-content:space-between;gap:8px}.dialog-top small{font-size:11px;white-space:nowrap;color:var(--muted)}.close{background:none;width:48px;height:48px;font-size:26px;flex-shrink:0}.dialog-actions{display:flex;gap:8px;margin-top:18px}.dialog-actions button{flex:1;min-height:48px;border-radius:10px;padding:10px;background:#f0f1f7;font-size:13px}.dialog-actions .primary{background:var(--accent);color:#fff}.dialog-actions .danger{background:#ba3647;color:white}.bucket-options{display:grid;gap:8px}.bucket-options button{display:flex;flex-direction:column;gap:5px;text-align:left;border:1px solid var(--line);background:#fafaff;border-radius:12px;padding:14px;min-height:64px}.bucket-options strong{font-size:15px}.bucket-options span{font-size:12px;color:var(--muted)}.check{display:flex;align-items:center;gap:10px;line-height:1.5}.check input{width:22px;height:22px;min-height:22px;accent-color:var(--accent)}#project-list{max-height:220px;overflow:auto}#project-list label{margin:10px 0}#connection-status{white-space:pre-wrap}.full-desc{white-space:pre-wrap;overflow-wrap:anywhere}#open-ticktick{display:block;padding:12px 0;min-height:48px}[data-dialog-status]{background:#fff4da;color:#5d451e;padding:12px;border-radius:10px}.toast{position:fixed;z-index:20;bottom:18px;left:50%;transform:translateX(-50%);max-width:90%;background:#252739;color:#fff;padding:12px 18px;border-radius:12px;font-size:13px;pointer-events:none}
@media(max-width:350px){.gallery{padding:8px}.device{height:calc(100dvh - 16px)}.task{padding:18px 16px}.task h2{font-size:22px}.description{font-size:15px}.action .label{font-size:10px}}
@media(prefers-reduced-motion:reduce){.task{transition:none}}
