.notes-page{max-width:1100px;margin:0 auto;color:var(--text,#faf7f2)}
.notes-page .section-head{margin-bottom:1.6rem}
.note-tools,.note-command-row,.note-source-row,.note-document-head,.note-status,.note-back{display:flex;align-items:center}
.note-tools{justify-content:space-between;gap:1rem;padding-bottom:1.25rem}
.note-tabs{display:flex;align-items:center;background:#1b1b19;border:1px solid #373631;border-radius:12px;padding:4px;gap:3px}
.note-tabs button{border:0;border-radius:8px;padding:.6rem .92rem;min-height:42px;color:#bcb9b2;background:transparent;font:inherit;font-weight:650;cursor:pointer}
.note-tabs button[aria-pressed=true]{color:#191710;background:#f3eadd}
.note-tabs span{font-size:.8em;margin-left:.3em;opacity:.72}
.note-tools .search-field{min-width:0;max-width:19rem;display:flex;align-items:center;gap:.45rem}
.note-tools .search-field input{min-width:0;width:100%}
.note-tools .search-field svg{width:18px;min-width:18px;color:#b8b4aa}
.note-file-list{border-block:1px solid #38362f}
.note-list-row{display:flex;align-items:center;width:100%;gap:1rem;border:0;border-bottom:1px solid #33322c;padding:1.05rem .55rem;text-align:left;background:transparent;color:inherit;font:inherit;cursor:pointer}
.note-list-row:last-child{border-bottom:0}
.note-list-row:hover{background:#21211e}
.note-list-title{flex:1;display:grid;min-width:0;gap:.22rem}
.note-list-title strong,.note-document-head h1{overflow-wrap:anywhere}
.note-list-title small,.note-row-meta,.note-row-date,.note-document-head p{color:#b9b5ae;font-size:.9rem}
.note-list-title small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.note-list-row>svg{width:16px;height:16px;flex-shrink:0;color:#b9b5ae}
.note-file-stamp{width:44px;height:52px;display:inline-flex;position:relative;isolation:isolate;flex:0 0 auto;align-items:flex-end;justify-content:center;overflow:hidden;border:1px solid #745135;border-radius:3px 12px 3px 3px;background:#33291e;color:#ffc795;padding-bottom:7px}
.note-file-stamp i,.note-file-stamp i:after{position:absolute;content:"";height:1px;background:currentColor;left:7px;top:10px;width:24px;opacity:.65}
.note-file-stamp i:after{left:0;top:5px;width:14px;opacity:.8}
.note-file-stamp b{font:700 10px/1.1 ui-monospace,monospace;letter-spacing:.035em;max-width:100%}
.notes-drop,.note-empty{display:grid;justify-items:center;align-content:center;gap:.8rem;padding:clamp(2.2rem,6vw,5rem) 1.1rem;text-align:center;background:#1d1d1a;border:1px dashed #57534b;border-radius:16px}
.notes-drop h2,.note-empty h2,.notes-drop p,.note-empty p{margin:0}
.notes-drop p,.note-empty p{color:#c3bfb6}
.notes-drop .button,.note-empty .button{margin-top:.15rem}
.note-empty-icon{width:50px;height:50px;display:grid;place-content:center;color:#ffad76;background:#393026;border-radius:14px}
.notes-drop-small{display:flex;align-items:center;justify-content:center;border-radius:11px;gap:.6rem;margin-top:1.1rem;padding:1rem;color:#c5bfb4}
.notes-drop.drag-over{background:#35291c;border-color:#ffab6f}
.note-new-guide{margin-top:1rem}
.note-status{gap:.5rem;color:#c9c2b8;margin:.9rem 0;min-height:0}
.note-status:empty{display:none}
.note-document-head{align-items:flex-start;gap:1.1rem;margin:1.35rem 0 1.6rem}
.note-document-head .note-file-stamp{width:51px;height:63px}
.note-document-head h1{margin:0 0 .35rem;font-size:clamp(1.55rem,3.5vw,2.8rem);line-height:1.1;letter-spacing:-.035em}
.note-document-head p{margin:0;overflow-wrap:anywhere}
.note-back{background:transparent;border:0;color:#c7bdb0;font:inherit;cursor:pointer;padding:.55rem 0}
.note-command-row,.note-source-row{gap:.6rem;flex-wrap:wrap}
.note-source-row{gap:.15rem .8rem;margin:.75rem 0}
.note-source-row button{background:transparent;border:0;color:#c1bcb3;padding:.65rem .25rem;font-size:.87rem}
.note-paper{max-width:55rem;background:#1d1d1a;border:1px solid #383730;border-radius:16px;padding:clamp(1.1rem,3vw,2.35rem);margin:1.6rem 0}
.note-paper>h2{font-size:1.2rem;margin:0 0 1rem;color:#f4eee4}
.note-paper .surshi-rich{line-height:1.7;min-width:0;overflow-wrap:anywhere}
.note-plain{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.65}
.note-create-form{max-width:46rem;border:1px solid #383730;border-radius:16px;background:#1c1c19;padding:clamp(1rem,3vw,2rem)}
.note-selected{padding:1rem;background:#252521;border-radius:12px}
.note-selected p{color:#c3bcaf}
@media(max-width:700px){.note-tools{align-items:stretch;flex-direction:column}.note-tabs{align-self:flex-start}.note-tools .search-field{max-width:100%}.note-row-date{display:none}.note-list-row{gap:.7rem}.note-command-row button{flex:1 1 auto}.note-source-row{margin-block:1rem}.note-source-row button{min-height:40px}.notes-drop{padding:2rem 1rem}.notes-drop-small{padding:.8rem}.note-create-form .field-row{display:grid;gap:1rem}.note-document-head{gap:.8rem}}

.upload-dialog{color:var(--text,#fff);background:#1c1c1a;border:1px solid #524d44;border-radius:18px;width:min(26rem,calc(100vw - 2rem));max-height:85dvh;overflow:auto;padding:1.25rem;margin:auto;box-shadow:0 20px 80px #0009}
.upload-dialog::backdrop{background:#080807bf}
.upload-heading{display:flex;align-items:center;justify-content:space-between;gap:.75rem}
.upload-heading h2,.upload-heading form{margin:0}
.upload-heading .icon-button{font-size:1.65rem}
.upload-dialog>p{font-size:.93rem;color:#c6c0b8;margin:.35rem 0 1.1rem}
.upload-choice,.upload-browse{position:relative;overflow:hidden;cursor:pointer}
.upload-choice{display:grid;gap:.25rem;border:1px solid #524e48;border-radius:12px;padding:.9rem 1rem;margin-top:.65rem;background:#252522}
.upload-choice small{color:#c6c0b8;font-size:.86rem}
.upload-documents{border-color:#a46740}
.upload-documents strong,.upload-browse{color:#ffba8a}
.upload-browse{display:inline-flex;align-items:center;min-height:44px;padding:.2rem .4rem;margin-top:.35rem;text-decoration:underline}
.upload-dialog input[type=file]{position:absolute;inset:0;opacity:0;width:100%;height:100%;margin:0;cursor:pointer}
.upload-choice:focus-within,.upload-browse:focus-within{outline:2px solid #ffab70;outline-offset:2px}

#shared-note-dialog h2{margin:0}
#shared-note-list{padding-left:1.25rem;max-height:35dvh;overflow:auto;overflow-wrap:anywhere}
.shared-actions{display:flex;gap:.5rem;justify-content:flex-end;flex-wrap:wrap}
#shared-note-status:empty{display:none}
