:root{--bg: #fafaf9;--surface: #ffffff;--surface-alt: #f4f4f1;--border: #e7e5e0;--border-strong:#d4d2cc;--text: #1f1f1f;--text-muted: #6b7280;--accent: #2563eb;--accent-hover: #1d4ed8;--danger: #b91c1c;--danger-hover: #991b1b;--success: #16a34a;--shadow-sm: 0 1px 2px rgba(0,0,0,.04);--shadow-md: 0 2px 8px rgba(0,0,0,.06);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;color-scheme:light;color:var(--text);background-color:var(--bg);line-height:1.5;-webkit-font-smoothing:antialiased}*{box-sizing:border-box}body{margin:0;min-height:100vh}a{color:var(--accent);text-decoration:none}a:hover{text-decoration:underline}button{font:inherit;padding:.5rem .95rem;border-radius:6px;border:1px solid var(--border-strong);background:var(--surface);color:var(--text);cursor:pointer;transition:background .12s,border-color .12s,color .12s}button:hover{background:var(--surface-alt)}button:disabled{opacity:.5;cursor:not-allowed}button.primary{background:var(--accent);border-color:var(--accent);color:#fff}button.primary:hover:not(:disabled){background:var(--accent-hover);border-color:var(--accent-hover)}button.danger{background:transparent;border-color:transparent;color:var(--danger)}button.danger:hover:not(:disabled){background:#b91c1c14;color:var(--danger-hover)}input:not([type]),input[type=text],input[type=email],input[type=password],input[type=search],textarea{font:inherit;width:100%;padding:.55rem .75rem;border-radius:6px;border:1px solid var(--border-strong);background:var(--surface);color:var(--text)}input:focus,textarea:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px #2563eb26}input[type=checkbox]{flex:0 0 auto;width:1.05rem;height:1.05rem;accent-color:var(--accent);cursor:pointer;margin:0}textarea{resize:vertical;min-height:6rem}.app--auth{max-width:760px;margin:0 auto;padding:1.5rem 1.5rem 4rem}.app--shell{display:grid;grid-template-columns:220px 1fr;min-height:100vh}.sidebar{border-right:1px solid var(--border);background:var(--surface);padding:1.5rem 1rem;position:sticky;top:0;height:100vh;overflow-y:auto;display:flex;flex-direction:column}.sidebar-title{margin:0 0 1.5rem;font-size:1.15rem;font-weight:600;letter-spacing:-.01em;padding:0 .5rem}.sidebar-title a{color:inherit;text-decoration:none}.sidebar-nav{display:flex;flex-direction:column;gap:.125rem}.sidebar-nav a{display:flex;align-items:center;gap:.5rem;padding:.5rem .75rem;border-radius:6px;color:var(--text);font-size:.9375rem;text-decoration:none}.sidebar-nav a:hover{background:var(--surface-alt)}.sidebar-nav a.active{background:#2563eb1a;color:var(--accent);font-weight:500}.sidebar-icon{font-size:.95rem;line-height:1;flex:0 0 auto;color:currentColor}.sidebar-footer{margin-top:auto;padding-top:.75rem;border-top:1px solid var(--border);display:flex;align-items:center;gap:.5rem}.sidebar-profile{flex:1;min-width:0;display:flex;align-items:center;gap:.5rem;padding:.375rem .5rem;border-radius:6px;color:var(--text);text-decoration:none}.sidebar-profile:hover{background:var(--surface-alt);text-decoration:none}.sidebar-profile-name{font-size:.8125rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sidebar-logout{padding:.375rem .5rem;border:1px solid transparent;background:transparent;color:var(--text-muted);border-radius:6px;display:flex;align-items:center;justify-content:center}.sidebar-logout:hover{background:var(--surface-alt);color:var(--text)}.avatar{display:inline-flex;align-items:center;justify-content:center;border-radius:50%;overflow:hidden;flex:0 0 auto;color:#fff;font-weight:600;-webkit-user-select:none;user-select:none;background:var(--surface-alt)}.avatar img{width:100%;height:100%;object-fit:cover;display:block}.avatar--sm{width:28px;height:28px;font-size:.75rem}.avatar--md{width:36px;height:36px;font-size:.875rem}.avatar--lg{width:96px;height:96px;font-size:2rem}.main{display:flex;flex-direction:column;min-width:0}.main-header{display:flex;justify-content:space-between;align-items:center;padding:.875rem 1.5rem;border-bottom:1px solid var(--border);background:var(--surface)}.main-header .user{font-size:.875rem;color:var(--text-muted);display:flex;gap:.75rem;align-items:center}.main-body{max-width:760px;width:100%;margin:0 auto;padding:1.75rem 1.5rem 4rem}.auth-card{max-width:380px;margin:5rem auto;padding:2rem;background:var(--surface);border:1px solid var(--border);border-radius:10px;box-shadow:var(--shadow-md)}.auth-card h1{margin:0 0 1.5rem;font-size:1.25rem;font-weight:600}.auth-card form{display:flex;flex-direction:column;gap:.75rem}.auth-card .error{color:var(--danger);font-size:.875rem;padding:.5rem .75rem;background:#b91c1c0f;border-radius:6px}.auth-card .link{margin-top:1.25rem;font-size:.875rem;color:var(--text-muted)}.new-task{display:flex;gap:.5rem;margin-bottom:1.25rem}.new-task input{flex:1;min-width:0}.tasks-list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:.375rem}.tasks-list li{display:flex;align-items:center;gap:.75rem;padding:.625rem .875rem;background:var(--surface);border:1px solid var(--border);border-radius:8px;box-shadow:var(--shadow-sm);transition:border-color .12s,box-shadow .12s}.tasks-list li:hover{border-color:var(--border-strong)}.tasks-list li.completed{background:var(--surface-alt)}.tasks-list li.completed .title{text-decoration:line-through;color:var(--text-muted)}.tasks-list .title{flex:1;min-width:0;color:inherit;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tasks-list .title:hover{color:var(--accent);text-decoration:none}.tasks-list .row-time{font-size:.75rem;color:var(--text-muted);white-space:nowrap;cursor:default}.task-editor{display:flex;flex-direction:column;gap:1rem}.task-editor label{font-size:.8125rem;color:var(--text-muted);font-weight:500;display:block;margin-bottom:.25rem}.task-editor .timestamps{font-size:.75rem;color:var(--text-muted);margin-top:-.5rem}.task-editor .timestamps span{cursor:default}.task-editor .actions{display:flex;gap:.5rem;justify-content:space-between;align-items:center;padding-top:.5rem}.task-editor .checkbox{display:flex;align-items:center;gap:.5rem}.task-editor .checkbox label{margin:0;font-size:.875rem;color:var(--text)}.attachments{margin-top:2rem;padding-top:1.5rem;border-top:1px solid var(--border)}.attachments h2{font-size:.875rem;font-weight:600;color:var(--text-muted);text-transform:uppercase;letter-spacing:.04em;margin:0 0 1rem}.drop-zone{border:2px dashed var(--border-strong);border-radius:8px;padding:1.5rem;text-align:center;color:var(--text-muted);background:var(--surface-alt);cursor:pointer;margin-bottom:1rem;transition:border-color .15s,background .15s,color .15s}.drop-zone:hover{border-color:var(--accent);color:var(--text)}.drop-zone.active{border-color:var(--accent);background:#2563eb14;color:var(--accent)}.attachment-list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:.5rem}.attachment-list li{display:grid;grid-template-columns:1fr auto;grid-template-areas:"main remove" "description remove";align-items:center;column-gap:.75rem;row-gap:.375rem;padding:.625rem .875rem;background:var(--surface);border:1px solid var(--border);border-radius:6px}.attachment-list .attachment-main{grid-area:main;display:flex;align-items:center;gap:.75rem;min-width:0}.attachment-list .attachment-description{grid-area:description;font-size:.8125rem;padding:.35rem .5rem}.attachment-list .danger{grid-area:remove}.attachment-list a{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--text)}.attachment-list a:hover{color:var(--accent)}.attachment-list .meta{font-size:.75rem;color:var(--text-muted);white-space:nowrap}.empty{color:var(--text-muted);text-align:center;padding:2rem 0;font-size:.875rem}.search-button{display:inline-flex;align-items:center;gap:.5rem;padding:.375rem .6rem .375rem .75rem;font-size:.8125rem;color:var(--text-muted)}.search-button kbd{font-family:inherit;font-size:.6875rem;background:var(--surface-alt);border:1px solid var(--border);border-radius:4px;padding:1px 6px;color:var(--text-muted)}.search-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a59;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);z-index:50;display:flex;align-items:flex-start;justify-content:center;padding-top:10vh}.search-modal{width:100%;max-width:640px;background:var(--surface);border:1px solid var(--border);border-radius:12px;box-shadow:0 20px 50px #0000002e;display:flex;flex-direction:column;overflow:hidden}.search-modal input[type=search]{border:none;border-bottom:1px solid var(--border);border-radius:0;padding:1rem 1.25rem;font-size:1rem;box-shadow:none!important}.search-modal input[type=search]:focus{outline:none;border-color:var(--border);border-bottom-color:var(--accent)}.search-list{max-height:60vh;overflow-y:auto;scrollbar-width:thin}.search-empty{padding:2rem;text-align:center;color:var(--text-muted);font-size:.875rem}.search-row{cursor:pointer;border-bottom:1px solid var(--border);transition:background .08s}.search-row.active{background:#2563eb12}.search-row:last-child{border-bottom:none}.search-row-inner{padding:.625rem 1.25rem;display:flex;flex-direction:column;gap:.25rem;height:100%;justify-content:center}.search-row-title{display:flex;align-items:baseline;gap:.4rem;font-size:.9375rem}.search-row-kind{font-size:.875rem}.search-row-task{font-weight:500;color:var(--text)}.search-row-attachment{color:var(--text-muted);font-size:.8125rem}.search-row-snippet{font-size:.8125rem;color:var(--text-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.search-row-snippet strong{color:var(--text);background:#facc1559;font-weight:600;padding:0 1px;border-radius:2px}.search-footer{display:flex;gap:1.25rem;padding:.5rem 1.25rem;border-top:1px solid var(--border);background:var(--surface-alt);font-size:.75rem;color:var(--text-muted)}.search-footer kbd{font-family:inherit;font-size:.6875rem;background:var(--surface);border:1px solid var(--border-strong);border-radius:3px;padding:0 5px;margin-right:4px}.paste-chooser-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a59;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);z-index:70;display:flex;align-items:center;justify-content:center}.paste-chooser{background:var(--surface);border:1px solid var(--border);border-radius:10px;box-shadow:0 20px 50px #0000002e;padding:1.25rem 1.5rem;min-width:320px}.paste-chooser h3{margin:0 0 1rem;font-size:1rem;font-weight:600}.paste-chooser-actions{display:flex;gap:.5rem;justify-content:flex-end}.paste-toast{position:fixed;bottom:1.5rem;right:1.5rem;z-index:60;background:var(--text);color:var(--surface);padding:.625rem 1rem;border-radius:8px;font-size:.8125rem;box-shadow:0 8px 24px #0003;animation:paste-toast-in .15s ease-out}@keyframes paste-toast-in{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}.profile{display:flex;flex-direction:column;gap:1.5rem}.profile-header-card{display:flex;align-items:center;gap:1.25rem;padding:1.25rem 1.5rem;background:var(--surface);border:1px solid var(--border);border-radius:10px;box-shadow:var(--shadow-sm)}.profile-header-meta{display:flex;flex-direction:column;gap:.25rem;min-width:0}.profile-header-name{font-size:1.25rem;font-weight:600}.profile-header-email{color:var(--text-muted);font-size:.9375rem}.profile-header-since{color:var(--text-muted);font-size:.8125rem}.profile-section{padding:1.25rem 1.5rem;background:var(--surface);border:1px solid var(--border);border-radius:10px;box-shadow:var(--shadow-sm)}.profile-section h2{margin:0 0 .875rem;font-size:.875rem;font-weight:600;color:var(--text-muted);text-transform:uppercase;letter-spacing:.04em}.profile-form{display:flex;gap:.5rem;align-items:center}.profile-form input{flex:1;min-width:0}.profile-form-stacked{display:flex;flex-direction:column;gap:.625rem;max-width:360px}.profile-avatar-row{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap}.profile-avatar-row input[type=file]{flex:1;min-width:220px}.profile-hint{margin:.5rem 0 0;font-size:.8125rem;color:var(--text-muted)}.profile-ok{margin-top:.75rem;padding:.5rem .75rem;font-size:.875rem;background:#16a34a14;color:var(--success);border-radius:6px}.profile-err{margin-top:.75rem;padding:.5rem .75rem;font-size:.875rem;background:#b91c1c0f;color:var(--danger);border-radius:6px}
