/* Annotation private content editor */
body[data-view="editor"]{background:#f3f6fc;overflow-x:hidden}
body[data-view="editor"] .mode-sidebar,body[data-view="editor"] .page-corner-nav{display:none}
.editor-view{min-height:100vh!important;padding:0!important;background:#f3f6fc;color:#172027;font-family:var(--sans)}
.editor-view button,.editor-view input,.editor-view textarea{font:inherit}
.editor-view .hidden{display:none!important}
.editor-lock{min-height:100vh;display:grid;place-items:center;background:radial-gradient(circle at 50% 20%,#fff 0,#f0ede6 42%,#d9d5cb 100%)}
.editor-lock-card{width:min(420px,calc(100vw - 40px));padding:48px;border:1px solid #cbc7bc;border-radius:28px;background:rgba(255,255,255,.76);box-shadow:0 28px 80px rgba(28,32,34,.12);backdrop-filter:blur(18px)}
.editor-lock-card .annotation-mark{width:58px;height:auto;color:#172027}.editor-lock-card>p{margin:28px 0 8px;font-size:10px;letter-spacing:.18em}.editor-lock-card h1{margin:0;font:700 34px/1.1 var(--sans)}.editor-lock-card>span{display:block;margin:14px 0 28px;color:#6d7478;font-size:12px;line-height:1.7}
.editor-lock-card form{display:grid;gap:10px}.editor-lock-card input{height:48px;padding:0 16px;border:1px solid #cdd8eb;border-radius:12px;background:#fff;outline:none}.editor-lock-card input:focus{border-color:#3472d9;box-shadow:0 0 0 3px rgba(239,118,92,.13)}.editor-lock-card form button{height:48px;border:0;border-radius:12px;background:#172027;color:#fff;font-weight:700;cursor:pointer}.editor-lock-card small{display:block;min-height:18px;margin-top:10px;color:#c55342}.editor-exit-link{border:0;background:none;color:#60686c;cursor:pointer;padding:8px 0}
.editor-app{min-height:100vh}.editor-topbar{height:78px;display:flex;align-items:center;gap:30px;padding:0 28px;border-bottom:1px solid #d4ddeb;background:rgba(247,245,239,.93);position:sticky;top:0;z-index:20;backdrop-filter:blur(18px)}
.editor-brand{display:flex;align-items:center;gap:12px;min-width:238px}.editor-brand .annotation-mark{width:34px;height:auto}.editor-brand div{display:grid;gap:2px}.editor-brand b{font-size:14px}.editor-brand span{font-size:8px;letter-spacing:.14em;color:#7c8285}
.editor-tabs{display:flex;align-self:stretch}.editor-tabs button{padding:0 19px;border:0;border-bottom:2px solid transparent;background:none;color:#777d80;cursor:pointer}.editor-tabs button.active{border-color:#3472d9;color:#172027;font-weight:700}
.editor-actions{margin-left:auto;display:flex;gap:8px}.editor-actions button{padding:10px 14px;border:1px solid #cdd8eb;border-radius:10px;background:#fff;color:#263036;cursor:pointer}.editor-actions button:last-of-type{background:#172027;color:#fff;border-color:#172027}
.editor-workspace{min-height:calc(100vh - 78px);display:grid;grid-template-columns:230px minmax(520px,1fr) 220px}
.editor-pages{padding:26px 18px;border-right:1px solid #d4ddeb;background:#eff4fc}.editor-pages>div:first-child{padding:0 10px 18px}.editor-pages p,.editor-inspector>p{margin:0 0 5px;font-size:8px;letter-spacing:.16em;color:#8b8f91}.editor-pages b{font-size:15px}.editor-pages #editor-page-list{display:grid;gap:3px;max-height:calc(100vh - 165px);overflow:auto}.editor-page-button{width:100%;padding:10px 11px;border:0;border-radius:9px;background:transparent;text-align:left;color:#62696c;cursor:pointer;display:flex;justify-content:space-between;gap:8px}.editor-page-button span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.editor-page-button small{color:#a1a4a5}.editor-page-button:hover{background:#ebe7de}.editor-page-button.active{background:#172027;color:#fff}.editor-page-button.active small{color:#b9d4ff}
.editor-fields-panel{padding:32px 34px;background:#f5f7fc;min-width:0}.editor-fields-panel>header{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:24px}.editor-fields-panel>header p{margin:0 0 6px;color:#3472d9;font-size:8px;letter-spacing:.16em}.editor-fields-panel>header h2{margin:0;font-size:28px}.editor-fields-panel>header span{display:block;margin-top:6px;color:#83888a;font-size:10px}.editor-fields-panel>header button{padding:11px 14px;border:1px solid #c5c2ba;border-radius:10px;background:#fff;cursor:pointer}
.editor-filter{display:flex;align-items:center;gap:12px;margin-bottom:14px}.editor-filter>input{flex:1;height:42px;padding:0 14px;border:1px solid #d4ddeb;border-radius:11px;background:#ffffff;outline:none}.editor-filter>div{display:flex;padding:3px;border:1px solid #d4ddeb;border-radius:11px;background:#ffffff}.editor-filter button{padding:7px 10px;border:0;border-radius:8px;background:transparent;color:#73797c;cursor:pointer}.editor-filter button.active{background:#172027;color:#fff}
.editor-field-list{display:grid;gap:10px;padding-bottom:80px}.editor-empty{padding:60px;border:1px dashed #bdbab1;border-radius:18px;text-align:center;color:#858a8c}.editor-field{padding:16px;border:1px solid #d6dfed;border-radius:15px;background:#ffffff;box-shadow:0 3px 12px rgba(34,38,39,.035)}.editor-field.changed{border-color:#ef9b86;background:#fffaf7}.editor-field>header{display:flex;align-items:center;gap:8px;margin-bottom:10px}.editor-field>header i{padding:4px 6px;border-radius:5px;background:#e7e4dc;color:#71777a;font-style:normal;font-size:7px;letter-spacing:.1em}.editor-field>header b{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;color:#50585c}.editor-field>header button{margin-left:auto;border:0;background:none;color:#a06b5f;font-size:9px;cursor:pointer}.editor-field textarea,.editor-field input[type="text"]{box-sizing:border-box;width:100%;padding:11px 12px;border:1px solid #d3ddeb;border-radius:10px;background:#fff;color:#1d282e;outline:none;resize:vertical;line-height:1.55}.editor-field textarea:focus,.editor-field input:focus{border-color:#3472d9;box-shadow:0 0 0 3px rgba(239,118,92,.1)}.editor-image-editor{display:grid;grid-template-columns:112px 1fr;gap:14px;align-items:center}.editor-image-preview{width:112px;height:72px;border-radius:10px;background:#ddd center/cover no-repeat;border:1px solid #d1cec6}.editor-image-controls{display:grid;gap:8px}.editor-image-controls div{display:flex;gap:8px}.editor-image-controls label{padding:8px 10px;border:1px solid #ccc9c1;border-radius:8px;background:#f4f1eb;font-size:9px;cursor:pointer}.editor-image-controls input[type="file"]{display:none}.editor-image-controls small{color:#858a8c}
.editor-inspector{padding:30px 22px;border-left:1px solid #d4ddeb;background:#eff4fc}.editor-inspector strong{display:block;margin:10px 0 0;font-size:46px}.editor-inspector>span{display:block;color:#777e81;font-size:10px;line-height:1.6}.editor-inspector button{width:100%;margin-top:18px;padding:10px;border:1px solid #cdd8eb;border-radius:10px;background:#fff;cursor:pointer}.editor-inspector hr{margin:28px 0;border:0;border-top:1px solid #d6dfed}
.editor-structure{padding:46px max(32px,6vw) 90px;min-height:calc(100vh - 78px);background:#f3f6fc}.editor-structure>header{max-width:820px}.editor-structure>header p,.return-matrix>header p{margin:0 0 8px;color:#3472d9;font-size:9px;letter-spacing:.17em}.editor-structure>header h2{margin:0;font-size:40px}.editor-structure>header span{display:block;margin-top:12px;color:#687074;line-height:1.7}
.structure-legend{display:flex;flex-wrap:wrap;gap:8px;margin:28px 0 14px}.structure-legend span,.node-relations span{display:inline-flex;align-items:center;min-height:24px;padding:4px 9px;border-radius:999px;font-size:9px;line-height:1.35}.relation-enter{background:#dcece3;color:#286045}.relation-next{background:#f9dfd6;color:#a14834}.relation-back{background:#e5e7e8;color:#566066}.relation-finish{background:#f2e8bd;color:#725f17}
.structure-tree-shell{padding:30px;border:1px solid #c9c6bd;border-radius:24px;background:#f7f5ef;overflow:auto}.structure-tree,.structure-tree ol{list-style:none;margin:0;padding:0}.structure-tree ol{position:relative;margin-left:38px;padding:18px 0 0 34px}.structure-tree ol:before{content:"";position:absolute;left:10px;top:0;bottom:29px;border-left:1px solid #b8b9b4}.structure-tree li{position:relative;margin:0 0 14px}.structure-tree ol>li:before{content:"";position:absolute;left:-24px;top:29px;width:24px;border-top:1px solid #b8b9b4}.structure-tree ol>li:last-child:after{content:"";position:absolute;left:-25px;top:30px;bottom:-15px;width:3px;background:#f7f5ef}
.tree-node{position:relative;z-index:1;padding:17px 18px;border:1px solid #d0cdc5;border-radius:15px;background:#fff;box-shadow:0 4px 16px rgba(31,36,38,.035)}.tree-node header{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}.tree-node small{color:#3472d9;font-size:8px;letter-spacing:.13em}.tree-node h3{margin:0;font-size:16px}.tree-node header em{margin-left:auto;color:#8b9092;font-size:9px;font-style:normal}.tree-node>p{margin:8px 0 0;color:#697175;font-size:10px;line-height:1.6}.tree-root{border-color:#172027;background:#172027;color:#fff}.tree-root>p{color:#bdc4c7}.tree-root header em{color:#8f999e}.tree-hub{border-left:4px solid #3472d9}.tree-state{background:#f3f1eb}.tree-overlay{border-style:dashed;background:#fbfaf7}.tree-flow{background:#fdfbf6}.node-relations{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px}.mini-flow{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin-top:13px}.mini-flow b{padding:8px 10px;border:1px solid #d8d4cb;border-radius:8px;background:#fff;font-size:10px}.mini-flow i{color:#3472d9;font-style:normal;font-weight:700}
.return-matrix{margin-top:18px;padding:26px;border:1px solid #c9c6bd;border-radius:22px;background:#f7f5ef}.return-matrix>header{display:grid;grid-template-columns:1fr auto;align-items:end}.return-matrix>header p,.return-matrix>header h3{grid-column:1}.return-matrix>header h3{margin:0;font-size:22px}.return-matrix>header span{grid-column:2;grid-row:1/3;max-width:330px;color:#72797c;font-size:10px;line-height:1.6}.return-matrix>div{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-top:20px}.return-matrix article{padding:18px;border:1px solid #d6dfed;border-radius:14px;background:#fff}.return-matrix article small{color:#3472d9;font-size:8px;letter-spacing:.11em}.return-matrix article b{display:block;margin-top:7px;font-size:13px}.return-matrix article p{margin:8px 0 0;color:#70777a;font-size:10px;line-height:1.6}
.structure-notes{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:16px}.structure-notes article{padding:22px;border-radius:16px;background:#172027;color:#fff}.structure-notes p{margin:10px 0 0;color:#b9c0c3;font-size:11px;line-height:1.7}
.editor-return-chip{position:fixed;right:18px;bottom:18px;z-index:200;padding:11px 15px;border:1px solid rgba(255,255,255,.35);border-radius:999px;background:rgba(18,26,31,.9);color:#fff;font:700 10px var(--sans);box-shadow:0 8px 30px rgba(0,0,0,.25);backdrop-filter:blur(12px);cursor:pointer}
@media(max-width:1050px){.editor-workspace{grid-template-columns:190px 1fr}.editor-inspector{display:none}.structure-notes{grid-template-columns:1fr}.editor-brand{min-width:auto}.editor-brand div{display:none}.return-matrix>div{grid-template-columns:1fr}}
@media(max-width:720px){.editor-topbar{height:auto;min-height:72px;flex-wrap:wrap;padding:14px}.editor-tabs{order:3;width:100%;height:38px}.editor-tabs button{flex:1}.editor-actions button:not(:last-of-type){display:none}.editor-workspace{display:block}.editor-pages{border:0;padding:14px;position:sticky;top:110px;z-index:10}.editor-pages>div:first-child{display:none}.editor-pages #editor-page-list{display:flex;overflow:auto}.editor-page-button{min-width:max-content}.editor-fields-panel{padding:22px 14px}.editor-image-editor{grid-template-columns:1fr}.editor-image-preview{width:100%;height:150px}.editor-structure{padding:28px 14px 70px}.structure-tree-shell{padding:16px;overflow:visible}.structure-tree ol{margin-left:12px;padding-left:19px}.structure-tree ol:before{left:4px}.structure-tree ol>li:before{left:-15px;width:15px}.structure-tree ol>li:last-child:after{left:-16px}.tree-node header em{width:100%;margin:0}.return-matrix{padding:18px}.return-matrix>header{display:block}.return-matrix>header span{display:block;margin-top:10px}.mini-flow{align-items:stretch}.mini-flow b{flex:1 1 42%}.mini-flow i{display:none}}
