@charset "UTF-8";
:root{--navy:#253e5e;--blue:#315e91;--blue-soft:#e8eff7;--ink:#243044;--muted:#6f7e91;--line:#e4e9ef;--bg:#f7f9fc;--sidebar:#f1f4f8;--white:#fff;--danger:#b54348;--success:#337261;--shadow:0 14px 50px #243e5e20;--font:-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans KR","Malgun Gothic",sans-serif}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:var(--font);color:var(--ink);font-size:var(--ui-font-size,16px)}body{background:var(--bg)}button,input,textarea,select{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer;border:1px solid transparent;background:none;color:inherit;border-radius:8px}button:disabled{opacity:.45;cursor:wait}button:hover{background:#e8eef5}a{color:var(--blue)}input,textarea,select{border:1px solid #dce3eb;border-radius:8px;padding:10px 12px;background:#fff;color:var(--ink);min-width:0}input:focus,textarea:focus,select:focus{outline:2px solid #b6cee7;outline-offset:1px;border-color:#9eb9d7}button:focus-visible,a:focus-visible{outline:3px solid #9fbddd;outline-offset:2px}[hidden]{display:none!important}h1,h2,h3,p{margin-top:0}.muted{color:var(--muted)}.small{font-size:0.85714rem}.primary{background:var(--navy);color:#fff;padding:11px 18px;font-weight:600;border-color:var(--navy)}.primary:hover{background:#33547b}.secondary{background:#f7f9fc;border-color:var(--line);padding:10px 14px}.danger{color:var(--danger)}.danger.solid{background:var(--danger);color:white}.icon-button{width:34px;height:34px;display:inline-flex;align-items:center;justify-content:center;flex:none;font-size:1.4286rem;color:var(--muted);line-height:1}.icon-button.active{background:var(--blue-soft);color:var(--blue)}.icon-button.compact{width:25px;height:25px;font-size:1.5rem}.text-button{color:var(--blue);font-size:0.85714rem;padding:4px 6px}.brand-symbol{display:inline-flex;align-items:center;justify-content:center;flex:none;width:36px;height:36px;background:var(--navy);color:#fff;border-radius:11px;font-size:2.1429rem;font-weight:700;font-family:Georgia,serif;padding-bottom:4px}.workspace{height:100dvh;display:grid;grid-template-columns:224px 300px minmax(0,1fr);overflow:hidden}.sidebar{background:var(--sidebar);border-right:1px solid var(--line);display:flex;flex-direction:column;overflow-y:auto;padding:27px 15px 0}.brand{text-decoration:none;display:flex;gap:10px;align-items:center;margin:0 7px 27px;color:var(--navy)}.brand strong{display:block;font-size:1.3571rem;letter-spacing:-.8px;max-width:145px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.brand small{font-size:0.57143rem;letter-spacing:1.5px;display:block;margin-top:4px;color:#7d8fa5}.new-note{width:100%;display:flex;gap:9px;align-items:center;justify-content:center;margin-bottom:22px;font-size:1rem;box-shadow:0 3px 7px #253e5e15}.new-note span{font-size:1.5rem;line-height:1}.main-nav{display:grid;gap:4px}.nav-item{display:flex;align-items:center;gap:11px;padding:10px 12px;border-radius:8px;width:100%;text-align:left;color:#617185;min-height:39px}.nav-item.active{background:#e1e9f3;color:var(--navy);font-weight:650}.nav-icon{width:19px;font-size:1.2143rem;text-align:center;color:#71849a}.nav-item.active .nav-icon{color:var(--blue)}.sidebar-section{margin-top:28px}.section-label{display:flex;justify-content:space-between;align-items:center;margin:0 9px 9px}.section-label h2{font-size:0.71429rem;text-transform:uppercase;letter-spacing:1.5px;font-weight:700;color:#8995a5;margin:0}.folder-tree{display:grid;gap:2px}.folder-row{display:flex;align-items:center;border-radius:7px;min-height:34px}.folder-row:hover{background:#e7edf4}.folder-row.active{background:#e1e9f3;color:var(--navy)}.folder-open{border-radius:7px;display:flex;align-items:center;flex:1;text-align:left;gap:8px;padding:8px 4px 8px 9px;overflow:hidden;font-size:0.85714rem;color:#576a80}.folder-open .folder-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.folder-glyph{color:#90a1b6;font-size:1.0714rem}.folder-options{opacity:0;width:25px;height:27px;font-size:1.1429rem;margin-right:3px;color:#7f8da0}.folder-row:hover .folder-options,.folder-options:focus-visible{opacity:1}.tag-cloud{display:flex;flex-wrap:wrap;gap:5px;padding:0 7px}.tag-cloud button{padding:5px 7px;border:1px solid #e0e6ee;color:#6d7f94;background:#f7f9fc;font-size:0.78571rem}.tag-cloud button.active{color:var(--blue);background:#e1e9f3;border-color:#bbcee1}.sidebar-bottom{margin-top:auto;padding-top:32px}.account-button{border-top:1px solid #dde5ef;display:flex;align-items:center;gap:9px;text-align:left;width:100%;padding:15px 2px 13px;border-radius:0}.avatar{background:#dee7f1;color:#456282;width:30px;height:30px;display:inline-flex;align-items:center;justify-content:center;font-weight:700;border-radius:10px}.account-text{flex:1;min-width:0}.account-text strong{display:block;font-size:0.85714rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:140px}.account-text small{font-size:0.71429rem;color:#8a96a6;display:block;margin-top:3px}.sidebar-foot{display:flex;align-items:center;justify-content:space-between;font-size:0.64286rem;color:#90a0b1;border-top:1px solid #e2e8f0;padding:12px 0}.sidebar-foot button{font-size:0.71429rem;color:#8593a5;padding:3px}.sidebar-foot i{width:5px;height:5px;background:#78a798;border-radius:50%;display:inline-block;margin-right:3px}.sidebar-foot .disconnected i{background:#bd7a7a}.note-list-panel{background:#fbfcfe;border-right:1px solid var(--line);display:flex;flex-direction:column;overflow:hidden}.list-header{padding:30px 20px 0}.list-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:23px}.list-heading>div{flex:1;min-width:0}.eyebrow{font-size:0.57143rem;letter-spacing:2px;color:#98a6b8;display:block;margin-bottom:7px;font-weight:650}.list-heading h1{font-size:1.5rem;margin:0;color:var(--navy);letter-spacing:-.7px;line-height:1.3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.search-box{display:flex;align-items:center;gap:6px;background:#f0f3f8;border:1px solid #e8edf4;border-radius:9px;padding:0 9px;color:#8b9bb0;min-height:38px}.search-box span{font-size:1.5714rem}.search-box input{border:0;background:transparent;outline:none!important;box-shadow:none;padding:8px 1px;font-size:0.85714rem;flex:1;width:0}.search-box input::placeholder{color:#97a5b6}.search-box kbd{font-family:inherit;font-size:0.64286rem;white-space:nowrap;border:1px solid #dfe6ef;border-radius:3px;padding:2px 3px;color:#9eacbc}.list-context{display:flex;justify-content:space-between;align-items:center;min-height:44px;font-size:0.71429rem;color:#9aa6b5}.note-list{overflow-y:auto;flex:1;padding:0 9px 15px}.note-card{display:block;width:100%;text-align:left;padding:16px 12px;margin-bottom:5px;background:#fff;border:1px solid #edf0f5;border-radius:10px;transition:background .15s,border-color .15s;position:relative}.note-card:hover{background:#f4f7fb;border-color:#dfe6f0}.note-card.active{background:#eaf0f8;border-color:#ccdcec;box-shadow:0 2px 5px #253e5e03}.note-card.active:before{content:"";position:absolute;left:-1px;top:20%;bottom:20%;width:3px;background:#4b7199;border-radius:0 3px 3px 0}.note-card .card-top{display:flex;align-items:center;gap:5px;margin-bottom:8px;min-height:17px}.note-card h2{font-size:0.92857rem;line-height:1.4;font-weight:650;color:#384b63;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}.card-star{font-size:0.85714rem;color:#a98b52}.card-pin{font-size:0.85714rem;color:#5d7898}.note-card p{font-size:0.78571rem;color:#8c99aa;line-height:1.75;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:19px;max-height:39px;margin:0 0 11px;word-break:break-word}.card-foot{display:flex;align-items:center;justify-content:space-between;font-size:0.64286rem;color:#9ca8b7;gap:5px}.card-folder{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;max-width:130px}.card-date{white-space:nowrap}.card-tags{display:flex;gap:4px;flex-wrap:wrap;margin-bottom:8px}.card-tags span{font-size:0.64286rem;color:#8092a9;background:#f4f7fb;border-radius:4px;padding:2px 5px}.note-card.active .card-tags span{background:#dde8f4;color:#6883a0}.list-footer{text-align:center;color:#aab4c2;font-size:0.64286rem;border-top:1px solid var(--line);padding:11px}.load-more{margin:5px 17px 12px;font-size:0.85714rem;padding:8px;color:#68809b;border:1px solid var(--line)}.editor-panel{background:white;display:flex;flex-direction:column;min-width:0;overflow:hidden;position:relative}.editor-topbar{display:flex;align-items:center;gap:12px;border-bottom:1px solid #edf0f5;min-height:60px;padding:10px 30px}.breadcrumb{flex:1;font-size:0.78571rem;color:#8a99ac;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.breadcrumb span{margin:0 7px;color:#c6cfd9}.editor-actions{display:flex;align-items:center;gap:2px}.editor-actions .icon-button{font-size:1.2857rem}.editor-header{padding:31px 42px 0;flex:none}.note-title{width:100%;border:0;background:none;padding:0 0 13px;border-radius:0;font-size:1.9286rem;font-weight:700;letter-spacing:-1px;color:#263f5f;line-height:1.45}.note-title:focus{outline:none;border:0}.note-title::placeholder{color:#aeb9c7}.editor-meta{display:flex;align-items:center;gap:9px;flex-wrap:wrap;font-size:0.71429rem;color:#9ca8b7;margin-bottom:18px}.save-state{margin-left:auto;display:flex;align-items:center;gap:5px;color:#7e9b8d}.save-state.error{color:var(--danger)}.save-state.pending{color:#b08c51}.meta-dot{width:3px;height:3px;background:#bac5d1;border-radius:50%}.note-organizer{display:flex;gap:8px;align-items:center;padding:0 42px 13px;flex-wrap:wrap}.folder-select{border-color:#e7ecf2;padding:5px 8px;font-size:0.78571rem;color:#8191a5;max-width:200px;background:#fbfcfe}.tags-input{border-color:#e7ecf2;padding:6px 9px;font-size:0.78571rem;min-width:130px;max-width:290px;flex:1;color:#8191a5;background:#fbfcfe}.tags-input::placeholder{color:#a6b0bf}.editor-controls{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 42px;padding:8px 0;border-top:1px solid #edf1f5;border-bottom:1px solid #edf1f5}.format-toolbar{display:flex;align-items:center;gap:2px;flex-wrap:wrap}.format-toolbar button{min-width:26px;height:27px;border-radius:5px;font-size:0.85714rem;color:#7b8b9f;padding:3px 6px}.format-toolbar button:hover{color:var(--navy);background:#eaf0f7}.toolbar-divider{height:14px;width:1px;background:#e3e8ef;margin:0 4px}.view-toggle{display:flex;gap:2px;border-radius:7px;background:#f4f6f9;padding:3px;flex:none}.view-toggle button{font-size:0.71429rem;padding:4px 8px;border-radius:5px;color:#92a0b0;white-space:nowrap}.view-toggle button.active{background:#fff;color:#4e6e93;box-shadow:0 1px 3px #00000009}.editor-scroll{overflow:auto;min-height:0;flex:1;padding:0 42px 28px}.source-section{margin:20px 0;border:1px solid #e2e9f1;border-radius:9px;background:#f9fbfd;padding:13px 16px}.source-section summary{cursor:pointer;display:flex;align-items:center;gap:8px;font-size:0.78571rem;font-weight:650;color:#6d819b;list-style:none}.source-section summary:before{content:"▸";color:#8ca0b8}.source-section[open] summary:before{content:"▾"}.source-section summary a{margin-left:auto;font-size:0.71429rem;font-weight:400}.source-body{max-height:420px;overflow:auto;padding-top:15px}.personal-label{font-size:0.71429rem;font-weight:600;color:#8da0b8;margin:22px 0 8px}.writing-area{display:flex;min-height:320px;gap:25px}.body-editor{border:0;resize:none;border-radius:0;padding:22px 0 30px;width:100%;min-height:420px;flex:1;font-size:1rem;line-height:1.95;color:#4c5b6d;outline:none!important;font-family:var(--font);tab-size:2;overflow:hidden;background:transparent}.body-editor::placeholder{color:#b3bdc9}.markdown-preview{padding:19px 0 30px;flex:1;min-width:0;overflow-wrap:anywhere;font-size:1rem;line-height:1.9;color:#4a5a6d}.markdown-preview h1,.markdown-preview h2,.markdown-preview h3,.markdown-preview h4{color:#354d69;line-height:1.45;margin-top:1.6em;margin-bottom:.7em}.markdown-preview h1{font-size:1.7857rem}.markdown-preview h2{font-size:1.5rem;border-bottom:1px solid #edf0f5;padding-bottom:8px}.markdown-preview h3{font-size:1.2143rem}.markdown-preview p{margin:0 0 1em}.markdown-preview blockquote{margin:15px 0;border-left:3px solid #adc0d8;background:#f5f8fc;padding:12px 17px;color:#75859b}.markdown-preview blockquote p:last-child{margin:0}.markdown-preview code{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;background:#eef2f7;padding:2px 5px;border-radius:4px;font-size:.9em}.markdown-preview pre{background:#f3f6fa;border:1px solid #e4eaf2;border-radius:8px;padding:15px;overflow:auto;line-height:1.6}.markdown-preview pre code{padding:0;background:transparent}.markdown-preview img{max-width:100%;height:auto;border-radius:6px}.markdown-preview table{border-collapse:collapse;width:100%;display:block;overflow:auto}.markdown-preview th,.markdown-preview td{border:1px solid #dfe6ef;padding:8px 12px;min-width:70px}.markdown-preview th{background:#f0f5fa}.markdown-preview hr{border:0;border-top:1px solid #e2e8f0;margin:24px 0}.markdown-preview ul,.markdown-preview ol{padding-left:24px}.markdown-preview a{color:#3f70a3;text-decoration-color:#b2c5db;text-underline-offset:3px}.writing-area.split .body-editor{width:50%;border-right:1px solid #e7edf4;padding-right:22px}.writing-area.split .markdown-preview{width:50%}.attachment-section{border-top:1px solid #edf1f5;margin-top:10px;padding-top:17px}.attachment-heading{display:flex;align-items:center;justify-content:space-between;color:#8a98a9;font-size:0.71429rem;margin-bottom:10px}.attachment-heading button{font-size:0.78571rem;color:#6c88a9}.attachment-list{display:flex;gap:7px;flex-wrap:wrap}.attachment-item{display:flex;align-items:center;border:1px solid #e1e8f0;border-radius:7px;padding:6px 8px;background:#fafbfd;gap:5px;max-width:100%;font-size:0.78571rem}.attachment-item a{color:#6a829c;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:260px;text-decoration:none}.attachment-item small{color:#9ba9b8;font-size:0.64286rem}.attachment-item button{width:22px;height:22px;padding:0;color:#98a4b3}.attachment-drop{padding:16px 12px;text-align:center;border:1px dashed #dfe7f0;border-radius:7px;font-size:0.78571rem;color:#a4b0c0;background:#fcfdff;width:100%;cursor:pointer}.attachment-drop.dragging{border-color:#779bbe;background:#edf4fc;color:#4b7095}.editor-statusbar{padding:10px 42px;border-top:1px solid #edf0f5;display:flex;justify-content:space-between;gap:10px;color:#a7b2c1;font-size:0.64286rem;background:#fff}.empty-state{display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:55px 25px;color:#95a2b3;min-height:230px}.empty-state.full{height:100%;min-height:400px}.empty-illustration{width:100px;height:116px;position:relative;margin-bottom:28px;transform:rotate(-7deg)}.empty-paper{position:absolute;inset:6px 10px;background:#f3f7fc;border:1px solid #dce6f2;border-radius:10px;box-shadow:8px 7px 0 #eef3f9;display:flex;flex-direction:column;gap:10px;padding:24px 14px}.empty-paper i{height:3px;background:#d7e3f0;display:block;border-radius:2px}.empty-paper i:first-child{background:#b7cce3;width:60%}.empty-paper i:last-child{width:70%}.empty-state h2{color:#5d728c;font-size:1.2143rem;letter-spacing:-.4px;margin-bottom:10px;font-weight:600}.empty-state p{font-size:0.85714rem;line-height:1.9;margin-bottom:20px}.empty-state .primary{font-size:0.85714rem;padding:10px 18px}.list-empty{padding:38px 15px;color:#9aa8b9;font-size:0.85714rem;text-align:center;line-height:1.8}.trash-banner{background:#fff7ee;border:1px solid #f1dfc5;border-radius:8px;display:flex;align-items:center;gap:12px;margin:16px 42px 0;padding:12px 15px;font-size:0.85714rem;color:#9d7c4f}.trash-banner p{margin:0;flex:1}.trash-banner button{font-size:0.78571rem;padding:6px 9px;border:1px solid #e8d1b1}.conflict-banner{margin:14px 42px 0;background:#fff6e8;border:1px solid #edd9b7;border-radius:8px;padding:13px;color:#987746;font-size:0.85714rem;line-height:1.7}.mobile-back,.mobile-menu{display:none}.boot-screen{height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:20px;color:#8797aa;font-size:0.92857rem}.boot-screen .brand-symbol{width:50px;height:50px;font-size:2.8571rem}.auth-screen{min-height:100vh;display:grid;grid-template-columns:1fr 1fr;background:#fff}.auth-story{background:var(--navy);padding:65px clamp(40px,7vw,110px);display:flex;flex-direction:column;justify-content:center;color:#e5edf6;position:relative;overflow:hidden}.auth-story:after{content:"";width:420px;height:420px;border:1px solid #ffffff0b;border-radius:50%;position:absolute;bottom:-150px;right:-100px;box-shadow:0 0 0 80px #ffffff02,0 0 0 160px #ffffff02}.auth-story .brand-symbol{background:#fff;color:var(--navy);margin-bottom:45px;width:42px;height:42px}.auth-story .eyebrow{color:#95afcc;font-size:0.71429rem;letter-spacing:2.5px}.auth-story h1{font-size:clamp(27px,3vw,42px);line-height:1.55;font-weight:600;letter-spacing:-1.4px;margin-top:15px;margin-bottom:24px}.auth-story p{color:#a1b5cc;font-size:0.92857rem;line-height:2.1;max-width:340px}.auth-badges{display:flex;gap:18px;font-size:0.71429rem;color:#a8bcd4;margin-top:32px;flex-wrap:wrap}.auth-badges span:before{content:"✓";color:#7fa39a;margin-right:6px}.auth-form-wrap{display:flex;align-items:center;justify-content:center;padding:50px 40px}.auth-card{width:100%;max-width:350px}.auth-card h2{font-size:1.7857rem;color:var(--navy);letter-spacing:-.8px;margin-bottom:10px}.auth-card .intro{font-size:0.85714rem;line-height:1.8;color:#95a3b4;margin-bottom:30px}.field{display:flex;flex-direction:column;gap:7px;margin-bottom:17px}.field label{font-size:0.78571rem;font-weight:600;color:#697d95}.field input,.field select,.field textarea{width:100%;font-size:0.85714rem;padding:12px;background:#fcfdff}.field textarea{min-height:95px;resize:vertical}.field input::placeholder{color:#b0bac8}.field small{font-size:0.71429rem;color:#98a5b6;line-height:1.6}.auth-card .primary{width:100%;margin-top:7px;font-size:0.92857rem;min-height:43px}.auth-footer{font-size:0.71429rem;color:#b1bbc8;text-align:center;margin-top:25px}.form-error{border:1px solid #efcfd1;color:#ad565d;background:#fff7f7;font-size:0.85714rem;padding:11px 13px;border-radius:7px;margin-bottom:16px;line-height:1.65}.form-success{border:1px solid #d5e5dd;color:#557d6c;background:#f3faf6;font-size:0.85714rem;padding:11px 13px;border-radius:7px;margin-bottom:16px;line-height:1.7}.modal{border:1px solid #e1e8f1;border-radius:15px;padding:0;box-shadow:0 25px 100px #18314d32;width:calc(100% - 32px);max-width:550px;max-height:90dvh;color:var(--ink)}.modal.wide{max-width:900px}.modal::backdrop{background:#1c304550;backdrop-filter:blur(3px)}.modal-heading{position:sticky;top:0;background:white;z-index:1;display:flex;align-items:center;justify-content:space-between;padding:20px 24px 16px;border-bottom:1px solid var(--line)}.modal-heading h2{font-size:1.2143rem;color:var(--navy);margin:0;letter-spacing:-.4px}.modal-body{padding:22px 24px 26px;max-height:calc(90dvh - 75px);overflow:auto}.modal-body h3{font-size:0.92857rem;margin:25px 0 13px;color:#5c728c}.modal-body h3:first-child{margin-top:0}.modal-description{font-size:0.85714rem;line-height:1.8;color:#8393a8;margin-bottom:20px}.modal-actions{display:flex;gap:8px;justify-content:flex-end;margin-top:22px}.modal-actions button{font-size:0.85714rem}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.form-grid .field{margin-bottom:4px}.info-box{background:#f4f7fb;border:1px solid #e4ebf4;border-radius:8px;padding:13px 15px;font-size:0.78571rem;line-height:1.85;color:#7c8da3;margin:12px 0}.info-box code{font-family:ui-monospace,monospace;background:#e9eff6;padding:2px 5px;border-radius:3px;color:#536d8b;overflow-wrap:anywhere}.check-row{display:flex;gap:8px;align-items:center;font-size:0.85714rem;margin:12px 0;color:#6c7e94}.check-row input{width:15px;height:15px;accent-color:var(--blue);padding:0}.settings-tabs{display:flex;flex-wrap:wrap;gap:5px;border-bottom:1px solid var(--line);padding-bottom:14px;margin-bottom:21px}.settings-tabs button{font-size:0.85714rem;color:#8291a4;padding:8px 11px}.settings-tabs button.active{background:#e9eff7;color:var(--blue);font-weight:600}.settings-section{min-height:210px}.settings-row{display:flex;align-items:center;justify-content:space-between;padding:15px 0;border-bottom:1px solid #edf1f5;gap:15px}.settings-row strong{font-size:0.85714rem;display:block;color:#5c728c}.settings-row small{font-size:0.78571rem;display:block;color:#97a5b5;margin-top:5px;line-height:1.8}.settings-row button,.settings-row a.secondary{font-size:0.78571rem;flex:none;text-decoration:none}.data-table{width:100%;font-size:0.78571rem;border-collapse:collapse}.data-table th{color:#8a9aaf;font-weight:500;text-align:left;border-bottom:1px solid var(--line);padding:10px 8px}.data-table td{padding:12px 8px;border-bottom:1px solid #edf1f5;color:#6b7e94;word-break:break-word}.data-table td small{font-size:0.71429rem;display:block;color:#9ba9b9;margin-top:4px}.data-table td button{font-size:0.78571rem;padding:4px 6px}.table-wrap{overflow:auto}.badge{display:inline-block;border-radius:4px;padding:3px 6px;font-size:0.64286rem;background:#eef3f8;color:#7489a2;white-space:nowrap}.badge.success{background:#eaf4ee;color:#658675}.badge.failed{background:#faeeee;color:#b27379}.token-result{padding:15px;background:#f0f7f2;border:1px solid #d4e5d9;border-radius:8px;margin:15px 0}.token-result strong{display:block;color:#5a7c69;font-size:0.85714rem;margin-bottom:8px}.token-result code{display:block;word-break:break-all;color:#3a614b;font-family:ui-monospace,monospace;background:#fff;padding:10px;border:1px solid #dce9df;border-radius:5px;font-size:0.85714rem}.token-result button{margin-top:10px;padding:5px 10px;background:#e0ece2;color:#5f7a67;font-size:0.78571rem}.token-result p{font-size:0.78571rem;color:#75917f;line-height:1.7;margin:10px 0 0}.scope-list{border:1px solid var(--line);border-radius:7px;padding:5px 12px;max-height:150px;overflow:auto}.scope-list .check-row{font-size:0.78571rem}.import-summary{display:flex;flex-wrap:wrap;gap:10px;margin:15px 0}.import-summary div{flex:1;min-width:80px;background:#eff4f9;border-radius:8px;padding:13px;text-align:center}.import-summary strong{font-size:1.5714rem;display:block;color:#4c6f94}.import-summary span{font-size:0.71429rem;color:#8d9eb1;display:block;margin-top:5px}.warnings{font-size:0.78571rem;line-height:1.9;color:#a07f50;padding-left:20px;max-height:230px;overflow:auto}.revision-list{display:grid;gap:10px}.revision-card{border:1px solid #e0e7ef;border-radius:8px;padding:15px}.revision-card header{display:flex;justify-content:space-between;align-items:center;gap:10px}.revision-card strong{font-size:0.85714rem;color:#607994}.revision-card small{font-size:0.71429rem;color:#9aa7b7}.revision-card button{font-size:0.78571rem;color:#5b7ca2;padding:6px 9px;background:#eff4fa}.revision-card details{margin-top:10px;color:#8998aa;font-size:0.78571rem}.revision-card summary{cursor:pointer}.revision-card pre{font-size:0.78571rem;line-height:1.8;white-space:pre-wrap;word-break:break-word;background:#f7f9fc;padding:12px;border-radius:6px;max-height:300px;overflow:auto}.toast-region{position:fixed;right:24px;bottom:24px;z-index:1000;display:flex;flex-direction:column;gap:9px;max-width:min(400px,calc(100vw - 32px));pointer-events:none}.toast{border:1px solid #dce5ef;border-radius:10px;box-shadow:var(--shadow);background:#fff;padding:14px 17px;color:#5e7590;font-size:0.85714rem;line-height:1.75;display:flex;gap:12px;align-items:flex-start;pointer-events:auto;animation:toastin .2s ease}.toast.error{border-color:#efcfd1;color:#a75b63}.toast button{color:inherit;font-size:1.1429rem;padding:0 3px;margin-left:auto}.toast a{font-weight:600}.progress-hint{padding:16px;text-align:center;color:#8a9eb6;font-size:0.85714rem}.inline-spinner{width:12px;height:12px;border:2px solid #d5e1ed;border-top-color:#6b8bab;border-radius:50%;display:inline-block;animation:spin .8s linear infinite}.mobile-menu{font-size:1.2857rem}.help-list{font-size:0.85714rem;line-height:1.95;color:#7e8fa4;padding-left:20px}.folder-path-hint{font-size:0.71429rem;color:#a2afbe}.word-count{white-space:nowrap}@keyframes spin{to{transform:rotate(360deg)}}@keyframes toastin{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
@media(min-width:1500px){.workspace{grid-template-columns:240px 330px minmax(0,1fr)}.editor-header{padding-top:43px}.editor-header,.note-organizer{padding-left:56px;padding-right:56px}.editor-controls{margin-left:56px;margin-right:56px}.editor-scroll{padding-left:56px;padding-right:56px}.note-title{font-size:2.1429rem}.body-editor,.markdown-preview{font-size:1.0714rem}}
@media(max-width:1150px){.workspace{grid-template-columns:200px 260px minmax(0,1fr)}.sidebar{padding-left:11px;padding-right:11px}.brand{margin-left:4px;gap:8px}.brand strong{font-size:1.2143rem}.brand small{font-size:0.5rem}.brand-symbol{width:32px;height:32px;font-size:1.8571rem}.list-header{padding-left:15px;padding-right:15px}.list-heading h1{font-size:1.3571rem}.editor-header{padding:27px 26px 0}.note-organizer{padding-left:26px;padding-right:26px}.editor-controls{margin-left:26px;margin-right:26px;flex-wrap:wrap}.editor-scroll{padding-left:26px;padding-right:26px}.editor-topbar{padding-left:23px;padding-right:23px}.editor-statusbar{padding-left:26px;padding-right:26px}.trash-banner,.conflict-banner{margin-left:26px;margin-right:26px}.note-title{font-size:1.7143rem}.toolbar-divider{margin:0 1px}.format-toolbar button{min-width:23px;padding:3px 4px}.view-toggle button{padding:4px 6px}}
@media(max-width:900px){.workspace{grid-template-columns:265px minmax(0,1fr)}.sidebar{position:fixed;left:0;top:0;bottom:0;width:240px;z-index:50;transform:translateX(-100%);transition:transform .2s;box-shadow:10px 0 30px #1c30451a}.workspace.sidebar-open .sidebar{transform:translateX(0)}.sidebar-overlay{position:fixed;inset:0;background:#1c304550;z-index:40}.mobile-menu{display:inline-flex}.list-heading{gap:5px}.list-heading .mobile-menu{margin-left:-8px}.list-heading h1{font-size:1.2857rem}.editor-topbar{padding:10px 17px}.editor-header{padding:24px 23px 0}.note-organizer{padding-left:23px;padding-right:23px}.editor-controls{margin-left:23px;margin-right:23px}.editor-scroll{padding-left:23px;padding-right:23px}.editor-statusbar{padding-left:23px;padding-right:23px}.auth-story{padding:50px 40px}.auth-story h1{font-size:2.2143rem}.auth-form-wrap{padding:40px 30px}.writing-area.split{flex-direction:column}.writing-area.split .body-editor,.writing-area.split .markdown-preview{width:100%;border:0}.writing-area.split .body-editor{border-bottom:1px solid var(--line);padding-right:0}.folder-options{opacity:1}}
@media(max-width:650px){.workspace{display:block}.note-list-panel{height:100dvh;width:100%;border-right:0}.editor-panel{height:100dvh;display:none}.workspace.show-editor .note-list-panel{display:none}.workspace.show-editor .editor-panel{display:flex}.list-header{padding:22px 21px 0}.list-heading{margin-bottom:18px}.list-heading h1{font-size:1.6429rem}.eyebrow{font-size:0.57143rem}.list-heading .mobile-menu{margin-right:6px}.search-box{min-height:42px}.search-box input{font-size:0.92857rem}.search-box kbd{display:none}.list-context{font-size:0.78571rem;min-height:43px}.note-list{padding:0 15px 20px}.note-card{padding:17px 16px;margin-bottom:9px;border-radius:11px}.note-card h2{font-size:1.0714rem}.note-card p{font-size:0.85714rem;max-height:42px}.card-foot{font-size:0.71429rem}.card-folder{max-width:220px}.card-tags span{font-size:0.71429rem}.mobile-back{display:inline-flex}.editor-topbar{padding:8px 13px;gap:7px;min-height:54px}.breadcrumb{font-size:0.71429rem}.editor-actions .icon-button{width:30px;height:31px}.editor-header{padding:23px 22px 0}.note-title{font-size:1.7857rem;padding-bottom:12px}.editor-meta{font-size:0.64286rem;gap:6px;margin-bottom:14px}.note-organizer{padding-left:22px;padding-right:22px;gap:6px}.folder-select{max-width:150px}.tags-input{max-width:none;min-width:120px}.editor-controls{margin:0 22px;padding:8px 0;gap:6px}.format-toolbar{gap:0}.format-toolbar button{height:30px;min-width:27px;font-size:0.85714rem}.view-toggle{margin-left:auto}.view-toggle button{font-size:0.71429rem;padding:5px 8px}.view-toggle .split-toggle{display:none}.editor-scroll{padding:0 22px 23px}.body-editor{font-size:1.0714rem;line-height:1.95;min-height:330px;padding-top:20px}.markdown-preview{font-size:1rem}.editor-statusbar{padding:9px 22px;font-size:0.64286rem}.trash-banner,.conflict-banner{margin:14px 22px 0;flex-wrap:wrap;font-size:0.78571rem}.source-section{padding:12px}.source-body{max-height:300px}.source-section summary a{max-width:120px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.auth-screen{display:flex;flex-direction:column}.auth-story{padding:30px 27px 22px;min-height:210px}.auth-story .brand-symbol{width:33px;height:33px;margin-bottom:20px;font-size:1.9286rem}.auth-story .eyebrow{font-size:0.57143rem}.auth-story h1{font-size:1.7143rem;line-height:1.45;margin:8px 0 0;letter-spacing:-.7px}.auth-story h1 br{display:none}.auth-story p,.auth-badges{display:none}.auth-form-wrap{padding:31px 27px 40px;align-items:flex-start}.auth-card{max-width:400px}.auth-card h2{font-size:1.5rem}.auth-card .intro{margin-bottom:22px;font-size:0.78571rem}.field{margin-bottom:15px}.field input,.field select{font-size:1.1429rem;padding:11px}.field label{font-size:0.85714rem}.modal{width:calc(100% - 20px);max-height:94dvh;border-radius:12px}.modal-heading{padding:17px 18px 13px}.modal-heading h2{font-size:1.1429rem}.modal-body{padding:18px;max-height:calc(94dvh - 66px)}.form-grid{grid-template-columns:1fr;gap:5px}.settings-tabs{gap:2px;padding-bottom:11px}.settings-tabs button{padding:7px 9px;font-size:0.78571rem}.settings-row{align-items:flex-start;flex-direction:column;gap:9px}.settings-row button,.settings-row a.secondary{align-self:flex-start}.data-table{font-size:0.71429rem}.data-table th,.data-table td{padding:10px 5px}.toast-region{right:16px;bottom:16px}.toast{font-size:0.85714rem;padding:12px 14px}.attachment-item{max-width:100%}.attachment-item a{max-width:210px}.word-count{font-size:0.64286rem}.sidebar-bottom{padding-top:25px}.list-footer{padding:10px;font-size:0.64286rem}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important;transition:none!important}}

/* Tree selection, bulk actions and image attachments. */
.folder-tools{margin:0 3px 8px;font-size:0.71429rem;color:#788ba2}.folder-tree-actions{display:flex;justify-content:flex-end;gap:3px;margin-bottom:5px}.folder-tree-actions .text-button{font-size:0.71429rem;padding:3px 5px}.selection-all{display:flex;align-items:center;gap:7px;cursor:pointer;font-size:0.78571rem;line-height:1.5;color:#71859d;min-height:28px}.selection-all input,.folder-check input,.note-check input{padding:0;margin:0;width:15px;height:15px;accent-color:var(--blue);cursor:pointer;border-radius:3px;flex:none}.selection-all input:disabled,.folder-check input:disabled{cursor:default}.folder-selection-summary{display:flex;align-items:center;gap:4px;flex-wrap:wrap;padding:6px 0}.folder-selection-summary>span{flex:1;font-size:0.71429rem;min-width:95px}.folder-selection-summary .text-button{font-size:0.71429rem}.selection-delete{display:inline-flex;align-items:center;justify-content:center;gap:4px;padding:5px 7px;border:1px solid #e5cdd0;color:#a4515c;background:#fff8f8;font-size:0.71429rem;white-space:nowrap}.selection-delete:hover{background:#fbecee}.selection-delete:disabled{border-color:#e2e8f0;background:#f5f7fa;color:#8d9aaa;cursor:default;opacity:.7}.selection-delete svg{width:13px;height:13px}.folder-row{gap:0}.folder-row.checked{background:#e9eef7}.folder-check{display:flex;align-items:center;justify-content:center;flex:none;width:23px;min-height:32px}.folder-check input:disabled{opacity:.6}.folder-toggle{width:22px;height:29px;display:inline-flex;align-items:center;justify-content:center;padding:2px;flex:none;color:#8092a8}.folder-toggle svg{width:14px;height:14px}.folder-toggle-placeholder{width:22px;flex:none}.folder-open{padding-left:2px;gap:6px;min-width:0}.folder-glyph{display:flex}.folder-glyph svg{width:15px;height:15px}.folder-options{display:flex;align-items:center;justify-content:center;flex:none;padding:3px;width:24px}.folder-options svg{width:16px;height:16px}.folder-empty{padding:5px 10px;font-size:0.78571rem;line-height:1.8}.note-selection-tools{border-top:1px solid #e8edf4;padding:9px 0 11px;margin-top:1px}.selection-actions{display:flex;align-items:center;gap:7px;margin-top:5px;min-height:28px;font-size:0.71429rem;color:#8b9bae}.selection-actions .selection-delete{margin-left:auto}.selection-actions .text-button{font-size:0.71429rem}.note-selection-tools>small{display:block;margin-top:5px;font-size:0.71429rem;line-height:1.6;color:#8b9bae}.note-card-shell{position:relative}.note-card-shell.has-selection .note-card{padding-left:35px}.note-card-shell.checked .note-card{border-color:#b7cbe0;background:#edf3fa}.note-check{position:absolute;z-index:1;top:15px;left:7px;display:flex;padding:4px;cursor:pointer}.card-pin,.card-star{display:inline-flex;flex:none}.card-pin svg,.card-star svg{width:13px;height:13px}.card-star svg{fill:currentColor;fill-opacity:.16}.card-folder svg{width:11px;height:11px;vertical-align:-2px;margin-right:3px}.search-help{margin-top:7px;font-size:0.71429rem;color:#8193aa}.search-help summary{cursor:pointer;display:list-item;list-style:disclosure-closed inside}.search-help[open] summary{list-style-type:disclosure-open}.search-help p{margin:7px 0 0;line-height:1.9;padding:8px 10px;background:#f0f4f9;border-radius:7px}.search-help code{font-size:0.71429rem;color:#617f9e}.search-error{font-size:0.78571rem;line-height:1.7;margin:8px 0 0;padding:8px 10px;background:#fff4f4;border:1px solid #edd3d5;border-radius:6px;color:#a65b64}.bulk-names{font-size:0.85714rem;line-height:1.8;color:#647b96;margin:0 0 18px;padding-left:20px;overflow-wrap:anywhere}.bulk-counts{display:flex;gap:12px;margin:15px 0}.bulk-counts>div{flex:1;padding:16px 10px;border-radius:9px;background:#f2f5fa;text-align:center}.bulk-counts strong{display:block;font-size:1.7857rem;color:#496b91}.bulk-counts span{display:block;font-size:0.71429rem;color:#8b9db2;margin-top:5px}.modal-actions .primary,.modal-actions a.secondary{display:inline-flex;align-items:center;justify-content:center;gap:6px}.modal-actions a.secondary{text-decoration:none;font-size:0.85714rem}.attachment-list{align-items:flex-start;gap:10px}.attachment-image{width:min(240px,100%);margin:0;border:1px solid #e0e7ef;background:#fafbfd;border-radius:9px;overflow:hidden;display:flex;flex-direction:column}.attachment-image-open{display:block;width:100%;padding:0;border-radius:0;border:0;background:#f0f4f8;min-height:80px}.attachment-image-open:hover{background:#e7eef7}.attachment-image-open img{display:block;width:100%;height:155px;object-fit:contain;padding:5px}.attachment-image figcaption{display:flex;align-items:center;gap:6px;padding:9px;font-size:0.78571rem}.attachment-image figcaption a{min-width:0;flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#617c9b;text-decoration:none}.attachment-image small{font-size:0.64286rem;color:#9aabba;flex:none}.attachment-image figcaption button{padding:3px;display:flex;width:23px;height:23px;color:#91a1b3}.attachment-image figcaption button svg{width:14px;height:14px}.attachment-item>span,.attachment-item>button{display:inline-flex;align-items:center;justify-content:center}.attachment-item svg{width:15px;height:15px}.image-preview{display:flex;align-items:center;justify-content:center;min-height:100px;border-radius:9px;background:#f3f5f8;overflow:auto}.image-preview img{display:block;max-width:100%;max-height:65dvh;object-fit:contain}.nav-icon,.breadcrumb span{display:inline-flex;align-items:center}.nav-icon svg{width:18px;height:18px}.breadcrumb span svg{width:11px;height:11px}.format-toolbar button{display:inline-flex;align-items:center;justify-content:center}.format-toolbar button svg{width:16px;height:16px}.attachment-heading button,.empty-state .primary{display:inline-flex;align-items:center;gap:5px}.attachment-heading button svg{width:14px;height:14px}.empty-state .primary svg{width:16px;height:16px}.save-state svg{width:13px;height:13px}.toast>button{display:flex;padding:2px}.toast>button svg{width:15px;height:15px}.source-section summary:before{content:"";width:6px;height:6px;flex:none;border-right:1.5px solid #8ca0b8;border-bottom:1.5px solid #8ca0b8;transform:rotate(-45deg);margin-right:3px}.source-section[open] summary:before{content:"";transform:rotate(45deg);margin-top:-3px}.source-section summary a svg{width:11px;height:11px;vertical-align:-2px}.icon-filled{fill:currentColor;fill-opacity:.18}.icon-spin{animation:spin .9s linear infinite}
@media(max-width:650px){.note-card-shell.has-selection .note-card{padding-left:42px}.note-check{left:11px;top:17px}.selection-all{font-size:0.85714rem}.selection-actions{font-size:0.78571rem}.selection-delete{font-size:0.78571rem;padding:6px 9px}.folder-tree-actions .text-button{min-height:28px}.folder-check{min-height:36px;width:26px}.folder-toggle{height:32px;width:24px}.attachment-image{width:min(100%,300px)}.attachment-image-open img{height:190px}.bulk-counts{gap:8px}.bulk-counts strong{font-size:1.5714rem}.modal-actions{flex-wrap:wrap}.search-help{font-size:0.78571rem}}
@media(prefers-reduced-motion:reduce){.icon-spin{animation:none}}
