:root{--ink:#282c29;--muted:#72796f;--line:#e5e6df;--paper:#fffefa;--canvas:#f7f7f2;--green:#294e46;--sage:#e9efe4;--red:#a73a35}*{box-sizing:border-box}body{margin:0;color:var(--ink);background:var(--canvas);font:14px/1.6 "Helvetica Neue",Arial,sans-serif}button,input,select,textarea{font:inherit;color:inherit}button,.button{cursor:pointer;border:1px solid transparent;background:transparent;border-radius:6px;padding:9px 13px;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:8px}button:hover,.button:hover{background:#e8ebe3}button:disabled{opacity:.5;cursor:wait}.button{border-color:var(--line);background:var(--paper)}.primary{background:var(--green);color:white;border:1px solid var(--green)}.primary:hover{background:#1c3b34}input,textarea,select{border:1px solid var(--line);background:white;padding:10px 12px;border-radius:6px;max-width:100%}input:focus,textarea:focus,select:focus{outline:2px solid #9bb19d;outline-offset:2px}label{display:block}label>input{display:block;width:100%;margin-top:6px}h1,h2,h3,p{margin-top:0}h1,h2{font-family:Georgia,"Times New Roman",serif;font-weight:400;letter-spacing:-1.4px;line-height:1.15}h1{font-size:42px}h2{font-size:28px}h3{font-size:15px}a{color:var(--green)}[hidden]{display:none!important}.eyebrow{font-size:10px;letter-spacing:2px;font-weight:700;color:var(--muted);margin-bottom:12px}.small{font-size:12px;color:var(--muted)}.error{color:var(--red)}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--ink);font-size:27px;letter-spacing:-1px;font-weight:600}.brand small{display:block;font-size:12px;color:var(--muted);letter-spacing:2px;line-height:1}.workspace{display:flex;min-height:100vh}.sidebar{width:236px;flex-shrink:0;background:#f0f2eb;border-right:1px solid var(--line);padding:29px 20px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.new-note{width:100%;margin:38px 0 24px;justify-content:space-between}.new-note kbd{opacity:.5}.nav-item{width:100%;justify-content:flex-start;padding:10px 12px;gap:12px;margin:2px 0;color:#626a60}.nav-item span{font-size:18px}.nav-item.active{background:#dfe7d8;color:#284b3c;font-weight:600}.nav-heading{margin:30px 10px 8px;display:flex;justify-content:space-between;align-items:center;font-size:10px;letter-spacing:1.5px;color:var(--muted)}.nav-heading button{padding:0 4px;font-size:20px}.trash{margin-top:30px}.sidebar-bottom{margin-top:auto;padding-top:30px}.quiet-note{font-family:Georgia,serif;font-size:20px;line-height:1.4;color:#828d7b;padding:15px 8px 30px}.profile{display:flex;width:100%;gap:10px;border-top:1px solid var(--line);border-radius:0;justify-content:flex-start;padding:20px 0 0}.profile>span:last-child{margin-left:auto}.avatar{background:#d9e1d1;width:32px;height:32px;display:grid;place-items:center;border-radius:8px}.main{flex:1;min-width:0;padding:0 38px}.topbar{height:73px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;font-size:10px;letter-spacing:1.5px;color:var(--muted)}.topbar>div{display:flex;align-items:center;gap:18px;letter-spacing:0;font-size:12px}.topbar button{font-size:12px}.page-heading{display:flex;justify-content:space-between;align-items:center;padding:38px 0 26px;gap:16px}.page-heading h1{margin:0}.title-dot{color:#879873}.search{display:flex;align-items:center;gap:8px;border:1px solid var(--line);background:var(--paper);border-radius:7px;padding:3px 12px;width:300px}.search input{border:0;background:transparent;width:100%;padding:8px 0;margin:0}.search>span{font-size:24px}.search kbd{border:1px solid var(--line);padding:0 6px;border-radius:3px;color:#aaa}.content-grid{display:grid;grid-template-columns:minmax(240px, .8fr) minmax(330px,1.5fr);gap:28px;align-items:start}.list-meta{display:flex;justify-content:space-between;font-size:11px;color:var(--muted);padding:0 0 16px}.note-card{display:block;text-align:left;width:100%;padding:20px;margin:0 0 12px;border:1px solid var(--line);background:var(--paper);border-radius:8px;position:relative}.note-card:hover{background:#f3f5ee}.note-card.selected{border-color:#81997d;background:#f3f6ee}.note-card .card-top{display:flex;justify-content:space-between;font-size:10px;color:var(--muted);margin-bottom:13px}.note-card h3{font-family:Georgia,serif;font-weight:400;font-size:20px;line-height:1.3;margin-bottom:8px;overflow-wrap:anywhere}.note-card p{font-size:12px;color:var(--muted);margin-bottom:16px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}.tag{font-size:10px;display:inline-block;background:#e8eee1;color:#536849;border-radius:4px;padding:2px 7px;margin-right:5px}.editor{border:1px solid var(--line);border-radius:10px;background:var(--paper);padding:26px;min-height:630px}.editor-top{display:flex;align-items:center;justify-content:space-between;gap:10px}.editor-top select{background:#f0f3ea;border:0;max-width:50%;font-size:12px;padding:5px 9px}.editor-top button{font-size:12px;padding:5px 9px;color:var(--muted)}#favorite{font-size:22px}#favorite.on{color:#987531}.edit-title{width:100%;border:0;background:transparent;font:32px/1.2 Georgia,serif;letter-spacing:-.8px;padding:30px 0 12px;border-radius:0}.edit-content{display:block;width:100%;min-height:335px;resize:vertical;border:0;background:transparent;padding:24px 0;font-size:15px;line-height:1.9}.editor-footer{padding-top:20px;border-top:1px solid var(--line)}.tags-label{font-size:10px;text-transform:uppercase;letter-spacing:1px;color:var(--muted)}.tags-label input{font-size:12px;text-transform:none;letter-spacing:0;padding:8px 10px}.editor-actions{display:flex;justify-content:space-between;margin-top:16px}.upload-label{font-size:12px;cursor:pointer}.hint{margin:12px 0 0;font-size:10px}.source-link{display:block;font-size:12px;margin-bottom:16px;overflow-wrap:anywhere}.attachments a{display:block;background:var(--canvas);padding:8px 12px;margin-bottom:8px;text-decoration:none;font-size:12px;overflow-wrap:anywhere}.editor-placeholder{min-height:550px;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#85907c;text-align:center}.editor-placeholder>span{font-size:68px;color:#b4bfa9;margin-bottom:22px}.editor-placeholder h2{font-size:24px}.empty{padding:60px 0;text-align:center}.empty img{opacity:.6;margin-bottom:20px}.empty h2{font-size:24px}.empty p{font-size:12px;color:var(--muted)}dialog{width:min(580px,95vw);max-height:90vh;border:1px solid var(--line);padding:28px;border-radius:12px;background:var(--paper)}dialog::backdrop{background:#17282066}.dialog-heading{display:flex;justify-content:space-between;align-items:flex-start}.dialog-heading h2{margin-bottom:0}dialog section{padding-top:24px;margin-top:24px;border-top:1px solid var(--line)}dialog section p{font-size:13px;color:var(--muted)}dialog label{margin:12px 0}#token-value,#mail-code{font-family:monospace;font-size:11px;width:100%}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#243d34;color:white;padding:12px 22px;border-radius:8px;z-index:99;max-width:90vw}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.login-page{min-height:100vh;display:grid;grid-template-columns:1.1fr 1fr}.login-story{background:#e9eee2;padding:60px;display:flex;flex-direction:column;justify-content:space-between}.login-story h1{font-size:60px;margin-bottom:22px}.login-story>div:nth-child(2)>p:last-child{color:#65725e}.login-form{align-self:center;justify-self:center;width:min(360px,85%)}.login-form h2{font-size:37px;margin-bottom:35px}.login-form label{margin:18px 0}.login-form button{width:100%;justify-content:space-between;margin:12px 0 22px}.setup{max-width:620px;margin:50px auto;padding:30px}.setup fieldset{border:1px solid var(--line);padding:20px;margin:22px 0;border-radius:8px}.setup label{margin:12px 0}.setup h1{font-size:38px}@media(min-width:1550px){.main{padding:0 60px}.content-grid{grid-template-columns:360px minmax(400px,850px)}}@media(max-width:1100px){.sidebar{width:200px;padding:25px 14px}.main{padding:0 22px}.content-grid{gap:16px;grid-template-columns:minmax(210px,.85fr) minmax(290px,1.2fr)}.page-heading h1{font-size:36px}.search{width:235px}.editor{padding:20px}}@media(max-width:800px){.workspace{display:block}.sidebar{position:static;width:100%;height:auto;padding:16px 20px;display:block}.sidebar>.brand{display:inline-flex}.new-note{width:auto;margin:0;float:right}.sidebar nav{display:flex;gap:6px;overflow-x:auto;margin-top:18px}.nav-item{width:auto;white-space:nowrap;margin:0}.nav-heading,.sidebar-bottom,.quiet-note{display:none}#books{display:flex}#books .nav-item{white-space:nowrap}.main{padding:0 18px}.topbar{height:48px}.topbar>span{display:none}.topbar>div{width:100%;justify-content:space-between}.page-heading{padding:24px 0;flex-wrap:wrap}.page-heading h1{font-size:34px}.search{width:100%}.content-grid{grid-template-columns:1fr}.editor{min-height:500px;grid-row:1}.edit-content{min-height:240px}.editor-placeholder{display:none}.note-card{padding:16px}.login-page{grid-template-columns:1fr}.login-story{padding:24px;min-height:260px}.login-story h1{font-size:38px;margin:28px 0 15px}.login-story .small,.login-story>div:nth-child(2)>p{display:none}.login-form{padding:35px 0}.login-form h2{font-size:30px}.setup{margin:20px auto;padding:20px}#settings-button{display:none}}@media(prefers-reduced-motion:no-preference){button,.button{transition:background .15s}}
@media(max-width:800px){.sidebar .nav-heading{display:flex;margin:0;min-width:30px}.sidebar .nav-heading>span{display:none}.sidebar .nav-heading button{padding:6px}.topbar>div{gap:6px}.topbar button{padding:6px}.topbar #save-status{font-size:10px}}

.mail-senders-form{margin-top:24px;padding-top:20px;border-top:1px solid var(--line)}.mail-senders-form textarea{display:block;width:100%;min-height:130px;resize:vertical;font-family:monospace;font-size:13px}.mail-senders-form h3{margin-bottom:8px}#mail-mailbox-state{margin-top:14px;overflow-wrap:anywhere}
.feature-toolbar{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 20px}.note-extras{border-top:1px solid #deded5;padding:16px 0}.note-extras h3{font-size:15px}.note-extras label{display:block}.note-extras input[type=datetime-local]{display:block;max-width:100%;padding:9px;margin:7px 0}.task-row,.rule-row,.saved-row{display:flex;align-items:center;gap:8px;margin:8px 0}.task-row input[type=text],.rule-row input{min-width:0;flex:1}.task-row input[type=checkbox],.check-label input{width:auto!important}.task-row input[type=text]{padding:8px}.rule-row select{max-width:40%}.saved-row>:first-child{flex:1;min-width:0;overflow-wrap:anywhere}.feature-list{max-height:280px;overflow:auto;margin:12px 0}.feature-list a{display:block;padding:9px;overflow-wrap:anywhere}#feature-dialog{width:min(680px,94vw)}#feature-body form{display:grid;gap:10px}#feature-body input,#feature-body select,#feature-body textarea{width:100%;padding:10px;border:1px solid #c9cec8;border-radius:6px}#feature-body input[type=checkbox]{width:auto}.ocr-result{min-height:280px}.check-label{display:flex!important;gap:10px;align-items:center;margin:20px 0}#custom-code-form{margin:16px 0}.attachments button{text-align:left}button:disabled{opacity:.5;cursor:not-allowed}#saved-searches .nav-item{font-size:13px}dialog{max-height:90dvh;overflow:auto}dialog input,dialog select{max-width:100%}@media(max-width:760px){.feature-toolbar{padding:0 16px}.task-row{gap:5px}.rule-row{flex-wrap:wrap}.saved-row{flex-wrap:wrap}}
