:root{--bg: #f6f8fb;--card-radius: 22px;--shadow: 0 8px 24px rgba(0, 0, 0, .12);--shadow-soft: 0 2px 10px rgba(0, 0, 0, .06);--text: #1f2a36;--card-text: #1f2a36;--muted: #5a6876;--card-muted: #5a6876}app-root{width:100%}:root{color-scheme:light}:root[data-theme=dark]{color-scheme:dark}[data-theme=dark]{--bg: #0f1216;--text: #e8eef6;--card-text: #1f2a36;--muted: #9aa7b4;--card-muted: #5a6876;--shadow: 0 8px 24px rgba(0, 0, 0, .12);--shadow-soft: 0 2px 10px rgba(0, 0, 0, .06)}*{box-sizing:border-box}html,body{height:100%}html{scroll-behavior:smooth}body{margin:0;font:16px/1.45 system-ui,-apple-system,Segoe UI,Roboto,Helvetica Neue,Arial;color:var(--text);background:var(--bg);display:grid;place-items:start center;padding:16px 0 96px}.app{width:min(880px,100%)}header{display:flex;flex-direction:column;gap:8px;padding-left:16px;padding-right:16px}header .top{display:flex;align-items:center;gap:12px;justify-content:space-between}.lists{display:inline-flex;align-items:center;gap:8px}.list-select{appearance:none;-webkit-appearance:none;-moz-appearance:none;background:#fff;border:1px solid #e5e9ef;border-radius:12px;padding:8px 12px;box-shadow:var(--shadow-soft);font:inherit;color:var(--text);cursor:pointer}.list-add{border:1px solid #e5e9ef;background:#fff;border-radius:10px;width:32px;height:32px;display:grid;place-items:center;cursor:pointer;box-shadow:var(--shadow-soft)}.list-select,.list-add{display:none}header h1{font-size:28px;font-weight:800;letter-spacing:.2px;margin:0}.chips{display:grid;gap:6px}.chips .row{white-space:nowrap}.row,.list{scrollbar-width:none;-ms-overflow-style:none}.row::-webkit-scrollbar,.list::-webkit-scrollbar{display:none}.row{display:flex;flex-wrap:nowrap;gap:6px;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch}.chip{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border-radius:999px;background:#fff;border:1px solid #e5e9ef;box-shadow:var(--shadow-soft);font-size:13px;cursor:pointer;-webkit-user-select:none;user-select:none;flex:0 0 auto;filter:opacity(.6)}.chip.active{border:1px solid #9c9c9c;filter:opacity(1)}[data-theme=dark] .chip{background:#151a21;border-color:#2a3340}.chip .del{display:inline-grid;place-items:center;width:18px;height:18px;border-radius:50%;color:var(--muted);cursor:pointer;opacity:1!important}.chip .x{font-weight:700}.chip.active{border-color:#c7d1e0}.mention-container{position:relative}.mention-grow{flex:1;min-width:0}.mention-list{position:absolute;left:0;right:0;top:100%;margin-top:4px;padding:4px 0;background:#fffffffa;border-radius:6px;box-shadow:0 4px 14px #0000001f;list-style:none;overflow-y:visible;z-index:10000}[data-theme=dark] .mention-list{background:#151a21fa}.mention-item{padding:6px 12px;cursor:pointer;font-size:.95rem;color:var(--text)}[data-theme=dark] .mention-item{color:var(--muted)}.mention-item.active,.mention-item:hover{background:#3498db29}.quick{display:flex;gap:10px;width:100%;background:#fff;padding:10px;border-radius:14px;box-shadow:var(--shadow-soft);align-items:center}.quick input{flex:1;border:0;outline:0;font:inherit;padding:12px 14px;border-radius:10px;background:#f1f4f8}[data-theme=dark] .quick{background:#151a21}[data-theme=dark] .quick input{background:#10151c;color:var(--card-text);-webkit-text-fill-color:var(--card-text)}[data-theme=dark] .quick input::placeholder{color:var(--card-text)}:root[data-theme=dark] input,:root[data-theme=dark] textarea,:root[data-theme=dark] select{color:var(--card-text);-webkit-text-fill-color:var(--card-text)}.quick button{border:0;padding:12px 16px;border-radius:12px;background:var(--text);color:#fff;cursor:pointer;font-weight:600}.list{display:grid;gap:0;padding:4px 16px 25px;max-height:calc(100vh - 145px);overflow-y:auto}#catsRow~.list,#catsRow+.list{max-height:calc(100vh - 100px)}#tagsRow~.list,#tagsRow+.list{max-height:calc(100vh - 100px)}.list.notes-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:12px;align-content:start;padding-bottom:8px;padding-top:16px}.card{position:relative;overflow:hidden;border-radius:var(--card-radius);color:var(--card-text);background:linear-gradient(120deg,var(--c1),var(--c2));box-shadow:var(--shadow);isolation:isolate;cursor:pointer}@supports (-webkit-touch-callout: none){[data-theme=dark] .card:after{background:#0000006b}}.card:not(:first-child){margin-top:10px}.rowx{display:flex;justify-content:space-between;gap:16px;align-items:start;padding:22px}.title{font-size:18px;font-weight:400;margin:0}[data-theme=dark] .card{filter:invert(1)}.card.done .title{text-decoration:line-through;opacity:.8}.desc{margin:0;color:var(--card-muted);max-width:52ch;font-size:16px;padding:0 22px 22px;transition:all .3s cubic-bezier(.4,0,.2,1);overflow:hidden}.card:not(:hover):not(.touch-active) .desc{max-height:0;padding-top:0;padding-bottom:0;opacity:0}.card:hover .desc,.card.touch-active .desc{padding-top:0;padding-bottom:22px;opacity:1}.card:not(:hover) .desc:not(:empty):before{color:var(--card-muted);opacity:.6;font-size:18px;line-height:1}.card:hover .desc:before{display:none}.title-input{font-size:18px;font-weight:400;margin:0;border:0;outline:0;width:100%;background:transparent;color:inherit}.desc-input{display:block;width:100%;border:0;outline:0;background:transparent;color:var(--muted);font:inherit;font-size:16px;padding:0 22px 22px;resize:vertical;min-height:44px}.title-input::placeholder,.desc-input::placeholder{color:#8a95a3}.tags{margin:0;font-size:14px;color:var(--muted);padding:0 22px 22px}.tags span{margin-right:6px;cursor:pointer}.check{min-width:24px;min-height:24px;display:grid;place-items:center;border-radius:50%;background:#ffffff80;cursor:pointer}@keyframes cardIn{0%{opacity:0;transform:translateY(12px) scale(.98)}to{opacity:1;transform:none}}@keyframes pop{0%{transform:scale(1)}50%{transform:scale(.98)}to{transform:scale(1)}}@keyframes pulse{0%{box-shadow:0 0 #0000002e}to{box-shadow:0 0 0 14px #0000}}.card{will-change:transform,opacity}.card.enter{animation:cardIn .35s cubic-bezier(.2,.8,.2,1) both}.card.solving{animation:pop .22s ease}.check.pulse{animation:pulse .6s ease-out}.card.done{filter:grayscale(1) brightness(.8);opacity:.7}[data-theme=dark] .card.done{filter:grayscale(1) brightness(.4);opacity:.7}.note-card{position:relative;border-radius:12px;padding:14px;background:#fffad1;box-shadow:var(--shadow);color:#1b2430;cursor:pointer;transition:transform .12s ease;display:flex;flex-direction:column;aspect-ratio:1 / 1}.note-card:hover{transform:translateY(-2px)}.note-card .text{margin:0;white-space:pre-wrap;overflow:auto;max-height:40vh;overflow-wrap:anywhere;word-break:break-word}.note-card .tags{padding:10px 0 0;font-size:13px;color:#4b5563}.note-card .tags span{color:inherit}.note-card .del{position:absolute;top:8px;right:8px;width:22px;height:22px;display:grid;place-items:center;border-radius:50%;background:#0000000f;color:currentColor;cursor:pointer}.del{cursor:pointer}.note-card .pin{position:absolute;top:8px;right:40px;width:22px;height:22px;display:grid;place-items:center;border-radius:50%;background:#0000000f;color:currentColor;display:none}.note-new{display:grid;gap:8px}.note-input{width:100%;min-height:60px;border:0;outline:0;border-radius:10px;padding:10px 12px;background:transparent;box-shadow:none;font:inherit;height:100%;overflow:auto;color:inherit}[data-theme=dark] .note-card{filter:invert(1)}.suggest{background:#fff;border:1px solid #e5e9ef;box-shadow:var(--shadow-soft);border-radius:12px;margin:0 22px 14px;overflow:hidden}[data-theme=dark] .suggest{background:#151a21;border-color:#2a3340}[data-theme=dark] .suggest .item{color:#e8eef6}[data-theme=dark] .suggest .item.active{background:#ffffff0f}.suggest.hidden{display:none}.suggest .item{padding:10px 12px;font-size:14px;cursor:pointer}.suggest .item+.item{border-top:1px solid #f0f3f7}.suggest .item.active{background:#f6f8fb}.account-btn{display:inline-grid;place-items:center;width:36px;height:36px;border-radius:50%;border:1px solid #e5e9ef;background:#fff;box-shadow:var(--shadow-soft);cursor:pointer;color:var(--text)}.account-btn:hover{filter:brightness(.98)}[data-theme=dark] .account-btn{background:#151a21;border-color:#2a3340}.share-btn{display:inline-grid;place-items:center;width:36px;height:36px;border-radius:50%;border:1px solid #e5e9ef;background:#fff;box-shadow:var(--shadow-soft);cursor:pointer;color:var(--text);margin-right:6px}.share-btn:hover{filter:brightness(.98)}[data-theme=dark] .share-btn{background:#151a21;border-color:#2a3340}.account .menu .item.disabled{opacity:.5;pointer-events:none}.modal-backdrop{position:fixed;inset:0;background:#00000052;align-items:center;justify-content:center;z-index:10000}.modal-backdrop.show{display:flex}.modal{width:min(460px,92vw);background:#fff;border-radius:14px;border:1px solid #e5e9ef;box-shadow:var(--shadow);overflow:hidden;margin:10% auto 0}.modal .mh{padding:14px 16px;font-weight:700;border-bottom:1px solid #f0f3f7}.modal .mc{padding:16px;display:grid;gap:12px}.modal .mf{padding:12px 16px;border-top:1px solid #f0f3f7;display:flex;gap:8px;justify-content:flex-end}.modal input,.modal textarea{width:100%;border:1px solid #e5e9ef;border-radius:10px;padding:10px 12px;background:#fff;font:inherit}.modal input::placeholder,.modal textarea::placeholder{color:#8a95a3}.btn{border:1px solid #e5e9ef;border-radius:10px;padding:8px 12px;background:#fff;cursor:pointer}.btn.primary{background:var(--text);color:#fff;border-color:transparent}.err{color:#b42318;font-size:13px;display:none}[data-theme=dark] .modal{background:#151a21;border-color:#2a3340;color:#e8eef6;box-shadow:0 20px 40px #0009}[data-theme=dark] .modal .mh{border-bottom-color:#263042}[data-theme=dark] .modal .mf{border-top-color:#263042}[data-theme=dark] .modal input,[data-theme=dark] .modal textarea{background:#10151c;border-color:#2a3340;color:#e8eef6}[data-theme=dark] .modal input::placeholder,[data-theme=dark] .modal textarea::placeholder{color:#a2afbd}[data-theme=dark] .btn{background:#151a21;border-color:#2a3340;color:#e8eef6}[data-theme=dark] .btn.primary{background:#3a78ff;color:#fff;border-color:transparent}.account{position:relative}.account .menu{position:absolute;top:60px;right:16px;background:#fff;border:1px solid #e5e9ef;box-shadow:var(--shadow);border-radius:12px;min-width:240px;padding:6px;z-index:9999}.account .menu.hidden{display:none}.account .menu .item{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:8px;cursor:pointer;color:var(--text);white-space:nowrap}.account .menu .item:hover{background:#f6f8fb}.account .menu .divider{height:1px;background:#f0f3f7;margin:6px 0}[data-theme=dark] .account .menu{background:#151a21!important;border-color:#2a3340!important;box-shadow:0 10px 28px #0009!important}[data-theme=dark] .account .menu .item{color:#fff}[data-theme=dark] .account .menu .item:hover{background:#ffffff0f}[data-theme=dark] .account .menu .divider{background:#263042}.user-list-item{display:flex;align-items:center;justify-content:space-between;padding:4px;border-radius:5px}.user-list-item:hover{background-color:#bbbbbba7}.remove-user-btn{background:none;border:none;color:#888;cursor:pointer;font-size:16px;padding:2px 6px;border-radius:4px;transition:background .2s}.count{border:1px solid #00000059;border-radius:50px;width:18px;height:18px;display:inline-block;text-align:center;font-size:10px}.chips{padding-left:16px;padding-top:8px;padding-bottom:4px}.tags-container{padding-bottom:10px}.cursor-pointer{cursor:pointer}.color-dot{appearance:none;-webkit-appearance:none;width:15px;height:15px;border-radius:50%;padding:0;border:none;overflow:hidden}.color-dot::-webkit-color-swatch-wrapper{padding:0}.color-dot::-webkit-color-swatch{border:none;border-radius:0}.flex{display:flex}[data-theme=dark] .editor{color:#fff!important;-webkit-text-fill-color:#fff!important;background:var(--bg)!important}[data-theme=dark] .editor textarea{-webkit-text-fill-color:#fff!important;color:#fff!important;background:var(--bg)!important}[data-theme=dark] .tab.active{background:var(--bg)!important;opacity:1;border-bottom:0}
