*{box-sizing:border-box} [hidden]{display:none!important} :root{font:15px/1.5 system-ui,sans-serif;color:#203b36;background:#f5f8f7;--accent:#087d73;--line:#dce7e3}body{margin:0}button,input{font:inherit}button{cursor:pointer;border:1px solid var(--line);border-radius:10px;padding:9px 14px;color:inherit;background:#fff}button:hover{background:#e7f3ef}button:focus-visible,input:focus-visible{outline:2px solid var(--accent);outline-offset:2px}header{height:68px;display:flex;align-items:center;gap:14px;padding:0 24px;border-bottom:1px solid var(--line);background:white}.brand{font-weight:750;font-size:23px;display:flex;align-items:center;gap:10px;color:var(--accent);margin-right:auto}.logo{display:grid;place-items:center;color:white;background:var(--accent);width:35px;height:35px;border-radius:10px}.brand small{font-size:10px;letter-spacing:1px;color:#6a827b}#status{font-size:12px;color:#56716a}main{display:grid;grid-template-columns:240px minmax(260px,340px) minmax(0,1fr);height:calc(100dvh - 68px)}aside,.listing,article{overflow:auto;min-height:0}aside{padding:20px 14px;border-right:1px solid var(--line);display:flex;flex-direction:column;gap:8px}.section{font-size:11px;letter-spacing:1px;color:#6d817b;margin-top:14px}.space{width:100%;text-align:left;border:0;background:transparent;margin:3px 0}.space.active{background:#d9eee7;color:#075f57;font-weight:650}.bottom{margin-top:auto;font-size:12px;color:#6d817b}.listing{background:#fff;border-right:1px solid var(--line)}.listhead{padding:20px 16px 12px;position:sticky;top:0;background:white;border-bottom:1px solid var(--line);z-index:1}h2{font-size:20px;margin:0 0 12px}nav{display:flex;flex-wrap:wrap;gap:4px;margin-bottom:12px}nav button{border:0;background:#f0f6f3;padding:3px 7px;font-size:12px}input{width:100%;border:1px solid #cbdad5;border-radius:9px;padding:10px;background:white;color:inherit}.item{display:flex;text-align:left;align-items:center;gap:12px;width:100%;border:0;border-bottom:1px solid #edf2ef;border-radius:0;padding:14px 16px}.item.active{background:#def0ea}.item span:first-child{font-size:21px;color:var(--accent)}.item span:last-child{overflow-wrap:anywhere}article{padding:32px;background:#fff}article h1{font-size:27px;overflow-wrap:anywhere;margin:0 0 12px}.muted{color:#657c75;font-size:13px}.body{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8;margin:24px 0}.empty{padding:40px 20px;text-align:center;color:#71877f}.media{display:block;max-width:100%;max-height:65vh;object-fit:contain;margin:14px 0}.attachment{border:1px solid var(--line);padding:12px;border-radius:12px;margin:10px 0}dialog{border:1px solid var(--line);border-radius:18px;padding:24px;width:min(450px,94vw);color:inherit}dialog::backdrop{background:#142f2c66}label{display:block;margin:12px 0;font-size:13px}label input{margin-top:5px}.actions{display:flex;justify-content:flex-end;gap:8px}.primary{background:var(--accent);color:white;border-color:var(--accent)}#error{color:#a43636;overflow-wrap:anywhere}@media(max-width:850px){main{grid-template-columns:170px minmax(200px,1fr) minmax(0,1.3fr)}header{padding:0 10px}#status{display:none}article{padding:20px}}@media(max-width:600px){main{display:block;height:auto}aside,.listing,article{overflow:visible;border-bottom:1px solid var(--line)}aside{padding:8px 14px}.bottom{display:none}.section{margin-top:4px}.listhead{position:static}header{height:auto;min-height:60px;flex-wrap:wrap;padding:10px}.brand{font-size:20px}article{min-height:240px}}
:root{--accent:#286b43;--line:#dce4d9;--left:260px;--middle:360px;color:#202b23;background:#f3f6ef;font:15px/1.45 system-ui,'Segoe UI',sans-serif}header{height:72px;background:#f3f6ef;padding:0 24px;gap:12px}.brand{color:#253127;font-size:24px}.logo{object-fit:contain;background:none;width:40px;height:40px}.brand small{color:#788479}button{transition:background .13s ease; }button:disabled{cursor:default;opacity:.48}button:hover:not(:disabled){background:#e5efe1}.tool{border:0;background:transparent;padding:8px;width:42px;height:42px;display:grid;place-items:center;color:#52715b}.tool svg{width:24px;height:24px}#account{background:#fff;border-color:#cedbce;font-weight:600}main{grid-template-columns:var(--left) 7px var(--middle) 7px minmax(0,1fr);height:calc(100dvh - 72px);background:#f3f6ef}aside{padding:22px 16px;gap:10px;border:0}.section{font-size:12px;color:#69766a;font-weight:650;letter-spacing:.07em;margin:10px 0 4px}.space{display:flex;align-items:center;gap:12px;background:#e0efda;padding:13px 12px;border-radius:17px;min-height:70px;border:2px solid transparent;color:#253329}.space.active{background:#e0efda;color:#214c32;border-color:#75a285}.space>svg,.item>svg{width:15px;height:15px;flex:none;color:#62766a;margin-left:auto}.space-copy,.item-copy{display:flex;flex-direction:column;gap:4px;min-width:0;flex:1}.space-copy strong,.item-copy strong{font-size:15px;font-weight:650;overflow-wrap:anywhere}.space-copy small,.item-copy small{font-size:12px;color:#6b786d}.glyph{width:43px;height:43px;flex:none;border-radius:12px;background:#286b43;color:white;display:grid;place-items:center}.glyph svg{width:25px;height:25px}.tone-0{--tone:#d9eeeb;--glyph:#087d80}.tone-1{--tone:#eae3f3;--glyph:#7652a3}.tone-2{--tone:#fff0cd;--glyph:#a16e18}.project-card,.project-card.active{background:var(--tone);color:#253329}.project-card .glyph,.space-banner .glyph{background:var(--glyph,#286b43)}.project-card.active{border-color:var(--glyph)}#projects{display:flex;flex-direction:column;gap:8px}.sidebar-actions{display:flex;flex-direction:column;gap:8px;order:1}.sidebar-actions button:first-child{background:#286b43;color:white}.bottom{order:2;margin-top:auto;color:#758174;padding:18px 0 0}.split{cursor:col-resize;background:#e0e7dd;position:relative;touch-action:none}.split:after{content:'';position:absolute;inset:0 2px;background:#d1dcd0}.split:hover,.split:focus-visible{background:#86ac8c;outline:none}.listing{background:#f5f7f2;border:0;padding:0 13px}.listhead{padding:20px 0 13px;background:#f5f7f2;border:0}.space-banner{display:flex;align-items:center;gap:12px;background:var(--tone,#e0efda);border-radius:17px;padding:16px 12px;margin-bottom:16px}.space-banner h2{margin:2px 0 0;font-size:21px}.space-banner small{color:#647467;font-size:12px}.space-banner .glyph{width:46px;height:46px}.listhead nav{gap:6px;margin-bottom:13px}.listhead nav button{background:#e9eee5;color:#47664d;font-weight:550;padding:5px 9px}.listhead input{background:white;border-color:#d7e0d4;border-radius:12px;padding:11px 12px}#items{display:flex;flex-direction:column;gap:8px;padding-bottom:20px}.item{border:1px solid #e4eae1;border-radius:15px;background:white;padding:12px 10px;min-height:70px;gap:11px}.item.active{background:#e0efda;border-color:#9ab99a}.item .glyph{width:42px;height:42px;background:#dfefdc;color:#286b43}.item .glyph.folder{background:#f1ebd7;color:#95772d}.item .glyph.image{background:#e0eeef;color:#087d80}.item .glyph svg{width:24px;height:24px}.item-copy{overflow:hidden}.item-copy strong{font-size:15px}.item-copy small{font-size:12px}.item span:first-child{color:inherit}.item .glyph.folder{color:#95772d}.item .glyph.note{color:#286b43}article{background:#fff;padding:35px clamp(24px,4vw,64px)}article h1{font-size:32px;font-weight:700;color:#253127;margin:18px 0 8px}.detail-top{display:flex;align-items:center;gap:12px;color:#286b43}.detail-top .glyph{background:#dfefdc;color:#286b43}.body{font-size:16px;border-top:1px solid var(--line);padding-top:24px;max-width:960px}.welcome{min-height:65vh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;color:#7a8679}.welcome .glyph{width:72px;height:72px;background:#e6efe2;color:#598363;border-radius:22px;margin-bottom:8px}.welcome .glyph svg{width:36px;height:36px}.welcome h2{color:#34473a;margin:0;font-size:23px}.welcome p{margin:0;max-width:300px}.primary{background:#286b43}.primary:hover:not(:disabled){background:#205636}.muted{color:#768178}dialog{border:0;box-shadow:0 20px 70px #243a2633;border-radius:24px}dialog::backdrop{background:#25352766} @media(max-width:1050px){main{grid-template-columns:210px 5px 280px 5px minmax(0,1fr)}.split{pointer-events:none}aside{padding:14px 10px}article{padding:24px}}@media(max-width:700px){main{display:block;height:auto}.split{display:none}header{height:auto;min-height:64px;flex-wrap:wrap;padding:10px}.tool{width:34px;height:34px}aside,.listing,article{overflow:visible}aside{padding:12px}.listing{padding:0 12px}.welcome{min-height:230px}.sidebar-actions{display:none}.bottom{display:none}.listhead{position:static}}
.nav-action{text-align:left;background:transparent;border:0;padding:10px 14px}.nav-action.active{background:#dcebd7;color:#286b43}.list-actions{display:flex;gap:8px;margin-top:10px;align-items:center}.list-actions select{min-width:0;flex:1}select,textarea{font:inherit;color:inherit;border:1px solid #cbdad5;border-radius:10px;padding:9px;background:white}.item-row{display:flex;align-items:stretch;gap:4px}.item-row .item{flex:1;min-width:0}.more{border:0;background:transparent;padding:4px 9px;font-size:22px}.context-menu{position:fixed;z-index:20;width:230px;background:white;border:1px solid var(--line);border-radius:14px;box-shadow:0 8px 30px #243a2633;padding:6px;display:flex;flex-direction:column}.context-menu button{text-align:left;border:0}.note-editor{display:block;width:100%;min-height:50vh;margin-top:16px;resize:vertical;line-height:1.7}.detail-top .primary{margin-left:auto}main.focus-mode{grid-template-columns:minmax(0,1fr)}main.focus-mode>aside,main.focus-mode>.listing,main.focus-mode>.split{display:none}.primary{color:white}.item-copy strong,.space-copy strong{font-size:16px}.item-copy small,.space-copy small{font-size:13px}
.project-card .glyph,.space-banner .glyph{overflow:hidden;flex-shrink:0}.project-card .glyph img,.space-banner .glyph img{width:100%;height:100%;object-fit:cover}.member-faces{display:flex;align-items:center;gap:4px;margin-top:5px;flex-wrap:wrap}.member-face{display:inline-flex;width:23px;height:23px;border-radius:50%;background:#fff9;align-items:center;justify-content:center;overflow:hidden;font-size:11px;color:#345b42}.member-face img{width:100%;height:100%;object-fit:cover}.member-faces small{font-size:11px}.tool.connected{color:#286b43;background:#e0efda}#status{max-width:45vw;overflow-wrap:anywhere}

#historyRows{max-height:60vh;overflow:auto}.history-row{padding:10px 0;border-bottom:1px solid #dce6df}.history-row small{color:#526963}label[hidden]{display:none!important}
#manageDialog{width:min(560px,94vw);max-height:88vh;overflow:auto}#manageContent{display:grid;gap:10px}#manageContent h3{margin:14px 0 2px}#manageContent .manage-field{display:grid;gap:5px}#manageContent .manage-field[hidden]{display:none}#manageContent .history-row{display:grid;gap:7px}#manageContent .space-banner{display:flex;align-items:center;gap:12px}#manageContent details summary{cursor:pointer;padding:10px}#manageContent .glyph img{width:100%;height:100%;object-fit:cover}
#accountContent,#eventRows{display:grid;gap:12px;margin-bottom:16px}.profile-avatar{width:96px;height:96px;object-fit:cover;border-radius:50%;justify-self:center}.account-error{color:#a52b36}#eventsDialog,#accountDialog{max-height:85vh;overflow:auto}
.avatar-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.avatar-grid button{padding:0;border:0;background:transparent}.avatar-grid img{width:100%;max-width:72px;aspect-ratio:1;object-fit:contain;border-radius:50%}

.invite-qr{display:block;width:min(290px,75vw);height:auto;margin:12px auto;image-rendering:pixelated;background:white}.invite-video{display:block;width:min(420px,80vw);max-height:55vh;background:#111;border-radius:12px}.unified-dialog{width:min(620px,90vw)}.unified-dialog .history-row{display:flex;flex-direction:column;gap:5px}.unified-dialog .history-row button{align-self:flex-end}

/* 0.12.0: shared desktop visual system; no cloud or data changes. */
:root{--accent:#286b43;--line:#dce6dc;--surface:#fff;--surface-soft:#f5f8f3;--ink:#223229;--muted:#64736a;--radius:14px;--header-h:64px;color:var(--ink);background:var(--surface-soft);font:15px/1.5 system-ui,'Segoe UI',sans-serif;color-scheme:light}
body{min-width:0}header{height:var(--header-h);background:#fff;gap:8px;padding:0 20px;box-shadow:0 1px 4px #213b2510;position:relative;z-index:3}.brand{gap:9px;font-size:22px;letter-spacing:-.5px}.brand small{font-size:10px;letter-spacing:1.2px;background:#e8f1e6;color:#45674c;border-radius:6px;padding:3px 6px}.logo{width:37px;height:37px}.tool{width:38px;height:38px;border:1px solid transparent;border-radius:11px;color:#3b654c}.tool svg{width:21px;height:21px}#account{border:1px solid #dce6dc}#account.connected{background:#e4f1e1;border-color:#b9d2b9}#status{font-size:12px;max-width:min(34vw,420px);line-height:1.3;padding:5px 10px;background:#f1f5ef;border-radius:9px;color:#52675a;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
main{height:calc(100dvh - var(--header-h));grid-template-columns:var(--left) 5px var(--middle) 5px minmax(0,1fr);background:#edf2eb}aside{background:#f3f7f1;padding:15px 13px;gap:7px}.section{letter-spacing:.065em;font-size:11px;margin:14px 4px 4px;color:#617268}.space{min-height:64px;margin:0;padding:10px;gap:10px;border-radius:13px}.space-copy strong,.item-copy strong{font-size:14px;line-height:1.35}.space-copy small,.item-copy small{font-size:12px;line-height:1.35}.space-copy{gap:3px}.glyph{width:40px;height:40px;border-radius:11px}.glyph svg{width:22px;height:22px}.nav-action{display:flex;align-items:center;gap:11px;padding:9px 12px;border-radius:10px;font-weight:550}.nav-action svg{width:19px;height:19px;flex:none;color:#56735d}.sidebar-actions{gap:6px;margin-top:7px}.sidebar-actions button{font-size:13px;padding:8px 10px}.bottom{font-size:11px;padding-top:14px}.split{background:#dce5da}.split:after{inset:0 2px;background:transparent}.split:hover,.split:focus-visible{background:#86ad8b}.listing{background:#f6f8f4;padding:0 12px}.listhead{padding:14px 0 11px;background:#f6f8f4;box-shadow:0 5px 8px #f6f8f4}.space-banner{border-radius:14px;padding:12px;margin-bottom:12px;min-width:0}.space-banner h2{font-size:19px;overflow-wrap:anywhere;line-height:1.25}.space-banner .glyph{width:44px;height:44px}.space-banner>div{min-width:0}.listhead nav{margin-bottom:10px;gap:4px}.listhead nav button{font-size:12px;padding:5px 8px;border-radius:7px;max-width:100%;overflow-wrap:anywhere}.listhead nav button+button::before{content:'›';margin-right:6px;color:#748879}.listhead input{padding:9px 11px;border-radius:10px}.list-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:9px;align-items:center}.list-actions button,.list-actions select{font-size:12px;min-height:34px;padding:6px 9px;border-radius:9px;white-space:normal}.list-actions select{flex:1 1 88px;width:auto}.list-actions #create{flex:1 0 auto}.list-actions #projectManage,.list-actions #projectStyle,.list-actions #projectHistory,.list-actions #requests{flex:1 1 42%}.item-row{gap:0;position:relative;border:1px solid #e1e8df;border-radius:13px;background:white;align-items:stretch}.item-row:has(.item.active){background:#e3f0df;border-color:#9cbb9c}.item-row .item{border:0;border-radius:12px 0 0 12px;min-height:62px;padding:9px 10px;gap:10px;background:transparent}.item-row .item:hover{background:#edf5e9}.item-row .item.active{background:transparent}.item .glyph{width:38px;height:38px;border-radius:10px}.item .glyph svg{width:21px;height:21px}.item .item-copy{gap:3px}.item-row .more{font-size:21px;width:32px;min-width:32px;margin:5px 3px 5px 0;border-radius:8px;color:#58715e;padding:0}.item-row .item>svg{display:none}#items{gap:7px;padding-bottom:18px}.context-menu{border-radius:13px;padding:5px;box-shadow:0 8px 30px #243a262b;max-height:calc(100dvh - 20px);overflow:auto}.context-menu button{font-size:14px;padding:9px 11px;border-radius:8px;background:transparent}.context-menu button:hover:not(:disabled){background:#e7f0e4}
article{padding:28px clamp(20px,3vw,52px);min-width:0;background:#fff}article h1{font-size:clamp(24px,2.4vw,34px);line-height:1.25;letter-spacing:-.5px;margin:18px 0 9px}.detail-top{flex-wrap:wrap;gap:8px}.detail-top button{font-size:13px;min-height:36px;padding:7px 11px}.detail-top .glyph{width:36px;height:36px}.body{font-size:16px;line-height:1.75;padding-top:19px;margin:20px 0}.welcome{min-height:calc(100dvh - 160px)}.welcome .glyph{width:64px;height:64px;border-radius:18px}.welcome h2{font-size:21px}.welcome p{font-size:14px;color:#64736a}.note-editor{font-size:16px;padding:14px;min-height:44vh;border-radius:12px}.attachment{background:#f8faf7;border-color:#e1e8df}.muted{color:var(--muted)}
button,input,textarea,select{font:inherit}button{border-radius:10px;border:1px solid #dce6dc;padding:8px 12px;font-weight:550;color:#294334;line-height:1.35;transition:background .12s,border-color .12s}button:disabled{opacity:.52}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{outline:2px solid #438257;outline-offset:2px}.primary,.sidebar-actions button:first-child{background:var(--accent);color:#fff;border-color:var(--accent)}.primary:hover:not(:disabled),.sidebar-actions button:first-child:hover:not(:disabled){background:#205636;color:#fff}input,select,textarea{border-color:#ccd9cf;border-radius:10px;color:var(--ink);padding:9px 11px;min-width:0}input[type=file]{padding:7px;max-width:100%;font-size:13px}input::file-selector-button{border:0;background:#e7f0e4;color:#286b43;border-radius:7px;padding:7px 10px;margin-right:8px;cursor:pointer;font-weight:600}
dialog{width:min(480px,calc(100vw - 28px));max-height:calc(100dvh - 40px);padding:22px;border:1px solid #e0e8de;border-radius:20px;background:#fff;color:var(--ink);overflow:auto;overscroll-behavior:contain;box-shadow:0 18px 70px #162f2440}dialog::backdrop{background:#1b302b70}dialog h2{font-size:21px;letter-spacing:-.3px;line-height:1.3;margin:0 0 14px}dialog h3{font-size:15px;margin:12px 0 3px;color:#365740}dialog p{font-size:14px;margin:8px 0;overflow-wrap:anywhere}dialog label{font-size:13px;font-weight:600;color:#465d4d;margin:10px 0}dialog label input,dialog label select{display:block;width:100%;margin-top:5px;font-weight:400}dialog textarea{width:100%}dialog .actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:12px}dialog .actions button{min-height:38px}dialog #error:empty{display:none}#manageDialog{width:min(600px,calc(100vw - 28px));max-height:calc(100dvh - 40px)}#manageContent,#accountContent,#eventRows{gap:9px}#manageContent .manage-field,#accountContent .manage-field{margin:0;gap:4px}#manageContent .manage-field input,#manageContent .manage-field select,#accountContent .manage-field input{margin:0}#manageContent h3{padding-top:12px;border-top:1px solid var(--line);margin:9px 0 2px}.history-row,#manageContent .history-row{background:#f7faf6;border:1px solid #e1e9df;border-radius:12px;padding:11px;display:flex;flex-direction:column;gap:6px;overflow-wrap:anywhere}.history-row p{margin:0}.history-row small{color:#63766a}.history-row button{min-height:32px;font-size:13px}#manageContent details{border:1px solid var(--line);border-radius:12px;background:#f7faf6;padding:0 8px}#manageContent details summary{font-size:14px;font-weight:600;color:#365740}.avatar-grid{gap:8px}.avatar-grid button{border:1px solid #e2eae0;padding:5px;border-radius:12px;background:#f7faf6}.avatar-grid button:hover{border-color:#8db697;background:#e2f0df}.profile-avatar{width:82px;height:82px}.invite-qr{border:1px solid var(--line);border-radius:12px;padding:8px}.unified-dialog{width:min(620px,calc(100vw - 28px))}.account-error,#error{color:#9c3037;background:#fff2f1;border-radius:8px;padding:8px 10px}.account-error:empty,#error:empty{display:none}
@media(max-width:1050px){main{grid-template-columns:210px 5px 280px 5px minmax(0,1fr)}article{padding:22px}.brand{font-size:20px}header{padding:0 12px}}
@media(max-width:700px){header{height:auto;min-height:60px;padding:9px;gap:5px;flex-wrap:wrap}.brand{font-size:19px}.brand small{display:none}.tool{width:33px;height:33px;padding:5px}.tool svg{width:19px;height:19px}#status{display:none}main{display:block;height:auto}aside,.listing,article{overflow:visible}.sidebar-actions{display:flex}.split{display:none}.listhead{position:static;box-shadow:none}.welcome{min-height:230px}article{padding:20px 14px}.detail-top .primary{margin-left:0}main.focus-mode>article{min-height:calc(100dvh - 64px)}dialog{padding:17px;max-height:calc(100dvh - 20px)}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
/* 0.13.0: readable desktop workspace */
:root{--left:230px} .item-copy strong{font-size:15px;line-height:1.4}.item-copy small{font-size:12px}.item-row:has(.item.active){background:#e1efdf;border-color:#75a580;box-shadow:inset 3px 0 #286b43}.split{background:#eef2ec}.split:hover,.split:focus-visible{background:#86ad8b}.space .item-copy strong{font-size:14px}#crumbs button{font-size:13px}#crumbs button+button:before{content:'›';margin-right:6px;color:#63776a}article .body{font-size:17px}.note-editor{font-size:17px} 
@media(min-width:701px) and (max-width:1050px){main:not(.focus-mode){grid-template-columns:var(--left) 5px var(--middle) 5px minmax(0,1fr)}.split{pointer-events:auto}}
/* TreeNota application dialogs */
dialog.nt-dialog{width:min(440px,calc(100vw - 28px));padding:24px;border-radius:18px;border:1px solid #dce4d9;color:#253127}dialog.nt-dialog h2{margin:0 0 12px;font-size:21px}dialog.nt-dialog .nt-dialog-message{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.55;margin:0 0 20px;color:#435447}dialog.nt-dialog input{width:100%;margin-bottom:18px;min-height:44px}dialog.nt-dialog .nt-dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin:0;flex-wrap:wrap}dialog.nt-dialog button{min-height:42px}dialog.nt-dialog .nt-danger{background:#a63b36;border-color:#a63b36;color:white}dialog.nt-dialog .nt-danger:hover{background:#89302c}dialog.nt-dialog :focus-visible{outline:2px solid #286b43;outline-offset:3px}
#detail .editor-label{display:block;font-size:13px;font-weight:650;color:#52675a;margin:15px 0 5px}#detail .editor-title{display:block;width:100%;font-size:21px;font-weight:650;padding:11px 13px;border:1px solid #dce4d9;border-radius:10px}#detail .editor-actions{justify-content:flex-end;gap:8px}#detail .editor-actions button{min-height:40px}.context-menu{max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);overflow:auto;overscroll-behavior:contain}.context-menu button:focus-visible{outline:2px solid #286b43;outline-offset:-3px}
/* 0.15.0 — Forest workspace, based on the approved render */
:root{--accent:#386b27;--line:#e0dfcf;--ink:#263322;--muted:#697162;color:var(--ink);background:#203b22;font:15px/1.45 'Segoe UI',system-ui,sans-serif;--left:310px;--middle:330px}body{background:#203b22}header{height:76px;background:#17351e url('/forest-header.webp') no-repeat 38% center;background-size:auto 100%;border:0;color:#fff;padding:0 25px;gap:14px}.brand{color:#fff;font-size:29px;letter-spacing:-.6px;gap:12px;text-shadow:0 1px 2px #142b17}.brand small{color:#fff;border:1px solid #a3b49b;border-radius:13px;padding:4px 8px;font-size:12px;letter-spacing:0;font-weight:500}.logo{width:48px;height:48px}.tool,#account{color:#f4faef;background:transparent;border:0}.tool:hover:not(:disabled),#account:hover:not(:disabled){background:#ffffff24;color:white}#status{color:#e7efdc;background:#183d26d9;padding:6px 11px;border-radius:18px;max-width:250px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}main,main:not(.focus-mode){display:grid;grid-template-columns:94px var(--left) 8px minmax(300px,1fr) 8px var(--middle);height:calc(100dvh - 76px);background:#f2efe3;padding:8px 8px 20px 0;position:relative;gap:0;overflow:hidden;border-radius:0 0 15px 15px}main:after{content:'';position:absolute;pointer-events:none;bottom:0;left:94px;right:0;height:24px;background:url('/forest-footer.webp') center bottom/100% 100% no-repeat;z-index:2}.forest-rail{display:flex;flex-direction:column;align-items:stretch;gap:10px;margin:0;padding:20px 9px 14px;background:#203e26 url('/forest-rail.webp') center bottom 60px/100% auto no-repeat;color:white;overflow:hidden;border-radius:0}.forest-rail button{background:transparent;border:0;border-radius:12px;color:#f6f6e9;display:flex;flex-direction:column;align-items:center;gap:5px;padding:12px 2px;font-size:12px;font-weight:500}.forest-rail button:first-child,.forest-rail button:hover{background:#53783d;color:#fff}.forest-rail svg{width:28px;height:28px}.rail-bottom{margin-top:auto;display:flex;align-items:center;flex-direction:column;font-size:12px;color:#d4e1c4;cursor:pointer}.tree-panel,#detail,#inspector{background:#faf8ef;border:1px solid #e0dece;border-radius:15px;min-width:0;min-height:0;overflow:auto;box-shadow:0 2px 6px #3f422008}.tree-panel{display:flex;flex-direction:column;overflow:auto;padding:13px 12px 20px}.tree-panel aside{overflow:visible;padding:0;gap:4px;flex:none;border:0;background:transparent}.tree-panel .section{font-size:10px;letter-spacing:.08em;margin:8px 0 3px;color:#69745b}.tree-panel .space{min-height:44px;padding:7px 8px;border-radius:9px;margin:0;gap:8px}.tree-panel .space .glyph{height:29px;width:29px;border-radius:7px}.tree-panel .space .glyph svg{width:19px;height:19px}.tree-panel .space-copy strong{font-size:14px}.tree-panel .space-copy small{font-size:11px}.tree-panel #personal{background:transparent;border:0;font-weight:700}.tree-panel #personal .glyph{background:#376329}.tree-panel #favorites,.tree-panel #trash{display:none}.tree-panel .bottom{display:none}.tree-panel .sidebar-actions{order:0;display:flex;flex-direction:row;flex-wrap:wrap;gap:4px;margin:4px 0 5px}.tree-panel .sidebar-actions button{font-size:10px;padding:5px 7px;flex:1 1 auto;min-height:26px}.tree-panel #projects{gap:4px}.tree-panel .listing{background:transparent;padding:0;overflow:visible;flex:1;border:0}.tree-panel .listhead{position:static;padding:8px 0;background:transparent;border-top:1px solid var(--line);box-shadow:none}.tree-panel .space-banner{padding:0;background:transparent!important;margin:0 0 7px;border-radius:0;gap:6px}.tree-panel .space-banner h2{font-size:16px}.tree-panel .space-banner small{display:none}.tree-panel .space-banner .glyph{width:28px;height:28px;border-radius:6px}.tree-panel .space-banner .glyph svg{width:18px;height:18px}.tree-panel #crumbs{margin-bottom:6px}.tree-panel #crumbs button{font-size:11px;padding:3px;background:transparent}.tree-panel #search{background:#fffdf6;border:1px solid #dedfce;border-radius:8px;font-size:13px;padding:7px}.tree-panel .list-actions{gap:4px;margin:6px 0}.tree-panel .list-actions button,.tree-panel .list-actions select{font-size:11px;min-height:28px;padding:4px 7px}.tree-panel #items{gap:2px}.tree-row.item-row{border:0;background:transparent;box-shadow:none;border-radius:7px;align-items:center;min-width:0;padding-left:calc(var(--depth,0)*15px)}.tree-row.item-row:has(.item.active){background:#e3e8ce;box-shadow:none}.tree-row .item{min-height:34px;padding:5px 3px;gap:7px;border-radius:6px;min-width:0}.tree-row .item .glyph{width:23px;height:23px;border-radius:4px;background:transparent;color:#486c30}.tree-row .item .glyph svg{width:20px;height:20px}.tree-row .item .glyph.folder{color:#54813e;background:transparent}.tree-row .item-copy strong{font-size:14px;font-weight:500;line-height:1.35}.tree-row .item-copy small{display:none}.tree-row .more{width:23px;min-width:23px;margin:0;font-size:17px;opacity:.55}.tree-row .more:hover{opacity:1}.tree-toggle,.tree-spacer{width:19px;min-width:19px;flex:none}.tree-toggle{padding:0;background:transparent;border:0;color:#45643c;font-size:20px;line-height:1}.split{background:transparent;pointer-events:auto}.split:after{background:transparent}.split:hover{background:#b9c9a1}.split:focus-visible{background:#b9c9a1}#detail{padding:22px clamp(22px,2.4vw,40px) 40px;background:linear-gradient(120deg,#fffdf6,#faf7ec);color:#242b20}#detail .note-path{font-size:13px;color:#66735a;margin-bottom:15px;padding-bottom:12px;border-bottom:1px solid var(--line)}#detail .detail-top{color:#426830}#detail .detail-top .glyph{background:#e8ebd5;color:#386b27}#detail h1{font-size:30px;letter-spacing:-.7px;color:#20291e;margin:15px 0}#detail .body{font-size:16px;line-height:1.8;border-color:#e3dfce;max-width:none;color:#252e21}#detail .attachment{background:#f3f1e4;border:1px solid #e0dece;border-radius:10px}#detail .media{border-radius:10px}.primary,.sidebar-actions button:first-child{background:linear-gradient(180deg,#518435,#315a25);border:1px solid #355b28;color:#fff;box-shadow:0 2px 3px #263b1620}.primary:hover:not(:disabled){background:#315a25}#inspector{padding:0 10px 28px;background:#f6f4e9}.inspector-tabs{display:flex;position:sticky;top:0;background:#f6f4e9;z-index:1;border-bottom:1px solid #dddccb;margin:0 -10px 12px;padding:4px 3px 0}.inspector-tabs button{flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;gap:5px;background:transparent;border:0;border-bottom:2px solid transparent;border-radius:0;padding:12px 3px;font-size:12px;color:#323a29}.inspector-tabs button.active{border-bottom-color:#416d2c;color:#416d2c;font-weight:650}.inspector-tabs svg{width:23px;height:23px}.inspector-card{background:#fbf9ef;border:1px solid #e4e1d3;border-radius:12px;padding:14px 13px;margin:0 0 11px;overflow-wrap:anywhere}.inspector-card h3{font-size:16px;margin:0 0 10px;color:#2e4026}.inspector-card button{width:100%;margin:4px 0;background:#faf8ed;font-size:13px}.info-row{display:flex;align-items:baseline;justify-content:space-between;gap:9px;padding:10px 0;border-bottom:1px solid #e9e5d8;font-size:13px}.info-row:last-child{border:0}.info-row span{color:#666c5b;flex:none}.info-row strong{font-weight:500;text-align:right;min-width:0}.welcome{min-height:50vh}.welcome .glyph{background:#e6ead4;color:#4f7436}dialog{background:#fffdf5;border-color:#dedfca}.context-menu{background:#fffdf5}main.focus-mode{grid-template-columns:minmax(0,1fr);padding:8px 12px 20px}main.focus-mode>.forest-rail,main.focus-mode>.tree-panel,main.focus-mode>#inspector,main.focus-mode>.split{display:none}main.focus-mode:after{left:0}@media(max-width:1100px){main:not(.focus-mode){grid-template-columns:70px minmax(200px,25vw) 5px minmax(0,1fr) 5px minmax(190px,23vw)}.forest-rail{padding:12px 4px}.forest-rail button{font-size:11px}#detail{padding:20px}.inspector-tabs button{font-size:10px}main:after{left:70px}}@media(max-width:760px){header{height:auto;min-height:65px;gap:6px;padding:8px}.brand{font-size:23px}.logo{width:36px;height:36px}main:not(.focus-mode),main.focus-mode{display:flex;flex-direction:column;height:auto;padding:6px;overflow:visible;gap:7px}.forest-rail{flex-direction:row;justify-content:space-around;background:#203e26;padding:5px}.forest-rail button{padding:7px}.forest-rail svg{width:22px;height:22px}.rail-bottom{display:none}.tree-panel{max-height:55vh}.split{display:none}main:after{display:none}#detail{min-height:320px}#inspector{padding-bottom:12px}.welcome{min-height:200px}}
.quick-create{border-top:1px solid var(--line);padding-top:12px;margin-top:12px}.quick-create h3{font-size:13px;font-weight:600;margin:0 0 9px;color:#46563b}.quick-create>div{display:flex;gap:6px}.quick-create button{flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;gap:5px;padding:10px 3px;background:#faf7ed;border-color:#e0ddca;font-size:11px}.quick-create svg{width:23px;height:23px;color:#486d2e}#globalSearch{display:flex;align-items:center;justify-content:flex-start;gap:9px;width:clamp(140px,23vw,340px);background:#f9f6e7;color:#253b21;border-radius:12px;padding:8px 12px;height:40px;order:0}#globalSearch:after{content:'Поиск в TreeNota…';font-size:14px;font-weight:400;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#globalSearch:hover:not(:disabled){background:#fffdf4;color:#253b21}header .brand{margin-right:auto}#status{order:1}header .tool:not(#globalSearch){order:2}@media(max-width:760px){#globalSearch{width:38px;padding:6px}#globalSearch:after{display:none}}
/* 0.15.1 — continuous forest framing and a dedicated scrollable tree */
@media(min-width:761px){header{height:80px;background-image:linear-gradient(90deg,#17351e 0%,#17351e00 24%,#17351e00 57%,#17351e 83%),url('/forest-header.webp');background-size:100% 100%,68% auto;background-position:center,center 45%;gap:17px;padding:0 24px}main,main:not(.focus-mode){height:calc(100dvh - 80px);grid-template-columns:100px var(--left) 9px minmax(280px,1fr) 9px var(--middle);padding:9px 10px 30px 0;background:#e9e7d9}main:after{left:100px;height:30px;bottom:0;background-size:100% 100%}.forest-rail{margin-top:-9px;margin-bottom:-30px;padding-top:28px}.tree-panel{padding:14px 15px 12px;overflow:hidden;min-height:0}.tree-panel aside{max-height:32%;overflow:auto;flex-shrink:0}.tree-panel .listing{min-height:0;display:flex;flex-direction:column;overflow:hidden}.tree-panel #items{flex:1;min-height:0;overflow:auto;scrollbar-width:thin;scrollbar-color:#b7bda4 transparent;padding:4px 0 8px}.tree-panel .quick-create{flex:none;margin-top:0;padding-top:12px}.tree-panel .listhead{flex:none}.tree-panel #crumbs{display:none}#detail,#inspector,.tree-panel{border-radius:17px;background-color:#faf7ed}#detail{padding:20px 22px 28px}#inspector{padding:0 10px 16px}main.focus-mode{grid-template-columns:minmax(0,1fr)}main.focus-mode:after{left:0}}
@media(min-width:761px) and (max-width:1100px){main:not(.focus-mode){grid-template-columns:70px minmax(190px,25vw) 5px minmax(0,1fr) 5px minmax(180px,23vw)}main:after{left:70px}}
header .brand{font-size:30px}#globalSearch{width:clamp(140px,24vw,350px);border:1px solid #e7e2cf;box-shadow:0 2px 8px #142b1733}#status{background:transparent;font-size:13px}#account,#account.connected{background:transparent;border:0;color:#fff;overflow:hidden;padding:4px}#account.has-avatar img{width:40px;height:40px;object-fit:cover;border:2px solid #e5dfc8;border-radius:50%}.forest-rail button{font-size:14px;min-height:80px}.forest-rail button.active{background:linear-gradient(135deg,#628342,#365d2b);box-shadow:inset 0 0 0 1px #a5b58055}.forest-rail button svg{width:29px;height:29px}.tree-panel .section{font-size:12px}.tree-panel .space{min-height:36px;padding:6px 8px}.tree-panel .space-copy strong{font-size:15px}.tree-panel .space-copy small{font-size:12px}.tree-panel .member-faces{display:none}.tree-panel .space-banner h2{font-size:19px}.tree-panel .space-banner{margin:3px 0 8px}.space-tools{font-size:13px;color:#58654a}.space-tools summary{cursor:pointer;padding:6px 4px;list-style-position:inside}.space-tools[open] summary{margin-bottom:5px}.tree-panel .sidebar-actions button,.tree-panel .list-actions button,.tree-panel .list-actions select{font-size:12px;min-height:32px}.tree-panel .listhead{padding:8px 0 5px}.tree-row .item{min-height:37px;padding:6px 3px;gap:8px}.tree-row .item-copy strong{font-size:16px;line-height:1.35;color:#242d20}.tree-row.item-row{padding-left:calc(var(--depth,0)*13px)}.tree-row.item-row:has(.item.active){background:#dfe5c6;box-shadow:inset 2px 0 #69884b}.tree-row .item .glyph svg{width:22px;height:22px}.tree-row .more{opacity:0}.tree-row:hover .more,.tree-row:focus-within .more{opacity:1}.quick-create h3{font-size:15px}.quick-create button{font-size:13px;min-height:66px}.quick-create svg{width:26px;height:26px}.folder-heading{display:flex;align-items:center;gap:13px}.folder-heading h1{margin:8px 0 16px!important}.folder-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:10px 0 14px;border-bottom:1px solid var(--line)}.folder-toolbar .muted{margin-right:auto}.folder-toolbar button{font-size:13px;padding:7px 11px}.folder-contents{padding-top:10px}.folder-entry{display:flex;align-items:center;border-bottom:1px solid #e5e0d1;gap:4px}.folder-entry-open{flex:1;min-width:0;display:flex;align-items:center;gap:12px;text-align:left;border:0;background:transparent;padding:11px 8px;font-size:16px}.folder-entry-open>span:nth-child(2){flex:1;overflow-wrap:anywhere}.folder-entry-open>svg{width:16px;height:16px;color:#7a896a}.folder-entry .more{border:0;background:transparent;padding:6px 10px}.folder-entry .glyph{background:#e8ecd5;color:#426a2e}.inspector-tabs button{font-size:14px;padding:14px 3px 11px}.inspector-tabs svg{width:25px;height:25px}.inspector-card{padding:17px 14px;background:#faf7eb;border-color:#e3decb;box-shadow:0 2px 5px #5b5d3510}.inspector-card h3{font-size:17px}.inspector-card button{font-size:14px;min-height:38px}.info-row{font-size:14px;align-items:center;gap:10px;padding:12px 0}.info-row span{display:flex;align-items:center;gap:8px;flex-shrink:0}.info-row svg{width:18px;height:18px;color:#53723d}.info-row strong{overflow-wrap:anywhere}#detail .body{font-size:17px;line-height:1.7}#detail h1{font-size:32px;color:#1c2619}.note-path{color:#5f6954!important}.detail-top .primary{font-size:15px}.rail-bottom{font-size:12px}
@media(max-width:760px){.tree-row .more{opacity:1}.forest-rail button{min-height:0;font-size:11px}.tree-panel .listing{overflow:visible}.info-row{font-size:13px}}
.forest-rail button:first-child:not(.active):not(:hover){background:transparent}.tree-panel .space-copy{min-width:0}.tree-panel .space-banner .glyph{width:34px;height:34px}.tree-panel .space-banner h2{overflow-wrap:anywhere}.tree-panel .space-banner{min-width:0}.tree-panel .item-copy{min-width:0}.tree-panel .item-copy strong{overflow-wrap:anywhere}.tree-panel .space.active{outline:1px solid #9fae83}.tree-panel .space-copy small{color:#58634f}
/* 0.15.2 — forest detail, hierarchy and image viewing */
@media(min-width:1101px){header{background-size:100% 100%,auto 100%;background-position:center,42% center}.tree-panel{padding:17px 13px 13px}#detail{padding:22px 26px 28px}#inspector{padding:0 12px 20px}}
.tree-panel #spaceBanner{display:none}.tree-panel .listhead{padding:4px 0 7px;border-top:1px solid #dedbca}.tree-panel .space-tools summary{color:#53634a;font-size:12px}.tree-panel .space-copy strong{font-weight:650}.tree-panel .space-copy small{font-size:12px}.tree-row.item-row{position:relative;padding-left:calc(var(--depth,0)*15px);min-height:36px}.tree-row.item-row:not([data-depth="0"]){background-image:repeating-linear-gradient(to right,transparent 0 7px,#d6dac0 7px 8px,transparent 8px 15px);background-size:calc(var(--depth,0)*15px) 100%;background-repeat:no-repeat}.tree-row .item .glyph.folder svg{fill:#d5e4b5;stroke:#426c32}.tree-row .item-copy strong{font-size:16px;font-weight:500}.tree-row .item.active .item-copy strong{font-weight:650}.tree-row .item>svg:last-child{display:none}.tree-toggle{font-size:22px}.forest-rail button svg{width:32px;height:32px}.forest-rail button.active{background:linear-gradient(145deg,#779749,#395f2e);border:1px solid #9ab66b55}.quick-create button{border:1px solid #e1ddcc;background:linear-gradient(#fffdf4,#f6f1e4);box-shadow:0 2px 5px #31451a0a;min-height:74px}.quick-create svg{width:29px;height:29px}.quick-create h3{font-size:15px;color:#263720}.inspector-card h3{display:flex;align-items:center;gap:8px;font-size:17px}.inspector-card h3 svg{width:21px;height:21px;color:#3e6a2a}.people-count{margin-left:auto;background:#e4e8ce;border-radius:20px;padding:2px 9px;font-size:13px}.inspector-person{display:flex;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid #e6e2d4}.inspector-person strong{font-size:14px;overflow-wrap:anywhere;font-weight:550}.inspector-avatar{width:35px;height:35px;border-radius:50%;overflow:hidden;background:#dce3c6;display:grid;place-items:center;flex:none;color:#355c2b}.inspector-avatar img{width:100%;height:100%;object-fit:cover}.inspector-card button{border-color:#dedbc8}.inspector-tabs button.active{background:#e9ebd54a}#detail .attachment{background:transparent;border:0;padding:0;margin:12px 0;box-shadow:none}#detail .media{margin:12px auto;max-width:100%;max-height:68vh;object-fit:contain;cursor:zoom-in;border-radius:10px;box-shadow:0 2px 10px #283b1714}#detail.standalone-photo .attachment{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:120px}#detail.standalone-photo .media{max-height:calc(100dvh - 260px);width:auto}#detail h1{font-size:32px;line-height:1.2}#detail,.tree-panel,#items,#inspector{scrollbar-width:thin;scrollbar-color:#b5bea0 transparent}.photo-viewer{width:96vw;max-width:96vw;height:94vh;max-height:94vh;padding:0;background:#18271b;border:1px solid #627654;color:#fff;border-radius:14px;overflow:hidden}.photo-viewer::backdrop{background:#101c14e8}.photo-viewer-bar{height:58px;display:flex;align-items:center;gap:12px;padding:8px 15px;background:#243b28}.photo-viewer-bar button{background:#38553a;color:white;border:1px solid #648166;min-height:36px}.photo-close{margin-left:auto}.photo-stage{height:calc(100% - 58px);overflow:auto;overscroll-behavior:contain}.photo-stage img{display:block;object-fit:contain;max-width:none;max-height:none;margin:0 auto}.photo-stage img:focus{outline:0}
/* 0.15.3 — photo fit and forest continuity */
@media(min-width:1101px){header{background-image:linear-gradient(90deg,#17351e 0%,#17351e 16%,transparent 33%,transparent 52%,#17351e 69%,#17351e 100%),url('/forest-header.webp');background-size:100% 100%,54% auto;background-position:center,44% 48%;background-repeat:no-repeat}#detail.standalone-photo{display:flex;flex-direction:column;min-height:0;overflow:auto}#detail.standalone-photo>.note-path,#detail.standalone-photo>.detail-top,#detail.standalone-photo>h1{flex:none}#detail.standalone-photo>.attachment{flex:1;min-height:0;overflow:hidden;margin:0;display:flex;align-items:center;justify-content:center}#detail.standalone-photo .media{max-height:100%;max-width:100%;height:auto;width:auto;margin:0;object-fit:contain}#detail.standalone-photo>img.media{min-height:0;flex:1;align-self:center;object-fit:contain}}
.tree-row .item-copy strong{font-size:15px}.tree-row.item-row{min-height:34px}.tree-panel .space-tools summary{padding:6px 0}.inspector-card{box-shadow:0 2px 8px #35462309}.inspector-person strong{font-size:15px}.photo-stage{display:grid;align-items:start;justify-items:center}.photo-stage img{margin:0;flex:none}#detail .note-path{font-size:14px;color:#54664a}
/* 0.15.4 — forest surface, compact controls and note media */
@media(min-width:1101px){header{background-image:linear-gradient(90deg,#17351e 0%,#17351e 12%,#17351e00 30%,#17351e00 51%,#17351e 74%,#17351e 100%),url('/forest-header.webp');background-size:100% 100%,68% auto;background-position:center,44% 48%}main:not(.focus-mode){grid-template-columns:100px var(--left) 9px minmax(280px,1fr) 9px var(--middle)}main:after{height:30px;pointer-events:none}.tree-panel aside{max-height:36%}.tree-panel{padding:16px 15px}#detail{padding:22px 26px 28px}#inspector{padding:0 10px 16px}}
.tree-panel aside>.space-tools{margin:4px 0}.tree-panel .space-tools summary{width:fit-content;min-width:40px;border:1px solid #dedcc9;border-radius:8px;padding:0 10px;line-height:27px;font-size:18px;list-style:none;background:#f3f0e2;color:#3c592d}.tree-panel .space-tools summary::-webkit-details-marker{display:none}.tree-panel .space-tools[open] summary{background:#e2e8cf}.tree-panel .listhead{border-top:0;padding:0 0 4px}.tree-panel .section{color:#45533c;font-weight:700;letter-spacing:.04em}.tree-panel .space-copy strong{font-size:16px}.tree-row .item-copy strong{font-size:16px;color:#202a1b}.tree-row.item-row:has(.item.active){background-color:#dfe8c6;border-radius:8px}.tree-row .item .glyph.folder svg{fill:#c5df9c;stroke:#38602d}.quick-create button{background:linear-gradient(145deg,#fdfbf1,#f0eddb);border-radius:13px}.quick-create button:hover{background:#e4ebd2}.forest-section-heading{position:relative;font-size:20px!important;background:linear-gradient(90deg,#e7ebd2,#eef0df);padding:8px 14px;border-radius:9px;color:#24321b;margin:22px 0 10px}.forest-section-heading:after,.inspector-card h3:after{content:'❧';color:#9daf71;margin-left:auto;font-size:23px;line-height:1;float:right}.inspector-card{background:linear-gradient(145deg,#fdfaf0,#f7f3e7);border:1px solid #dfdcca;border-radius:15px;box-shadow:0 3px 10px #3648210c}.inspector-card h3{font-size:18px;color:#25321f}.info-row{color:#39452f}.info-row strong{font-weight:600}.favorite-card{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #e4dfd0;padding:12px 0 0}.favorite-card>span{display:flex;align-items:center;gap:8px;font-size:14px}.favorite-card svg{width:20px;height:20px;color:#a87928}.favorite-switch{min-width:63px!important;border-radius:20px!important;padding:5px 12px!important;background:#eae8db!important;color:#525849}.favorite-switch[aria-checked=true]{background:#396b2e!important;color:white;border-color:#396b2e}.member-role{margin-left:auto;font-size:11px;padding:3px 8px;border-radius:6px;background:#e7e5dc;white-space:nowrap}.role-owner{background:#dce8b9;color:#315723}.role-editor{background:#d2e7f5;color:#235777}.role-admin{background:#eadff1;color:#6a417b}.role-contributor{background:#f4e4c5;color:#835d24}.inspector-person strong{min-width:0}.inspector-person{gap:8px}#detail .body{font-size:18px;color:#20291c;line-height:1.7}#detail h1{font-size:34px}#detail .attachment{min-height:40px;display:flex;flex-direction:column;align-items:center}#detail .attachment .media{max-height:58vh;margin:8px auto 14px}#detail.standalone-photo .attachment .media{max-height:100%;margin:0}dialog:not(.photo-viewer){background:#fbf8eb;color:#273820;border-color:#d8dcc3;box-shadow:0 16px 60px #132b2350;border-radius:18px}dialog:not(.photo-viewer) input,dialog:not(.photo-viewer) textarea{background:#fffdf5;border-color:#dedbc8}dialog:not(.photo-viewer)::backdrop{background:#172c1db0}#detail textarea{background:#fffdf5;border-color:#d8ddc6;color:#263322}#detail input{background:#fffdf5;border-color:#d8ddc6}

/* 0.15.5 — single forest navigation card */
.tree-panel .legacy-space-picker[hidden]{display:none!important}.tree-panel .listing{height:100%;gap:0}.tree-panel{padding:20px 19px 18px;background:linear-gradient(125deg,#faf8ee,#f6f2e7);border-radius:18px}.tree-heading{display:flex;align-items:center;gap:8px;flex:none;padding:0 0 17px;border-bottom:1px solid #dedbca;margin-bottom:13px}.tree-space-picker{display:flex;align-items:center;gap:10px;flex:1;min-width:0;border:0;background:transparent;text-align:left;padding:0;color:#222b1e;font-size:21px;font-weight:700}.tree-space-picker #treeSpaceName{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tree-space-picker .glyph{width:34px;height:34px;background:#355f29;color:#fff;border-radius:7px;overflow:hidden}.tree-space-picker .glyph img{width:100%;height:100%;object-fit:cover}.tree-down{font-size:19px;flex:none;color:#34472a}.tree-heading #treeAdd,.tree-heading #treeOptions{flex:none;width:32px;height:32px;padding:0;font-size:24px;line-height:1;border:0;color:#294721;background:#e5e8cf;border-radius:50%}.tree-heading #treeOptions{background:transparent;border-radius:7px}.tree-heading button:hover{background:#e6ebd4}.tree-panel .listhead{padding:0}.tree-tools:not([open]){display:none}.tree-tools>summary{display:none!important}.tree-tools[open]{display:block;margin-bottom:10px;padding:8px;background:#f1efdf;border-radius:9px}.tree-panel #items{padding:0 0 10px;gap:1px}.tree-row.item-row{min-height:40px;padding-left:calc(var(--depth,0)*19px)}.tree-row.item-row:not([data-depth="0"]){background-image:repeating-linear-gradient(to right,transparent 0 9px,#d8d8c3 9px 10px,transparent 10px 19px);background-size:calc(var(--depth,0)*19px) 100%}.tree-row .item{min-height:40px;gap:9px;padding:6px 3px}.tree-row .item-copy strong{font-size:17px;font-weight:500;color:#20271b}.tree-row .item.active .item-copy strong{font-weight:600}.tree-row.item-row:has(.item.active){background-color:#e1e7c8;box-shadow:none}.tree-row .item .glyph{width:25px;height:25px}.tree-row .item .glyph svg{width:24px;height:24px}.tree-row .item .glyph.folder svg{fill:#c9dfa1;stroke:#52783a}.tree-toggle,.tree-spacer{width:20px;min-width:20px}.tree-toggle{font-size:23px}.tree-panel .quick-create{padding:17px 0 4px;border-top:1px solid #dedbca}.quick-create h3{font-size:17px;font-weight:550;color:#26321f;margin-bottom:14px}.quick-create h3:before{content:'⌄';color:#416a32;margin-right:8px}.quick-create>div{gap:8px}.quick-create button{min-height:86px;font-size:14px;gap:9px;border-radius:12px;background:linear-gradient(#faf8ee,#f5f1e5);box-shadow:none}.quick-create svg{width:30px;height:30px}.space-picker-dialog{width:min(440px,92vw)}.space-picker-dialog .space{margin:6px 0;min-height:58px}.space-picker-dialog .space .glyph{overflow:hidden}.space-picker-dialog .space .glyph img{width:100%;height:100%;object-fit:cover}.picker-actions{display:grid;gap:7px;margin:16px 0}.space-picker-dialog .member-faces{display:none}@media(max-width:1100px){.tree-panel{padding:13px 10px}.tree-space-picker{font-size:16px;gap:5px}.tree-heading{gap:4px}.tree-heading #treeAdd,.tree-heading #treeOptions{width:26px;height:26px}.tree-row .item-copy strong{font-size:14px}.quick-create button{min-height:66px;font-size:12px}}

/* 0.15.6 — balanced forest composition */
@media(min-width:1101px){header{background-size:100% 100%,auto 100%;background-position:center,43% center;background-image:linear-gradient(90deg,#17351e 0%,#17351e 12%,#17351e00 30%,#17351e00 51%,#17351e 78%),url('/forest-header.webp')}main:not(.focus-mode){gap:0;padding-top:10px;padding-right:9px}.tree-panel{padding:19px 18px 17px}#detail{padding:21px 26px 26px}#inspector{padding:0 12px 16px}}
.tree-heading{padding-bottom:19px;margin-bottom:15px}.tree-space-picker{font-size:23px;gap:11px}.tree-space-picker .glyph{width:37px;height:37px}.tree-row .item{gap:8px;min-height:42px}.tree-row.item-row{border-radius:8px;min-height:42px}.tree-row .item-copy strong{font-size:17px;line-height:1.4}.tree-row.item-row:hover{background-color:#e8ebd3}.tree-row.item-row:has(.item.active){background-color:#dfe7c4}.tree-toggle{color:#476239}.tree-panel .quick-create{padding-top:19px}.quick-create h3{font-weight:650;font-size:17px}.quick-create button{min-height:87px;color:#26351d}.quick-create button:hover{border-color:#9daf79;background:#e9ecd5}.folder-heading{gap:12px}.folder-heading h1{margin:5px 0 12px!important}.folder-toolbar{padding:8px 0 14px}.folder-toolbar button{min-height:34px;font-size:14px}.folder-entry-open{padding:13px 10px;font-size:17px}.folder-entry .glyph{width:38px;height:38px}.folder-entry .more{opacity:.65}.folder-entry:hover .more,.folder-entry .more:focus-visible{opacity:1}.folder-entry:hover{background:#eceddb;border-radius:8px}.inspector-tabs{margin-bottom:13px}.inspector-tabs button{font-size:15px;min-height:74px}.inspector-card{padding:18px 15px;margin-bottom:12px}.inspector-card h3{font-size:19px;margin-bottom:10px}.info-row{font-size:14px;padding:13px 0}.inspector-person{min-height:55px}.inspector-avatar{width:39px;height:39px}.inspector-card button{min-height:39px}.inspector-card h3:after{font-size:22px;color:#a5b780}.note-path{font-size:15px!important}.detail-top{margin-top:10px}.detail-top .primary{min-height:39px}.forest-section-heading{font-size:21px!important}#detail .body{line-height:1.75}.tree-panel #items{scrollbar-gutter:stable}.tree-panel button:focus-visible,#detail button:focus-visible,#inspector button:focus-visible{outline:2px solid #678e43;outline-offset:2px}
@media(max-width:1100px){.tree-space-picker{font-size:17px}.tree-row .item-copy strong{font-size:14px}.inspector-card h3{font-size:16px}.inspector-tabs button{font-size:12px}.quick-create button{min-height:65px}}

/* 0.15.7 — forest finishing and distinct loading states */
@media(min-width:1101px){header{background-image:linear-gradient(90deg,#17351e 0%,#17351e 14%,#17351e00 35%,#17351e00 59%,#17351e 88%),url('/forest-header.webp');background-size:100% 100%,68% auto;background-position:center,48% 48%;background-repeat:no-repeat} .tree-panel{border:1px solid #e3dfce} #detail{border:1px solid #e6e1d2} #inspector{border:1px solid #e3dfce}}
.space-state{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;min-height:240px;text-align:center;margin:24px auto;max-width:420px;padding:24px}.space-state>.glyph{width:56px;height:56px;background:#e4e9ce;color:#486c34;border-radius:16px}.space-state h2{font-size:20px;margin:6px 0}.space-state p{margin:0;overflow-wrap:anywhere}.space-loading{color:#52713c}.space-loading:before{content:'';display:inline-block;width:12px;height:12px;border:2px solid #dbe1c7;border-top-color:#52713c;border-radius:50%;margin-right:8px;animation:forest-spin 1s linear infinite;vertical-align:middle}@keyframes forest-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.space-loading:before{animation:none}}
.tree-heading{border-bottom-color:#d8d8c2}.tree-row .item-copy strong{letter-spacing:0}.quick-create button{border:1px solid #dedcc9}.inspector-card{box-shadow:0 2px 6px #34482109}.inspector-card h3:after{content:none}.inspector-card h3{position:relative;padding-right:26px}.inspector-card h3:before{content:'';position:absolute;right:0;top:0;width:23px;height:24px;background: center/contain no-repeat url('/forest-sprig.svg')}.folder-entry-open{gap:12px}.folder-entry .glyph{background:#e5e9d0}.folder-entry-open span{line-height:1.45}

/* 0.15.8 — reading surface and information hierarchy */
#detail{background:linear-gradient(120deg,#fffdf6,#faf7ed 82%)}
#detail .note-path{display:flex;align-items:center;gap:9px;color:#526047!important;padding-bottom:15px;border-bottom:1px solid #e4dfcd;font-weight:500;line-height:1.5}
#detail .note-path:before{content:'';width:21px;height:17px;flex:none;background:#52763d;clip-path:polygon(0 8%,38% 8%,49% 25%,100% 25%,100% 100%,0 100%)}
#detail h1{font-size:clamp(26px,2.3vw,38px);letter-spacing:-.025em;line-height:1.2;color:#192419}
#detail .detail-top{margin-top:14px}.detail-top .primary{padding:9px 17px;border-radius:11px;font-size:15px}
.note-meta{display:flex;align-items:center;gap:8px;color:#686d58;font-size:14px;padding:3px 0 13px}.note-meta svg{width:19px;height:19px;color:#61794c}
#detail .body{margin:4px 0 22px;padding-top:18px;line-height:1.75;font-size:18px;max-width:76ch;min-height:35px}
#detail .forest-section-heading{display:flex;align-items:center;gap:10px;padding:10px 15px;background:linear-gradient(90deg,#ecefd8,#e5e8ce 70%,#f4f0df);border-radius:9px;margin:22px 0 14px;color:#253520;font-weight:700}
.forest-section-heading svg{width:23px;height:23px;color:#446e30}.attachment-count{font-size:12px;background:#d6dfb8;border-radius:50%;min-width:24px;text-align:center;padding:3px 5px}.forest-section-heading:after{margin-left:auto}
.folder-toolbar{gap:8px;padding:12px 0 16px}.folder-toolbar button{padding:8px 13px;border-radius:9px}.folder-entry{border-bottom:1px solid #e7e2d3;min-height:61px}.folder-entry-open{padding:10px 12px;font-weight:500}.folder-entry .glyph{border:1px solid #dfe3cb;border-radius:10px}.folder-entry .more{min-width:34px;font-size:20px}.folder-entry:hover{background:#edf0dc}
#inspector .inspector-tabs{background:#f9f6ec;margin-bottom:15px}.inspector-tabs button+button{border-left:1px solid #e6e1d1}.inspector-tabs button.active{background:linear-gradient(#f1f3e0,#f9f6ec)}
#inspector .inspector-card{background:linear-gradient(125deg,#fffdf6,#f7f3e7);padding:17px 16px;border-radius:15px}.inspector-card h3{font-size:18px;letter-spacing:-.01em}.info-row{align-items:flex-start;gap:12px;font-size:14px}.info-row>span{flex:0 0 43%;display:flex;align-items:center;gap:8px}.info-row strong{flex:1;min-width:0;text-align:right;overflow-wrap:anywhere}.inspector-person{padding:10px 0}.inspector-person strong{font-size:15px}.favorite-switch{position:relative;min-width:64px!important}.tree-toggle{line-height:1}.tree-heading{padding-bottom:17px}.tree-row .item-copy strong{line-height:1.45}
@media(max-width:1100px){#detail .body{font-size:16px}#inspector .inspector-card{padding:12px 10px}.info-row{font-size:12px}.info-row>span{flex-basis:42%}.folder-toolbar button{font-size:12px}}
/* Forest workspace 0.16: final shared visual layer */
:root{--accent:#3c702c;--line:#dedccd;--ink:#252c20;--muted:#68705e}
header{background-color:#19391f;color:#fff}.brand small{background:#ffffff12;color:#fff;border-color:#9eaf8f}.tool,#account{border-radius:10px}.tool:focus-visible,#account:focus-visible{outline-color:#d9e7bc}
@media(min-width:761px){header{background-image:linear-gradient(90deg,#19391f 0%,#19391f 15%,transparent 31%,transparent 54%,#19391f 82%),url('/forest-header.webp');background-position:center,43% center;background-size:100% 100%,auto 100%;}main:not(.focus-mode){padding-top:9px;padding-bottom:32px;background:#e8e7d6}.tree-panel,#detail,#inspector{border:1px solid #dcd9c8;border-radius:17px;box-shadow:0 2px 7px #273b2010}.tree-panel{padding:20px 18px 16px}#detail{padding:23px 28px 30px}#inspector{padding:0 13px 18px}.forest-rail{margin-bottom:-32px}main:after{height:32px;background-size:100% 100%}}
.tree-heading{gap:10px;padding-bottom:18px}.tree-space-picker{color:#172317;font-weight:750}.tree-row .item{min-height:39px}.tree-row .item-copy strong{font-weight:500}.tree-row:has(.item.active) .item-copy strong{font-weight:700}.tree-row .glyph svg{stroke:#41662b}.tree-row .item-copy{min-width:0}.tree-row .more{border-radius:6px}.quick-create h3{color:#24351e;font-weight:700}.quick-create button{background:linear-gradient(150deg,#fffdf4,#f1eedf);box-shadow:0 2px 4px #3847210a}.quick-create button svg{color:#35652a}.quick-create button:hover{background:#e3ebcc}
#detail .note-path{display:flex;align-items:center;flex-wrap:wrap;gap:5px;font-size:14px;margin:0 0 14px;padding-bottom:13px}.note-path button{display:inline-flex;align-items:center;gap:7px;padding:3px 5px;background:transparent;border:0;color:#4c5943;font-size:inherit}.note-path button:hover{background:#e6e9d3;color:#28491d}.note-path svg{width:15px;height:15px;flex:none}.note-path button:first-child svg{width:21px;height:21px;color:#416c2d}.note-title-line{display:flex;align-items:center;gap:9px}.note-title-line h1{flex:1;min-width:0;margin:10px 0!important}.note-star,.note-more{padding:5px;border:0;background:transparent;color:#586749;min-width:32px}.note-star svg{width:23px;height:23px}.note-star.starred{color:#ab791f}.note-star.starred svg{fill:#e4b84e}.note-more{font-size:24px}.note-meta{font-size:14px;color:#69705d}.forest-section-heading{background:linear-gradient(90deg,#e8ebd0,#eff0df);border-radius:8px;padding:8px 14px;color:#24371b}.note-gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:16px;align-items:start;margin-top:12px}.note-gallery .attachment{margin:0!important;padding:0!important;min-width:0}.note-gallery .media{max-height:55vh;width:auto;max-width:100%;margin:0 auto!important}.folder-entry{border-radius:8px}.folder-entry-open{font-size:16px;color:#263c23}.folder-entry:hover{background:#e9edd6}.folder-toolbar .primary,.detail-top .primary,.primary{background:linear-gradient(#4a7e35,#315b24);border-color:#3b662a;color:#fff}.primary:hover:not(:disabled){background:#315b24;color:white}
#inspector .inspector-tabs{border-bottom:1px solid #dedbc9}.inspector-tabs button{font-weight:600;color:#454c39}.inspector-tabs button.active{color:#316526;border-bottom:2px solid #48772f}.inspector-tabs button svg{width:23px;height:23px}.inspector-card h3{color:#26361e}.inspector-card h3:before{width:29px;height:29px;opacity:.75}.info-row{padding:11px 0;border-bottom:1px solid #e7e3d4}.info-row:last-child{border-bottom:0}.info-row strong{font-weight:550}.inspector-person{gap:11px}.member-role{font-size:12px;border-radius:6px;padding:3px 7px;white-space:nowrap}.role-owner{background:#dce8b8;color:#345b20}.role-admin{background:#e7daf0;color:#5d3c79}.role-editor{background:#d4e8f5;color:#254c73}.role-contributor{background:#f3e7c8;color:#775721}.role-reader{background:#e4e3dc;color:#4d5149}
dialog:not(.photo-viewer){background:linear-gradient(135deg,#fffdf4,#f3efdf);border:1px solid #d8dac2;border-radius:19px;box-shadow:0 20px 80px #182b2350;color:#263322;padding:26px}dialog:not(.photo-viewer) h2{color:#25431e;font-size:23px}dialog::backdrop{background:#142b20a0}dialog input,dialog select,dialog textarea,#detail input,#detail textarea{background:#fffdf7;border:1px solid #d5d9c2;border-radius:9px;color:#25321e}dialog button:not(.primary):not(.nt-danger),.context-menu button{background:#faf7eb;border-color:#dddcc9;color:#293c22}dialog button:hover:not(.primary):not(.nt-danger),.context-menu button:hover{background:#e5ebd2}.context-menu{background:#fffdf3;border:1px solid #d9dcc4;box-shadow:0 10px 28px #23381e26;border-radius:12px;padding:6px}.context-menu button{border:0;text-align:left}.nt-danger{background:#a43c35!important;color:#fff!important}.photo-viewer::backdrop{background:#111b13e8}
@media(max-width:1100px){#detail{padding:18px}.tree-panel{padding:13px}.note-gallery{grid-template-columns:1fr}.inspector-tabs button svg{width:19px;height:19px}}

@media(min-width:761px){header{background-image:url('/forest-header.webp');background-size:cover;background-position:center center}}

/* 0.17.0 — original vector landscape, consistent reading and navigation surfaces */
:root{--ink:#20291c;--muted:#626957;--accent:#3e702c;--line:#dedac9}
body{font-family:system-ui,-apple-system,'Segoe UI',sans-serif;color:var(--ink);background:#e7e5d2}
header{background:#17391f url('/forest-header.webp') center/100% 100% no-repeat!important}
.brand{font-size:30px;font-weight:750;letter-spacing:-.7px}.brand small{font-weight:500;font-size:13px}.tool:hover:not(:disabled){background:#ffffff20}
@media(min-width:761px){main:not(.focus-mode){padding-bottom:43px;background:linear-gradient(#eeeadd,#e8e7d3)}main:after{height:43px;background:url('/forest-footer.webp') center bottom/100% 100% no-repeat;left:100px}.forest-rail{margin-bottom:-43px}.tree-panel,#detail,#inspector{border-radius:17px;background:linear-gradient(145deg,#fffdf5,#f8f5e8);box-shadow:0 2px 8px #3243210d}.tree-panel{padding:20px 19px 17px}#detail{padding:22px 25px 26px}#inspector{padding:0 12px 15px}}
.tree-heading{min-height:62px;margin-bottom:12px;padding-bottom:17px}.tree-space-picker{font-size:23px;letter-spacing:-.3px}.tree-space-picker .glyph{border-radius:9px}.tree-down{font-size:17px;color:#4d6340}.tree-row.item-row{min-height:40px;border-radius:8px}.tree-row .item{min-height:40px;gap:9px}.tree-row .item-copy strong{font-size:16px;line-height:1.45;color:#20291d}.tree-row:has(.item.active){background:#dfe7be!important}.tree-row:has(.item.active) .item-copy strong{color:#25371c;font-weight:650}.tree-row .glyph{flex-shrink:0}.tree-toggle{font-size:17px}.tree-row .more:focus-visible{opacity:1}.quick-create{background:transparent}.quick-create h3{font-size:16px;margin-bottom:13px}.quick-create button{min-height:82px;border-radius:13px;box-shadow:0 1px 2px #343d180c}.quick-create button svg{width:29px;height:29px}.quick-create button span{font-size:13px;font-weight:550}
#detail .note-path:before{content:none}#detail .note-path{font-size:14px;min-height:33px;gap:5px;margin-bottom:17px}#detail .note-title-line h1{font-size:clamp(27px,2.4vw,38px);font-weight:750;letter-spacing:-.6px}.detail-top{font-size:14px}.note-reading{white-space:pre-wrap;overflow-wrap:anywhere;font-size:18px;line-height:1.75;color:#222a20;max-width:82ch!important}.note-reading:empty{display:none}.forest-section-heading{position:relative;padding:10px 13px!important;background:linear-gradient(90deg,#e7ebd0,#e1e6c8 70%,#f5f1e1)!important}.forest-section-heading:after{content:'';width:38px;height:31px;background:url('/forest-sprig.svg') center/contain no-repeat;flex:none;margin-left:auto}.note-gallery{gap:14px}.note-gallery .media{border-radius:11px;box-shadow:0 2px 8px #29331e16}.standalone-photo .media{max-height:calc(100dvh - 280px);max-width:100%;object-fit:contain}.standalone-photo>.attachment{flex:0 1 auto;min-height:0;overflow:visible}.standalone-photo>.note-title-line{flex:none}
.folder-heading h1{font-size:clamp(26px,2.2vw,36px)!important}.folder-toolbar{padding:10px 0 15px}.folder-entry{min-height:66px;border-bottom:1px solid #e6e1cf}.folder-entry-open{gap:13px;padding:10px 9px;min-width:0}.folder-entry-copy{display:flex;flex:1;min-width:0;flex-direction:column;gap:3px;align-items:flex-start;text-align:left}.folder-entry-copy strong{font-size:16px;font-weight:600;overflow-wrap:anywhere;color:#24301f}.folder-entry-copy small{font-size:12px;font-weight:400;color:#686f5d}.folder-entry .glyph{width:39px;height:39px;background:#e5eacb;border:1px solid #dbe1be}.entry-star{color:#bd8b26;font-size:16px}.entry-pin{color:#657d41;font-size:17px}
#inspector .inspector-tabs{display:grid;position:sticky;top:0;z-index:2;background:#f9f6eb;margin:0 -1px 13px;border-bottom:1px solid #dedac9}.inspector-tabs button{min-height:74px;gap:8px;font-size:14px;white-space:normal}.inspector-tabs button.active{background:linear-gradient(#eef1dd,#faf7ed)}#inspector .inspector-card{border-radius:15px;padding:17px 15px;background:linear-gradient(130deg,#fffdf6,#f7f3e6);border:1px solid #e2decc}.inspector-card h3{font-size:18px;line-height:1.35;min-height:25px;font-weight:700}.inspector-card h3:before{width:27px;height:27px}.info-row{font-size:14px;line-height:1.5;gap:12px;padding:12px 0}.info-row strong{font-weight:500;color:#283322}.inspector-person{gap:11px;min-height:54px}.inspector-avatar{width:40px;height:40px}.inspector-person strong{font-size:15px}.member-role{font-size:12px}.favorite-card{border-top:1px solid #e4dfcf;padding-top:11px}
.space-picker-dialog .space{min-height:65px;border-radius:12px}.space-picker-dialog .space-copy strong{font-size:16px}.space-picker-dialog .member-faces{display:flex}.context-menu button{min-height:37px;padding:8px 12px}dialog:not(.photo-viewer) label{font-size:14px;font-weight:550}dialog:not(.photo-viewer) input,dialog:not(.photo-viewer) textarea{font-size:15px}button:focus-visible{outline:2px solid #73934b;outline-offset:2px}
@media(max-width:1100px){.tree-panel{padding:13px 10px}.tree-space-picker{font-size:17px}.tree-row .item-copy strong{font-size:14px}.quick-create button{min-height:64px}#detail{padding:18px}.info-row{font-size:12px}#inspector .inspector-card{padding:12px 10px}.inspector-card h3{font-size:16px}.inspector-tabs button{font-size:12px}.folder-entry-copy strong{font-size:14px}main:after{left:70px}}
@media(max-width:760px){header{background-size:auto 100%!important}.brand{font-size:22px}#detail .note-path{font-size:12px}.note-reading{font-size:16px}.standalone-photo .media{max-height:65vh}.forest-rail{margin-bottom:0}}
/* 0.18: reading and desktop command surfaces */
#globalSearch:before{content:'Ctrl + K';order:3;margin-left:auto;font-size:11px;padding:2px 5px;border:1px solid #d5d9c4;border-radius:5px;color:#53634a}#globalSearch:after{order:1}#globalSearch svg{order:0;flex:none}
.reading-heading{margin:20px 0 12px;font-size:21px;line-height:1.35;padding:9px 14px;border-radius:9px;background:linear-gradient(90deg,#e3e9c9,#f3f0e1);position:relative;padding-right:55px}.reading-heading:after{content:'';position:absolute;right:9px;top:0;width:42px;height:100%;background:url('/forest-sprig.svg') center/contain no-repeat}.reading-line{display:flex;gap:10px;min-height:1.5em;white-space:pre-wrap}.reading-mark{flex:none;color:#4c7931;font-weight:700;width:18px;text-align:center}.reading-line.check .reading-mark{font-size:20px}.format-toolbar{display:flex;flex-wrap:wrap;gap:7px;padding:9px;background:#e9edda;border:1px solid #dce2c9;border-radius:10px}.format-toolbar button{min-height:34px;background:#fbfaf0;border-color:#d5dbc3}.format-toolbar button:last-child{margin-left:auto}.note-editor{margin-top:9px}.editor-preview{min-height:44vh;padding:18px;border:1px solid #dedcc9;border-radius:12px;background:#fffdf6}.editor-preview[hidden],.note-editor[hidden]{display:none!important}.workspace-search{width:min(680px,92vw);padding:24px;border-radius:19px}.search-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px}.search-heading h2{margin:0}.workspace-search input{width:100%;padding:13px;font-size:17px}.search-results{max-height:55vh;overflow:auto;margin-top:14px}.search-result{display:flex;align-items:center;width:100%;gap:12px;text-align:left;padding:11px 8px;border:0;border-bottom:1px solid #e0decd;background:transparent;border-radius:8px}.search-result:hover{background:#e6ebd2}.search-copy{display:flex;flex:1;min-width:0;flex-direction:column;gap:4px}.search-copy strong{overflow-wrap:anywhere}.search-copy small{color:#68745d;font-weight:400}.search-result>svg{width:18px;height:18px;flex:none}.search-result .glyph{flex:none}.folder-entry:hover{background:#e9edda}.forest-rail button:focus-visible{outline-color:#d3e4a9}@media(max-width:760px){#globalSearch:before{display:none}.reading-heading{font-size:18px}.format-toolbar button:last-child{margin-left:0}}
.history-row{position:relative;margin:12px 0;padding:15px 16px 15px 20px;border:1px solid #dedfc9;border-left:4px solid #8aa269;border-radius:10px;background:linear-gradient(120deg,#fffdf6,#f3f2e4)}.history-row strong{display:block;font-size:16px}.history-row small{display:block;margin:5px 0;color:#627054}.history-row p{margin:8px 0;line-height:1.5}.history-row button{margin-top:4px}.note-reading .reading-line span:last-child{min-width:0;overflow-wrap:anywhere}
/* 0.19 — coherent desktop controls and reading surfaces */
#inspector .favorite-card{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:52px}#inspector .favorite-card>span{flex:1 1 auto;min-width:0;overflow-wrap:normal;white-space:normal;font-size:15px}#inspector .favorite-card>span svg{flex:none}#inspector .favorite-card .favorite-switch{flex:0 0 46px;width:46px!important;min-width:46px!important;max-width:46px;height:26px;min-height:26px;padding:0!important;border:1px solid #b6b9aa;border-radius:20px;background:#bfc2b5!important;position:relative;box-shadow:none}#inspector .favorite-switch:after{content:'';position:absolute;left:3px;top:3px;width:18px;height:18px;border-radius:50%;background:white;box-shadow:0 1px 3px #0003;transition:transform .15s}#inspector .favorite-card .favorite-switch[aria-checked=true]{background:#396b2e!important;border-color:#396b2e}#inspector .favorite-switch[aria-checked=true]:after{transform:translateX(20px)}
.note-reading .reading-line.text{display:block;min-height:1.45em}.note-reading .reading-line.check .reading-mark{display:inline-flex;align-items:center;justify-content:center;width:19px;height:19px;line-height:1;border-radius:4px;margin-top:5px;border:1px solid #87986c;font-size:14px}.reading-heading{margin:17px 0 10px}.editor-stats{display:block;text-align:right;color:#667558;font-size:12px;margin:8px 0}.format-toolbar{position:sticky;top:0;z-index:2}.search-result:focus-visible{background:#e0e7ca;outline:2px solid #81985a;outline-offset:-2px}.note-title-line{gap:12px}.note-title-line h1{overflow-wrap:anywhere;min-width:0}.info-row>span svg{flex:none}.inspector-person strong{min-width:0;overflow-wrap:anywhere}.quick-create button:hover{background:#e6ebd0}.forest-rail button:hover{background-color:#ffffff18}.folder-entry-open:focus-visible{outline-offset:-3px}
/* 0.20 — desktop navigation and stronger visual hierarchy */
.workspace-navigation{display:inline-flex;align-items:center;gap:3px;margin-right:8px;padding-right:9px;border-right:1px solid #d8ddc7;flex:none}.note-path .workspace-navigation button{width:29px;height:29px;justify-content:center;font-size:18px;font-weight:600;padding:0;color:#345c2a;border-radius:7px}.workspace-navigation button:not(:disabled):hover{background:#e3e9cf}.workspace-navigation button:disabled{opacity:.32;cursor:default}
#detail .note-title-line{gap:12px;align-items:center}.note-reading{color:#222b20}.note-reading .reading-line{line-height:1.65}.note-reading .reading-heading{font-weight:700;letter-spacing:-.2px}.folder-entry-open:hover{background:#e9edd8}.folder-entry-copy small{color:#67705b}.tree-row .item.active{background:linear-gradient(90deg,#dce6bd,#e7ebd1);box-shadow:inset 3px 0 #789a4c}.tree-row .item:focus-visible,.folder-entry-open:focus-visible{outline:2px solid #658d44;outline-offset:-2px}.quick-create button:hover:not(:disabled){background:#edf0d9;border-color:#a8b98b;transform:translateY(-1px)}.inspector-card .info-row{min-height:40px}.inspector-tabs button.active{box-shadow:inset 0 -2px #4d7a36}.photo-viewer-bar button{white-space:nowrap}.photo-viewer-bar{flex-wrap:wrap}.note-gallery .attachment{min-width:0}.note-gallery .media{max-height:60vh;object-fit:contain}.brand{filter:drop-shadow(0 1px 2px #102a15)}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

/* Диагностика */
.diagnostic-row{display:flex;align-items:baseline;justify-content:space-between;gap:16px;padding:12px 0;border-bottom:1px solid #dedfce}.diagnostic-row strong{flex:0 0 42%;font-size:14px}.diagnostic-row span{text-align:right;overflow-wrap:anywhere;font-size:14px}#diagnosticsDialog{max-width:min(560px,94vw)}

.remember-tab{display:flex!important;align-items:center;gap:9px;font-size:13px}.remember-tab input{width:auto!important;flex:none;accent-color:#386527}

.batch-dialog{width:min(560px,90vw)}.batch-list{max-height:45vh;overflow:auto;border:1px solid #d9ddca;border-radius:10px;margin:12px 0}.batch-row{display:flex;align-items:center;gap:12px;padding:10px;border-bottom:1px solid #e6e7dc;cursor:pointer}.batch-row:hover{background:#e8edd9}.batch-row input{width:18px;height:18px;accent-color:#52753b}.batch-row span{overflow-wrap:anywhere}.batch-dialog select{width:100%;margin-bottom:12px}

/* 0.26 — stability at narrow desktop sizes and keyboard accessibility */
#detail,#inspector,.tree-panel,.folder-entry-copy,.note-title-line{min-width:0}.note-reading,.history-row,.inspector-person,.info-row{overflow-wrap:anywhere}.note-path{flex-wrap:wrap}.note-title-line{flex-wrap:wrap}.note-gallery img{max-width:100%;height:auto;object-fit:contain}dialog{max-height:90dvh;overflow:auto}button:focus-visible,[tabindex]:focus-visible{outline:2px solid #678747;outline-offset:2px}button:disabled{cursor:not-allowed}.batch-list{overscroll-behavior:contain}.tree-panel,.listing,#detail,#inspector{overscroll-behavior:contain}
/* Notification center and historical comparison */
.event-filter{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}.event-card{position:relative;margin-top:10px;padding:14px 16px}.event-card.unread{border-left:4px solid #6b8b46;background:#f1f4e4}.history-compare{margin:15px 0;padding:14px;border:1px solid #d5d9c0;border-radius:12px;background:#f8f5e9}.history-compare summary{cursor:pointer;font-weight:600;color:#395b30}.photo-viewer-bar{flex-wrap:wrap}.event-card small{display:block;margin:6px 0}
/* Desktop drag target */
.tree-row.drop-target,.folder-entry.drop-target{outline:2px solid #668b42;outline-offset:-2px;background:#e0ebcb!important;border-radius:8px}
[draggable=true]{cursor:grab}[draggable=true]:active{cursor:grabbing}

.editor-attachments{margin-top:18px;padding:14px;border:1px solid #d5d8bd;border-radius:12px;background:#f8f5e9}.editor-attachment-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px solid #e4e3d3}.editor-attachment-row:last-child{border:0}.editor-attachment-row button{color:#963d30}.detail-top{flex-wrap:wrap}

/* Local workspace preferences */
.pref-group{border:1px solid #d8ddc7;border-radius:12px;padding:12px 15px;margin:12px 0;background:#fffdf5}.pref-group h3{margin:0 0 12px;color:#35552b}.pref-group label{margin:9px 0}.pref-group select{display:block;width:100%;margin-top:5px}#prefStatus{font-size:13px;color:#45663a;min-height:1.2em}#preferences{width:min(530px,94vw)}
:root[data-reading=large] .note-reading{font-size:19px}:root[data-reading=extra] .note-reading{font-size:22px}:root[data-reading=large] .note-reading .reading-heading{font-size:24px}:root[data-reading=extra] .note-reading .reading-heading{font-size:27px}
:root[data-density=compact] .tree-row .item{min-height:30px;padding-top:3px;padding-bottom:3px}:root[data-density=compact] .tree-row .item-copy strong{font-size:13px}:root[data-density=compact] .tree-row .item-copy small{font-size:11px}

/* 1.1.0 — one notebook silhouette; the landscape overlaps only its reserved foot. */
@media (min-width:761px){
  main,main:not(.focus-mode),main.focus-mode{
    --rail-width:100px; --paper-top:4px; --paper-bottom:12px; --paper-right:8px;
    --landscape-height:64px; --paper-radius:23px; --paper-safe:52px;
    padding:var(--paper-top) var(--paper-right) var(--paper-bottom) 0;
    background:#203e26; border-radius:0; isolation:isolate;
    grid-template-rows:minmax(0,1fr);
  }
  main:not(.focus-mode){grid-template-columns:var(--rail-width) minmax(0,var(--left)) 8px minmax(0,1fr) 8px minmax(0,var(--middle))}
  main:before{
    content:'';position:absolute;inset:var(--paper-top) var(--paper-right) var(--paper-bottom) var(--rail-width);
    border-radius:var(--paper-radius);background:linear-gradient(150deg,#fffdf5 0%,#f9f6e9 76%,#ecebd3 100%);
    box-shadow:0 5px 18px #112b204d,inset 0 0 0 1px #e0ddc8;
    pointer-events:none;z-index:-1;
  }
  main:after{
    left:var(--rail-width);right:0;bottom:0;height:var(--landscape-height);
    background:url('/forest-footer.webp') center bottom/100% 100% no-repeat;
    z-index:4;pointer-events:none;
  }
  main>.forest-rail{margin-top:calc(-1 * var(--paper-top));margin-bottom:calc(-1 * var(--paper-bottom));padding-top:26px}
  main>.tree-panel,main>#detail,main>#inspector{
    border:0;box-shadow:none;background:transparent;min-width:0;min-height:0;
    padding-bottom:var(--paper-safe);scroll-padding-bottom:var(--paper-safe);
    border-radius:0;
  }
  main>.tree-panel{border-radius:var(--paper-radius) 0 0 var(--paper-radius)}
  main>#detail{border-radius:12px;background:#fffdf52b}
  main>#inspector{border-radius:0 var(--paper-radius) var(--paper-radius) 0}
  main>.split{background:linear-gradient(90deg,transparent 3px,#dedbc9 3px,#dedbc9 4px,transparent 4px);margin:10px 0 var(--paper-safe)}
  main>.split:hover,main>.split:focus-visible{background:#b9c9a1}
  main.focus-mode{--rail-width:10px;padding-left:var(--rail-width);grid-template-columns:minmax(0,1fr)}
  main.focus-mode>#detail{border-radius:var(--paper-radius)}
  main>#detail.standalone-photo{padding-bottom:var(--paper-safe)}
  #detail,#inspector{scrollbar-width:thin;scrollbar-color:#b7bda4 transparent}
}
@media (min-width:761px) and (max-width:1100px){
  main:not(.focus-mode){--rail-width:70px;--paper-right:5px;--paper-radius:19px;grid-template-columns:var(--rail-width) minmax(0,25vw) 5px minmax(0,1fr) 5px minmax(0,23vw)}
  main>.forest-rail{padding-top:18px}
}
@media (min-width:761px) and (max-height:550px){
  main,main:not(.focus-mode),main.focus-mode{--landscape-height:38px;--paper-safe:30px}
  main>.forest-rail{padding-top:8px;gap:3px}
}
@media (max-width:760px){
  main,main:not(.focus-mode),main.focus-mode{border-radius:0;background:#203e26;padding:6px 7px 10px;gap:6px}
  main>.tree-panel,main>#detail,main>#inspector{border-radius:17px;background:#faf7ed;box-shadow:none}
}
@media (min-width:761px){
  main.focus-mode>#detail{min-height:0}
  main>.forest-rail{min-height:0}
  main>.forest-rail .rail-bottom{flex-shrink:0}
}
@media (min-width:761px) and (max-height:650px){
  main>.forest-rail button{min-height:0;padding:8px 2px}
  main>.forest-rail{gap:5px;padding-top:12px;padding-bottom:8px}
}

/* 1.2.0 — atmospheric landscape, visible rounded paper foot */
@media(min-width:761px){
 main,main:not(.focus-mode),main.focus-mode{--landscape-height:clamp(76px,10vh,108px);--paper-bottom:25px;--paper-safe:calc(var(--landscape-height) - var(--paper-bottom) + 8px);--paper-right:10px;background:linear-gradient(180deg,#203e26 0%,#294b31 84%,#81995c 100%)}
 main:before{background:linear-gradient(155deg,#fffdf5 0%,#f9f6ea 76%,#f2efd9 100%);box-shadow:0 5px 16px #152c2355,inset 0 0 0 1px #e0ddc8}
 main:after{right:0;background-size:100% 100%}
 main>.split{margin-bottom:var(--paper-safe)}
}
@media(min-width:761px) and (max-height:650px){main,main:not(.focus-mode),main.focus-mode{--landscape-height:52px;--paper-bottom:14px;--paper-safe:42px}}


/* 1.3.2 — crisp artwork, natural proportions and transparent foreground */
header{background:#183823 url('/forest-header.webp') center center/cover no-repeat!important}
@media(min-width:761px){
 main,main:not(.focus-mode),main.focus-mode{--landscape-height:clamp(54px,6.8vw,106px);--paper-bottom:19px;--paper-safe:calc(var(--landscape-height) - var(--paper-bottom) + 10px);background:#203e26}
 main:after{left:var(--rail-width);right:0;height:var(--landscape-height);background:url('/forest-footer.webp') center bottom/cover no-repeat;mask-image:none;pointer-events:none}
 main>.forest-rail{background:#203e26 url('/forest-rail.webp') center bottom/100% auto no-repeat;margin-bottom:calc(-1 * var(--paper-bottom))}
 main>.forest-rail::after{content:none}
 main:before{border-radius:var(--paper-radius);box-shadow:0 5px 16px #122c204d}
 main>.split{margin-bottom:var(--paper-safe)}
}
@media(min-width:761px) and (max-height:650px){main,main:not(.focus-mode),main.focus-mode{--landscape-height:44px;--paper-bottom:12px;--paper-safe:42px}main:after{background-size:100% auto}}
@media(max-width:760px){header{background-size:auto 100%!important}main:after{display:none}}

/* 1.3.9: wide artwork, proportional crop, seamless dark green ends. */
header{background-color:#19391f!important;background-image:linear-gradient(90deg,#19391f 0%,#19391f 12%,#19391f00 20%,#19391f00 69%,#19391f 78%,#19391f 100%),url('/forest-header.webp')!important;background-size:100% 100%,76% auto!important;background-position:center,center 62%!important;background-repeat:no-repeat!important}
@media(max-width:760px){header{background-size:100% 100%,auto 100%!important;background-image:linear-gradient(90deg,#19391f 0%,#19391f00 35%,#19391f00 65%,#19391f 100%),url('/forest-header.webp')!important}}

/* Shift only the panorama, keeping its scale and the right/left background fade. */
@media(min-width:761px){header{background-position:center,calc(50% - 152px) 62%!important}}

/* 1.3.9 — two illustrated sprigs, no change to header or footer. */
@media(min-width:761px){
 main>.forest-rail{background-color:#203e26;background-image:url('/forest-rail.webp');background-position:center bottom;background-size:100% auto;background-repeat:no-repeat}
}
@media(min-width:761px) and (max-height:780px){main>.forest-rail{background-size:auto 42%;background-position:left bottom}}
@media(max-width:760px){main>.forest-rail{background-image:none}}

/* 1.3.9 — approved landscape, clipped to the rounded notebook silhouette. */
@media(min-width:761px){
 main,main:not(.focus-mode),main.focus-mode{--paper-bottom:10px;--landscape-height:clamp(45px,6.9vw,150px);--paper-safe:calc(var(--landscape-height) + 8px);--paper-radius:23px}
 main:after{left:var(--rail-width);right:var(--paper-right);bottom:var(--paper-bottom);height:var(--landscape-height);background:url('/forest-footer.webp') center bottom/100% auto no-repeat;border-radius:0 0 var(--paper-radius) var(--paper-radius);overflow:hidden;mask-image:none;pointer-events:none}
 main>.split{margin-bottom:var(--paper-safe)}
}
@media(min-width:761px) and (max-height:650px){main,main:not(.focus-mode),main.focus-mode{--landscape-height:55px;--paper-safe:63px}main:after{background-size:auto 100%}}

/* 1.3.9 — dark backing beneath the rounded landscape edge, no pale seam. */
@media(min-width:761px){
 main:before{border:0;box-shadow:0 5px 16px #122c204d;background:linear-gradient(to bottom,transparent calc(100% - 5px),#203e26 calc(100% - 5px)),linear-gradient(155deg,#fffdf5 0%,#f9f6ea 76%,#f2efd9 100%)}
 main:after{bottom:var(--paper-bottom);border:0;box-shadow:none}
}

/* 1.4.0: account-only workspace, compact navigation; forest art unchanged. */
.signed-out header .tool,.signed-out #status{display:none!important}
.welcome-gate{min-height:calc(100dvh - 76px);display:grid;place-items:center;padding:28px;background:#203e26}
.welcome-card{width:min(470px,100%);padding:36px 30px;text-align:center;background:#faf8ee;border-radius:23px;box-shadow:0 12px 40px #102b1d66;color:#263322}
.welcome-card h1{font-size:27px;line-height:1.2;margin:18px 0 12px}.welcome-card p{color:#617052;line-height:1.65}.welcome-card :is(#welcomeActions,.nt-maintenance-actions){display:grid;gap:10px;margin-top:24px}.welcome-card button{min-height:46px}.welcome-card img{object-fit:contain}
#status{position:fixed!important;top:82px;right:18px;z-index:15;max-width:min(460px,90vw);white-space:normal;background:#264c2d;color:#fff;padding:10px 15px;border-radius:10px;box-shadow:0 3px 12px #142b1733;pointer-events:none}
#account,#account.connected{display:flex;align-items:center;justify-content:center;gap:8px;width:auto;min-width:56px;height:54px;flex:0 1 auto;max-width:245px;overflow:visible;padding:4px 9px;border:0;background:transparent;color:#fff}
#account .account-avatar{width:44px;height:44px;flex:0 0 44px;display:grid;place-items:center;border-radius:50%;background:#385b32;overflow:hidden;border:1px solid #c9d7b4}
#account.has-avatar .account-avatar img{width:100%;height:100%;object-fit:cover;display:block;border:0;border-radius:50%}
#account .account-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;font-weight:600}
#account>svg{width:15px;height:15px;flex:none;transform:rotate(90deg)}
.tree-sort{display:flex;align-items:center;gap:3px;margin:0;flex:none;color:#41643b;font-size:14px}.tree-sort select{max-width:83px;padding:5px 3px;font-size:12px;background:#f0f0df;border:1px solid #dedfce;border-radius:8px}.tree-heading{gap:6px}.quick-create h3:before{content:none}.project-tools{display:flex;flex-wrap:wrap;gap:4px;margin:0 0 6px}.project-tools button{font-size:12px;padding:5px 8px;background:#f1f1e3}.project-tools:has(>button:not([hidden])){padding-bottom:8px;border-bottom:1px solid #dedbca}
@media(min-width:761px){main>#detail{padding-bottom:calc(var(--paper-safe) + 24px)!important;scroll-padding-bottom:calc(var(--paper-safe) + 24px)}main>#detail:not(.standalone-photo)::after{content:'';display:block;height:var(--paper-safe);flex:none;pointer-events:none}}
@media(max-width:1100px){#account .account-name{max-width:105px}#account{gap:5px;padding:3px 5px}}
@media(max-width:760px){#account .account-name{display:none}#account .account-avatar{width:36px;height:36px;flex-basis:36px}#account{height:42px;min-width:42px}#account>svg{display:none}.welcome-card{padding:26px 18px}}

/* 1.4.1 — single-line tree, real root and compact controls. */
.tree-heading .tree-down{display:grid;place-items:center;width:24px;height:24px;flex:0 0 24px;align-self:center;color:#41643b}.tree-down svg{width:22px;height:22px;display:block}
.tree-heading .tree-sort{position:relative;width:32px;height:32px;display:grid;place-items:center;border-radius:8px;background:transparent;cursor:pointer;flex:0 0 32px}.tree-sort svg{width:22px;height:22px;pointer-events:none}.tree-heading .tree-sort select{position:absolute;inset:0;width:100%;height:100%;max-width:none;opacity:0;cursor:pointer}.tree-sort:hover,.tree-sort:focus-within{background:#e3e8cf}.tree-sort:focus-within{outline:2px solid #678747}
.tree-panel #items .item-row{min-height:36px;height:36px;flex:0 0 36px;align-items:center;overflow:hidden}.tree-panel #items .item-row .item{min-height:0;height:100%;padding-top:3px;padding-bottom:3px;box-shadow:none;background:transparent;border:0}.tree-panel #items .item-row:has(.item.active){background:#dfe7be!important;box-shadow:none;border:0}.tree-panel #items .item-copy{min-width:0;overflow:hidden}.tree-panel #items .item-copy strong{display:block;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;overflow-wrap:normal}.tree-panel #items .item-copy small{display:none}.tree-panel #items .tree-root .item-copy strong{font-weight:650}.tree-panel #items .tree-row{background-image:none}.tree-panel #items .tree-row .item.active{box-shadow:none}.tree-panel #items .tree-row .more{flex:none}.tree-panel #items .tree-row .item>svg{display:none}
:root[data-density=compact] .tree-panel #items .item-row{height:30px;min-height:30px;flex-basis:30px}

/* 1.5.2 — signed-out only; separate illustrated welcome scene. */
body.signed-out>header{display:none!important}
body.signed-out{min-height:100dvh;background:#19391f}
:is(body.signed-out .welcome-gate,#ntMaintenanceScreen .welcome-gate){min-height:100dvh;min-height:100svh;padding:clamp(16px,4vw,48px);background:#19391f linear-gradient(0deg,#142c1940,#142c1910);background-image:linear-gradient(0deg,#142c1933,#142c1908),url('/forest-welcome.webp');background-position:center;background-size:cover;background-repeat:no-repeat;}
:is(body.signed-out .welcome-card,#ntMaintenanceScreen .welcome-card){position:relative;isolation:isolate;overflow:hidden;width:min(680px,100%);padding:clamp(24px,4vw,56px) clamp(20px,4vw,56px) clamp(55px,6vw,88px);border:1px solid #fff9e9;border-radius:28px;background:linear-gradient(145deg,#fffbed,#f6f0df);box-shadow:0 18px 70px #10271885;color:#243922}
:is(body.signed-out .welcome-card,#ntMaintenanceScreen .welcome-card):after{content:'';position:absolute;bottom:0;left:0;right:0;height:58px;background:url('/forest-footer.webp') center bottom/100% auto no-repeat;pointer-events:none;z-index:-1;opacity:.78}
:is(body.signed-out .welcome-brand,#ntMaintenanceScreen .welcome-brand){display:flex;align-items:center;justify-content:center;gap:12px;font-size:clamp(25px,4vw,39px);font-weight:750;letter-spacing:-1px;color:#19391f}
:is(body.signed-out .welcome-brand,#ntMaintenanceScreen .welcome-brand) img{border-radius:14px;flex:none;width:64px;height:64px;object-fit:contain}
:is(body.signed-out .welcome-brand,#ntMaintenanceScreen .welcome-brand) small{font-size:15px;font-weight:550;letter-spacing:0;border:1px solid #819769;border-radius:12px;padding:4px 9px}
:is(body.signed-out .welcome-card,#ntMaintenanceScreen .welcome-card) h1{font-size:clamp(23px,3vw,34px);margin:22px 0 14px;line-height:1.2}
:is(body.signed-out .welcome-card,#ntMaintenanceScreen .welcome-card) p{font-size:clamp(15px,1.4vw,19px);line-height:1.6;margin:0 0 18px}
:is(body.signed-out .welcome-cloud,#ntMaintenanceScreen .welcome-cloud){background:#e7e8c9;border-radius:11px;padding:12px 14px;color:#36542b;font-size:15px}
:is(body.signed-out .welcome-card,#ntMaintenanceScreen .welcome-card) :is(#welcomeActions,.nt-maintenance-actions){gap:12px;margin-top:24px}
:is(body.signed-out .welcome-card,#ntMaintenanceScreen .welcome-card) :is(#welcomeActions,.nt-maintenance-actions) button{min-height:52px;font-size:17px;font-weight:600;border-radius:12px}
:is(body.signed-out .welcome-card,#ntMaintenanceScreen .welcome-card) #welcomeRegister{background:transparent;border:1px solid #c9cbb3;color:#274426}
:is(body.signed-out .welcome-card,#ntMaintenanceScreen .welcome-card) #welcomeRecover{background:transparent;border:0;color:#365b2d;text-decoration:underline;min-height:38px;font-size:15px}
:is(body.signed-out .welcome-card,#ntMaintenanceScreen .welcome-card) #welcomeMessage{margin:18px 0 0}
body.signed-out dialog:not(.photo-viewer){background:#faf6e9;box-shadow:0 18px 70px #10271885}
@media(max-width:500px){:is(body.signed-out .welcome-brand,#ntMaintenanceScreen .welcome-brand) img{width:48px;height:48px}:is(body.signed-out .welcome-brand,#ntMaintenanceScreen .welcome-brand){gap:8px}:is(body.signed-out .welcome-card,#ntMaintenanceScreen .welcome-card){border-radius:22px;padding-bottom:52px}:is(body.signed-out .welcome-card,#ntMaintenanceScreen .welcome-card) :is(#welcomeActions,.nt-maintenance-actions) button{min-height:46px}}
@media(max-height:650px){:is(body.signed-out .welcome-card,#ntMaintenanceScreen .welcome-card){padding-top:20px;padding-bottom:42px}:is(body.signed-out .welcome-card,#ntMaintenanceScreen .welcome-card) h1{margin:12px 0 8px}:is(body.signed-out .welcome-card,#ntMaintenanceScreen .welcome-card) :is(#welcomeActions,.nt-maintenance-actions){margin-top:14px;gap:7px}:is(body.signed-out .welcome-card,#ntMaintenanceScreen .welcome-card) :is(#welcomeActions,.nt-maintenance-actions) button{min-height:40px}:is(body.signed-out .welcome-card,#ntMaintenanceScreen .welcome-card):after{height:36px}}

/* 1.5.2: hide the welcome card behind authentication dialogs, without changing the landscape. */
body.signed-out:has(#login[open]) .welcome-card{visibility:hidden}
body.signed-out:has(#accountDialog[open]) .welcome-card{visibility:hidden}

/* 1.5.4: integrated sections and compact space switcher only */
.quick-space-menu{position:fixed;z-index:1000;max-height:min(55vh,440px);overflow:auto;padding:5px;border:1px solid #dedfca;border-radius:10px;background:#faf7e9;box-shadow:0 8px 25px #203b2526;display:grid;gap:3px}
.quick-space-option{display:flex;align-items:center;gap:9px;width:100%;text-align:left;border:0;background:transparent;padding:6px;border-radius:7px;min-height:36px;color:#233b24}
.quick-space-option:hover{background:#e5ebcc}.quick-space-option>span:nth-child(2){flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.quick-space-option .glyph{width:28px;height:28px;flex:none}.quick-space-option .glyph img{width:100%;height:100%;object-fit:cover;border-radius:inherit}.quick-space-check{color:#38672b;font-weight:700}
.unified-tree-row .item-copy small{display:block;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.unified-tree-row .item-copy strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.unified-tree-row .item{min-height:42px;text-align:left;width:100%}.unified-clear{width:100%;margin:3px 0;text-align:left}

/* 1.5.5: only unified lists and quick space menu. */
.quick-space-menu{padding:8px;gap:6px;border-radius:12px}
.quick-space-option{min-height:48px;padding:8px 10px;gap:10px;font-size:15px;border:1px solid #d9ddc9}
.quick-space-option .glyph{width:34px;height:34px}
.quick-space-option:hover{box-shadow:inset 0 0 0 2px #78965b;filter:brightness(.98)}
.tree-space-picker.section-heading:disabled{opacity:1;cursor:default;color:inherit;pointer-events:none}
.tree-space-picker.section-heading .tree-down{display:none}
.tree-panel #items.unified-items{gap:6px}
.tree-panel #items.unified-items .unified-tree-row{height:46px;min-height:46px;flex:0 0 46px;background-image:none;border:0;box-shadow:none}
.tree-panel #items.unified-items .unified-tree-row .item{background:transparent;border:0;box-shadow:none;padding:4px 8px;opacity:1}
.tree-panel #items.unified-items .unified-tree-row .item-copy small{display:block;color:#647454;font-size:11px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.tree-panel #items.unified-items .unified-clear{background:#eef0df;border:1px solid #d8ddc4;box-shadow:none;min-height:36px}

/* 1.5.6: use the same tree-row component; only extra height for space name. */
.tree-panel #items.unified-items .tree-row.unified-tree-row{background:transparent;border:0;box-shadow:none;padding-left:0}
.tree-panel #items.unified-items .tree-row.unified-tree-row:hover{background:#e8ebd3}
.tree-panel #items.unified-items .tree-row.unified-tree-row:has(.item.active){background:#dfe7be!important;box-shadow:none}
.tree-panel #items.unified-items .tree-row.unified-tree-row .item{background:transparent;border:0;box-shadow:none;padding:4px 3px;border-radius:0}
/* 1.5.7: project center, only within the existing workspace. */
header #brandHome{cursor:pointer}header #brandHome:focus-visible{outline:2px solid #d9e7bc;outline-offset:3px;border-radius:6px}
#listActions{display:none!important}
#centerActions{display:grid;gap:7px;margin-top:auto;padding-top:12px;border-top:1px solid var(--line)}#centerActions button{background:transparent;text-align:left;color:var(--ink);border-color:var(--line)}#centerActions button:hover{background:#e9edd8}
.project-center #items .center-project{width:100%;margin:0 0 8px;min-height:66px;text-align:left;border:1px solid transparent;border-radius:10px;white-space:normal}.project-center #items .center-project.active{border-color:#6e934e;box-shadow:inset 0 0 0 1px #6e934e}.project-center .center-title{display:flex;gap:12px;align-items:center}.project-center .center-title h1{margin:0}.project-center .center-open{margin:18px 0}.center-links{display:grid;gap:5px}.center-link{display:flex;align-items:center;text-align:left;gap:12px;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent;padding:15px 8px}.center-link .item-copy{flex:1;display:grid;gap:4px}.center-link:hover{background:#e9edd8}.center-link svg{width:22px;height:22px;color:#456b36}.center-link small{color:var(--muted)}
.project-center dialog.embedded-management{position:static;inset:auto;transform:none;width:100%!important;max-width:none;max-height:none!important;margin:12px 0 0;padding:0;border:0;box-shadow:none;background:transparent;overflow:visible;color:inherit}.project-center .embedded-management .history-row{background:transparent}.project-center .center-back{background:transparent}.project-center #inspector .inspector-card{padding:12px;border:1px solid var(--line);border-radius:12px}

/* Project center 1.5.8: scoped layout and controls */
.project-center .center-title{display:flex;align-items:center;gap:12px;margin-bottom:16px;min-width:0}.project-center .center-title>.glyph{position:relative!important;inset:auto!important;width:48px!important;height:48px!important;min-width:48px;flex:0 0 48px;display:grid;place-items:center;overflow:hidden}.project-center .center-title>.glyph img{position:static!important;width:100%;height:100%;object-fit:cover}.project-center .center-title>.glyph svg{width:26px;height:26px}.project-center .center-title-copy{flex:1;min-width:0}.project-center .center-title-copy h1{overflow-wrap:anywhere}.project-center .center-title .center-open{margin:0;flex-shrink:0;white-space:normal}.project-center .center-link{border:1px solid transparent;border-bottom-color:var(--line);border-radius:9px;box-sizing:border-box}.project-center .center-link:hover,.project-center .center-link:focus-visible{border-color:#9cae80;outline:0;background:#e9edd8}.project-center .embedded-management :is(input,select,button,summary):focus-visible{outline:0;box-shadow:inset 0 0 0 2px #78985c;border-radius:8px}.center-loading{display:flex;align-items:center;gap:10px;color:#386b27;padding:14px 8px;min-height:42px}.center-spinner{width:19px;height:19px;border:2px solid #dce5cb;border-top-color:#386b27;border-radius:50%;animation:center-spin .8s linear infinite;flex:none}@keyframes center-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.center-spinner{animation:none}}.visual-field select[hidden]{display:none!important}.visual-select{min-width:0}.visual-select summary{display:flex;align-items:center;gap:10px;padding:9px 12px;border:1px solid var(--line);border-radius:9px;cursor:pointer;background:#fbf9ee;list-style:none}.visual-select summary::-webkit-details-marker{display:none}.visual-select summary:after{content:'⌄';margin-left:auto}.visual-options{display:grid;gap:5px;padding:6px 0}.visual-options .visual-option{display:flex;align-items:center;gap:10px;min-height:38px;text-align:left;border:1px solid var(--line);border-radius:8px;color:var(--ink);padding:6px 10px}.visual-option[aria-pressed=true]{box-shadow:inset 0 0 0 2px #78985c}.visual-option[aria-pressed=true]:after{content:'✓';margin-left:auto;color:#386b27}.visual-swatch{width:23px;height:23px;border-radius:5px;flex:none}.visual-select .glyph{position:static!important;width:28px!important;height:28px!important;flex:none;display:grid;place-items:center;background:#386b27;color:white}.visual-select .glyph svg{width:17px;height:17px}

/* 1.6.1: project management only; existing workspace artwork unchanged. */
.project-center #manageContent .member-filters{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:12px;align-items:end}.project-center #manageContent .member-filters .manage-field{margin:0}.project-center #manageContent .member-count{margin:2px 0;color:var(--muted)}
#manageContent .compact-member-list{display:grid;gap:0;min-width:0}#manageContent .compact-member{border-bottom:1px solid var(--line);padding:9px 4px;background:transparent}#manageContent .compact-member[hidden],#manageContent .compact-role-edit[hidden]{display:none!important}#manageContent .compact-member-line{display:flex;align-items:center;gap:10px;min-width:0;flex-wrap:wrap}#manageContent .compact-member-avatar{width:40px;height:40px;border-radius:50%;overflow:hidden;display:grid;place-items:center;flex:none;background:#e4ebd2;color:#386b27}#manageContent .compact-member-avatar img{width:100%;height:100%;object-fit:cover}#manageContent .compact-member-avatar svg{width:24px;height:24px}#manageContent .compact-member-copy{flex:1 1 150px;min-width:0;display:grid;gap:3px}#manageContent .compact-member-copy small{color:var(--muted);font-size:12px;overflow-wrap:anywhere}#manageContent .compact-member-role{font-size:12px;color:#365740;padding:5px 8px;background:#e9edd8;border-radius:6px;white-space:nowrap}#manageContent .compact-member-actions{display:flex;gap:6px;flex-wrap:wrap;margin-left:auto}#manageContent .compact-member-actions button,#manageContent .compact-role-edit button{width:auto;min-height:32px;padding:5px 10px;white-space:normal}#manageContent .compact-role-edit{display:flex;align-items:end;flex-wrap:wrap;gap:8px;padding:8px 0 2px 50px}#manageContent .compact-role-edit .manage-field{margin:0;flex:1 1 140px;max-width:280px}#manageContent .compact-role-edit select{margin:0}
.project-center #manageContent:has(.project-settings-grid){max-width:760px;gap:12px}.project-center #manageContent .project-settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px;align-items:start}.project-center #manageContent .project-settings-grid .manage-field{margin:0;min-width:0}.project-center #manageContent .project-settings-grid .manage-field[hidden]{display:none!important}.project-center #manageContent .project-settings-grid select:not([hidden]){margin:0;min-height:40px}.project-center #manageContent .project-settings-grid .visual-field{border:0;box-shadow:none;padding:0;background:transparent}.project-center #manageContent .project-settings-grid .visual-select{border:0;box-shadow:none;padding:0;background:transparent}.project-center #manageContent .project-settings-grid .visual-select summary{border:1px solid var(--line);box-shadow:none;min-height:40px;padding:6px 10px}.project-center #manageContent .project-settings-grid .visual-select summary:focus-visible{box-shadow:inset 0 0 0 2px #78985c}.project-center #manageContent .project-settings-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.project-center #manageContent .project-settings-actions button{width:auto;min-height:38px;padding:8px 14px}.project-center #manageContent .project-settings-actions button[hidden]{display:none!important}.project-center #manageContent .project-settings-actions .primary{margin-left:auto}.project-center #manageDialog.embedded-management:has(.project-settings-grid)>.actions,.project-center #manageDialog.embedded-management:has(.compact-member-list)>.actions{display:none}.project-center #manageDialog.embedded-management:has(.project-settings-grid),.project-center #manageDialog.embedded-management:has(.compact-member-list){padding-bottom:24px!important}
@media(max-width:1000px){.project-center #manageContent .project-settings-grid,.project-center #manageContent .member-filters{grid-template-columns:minmax(0,1fr)}#manageContent .compact-role-edit{padding-left:0}.project-center #manageContent .project-settings-actions .primary{margin-left:0}}

/* 1.6.1: compact project invitations and activity */
.project-center .invite-forms{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start}.project-center .invite-form{display:grid;gap:8px;min-width:0;padding:12px;border:1px solid var(--line);border-radius:10px}.project-center .invite-form h3{margin:0 0 4px}.project-center .invite-form .manage-field{margin:0}.project-center .invite-form>button{justify-self:start;width:auto}.project-center .invite-active-row{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:8px 0;border-bottom:1px solid var(--line)}.project-center .invite-active-row p{margin:0;flex:1;min-width:140px}.project-center .invite-active-row button{width:auto}.project-center #historyRows{max-height:none;overflow:visible}.project-center .project-event-row{display:flex;align-items:center;gap:12px;padding:9px 2px;border-bottom:1px solid var(--line)}.project-event-copy{display:grid;gap:3px;flex:1;min-width:0;overflow-wrap:anywhere}.project-event-row>small{white-space:nowrap}.project-center #closeHistory{display:none}.project-center #detail{padding-bottom:100px}@media(max-width:850px){.project-center .invite-forms{grid-template-columns:1fr}.project-event-row{flex-wrap:wrap}}

/* 1.6.1: project management only */
.project-danger{margin-top:24px;padding-top:14px;border-top:1px solid var(--line)}
.project-danger button{width:auto!important;color:#a33c32;border:1px solid #b86a60;background:transparent}
.request-compact{padding:10px 4px;border-bottom:1px solid var(--line)}
.request-head{display:flex;align-items:center;gap:10px}.request-head>div{display:grid;gap:3px}.request-avatar{width:32px;height:32px;flex:0 0 32px;border-radius:50%;overflow:hidden}.request-avatar img{width:100%;height:100%;object-fit:cover}.request-compact button{width:auto!important;margin:5px 6px 0 0}.request-compact>small{margin-right:10px}.embedded-management #closeRequests,.embedded-management #closeManage{display:none!important}.embedded-management .manage-field[hidden]{display:none!important}
#historyRows .compact-member-avatar{width:32px!important;height:32px!important;flex:0 0 32px!important;border-radius:50%;overflow:hidden}#historyRows .compact-member-avatar img{width:100%!important;height:100%!important;object-fit:cover} 
/* 1.6.2: compact historical journal and event center only */
.activity-controls{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr) minmax(0,1fr);gap:8px;margin:8px 0 12px}.activity-controls>*{min-width:0;width:100%}.activity-date{margin:14px 0 4px;color:#62734e;font-size:13px}.activity-row{display:flex;align-items:flex-start;gap:10px;width:100%;text-align:left;background:transparent;border:0;border-bottom:1px solid var(--line);border-radius:0;padding:9px 5px;box-shadow:none}.activity-row:hover,.activity-row.active{background:#e2e9cb}.activity-avatar{display:flex;align-items:center;justify-content:center;flex:0 0 32px;width:32px;height:32px;border-radius:50%;overflow:hidden;background:#e4ead8}.activity-avatar img{width:32px!important;height:32px!important;object-fit:cover;border-radius:50%}.activity-copy{display:grid;gap:3px;flex:1;min-width:0;overflow-wrap:anywhere}.activity-copy small{color:#59644e}.activity-time{white-space:nowrap;color:#68715d}.event-center-tabs{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0 14px}.event-center-section{display:grid;gap:8px}.event-center-section[hidden],#eventRows[hidden]{display:none!important}#eventsDialog{width:min(760px,calc(100vw - 32px));max-height:85vh}.activity-request{display:grid;gap:4px;padding:8px 0;border-bottom:1px solid var(--line)}.activity-request button{justify-self:start}.project-center #historyRows{max-height:none;overflow:visible;padding-bottom:24px}@media(max-width:650px){.activity-controls{grid-template-columns:1fr}.activity-row{flex-wrap:wrap}}
/* 1.6.3: local settings, account and note editor only */
:root{--note-size:16px}:root[data-reading=small]{--note-size:12px}:root[data-reading=medium]{--note-size:14px}:root[data-reading=large]{--note-size:20px}:root[data-reading=extra]{--note-size:25px}
#detail .note-reading,#detail .note-editor{font-size:var(--note-size)!important;line-height:1.55}#prefPreview{padding:12px;background:#eeefdf;border-radius:9px;font-size:var(--note-size);line-height:1.5}#preferences .pref-group>button{display:block;width:100%;text-align:left;margin:5px 0}#preferences .pref-group{background:transparent} :root[data-density=loose] .tree-row .item{min-height:42px}
#accountDialog .account-summary{text-align:center;padding:12px 0;border-bottom:1px solid #dedfce;margin-bottom:10px}#accountDialog .account-summary p{margin:4px 0;overflow-wrap:anywhere}#accountDialog .account-summary h3{margin:10px 0 4px}.account-large-avatar{display:inline-flex;width:76px;height:76px;border-radius:50%;overflow:hidden;align-items:center;justify-content:center;background:#dce6c6}.account-large-avatar img{width:100%;height:100%;object-fit:cover}.account-large-avatar svg{width:36px;height:36px}.account-connected{color:#426b35}.account-row{display:flex!important;align-items:center;gap:10px;width:100%;text-align:left;margin:5px 0}.account-row svg{width:20px;height:20px}.account-row:nth-last-child(2){color:#a44b3e}.account-version{display:block;text-align:center;margin:12px 0;color:#647359}
#detail .editor-head{display:flex;align-items:center;justify-content:space-between;gap:12px}#detail .editor-head h2{margin:0}#detail .editor-head .editor-actions{margin:0;position:static}#detail .note-editor{min-height:120px;height:clamp(120px,26vh,320px);margin:4px 0;padding:10px}#detail .editor-label{margin:8px 0 4px}#detail .note-gallery,#detail .editor-gallery{display:flex;flex-wrap:wrap;gap:10px}#detail .note-gallery .attachment,#detail .editor-gallery .attachment{width:96px;height:96px;margin:0!important;display:flex;align-items:center;justify-content:center}#detail .note-gallery .media,#detail .editor-gallery .media{width:96px;height:96px;object-fit:contain;margin:0!important}#detail .editor-attachments{margin-top:8px;padding:8px;background:transparent}#detail .editor-attachment-row{display:flex;flex-direction:column;width:100px;padding:0;border:0;gap:4px}#detail .editor-attachment-row button{padding:4px 8px;min-height:28px}
#accountDialog{position:fixed}#accountDialog #closeAccount{position:absolute;top:12px;right:12px;width:32px;height:32px;padding:0;font-size:22px;line-height:1;background:transparent;border:0;color:#53634b}#accountDialog #accountTitle{padding-right:30px}#accountDialog .account-row:last-of-type{color:#a44b3e}#detail .editor-gallery .attachment button,#detail .note-gallery .attachment button{max-width:96px;white-space:normal;font-size:11px;padding:4px}#detail .editor-gallery .media-error,#detail .note-gallery .media-error{font-size:10px;overflow-wrap:anywhere}
.transfer-dialog{width:min(560px,92vw);max-height:85vh;box-sizing:border-box}.transfer-tree{max-height:42vh;overflow:auto;border:1px solid #dce1cd;border-radius:10px;padding:8px}.transfer-row{display:flex;align-items:center;gap:4px;min-height:34px}.transfer-indent{width:14px;flex:none}.transfer-pick{display:flex;align-items:center;gap:8px;flex:1;min-width:0;text-align:left;background:transparent;border:0;box-shadow:none;padding:6px}.transfer-pick.active{background:#dfe7bd}.transfer-pick span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.transfer-path{overflow-wrap:anywhere;color:#526749}.transfer-dialog .actions{display:flex;justify-content:flex-end;gap:8px}.folder-contents{min-height:65px}
/* 1.6.5: shared action menus and inline note versions */
.context-menu .context-action{display:flex;align-items:center;gap:10px;background:transparent;min-height:36px;padding:7px 10px}.context-action svg{width:18px;height:18px;flex:none;color:#456b36}.context-menu .context-action:hover{background:#e5ebd2}.context-menu .context-group-start{border-top:1px solid #dedfce;border-radius:0;margin-top:3px;padding-top:9px}.context-menu .context-danger,.context-menu .context-danger svg{color:#a45040}
#inspector .version-list-row,#inspector .version-current{display:flex;align-items:center;text-align:left;gap:8px;background:transparent;border:0;border-bottom:1px solid #e1e3d3;border-radius:6px;padding:8px 3px;margin:0;box-shadow:none}.version-current.active,#inspector .version-list-row.active,#inspector .version-current.active{background:#e1e9cc}.version-list-row:hover,#inspector .version-list-row:hover{background:#edf0df}.version-avatar{width:32px;height:32px;flex:0 0 32px;border-radius:50%;overflow:hidden;display:grid;place-items:center;background:#e7ead8}.version-avatar img{width:100%;height:100%;object-fit:cover}.version-avatar svg,.version-current svg{width:19px;height:19px;color:#52743a}.version-list-row>svg{width:14px;height:14px;flex:none;color:#718465}.version-copy{min-width:0;flex:1;display:grid;gap:3px}.version-copy strong{font-size:13px;line-height:1.3}.version-copy small{font-size:11px;color:#627054}.version-top{display:flex;align-items:center;justify-content:space-between;gap:10px}.version-compare-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:16px 0}.version-compare-column{min-width:0;border:1px solid #dedfce;border-radius:10px;padding:12px}.version-compare-column .body{white-space:pre-wrap;overflow-wrap:anywhere}.version-removed{background:#f4e1da!important}.version-added{background:#e2ecd3!important}.version-compare-column .note-gallery{display:flex;flex-wrap:wrap;gap:8px}.version-photo{width:96px;min-width:0}.version-photo small{display:block;font-size:11px}.version-photo .media{width:96px!important;height:96px!important;object-fit:contain}.version-photo .attachment{padding:0!important;margin:0!important}@media(max-width:900px){.version-compare-grid{grid-template-columns:1fr}}

/* 1.6.6: shared pin indicator and mobile notice */
.entry-pin{display:inline-flex;align-items:center;justify-content:center;flex:0 0 16px;width:16px;height:16px;color:#657d41;vertical-align:middle}.entry-pin svg,.tree-row .entry-pin svg{width:16px;height:16px;stroke:currentColor;transform:rotate(30deg)}.section>.entry-pin{margin-right:6px}.mobile-gate[hidden]{display:none!important}body.mobile-only>*:not(.mobile-gate):not(script){display:none!important}body.mobile-only{margin:0;overflow:auto}.mobile-gate{min-height:100vh;min-height:100svh;display:grid;place-items:center;padding:20px;background:#19391f url('/forest-welcome.webp') center/cover no-repeat;box-sizing:border-box}.mobile-gate .welcome-card{width:min(100%,420px);box-sizing:border-box;max-height:none;text-align:center;padding:28px 22px}.mobile-gate .welcome-brand{justify-content:center}.mobile-device{width:48px;height:48px;color:#52743a;margin:12px auto}.mobile-gate h1{font-size:24px;line-height:1.25}.mobile-gate p{font-size:15px;line-height:1.5}

/* Desktop selection and action feedback */
.nt-picked>.item,.nt-picked>.folder-entry-open{background:#dfe9c7!important;outline:1px solid #a9bd84;outline-offset:-1px;border-radius:8px}.selection-bar{display:flex;align-items:center;gap:6px;flex-wrap:wrap;padding:7px 10px;margin-bottom:10px;background:#e5ebd4;border:1px solid #c8d4b0;border-radius:10px;color:#35552b}.selection-bar strong{margin-right:auto}.selection-action{padding:5px;min-width:30px;min-height:30px;background:transparent;border:0;color:#426b35}.selection-action svg,.nt-toast svg{width:20px;height:20px;flex:none}.selection-action:hover{background:#d1dfb8}.nt-toasts{position:fixed;right:20px;bottom:22px;z-index:100;display:grid;gap:8px;max-width:min(440px,90vw);pointer-events:none}.nt-toast{pointer-events:auto;display:flex;align-items:center;gap:10px;background:#faf7e9;color:#35552b;border:1px solid #c3d0ac;border-radius:12px;padding:10px 12px;box-shadow:0 5px 20px #17351e33}.nt-toast.error{color:#a44b3e;border-color:#d5a49a}.nt-toast span{flex:1}.nt-toast button{padding:4px 8px;font-size:13px}.split{touch-action:none}.signed-out .nt-toasts{display:none}

/* 1.6.8: larger tree hit targets and keyboard help. */
.tree-row .tree-toggle,.tree-row .tree-spacer{width:26px;min-width:26px;flex:0 0 26px}.tree-row .tree-toggle{height:28px;min-height:28px;display:inline-flex;align-items:center;justify-content:center;border-radius:6px;color:#365b2a;padding:0}.tree-row .tree-toggle svg{width:16px;height:16px;stroke-width:2.2}.tree-row .tree-toggle:hover,.tree-row .tree-toggle:focus-visible{background:#dce7c8}.context-shortcut{margin-left:auto;font-size:11px;color:#65705d;font-family:inherit;font-weight:400;white-space:nowrap}.shortcut-group{margin:14px 0;border-top:1px solid #dedfce;padding-top:9px}.shortcut-group h3{color:#456b36;margin:0 0 5px;font-size:14px}.shortcut-row{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:6px 0;font-size:14px}.shortcut-row kbd{background:#efeee1;border:1px solid #d1d6c2;border-radius:5px;padding:3px 7px;color:#364b2c;font:12px 'Segoe UI',system-ui,sans-serif;text-align:right;white-space:nowrap}#shortcutsDialog{width:min(570px,90vw)}#shortcuts{display:flex;align-items:center;gap:9px}#shortcuts svg{width:19px;height:19px;color:#52743a}

.draft-conflict{display:grid;gap:8px;padding:14px;margin:12px 0;border:1px solid #b88a42;border-radius:12px;background:rgba(184,138,66,.08)}
.draft-conflict input,.draft-conflict textarea{width:100%;box-sizing:border-box;resize:vertical;white-space:pre-wrap}

/* Folder note previews; tree rows remain compact. */
.folder-entry-copy .folder-note-preview{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;overflow:hidden;white-space:pre-line;overflow-wrap:anywhere;max-width:100%;color:inherit;font-size:14px;font-weight:400;line-height:1.45}
.folder-entry-copy .folder-entry-meta{display:flex;align-items:center;flex-wrap:wrap;gap:6px 12px}
.folder-photo-count{display:inline-flex;align-items:center;gap:4px;white-space:nowrap}
.folder-photo-count svg{width:14px;height:14px;flex:none}

/* Folder photo preview: preserve the existing icon box and row height. */
.folder-entry .folder-photo-thumb{overflow:hidden;flex-shrink:0}
.folder-entry .folder-photo-thumb img{display:block;width:100%;height:100%;object-fit:contain;border-radius:inherit}
/* Build 91: inline selection and staged note attachments */
.folder-toolbar .folder-select{background:#e8ecd9;color:#426b35;border:1px solid #d3ddc2;border-radius:8px;min-width:34px;min-height:32px;display:grid;place-items:center}
.folder-select svg,.editor-photo-head svg{width:19px;height:19px;vertical-align:middle}
.folder-entry .inline-pick,.selection-bar input[type=checkbox],.editor-photo-head input[type=checkbox],.editor-attachment-row input[type=checkbox]{width:17px;height:17px;min-width:17px;accent-color:#47763a;flex:none;margin:0 8px;cursor:pointer}
.selection-bar .selection-action:disabled{opacity:.4;cursor:default}.selection-bar .selection-action:hover:not(:disabled){background:#d2dfbd}.selection-bar .selection-action[aria-label="В корзину"]{color:#a33e36}
#detail .editor-photo-head{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:14px 0 10px}#detail .editor-photo-head h3{margin:0 auto 0 0}#detail .editor-photo-action{display:inline-flex;align-items:center;gap:5px;background:#e6ebd4;color:#426b35;border-color:#c8d4b0}#detail .editor-photo-delete{color:#a33e36;display:inline-flex;align-items:center;gap:5px}#detail .editor-attachment-row .stage-preview{width:96px;height:96px;object-fit:contain;border-radius:8px;background:#e8ebdc}#detail .editor-attachment-row{display:flex;flex-direction:column;align-items:center;gap:5px}
dialog.nt-dialog{max-height:calc(100vh - 40px);overflow:auto}dialog.nt-dialog .trash-preview{display:block;max-width:100%;max-height:140px;object-fit:contain;margin:0 auto 14px;border-radius:8px}

/* 1.6.22: centered photo canvas and persistent active tree row */
.photo-stage{display:flex;align-items:center;justify-content:center;overflow:hidden;touch-action:none;user-select:none}.photo-stage img{flex:none;pointer-events:none}.photo-stage.zoomed{cursor:grab}.photo-stage.panning{cursor:grabbing}.tree-panel #items .tree-row:has(.item[aria-current=true]){background:#dce8bf!important;box-shadow:inset 3px 0 #64883e!important}.tree-panel #items .tree-row:has(.item[aria-current=true]) .item-copy strong{font-weight:700;color:#294322}

/* 1.6.23: row container, not just its button, controls tree density. */
:root[data-density=loose] .tree-panel #items .item-row{height:44px;min-height:44px;flex-basis:44px}
.search-copy mark{background:#e9dca2;color:inherit;border-radius:2px;padding:0 1px}.search-copy small{white-space:normal;overflow-wrap:anywhere}
#detail.editor-expanded{position:fixed!important;inset:12px!important;width:auto!important;height:auto!important;max-width:none!important;max-height:none!important;z-index:90!important;margin:0!important;overflow:auto!important;background:#faf9ee!important;padding:24px!important;transform:none!important;isolation:isolate}#detail.editor-expanded .note-editor{min-height:45vh}#detail .editor-expand-button{white-space:nowrap;color:var(--accent)}@media(max-width:760px){#detail.editor-expanded{inset:4px!important;padding:12px!important}#detail.editor-expanded .editor-head{flex-wrap:wrap}}

/* Keyboard focus, distinct from the active object and group selection. */
#items .item:focus-visible,#detail .folder-entry-open:focus-visible{outline:2px solid #52783b;outline-offset:-2px;border-radius:6px;}

#detail button.export-icon{background:#e8ecd9;color:#426b35;border:1px solid #d3ddc2;border-radius:8px;min-width:34px;min-height:32px;padding:5px;display:inline-grid;place-items:center}#detail button.export-icon svg{width:19px;height:19px}.export-policy-row{display:flex;align-items:center;gap:10px;padding:8px 0}.export-policy-row input{width:auto}

/* 1.6.30: project export permissions and unread event badge */
#events{position:relative;overflow:visible}
#events .event-badge{position:absolute;top:-4px;right:-5px;min-width:18px;height:18px;padding:0 4px;display:grid;place-items:center;background:#b63d32;color:#fff;border:1px solid #f6f4e8;border-radius:12px;font:600 10px/1 'Segoe UI',sans-serif;pointer-events:none;z-index:2}
.export-policy-card{max-width:650px;display:grid;gap:12px;padding:20px;border:1px solid #dce2ce;border-radius:16px;background:#faf9ee;color:#29432a}
.export-policy-heading{display:flex;align-items:center;gap:12px;font-weight:600}.export-policy-heading .glyph{background:#e3ebd4;border-radius:10px;padding:10px}.export-policy-card h3{margin:4px 0 0;font-size:15px}.export-policy-card .export-policy-line{display:flex;flex-direction:row;align-items:center;gap:12px;margin:0;padding:10px 12px;border-bottom:1px solid #dce2ce;min-height:54px}.export-policy-card .export-policy-line:first-of-type{background:#e7ecd9;border-radius:10px;border:0}.export-policy-copy{display:grid;gap:2px;flex:1;min-width:0}.export-policy-copy small{color:#697162;font-weight:400}.export-policy-line .glyph{color:#52783b;flex-shrink:0}#detail .export-policy-card input.export-policy-switch{appearance:none;flex:0 0 42px;width:42px;height:24px;min-height:0;margin:0;padding:0;border:1px solid #9da994;border-radius:20px;background:#b5bdab;position:relative;cursor:pointer}#detail .export-policy-card input.export-policy-switch::after{content:'';position:absolute;left:3px;top:3px;width:16px;height:16px;border-radius:50%;background:#fff;transition:transform .15s}#detail .export-policy-card input.export-policy-switch:checked{background:#527e40;border-color:#527e40}#detail .export-policy-card input.export-policy-switch:checked::after{transform:translateX(18px)}#detail .export-policy-card input.export-policy-switch:disabled{opacity:.45;cursor:default}#detail .export-policy-card input.export-policy-switch:focus-visible{outline:2px solid #527e40;outline-offset:3px}.export-policy-actions{display:flex;justify-content:flex-end}.export-policy-actions button{width:auto!important}.export-policy-actions button:disabled{opacity:.5;cursor:default}.export-policy-card p{margin:0}

/* Export settings: scoped controls override generic notebook fields. */
#detail .export-policy-card{max-width:650px;gap:8px;padding:16px;background:#faf9ee;border-color:#d3dcc4}
#detail .export-policy-card .export-policy-line{min-height:44px;padding:6px 10px;gap:10px}
#detail .export-policy-card .glyph{width:34px;height:34px;padding:0;background:#e3ebd4;color:#426b35;border-radius:9px;flex:none}
#detail .export-policy-card .glyph svg{width:19px;height:19px;color:inherit;stroke:currentColor}
#detail .export-policy-line .glyph:nth-child(3){width:18px;height:18px;background:transparent;border-radius:0}
#detail .export-policy-line .glyph:nth-child(3) svg{width:15px;height:15px}
#detail .export-policy-card input.export-policy-switch{box-sizing:border-box;min-width:42px;max-width:42px;min-height:24px;max-height:24px;border-radius:20px;box-shadow:none;background:#b5bdab;border-color:#9da994}
#detail .export-policy-card input.export-policy-switch:checked{background:#527e40;border-color:#527e40}
#detail .export-policy-card input.export-policy-switch::after{box-shadow:0 1px 2px #243c3033}
#detail .export-policy-card input.export-policy-switch:disabled{opacity:.55}

/* Persistent connection state, without changing toolbar geometry. */
#refresh{position:relative}#refresh[data-connection="offline"]::after,#refresh[data-connection="blocked"]::after,#refresh[data-connection="checking"]::after{content:"";position:absolute;right:3px;top:3px;width:9px;height:9px;border-radius:50%;background:#e7ae55;border:1px solid #23472b;pointer-events:none}#refresh[data-connection="offline"]::after{background:#e36b60}

/* Note toolbar: consistent compact actions, including keyboard focus. */
#detail .detail-top button.export-icon{box-sizing:border-box;width:36px;height:36px;min-width:36px;min-height:36px;padding:6px;flex:none;background:#e8ecd9;color:#426b35;border:1px solid #d3ddc2;border-radius:8px;box-shadow:none}
#detail button.export-icon:hover:not(:disabled){background:#d2dfbd;border-color:#a6bb90}
#detail button.export-icon:focus-visible{outline:2px solid #527e40;outline-offset:2px}
#detail button.export-icon:disabled{opacity:.45;cursor:default}

/* 1.6.34: shared feedback and action surfaces. No changes to the viewer or embedded management. */
.context-menu{width:250px;background:#faf8ed;border:1px solid #d4ddc2;border-radius:12px;padding:5px;gap:2px;box-shadow:0 12px 32px #17351e30}
.context-menu button,.context-menu .context-action{background:transparent;border:0;border-radius:7px;min-height:36px;padding:7px 10px;color:#354b2e;text-align:left;line-height:1.35}
.context-menu button:hover:not(:disabled),.context-menu .context-action:hover:not(:disabled){background:#e2ebd2}
.context-menu .context-group-start{border-top:1px solid #dce2ce;margin-top:3px;padding-top:9px;border-radius:0 0 7px 7px}
.context-menu .context-danger,.context-menu .context-danger svg{color:#9e3d35}
.context-menu .context-danger:hover:not(:disabled){background:#f3e1d8}
.context-menu .context-shortcut{margin-left:auto;color:#64765b;font-size:11px;font-weight:500}
.context-menu button:disabled{opacity:.5;cursor:default}
.context-menu button:focus-visible,.nt-toast button:focus-visible{outline:2px solid #537c42;outline-offset:-2px}
dialog.nt-dialog{background:#faf8ed;border:1px solid #d7ddc6;border-radius:17px;padding:22px;box-shadow:0 18px 64px #182b2350;max-height:calc(100dvh - 28px)}
dialog.nt-dialog h2{font-size:21px;line-height:1.3;color:#29432a;margin:0 0 12px}
dialog.nt-dialog .nt-dialog-message{color:#43543b;line-height:1.55;margin-bottom:18px}
dialog.nt-dialog .nt-dialog-actions{gap:8px;margin-top:4px}
dialog.nt-dialog .nt-dialog-actions button{min-height:38px;padding:7px 14px;border-radius:9px}
dialog.nt-dialog .nt-dialog-actions button:not(.primary):not(.nt-danger){background:#f0f0e1;border-color:#d6ddc5;color:#354b2e}
dialog.nt-dialog .nt-dialog-actions button:not(.primary):not(.nt-danger):hover{background:#e3ebd3}
.nt-toasts{right:18px;bottom:20px;max-width:min(440px,calc(100vw - 36px));gap:8px}
.nt-toast{background:#faf8ed;color:#35552b;border:1px solid #c9d6b6;border-left:4px solid #65884d;border-radius:11px;padding:9px 10px;gap:9px;box-shadow:0 6px 22px #17351e26}
.nt-toast.error{background:#fff4ed;color:#963e35;border-color:#e1bcb1;border-left-color:#ad483e}
.nt-toast .nt-toast-message{min-width:0;overflow-wrap:anywhere;line-height:1.45}
.nt-toast .nt-toast-close{display:inline-flex;align-items:center;justify-content:center;flex:0 0 28px;width:28px;height:28px;min-height:28px;padding:0;border:0;background:transparent;color:inherit;border-radius:7px}
.nt-toast .nt-toast-close svg{width:16px;height:16px}
.nt-toast .nt-toast-undo{flex:none;background:#e3ebd3;color:#35552b;border:1px solid #c9d6b6;border-radius:7px;min-height:28px;padding:4px 9px;font-weight:600}
.nt-toast .nt-toast-close:hover,.nt-toast .nt-toast-undo:hover{background:#dce8cb}
.nt-toast.error .nt-toast-close:hover{background:#f1dfd7}
.context-menu button,.nt-toast .nt-toast-close,.nt-toast .nt-toast-undo{appearance:none;-webkit-appearance:none}

/* 1.6.35: opt-in night palette; light rules above remain unchanged. */
:root:where([data-theme="dark"]){color:#bfd9d4;background:#1d2a1d;--accent:#087d73;}
:where(:root[data-theme="dark"]) button{border:1px solid var(--line);border-radius:10px;color:inherit;background:#1a261a;}
:where(:root[data-theme="dark"]) button:hover{background:#1f2e20;}
:where(:root[data-theme="dark"]) button:focus-visible,:where(:root[data-theme="dark"]) input:focus-visible{outline:2px solid var(--accent);outline-offset:2px;}
:where(:root[data-theme="dark"]) header{border-bottom:1px solid var(--line);background:#1a261a;}
:where(:root[data-theme="dark"]) .brand{color:var(--accent);}
:where(:root[data-theme="dark"]) .logo{color:white;background:var(--accent);border-radius:10px;}
:where(:root[data-theme="dark"]) .brand small{color:#c3d0bd;}
:where(:root[data-theme="dark"]) #status{color:#c9d5c4;}
:where(:root[data-theme="dark"]) aside{border-right:1px solid var(--line);}
:where(:root[data-theme="dark"]) .section{color:#c3d0bd;}
:where(:root[data-theme="dark"]) .space{border:0;background:transparent;}
:where(:root[data-theme="dark"]) .space.active{background:#203521;color:#aae5e0;}
:where(:root[data-theme="dark"]) .bottom{color:#c3d0bd;}
:where(:root[data-theme="dark"]) .listing{background:#1a261a;border-right:1px solid var(--line);}
:where(:root[data-theme="dark"]) .listhead{background:#1a261a;border-bottom:1px solid var(--line);}
:where(:root[data-theme="dark"]) nav button{border:0;background:#1e2c1e;}
:where(:root[data-theme="dark"]) input{border:1px solid #364f37;border-radius:9px;background:#1a261a;color:inherit;}
:where(:root[data-theme="dark"]) .item{border:0;border-bottom:1px solid #334a33;border-radius:0;}
:where(:root[data-theme="dark"]) .item.active{background:#1f3320;}
:where(:root[data-theme="dark"]) .item span:first-child{color:var(--accent);}
:where(:root[data-theme="dark"]) article{background:#1a261a;}
:where(:root[data-theme="dark"]) .muted{color:#c5d2bf;}
:where(:root[data-theme="dark"]) .empty{color:#c1cfbb;}
:where(:root[data-theme="dark"]) .attachment{border:1px solid var(--line);border-radius:12px;}
:where(:root[data-theme="dark"]) dialog{border:1px solid var(--line);border-radius:18px;color:inherit;}
:where(:root[data-theme="dark"]) dialog::backdrop{background:#142f2c66;}
:where(:root[data-theme="dark"]) .primary{background:var(--accent);color:white;border-color:var(--accent);}
:where(:root[data-theme="dark"]) #error{color:#d9b6b6;}
@media (max-width:600px){:where(:root[data-theme="dark"]) aside,:where(:root[data-theme="dark"]) .listing,:where(:root[data-theme="dark"]) article{border-bottom:1px solid var(--line);}}
:root:where([data-theme="dark"]){--accent:#286b43;color:#e1e7de;background:#1e2c1e;}
:where(:root[data-theme="dark"]) header{background:#1e2c1e;}
:where(:root[data-theme="dark"]) .brand{color:#dfe6db;}
:where(:root[data-theme="dark"]) .logo{background:none;}
:where(:root[data-theme="dark"]) .brand small{color:#c2cfbb;}
:where(:root[data-theme="dark"]) button:hover:not(:disabled){background:#213122;}
:where(:root[data-theme="dark"]) .tool{border:0;background:transparent;color:#cad6c5;}
:where(:root[data-theme="dark"]) #account{background:#1a261a;border-color:#364f37;}
:where(:root[data-theme="dark"]) main{background:#1e2c1e;}
:where(:root[data-theme="dark"]) aside{border:0;}
:where(:root[data-theme="dark"]) .section{color:#c7d3c1;}
:where(:root[data-theme="dark"]) .space{background:#1f3420;border-radius:17px;border:2px solid transparent;color:#dee5db;}
:where(:root[data-theme="dark"]) .space.active{background:#1f3420;color:#d8e1d4;border-color:#94b7a1;}
:where(:root[data-theme="dark"]) .space>svg,:where(:root[data-theme="dark"]) .item>svg{color:#c7d3c2;}
:where(:root[data-theme="dark"]) .space-copy small,:where(:root[data-theme="dark"]) .item-copy small{color:#c6d2c0;}
:where(:root[data-theme="dark"]) .glyph{border-radius:12px;background:#286b43;color:white;}
:where(:root[data-theme="dark"]) .tone-0{--tone:#203532;--glyph:#087d80;}
:where(:root[data-theme="dark"]) .tone-1{--tone:#2a2037;--glyph:#7652a3;}
:where(:root[data-theme="dark"]) .tone-2{--tone:#1a331b;--glyph:#a16e18;}
:where(:root[data-theme="dark"]) .project-card,:where(:root[data-theme="dark"]) .project-card.active{background:var(--tone);color:#dee5db;}
:where(:root[data-theme="dark"]) .project-card .glyph,:where(:root[data-theme="dark"]) .space-banner .glyph{background:var(--glyph,#286b43);}
:where(:root[data-theme="dark"]) .project-card.active{border-color:var(--glyph);}
:where(:root[data-theme="dark"]) .sidebar-actions button:first-child{background:#286b43;color:white;}
:where(:root[data-theme="dark"]) .bottom{color:#c3d0bd;}
:where(:root[data-theme="dark"]) .split{background:#243524;}
:where(:root[data-theme="dark"]) .split:after{background:#283b29;}
:where(:root[data-theme="dark"]) .split:hover,:where(:root[data-theme="dark"]) .split:focus-visible{background:#3d5a3f;outline:none;}
:where(:root[data-theme="dark"]) .listing{background:#1d2b1e;border:0;}
:where(:root[data-theme="dark"]) .listhead{background:#1d2b1e;border:0;}
:where(:root[data-theme="dark"]) .space-banner{background:var(--tone,#1f3420);border-radius:17px;}
:where(:root[data-theme="dark"]) .space-banner small{color:#c8d4c2;}
:where(:root[data-theme="dark"]) .listhead nav button{background:#213022;color:#ced9c9;}
:where(:root[data-theme="dark"]) .listhead input{background:#1a261a;border-color:#354e36;border-radius:12px;}
:where(:root[data-theme="dark"]) .item{border:1px solid #344c35;border-radius:15px;background:#1a261a;}
:where(:root[data-theme="dark"]) .item.active{background:#1f3420;border-color:#3b573c;}
:where(:root[data-theme="dark"]) .item .glyph{background:#203420;color:#cfdaca;}
:where(:root[data-theme="dark"]) .item .glyph.folder{background:#1c361d;color:#d5c8aa;}
:where(:root[data-theme="dark"]) .item .glyph.image{background:#213031;color:#a2e2e4;}
:where(:root[data-theme="dark"]) .item span:first-child{color:inherit;}
:where(:root[data-theme="dark"]) .item .glyph.folder{color:#d5c8aa;}
:where(:root[data-theme="dark"]) .item .glyph.note{color:#cfdaca;}
:where(:root[data-theme="dark"]) article{background:#1a261a;}
:where(:root[data-theme="dark"]) article h1{color:#dfe6db;}
:where(:root[data-theme="dark"]) .detail-top{color:#cfdaca;}
:where(:root[data-theme="dark"]) .detail-top .glyph{background:#203420;color:#cfdaca;}
:where(:root[data-theme="dark"]) .body{border-top:1px solid var(--line);}
:where(:root[data-theme="dark"]) .welcome{color:#c1cfbb;}
:where(:root[data-theme="dark"]) .welcome .glyph{background:#213022;color:#c5d1bf;border-radius:22px;}
:where(:root[data-theme="dark"]) .welcome h2{color:#d8e0d4;}
:where(:root[data-theme="dark"]) .primary{background:#286b43;}
:where(:root[data-theme="dark"]) .primary:hover:not(:disabled){background:#205636;}
:where(:root[data-theme="dark"]) .muted{color:#c3d0bc;}
:where(:root[data-theme="dark"]) dialog{border:0;box-shadow:0 20px 70px #060b0933;border-radius:24px;}
:where(:root[data-theme="dark"]) dialog::backdrop{background:#25352766;}
:where(:root[data-theme="dark"]) .nav-action{background:transparent;border:0;}
:where(:root[data-theme="dark"]) .nav-action.active{background:#233424;color:#cfdaca;}
:where(:root[data-theme="dark"]) select,:where(:root[data-theme="dark"]) textarea{color:inherit;border:1px solid #364f37;border-radius:10px;background:#1a261a;}
:where(:root[data-theme="dark"]) .more{border:0;background:transparent;}
:where(:root[data-theme="dark"]) .context-menu{background:#1a261a;border:1px solid var(--line);border-radius:14px;box-shadow:0 8px 30px #060b0933;}
:where(:root[data-theme="dark"]) .context-menu button{border:0;}
:where(:root[data-theme="dark"]) .primary{color:white;}
:where(:root[data-theme="dark"]) .member-face{border-radius:50%;background:#1a261a99;color:#d2dcce;}
:where(:root[data-theme="dark"]) .tool.connected{color:#cfdaca;background:#1f3420;}
:where(:root[data-theme="dark"]) .history-row{border-bottom:1px solid #344d35;}
:where(:root[data-theme="dark"]) .history-row small{color:#ccd7c7;}
:where(:root[data-theme="dark"]) .profile-avatar{border-radius:50%;}
:where(:root[data-theme="dark"]) .account-error{color:#ddb5b9;}
:where(:root[data-theme="dark"]) .avatar-grid button{border:0;background:transparent;}
:where(:root[data-theme="dark"]) .avatar-grid img{border-radius:50%;}
:where(:root[data-theme="dark"]) .invite-qr{background:#1a261a;}
:where(:root[data-theme="dark"]) .invite-video{background:#111;border-radius:12px;}
:root:where([data-theme="dark"]){--accent:#286b43;--surface:#1a261a;--surface-soft:#1d2a1d;--ink:#dfe6db;--muted:#c8d4c2;color:var(--ink);background:var(--surface-soft);}
:where(:root[data-theme="dark"]) header{background:#1a261a;box-shadow:0 1px 4px #060b0910;}
:where(:root[data-theme="dark"]) .brand small{background:#202f21;color:#ced9c9;border-radius:6px;}
:where(:root[data-theme="dark"]) .tool{border:1px solid transparent;border-radius:11px;color:#cfdaca;}
:where(:root[data-theme="dark"]) #account{border:1px solid #344d35;}
:where(:root[data-theme="dark"]) #account.connected{background:#1f3220;border-color:#375138;}
:where(:root[data-theme="dark"]) #status{background:#1e2c1f;border-radius:9px;color:#cdd8c7;}
:where(:root[data-theme="dark"]) main{background:#1f2e20;}
:where(:root[data-theme="dark"]) aside{background:#1d2b1e;}
:where(:root[data-theme="dark"]) .section{color:#c8d4c3;}
:where(:root[data-theme="dark"]) .space{border-radius:13px;}
:where(:root[data-theme="dark"]) .glyph{border-radius:11px;}
:where(:root[data-theme="dark"]) .nav-action{border-radius:10px;}
:where(:root[data-theme="dark"]) .nav-action svg{color:#c9d5c4;}
:where(:root[data-theme="dark"]) .split{background:#253625;}
:where(:root[data-theme="dark"]) .split:after{background:transparent;}
:where(:root[data-theme="dark"]) .split:hover,:where(:root[data-theme="dark"]) .split:focus-visible{background:#3d5a3e;}
:where(:root[data-theme="dark"]) .listing{background:#1d2a1d;}
:where(:root[data-theme="dark"]) .listhead{background:#1d2a1d;box-shadow:0 5px 8px #060b09;}
:where(:root[data-theme="dark"]) .space-banner{border-radius:14px;}
:where(:root[data-theme="dark"]) .listhead nav button{border-radius:7px;}
:where(:root[data-theme="dark"]) .listhead nav button+button::before{color:#c1cfbb;}
:where(:root[data-theme="dark"]) .listhead input{border-radius:10px;}
:where(:root[data-theme="dark"]) .list-actions button,:where(:root[data-theme="dark"]) .list-actions select{border-radius:9px;}
:where(:root[data-theme="dark"]) .item-row{border:1px solid #344c35;border-radius:13px;background:#1a261a;}
:where(:root[data-theme="dark"]) .item-row:has(.item.active){background:#1f3220;border-color:#3b563c;}
:where(:root[data-theme="dark"]) .item-row .item{border:0;border-radius:12px 0 0 12px;background:transparent;}
:where(:root[data-theme="dark"]) .item-row .item:hover{background:#1d2f1d;}
:where(:root[data-theme="dark"]) .item-row .item.active{background:transparent;}
:where(:root[data-theme="dark"]) .item .glyph{border-radius:10px;}
:where(:root[data-theme="dark"]) .item-row .more{border-radius:8px;color:#cad5c4;}
:where(:root[data-theme="dark"]) .context-menu{border-radius:13px;box-shadow:0 8px 30px #060b092b;}
:where(:root[data-theme="dark"]) .context-menu button{border-radius:8px;background:transparent;}
:where(:root[data-theme="dark"]) .context-menu button:hover:not(:disabled){background:#213021;}
:where(:root[data-theme="dark"]) article{background:#1a261a;}
:where(:root[data-theme="dark"]) .welcome .glyph{border-radius:18px;}
:where(:root[data-theme="dark"]) .welcome p{color:#c8d4c2;}
:where(:root[data-theme="dark"]) .note-editor{border-radius:12px;}
:where(:root[data-theme="dark"]) .attachment{background:#1c291c;border-color:#344c35;}
:where(:root[data-theme="dark"]) .muted{color:var(--muted);}
:where(:root[data-theme="dark"]) button{border-radius:10px;border:1px solid #344d35;color:#dae2d6;}
:where(:root[data-theme="dark"]) button:focus-visible,:where(:root[data-theme="dark"]) input:focus-visible,:where(:root[data-theme="dark"]) textarea:focus-visible,:where(:root[data-theme="dark"]) select:focus-visible,:where(:root[data-theme="dark"]) summary:focus-visible{outline:2px solid #59a972;outline-offset:2px;}
:where(:root[data-theme="dark"]) .primary,:where(:root[data-theme="dark"]) .sidebar-actions button:first-child{background:var(--accent);color:#fff;border-color:var(--accent);}
:where(:root[data-theme="dark"]) .primary:hover:not(:disabled),:where(:root[data-theme="dark"]) .sidebar-actions button:first-child:hover:not(:disabled){background:#205636;color:#fff;}
:where(:root[data-theme="dark"]) input,:where(:root[data-theme="dark"]) select,:where(:root[data-theme="dark"]) textarea{border-color:#364f37;border-radius:10px;color:var(--ink);}
:where(:root[data-theme="dark"]) input::file-selector-button{border:0;background:#213021;color:#cfdaca;border-radius:7px;}
:where(:root[data-theme="dark"]) dialog{border:1px solid #344c35;border-radius:20px;background:#1a261a;color:var(--ink);box-shadow:0 18px 70px #060b0940;}
:where(:root[data-theme="dark"]) dialog::backdrop{background:#1b302b70;}
:where(:root[data-theme="dark"]) dialog h3{color:#d3ddcf;}
:where(:root[data-theme="dark"]) dialog label{color:#d0dacc;}
:where(:root[data-theme="dark"]) #manageContent h3{border-top:1px solid var(--line);}
:where(:root[data-theme="dark"]) .history-row,:where(:root[data-theme="dark"]) #manageContent .history-row{background:#1c291d;border:1px solid #344c35;border-radius:12px;}
:where(:root[data-theme="dark"]) .history-row small{color:#c7d3c1;}
:where(:root[data-theme="dark"]) #manageContent details{border:1px solid var(--line);border-radius:12px;background:#1c291d;}
:where(:root[data-theme="dark"]) #manageContent details summary{color:#d3ddcf;}
:where(:root[data-theme="dark"]) .avatar-grid button{border:1px solid #344c35;border-radius:12px;background:#1c291d;}
:where(:root[data-theme="dark"]) .avatar-grid button:hover{border-color:#3c573d;background:#1f3320;}
:where(:root[data-theme="dark"]) .invite-qr{border:1px solid var(--line);border-radius:12px;}
:where(:root[data-theme="dark"]) .account-error,:where(:root[data-theme="dark"]) #error{color:#dab7b9;background:#311a19;border-radius:8px;}
@media (max-width:700px){:where(:root[data-theme="dark"]) .listhead{box-shadow:none;}}
:where(:root[data-theme="dark"]) .item-row:has(.item.active){background:#213122;border-color:#93b99c;box-shadow:inset 3px 0 #060b09;}
:where(:root[data-theme="dark"]) .split{background:#1f2e20;}
:where(:root[data-theme="dark"]) .split:hover,:where(:root[data-theme="dark"]) .split:focus-visible{background:#3d5a3e;}
:where(:root[data-theme="dark"]) #crumbs button+button:before{color:#c7d3c1;}
:where(:root[data-theme="dark"]) dialog.nt-dialog{border-radius:18px;border:1px solid #344d35;color:#dfe6db;}
:where(:root[data-theme="dark"]) dialog.nt-dialog .nt-dialog-message{color:#d3ddce;}
:where(:root[data-theme="dark"]) dialog.nt-dialog .nt-danger{background:#a63b36;border-color:#c45b56;color:white;}
:where(:root[data-theme="dark"]) dialog.nt-dialog .nt-danger:hover{background:#89302c;}
:where(:root[data-theme="dark"]) dialog.nt-dialog :focus-visible{outline:2px solid #39985f;outline-offset:3px;}
:where(:root[data-theme="dark"]) #detail .editor-label{color:#cdd8c7;}
:where(:root[data-theme="dark"]) #detail .editor-title{border:1px solid #344d35;border-radius:10px;}
:where(:root[data-theme="dark"]) .context-menu button:focus-visible{outline:2px solid #39985f;outline-offset:-3px;}
:root:where([data-theme="dark"]){--accent:#386b27;--ink:#dee5db;--muted:#c8d4c3;color:var(--ink);background:#203b22;}
:where(:root[data-theme="dark"]) body{background:#203b22;}
:where(:root[data-theme="dark"]) header{background:#17351e url("/forest-header-night.webp") no-repeat 38% center;background-size:auto 100%;border:0;color:#fff;}
:where(:root[data-theme="dark"]) .brand{color:#fff;text-shadow:0 1px 2px #060b09;}
:where(:root[data-theme="dark"]) .brand small{color:#fff;border:1px solid #3b573c;border-radius:13px;}
:where(:root[data-theme="dark"]) .tool,:where(:root[data-theme="dark"]) #account{color:#f4faef;background:transparent;border:0;}
:where(:root[data-theme="dark"]) .tool:hover:not(:disabled),:where(:root[data-theme="dark"]) #account:hover:not(:disabled){background:#1a261a24;color:white;}
:where(:root[data-theme="dark"]) #status{color:#e7efdc;background:#183d26d9;border-radius:18px;}
:where(:root[data-theme="dark"]) main,:where(:root[data-theme="dark"]) main:not(.focus-mode){background:#1e311f;border-radius:0 0 15px 15px;}
:where(:root[data-theme="dark"]) main:after{background:url("/forest-footer-night.webp") center bottom/100% 100% no-repeat;}
:where(:root[data-theme="dark"]) .forest-rail{background:#203e26 url("/forest-rail-night.webp") center bottom 60px/100% auto no-repeat;color:white;border-radius:0;}
:where(:root[data-theme="dark"]) .forest-rail button{background:transparent;border:0;border-radius:12px;color:#f6f6e9;}
:where(:root[data-theme="dark"]) .forest-rail button:first-child,:where(:root[data-theme="dark"]) .forest-rail button:hover{background:#53783d;color:#fff;}
:where(:root[data-theme="dark"]) .rail-bottom{color:#d4e1c4;}
:where(:root[data-theme="dark"]) .tree-panel,:where(:root[data-theme="dark"]) #detail,:where(:root[data-theme="dark"]) #inspector{background:#182f19;border:1px solid #354e36;border-radius:15px;box-shadow:0 2px 6px #060b0908;}
:where(:root[data-theme="dark"]) .tree-panel aside{border:0;background:transparent;}
:where(:root[data-theme="dark"]) .tree-panel .section{color:#c8d4c2;}
:where(:root[data-theme="dark"]) .tree-panel .space{border-radius:9px;}
:where(:root[data-theme="dark"]) .tree-panel .space .glyph{border-radius:7px;}
:where(:root[data-theme="dark"]) .tree-panel #personal{background:transparent;border:0;}
:where(:root[data-theme="dark"]) .tree-panel #personal .glyph{background:#376329;}
:where(:root[data-theme="dark"]) .tree-panel .listing{background:transparent;border:0;}
:where(:root[data-theme="dark"]) .tree-panel .listhead{background:transparent;border-top:1px solid var(--line);box-shadow:none;}
:where(:root[data-theme="dark"]) .tree-panel .space-banner{background:transparent!important;border-radius:0;}
:where(:root[data-theme="dark"]) .tree-panel .space-banner .glyph{border-radius:6px;}
:where(:root[data-theme="dark"]) .tree-panel #crumbs button{background:transparent;}
:where(:root[data-theme="dark"]) .tree-panel #search{background:#162c17;border:1px solid #354e36;border-radius:8px;}
:where(:root[data-theme="dark"]) .tree-row.item-row{border:0;background:transparent;box-shadow:none;border-radius:7px;}
:where(:root[data-theme="dark"]) .tree-row.item-row:has(.item.active){background:#223623;box-shadow:none;}
:where(:root[data-theme="dark"]) .tree-row .item{border-radius:6px;}
:where(:root[data-theme="dark"]) .tree-row .item .glyph{border-radius:4px;background:transparent;color:#cdd8c8;}
:where(:root[data-theme="dark"]) .tree-row .item .glyph.folder{color:#c7d3c1;background:transparent;}
:where(:root[data-theme="dark"]) .tree-toggle{background:transparent;border:0;color:#cfdaca;}
:where(:root[data-theme="dark"]) .split{background:transparent;}
:where(:root[data-theme="dark"]) .split:after{background:transparent;}
:where(:root[data-theme="dark"]) .split:hover{background:#314832;}
:where(:root[data-theme="dark"]) .split:focus-visible{background:#314832;}
:where(:root[data-theme="dark"]) #detail{background:linear-gradient(120deg,#162c17,#182f19);color:#e1e7dd;}
:where(:root[data-theme="dark"]) #detail .note-path{color:#c8d4c2;border-bottom:1px solid var(--line);}
:where(:root[data-theme="dark"]) #detail .detail-top{color:#cfd9ca;}
:where(:root[data-theme="dark"]) #detail .detail-top .glyph{background:#213421;color:#cfd9ca;}
:where(:root[data-theme="dark"]) #detail h1{color:#e1e8de;}
:where(:root[data-theme="dark"]) #detail .body{border-color:#354e36;color:#e0e6dc;}
:where(:root[data-theme="dark"]) #detail .attachment{background:#1d301e;border:1px solid #354e36;border-radius:10px;}
:where(:root[data-theme="dark"]) #detail .media{border-radius:10px;}
:where(:root[data-theme="dark"]) .primary,:where(:root[data-theme="dark"]) .sidebar-actions button:first-child{background:linear-gradient(180deg,#518435,#315a25);border:1px solid #559140;color:#fff;box-shadow:0 2px 3px #060b0920;}
:where(:root[data-theme="dark"]) .primary:hover:not(:disabled){background:#315a25;}
:where(:root[data-theme="dark"]) #inspector{background:#1b2f1c;}
:where(:root[data-theme="dark"]) .inspector-tabs{background:#1b2f1c;border-bottom:1px solid #354e36;}
:where(:root[data-theme="dark"]) .inspector-tabs button{background:transparent;border:0;border-bottom:2px solid transparent;border-radius:0;color:#dbe3d8;}
:where(:root[data-theme="dark"]) .inspector-tabs button.active{border-bottom-color:#5b993e;color:#ced8c8;}
:where(:root[data-theme="dark"]) .inspector-card{background:#172e18;border:1px solid #354d36;border-radius:12px;}
:where(:root[data-theme="dark"]) .inspector-card h3{color:#dae2d7;}
:where(:root[data-theme="dark"]) .inspector-card button{background:#182f19;}
:where(:root[data-theme="dark"]) .info-row{border-bottom:1px solid #344c35;}
:where(:root[data-theme="dark"]) .info-row:last-child{border:0;}
:where(:root[data-theme="dark"]) .info-row span{color:#cad5c4;}
:where(:root[data-theme="dark"]) .welcome .glyph{background:#233323;color:#cad6c5;}
:where(:root[data-theme="dark"]) dialog{background:#162c17;border-color:#354e36;}
:where(:root[data-theme="dark"]) .context-menu{background:#162c17;}
@media (max-width:760px){:where(:root[data-theme="dark"]) .forest-rail{background:#203e26;}}
:where(:root[data-theme="dark"]) .quick-create{border-top:1px solid var(--line);}
:where(:root[data-theme="dark"]) .quick-create h3{color:#d3dcce;}
:where(:root[data-theme="dark"]) .quick-create button{background:#182f19;border-color:#354e36;}
:where(:root[data-theme="dark"]) .quick-create svg{color:#cdd8c8;}
:where(:root[data-theme="dark"]) #globalSearch{background:#183019;color:#dce4d9;border-radius:12px;}
:where(:root[data-theme="dark"]) #globalSearch:hover:not(:disabled){background:#162c17;color:#dce4d9;}
@media (min-width:761px){:where(:root[data-theme="dark"]) header{background-image:linear-gradient(90deg,#17351e 0%,#17351e00 24%,#17351e00 57%,#17351e 83%),url("/forest-header-night.webp");background-size:100% 100%,68% auto;background-position:center,center 45%;}
:where(:root[data-theme="dark"]) main,:where(:root[data-theme="dark"]) main:not(.focus-mode){background:#233424;}
:where(:root[data-theme="dark"]) main:after{background-size:100% 100%;}
:where(:root[data-theme="dark"]) #detail,:where(:root[data-theme="dark"]) #inspector,:where(:root[data-theme="dark"]) .tree-panel{border-radius:17px;background-color:#182f19;}}
:where(:root[data-theme="dark"]) #globalSearch{border:1px solid #344d35;box-shadow:0 2px 8px #060b0933;}
:where(:root[data-theme="dark"]) #status{background:transparent;}
:where(:root[data-theme="dark"]) #account,:where(:root[data-theme="dark"]) #account.connected{background:transparent;border:0;color:#fff;}
:where(:root[data-theme="dark"]) #account.has-avatar img{border:2px solid #354e36;border-radius:50%;}
:where(:root[data-theme="dark"]) .forest-rail button.active{background:linear-gradient(135deg,#628342,#365d2b);box-shadow:inset 0 0 0 1px #060b0955;}
:where(:root[data-theme="dark"]) .space-tools{color:#cdd8c8;}
:where(:root[data-theme="dark"]) .tree-row .item-copy strong{color:#e0e7dd;}
:where(:root[data-theme="dark"]) .tree-row.item-row:has(.item.active){background:#233924;box-shadow:inset 2px 0 #060b09;}
:where(:root[data-theme="dark"]) .folder-toolbar{border-bottom:1px solid var(--line);}
:where(:root[data-theme="dark"]) .folder-entry{border-bottom:1px solid #354d36;}
:where(:root[data-theme="dark"]) .folder-entry-open{border:0;background:transparent;}
:where(:root[data-theme="dark"]) .folder-entry-open>svg{color:#c1ceba;}
:where(:root[data-theme="dark"]) .folder-entry .more{border:0;background:transparent;}
:where(:root[data-theme="dark"]) .folder-entry .glyph{background:#203421;color:#ced9c9;}
:where(:root[data-theme="dark"]) .inspector-card{background:#183019;border-color:#354e36;box-shadow:0 2px 5px #060b0910;}
:where(:root[data-theme="dark"]) .info-row svg{color:#cad6c5;}
:where(:root[data-theme="dark"]) #detail h1{color:#e3e9e0;}
:where(:root[data-theme="dark"]) .note-path{color:#cbd7c6!important;}
:where(:root[data-theme="dark"]) .forest-rail button:first-child:not(.active):not(:hover){background:transparent;}
:where(:root[data-theme="dark"]) .tree-panel .space.active{outline:1px solid #3c583d;}
:where(:root[data-theme="dark"]) .tree-panel .space-copy small{color:#cdd8c8;}
@media (min-width:1101px){:where(:root[data-theme="dark"]) header{background-size:100% 100%,auto 100%;background-position:center,42% center;}}
:where(:root[data-theme="dark"]) .tree-panel .listhead{border-top:1px solid #354e36;}
:where(:root[data-theme="dark"]) .tree-panel .space-tools summary{color:#ced9c9;}
:where(:root[data-theme="dark"]) .tree-row.item-row:not([data-depth="0"]){background-image:repeating-linear-gradient(to right,transparent 0 7px,#293c2a 7px 8px,transparent 8px 15px);background-size:calc(var(--depth,0)*15px) 100%;background-repeat:no-repeat;}
:where(:root[data-theme="dark"]) .tree-row .item .glyph.folder svg{fill:#d5e4b5;stroke:#ced8c8;}
:where(:root[data-theme="dark"]) .forest-rail button.active{background:linear-gradient(145deg,#779749,#395f2e);border:1px solid #3c583d55;}
:where(:root[data-theme="dark"]) .quick-create button{border:1px solid #354e36;background:linear-gradient(#162c17,#1a331b);box-shadow:0 2px 5px #060b090a;}
:where(:root[data-theme="dark"]) .quick-create h3{color:#dde5da;}
:where(:root[data-theme="dark"]) .inspector-card h3 svg{color:#cfd9ca;}
:where(:root[data-theme="dark"]) .people-count{background:#223622;border-radius:20px;}
:where(:root[data-theme="dark"]) .inspector-person{border-bottom:1px solid #344d35;}
:where(:root[data-theme="dark"]) .inspector-avatar{border-radius:50%;background:#263827;color:#d3dcce;}
:where(:root[data-theme="dark"]) .inspector-card button{border-color:#354e36;}
:where(:root[data-theme="dark"]) .inspector-tabs button.active{background:#2034214a;}
:where(:root[data-theme="dark"]) #detail .attachment{background:transparent;border:0;box-shadow:none;}
:where(:root[data-theme="dark"]) #detail .media{border-radius:10px;box-shadow:0 2px 10px #060b0914;}
:where(:root[data-theme="dark"]) .photo-viewer{background:#18271b;border:1px solid #80986f;color:#fff;border-radius:14px;}
:where(:root[data-theme="dark"]) .photo-viewer::backdrop{background:#101c14e8;}
:where(:root[data-theme="dark"]) .photo-viewer-bar{background:#243b28;}
:where(:root[data-theme="dark"]) .photo-viewer-bar button{background:#38553a;color:white;border:1px solid #839f85;}
:where(:root[data-theme="dark"]) .photo-stage img:focus{outline:0;}
@media (min-width:1101px){:where(:root[data-theme="dark"]) header{background-image:linear-gradient(90deg,#17351e 0%,#17351e 16%,transparent 33%,transparent 52%,#17351e 69%,#17351e 100%),url("/forest-header-night.webp");background-size:100% 100%,54% auto;background-position:center,44% 48%;background-repeat:no-repeat;}}
:where(:root[data-theme="dark"]) .inspector-card{box-shadow:0 2px 8px #060b0909;}
:where(:root[data-theme="dark"]) #detail .note-path{color:#cdd8c8;}
@media (min-width:1101px){:where(:root[data-theme="dark"]) header{background-image:linear-gradient(90deg,#17351e 0%,#17351e 12%,#17351e00 30%,#17351e00 51%,#17351e 74%,#17351e 100%),url("/forest-header-night.webp");background-size:100% 100%,68% auto;background-position:center,44% 48%;}}
:where(:root[data-theme="dark"]) .tree-panel .space-tools summary{border:1px solid #354e36;border-radius:8px;background:#1d321d;color:#d3dcce;}
:where(:root[data-theme="dark"]) .tree-panel .space-tools[open] summary{background:#223623;}
:where(:root[data-theme="dark"]) .tree-panel .listhead{border-top:0;}
:where(:root[data-theme="dark"]) .tree-panel .section{color:#d3ddcf;}
:where(:root[data-theme="dark"]) .tree-row .item-copy strong{color:#e1e8de;}
:where(:root[data-theme="dark"]) .tree-row.item-row:has(.item.active){background-color:#203921;border-radius:8px;}
:where(:root[data-theme="dark"]) .tree-row .item .glyph.folder svg{fill:#c5df9c;stroke:#d1dbcd;}
:where(:root[data-theme="dark"]) .quick-create button{background:linear-gradient(145deg,#172d18,#1e341f);border-radius:13px;}
:where(:root[data-theme="dark"]) .quick-create button:hover{background:#203621;}
:where(:root[data-theme="dark"]) .forest-section-heading{background:linear-gradient(90deg,#203521,#1e311f);border-radius:9px;color:#dfe6dc;}
:where(:root[data-theme="dark"]) .forest-section-heading:after,:where(:root[data-theme="dark"]) .inspector-card h3:after{color:#b4c5ad;}
:where(:root[data-theme="dark"]) .inspector-card{background:linear-gradient(145deg,#172e18,#19321a);border:1px solid #354e36;border-radius:15px;box-shadow:0 3px 10px #060b090c;}
:where(:root[data-theme="dark"]) .inspector-card h3{color:#dfe6db;}
:where(:root[data-theme="dark"]) .info-row{color:#d8e1d4;}
:where(:root[data-theme="dark"]) .favorite-card{border-top:1px solid #354e36;}
:where(:root[data-theme="dark"]) .favorite-card svg{color:#d7c5a6;}
:where(:root[data-theme="dark"]) .favorite-switch{border-radius:20px!important;background:#233323!important;color:#d1dbcc;}
:where(:root[data-theme="dark"]) .favorite-switch[aria-checked=true]{background:#396b2e!important;color:white;border-color:#509640;}
:where(:root[data-theme="dark"]) .member-role{border-radius:6px;background:#243524;}
:where(:root[data-theme="dark"]) .role-owner{background:#1f3c20;color:#d4ded0;}
:where(:root[data-theme="dark"]) .role-editor{background:#1e303c;color:#b5ccda;}
:where(:root[data-theme="dark"]) .role-admin{background:#302239;color:#cdb9d6;}
:where(:root[data-theme="dark"]) .role-contributor{background:#1d3b1f;color:#d9c8af;}
:where(:root[data-theme="dark"]) #detail .body{color:#e1e8de;}
:where(:root[data-theme="dark"]) dialog:not(.photo-viewer){background:#182f19;color:#dde4da;border-color:#364f37;box-shadow:0 16px 60px #060b0950;border-radius:18px;}
:where(:root[data-theme="dark"]) dialog:not(.photo-viewer) input,:where(:root[data-theme="dark"]) dialog:not(.photo-viewer) textarea{background:#162c17;border-color:#354e36;}
:where(:root[data-theme="dark"]) dialog:not(.photo-viewer)::backdrop{background:#172c1db0;}
:where(:root[data-theme="dark"]) #detail textarea{background:#162c17;border-color:#354e36;color:#dee5db;}
:where(:root[data-theme="dark"]) #detail input{background:#162c17;border-color:#354e36;}
:where(:root[data-theme="dark"]) .tree-panel{background:linear-gradient(125deg,#182f19,#1b311c);border-radius:18px;}
:where(:root[data-theme="dark"]) .tree-heading{border-bottom:1px solid #354e36;}
:where(:root[data-theme="dark"]) .tree-space-picker{border:0;background:transparent;color:#e1e7de;}
:where(:root[data-theme="dark"]) .tree-space-picker .glyph{background:#355f29;color:#fff;border-radius:7px;}
:where(:root[data-theme="dark"]) .tree-down{color:#d8e1d4;}
:where(:root[data-theme="dark"]) .tree-heading #treeAdd,:where(:root[data-theme="dark"]) .tree-heading #treeOptions{border:0;color:#d9e1d5;background:#223623;border-radius:50%;}
:where(:root[data-theme="dark"]) .tree-heading #treeOptions{background:transparent;border-radius:7px;}
:where(:root[data-theme="dark"]) .tree-heading button:hover{background:#203521;}
:where(:root[data-theme="dark"]) .tree-tools[open]{background:#1e321e;border-radius:9px;}
:where(:root[data-theme="dark"]) .tree-row.item-row:not([data-depth="0"]){background-image:repeating-linear-gradient(to right,transparent 0 9px,#293d2a 9px 10px,transparent 10px 19px);background-size:calc(var(--depth,0)*19px) 100%;}
:where(:root[data-theme="dark"]) .tree-row .item-copy strong{color:#e2e8df;}
:where(:root[data-theme="dark"]) .tree-row.item-row:has(.item.active){background-color:#213822;box-shadow:none;}
:where(:root[data-theme="dark"]) .tree-row .item .glyph.folder svg{fill:#c9dfa1;stroke:#c9d5c4;}
:where(:root[data-theme="dark"]) .tree-panel .quick-create{border-top:1px solid #354e36;}
:where(:root[data-theme="dark"]) .quick-create h3{color:#dfe6db;}
:where(:root[data-theme="dark"]) .quick-create h3:before{color:#ced9c9;}
:where(:root[data-theme="dark"]) .quick-create button{border-radius:12px;background:linear-gradient(#182f19,#1b321c);box-shadow:none;}
@media (min-width:1101px){:where(:root[data-theme="dark"]) header{background-size:100% 100%,auto 100%;background-position:center,43% center;background-image:linear-gradient(90deg,#17351e 0%,#17351e 12%,#17351e00 30%,#17351e00 51%,#17351e 78%),url("/forest-header-night.webp");}}
:where(:root[data-theme="dark"]) .tree-row.item-row{border-radius:8px;}
:where(:root[data-theme="dark"]) .tree-row.item-row:hover{background-color:#203521;}
:where(:root[data-theme="dark"]) .tree-row.item-row:has(.item.active){background-color:#213a22;}
:where(:root[data-theme="dark"]) .tree-toggle{color:#cfdacb;}
:where(:root[data-theme="dark"]) .quick-create button{color:#dee5db;}
:where(:root[data-theme="dark"]) .quick-create button:hover{border-color:#3c583d;background:#203420;}
:where(:root[data-theme="dark"]) .folder-entry:hover{background:#213122;border-radius:8px;}
:where(:root[data-theme="dark"]) .inspector-card h3:after{color:#b1c2a9;}
:where(:root[data-theme="dark"]) .tree-panel button:focus-visible,:where(:root[data-theme="dark"]) #detail button:focus-visible,:where(:root[data-theme="dark"]) #inspector button:focus-visible{outline:2px solid #85b25c;outline-offset:2px;}
@media (min-width:1101px){:where(:root[data-theme="dark"]) header{background-image:linear-gradient(90deg,#17351e 0%,#17351e 14%,#17351e00 35%,#17351e00 59%,#17351e 88%),url("/forest-header-night.webp");background-size:100% 100%,68% auto;background-position:center,48% 48%;background-repeat:no-repeat;}
:where(:root[data-theme="dark"]) .tree-panel{border:1px solid #354e36;}
:where(:root[data-theme="dark"]) #detail{border:1px solid #354d36;}
:where(:root[data-theme="dark"]) #inspector{border:1px solid #354e36;}}
:where(:root[data-theme="dark"]) .space-state>.glyph{background:#213622;color:#cdd8c8;border-radius:16px;}
:where(:root[data-theme="dark"]) .space-loading{color:#cbd6c5;}
:where(:root[data-theme="dark"]) .space-loading:before{border:2px solid #354e36;border-top-color:#6f9951;border-radius:50%;}
:where(:root[data-theme="dark"]) .tree-heading{border-bottom-color:#364f37;}
:where(:root[data-theme="dark"]) .quick-create button{border:1px solid #354e36;}
:where(:root[data-theme="dark"]) .inspector-card{box-shadow:0 2px 6px #060b0909;}
:where(:root[data-theme="dark"]) .inspector-card h3:before{background: center/contain no-repeat url("/forest-sprig.svg");}
:where(:root[data-theme="dark"]) .folder-entry .glyph{background:#213622;}
:where(:root[data-theme="dark"]) #detail{background:linear-gradient(120deg,#162c17,#182f19 82%);}
:where(:root[data-theme="dark"]) #detail .note-path{color:#cfd9ca!important;border-bottom:1px solid #354e36;}
:where(:root[data-theme="dark"]) #detail .note-path:before{background:#52763d;}
:where(:root[data-theme="dark"]) #detail h1{color:#e3e9e0;}
:where(:root[data-theme="dark"]) .detail-top .primary{border-radius:11px;}
:where(:root[data-theme="dark"]) .note-meta{color:#c9d5c4;}
:where(:root[data-theme="dark"]) .note-meta svg{color:#c7d3c2;}
:where(:root[data-theme="dark"]) #detail .forest-section-heading{background:linear-gradient(90deg,#1d331e,#223622 70%,#1b341c);border-radius:9px;color:#dee5db;}
:where(:root[data-theme="dark"]) .forest-section-heading svg{color:#cdd8c8;}
:where(:root[data-theme="dark"]) .attachment-count{background:#253d26;border-radius:50%;}
:where(:root[data-theme="dark"]) .folder-toolbar button{border-radius:9px;}
:where(:root[data-theme="dark"]) .folder-entry{border-bottom:1px solid #344d35;}
:where(:root[data-theme="dark"]) .folder-entry .glyph{border:1px solid #354d36;border-radius:10px;}
:where(:root[data-theme="dark"]) .folder-entry:hover{background:#1e321e;}
:where(:root[data-theme="dark"]) #inspector .inspector-tabs{background:#183019;}
:where(:root[data-theme="dark"]) .inspector-tabs button+button{border-left:1px solid #354d36;}
:where(:root[data-theme="dark"]) .inspector-tabs button.active{background:linear-gradient(#1b311c,#183019);}
:where(:root[data-theme="dark"]) #inspector .inspector-card{background:linear-gradient(125deg,#162c17,#19321a);border-radius:15px;}
:root:where([data-theme="dark"]){--accent:#3c702c;--ink:#e0e7dd;--muted:#c9d4c3;}
:where(:root[data-theme="dark"]) header{background-color:#19391f;color:#fff;}
:where(:root[data-theme="dark"]) .brand small{background:#1a261a12;color:#fff;border-color:#3c583d;}
:where(:root[data-theme="dark"]) .tool,:where(:root[data-theme="dark"]) #account{border-radius:10px;}
:where(:root[data-theme="dark"]) .tool:focus-visible,:where(:root[data-theme="dark"]) #account:focus-visible{outline-color:#354d36;}
@media (min-width:761px){:where(:root[data-theme="dark"]) header{background-image:linear-gradient(90deg,#19391f 0%,#19391f 15%,transparent 31%,transparent 54%,#19391f 82%),url("/forest-header-night.webp");background-position:center,43% center;background-size:100% 100%,auto 100%;}
:where(:root[data-theme="dark"]) main:not(.focus-mode){background:#233424;}
:where(:root[data-theme="dark"]) .tree-panel,:where(:root[data-theme="dark"]) #detail,:where(:root[data-theme="dark"]) #inspector{border:1px solid #364f37;border-radius:17px;box-shadow:0 2px 7px #060b0910;}
:where(:root[data-theme="dark"]) main:after{background-size:100% 100%;}}
:where(:root[data-theme="dark"]) .tree-space-picker{color:#e4eae1;}
:where(:root[data-theme="dark"]) .tree-row .glyph svg{stroke:#cfdaca;}
:where(:root[data-theme="dark"]) .tree-row .more{border-radius:6px;}
:where(:root[data-theme="dark"]) .quick-create h3{color:#dee5db;}
:where(:root[data-theme="dark"]) .quick-create button{background:linear-gradient(150deg,#162c17,#1e321f);box-shadow:0 2px 4px #060b090a;}
:where(:root[data-theme="dark"]) .quick-create button svg{color:#d0dbcc;}
:where(:root[data-theme="dark"]) .quick-create button:hover{background:#1f3720;}
:where(:root[data-theme="dark"]) .note-path button{background:transparent;border:0;color:#d1dbcc;}
:where(:root[data-theme="dark"]) .note-path button:hover{background:#233324;color:#d9e1d5;}
:where(:root[data-theme="dark"]) .note-path button:first-child svg{color:#ced8c9;}
:where(:root[data-theme="dark"]) .note-star,:where(:root[data-theme="dark"]) .note-more{border:0;background:transparent;color:#cdd8c7;}
:where(:root[data-theme="dark"]) .note-star.starred{color:#dac6a3;}
:where(:root[data-theme="dark"]) .note-star.starred svg{fill:#d6c190;}
:where(:root[data-theme="dark"]) .note-meta{color:#c9d4c3;}
:where(:root[data-theme="dark"]) .forest-section-heading{background:linear-gradient(90deg,#1f3620,#1e311f);border-radius:8px;color:#dee5da;}
:where(:root[data-theme="dark"]) .folder-entry{border-radius:8px;}
:where(:root[data-theme="dark"]) .folder-entry-open{color:#dce4d8;}
:where(:root[data-theme="dark"]) .folder-entry:hover{background:#1f3420;}
:where(:root[data-theme="dark"]) .folder-toolbar .primary,:where(:root[data-theme="dark"]) .detail-top .primary,:where(:root[data-theme="dark"]) .primary{background:linear-gradient(#4a7e35,#315b24);border-color:#56943d;color:#fff;}
:where(:root[data-theme="dark"]) .primary:hover:not(:disabled){background:#315b24;color:white;}
:where(:root[data-theme="dark"]) #inspector .inspector-tabs{border-bottom:1px solid #354e36;}
:where(:root[data-theme="dark"]) .inspector-tabs button{color:#d5ded1;}
:where(:root[data-theme="dark"]) .inspector-tabs button.active{color:#d1dbcc;border-bottom:2px solid #63a340;}
:where(:root[data-theme="dark"]) .inspector-card h3{color:#dee5da;}
:where(:root[data-theme="dark"]) .info-row{border-bottom:1px solid #344d35;}
:where(:root[data-theme="dark"]) .info-row:last-child{border-bottom:0;}
:where(:root[data-theme="dark"]) .member-role{border-radius:6px;}
:where(:root[data-theme="dark"]) .role-owner{background:#1e3d20;color:#d3ddcf;}
:where(:root[data-theme="dark"]) .role-admin{background:#32223c;color:#cabad7;}
:where(:root[data-theme="dark"]) .role-editor{background:#1e2f3b;color:#b8c9da;}
:where(:root[data-theme="dark"]) .role-contributor{background:#1d391e;color:#d9cab1;}
:where(:root[data-theme="dark"]) .role-reader{background:#253625;color:#d3ddce;}
:where(:root[data-theme="dark"]) dialog:not(.photo-viewer){background:linear-gradient(135deg,#162c17,#1c331d);border:1px solid #364f37;border-radius:19px;box-shadow:0 20px 80px #060b0950;color:#dee5db;}
:where(:root[data-theme="dark"]) dialog:not(.photo-viewer) h2{color:#dae2d7;}
:where(:root[data-theme="dark"]) dialog::backdrop{background:#142b20a0;}
:where(:root[data-theme="dark"]) dialog input,:where(:root[data-theme="dark"]) dialog select,:where(:root[data-theme="dark"]) dialog textarea,:where(:root[data-theme="dark"]) #detail input,:where(:root[data-theme="dark"]) #detail textarea{background:#162c17;border:1px solid #364f37;border-radius:9px;color:#dfe6db;}
:where(:root[data-theme="dark"]) dialog button:not(.primary):not(.nt-danger),:where(:root[data-theme="dark"]) .context-menu button{background:#183019;border-color:#354e36;color:#dce3d8;}
:where(:root[data-theme="dark"]) dialog button:hover:not(.primary):not(.nt-danger),:where(:root[data-theme="dark"]) .context-menu button:hover{background:#203521;}
:where(:root[data-theme="dark"]) .context-menu{background:#162c17;border:1px solid #364f37;box-shadow:0 10px 28px #060b0926;border-radius:12px;}
:where(:root[data-theme="dark"]) .context-menu button{border:0;}
:where(:root[data-theme="dark"]) .nt-danger{background:#a43c35!important;color:#fff!important;}
:where(:root[data-theme="dark"]) .photo-viewer::backdrop{background:#111b13e8;}
@media (min-width:761px){:where(:root[data-theme="dark"]) header{background-image:url("/forest-header-night.webp");background-size:cover;background-position:center center;}}
:root:where([data-theme="dark"]){--ink:#e1e8de;--muted:#cbd6c6;--accent:#3e702c;}
:where(:root[data-theme="dark"]) body{color:var(--ink);background:#243525;}
:where(:root[data-theme="dark"]) header{background:#17391f url("/forest-header-night.webp") center/100% 100% no-repeat!important;}
:where(:root[data-theme="dark"]) .tool:hover:not(:disabled){background:#1a261a20;}
@media (min-width:761px){:where(:root[data-theme="dark"]) main:not(.focus-mode){background:linear-gradient(#223222,#233424);}
:where(:root[data-theme="dark"]) main:after{background:url("/forest-footer-night.webp") center bottom/100% 100% no-repeat;}
:where(:root[data-theme="dark"]) .tree-panel,:where(:root[data-theme="dark"]) #detail,:where(:root[data-theme="dark"]) #inspector{border-radius:17px;background:linear-gradient(145deg,#162c17,#19311a);box-shadow:0 2px 8px #060b090d;}}
:where(:root[data-theme="dark"]) .tree-space-picker .glyph{border-radius:9px;}
:where(:root[data-theme="dark"]) .tree-down{color:#cfd9ca;}
:where(:root[data-theme="dark"]) .tree-row.item-row{border-radius:8px;}
:where(:root[data-theme="dark"]) .tree-row .item-copy strong{color:#e1e8de;}
:where(:root[data-theme="dark"]) .tree-row:has(.item.active){background:#203b21!important;}
:where(:root[data-theme="dark"]) .tree-row:has(.item.active) .item-copy strong{color:#dee5da;}
:where(:root[data-theme="dark"]) .quick-create{background:transparent;}
:where(:root[data-theme="dark"]) .quick-create button{border-radius:13px;box-shadow:0 1px 2px #060b090c;}
:where(:root[data-theme="dark"]) .note-reading{color:#e1e7de;}
:where(:root[data-theme="dark"]) .forest-section-heading{background:linear-gradient(90deg,#1f3620,#223823 70%,#1a331b)!important;}
:where(:root[data-theme="dark"]) .forest-section-heading:after{background:url("/forest-sprig.svg") center/contain no-repeat;}
:where(:root[data-theme="dark"]) .note-gallery .media{border-radius:11px;box-shadow:0 2px 8px #060b0916;}
:where(:root[data-theme="dark"]) .folder-entry{border-bottom:1px solid #354d36;}
:where(:root[data-theme="dark"]) .folder-entry-copy strong{color:#dfe6dc;}
:where(:root[data-theme="dark"]) .folder-entry-copy small{color:#c9d5c3;}
:where(:root[data-theme="dark"]) .folder-entry .glyph{background:#1f3720;border:1px solid #354e36;}
:where(:root[data-theme="dark"]) .entry-star{color:#d7c59f;}
:where(:root[data-theme="dark"]) .entry-pin{color:#c6d3c0;}
:where(:root[data-theme="dark"]) #inspector .inspector-tabs{background:#183019;border-bottom:1px solid #364f37;}
:where(:root[data-theme="dark"]) .inspector-tabs button.active{background:linear-gradient(#1d321e,#182f19);}
:where(:root[data-theme="dark"]) #inspector .inspector-card{border-radius:15px;background:linear-gradient(130deg,#162c17,#19321a);border:1px solid #354e36;}
:where(:root[data-theme="dark"]) .info-row strong{color:#dee5db;}
:where(:root[data-theme="dark"]) .favorite-card{border-top:1px solid #354e36;}
:where(:root[data-theme="dark"]) .space-picker-dialog .space{border-radius:12px;}
:where(:root[data-theme="dark"]) button:focus-visible{outline:2px solid #92b269;outline-offset:2px;}
@media (max-width:760px){:where(:root[data-theme="dark"]) header{background-size:auto 100%!important;}}
:where(:root[data-theme="dark"]) #globalSearch:before{border:1px solid #364f37;border-radius:5px;color:#ced9c9;}
:where(:root[data-theme="dark"]) .reading-heading{border-radius:9px;background:linear-gradient(90deg,#203821,#1c321d);}
:where(:root[data-theme="dark"]) .reading-heading:after{background:url("/forest-sprig.svg") center/contain no-repeat;}
:where(:root[data-theme="dark"]) .reading-mark{color:#cad5c4;}
:where(:root[data-theme="dark"]) .format-toolbar{background:#223122;border:1px solid #354e36;border-radius:10px;}
:where(:root[data-theme="dark"]) .format-toolbar button{background:#172e18;border-color:#364f37;}
:where(:root[data-theme="dark"]) .editor-preview{border:1px solid #354e36;border-radius:12px;background:#162c17;}
:where(:root[data-theme="dark"]) .workspace-search{border-radius:19px;}
:where(:root[data-theme="dark"]) .search-result{border:0;border-bottom:1px solid #354e36;background:transparent;border-radius:8px;}
:where(:root[data-theme="dark"]) .search-result:hover{background:#203521;}
:where(:root[data-theme="dark"]) .search-copy small{color:#c8d4c2;}
:where(:root[data-theme="dark"]) .folder-entry:hover{background:#223122;}
:where(:root[data-theme="dark"]) .forest-rail button:focus-visible{outline-color:#354e36;}
:where(:root[data-theme="dark"]) .history-row{border:1px solid #354e36;border-left:4px solid #a7b98f;border-radius:10px;background:linear-gradient(120deg,#162c17,#1d301e);}
:where(:root[data-theme="dark"]) .history-row small{color:#c9d5c4;}
:where(:root[data-theme="dark"]) #inspector .favorite-card .favorite-switch{border:1px solid #3a553b;border-radius:20px;background:#324933!important;box-shadow:none;}
:where(:root[data-theme="dark"]) #inspector .favorite-switch:after{border-radius:50%;background:#1a261a;box-shadow:0 1px 3px #060b0933;}
:where(:root[data-theme="dark"]) #inspector .favorite-card .favorite-switch[aria-checked=true]{background:#396b2e!important;border-color:#509640;}
:where(:root[data-theme="dark"]) .note-reading .reading-line.check .reading-mark{border-radius:4px;border:1px solid #a4b190;}
:where(:root[data-theme="dark"]) .editor-stats{color:#c8d4c2;}
:where(:root[data-theme="dark"]) .search-result:focus-visible{background:#223823;outline:2px solid #9eb27d;outline-offset:-2px;}
:where(:root[data-theme="dark"]) .quick-create button:hover{background:#203620;}
:where(:root[data-theme="dark"]) .forest-rail button:hover{background-color:#1a261a18;}
:where(:root[data-theme="dark"]) .folder-entry-open:focus-visible{outline-offset:-3px;}
:where(:root[data-theme="dark"]) .workspace-navigation{border-right:1px solid #354e36;}
:where(:root[data-theme="dark"]) .note-path .workspace-navigation button{color:#d3dcce;border-radius:7px;}
:where(:root[data-theme="dark"]) .workspace-navigation button:not(:disabled):hover{background:#213622;}
:where(:root[data-theme="dark"]) .note-reading{color:#e1e7de;}
:where(:root[data-theme="dark"]) .folder-entry-open:hover{background:#203320;}
:where(:root[data-theme="dark"]) .folder-entry-copy small{color:#c9d5c3;}
:where(:root[data-theme="dark"]) .tree-row .item.active{background:linear-gradient(90deg,#213b22,#203521);box-shadow:inset 3px 0 #060b09;}
:where(:root[data-theme="dark"]) .tree-row .item:focus-visible,:where(:root[data-theme="dark"]) .folder-entry-open:focus-visible{outline:2px solid #83b15d;outline-offset:-2px;}
:where(:root[data-theme="dark"]) .quick-create button:hover:not(:disabled){background:#1d331e;border-color:#3b563c;}
:where(:root[data-theme="dark"]) .inspector-tabs button.active{box-shadow:inset 0 -2px #060b09;}
:where(:root[data-theme="dark"]) .diagnostic-row{border-bottom:1px solid #354e36;}
:where(:root[data-theme="dark"]) .batch-list{border:1px solid #354e36;border-radius:10px;}
:where(:root[data-theme="dark"]) .batch-row{border-bottom:1px solid #344c35;}
:where(:root[data-theme="dark"]) .batch-row:hover{background:#203321;}
:where(:root[data-theme="dark"]) button:focus-visible,:where(:root[data-theme="dark"]) [tabindex]:focus-visible{outline:2px solid #86ab60;outline-offset:2px;}
:where(:root[data-theme="dark"]) .event-card.unread{border-left:4px solid #8aaf60;background:#1c301c;}
:where(:root[data-theme="dark"]) .history-compare{border:1px solid #364f37;border-radius:12px;background:#19311a;}
:where(:root[data-theme="dark"]) .history-compare summary{color:#d3dcce;}
:where(:root[data-theme="dark"]) .tree-row.drop-target,:where(:root[data-theme="dark"]) .folder-entry.drop-target{outline:2px solid #85b15a;outline-offset:-2px;background:#1f3820!important;border-radius:8px;}
:where(:root[data-theme="dark"]) .editor-attachments{border:1px solid #364f37;border-radius:12px;background:#19311a;}
:where(:root[data-theme="dark"]) .editor-attachment-row{border-bottom:1px solid #344d35;}
:where(:root[data-theme="dark"]) .editor-attachment-row:last-child{border:0;}
:where(:root[data-theme="dark"]) .editor-attachment-row button{color:#d9bab5;}
:where(:root[data-theme="dark"]) .pref-group{border:1px solid #354e36;border-radius:12px;background:#162c17;}
:where(:root[data-theme="dark"]) .pref-group h3{color:#d4ded0;}
:where(:root[data-theme="dark"]) #prefStatus{color:#cfd9ca;}
@media  (min-width:761px){:where(:root[data-theme="dark"]) main,:where(:root[data-theme="dark"]) main:not(.focus-mode),:where(:root[data-theme="dark"]) main.focus-mode{background:#203e26;border-radius:0;}
:where(:root[data-theme="dark"]) main:before{border-radius:var(--paper-radius);background:linear-gradient(150deg,#162c17 0%,#183019 76%,#1f3520 100%);box-shadow:0 5px 18px #060b094d,inset 0 0 0 1px #060b09;}
:where(:root[data-theme="dark"]) main:after{background:url("/forest-footer-night.webp") center bottom/100% 100% no-repeat;}
:where(:root[data-theme="dark"]) main>.tree-panel,:where(:root[data-theme="dark"]) main>#detail,:where(:root[data-theme="dark"]) main>#inspector{border:0;box-shadow:none;background:transparent;border-radius:0;}
:where(:root[data-theme="dark"]) main>.tree-panel{border-radius:var(--paper-radius) 0 0 var(--paper-radius);}
:where(:root[data-theme="dark"]) main>#detail{border-radius:12px;background:#162c172b;}
:where(:root[data-theme="dark"]) main>#inspector{border-radius:0 var(--paper-radius) var(--paper-radius) 0;}
:where(:root[data-theme="dark"]) main>.split{background:linear-gradient(90deg,transparent 3px,#283a29 3px,#283a29 4px,transparent 4px);}
:where(:root[data-theme="dark"]) main>.split:hover,:where(:root[data-theme="dark"]) main>.split:focus-visible{background:#314832;}
:where(:root[data-theme="dark"]) main.focus-mode>#detail{border-radius:var(--paper-radius);}}
@media  (max-width:760px){:where(:root[data-theme="dark"]) main,:where(:root[data-theme="dark"]) main:not(.focus-mode),:where(:root[data-theme="dark"]) main.focus-mode{border-radius:0;background:#203e26;}
:where(:root[data-theme="dark"]) main>.tree-panel,:where(:root[data-theme="dark"]) main>#detail,:where(:root[data-theme="dark"]) main>#inspector{border-radius:17px;background:#182f19;box-shadow:none;}}
@media (min-width:761px){:where(:root[data-theme="dark"]) main,:where(:root[data-theme="dark"]) main:not(.focus-mode),:where(:root[data-theme="dark"]) main.focus-mode{background:linear-gradient(180deg,#203e26 0%,#294b31 84%,#446446 100%);}
:where(:root[data-theme="dark"]) main:before{background:linear-gradient(155deg,#162c17 0%,#183019 76%,#1b351c 100%);box-shadow:0 5px 16px #060b0955,inset 0 0 0 1px #060b09;}
:where(:root[data-theme="dark"]) main:after{background-size:100% 100%;}}
:where(:root[data-theme="dark"]) header{background:#183823 url("/forest-header-night.webp") center center/cover no-repeat!important;}
@media (min-width:761px){:where(:root[data-theme="dark"]) main,:where(:root[data-theme="dark"]) main:not(.focus-mode),:where(:root[data-theme="dark"]) main.focus-mode{background:#203e26;}
:where(:root[data-theme="dark"]) main:after{background:url("/forest-footer-night.webp") center bottom/cover no-repeat;}
:where(:root[data-theme="dark"]) main>.forest-rail{background:#203e26 url("/forest-rail-night.webp") center bottom/100% auto no-repeat;}
:where(:root[data-theme="dark"]) main:before{border-radius:var(--paper-radius);box-shadow:0 5px 16px #060b094d;}}
@media (min-width:761px) and (max-height:650px){:where(:root[data-theme="dark"]) main:after{background-size:100% auto;}}
@media (max-width:760px){:where(:root[data-theme="dark"]) header{background-size:auto 100%!important;}}
:where(:root[data-theme="dark"]) header{background-color:#19391f!important;background-image:linear-gradient(90deg,#19391f 0%,#19391f 12%,#19391f00 20%,#19391f00 69%,#19391f 78%,#19391f 100%),url("/forest-header-night.webp")!important;background-size:100% 100%,76% auto!important;background-position:center,center 62%!important;background-repeat:no-repeat!important;}
@media (max-width:760px){:where(:root[data-theme="dark"]) header{background-size:100% 100%,auto 100%!important;background-image:linear-gradient(90deg,#19391f 0%,#19391f00 35%,#19391f00 65%,#19391f 100%),url("/forest-header-night.webp")!important;}}
@media (min-width:761px){:where(:root[data-theme="dark"]) header{background-position:center,calc(50% - 152px) 62%!important;}}
@media (min-width:761px){:where(:root[data-theme="dark"]) main>.forest-rail{background-color:#203e26;background-image:url("/forest-rail-night.webp");background-position:center bottom;background-size:100% auto;background-repeat:no-repeat;}}
@media (min-width:761px) and (max-height:780px){:where(:root[data-theme="dark"]) main>.forest-rail{background-size:auto 42%;background-position:left bottom;}}
@media (max-width:760px){:where(:root[data-theme="dark"]) main>.forest-rail{background-image:none;}}
@media (min-width:761px){:where(:root[data-theme="dark"]) main:after{background:url("/forest-footer-night.webp") center bottom/100% auto no-repeat;border-radius:0 0 var(--paper-radius) var(--paper-radius);}}
@media (min-width:761px) and (max-height:650px){:where(:root[data-theme="dark"]) main:after{background-size:auto 100%;}}
@media (min-width:761px){:where(:root[data-theme="dark"]) main:before{border:0;box-shadow:0 5px 16px #060b094d;background:linear-gradient(to bottom,transparent calc(100% - 5px),#203e26 calc(100% - 5px)),linear-gradient(155deg,#162c17 0%,#183019 76%,#1b351c 100%);}
:where(:root[data-theme="dark"]) main:after{border:0;box-shadow:none;}}
:where(:root[data-theme="dark"]) .welcome-gate{background:#203e26;}
:where(:root[data-theme="dark"]) .welcome-card{background:#182f19;border-radius:23px;box-shadow:0 12px 40px #060b0966;color:#dee5db;}
:where(:root[data-theme="dark"]) .welcome-card p{color:#c9d5c4;}
:where(:root[data-theme="dark"]) #status{background:#264c2d;color:#fff;border-radius:10px;box-shadow:0 3px 12px #060b0933;}
:where(:root[data-theme="dark"]) #account,:where(:root[data-theme="dark"]) #account.connected{border:0;background:transparent;color:#fff;}
:where(:root[data-theme="dark"]) #account .account-avatar{border-radius:50%;background:#385b32;border:1px solid #375038;}
:where(:root[data-theme="dark"]) #account.has-avatar .account-avatar img{border:0;border-radius:50%;}
:where(:root[data-theme="dark"]) .tree-sort{color:#cfdacb;}
:where(:root[data-theme="dark"]) .tree-sort select{background:#1e311f;border:1px solid #354e36;border-radius:8px;}
:where(:root[data-theme="dark"]) .project-tools button{background:#202e20;}
:where(:root[data-theme="dark"]) .project-tools:has(>button:not([hidden])){border-bottom:1px solid #354e36;}
:where(:root[data-theme="dark"]) .tree-heading .tree-down{color:#cfdacb;}
:where(:root[data-theme="dark"]) .tree-heading .tree-sort{border-radius:8px;background:transparent;}
:where(:root[data-theme="dark"]) .tree-sort:hover,:where(:root[data-theme="dark"]) .tree-sort:focus-within{background:#223623;}
:where(:root[data-theme="dark"]) .tree-sort:focus-within{outline:2px solid #86ab60;}
:where(:root[data-theme="dark"]) .tree-panel #items .item-row .item{box-shadow:none;background:transparent;border:0;}
:where(:root[data-theme="dark"]) .tree-panel #items .item-row:has(.item.active){background:#203b21!important;box-shadow:none;border:0;}
:where(:root[data-theme="dark"]) .tree-panel #items .tree-row{background-image:none;}
:where(:root[data-theme="dark"]) .tree-panel #items .tree-row .item.active{box-shadow:none;}
:where(:root[data-theme="dark"]) body.signed-out{background:#19391f;}
:where(:root[data-theme="dark"]) :is(body.signed-out .welcome-gate,#ntMaintenanceScreen .welcome-gate){background:#19391f linear-gradient(0deg,#142c1940,#142c1910);background-image:linear-gradient(0deg,#142c1933,#142c1908),url("/forest-welcome-night.webp");background-position:center;background-size:cover;background-repeat:no-repeat;}
:where(:root[data-theme="dark"]) :is(body.signed-out .welcome-card,#ntMaintenanceScreen .welcome-card){border:1px solid #314932;border-radius:28px;background:linear-gradient(145deg,#172d18,#1a341b);box-shadow:0 18px 70px #060b0985;color:#dde4d9;}
:where(:root[data-theme="dark"]) :is(body.signed-out .welcome-card,#ntMaintenanceScreen .welcome-card):after{background:url("/forest-footer-night.webp") center bottom/100% auto no-repeat;}
:where(:root[data-theme="dark"]) :is(body.signed-out .welcome-brand,#ntMaintenanceScreen .welcome-brand){color:#dee5da;}
:where(:root[data-theme="dark"]) :is(body.signed-out .welcome-brand,#ntMaintenanceScreen .welcome-brand) img{border-radius:14px;}
:where(:root[data-theme="dark"]) :is(body.signed-out .welcome-brand,#ntMaintenanceScreen .welcome-brand) small{border:1px solid #9fb08d;border-radius:12px;}
:where(:root[data-theme="dark"]) :is(body.signed-out .welcome-cloud,#ntMaintenanceScreen .welcome-cloud){background:#203721;border-radius:11px;color:#d5ded0;}
:where(:root[data-theme="dark"]) :is(body.signed-out .welcome-card,#ntMaintenanceScreen .welcome-card) :is(#welcomeActions,.nt-maintenance-actions) button{border-radius:12px;}
:where(:root[data-theme="dark"]) :is(body.signed-out .welcome-card,#ntMaintenanceScreen .welcome-card) #welcomeRegister{background:transparent;border:1px solid #385239;color:#dae2d6;}
:where(:root[data-theme="dark"]) :is(body.signed-out .welcome-card,#ntMaintenanceScreen .welcome-card) #welcomeRecover{background:transparent;border:0;color:#d3dcce;}
:where(:root[data-theme="dark"]) body.signed-out dialog:not(.photo-viewer){background:#183019;box-shadow:0 18px 70px #060b0985;}
@media (max-width:500px){:where(:root[data-theme="dark"]) :is(body.signed-out .welcome-card,#ntMaintenanceScreen .welcome-card){border-radius:22px;}}
:where(:root[data-theme="dark"]) .quick-space-menu{border:1px solid #354e36;border-radius:10px;background:#183019;box-shadow:0 8px 25px #060b0926;}
:where(:root[data-theme="dark"]) .quick-space-option{border:0;background:transparent;border-radius:7px;color:#dce4d9;}
:where(:root[data-theme="dark"]) .quick-space-option:hover{background:#1f3720;}
:where(:root[data-theme="dark"]) .quick-space-option .glyph img{border-radius:inherit;}
:where(:root[data-theme="dark"]) .quick-space-check{color:#d0dacb;}
:where(:root[data-theme="dark"]) .quick-space-menu{border-radius:12px;}
:where(:root[data-theme="dark"]) .quick-space-option{border:1px solid #354e36;}
:where(:root[data-theme="dark"]) .quick-space-option:hover{box-shadow:inset 0 0 0 2px #060b09;}
:where(:root[data-theme="dark"]) .tree-space-picker.section-heading:disabled{color:inherit;}
:where(:root[data-theme="dark"]) .tree-panel #items.unified-items .unified-tree-row{background-image:none;border:0;box-shadow:none;}
:where(:root[data-theme="dark"]) .tree-panel #items.unified-items .unified-tree-row .item{background:transparent;border:0;box-shadow:none;}
:where(:root[data-theme="dark"]) .tree-panel #items.unified-items .unified-tree-row .item-copy small{color:#c8d4c3;}
:where(:root[data-theme="dark"]) .tree-panel #items.unified-items .unified-clear{background:#1e311f;border:1px solid #354f36;box-shadow:none;}
:where(:root[data-theme="dark"]) .tree-panel #items.unified-items .tree-row.unified-tree-row{background:transparent;border:0;box-shadow:none;}
:where(:root[data-theme="dark"]) .tree-panel #items.unified-items .tree-row.unified-tree-row:hover{background:#203521;}
:where(:root[data-theme="dark"]) .tree-panel #items.unified-items .tree-row.unified-tree-row:has(.item.active){background:#203b21!important;box-shadow:none;}
:where(:root[data-theme="dark"]) .tree-panel #items.unified-items .tree-row.unified-tree-row .item{background:transparent;border:0;box-shadow:none;border-radius:0;}
:where(:root[data-theme="dark"]) header #brandHome:focus-visible{outline:2px solid #354d36;outline-offset:3px;border-radius:6px;}
:where(:root[data-theme="dark"]) #centerActions{border-top:1px solid var(--line);}
:where(:root[data-theme="dark"]) #centerActions button{background:transparent;color:var(--ink);border-color:var(--line);}
:where(:root[data-theme="dark"]) #centerActions button:hover{background:#203320;}
:where(:root[data-theme="dark"]) .project-center #items .center-project{border:1px solid transparent;border-radius:10px;}
:where(:root[data-theme="dark"]) .project-center #items .center-project.active{border-color:#8db16d;box-shadow:inset 0 0 0 1px #060b09;}
:where(:root[data-theme="dark"]) .center-link{border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent;}
:where(:root[data-theme="dark"]) .center-link:hover{background:#203320;}
:where(:root[data-theme="dark"]) .center-link svg{color:#cdd8c8;}
:where(:root[data-theme="dark"]) .center-link small{color:var(--muted);}
:where(:root[data-theme="dark"]) .project-center dialog.embedded-management{border:0;box-shadow:none;background:transparent;color:inherit;}
:where(:root[data-theme="dark"]) .project-center .embedded-management .history-row{background:transparent;}
:where(:root[data-theme="dark"]) .project-center .center-back{background:transparent;}
:where(:root[data-theme="dark"]) .project-center #inspector .inspector-card{border:1px solid var(--line);border-radius:12px;}
:where(:root[data-theme="dark"]) .project-center .center-link{border:1px solid transparent;border-bottom-color:var(--line);border-radius:9px;}
:where(:root[data-theme="dark"]) .project-center .center-link:hover,:where(:root[data-theme="dark"]) .project-center .center-link:focus-visible{border-color:#3c583d;outline:0;background:#203320;}
:where(:root[data-theme="dark"]) .project-center .embedded-management :is(input,select,button,summary):focus-visible{outline:0;box-shadow:inset 0 0 0 2px #060b09;border-radius:8px;}
:where(:root[data-theme="dark"]) .center-loading{color:#cfd9ca;}
:where(:root[data-theme="dark"]) .center-spinner{border:2px solid #354d36;border-top-color:#509938;border-radius:50%;}
:where(:root[data-theme="dark"]) .visual-select summary{border:1px solid var(--line);border-radius:9px;background:#172e18;}
:where(:root[data-theme="dark"]) .visual-options .visual-option{border:1px solid var(--line);border-radius:8px;color:var(--ink);}
:where(:root[data-theme="dark"]) .visual-option[aria-pressed=true]{box-shadow:inset 0 0 0 2px #060b09;}
:where(:root[data-theme="dark"]) .visual-option[aria-pressed=true]:after{color:#cfd9ca;}
:where(:root[data-theme="dark"]) .visual-swatch{border-radius:5px;}
:where(:root[data-theme="dark"]) .visual-select .glyph{background:#386b27;color:white;}
:where(:root[data-theme="dark"]) .project-center #manageContent .member-count{color:var(--muted);}
:where(:root[data-theme="dark"]) #manageContent .compact-member{border-bottom:1px solid var(--line);background:transparent;}
:where(:root[data-theme="dark"]) #manageContent .compact-member-avatar{border-radius:50%;background:#203621;color:#cfd9ca;}
:where(:root[data-theme="dark"]) #manageContent .compact-member-copy small{color:var(--muted);}
:where(:root[data-theme="dark"]) #manageContent .compact-member-role{color:#d3ddcf;background:#203320;border-radius:6px;}
:where(:root[data-theme="dark"]) .project-center #manageContent .project-settings-grid .visual-field{border:0;box-shadow:none;background:transparent;}
:where(:root[data-theme="dark"]) .project-center #manageContent .project-settings-grid .visual-select{border:0;box-shadow:none;background:transparent;}
:where(:root[data-theme="dark"]) .project-center #manageContent .project-settings-grid .visual-select summary{border:1px solid var(--line);box-shadow:none;}
:where(:root[data-theme="dark"]) .project-center #manageContent .project-settings-grid .visual-select summary:focus-visible{box-shadow:inset 0 0 0 2px #060b09;}
:where(:root[data-theme="dark"]) .project-center .invite-form{border:1px solid var(--line);border-radius:10px;}
:where(:root[data-theme="dark"]) .project-center .invite-active-row{border-bottom:1px solid var(--line);}
:where(:root[data-theme="dark"]) .project-center .project-event-row{border-bottom:1px solid var(--line);}
:where(:root[data-theme="dark"]) .project-danger{border-top:1px solid var(--line);}
:where(:root[data-theme="dark"]) .project-danger button{color:#d9b8b4;border:1px solid #c88b84;background:transparent;}
:where(:root[data-theme="dark"]) .request-compact{border-bottom:1px solid var(--line);}
:where(:root[data-theme="dark"]) .request-avatar{border-radius:50%;}
:where(:root[data-theme="dark"]) #historyRows .compact-member-avatar{border-radius:50%;}
:where(:root[data-theme="dark"]) .activity-date{color:#c9d5c3;}
:where(:root[data-theme="dark"]) .activity-row{background:transparent;border:0;border-bottom:1px solid var(--line);border-radius:0;box-shadow:none;}
:where(:root[data-theme="dark"]) .activity-row:hover,:where(:root[data-theme="dark"]) .activity-row.active{background:#203821;}
:where(:root[data-theme="dark"]) .activity-avatar{border-radius:50%;background:#233323;}
:where(:root[data-theme="dark"]) .activity-avatar img{border-radius:50%;}
:where(:root[data-theme="dark"]) .activity-copy small{color:#cdd8c8;}
:where(:root[data-theme="dark"]) .activity-time{color:#c8d4c3;}
:where(:root[data-theme="dark"]) .activity-request{border-bottom:1px solid var(--line);}
:where(:root[data-theme="dark"]) #prefPreview{background:#203021;border-radius:9px;}
:where(:root[data-theme="dark"]) #preferences .pref-group{background:transparent;}
:where(:root[data-theme="dark"]) #accountDialog .account-summary{border-bottom:1px solid #354e36;}
:where(:root[data-theme="dark"]) .account-large-avatar{border-radius:50%;background:#223923;}
:where(:root[data-theme="dark"]) .account-connected{color:#ced8c9;}
:where(:root[data-theme="dark"]) .account-row:nth-last-child(2){color:#d5b8b4;}
:where(:root[data-theme="dark"]) .account-version{color:#c8d4c3;}
:where(:root[data-theme="dark"]) #detail .editor-attachments{background:transparent;}
:where(:root[data-theme="dark"]) #detail .editor-attachment-row{border:0;}
:where(:root[data-theme="dark"]) #accountDialog #closeAccount{background:transparent;border:0;color:#ced9c9;}
:where(:root[data-theme="dark"]) #accountDialog .account-row:last-of-type{color:#d5b8b4;}
:where(:root[data-theme="dark"]) .transfer-tree{border:1px solid #354e36;border-radius:10px;}
:where(:root[data-theme="dark"]) .transfer-pick{background:transparent;border:0;box-shadow:none;}
:where(:root[data-theme="dark"]) .transfer-pick.active{background:#203b21;}
:where(:root[data-theme="dark"]) .transfer-path{color:#cdd8c8;}
:where(:root[data-theme="dark"]) .context-menu .context-action{background:transparent;}
:where(:root[data-theme="dark"]) .context-action svg{color:#cdd8c8;}
:where(:root[data-theme="dark"]) .context-menu .context-action:hover{background:#203521;}
:where(:root[data-theme="dark"]) .context-menu .context-group-start{border-top:1px solid #354e36;border-radius:0;}
:where(:root[data-theme="dark"]) .context-menu .context-danger,:where(:root[data-theme="dark"]) .context-menu .context-danger svg{color:#d4b9b4;}
:where(:root[data-theme="dark"]) #inspector .version-list-row,:where(:root[data-theme="dark"]) #inspector .version-current{background:transparent;border:0;border-bottom:1px solid #344d35;border-radius:6px;box-shadow:none;}
:where(:root[data-theme="dark"]) .version-current.active,:where(:root[data-theme="dark"]) #inspector .version-list-row.active,:where(:root[data-theme="dark"]) #inspector .version-current.active{background:#213722;}
:where(:root[data-theme="dark"]) .version-list-row:hover,:where(:root[data-theme="dark"]) #inspector .version-list-row:hover{background:#1e311f;}
:where(:root[data-theme="dark"]) .version-avatar{border-radius:50%;background:#233323;}
:where(:root[data-theme="dark"]) .version-avatar svg,:where(:root[data-theme="dark"]) .version-current svg{color:#cad6c5;}
:where(:root[data-theme="dark"]) .version-list-row>svg{color:#c3d0bd;}
:where(:root[data-theme="dark"]) .version-copy small{color:#c9d5c4;}
:where(:root[data-theme="dark"]) .version-compare-column{border:1px solid #354e36;border-radius:10px;}
:where(:root[data-theme="dark"]) .version-removed{background:#3b261e!important;}
:where(:root[data-theme="dark"]) .version-added{background:#203621!important;}
:where(:root[data-theme="dark"]) .entry-pin{color:#c6d3c0;}
:where(:root[data-theme="dark"]) .entry-pin svg,:where(:root[data-theme="dark"]) .tree-row .entry-pin svg{stroke:currentColor;}
:where(:root[data-theme="dark"]) .mobile-gate{background:#19391f url("/forest-welcome-night.webp") center/cover no-repeat;}
:where(:root[data-theme="dark"]) .mobile-device{color:#cad6c5;}
:where(:root[data-theme="dark"]) .nt-picked>.item,:where(:root[data-theme="dark"]) .nt-picked>.folder-entry-open{background:#203921!important;outline:1px solid #3a563b;outline-offset:-1px;border-radius:8px;}
:where(:root[data-theme="dark"]) .selection-bar{background:#213521;border:1px solid #375138;border-radius:10px;color:#d4ded0;}
:where(:root[data-theme="dark"]) .selection-action{background:transparent;border:0;color:#ced8c9;}
:where(:root[data-theme="dark"]) .selection-action:hover{background:#253e26;}
:where(:root[data-theme="dark"]) .nt-toast{background:#183019;color:#d4ded0;border:1px solid #375138;border-radius:12px;box-shadow:0 5px 20px #060b0933;}
:where(:root[data-theme="dark"]) .nt-toast.error{color:#d5b8b4;border-color:#57403b;}
:where(:root[data-theme="dark"]) .tree-row .tree-toggle{border-radius:6px;color:#d3dcce;}
:where(:root[data-theme="dark"]) .tree-row .tree-toggle:hover,:where(:root[data-theme="dark"]) .tree-row .tree-toggle:focus-visible{background:#223923;}
:where(:root[data-theme="dark"]) .context-shortcut{color:#c9d5c3;}
:where(:root[data-theme="dark"]) .shortcut-group{border-top:1px solid #354e36;}
:where(:root[data-theme="dark"]) .shortcut-group h3{color:#cdd8c8;}
:where(:root[data-theme="dark"]) .shortcut-row kbd{background:#213021;border:1px solid #365037;border-radius:5px;color:#d7e0d3;}
:where(:root[data-theme="dark"]) #shortcuts svg{color:#cad6c5;}
:where(:root[data-theme="dark"]) .draft-conflict{border:1px solid #cba66d;border-radius:12px;background:#3b6f3d14;}
:where(:root[data-theme="dark"]) .folder-entry-copy .folder-note-preview{color:inherit;}
:where(:root[data-theme="dark"]) .folder-entry .folder-photo-thumb img{border-radius:inherit;}
:where(:root[data-theme="dark"]) .folder-toolbar .folder-select{background:#223223;color:#ced8c9;border:1px solid #364f37;border-radius:8px;}
:where(:root[data-theme="dark"]) .selection-bar .selection-action:hover:not(:disabled){background:#283b29;}
:where(:root[data-theme="dark"]) .selection-bar .selection-action[aria-label="В корзину"]{color:#d8b7b5;}
:where(:root[data-theme="dark"]) #detail .editor-photo-action{background:#203521;color:#ced8c9;border-color:#375138;}
:where(:root[data-theme="dark"]) #detail .editor-photo-delete{color:#d8b7b5;}
:where(:root[data-theme="dark"]) #detail .editor-attachment-row .stage-preview{border-radius:8px;background:#223223;}
:where(:root[data-theme="dark"]) dialog.nt-dialog .trash-preview{border-radius:8px;}
:where(:root[data-theme="dark"]) .tree-panel #items .tree-row:has(.item[aria-current=true]){background:#1f3b21!important;box-shadow:inset 3px 0 #060b09!important;}
:where(:root[data-theme="dark"]) .tree-panel #items .tree-row:has(.item[aria-current=true]) .item-copy strong{color:#dae2d6;}
:where(:root[data-theme="dark"]) .search-copy mark{background:#214122;color:inherit;border-radius:2px;}
:where(:root[data-theme="dark"]) #detail.editor-expanded{background:#172f18!important;}
:where(:root[data-theme="dark"]) #detail .editor-expand-button{color:var(--accent);}
:where(:root[data-theme="dark"]) #items .item:focus-visible,:where(:root[data-theme="dark"]) #detail .folder-entry-open:focus-visible{outline:2px solid #6ea14f;outline-offset:-2px;border-radius:6px;}
:where(:root[data-theme="dark"]) #detail button.export-icon{background:#223223;color:#ced8c9;border:1px solid #364f37;border-radius:8px;}
:where(:root[data-theme="dark"]) #events .event-badge{background:#b63d32;color:#fff;border:1px solid #324a33;border-radius:12px;}
:where(:root[data-theme="dark"]) .export-policy-card{border:1px solid #354e36;border-radius:16px;background:#172f18;color:#dae2d6;}
:where(:root[data-theme="dark"]) .export-policy-heading .glyph{background:#213521;border-radius:10px;}
:where(:root[data-theme="dark"]) .export-policy-card .export-policy-line{border-bottom:1px solid #354e36;}
:where(:root[data-theme="dark"]) .export-policy-card .export-policy-line:first-of-type{background:#223223;border-radius:10px;border:0;}
:where(:root[data-theme="dark"]) .export-policy-copy small{color:#c8d4c3;}
:where(:root[data-theme="dark"]) .export-policy-line .glyph{color:#c9d5c4;}
:where(:root[data-theme="dark"]) #detail .export-policy-card input.export-policy-switch{border:1px solid #3c593d;border-radius:20px;background:#344d35;}
:where(:root[data-theme="dark"]) #detail .export-policy-card input.export-policy-switch::after{border-radius:50%;background:#1a261a;}
:where(:root[data-theme="dark"]) #detail .export-policy-card input.export-policy-switch:checked{background:#527e40;border-color:#6ca755;}
:where(:root[data-theme="dark"]) #detail .export-policy-card input.export-policy-switch:focus-visible{outline:2px solid #6ca755;outline-offset:3px;}
:where(:root[data-theme="dark"]) #detail .export-policy-card{background:#172f18;border-color:#364f37;}
:where(:root[data-theme="dark"]) #detail .export-policy-card .glyph{background:#213521;color:#ced8c9;border-radius:9px;}
:where(:root[data-theme="dark"]) #detail .export-policy-card .glyph svg{color:inherit;stroke:currentColor;}
:where(:root[data-theme="dark"]) #detail .export-policy-line .glyph:nth-child(3){background:transparent;border-radius:0;}
:where(:root[data-theme="dark"]) #detail .export-policy-card input.export-policy-switch{border-radius:20px;box-shadow:none;background:#344d35;border-color:#3c593d;}
:where(:root[data-theme="dark"]) #detail .export-policy-card input.export-policy-switch:checked{background:#527e40;border-color:#6ca755;}
:where(:root[data-theme="dark"]) #detail .export-policy-card input.export-policy-switch::after{box-shadow:0 1px 2px #060b0933;}
:where(:root[data-theme="dark"]) #refresh[data-connection="offline"]::after,:where(:root[data-theme="dark"]) #refresh[data-connection="blocked"]::after,:where(:root[data-theme="dark"]) #refresh[data-connection="checking"]::after{border-radius:50%;background:#2d592f;border:1px solid #458c55;}
:where(:root[data-theme="dark"]) #refresh[data-connection="offline"]::after{background:#e36b60;}
:where(:root[data-theme="dark"]) #detail .detail-top button.export-icon{background:#223223;color:#ced8c9;border:1px solid #364f37;border-radius:8px;box-shadow:none;}
:where(:root[data-theme="dark"]) #detail button.export-icon:hover:not(:disabled){background:#283b29;border-color:#3a563c;}
:where(:root[data-theme="dark"]) #detail button.export-icon:focus-visible{outline:2px solid #6ca755;outline-offset:2px;}
:where(:root[data-theme="dark"]) .context-menu{background:#182f19;border:1px solid #364f37;border-radius:12px;box-shadow:0 12px 32px #060b0930;}
:where(:root[data-theme="dark"]) .context-menu button,:where(:root[data-theme="dark"]) .context-menu .context-action{background:transparent;border:0;border-radius:7px;color:#d7e0d3;}
:where(:root[data-theme="dark"]) .context-menu button:hover:not(:disabled),:where(:root[data-theme="dark"]) .context-menu .context-action:hover:not(:disabled){background:#203621;}
:where(:root[data-theme="dark"]) .context-menu .context-group-start{border-top:1px solid #354e36;border-radius:0 0 7px 7px;}
:where(:root[data-theme="dark"]) .context-menu .context-danger,:where(:root[data-theme="dark"]) .context-menu .context-danger svg{color:#d8b8b5;}
:where(:root[data-theme="dark"]) .context-menu .context-danger:hover:not(:disabled){background:#3b281e;}
:where(:root[data-theme="dark"]) .context-menu .context-shortcut{color:#c7d4c2;}
:where(:root[data-theme="dark"]) .context-menu button:focus-visible,:where(:root[data-theme="dark"]) .nt-toast button:focus-visible{outline:2px solid #6ea457;outline-offset:-2px;}
:where(:root[data-theme="dark"]) dialog.nt-dialog{background:#182f19;border:1px solid #354f36;border-radius:17px;box-shadow:0 18px 64px #060b0950;}
:where(:root[data-theme="dark"]) dialog.nt-dialog h2{color:#dae2d6;}
:where(:root[data-theme="dark"]) dialog.nt-dialog .nt-dialog-message{color:#d3ddcf;}
:where(:root[data-theme="dark"]) dialog.nt-dialog .nt-dialog-actions button{border-radius:9px;}
:where(:root[data-theme="dark"]) dialog.nt-dialog .nt-dialog-actions button:not(.primary):not(.nt-danger){background:#202f21;border-color:#354f36;color:#d7e0d3;}
:where(:root[data-theme="dark"]) dialog.nt-dialog .nt-dialog-actions button:not(.primary):not(.nt-danger):hover{background:#203521;}
:where(:root[data-theme="dark"]) .nt-toast{background:#182f19;color:#d4ded0;border:1px solid #375038;border-left:4px solid #83aa68;border-radius:11px;box-shadow:0 6px 22px #060b0926;}
:where(:root[data-theme="dark"]) .nt-toast.error{background:#302218;color:#d8b9b6;border-color:#533e38;border-left-color:#c76b62;}
:where(:root[data-theme="dark"]) .nt-toast .nt-toast-close{border:0;background:transparent;color:inherit;border-radius:7px;}
:where(:root[data-theme="dark"]) .nt-toast .nt-toast-undo{background:#203521;color:#d4ded0;border:1px solid #375038;border-radius:7px;}
:where(:root[data-theme="dark"]) .nt-toast .nt-toast-close:hover,:where(:root[data-theme="dark"]) .nt-toast .nt-toast-undo:hover{background:#223822;}
:where(:root[data-theme="dark"]) .nt-toast.error .nt-toast-close:hover{background:#3c281f;}

/* Night theme: semantic foregrounds, controls and dynamic project cards. */
:root[data-theme="dark"]{color-scheme:dark;--ink:#e6ede0;--muted:#b1c2af;--accent:#8ab477;--line:#3c5041;--surface:#202e25;--surface-soft:#293b2e;background:#18261e;color:#e6ede0}
:root[data-theme="dark"] body{background:#17271f;color:var(--ink)}
:root[data-theme="dark"] header{background-color:#132820!important;background-image:linear-gradient(90deg,#132820 0%,#132820 12%,#13282000 20%,#13282000 69%,#132820 78%,#132820 100%),url('/forest-header-night.webp')!important}
:root[data-theme="dark"] main:not(.focus-mode){background:#14271e}
:root[data-theme="dark"] main>.forest-rail{background-color:#172f24;background-image:url('/forest-rail-night.webp')}
:root[data-theme="dark"] .tree-panel,:root[data-theme="dark"] #detail,:root[data-theme="dark"] #inspector{background:#1c2b23;border-color:#35493b;color:#e6ede0}
:root[data-theme="dark"] #detail h1,:root[data-theme="dark"] #detail h2,:root[data-theme="dark"] #detail h3,:root[data-theme="dark"] .note-reading,:root[data-theme="dark"] .folder-entry-copy strong,:root[data-theme="dark"] .tree-row .item-copy strong{color:#e6ede0}
:root[data-theme="dark"] .tree-row:has(.item.active){background:#3b5338!important}
:root[data-theme="dark"] .tree-row:has(.item.active) .item-copy strong{color:#eff5e8}
:root[data-theme="dark"] .tree-row .glyph svg{stroke:#a4c38d}
:root[data-theme="dark"] .folder-entry:hover,:root[data-theme="dark"] .tree-row:hover{background:#304638}
:root[data-theme="dark"] .muted,:root[data-theme="dark"] .folder-entry-copy small,:root[data-theme="dark"] .tree-row .item-copy small{color:#afc0ab}
:root[data-theme="dark"] button.primary{background:#426c35;border-color:#668953;color:#fff}
:root[data-theme="dark"] button.primary:hover:not(:disabled){background:#527e40;color:#fff}
:root[data-theme="dark"] .nt-danger{background:#9c3c35!important;color:white!important}
:root[data-theme="dark"] input:not([type=checkbox]):not([type=radio]):not([type=range]),:root[data-theme="dark"] select,:root[data-theme="dark"] textarea{background-color:#18271e;color:#e5edde;border-color:#465d49}
:root[data-theme="dark"] input::placeholder,:root[data-theme="dark"] textarea::placeholder{color:#a6b5a5}
:root[data-theme="dark"] #detail .export-policy-card input.export-policy-switch{background:#526256;border-color:#6c8070}
:root[data-theme="dark"] #detail .export-policy-card input.export-policy-switch:checked{background:#527e40;border-color:#8ab477}
:root[data-theme="dark"] #detail .export-policy-card input.export-policy-switch::after{background:#f3f7ed}
:root[data-theme="dark"] input[type=checkbox],:root[data-theme="dark"] input[type=radio]{accent-color:#7da65f}
:root[data-theme="dark"] [data-project-tinted]{background-color:color-mix(in srgb,var(--tone,#def2f0) 15%,#192a22)!important;color:#e6ede0!important}
:root[data-theme="dark"] [data-project-tinted] .space-copy strong,:root[data-theme="dark"] [data-project-tinted] .space-copy small{color:#e1e9db}
:root[data-theme="dark"] .context-menu .context-danger,:root[data-theme="dark"] .context-menu .context-danger svg{color:#f1a098}
:root[data-theme="dark"] .nt-toast.error{color:#ffb8ac;background:#432b2a;border-color:#88534c}
:root[data-theme="dark"] #events .event-badge{background:#b63d32;color:white;border-color:#243e2d}
:root[data-theme="dark"] .photo-viewer{background:#111a15;color:#e5ede0}
:root[data-theme="dark"] .photo-viewer img{filter:none}
:root[data-theme="dark"] ::selection{background:#55794c;color:#fff}
:root[data-theme="dark"] #items .tree-row.item-row:has(.item.active),:root[data-theme="dark"] .tree-panel #items.unified-items .tree-row.unified-tree-row:has(.item.active){background:#3b5338!important;box-shadow:inset 3px 0 #9bb77b}
:root[data-theme="dark"] #detail textarea,:root[data-theme="dark"] #detail input:not([type=checkbox]):not([type=radio]):not([type=range]),:root[data-theme="dark"] dialog textarea,:root[data-theme="dark"] dialog input:not([type=checkbox]):not([type=radio]):not([type=range]){background:#18271e;color:#e5edde;border-color:#465d49}
:root[data-theme="dark"] #detail .export-policy-card,:root[data-theme="dark"] #inspector .inspector-card{background:#23342a;color:#e5edde;border-color:#3c5041}
:root[data-theme="dark"] dialog:not(.photo-viewer),:root[data-theme="dark"] .context-menu{background:#25362b;color:#e5edde;border-color:#455a49}
:root[data-theme="dark"] .context-menu button:hover:not(:disabled){background:#3b5338}


/* 1.6.36 (108): focused night-theme correction — colder palette, real moon, darker footer. */
:root[data-theme="dark"]{--ink:#e6edf3;--muted:#b8c5d2;--accent:#82a96b;--line:#344453;--surface:#16232d;--surface-soft:#1a2a34;background:#101a22;color:var(--ink)}
:root[data-theme="dark"] body{background:#0f1921;color:var(--ink)}
:root[data-theme="dark"] header{background-color:#10202a!important;background-image:linear-gradient(90deg,#10202a 0%,#10202a 11%,#10202a00 19%,#10202a00 78%,#10202a 88%,#10202a 100%),url('/forest-header-night.webp')!important;background-position:center center!important;background-size:cover!important;color:#f2f6fb}
:root[data-theme="dark"] .brand,:root[data-theme="dark"] .brand small,:root[data-theme="dark"] .tool,:root[data-theme="dark"] #account{color:#eef4fb}
:root[data-theme="dark"] .tool:hover:not(:disabled),:root[data-theme="dark"] #account:hover:not(:disabled){background:#ffffff12;color:#fff}
:root[data-theme="dark"] main:not(.focus-mode){background:#12202a}
:root[data-theme="dark"] main:after{background:url('/forest-footer-night.webp') center bottom/100% auto no-repeat!important;opacity:1}
:root[data-theme="dark"] main>.forest-rail{background-color:#11242b!important;background-image:url('/forest-rail-night.webp')!important;background-position:center bottom 56px!important;background-size:100% auto!important;background-repeat:no-repeat!important}
:root[data-theme="dark"] .forest-rail button,:root[data-theme="dark"] .rail-bottom{color:#edf4fa}
:root[data-theme="dark"] .forest-rail button:first-child,:root[data-theme="dark"] .forest-rail button:hover{background:#324c54;color:#fff}
:root[data-theme="dark"] .tree-panel,:root[data-theme="dark"] #detail,:root[data-theme="dark"] #inspector{background:#17242d;border-color:#31414e;color:var(--ink);box-shadow:0 4px 18px #02070b26}
:root[data-theme="dark"] .listing,:root[data-theme="dark"] .listhead{background:transparent}
:root[data-theme="dark"] .tree-row:has(.item.active),:root[data-theme="dark"] #items .tree-row.item-row:has(.item.active),:root[data-theme="dark"] .tree-panel #items.unified-items .tree-row.unified-tree-row:has(.item.active){background:#243744!important;box-shadow:inset 3px 0 #87a86e}
:root[data-theme="dark"] .folder-entry:hover,:root[data-theme="dark"] .tree-row:hover{background:#20323d}
:root[data-theme="dark"] .muted,:root[data-theme="dark"] .folder-entry-copy small,:root[data-theme="dark"] .tree-row .item-copy small,:root[data-theme="dark"] .bottom{color:#b8c5d2}
:root[data-theme="dark"] .selection-bar,:root[data-theme="dark"] dialog:not(.photo-viewer),:root[data-theme="dark"] .context-menu{background:#1a2a34;color:var(--ink);border-color:#344453}
:root[data-theme="dark"] input:not([type=checkbox]):not([type=radio]):not([type=range]),:root[data-theme="dark"] select,:root[data-theme="dark"] textarea{background-color:#13212a;color:var(--ink);border-color:#40515f}
:root[data-theme="dark"] button.primary{background:#446f3a;border-color:#688d5d;color:#fff}
:root[data-theme="dark"] button.primary:hover:not(:disabled){background:#3d6434}
:root[data-theme="dark"] :is(body.signed-out .welcome-gate,#ntMaintenanceScreen .welcome-gate),:root[data-theme="dark"] .mobile-gate{background:#0f1b24 linear-gradient(0deg,#0d162080,#0d162030),url('/forest-welcome-night.webp') center/cover no-repeat}
:root[data-theme="dark"] :is(body.signed-out .welcome-card,#ntMaintenanceScreen .welcome-card){background:#15242dcc;border:1px solid #33424d;box-shadow:0 22px 64px #02070b44}

/* 1.6.37: unified notebook and original transparent landscape. */
#themeToggle{flex:none;display:grid;place-items:center;padding:0;color:#f4f7ed;background:transparent;border:1px solid transparent;box-shadow:none}
#themeToggle:hover:not(:disabled){background:#ffffff18;color:#fff}
#themeToggle svg{width:22px;height:22px}
:root[data-theme="dark"] #themeToggle{color:#f4dca1}
:root[data-theme="dark"] header{background-size:100% 100%,auto 100%!important;background-position:center,center center!important;background-repeat:no-repeat!important}
:root[data-theme="dark"] #globalSearch{background:#22343e;color:#e6edf3;border-color:#435762}
:root[data-theme="dark"] #globalSearch:before{border-color:#52646d;color:#c4d0d8}
:root[data-theme="dark"] [data-project-tinted]{background-color:color-mix(in srgb,var(--project-night-tone,#087e83) 52%,#17242d)!important;color:#f4f7fb!important}
:root[data-theme="dark"] [data-project-tinted] .space-copy strong,:root[data-theme="dark"] [data-project-tinted] .space-copy small{color:#f4f7fb}
:root[data-theme="dark"] [data-project-tinted].active{border-color:color-mix(in srgb,var(--project-night-tone,#087e83) 65%,#dce9eb)!important}
:root[data-theme="dark"] .forest-rail button:not(.active):not(:hover){background:transparent}
:root[data-theme="dark"] .forest-rail button.active{background:#38545c;color:white}
@media(min-width:761px){
 :root[data-theme="dark"] main,:root[data-theme="dark"] main:not(.focus-mode){background:#10202a}
 :root[data-theme="dark"] main:before{background:#17242d;border-radius:var(--paper-radius);box-shadow:0 5px 16px #02070b55;border:0}
 :root[data-theme="dark"] main>.tree-panel,:root[data-theme="dark"] main>#detail,:root[data-theme="dark"] main>#inspector{background:transparent;border:0;box-shadow:none;border-radius:0}
 :root[data-theme="dark"] main>.tree-panel{border-radius:var(--paper-radius) 0 0 var(--paper-radius)}
 :root[data-theme="dark"] main>#inspector{border-radius:0 var(--paper-radius) var(--paper-radius) 0}
 :root[data-theme="dark"] main.focus-mode>#detail{border-radius:var(--paper-radius)}
 :root[data-theme="dark"] main:after{background:url('/forest-footer-night.webp') center bottom/100% auto no-repeat!important;border-radius:0 0 var(--paper-radius) var(--paper-radius);overflow:hidden}
 :root[data-theme="dark"] main>.split{background:linear-gradient(90deg,transparent 3px,#344453 3px,#344453 4px,transparent 4px)}
 :root[data-theme="dark"] #detail,:root[data-theme="dark"] #inspector{scrollbar-color:#52636e transparent}
}
:root[data-theme="dark"] :is(body.signed-out .welcome-gate,#ntMaintenanceScreen .welcome-gate),:root[data-theme="dark"] .mobile-gate{background:#0f1b24;background-image:linear-gradient(0deg,#0d162040,#0d162010),url('/forest-welcome-night.webp');background-position:center;background-size:cover;background-repeat:no-repeat}

/* 1.6.38 (110): seamless night landscape and categorized preferences. */
:root[data-theme="dark"] header{position:relative;isolation:isolate;background:#10202a!important}
:root[data-theme="dark"] header::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:url('/forest-header-night.webp') center/auto 100% no-repeat;mask-image:linear-gradient(90deg,transparent,black 20%,black 80%,transparent);width:min(100%,930px);margin:auto}
/* The mask must follow the actual image rectangle, not the full viewport. */
@media(min-width:761px){:root[data-theme="dark"] header::before{width:min(100%,920px);background-size:100% auto}}
:root[data-theme="dark"] main>.forest-rail{position:relative;isolation:isolate;background:#10202a!important}
@media(min-width:761px){:root[data-theme="dark"] main>.forest-rail::before{content:"";position:absolute;z-index:-1;pointer-events:none;left:0;right:0;bottom:56px;aspect-ratio:81/453;max-height:55%;background:url('/forest-rail-night.webp') center bottom/100% 100% no-repeat;mask-image:linear-gradient(to bottom,transparent 0%,black 14%,black 84%,transparent 100%)}}
:root[data-theme="dark"] .quick-create button,:root[data-theme="dark"] #detail button.export-icon,:root[data-theme="dark"] .folder-toolbar .folder-select{background:#21343e;border-color:#344853;color:#dce8ed}
:root[data-theme="dark"] .inspector-tabs,:root[data-theme="dark"] #inspector .inspector-card{background:#1c2d36;border-color:#344853;color:var(--ink)}
:root[data-theme="dark"] .inspector-tabs button{background:transparent;color:var(--ink)}
#preferences{width:min(880px,calc(100vw - 32px));height:min(580px,calc(100dvh - 40px));max-height:calc(100dvh - 40px);padding:0;overflow:hidden;border-radius:20px}
#preferences[open]{display:flex;flex-direction:column}
#preferences .pref-header,#preferences .pref-footer{display:flex;align-items:center;gap:12px;flex:none;padding:16px 22px}
#preferences .pref-header{border-bottom:1px solid var(--line)}
#preferences .pref-header h2{margin:0;flex:1}
#preferences #prefCloseIcon{font-size:24px;line-height:1;padding:3px 8px;background:transparent;border:0;color:inherit}
#preferences .pref-layout{display:grid;grid-template-columns:minmax(185px,32%) minmax(0,1fr);flex:1;min-height:0}
#preferences .pref-nav{display:flex;flex-direction:column;gap:5px;overflow:auto;padding:12px;background:#eeefe1;border-right:1px solid var(--line)}
#preferences .pref-nav button{display:flex;align-items:center;gap:10px;min-height:42px;width:100%;text-align:left;padding:8px 10px;border:1px solid transparent;background:transparent;color:inherit;box-shadow:none;font-size:14px}
#preferences .pref-nav button svg{width:19px;height:19px;flex:0 0 19px;color:#52743a;position:static}
#preferences .pref-nav button[aria-pressed=true]{background:#dce7c7;border-color:#cedbb7;font-weight:600}
#preferences .pref-nav button:hover:not(:disabled){background:#e1e8d2}
#preferences .pref-content{overflow:auto;min-width:0;min-height:0;padding:18px 22px;overscroll-behavior:contain;scrollbar-width:thin}
#preferences .pref-group{margin:0;padding:0;border:0;background:transparent}
#preferences .pref-group h3{font-size:18px;margin:0 0 18px;color:inherit}
#preferences .pref-footer{border-top:1px solid var(--line);justify-content:flex-end}
#preferences #prefStatus{margin:0;min-height:0;flex:1;color:var(--muted)}
#preferences .pref-about{text-align:center;padding-top:30px}
#preferences .pref-about img{display:block;margin:0 auto 12px}
#preferences .pref-about p{margin:8px 0}
:root[data-theme="dark"] #preferences .pref-nav{background:#14232c}
:root[data-theme="dark"] #preferences .pref-nav button svg{color:#a9c694}
:root[data-theme="dark"] #preferences .pref-nav button[aria-pressed=true],:root[data-theme="dark"] #preferences .pref-nav button:hover:not(:disabled){background:#293f49;border-color:#405663}
:root[data-theme="dark"] #preferences #prefPreview,:root[data-theme="dark"] #preferences .pref-group>button{background:#20343e;color:var(--ink);border-color:#405663}
@media(max-width:560px){#preferences .pref-layout{grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr)}#preferences .pref-nav{flex-direction:row;overflow:auto;border-right:0;border-bottom:1px solid var(--line);padding:8px}#preferences .pref-nav button{width:auto;flex:none;white-space:nowrap}#preferences .pref-content{padding:14px}#preferences .pref-header,#preferences .pref-footer{padding:12px 14px}}

/* 1.6.39: trash workspace and cool inspector tabs */
.trash-scope{display:flex;align-items:center;gap:9px;width:100%;text-align:left;padding:8px;margin:0 0 4px;background:transparent;border:1px solid transparent;border-radius:8px}.trash-scope span:not(.glyph){flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.trash-scope small{margin-left:auto;font-variant-numeric:tabular-nums;color:var(--muted)}.trash-scope.active,.trash-scope:hover:not(:disabled){background:#e3ebd2;border-color:#d0ddbd}.trash-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:10px 0}.trash-toolbar>span:first-child{margin-right:auto}.trash-toolbar select{width:auto;max-width:100%}.trash-danger{color:#a33e35!important;border-color:#d6aaa0!important;background:#f8eae3!important}.trash-entry>input{flex:none;margin:0 8px}.trash-back{margin-bottom:12px}.trash-entry .folder-entry-copy{min-width:0}.trash-entry .folder-note-preview{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.trash-toolbar button svg{width:16px;height:16px;vertical-align:middle;margin-right:4px}
:root[data-theme="dark"] #inspector .inspector-tabs{background:#1c2d36;border-color:#344853}:root[data-theme="dark"] #inspector .inspector-tabs button{background:#1c2d36!important;color:#d0e0e9;border-left-color:#344853;box-shadow:none}:root[data-theme="dark"] #inspector .inspector-tabs button.active,:root[data-theme="dark"] #inspector .inspector-tabs button:hover{background:#293e49!important;color:#eef5fa}:root[data-theme="dark"] #inspector .inspector-tabs button.active{border-bottom-color:#8baab9}:root[data-theme="dark"] .project-center .center-link:hover,:root[data-theme="dark"] .project-center .center-link:focus-visible{background:#293e49;border-color:#405561}:root[data-theme="dark"] .trash-scope{background:transparent;color:var(--ink);border-color:transparent}:root[data-theme="dark"] .trash-scope.active,:root[data-theme="dark"] .trash-scope:hover:not(:disabled){background:#293e49;border-color:#405561}:root[data-theme="dark"] .trash-danger{background:#382b30!important;border-color:#64454a!important;color:#f0b6af!important}
.import-dialog{width:min(640px,90vw);max-height:85vh;overflow:auto}.import-preview{max-height:36vh;overflow:auto;border:1px solid var(--line);border-radius:10px;padding:12px;margin:12px 0}.import-preview>div{padding:5px 0;overflow-wrap:anywhere;border-bottom:1px solid var(--line)}

/* Compact contextual actions, independent of global file context menu. */
.additional-actions{position:relative;flex:none;display:inline-block;align-self:center;z-index:5}
.additional-actions[open]{z-index:30}
.additional-trigger{box-sizing:border-box;list-style:none;display:grid;place-items:center;width:36px;height:36px;border:1px solid #d3ddc2;border-radius:8px;background:#e8ecd9;color:#426b35;font-size:24px;font-weight:bold;cursor:pointer;line-height:1}
.additional-trigger::-webkit-details-marker{display:none}
.additional-trigger:hover,.additional-actions[open]>.additional-trigger{background:#dce7c7}
.additional-panel{position:absolute;top:calc(100% + 5px);right:0;min-width:215px;padding:5px;border:1px solid #d3ddc2;border-radius:10px;background:#faf9ee;box-shadow:0 8px 22px #13241025;display:grid;gap:2px}
#detail .additional-panel .additional-action{display:flex;align-items:center;gap:9px;text-align:left;white-space:nowrap;padding:9px;border:0;background:transparent;color:#354b2e;border-radius:6px;min-height:34px;font-size:13px}
.additional-action svg{width:18px;height:18px;flex:none}
#detail .additional-panel .additional-action:hover{background:#e5ead5}
:root[data-theme="dark"] .additional-trigger,:root[data-theme="dark"] .additional-panel{background:#21343e;color:#dce8ed;border-color:#344853}
:root[data-theme="dark"] #detail .additional-panel .additional-action{color:#dce8ed}
:root[data-theme="dark"] #detail .additional-panel .additional-action:hover,:root[data-theme="dark"] .additional-trigger:hover{background:#304651}

/* Project management: compact filters and personal pins. */
.project-list-tools{display:grid;gap:6px;padding:0 0 10px;min-width:0}.project-list-tools input,.project-list-tools select{width:100%;min-width:0;box-sizing:border-box;font:inherit;font-size:13px;border:1px solid var(--line);border-radius:8px;padding:7px 9px;background:transparent;color:inherit}.project-list-tools option{color:var(--ink);background:#faf8ee}.project-order-row{display:flex;align-items:center;gap:4px;min-width:0}.project-center #items .project-order-row .center-project{flex:1;min-width:0;width:auto}.project-order-pin{flex:0 0 30px;width:30px;height:32px;padding:5px;border:0;background:transparent;color:var(--muted);border-radius:7px}.project-order-pin svg{width:17px;height:17px}.project-order-pin[aria-pressed=true]{color:var(--accent)}.project-order-pin:hover,.project-order-pin:focus-visible{background:color-mix(in srgb,currentColor 12%,transparent)}:root[data-theme=dark] .project-list-tools option{background:#20323d;color:#d0e0e9}:root[data-theme=dark] .project-order-pin[aria-pressed=true]{color:#a9c7d7}

/* build 115: keep project controls' focus rings inside the scrolling panel */
.project-list-tools{padding:3px 4px 10px;box-sizing:border-box}.project-list-tools input:hover,.project-list-tools select:hover{border-color:var(--accent)}.project-list-tools input:focus,.project-list-tools select:focus{outline:2px solid var(--accent);outline-offset:-2px;box-shadow:none}.export-policy-line>span:first-child{flex:1;min-width:0}.export-policy-line input{flex-shrink:0}

/* 1.6.44: unified spaces and accessible selection */
.trash-scope[data-project-tinted]{min-height:44px;color:#21362d}.trash-scope[data-project-tinted] small{color:inherit}.trash-scope[aria-pressed="true"]{outline:2px solid #819d65;outline-offset:-2px}.trash-scope .glyph img,.favorite-space-label .glyph img{width:100%;height:100%;object-fit:cover;border-radius:inherit}.favorite-entry .folder-entry-open{min-height:60px;height:auto;padding-block:6px}.favorite-entry .folder-entry-copy{min-width:0;gap:3px;line-height:1.35}.favorite-entry .folder-entry-copy small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.favorite-entry>input{flex:none;margin:0 8px}.favorite-space-label{display:inline-flex;align-items:center;gap:4px;align-self:flex-start;border-radius:5px;padding:2px 6px;font-size:11px;max-width:100%;color:#21362d}.favorite-space-label .glyph{width:18px;height:18px;min-width:18px;border-radius:4px!important}.favorite-space-label svg{width:13px;height:13px}.tree-panel #items.unified-items .unified-tree-row{height:auto;min-height:46px;flex:0 0 auto}.tree-panel #items.unified-items .unified-tree-row .item{height:auto;min-height:46px}.tree-panel #items.unified-items .unified-tree-row .item-copy{line-height:1.3}.nt-picked>.item,.nt-picked>.folder-entry-open{outline-offset:-1px}:root[data-theme="dark"] .nt-picked>.item,:root[data-theme="dark"] .nt-picked>.folder-entry-open{background:#304753!important;outline:1px solid #698b9b}:root[data-theme="dark"] .trash-scope[aria-pressed="true"]{outline-color:#a1bcc9}

/* 1.6.46: unified list controls and selection */
#detail .trash-entry>input[type=checkbox],#detail .favorite-entry>input[type=checkbox]{width:17px!important;min-width:17px!important;max-width:17px!important;height:17px!important;min-height:17px!important;flex:0 0 17px;padding:0;margin:0 8px;accent-color:var(--accent);cursor:pointer}
#detail .unified-sort{margin:0;flex:none;position:relative;z-index:5}
#detail .unified-sort summary{display:grid;place-items:center;width:34px;height:34px;padding:0;box-sizing:border-box}
#detail .unified-sort summary svg{width:19px;height:19px}
#detail .unified-sort .additional-action[aria-pressed=true]{font-weight:600;background:#e5ead5}
:root[data-theme=dark] #detail .unified-sort .additional-action[aria-pressed=true]{background:#304651}
#detail .favorite-entry .folder-entry-open{min-height:52px;height:auto;padding-block:6px}
#detail .favorite-entry .folder-entry-copy small{max-width:100%;line-height:1.4}
/* 1.6.47: fixed modal chrome, bounded history scrolling and shared trash actions. */
#eventsDialog[open]{display:flex;flex-direction:column;overflow:hidden;max-height:min(85dvh,calc(100dvh - 28px));gap:0;outline:none}
#eventsDialog .event-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:none}
#eventsDialog .event-heading h2{margin:0}
#eventCloseIcon{flex:none;width:34px;height:34px;padding:0;font-size:23px;line-height:1;border-radius:8px}
#eventsDialog .event-center-tabs,#eventsDialog .event-footer{flex:none}
#eventsDialog .event-footer{display:flex;justify-content:flex-end;padding-top:12px;border-top:1px solid var(--line)}
#eventsDialog #eventRows{min-height:0;overflow:auto;overscroll-behavior:contain;margin-bottom:8px}
#eventsDialog .event-center-section:not([hidden]){display:flex;flex-direction:column;min-height:0;overflow:auto;overscroll-behavior:contain}
#eventsDialog .activity-controls{flex:none;position:sticky;top:0;z-index:2;background:inherit}
#eventsDialog .activity-list{min-height:0;overflow:auto;overscroll-behavior:contain}
#eventsDialog .activity-list+button{flex:none;align-self:start;margin-bottom:8px}
/* Skip layout/paint of offscreen history rows without removing keyboard targets. */
.activity-list>.activity-row{content-visibility:auto;contain-intrinsic-size:auto 78px}
:root[data-theme="dark"] #detail .trash-danger{background:#402b30!important;border-color:#795057!important;color:#f0b5ae!important}
#detail .trash-danger:disabled{opacity:.5}

/* Keep project-history filters usable in the narrow inspector. */
.object-activity .activity-controls{grid-template-columns:minmax(0,1fr)}
.object-activity .activity-row{flex-wrap:wrap}
/* Defer painting offscreen folder entries without removing keyboard/drag targets. */
.folder-contents>.folder-entry{content-visibility:auto;contain-intrinsic-size:auto 64px}

/* Feedback: preserve message formatting, prevent long text from overflowing. */
.feedback-message{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.55}
#accountContent textarea{width:100%;min-height:120px;resize:vertical;font:inherit;color:inherit;background:transparent;border:1px solid currentColor;border-radius:8px;padding:10px;box-sizing:border-box}
#accountContent .history-row{overflow-wrap:anywhere}

/* Feedback attachment previews, shared fitted photo viewer. */
.feedback-gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:10px;margin:10px 0;max-width:100%}
.feedback-photo{min-width:0;display:flex;flex-direction:column;gap:6px;align-items:stretch;overflow-wrap:anywhere}
.feedback-photo img.media{display:block;width:100%;height:112px;object-fit:contain;cursor:zoom-in;border-radius:8px;background:rgba(127,127,127,.09)}
.feedback-photo button{font-size:12px;padding:5px 8px;min-height:28px}

.feedback-thread-user{border-inline-start:3px solid #8799a6;margin-inline-start:12px}.feedback-thread-admin{border-inline-start:3px solid #63876c}.feedback-message{white-space:pre-wrap;overflow-wrap:anywhere}

.support-count{display:inline-block;width:max-content;padding:3px 8px;border-radius:12px;background:#37754c;color:white;font-size:12px;font-weight:600}.support-count[hidden]{display:none}

.feedback-filter{display:inline-flex;align-items:center;gap:6px;font-size:13px;white-space:normal}.feedback-filter input{width:auto;min-width:0;margin:0}.history-row[hidden],.ticket-row[hidden]{display:none!important}

/* Compact photo attachments in feedback conversations. */
.feedback-gallery.thread-photo-gallery,.feedback-gallery.thread-draft-gallery{display:flex;flex-wrap:wrap;gap:8px;align-items:flex-start;margin:8px 0}
.thread-photo-gallery .feedback-photo,.thread-draft-gallery .feedback-photo{width:min(124px,100%);flex:0 0 auto}
.thread-photo-gallery .feedback-photo img.media,.thread-draft-gallery .feedback-photo img.media{height:96px;object-fit:contain;cursor:zoom-in}
.thread-draft-gallery:empty{display:none}

.thread-day{text-align:center;font-size:12px;opacity:.75;padding:7px 4px;align-self:center;justify-self:center;grid-column:1/-1}
 .feedback-thread-scroll{display:flex;flex-direction:column;gap:8px;max-height:min(48vh,480px);overflow:auto;overscroll-behavior:contain;min-width:0;padding:4px;overflow-anchor:none}
.feedback-thread-scroll .feedback-thread-user{margin-left:24px}.feedback-thread-scroll .feedback-thread-admin{margin-right:24px}

/* Support workspace: separate from event notifications. */
#account{position:relative;overflow:visible}
#account .profile-support-badge,#accountContent .support-count{background:#a83232!important;color:#fff!important;border:1px solid #fff9;font-size:12px;font-weight:700;line-height:1.35;border-radius:20px;padding:3px 8px;white-space:nowrap;display:inline-flex;align-items:center;justify-content:center;flex:none}
#account .profile-support-badge{position:absolute;top:-3px;right:-4px;min-width:19px;height:19px;padding:0 4px;z-index:2;box-sizing:border-box;font-size:11px}
#account .profile-support-badge[hidden],#accountContent .support-count[hidden]{display:none!important}
#accountContent [data-support-account] .support-count{margin-left:auto}
#accountDialog.support-dialog{--support-bg:#f8faf6;--support-panel:#fff;--support-line:#dce4d9;--support-text:#20382b;--support-muted:#546459;--support-selected:#e6f0e5;--support-accent:#3b754d;width:min(1140px,calc(100vw - 32px));max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);padding:24px;box-sizing:border-box;background:var(--support-bg);color:var(--support-text)}
:root[data-theme="dark"] #accountDialog.support-dialog{--support-bg:#192821;--support-panel:#22362b;--support-line:#3c5044;--support-text:#eef5ee;--support-muted:#b8c8bc;--support-selected:#314b39;--support-accent:#8dc39a}
#accountDialog.support-dialog #accountContent{display:flex;flex-direction:column;gap:14px;margin:0;min-width:0}
.support-dialog #accountTitle{font-size:23px;margin:0 0 14px}
.support-dialog .muted,.support-dialog small{color:var(--support-muted)}
.support-top,.support-list-actions,.support-ticket-head,.support-ticket-meta,.support-search{display:flex;align-items:center;gap:10px;justify-content:space-between;min-width:0}
.support-top p{margin:0;line-height:1.5}.support-top button{flex:none}
.support-workspace{display:grid;grid-template-columns:minmax(290px, .85fr) minmax(0,1.35fr);gap:16px;height:min(68dvh,700px);min-height:320px}
.support-list-pane,.support-detail-pane{border:1px solid var(--support-line);border-radius:14px;background:var(--support-panel);min-height:0;min-width:0;padding:14px;box-sizing:border-box;display:flex;flex-direction:column;gap:10px;overflow:auto}
.support-toolbar{display:grid;gap:9px;min-width:0}.support-search input{flex:1;min-width:0;width:100%}.support-search button{flex:none}
.support-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.support-filters select{width:100%;min-width:0;font:inherit;font-size:12px;padding:7px 5px;border:1px solid var(--support-line);border-radius:8px;color:var(--support-text);background:var(--support-bg)}
.support-list-actions .feedback-filter{margin:0}.support-list{display:grid;align-content:start;gap:8px;overflow:auto;min-height:0;flex:1;padding:2px}
#accountContent .support-ticket{width:100%;text-align:left;display:flex;flex-direction:column;align-items:stretch;gap:7px;padding:12px;border:1px solid var(--support-line);border-radius:10px;background:var(--support-panel);color:var(--support-text);white-space:normal;box-sizing:border-box;min-width:0}
#accountContent .support-ticket:hover,#accountContent .support-ticket.selected{background:var(--support-selected);border-color:var(--support-accent)}
#accountContent .support-ticket.support-unread{border-inline-start:3px solid #b43e3e}
.support-ticket p{margin:0;font-size:13px;font-weight:400;line-height:1.45;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.support-ticket-meta{font-size:11px}.support-status{font-size:11px;font-weight:600;background:var(--support-selected);padding:3px 7px;border-radius:6px;color:var(--support-text)}
.support-empty{margin:auto;max-width:270px;text-align:center;color:var(--support-muted);line-height:1.6}
.support-detail-pane h3,.support-detail-pane p{margin:0}.support-detail-pane>.muted{font-size:12px}.support-original{border:1px solid var(--support-line);border-radius:10px;padding:12px;max-height:25%;overflow:auto;flex-shrink:0}.support-original .feedback-message{margin:0}
.support-detail-pane .feedback-thread-scroll{flex:1;min-height:90px;max-height:none;overflow:auto;padding:8px 3px}.support-detail-pane .history-row{max-width:88%;width:fit-content;border:1px solid var(--support-line);border-radius:12px;padding:10px 12px;display:grid;gap:5px;margin:0}.support-detail-pane .feedback-thread-user{align-self:flex-end;background:var(--support-selected)}.support-detail-pane .feedback-thread-admin{align-self:flex-start;background:var(--support-bg)}.support-detail-pane .thread-day{align-self:center}.support-composer{display:grid;gap:7px;flex-shrink:0}.support-composer .actions{display:flex;flex-wrap:wrap;gap:6px}.support-composer .muted{font-size:11px}.support-composer .muted:empty{display:none}
#accountContent .support-composer textarea{min-height:65px;height:75px;max-height:140px;border:1px solid var(--support-line);background:var(--support-bg);resize:vertical}
.support-back{display:none!important}.support-detail-pane button,.support-list-pane button{font-size:12px}.support-dialog .support-thread-heading{font-size:14px}.support-dialog .thread-draft-gallery{max-height:120px;overflow:auto}
@media(max-width:760px){#accountDialog.support-dialog{padding:16px;width:calc(100vw - 18px);max-width:calc(100vw - 18px)}.support-top{align-items:flex-start;flex-direction:column}.support-workspace{display:block;height:min(69dvh,650px)}.support-list-pane,.support-detail-pane{height:100%}.support-detail-pane{display:none}.support-detail-mode .support-detail-pane{display:flex}.support-detail-mode .support-list-pane{display:none}.support-dialog .support-back{display:block!important;align-self:flex-start}}

/* Simplified user support navigation; administrative filters remain server-side. */
.support-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;padding:4px;border:1px solid var(--support-line);border-radius:11px;background:var(--support-bg);flex:none}
#accountContent .support-tab{min-width:0;width:100%;margin:0;padding:9px 5px;border:1px solid transparent;border-radius:8px;background:transparent;color:var(--support-muted);font-size:13px;font-weight:600;white-space:normal;line-height:1.3}
#accountContent .support-tab[aria-pressed="true"]{background:var(--support-selected);border-color:var(--support-line);color:var(--support-text)}
#accountContent .support-tab:hover{color:var(--support-text);border-color:var(--support-accent)}
#accountContent .support-tab:focus-visible{outline:2px solid var(--support-accent);outline-offset:2px}
.support-pagination{justify-content:space-between;align-items:center;gap:6px;flex-wrap:wrap}

/* Support: compact refresh action and semantic ticket statuses. */
.support-top-actions{display:flex;align-items:center;gap:8px;flex:none}
#accountContent .support-refresh-icon{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;min-width:34px;min-height:34px;padding:0;margin:0;border:1px solid var(--support-line);border-radius:8px;background:var(--support-panel);color:var(--support-text);box-shadow:none;flex:none}
#accountContent .support-refresh-icon svg{width:18px;height:18px;pointer-events:none}
#accountContent .support-refresh-icon:hover:not(:disabled){background:var(--support-selected);border-color:var(--support-accent)}
#accountContent .support-refresh-icon:focus-visible{outline:2px solid var(--support-accent);outline-offset:2px}
#accountContent .support-refresh-icon:disabled{opacity:.45;cursor:default}
.support-detail-meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap;flex:none}
.support-status{display:inline-flex;align-items:center;gap:5px;line-height:1.35;white-space:nowrap;font-size:12px;padding:3px 8px}
.support-status::before{content:'';width:6px;height:6px;border-radius:50%;background:currentColor;flex:none}
.support-status.status-new{background:#e5efff;color:#184d98}
.support-status.status-reviewing{background:#fff0d6;color:#805009}
.support-status.status-resolved{background:#dff3e4;color:#21603a}
:root[data-theme="dark"] .support-status.status-new{background:#223d60;color:#b1d1ff}
:root[data-theme="dark"] .support-status.status-reviewing{background:#4b371c;color:#ffd18a}
:root[data-theme="dark"] .support-status.status-resolved{background:#244633;color:#b0e6bf}
@media(max-width:760px){.support-top-actions{align-self:flex-end}}

/* Support status events and compact composer controls */
#accountDialog .support-action-icon{display:inline-flex;align-items:center;justify-content:center;flex:0 0 36px;width:36px;height:36px;min-width:36px;min-height:36px;padding:0;border-radius:8px;line-height:1}
#accountDialog .support-action-icon svg{width:19px;height:19px;flex:none}
.support-status-event{align-self:center;display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap;font-size:12px;padding:5px 8px;margin:6px auto;max-width:100%;text-align:center}

#accountDialog .support-tab{display:flex;align-items:center;justify-content:center;gap:6px}
#accountDialog input[type=file][hidden]{display:none!important}

/* Support message actions: ordinary text buttons and a compact attachment control. */
#accountDialog .support-message-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px;margin-top:8px}
#accountDialog .support-message-actions>button:not(.support-action-icon){display:inline-flex;align-items:center;justify-content:center;min-height:36px;height:auto;padding:7px 12px;line-height:20px;flex:0 0 auto;white-space:nowrap;margin:0}
#accountDialog .support-message-actions>.support-action-icon{width:36px;height:36px;min-width:36px;min-height:36px;max-width:36px;max-height:36px;padding:0;margin:0;flex:0 0 36px;align-self:center}
#accountDialog .support-message-actions>.support-action-icon svg{display:block;width:18px;height:18px;max-width:18px;max-height:18px;flex:none}
#accountDialog .support-photo-count{font-size:12px;line-height:1.3;white-space:nowrap;color:var(--support-muted);font-variant-numeric:tabular-nums;flex:none}
#accountDialog .support-photo-count[hidden],#accountDialog .feedback-gallery:empty,#accountDialog .account-error:empty{display:none!important}

/* Keep destructive navigation separate from the send action. */
#accountDialog.support-compose-mode .support-compose-nav{display:flex;align-items:center;justify-content:flex-start;margin:0 0 2px}
#accountDialog.support-compose-mode .support-compose-back{display:inline-flex;align-items:center;width:auto;min-height:32px;padding:4px 9px;margin:0;line-height:20px;font-size:13px;font-weight:500;color:var(--support-text);background:transparent;border:1px solid var(--support-line);border-radius:8px;box-shadow:none}
#accountDialog.support-compose-mode .support-compose-back:hover:not(:disabled){background:var(--support-selected)}


/* 1.7.4 — share the actual sign-in scene, not the workspace background. */
#ntMaintenanceScreen{position:fixed;inset:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;overflow:auto;box-sizing:border-box}
#ntMaintenanceScreen[open]{display:block}
#ntMaintenanceScreen::backdrop{background:#19391f}
#ntMaintenanceScreen .welcome-gate{width:100%;min-height:100%}
#ntMaintenanceScreen .welcome-card{visibility:visible}
#ntMaintenanceScreen .welcome-card p{white-space:pre-wrap;overflow-wrap:anywhere}
#ntMaintenanceScreen .welcome-card .nt-maintenance-caption{font-size:14px;margin:18px 0 0}
#ntMaintenanceScreen .welcome-card .nt-maintenance-actions button{width:100%}

/* Website update banner: external stylesheet required by Content-Security-Policy. */
#siteUpdateBanner{position:fixed;right:20px;bottom:20px;z-index:1100;width:min(400px,calc(100vw - 40px));max-width:100%;padding:16px;border:1px solid var(--line);border-radius:14px;background:#faf9ef;color:#263322;box-shadow:0 6px 24px #0004;}
#siteUpdateBanner[hidden]{display:none!important}
#siteUpdateBanner strong{display:block;font-size:16px;margin-bottom:6px}
#siteUpdateBanner p{margin:0 0 12px;font-size:14px}
#siteUpdateBanner button{margin:4px 8px 0 0}
:root[data-theme="dark"] #siteUpdateBanner{background:#20343e;color:#dce8ed;border-color:#405663}

/* Account quota: scoped, theme-aware layout. */
#accountDialog .quota-panel{display:grid;gap:12px;padding:8px 0 16px;text-align:left;--quota-card:#f2f3e5;--quota-plan:#e5ecd2;--quota-track:#dce4ce;--quota-fill:#477b3c;--quota-muted:#657158;--quota-warning:#a44b3e}
:root[data-theme="dark"] #accountDialog .quota-panel{--quota-card:#23343d;--quota-plan:#2c414b;--quota-track:#405663;--quota-fill:#8bbd90;--quota-muted:#c0d0d5;--quota-warning:#e4a29a}
#accountDialog .quota-plan,#accountDialog .quota-card{border:1px solid var(--line);border-radius:12px;padding:14px 16px;background:var(--quota-card);min-width:0}
#accountDialog .quota-plan{display:flex;align-items:center;justify-content:space-between;gap:12px;background:var(--quota-plan);flex-wrap:wrap}
#accountDialog .quota-plan strong{font-size:16px;overflow-wrap:anywhere}
#accountDialog .quota-label,#accountDialog .quota-hint{font-size:12px;color:var(--quota-muted);margin:0}
#accountDialog .quota-head{display:flex;align-items:center;gap:9px;font-weight:650;font-size:14px}
#accountDialog .quota-head svg,#accountDialog .quota-refresh svg{width:18px;height:18px;color:var(--quota-fill);flex:none}
#accountDialog .quota-value{display:flex;align-items:baseline;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:8px 0}
#accountDialog .quota-value strong{font-size:24px;line-height:1.2;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
#accountDialog .quota-value span{color:var(--quota-muted);font-size:14px}
#accountDialog .quota-card progress{display:block;width:100%;height:8px;border:0;border-radius:8px;overflow:hidden;background:var(--quota-track);appearance:none;margin:10px 0}
#accountDialog .quota-card progress::-webkit-progress-bar{background:var(--quota-track)}
#accountDialog .quota-card progress::-webkit-progress-value{background:var(--quota-fill);border-radius:8px}
#accountDialog .quota-card progress::-moz-progress-bar{background:var(--quota-fill);border-radius:8px}
#accountDialog .quota-card progress.quota-over::-webkit-progress-value{background:var(--quota-warning)}
#accountDialog .quota-card progress.quota-over::-moz-progress-bar{background:var(--quota-warning)}
#accountDialog .quota-refresh{display:flex;align-items:center;justify-content:center;gap:7px;justify-self:end;padding:6px 12px}
#accountDialog .quota-back{display:block;width:100%;text-align:center;color:inherit;margin:0}
