:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#30372f;background:#f5f4ef;font-synthesis:none;--accent:#355b44;--accent-light:#e5ebe1;--ink:#30372f;--muted:#85877d;--line:#e6e6dc;--paper:#fdfdf9;--sidebar:278px}
*{box-sizing:border-box}body{margin:0}button,input,textarea{font:inherit}button{cursor:pointer}button,input,textarea,a{-webkit-tap-highlight-color:transparent}button{color:inherit}button:focus-visible,a:focus-visible{outline:2px solid #5c8163;outline-offset:4px}input:focus-visible,textarea:focus-visible{outline:none}input:focus-visible{box-shadow:0 2px 0 #5c8163}button:disabled{cursor:default;opacity:.45}[hidden]{display:none!important}svg{flex:none}button svg{width:19px;height:19px}kbd{font-family:inherit}::selection{background:#dce8d7;color:#253e2d}
.workspace{display:flex;height:100vh;height:100dvh;min-height:500px}.sidebar{width:var(--sidebar);flex:none;background:#f3f3ed;border-right:1px solid var(--line);display:flex;flex-direction:column;padding:35px 22px 23px;z-index:20}.brand{display:flex;align-items:center;justify-content:space-between}.brand-link{display:flex;align-items:center;gap:11px;text-decoration:none;color:var(--ink);font-size:26px;letter-spacing:-1.2px;font-weight:650}.brand-mark{height:36px;width:36px;display:flex;align-items:center;justify-content:center;background:var(--accent);border-radius:10px;color:#fcfdf8}.brand-dot{color:var(--accent)}.brand-subtitle{color:#818477;font-size:12px;margin:14px 0 33px;letter-spacing:.05px}.new-note{display:flex;align-items:center;gap:9px;padding:12px 13px;border:1px solid var(--accent);border-radius:7px;background:var(--accent);color:#fcfdf9;font-size:13px;font-weight:550;box-shadow:0 2px 2px #355b4408;transition:background .15s,transform .15s}.new-note:hover{background:#284a36}.new-note:active{transform:translateY(1px)}.new-note kbd{margin-left:auto;color:#bfcec0;font-weight:400;font-size:10px;letter-spacing:1px}.search-field{display:flex;align-items:center;gap:8px;color:#96998c;margin:20px 1px 25px;padding:9px 0}.search-field svg{width:17px;height:17px}.search-field input{width:100%;min-width:0;border:0;background:none;font-size:12px;color:var(--ink);border-radius:0;padding:1px 0 3px}.search-field input::placeholder{color:#8a8c81}.search-field input::-webkit-search-cancel-button{cursor:pointer}.library-heading{display:flex;align-items:center;justify-content:space-between;margin:0 4px 12px}.library-heading h2{font-size:10px;letter-spacing:1.3px;text-transform:uppercase;color:#84867b;font-weight:600;margin:0}.note-count{font-size:10px;font-variant-numeric:tabular-nums;background:#e7e8df;color:#7b8073;border-radius:4px;min-width:19px;padding:3px 6px;text-align:center}.note-list{flex:1;min-height:100px;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#d5d9cb transparent;padding:2px;margin:0 -2px}.empty-library{border:1px dashed #dddfd3;border-radius:7px;margin:3px 2px;padding:23px 12px;color:#7b8072;text-align:center;font-size:12px;line-height:1.7}.empty-library p{margin:0 0 4px;font-weight:500;color:#656d5e}.empty-library span{font-size:11px}.note-item,.note-card{display:block;width:100%;text-align:left;background:transparent;border:1px solid transparent;border-radius:7px;padding:14px 12px;margin:0 0 7px;color:#717769;transition:background .15s,border-color .15s}.note-item:hover,.note-card:hover{background:#eaece3}.note-item.active,.note-card.active,.note-item[aria-current="true"],.note-card[aria-current="true"]{background:var(--accent-light);border-color:#d8e2d2;color:var(--accent)}.note-title,.note-card-title,.note-card__title,.note-item-title{display:block;font-weight:600}.note-item .note-title,.note-card .note-title,.note-card-title,.note-card-title,.note-card__title,.note-item-title{font-size:13px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;letter-spacing:-.1px;line-height:1.6}.note-preview,.note-card-preview,.note-card__preview,.note-item-preview{display:block;font-size:11px;line-height:1.7;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#909685;margin:4px 0 8px;font-weight:400}.note-date,.note-card-meta,.note-card__date,.note-item-date{display:block;font-size:9px;color:#99a18e;letter-spacing:.15px}.sidebar-footer{border-top:1px solid #e1e4d7;margin-top:20px;padding:20px 3px 0}.storage-badge{display:flex;align-items:center;gap:7px;font-size:11px;font-weight:550;color:#65745d}.storage-badge svg{width:15px;height:15px;color:#718268}.sidebar-footer p{color:#929687;line-height:1.7;font-size:11px;margin:10px 0 14px;max-width:185px}.backup-button{padding:0;border:0;background:none;font-size:10px;color:#738368;display:flex;align-items:center;gap:7px}.backup-button:hover{color:var(--accent)}
.main{flex:1;min-width:0;display:flex;flex-direction:column;background:var(--paper)}.topbar{flex:none;height:78px;padding:0 43px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #edeee6;gap:16px}.workspace-label{display:flex;align-items:center;gap:13px}.breadcrumb{color:#8b8e81;font-size:11px;letter-spacing:.1px}.breadcrumb span{color:#bdc1b3;margin:0 12px}.breadcrumb strong{font-weight:500;color:#72796a}.save-status{display:flex;align-items:center;gap:7px;font-size:10px;color:#86957e;white-space:nowrap}.save-status::before,.status-dot{content:"";flex:none;width:5px;height:5px;background:#82a16f;border-radius:50%;box-shadow:0 0 0 3px #82a16f0c}.save-status.saving{color:#9b9476}.save-status.saving .status-dot{background:#b3a478}.save-status.error,.save-status[data-state="error"]{color:#ae674e}.save-status.error .status-dot,.save-status[data-state="error"]::before{background:#ae674e}.writing-area{display:flex;flex-direction:column;flex:1;min-height:0;width:100%;max-width:1100px;margin:0 auto;padding:50px 64px 0}.editor-heading{flex:none}.eyebrow{display:flex;align-items:center;gap:8px;text-transform:uppercase;letter-spacing:1.7px;font-size:9px;color:#9a9f8e;font-weight:500}.tiny-line{display:inline-block;width:17px;height:1px;background:#a3b299}.title-row{display:flex;align-items:center;gap:14px;margin-top:21px}.note-title{background:none;border:0;width:100%;min-width:0;letter-spacing:-1.3px;color:#384333;font-size:36px;line-height:1.4;font-weight:500;border-radius:0;padding:0 0 2px}.note-title::placeholder{opacity:1;color:#a0a797}.icon-button{display:inline-flex;align-items:center;justify-content:center;background:none;border:0;border-radius:5px;padding:8px;color:#919d86;transition:background .15s,color .15s}.icon-button:hover{background:#edf0e7;color:var(--accent)}.delete-note{align-self:center;color:#a5aa9b;margin-right:-8px}.delete-note:hover{color:#ad6250;background:#f8eeea}.editor-meta{display:flex;align-items:center;justify-content:space-between;padding:14px 0 21px;border-bottom:1px solid #e9ece2;gap:12px}#last-edited{font-size:10px;color:#a1a797;letter-spacing:.05px}.toolbar{display:flex;align-items:center;gap:15px}.tool-button{border:0;background:none;color:#8c9781;display:flex;align-items:center;gap:6px;padding:5px 0;font-size:10px;white-space:nowrap}.tool-button svg{width:15px;height:15px}.tool-button:hover{color:var(--accent)}.tool-button[aria-pressed="true"]{color:var(--accent)}.toolbar-divider{height:12px;width:1px;background:#dce2d3;margin:0 2px}.editor{flex:1;min-height:140px;background:transparent;color:#47533f;border:0;padding:28px 0 20px;resize:none;width:100%;font-size:15px;line-height:1.9;font-weight:400;letter-spacing:.04px;tab-size:4;scrollbar-width:thin;scrollbar-color:#dce3d3 transparent;border-radius:0;white-space:pre-wrap;overflow-wrap:break-word}.editor::placeholder{color:#b0b7a5;opacity:1}.editor-footer{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #edf0e6;padding:17px 0 16px;gap:14px;font-size:10px;color:#9aa38e}.stats{font-variant-numeric:tabular-nums}.stats span{padding:0 8px;color:#c1c7b8}.autosave-hint{color:#a5ae9a;font-size:9px;white-space:nowrap}.autosave-hint>span{color:#9da891;margin-right:4px}.workspace-footer{flex:none;display:flex;align-items:center;justify-content:space-between;padding:13px 43px;background:#f9faf4;border-top:1px solid #e9ede1;font-size:9px;color:#a2a996;min-height:40px}.shortcut-hint{display:flex;align-items:center;gap:4px;color:#afb6a4}.shortcut-hint kbd{font-size:8px;border:1px solid #e1e6d9;background:#fcfdf8;min-width:14px;padding:2px 3px;border-radius:3px;text-align:center;line-height:1}.shortcut-hint>span{margin:0 7px}.storage-warning{padding:13px 25px;background:#fbf0dd;color:#977543;display:flex;align-items:flex-start;gap:10px;font-size:12px;line-height:1.6;border-bottom:1px solid #f0e4ca}.storage-warning svg{width:18px;height:18px;margin-top:1px}.library-toggle,.close-library,.sidebar-backdrop{display:none}
.delete-dialog{background:var(--paper);color:var(--ink);width:min(410px,calc(100% - 40px));border:1px solid #dfe5d8;border-radius:13px;padding:30px;box-shadow:0 25px 100px #263e2630}.delete-dialog::backdrop{background:#20352038;backdrop-filter:blur(3px)}.dialog-icon{width:36px;height:36px;border-radius:9px;background:#f6ece7;color:#ae7560;display:flex;align-items:center;justify-content:center}.dialog-icon svg{width:19px;height:19px}.delete-dialog h2{font-size:20px;font-weight:550;letter-spacing:-.5px;margin:20px 0 10px}.delete-dialog p{font-size:13px;color:#828978;line-height:1.7;margin:0}.dialog-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:26px}.dialog-actions button{font-size:12px;font-weight:550;border-radius:6px;padding:10px 14px}.button-secondary{border:1px solid #dce2d4;background:#fafbf5;color:#6e7c62}.button-secondary:hover{background:#eef2e7}.button-danger{border:1px solid #a65b45;background:#a65b45;color:white}.button-danger:hover{background:#914c38}.toast{position:fixed;bottom:65px;left:calc(50% + 139px);transform:translateX(-50%);z-index:40;background:#355b44;color:#fafff6;padding:11px 20px;border-radius:8px;font-size:12px;box-shadow:0 4px 15px #355b4426;max-width:90vw;text-align:center}
body.focus-mode .sidebar{display:none}body.focus-mode .main{width:100%}body.focus-mode .writing-area{max-width:1020px}body.focus-mode .toast{left:50%}body.focus-mode .breadcrumb{opacity:.6}body.focus-mode .library-toggle{display:none}
@media(min-width:1500px){.writing-area{padding-top:67px}.editor{font-size:16px}.editor-heading{margin-bottom:3px}}
@media(max-width:1100px){:root{--sidebar:248px}.sidebar{padding:30px 18px 20px}.topbar{padding:0 30px}.writing-area{padding:43px 38px 0}.workspace-footer{padding:13px 30px}.toolbar{gap:12px}.toast{left:calc(50% + 124px)}}
@media(max-width:850px){.sidebar{width:var(--sidebar);position:fixed;top:0;bottom:0;left:0;transform:translateX(-100%);transition:transform .2s ease;box-shadow:12px 0 50px #263e2610}.sidebar.is-open,.sidebar.open,body.sidebar-open .sidebar,body.library-open .sidebar{transform:translateX(0)}body.library-open .sidebar-backdrop{display:block;position:fixed;inset:0;z-index:15;border:0;background:#20352030;backdrop-filter:blur(2px)}.library-toggle,.close-library{display:inline-flex}.close-library{margin-right:-7px}.sidebar .brand-link{font-size:24px}.main{width:100%}.topbar{height:65px;padding:0 27px}.writing-area{padding:43px 42px 0;max-width:800px}.breadcrumb{font-size:10px}.toast{left:50%}.workspace-footer{padding:13px 30px}}
@media(max-width:550px){.workspace{min-height:400px}.topbar{padding:0 17px;height:60px;gap:8px}.workspace-label{gap:9px}.breadcrumb{font-size:9px}.breadcrumb span{margin:0 7px}.save-status{font-size:9px;gap:5px}.writing-area{padding:33px 24px 0}.eyebrow{font-size:8px;letter-spacing:1.35px}.title-row{margin-top:18px}.note-title{font-size:30px;letter-spacing:-1px}.delete-note{padding:6px}.editor-meta{padding:13px 0 17px;flex-wrap:wrap;row-gap:14px}.toolbar{gap:15px}.tool-button{font-size:9px;gap:5px}.tool-button svg{width:14px;height:14px}#last-edited{font-size:9px}.editor{padding-top:24px;font-size:14px;line-height:1.85}.editor-footer{padding:14px 0;font-size:9px}.autosave-hint{font-size:8px}.workspace-footer{padding:12px 24px;min-height:35px;font-size:8px}.shortcut-hint{display:none}.toast{bottom:52px}.storage-warning{padding:12px 20px;font-size:11px}.delete-dialog{padding:26px}}
@media(max-width:380px){.breadcrumb{display:none}.editor-meta{align-items:flex-start}.toolbar{width:100%;justify-content:flex-end}.autosave-hint{display:none}.writing-area{padding-left:20px;padding-right:20px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

.note-card-top{display:flex;align-items:center;gap:8px}.note-card-title{flex:1;min-width:0}.note-card-dot{display:none;flex:none;width:5px;height:5px;border-radius:50%;background:#759664}.note-card.active .note-card-dot{display:block}.empty-search{padding:20px 12px;text-align:center;font-size:12px;color:#858e78;line-height:1.7}

/* Shared cloud file bridge */
.file-list,.upload-queue{padding:0;list-style:none}.upload-message{display:block}
.workspace-tabs{display:flex;gap:3px;align-items:center;margin-left:auto;margin-right:22px;padding:3px;border:1px solid #e1e6da;border-radius:8px;background:#f2f4ed;flex:none}
.workspace-tab{display:flex;align-items:center;gap:6px;border:0;border-radius:5px;background:transparent;padding:7px 11px;font-size:11px;font-weight:550;color:#849078;transition:background .15s,color .15s}
.workspace-tab svg{width:15px;height:15px}.workspace-tab:hover{background:#e8eee1;color:var(--accent)}.workspace-tab[aria-pressed="true"]{background:var(--paper);color:var(--accent);box-shadow:0 1px 3px #263e2610}
body.files-view #save-status{display:none}body.files-view .workspace-tabs{margin-right:0}.file-panel{flex:1;min-height:0;width:100%;max-width:1150px;margin:0 auto;padding:43px 46px 30px;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#d5d9cb transparent}
.file-panel-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:27px}.file-panel-heading h1{font-size:34px;letter-spacing:-1.3px;line-height:1.2;font-weight:580;margin:17px 0 10px}.file-panel-heading p{font-size:13px;color:#8b9480;line-height:1.7;margin:0}.bridge-badge{font-size:10px;white-space:nowrap;border:1px solid #dfe7d7;border-radius:20px;padding:8px 11px;color:#7f9173;background:#f7faf2}.bridge-badge span{margin-right:4px;color:var(--accent)}
.file-dropzone{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:20px;padding:27px 25px;border:1px dashed #b9c8ad;border-radius:12px;background:linear-gradient(120deg,#f6f9f0,#fbfcf7);transition:border-color .15s,background .15s}.file-dropzone.is-dragging{background:#e7f0de;border-color:#355b44;box-shadow:0 0 0 3px #355b4410}.file-upload-icon{display:flex;align-items:center;justify-content:center;width:52px;height:52px;border:1px solid #dce7d1;background:#eef3e6;border-radius:13px;color:#6e8b59}.file-upload-icon svg{width:30px;height:30px}.dropzone-copy h2{font-size:17px;font-weight:560;letter-spacing:-.35px;margin:0 0 6px}.dropzone-copy p{font-size:11px;color:#879578;line-height:1.6;margin:0 0 5px}.dropzone-copy>span{font-size:10px;color:#a1ad93}.file-upload-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;white-space:nowrap;border:1px solid var(--accent);background:var(--accent);color:#fafff5;border-radius:7px;padding:11px 16px;font-size:12px;font-weight:550;min-height:42px}.file-upload-button:hover{background:#284a36}.file-upload-button>span{font-size:18px;line-height:1}
.upload-queue{display:grid;gap:9px;margin-top:17px}.upload-queue:empty{display:none}.upload-item{padding:14px 16px;border:1px solid #e3e9db;border-radius:8px;background:#fafcf6}.upload-item-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:9px}.upload-name{font-size:12px;min-width:0;overflow-wrap:anywhere;font-weight:550}.upload-actions{display:flex;align-items:center;gap:12px;flex:none}.upload-retry,.upload-cancel{font-size:11px!important}.upload-progress{display:block;width:100%;height:4px;border:0;border-radius:4px;overflow:hidden;accent-color:var(--accent);background:#e6eddd}.upload-progress::-webkit-progress-bar{background:#e6eddd;border-radius:4px}.upload-progress::-webkit-progress-value{background:#729565;border-radius:4px}.upload-message{font-size:10px;line-height:1.6;margin:8px 0 0;color:#91a080}.upload-item[data-state="error"]{border-color:#ead3c5;background:#fdf8f3}.upload-item[data-state="error"] .upload-message{color:#a36747}.upload-item[data-state="cancelled"] .upload-message{color:#9a9987}.upload-item[data-state="saved"] .upload-message{color:#5f8252}
.file-library-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:34px}.file-library-heading>div{display:flex;align-items:center;gap:10px}.file-library-heading h2{font-size:15px;letter-spacing:-.2px;font-weight:570;margin:0}.refresh-files{font-size:11px;min-height:34px}.refresh-files svg{width:15px;height:15px}.files-status{font-size:11px;line-height:1.6;min-height:18px;color:#a0ac93;margin:8px 0 8px}.files-status[data-state="error"]{color:#a36747}.files-empty{border:1px solid #e8ecdf;background:#fafbf6;border-radius:10px;padding:33px 24px;text-align:center;margin-top:12px}.files-empty>span{font-size:30px;font-weight:300;line-height:1;color:#9daf8f}.files-empty h3{font-size:14px;font-weight:500;margin:14px 0 8px;color:#7d8c70;letter-spacing:-.2px}.files-empty p{font-size:11px;line-height:1.7;color:#a4ad9a;max-width:330px;margin:0 auto}.file-list{margin-top:3px}.file-card{display:flex;align-items:center;gap:14px;padding:16px 2px;border-bottom:1px solid #e8eddf}.file-icon{flex:none;width:39px;height:44px;background:#f0f3e9;border:1px solid #e2e9d8;border-radius:6px;display:flex;align-items:center;justify-content:center;color:#839770;font-size:9px;font-weight:650;letter-spacing:.2px}.file-info{flex:1;min-width:0}.file-name{display:block;font-size:13px;font-weight:520;color:#576c48;line-height:1.6;overflow-wrap:anywhere}.file-meta{display:block;font-size:10px;color:#a0ad92;margin-top:4px;line-height:1.5}.file-actions{display:flex;align-items:center;gap:17px;flex:none}.file-download{text-decoration:none;color:var(--accent);font-size:11px}.file-download:hover{color:#223e2d}.file-delete{color:#acb39d;font-size:11px}.file-delete:hover{color:#a4654c;background:#f7eee6}.load-more-files{display:block;margin:22px auto 0;border:1px solid #dce2d4;border-radius:6px;padding:9px 17px;font-size:11px}.files-sharing-note{display:flex;align-items:flex-start;gap:7px;color:#a2ae96;font-size:10px;line-height:1.7;margin:26px 0 0}.files-sharing-note svg{width:14px;height:14px;margin-top:2px;flex:none}.delete-file-name{font-weight:600!important;color:#5f7252!important;overflow-wrap:anywhere;margin-bottom:12px!important}.file-delete-error{color:#a36747!important;margin-top:14px!important}
@media(max-width:1100px){.topbar{gap:12px}.workspace-tabs{margin-right:5px}.breadcrumb strong{display:none}.breadcrumb>span{display:none}.file-panel{padding:36px 32px 26px}.bridge-badge{display:none}.file-dropzone{gap:15px;padding:23px 20px}.dropzone-copy p{max-width:220px}.file-panel-heading h1{font-size:31px}}
@media(max-width:850px){.breadcrumb{display:none}.workspace-tabs{margin-right:0}.file-panel{max-width:800px;padding:33px 32px 25px}.topbar{gap:12px}.workspace-label{flex:none}.save-status{min-width:0}.workspace-tab{padding:7px 10px}}
@media(max-width:550px){.workspace-tabs{gap:1px;padding:2px;margin-left:0}.workspace-tab{font-size:10px;padding:7px 9px;gap:5px}.workspace-tab svg{width:13px;height:13px}.save-status{margin-left:auto;font-size:8px}.topbar{gap:8px}.file-panel{padding:26px 22px 24px}.file-panel-heading{margin-bottom:21px}.file-panel-heading h1{font-size:29px;letter-spacing:-1px;margin-top:14px}.file-panel-heading p{font-size:11px}.file-dropzone{grid-template-columns:42px 1fr;gap:13px;padding:20px 17px}.file-upload-icon{width:42px;height:44px;border-radius:10px}.file-upload-icon svg{width:26px;height:26px}.dropzone-copy h2{font-size:16px}.dropzone-copy p{font-size:10px;max-width:none}.dropzone-copy>span{font-size:9px}.file-upload-button{grid-column:1/-1;width:100%;padding:11px 14px;font-size:12px;min-height:44px;margin-top:4px}.file-library-heading{margin-top:27px}.file-card{display:grid;grid-template-columns:36px 1fr;gap:8px 12px;padding:16px 0}.file-icon{width:36px;height:42px;grid-row:1/3}.file-name{font-size:12px}.file-meta{font-size:9px}.file-actions{grid-column:2;gap:22px}.file-download{min-height:35px;display:inline-flex;align-items:center}.file-delete{min-width:35px;min-height:35px;padding:7px}.files-sharing-note{font-size:9px}.upload-item{padding:12px}.upload-actions{gap:9px}.upload-name{font-size:11px}.files-empty{padding:29px 19px}.file-panel-heading .eyebrow{font-size:8px}}
