/* Moa Notes 1.1.0: clear collection tools and account-selected typography. */
@font-face{font-family:"KoPub Batang";src:url("/static/fonts/KoPubBatangPro-Medium.otf") format("opentype");font-weight:400;font-style:normal;font-display:swap}
:root{--ui-font-size:16px;--font:"KoPub Batang","Batang",serif;--navy:#2c455b;--blue:#3c6384;--blue-soft:#e8eff4;--ink:#293744;--muted:#667687;--line:#dfe5e9;--bg:#f7f8fa;--sidebar:#f3f5f7;--danger:#a84145;--shadow:0 12px 40px #243e5e18}
html{font-size:var(--ui-font-size,16px)}body{font-size:1rem;line-height:1.55;letter-spacing:-.015em;-webkit-font-smoothing:antialiased}
button,input,textarea,select{font-family:var(--font)}button:disabled{cursor:default}
.primary{box-shadow:none;border-radius:8px;background:var(--navy)}
.primary:hover{background:#36556f}.danger.solid{background:var(--danger);border-color:var(--danger)}.danger.solid:hover{background:#933b40}
.sidebar{padding-top:24px;background:var(--sidebar)}.brand{margin-bottom:22px}.brand strong{font-size:1.18rem;letter-spacing:-.04em}.brand small{font-size:.68rem;letter-spacing:.02em;color:#6b7f90}.brand-symbol{box-shadow:none;border-radius:10px}
.new-note{min-height:42px;margin-bottom:17px;font-size:.9rem}.main-nav{gap:3px}.nav-item{font-size:.88rem;min-height:40px;color:#546778}.nav-item.active{background:#e4ebf0;color:#2e526e}.nav-icon{color:inherit}
.sidebar-section{margin-top:22px}.section-label h2{font-size:.82rem;letter-spacing:0;color:#556777}.folder-tree{margin:0 -2px}.folder-row{border-radius:7px;min-height:33px}.folder-row.active,.folder-row.checked{background:#e4ebf2}.folder-open{font-size:.84rem;min-height:33px;line-height:1.45;color:#536777}.folder-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.folder-options{opacity:.4}.folder-row:hover .folder-options,.folder-options:focus-visible{opacity:1}.folder-toggle,.folder-toggle-placeholder{width:17px}.folder-glyph svg{width:15px;height:15px}.folder-check{width:22px}.folder-tree-actions{justify-content:flex-start;gap:0;margin-bottom:5px}.folder-tree-actions .text-button{font-size:.68rem;color:#6a7a88;padding:3px 5px}.folder-tools{margin:0 2px 6px}
.collection-actions{display:flex;align-items:center;flex-wrap:wrap;gap:5px}.collection-action{display:inline-flex;align-items:center;justify-content:center;gap:5px;border:1px solid #dce3e9;background:#fff;color:#5e7182;font-size:.75rem;padding:5px 8px;min-height:29px;border-radius:6px;line-height:1.4;white-space:nowrap}.collection-action svg{width:13px;height:13px}.collection-action:hover{background:#edf2f6;border-color:#cbd7e1}.collection-action:disabled{opacity:.45}.collection-action.danger{color:var(--danger)}.empty-trash-button{margin-left:auto;font-size:.7rem}
.selection-mode-heading{display:flex;align-items:center;justify-content:space-between;gap:6px;font-size:.75rem;color:#475e73;margin-bottom:5px}.selection-mode-heading>.text-button{font-size:.72rem;padding:3px 5px}.selection-all{font-size:.75rem;color:#52697e;line-height:1.5}.selection-actions{font-size:.73rem;margin-top:4px;flex-wrap:wrap}.selection-actions .text-button{font-size:.7rem}.selection-actions>span{color:#536c84}.selection-delete,.selection-move{display:inline-flex;align-items:center;justify-content:center;gap:4px;white-space:nowrap;font-size:.72rem;padding:5px 8px;min-height:29px;border-radius:6px}.selection-move{border:1px solid #bccddd;color:#345c80;background:#f5f9fc;margin-left:auto}.selection-move:hover{background:#e8f0f7}.selection-move svg,.selection-delete svg{width:13px;height:13px}.selection-delete{margin-left:auto}.selection-delete:disabled,.selection-move:disabled{cursor:default;opacity:.45}.folder-selection-summary{gap:5px}.folder-selection-summary>span{font-size:.7rem;min-width:0}.note-selection-tools{border-top:0;padding:2px 0 13px}.note-selection-tools:has(.selection-mode-heading){padding:10px;background:#edf2f6;border-radius:8px;margin-bottom:12px}.note-selection-tools>small{font-size:.69rem;color:#6c7d8d}.restore-original{display:flex;align-items:center;gap:5px;font-size:.72rem;margin-top:8px}.restore-original svg{width:13px;height:13px}
.list-header{padding-top:24px}.list-heading{margin-bottom:18px}.list-heading h1{font-size:1.35rem;font-weight:600;color:#30485e;line-height:1.4;letter-spacing:-.05em}.eyebrow{font-size:.63rem;color:#758898;letter-spacing:.08em;margin-bottom:3px}.search-box{background:#fff;border:1px solid #dce4ea;border-radius:8px;min-height:39px}.search-box input{font-size:.8rem;color:#445d75}.search-box input::placeholder{color:#8493a0}.search-box kbd{font-family:system-ui,sans-serif;font-size:.6rem;color:#7a8c9b;background:#f3f5f7;padding:2px 4px;border-radius:3px}.search-help{font-size:.68rem;margin-top:8px;color:#738594}.search-help code{font-size:.7rem}.list-context{font-size:.73rem;min-height:39px;color:#6e8090}.list-footer{color:#80909d;font-size:.64rem;padding:12px;background:#f8fafb}
.note-list{padding:0 12px 20px}.note-card{border:1px solid transparent;border-radius:8px;background:transparent;padding:15px 13px;margin-bottom:5px;box-shadow:none}.note-card:hover{background:#f1f5f8;border-color:#e6edf2}.note-card.active{background:#eaf1f6;border-color:#cddce8;box-shadow:none}.note-card h2{font-size:.94rem;font-weight:600;line-height:1.6;color:#314c64;letter-spacing:-.03em}.note-card p{font-size:.76rem;line-height:1.75;color:#758696;max-height:2.7rem;margin-top:7px;margin-bottom:11px}.card-foot{font-size:.66rem;color:#7f909e}.card-folder{max-width:calc(100% - 60px)}.card-tags span{font-size:.64rem;background:#edf1f5;color:#718496}.card-date{white-space:nowrap}.note-card-shell.has-selection .note-card{padding-left:37px}.note-check{left:7px;top:17px}.note-card-shell.checked .note-card{background:#e9f1f8;border-color:#c3d4e3}
.editor-topbar{min-height:58px;border-color:#e8edf0}.breadcrumb{color:#738596;font-size:.73rem}.editor-header{padding-top:31px}.note-title{font-size:1.7rem;line-height:1.5;color:#2a4256;font-weight:600;letter-spacing:-.045em}.editor-meta{font-size:.68rem;line-height:1.7;color:#7c8c99;gap:8px;flex-wrap:wrap}.save-state{color:#658372;display:inline-flex;gap:4px;align-items:center}.note-organizer{margin-top:3px;margin-bottom:14px;gap:8px}.folder-select,.tags-input{font-size:.76rem;color:#657c90;border-color:#e4e9ed;background:#fafbfd;min-height:32px}.folder-select{max-width:45%}.tags-input{max-width:none}.editor-controls{padding-top:10px;padding-bottom:10px;gap:8px;flex-wrap:wrap;border-color:#e6ecf0}.format-toolbar{gap:1px;flex-wrap:wrap}.format-toolbar button{min-width:29px;min-height:29px;color:#758899}.format-toolbar button:hover{background:#edf3f7;color:#3d6384}.view-toggle{background:#eef2f5;padding:3px;border-radius:7px;flex:none}.view-toggle button{font-size:.73rem;border-radius:5px}.view-toggle button.active{background:#fff;box-shadow:0 1px 3px #243e5e0b;color:#365b7d}.body-editor,.markdown-preview{font-family:var(--font);font-size:1rem;line-height:1.95;letter-spacing:-.015em;color:#354a5a}.body-editor{padding-top:24px}.body-editor::placeholder{color:#a2aeb8}.editor-statusbar{font-size:.67rem;color:#8795a1;border-color:#e8edf0}.attachment-heading{font-size:.76rem;color:#6c8092}.attachment-heading button{font-size:.73rem}.attachment-drop{font-size:.72rem;color:#8093a4;border-color:#dce5eb;background:#fafcfd}.source-section{background:#f7f9fb;border-color:#e1e8ee}.source-section summary{font-size:.81rem;color:#4d6981}.personal-label{font-size:.74rem}.trash-banner{font-size:.81rem;background:#fff5f1;color:#9a6150;border-color:#f0ddd5}.trash-banner button{font-size:.78rem}.empty-state h2{font-size:1.25rem;color:#496177}.empty-state p{font-size:.82rem;color:#7e909f}.empty-illustration{opacity:.7}
.account-button{border-radius:8px;padding:11px 9px;background:#eaf0f4}.account-text strong{font-size:.78rem;color:#4d667d}.account-text small{font-size:.64rem;color:#7b8d9c}.account-button .avatar{background:#d9e4ed;color:#587590}.sidebar-foot{font-size:.63rem;gap:6px}.sidebar-foot button{font-size:.65rem}.tag-cloud button{font-size:.7rem}
.modal{border-radius:12px;border-color:#dde5eb;box-shadow:0 24px 80px #263d5829}.modal-heading h2{font-size:1.08rem}.modal-description{font-size:.81rem;color:#667c8e;line-height:1.85}.modal-body h3{font-size:.9rem;color:#4c677d}.field label{font-size:.77rem;color:#536c81}.field input,.field select,.field textarea{font-size:.84rem;line-height:1.55;background:#fff;padding:10px 12px}.field small{font-size:.7rem;color:#7c8e9d}.modal-actions button{font-size:.8rem}.settings-tabs button{font-size:.8rem}.settings-row strong{font-size:.84rem}.settings-row small{font-size:.73rem;color:#738697}.info-box{font-size:.75rem;color:#667d90;background:#f3f6f9;border-color:#e0e8ee}.bulk-counts strong{font-size:1.65rem}.bulk-counts span{font-size:.72rem;color:#72889a}.danger-box{background:#fff4f3;border:1px solid #edccca;padding:12px 14px;border-radius:8px;color:#a04045;font-size:.82rem;line-height:1.8}.bulk-names{font-size:.8rem;color:#61788c}.appearance-preview{background:#f7f9fb;border:1px solid #e0e7ed;border-radius:9px;padding:20px;margin-top:19px;line-height:1.8}.appearance-preview .preview-kicker{display:block;font-family:var(--font);font-size:.68rem;color:#8b9aa6;margin-bottom:9px}.appearance-preview strong{display:block;font-size:1.12em;color:#3b5369;font-weight:600}.appearance-preview p{font-size:1em;color:#6e8395;margin:7px 0 0}.field label output{float:right;color:#416988;background:#edf3f8;padding:0 7px;border-radius:4px}.field input[type=range]{width:100%;accent-color:var(--blue);height:35px;padding:0;border:0;background:transparent}.registered-fonts .settings-row{padding:10px 0}.auth-card .intro{color:#6c8295}.auth-card h2{font-size:1.5rem}.auth-footer{font-size:.68rem}.toast{font-size:.81rem;color:#516a80;line-height:1.8}
@media(min-width:1500px){.note-title{font-size:1.9rem}.body-editor,.markdown-preview{font-size:1rem}}
@media(max-width:1150px){.brand strong{font-size:1.05rem}.brand small{font-size:.62rem}.folder-tools{margin-left:0;margin-right:0}.collection-action{padding:5px 7px}.list-heading h1{font-size:1.22rem}.note-title{font-size:1.5rem}.format-toolbar button{min-width:27px}.sidebar{padding-left:10px;padding-right:10px}}
@media(max-width:900px){.sidebar{width:min(300px,86vw);padding-left:15px;padding-right:15px}.folder-options{opacity:.7}.folder-tools .collection-action{min-height:33px}.list-heading h1{font-size:1.15rem}.editor-controls{align-items:flex-start}.format-toolbar{gap:0}.view-toggle{margin-left:auto}}
@media(max-width:650px){.list-header{padding:23px 21px 0}.list-heading h1{font-size:1.45rem}.note-list{padding:0 14px 20px}.note-card{padding:17px 15px;margin-bottom:4px}.note-card h2{font-size:1rem}.note-card p{font-size:.83rem;max-height:3rem}.card-foot{font-size:.72rem}.note-check{top:20px;left:8px}.note-card-shell.has-selection .note-card{padding-left:40px}.collection-action{font-size:.8rem;min-height:33px;padding:6px 10px}.empty-trash-button{font-size:.75rem}.selection-mode-heading,.selection-all{font-size:.82rem}.selection-delete,.selection-move{font-size:.78rem;min-height:33px}.selection-actions{font-size:.78rem}.search-box{min-height:42px}.search-box input{font-size:max(1rem,16px)}.search-help{font-size:.72rem}.list-context{font-size:.77rem}.note-title{font-size:1.55rem}.editor-header{padding-top:23px}.editor-meta{font-size:.67rem}.note-organizer{flex-wrap:wrap}.folder-select{max-width:100%;width:auto;flex:1}.tags-input{flex:1;min-width:120px}.folder-select,.tags-input{font-size:max(.9rem,16px)}.body-editor,.markdown-preview{font-size:1rem}.field input:not([type=range]),.field select,.field textarea{font-size:max(1rem,16px)}.editor-statusbar,.word-count{font-size:.65rem}.modal-actions{flex-wrap:wrap}.modal-actions button{font-size:.8rem}.appearance-preview{padding:16px}.settings-tabs button{font-size:.78rem;padding:7px 9px}.settings-row button,.settings-row a.secondary{font-size:.75rem}.data-table{font-size:.75rem}.source-section summary{flex-wrap:wrap}.breadcrumb{font-size:.72rem}.auth-story h1{font-size:1.5rem}.auth-form-wrap{padding-top:26px}.toast-region{right:12px;bottom:12px;max-width:calc(100vw - 24px)}.list-footer{font-size:.65rem}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

/* Compact navigation, quiet scrollbars and account management. */
.sidebar{padding-top:20px}.brand{margin-bottom:17px}.new-note{margin-bottom:12px}.main-nav{gap:1px}.nav-item{padding:5px 10px;min-height:32px;line-height:1.45}.sidebar-section{margin-top:16px}.section-label{margin-bottom:5px}.folder-tree{gap:0}.folder-row{min-height:28px}.folder-open{min-height:28px;padding:4px 3px 4px 5px;line-height:1.35}.folder-toggle{height:24px}.folder-options{height:24px}.folder-tools{margin-bottom:4px}.folder-tree-actions{margin-bottom:3px}.tag-cloud{gap:4px}.tag-cloud button{padding:3px 6px}.sidebar-bottom{padding-top:20px}
*{scrollbar-width:thin;scrollbar-color:transparent transparent}*::-webkit-scrollbar{width:6px;height:6px}*::-webkit-scrollbar-track{background:transparent}*::-webkit-scrollbar-thumb{background:transparent;border-radius:20px;border:1px solid transparent;background-clip:padding-box}
:where(.sidebar,.note-list,.editor-scroll,.modal-body,.source-body,.markdown-preview,textarea,.table-wrap,.settings-tabs):hover,:where(.sidebar,.note-list,.editor-scroll,.modal-body,.source-body,.markdown-preview,textarea,.table-wrap,.settings-tabs):focus-within{scrollbar-color:#a8b4bd88 transparent}
:where(.sidebar,.note-list,.editor-scroll,.modal-body,.source-body,.markdown-preview,textarea,.table-wrap,.settings-tabs):hover::-webkit-scrollbar-thumb,:where(.sidebar,.note-list,.editor-scroll,.modal-body,.source-body,.markdown-preview,textarea,.table-wrap,.settings-tabs):focus-within::-webkit-scrollbar-thumb{background-color:#a8b4bd88}
.auth-screen{display:flex;min-height:100dvh;flex-direction:column;background:#f7f9fb}.auth-form-wrap{flex:1;min-height:100dvh;padding:44px 24px;align-items:center}.auth-card{width:100%;max-width:380px;padding:32px 29px;border:1px solid #e2e8ed;border-radius:14px;background:#fff;box-shadow:0 12px 40px #314c6310}.auth-card h1{font-size:1.9rem;letter-spacing:-.06em;font-weight:600;color:var(--navy);margin:0 0 30px;text-align:center}.auth-card h2{font-size:1rem;letter-spacing:-.02em;margin:0 0 21px;text-align:center;font-weight:500}.auth-card .field{margin-bottom:17px}.auth-card .field input{width:100%;font-size:1rem}.auth-card .primary{margin-top:5px;font-size:.9rem}.auth-links{display:flex;justify-content:center;gap:5px 11px;flex-wrap:wrap;margin-top:21px}.auth-links .text-button{padding:3px 0;font-size:.74rem;line-height:1.8;color:#657d91}.auth-state{font-size:.82rem;line-height:1.8;color:#657d91}.auth-card .form-success,.auth-card .form-error{font-size:.8rem;line-height:1.8;margin-bottom:18px;overflow-wrap:anywhere}.boot-screen h1{font-size:1.9rem;font-weight:600;color:var(--navy);letter-spacing:-.06em}
.storage-summary{background:#f4f7f9;border:1px solid #e0e7ed;padding:15px 16px;border-radius:8px;margin:16px 0 20px}.storage-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;font-size:.8rem;color:#526c81}.storage-heading strong{font-weight:600}.storage-heading span{font-size:.77rem;font-variant-numeric:tabular-nums}.storage-meter{height:5px;border-radius:5px;background:#dfe7ee;overflow:hidden;margin:11px 0}.storage-meter span{display:block;height:100%;background:#648aab;border-radius:5px}.over-limit .storage-meter span{background:var(--danger)}.storage-breakdown{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:14px 0 9px}.storage-breakdown dt{font-size:.68rem;color:#788c9e}.storage-breakdown dd{margin:3px 0 0;font-size:.78rem;color:#4e697f}.storage-summary>small{font-size:.66rem;color:#7b8c9c;line-height:1.7}.storage-warning{font-size:.74rem;color:var(--danger);margin:10px 0 0;line-height:1.7}
.member-heading{display:flex;justify-content:space-between;align-items:center}.member-heading h3{margin-bottom:0}.member-list{display:grid;gap:16px}.member-card{border:1px solid #dfe6ec;border-radius:10px;padding:18px;background:#fff}.member-card>header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.member-card>header strong{font-size:.9rem;font-weight:600;color:#415e77;overflow-wrap:anywhere}.member-card>header small{display:block;font-size:.73rem;color:#71879a;margin-top:3px;overflow-wrap:anywhere}.member-meta{display:flex;flex-wrap:wrap;gap:14px;margin-top:9px;font-size:.66rem;color:#8091a1}.member-card .storage-summary{margin:13px 0;padding:10px 12px}.member-card .storage-heading{font-size:.72rem}.member-card .storage-heading span{font-size:.7rem}.member-card .form-grid{margin-top:12px}.member-card .field{margin:0}.member-limit{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-top:14px}.quota-input{display:flex;gap:7px;flex:1;max-width:260px;min-width:160px}.quota-input input{width:0;flex:1;min-width:0;font-size:.8rem;padding:7px 9px}.quota-input select{font-size:.76rem;padding:7px 8px}.member-limit .check-row,.member-card>footer .check-row{font-size:.75rem}.member-card>footer{display:flex;justify-content:space-between;align-items:center;margin-top:15px;padding-top:12px;border-top:1px solid #edf0f3}.member-card>footer button{font-size:.78rem;padding:7px 17px}.member-card input:disabled,.member-card select:disabled{color:#8594a1;background:#f4f6f8}.member-card .form-error{font-size:.78rem}
@media(max-width:650px){.auth-form-wrap{padding:28px 20px}.auth-card{padding:29px 23px;box-shadow:none}.auth-card h1{font-size:1.8rem}.auth-links .text-button{font-size:.75rem}.storage-summary{padding:13px}.storage-breakdown{grid-template-columns:repeat(2,1fr)}.member-card{padding:14px}.member-card .form-grid{grid-template-columns:1fr;gap:12px}.member-limit{align-items:flex-start;flex-direction:column}.quota-input{max-width:none;width:100%}.member-meta{gap:9px}.nav-item{min-height:34px}.folder-row,.folder-open{min-height:30px}}
@media(forced-colors:active){*{scrollbar-color:auto}.storage-meter{border:1px solid CanvasText}.storage-meter span{background:Highlight}}
@media(prefers-contrast:more){*{scrollbar-color:GrayText transparent}}

/* Folder names must shrink inside their grid track, never pan the sidebar. */
.sidebar{overflow-x:hidden}.folder-tree{grid-template-columns:minmax(0,1fr)}.folder-row,.folder-open,.folder-name{min-width:0}.folder-toggle,.folder-toggle-placeholder,.folder-options,.folder-check,.folder-glyph{flex:none}.brand>span:last-child{min-width:0}.brand strong{max-width:100%}.tag-cloud button{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
