/* Scoped to the editor: reader themes and decorative layers must not interfere. */
body.editor-mode{--green:#0b5042;--ink:#17382f;--muted:#6a7973;--paper:#faf8f2;background:#faf8f2!important;color:#17382f!important}
.editor-mode main{min-width:0;max-width:1600px}
.editor-mode main::before,.editor-mode main::after{pointer-events:none!important}
.editor-mode .admin-brand{border:0;background:none;text-align:left;font:42px Georgia,serif;color:#fff;cursor:pointer}
.editor-mode fieldset{min-width:0;margin:0;padding:0;border:0}
.editor-mode fieldset:disabled{opacity:.6}
.editor-mode .admin-panel{min-width:0;position:relative;background:#fffdf9;color:#17382f;border:1px solid #e7e1d5;border-radius:15px;padding:22px}
.editor-mode button,.editor-mode select,.editor-mode input,.editor-mode textarea{font:inherit;max-width:100%;box-sizing:border-box}
.editor-mode input,.editor-mode select,.editor-mode textarea{background:#fffdf9!important;color:#17382f!important;border:1px solid #dcd7cb!important;border-radius:9px;padding:11px}
.editor-mode input::placeholder,.editor-mode textarea::placeholder{color:#7b8782!important}
.editor-mode button.primary,.editor-mode button.active,.editor-mode .admin-filter-tabs button.active{background:#0b5042!important;border-color:#0b5042!important;color:#fff!important}
.editor-mode button.secondary{color:#23493e;background:#fffdf9;border:1px solid #ddd8cc;border-radius:9px;padding:9px 13px}
.editor-mode button:hover:not(:disabled){filter:brightness(.97)}
.editor-mode button:focus-visible,.editor-mode input:focus-visible,.editor-mode select:focus-visible,.editor-mode textarea:focus-visible{outline:3px solid #b89450;outline-offset:3px}
.editor-mode button:disabled{opacity:.5;cursor:not-allowed}
.editor-mode .actions,.editor-mode .admin-page-actions{display:flex;gap:9px;flex-wrap:wrap}
.editor-mode .admin-page-head{gap:20px;align-items:center;position:relative;padding:15px 0 25px}
.editor-mode .admin-page-head h1{font:clamp(30px,4vw,52px)/1.12 Georgia,serif;overflow-wrap:anywhere}
.editor-mode .admin-content-tools{display:flex;flex-wrap:wrap;gap:12px;align-items:end}
.editor-mode .admin-content-tools>label{display:grid;gap:5px;font-size:12px;color:#64766d}
.editor-mode .admin-content-tools .admin-filter-tabs{flex:1 1 100%;flex-wrap:wrap;gap:7px}
.editor-mode .admin-content-table{overflow:visible}
.editor-mode .admin-story-row{grid-template-columns:minmax(190px,2.2fr) minmax(85px,1fr) 45px minmax(100px,1fr) minmax(65px,.7fr) minmax(85px,.8fr) 35px;gap:12px}
.editor-mode .admin-story-row>*{min-width:0;overflow-wrap:anywhere}
.editor-mode .admin-row-menu{position:relative}
.editor-mode .admin-row-menu[open]{z-index:8}
.editor-mode .admin-row-menu>div{right:0;min-width:190px;box-shadow:0 12px 36px #17382f22}
.editor-mode .admin-row-menu button{width:100%;text-align:left}
.editor-mode .admin-story-title{border:0;background:transparent;text-align:left}
.editor-mode .admin-story-title img{object-fit:cover;width:64px;height:46px;border-radius:7px}
.editor-mode .admin-status{font-style:normal;white-space:normal;font-size:12px;line-height:1.3;padding:7px 10px;border-radius:20px}
.editor-mode .admin-status.changes,.editor-mode .admin-status.scheduled{background:#fff0d3;color:#80581e}
.editor-mode .admin-status.hidden,.editor-mode .admin-status.archived{background:#eceae6;color:#606b65}
.editor-mode .admin-savebar{position:sticky;bottom:0;z-index:10;display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:20px 0 0;padding:15px;background:#faf8f2f5;border:1px solid #e3dccf;border-radius:12px;backdrop-filter:blur(12px)}
.editor-mode .admin-savebar span{color:#77827c;font-size:12px}
.editor-mode .admin-chapter-item{grid-template-columns:36px minmax(0,1fr) auto}
.editor-mode .admin-chapter-actions{grid-column:2/-1;flex-wrap:wrap;justify-content:flex-start}
.editor-mode .admin-chapter-actions button{width:auto;min-width:34px;height:auto;padding:7px 9px;font-size:12px}
.editor-mode .admin-chapter-item.is-archived{opacity:.62;background:#f2f0eb}
.editor-mode .admin-person-row{display:flex;align-items:center;gap:14px;justify-content:space-between;border-bottom:1px solid #e9e4db;padding:15px 0}
.editor-mode .admin-person-row>div:first-child{flex:1;min-width:0}
.editor-mode .admin-person-row strong,.editor-mode .admin-person-row small{display:block;overflow-wrap:anywhere}
.editor-mode .admin-person-row small{font-size:12px;color:#728078;margin-top:5px}
.editor-mode .admin-person-row time{font-size:12px;color:#728078}
.editor-mode .admin-pagination{display:flex;align-items:center;justify-content:center;gap:15px;margin:20px 0;font-size:13px}
.editor-mode .admin-settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.editor-mode .admin-media-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:15px}
.editor-mode .admin-media-card{margin:0;border:1px solid #e2dccf;border-radius:12px;overflow:hidden;background:#fffdf9}
.editor-mode .admin-media-card img{display:block;width:100%;height:160px;object-fit:cover}
.editor-mode .admin-media-card figcaption{padding:12px;display:flex;flex-direction:column;gap:8px}
.editor-mode .admin-media-card strong{font-size:11px;overflow-wrap:anywhere}
.editor-mode .admin-media-card small{font-size:12px;color:#728078}
.editor-mode .admin-dialog{position:relative;max-width:1000px;width:min(100%,1000px);max-height:90dvh;overflow:auto;padding:35px}
.editor-mode .admin-dialog-close{position:sticky;top:0;float:right;width:38px;height:38px;border-radius:50%;border:1px solid #d8d0c0;background:#fffdf9;color:#17382f;font-size:25px;z-index:2}
.editor-mode .admin-media-full{display:block;max-width:100%;max-height:70vh;object-fit:contain;margin:auto}
.editor-mode .admin-chart-dates{display:flex;justify-content:space-between;color:#728078;font-size:12px}
.editor-mode [hidden]{display:none!important}
.editor-mode .admin-search{gap:10px;display:flex;align-items:center}
.editor-mode .admin-search input{min-width:0;flex:1}
.editor-mode .editor-footer{display:flex;flex-wrap:wrap;gap:8px}
.editor-mode .editor-footer button{white-space:normal}
.editor-mode .admin-work-card h3{padding:10px;margin:0}
.editor-mode .admin-work-card>button{margin:10px;max-width:calc(100% - 20px)}
@media(max-width:1100px){.editor-mode .admin-story-row{grid-template-columns:minmax(180px,2fr) 100px 45px 110px 32px}.editor-mode .admin-story-row>:nth-child(5),.editor-mode .admin-story-row>:nth-child(6){display:none}.editor-mode .admin-story-workspace{grid-template-columns:1fr}}
@media(max-width:760px){
 .editor-mode .shell{display:block!important}.editor-mode .shell>aside{position:relative!important;inset:auto!important;display:block!important;width:100%!important;height:auto!important;padding:14px!important;box-sizing:border-box}.editor-mode .admin-brand{font-size:28px}.editor-mode .admin-nav{display:flex!important;overflow-x:auto;gap:6px;margin:12px 0}.editor-mode .admin-nav button{flex:0 0 auto;white-space:nowrap;padding:10px}.editor-mode .admin-user{display:none}.editor-mode .workspace{margin:0!important;width:100%!important}.editor-mode .workspace>header{display:none!important}.editor-mode main{padding:18px 12px!important}.editor-mode .admin-page-head{display:block}.editor-mode .admin-page-actions{margin-top:15px}.editor-mode .admin-panel{padding:15px}.editor-mode .admin-settings-grid,.editor-mode .admin-dashboard-grid{display:grid!important;grid-template-columns:1fr!important}.editor-mode .admin-dashboard-grid>*{grid-area:auto!important}.editor-mode .admin-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.editor-mode .admin-story-row{display:grid;grid-template-columns:minmax(0,1fr) auto}.editor-mode .admin-story-table-head{display:none}.editor-mode .admin-story-row>.admin-story-title{grid-column:1}.editor-mode .admin-story-row>.admin-row-menu{grid-column:2;grid-row:1}.editor-mode .admin-story-row>:nth-child(2),.editor-mode .admin-story-row>:nth-child(3){display:none}.editor-mode .admin-story-row>.admin-status{justify-self:start}.editor-mode .admin-person-row{flex-wrap:wrap}.editor-mode .admin-person-row>div:first-child{flex-basis:100%}.editor-mode .admin-test-row{display:flex!important;flex-wrap:wrap;text-align:left;gap:8px}.editor-mode .admin-test-row strong{flex-basis:100%}.editor-mode .admin-work-grid{grid-template-columns:1fr}.editor-mode .admin-dialog{padding:18px;width:100%}.editor-mode .admin-savebar{bottom:env(safe-area-inset-bottom,0px)}.editor-mode .admin-story-cover-editor{grid-template-columns:1fr}.editor-mode .admin-story-cover-editor img{width:100%;height:160px}.editor-mode .admin-chapter-item{grid-template-columns:30px minmax(0,1fr)}.editor-mode .admin-chapter-item>.admin-status{grid-column:2}
}
