/* CMS editor interface. Isolated from learner Scope prose and account forms. */
.editor-page{background:#f4f6fa;color:#19243a;min-height:100vh}
.editor-page .editor-topbar{position:sticky;z-index:20;min-height:68px;gap:18px;flex-wrap:wrap;background:#fff;border-bottom:1px solid #dce3ec}
.editor-page .editor-topbar .brand{color:#1e3255}
.editor-page .editor-topbar .top-links{align-items:center}
.editor-current{font-size:.9rem;font-weight:750;color:#1e385c;background:#edf2fa;padding:7px 12px;border-radius:9px}
.editor-page .site-account{margin-left:auto;min-width:190px;max-width:100%}
.editor-page .site-account .record-account{position:relative}
.editor-page .site-account .record-account>summary{font-weight:750;cursor:pointer}
.editor-page .site-account .account-panel{max-width:min(380px,calc(100vw - 32px))}
.editor-page .site-account .account-panel input{max-width:100%}
.editor-shell{width:min(1380px,calc(100% - 48px));padding:32px 0 72px}
.editor-hero{padding:clamp(24px,3vw,36px);margin-bottom:18px;background:#fff}
.editor-hero .eyebrow{color:#48658d}
.editor-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:22px}
.editor-heading h1{margin:6px 0 12px;font-size:clamp(1.6rem,3vw,2.45rem);letter-spacing:-.025em}
.editor-heading .lead{line-height:1.68;max-width:78ch;margin:0}
.editor-home-link{flex:none;white-space:nowrap;margin-top:8px}
.editor-facts{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:22px}
.editor-facts span{padding:6px 11px;border:1px solid #d9e3ef;border-radius:99px;background:#f6f8fc;color:#526782;font-size:.82rem;font-weight:650}
.editor-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;list-style:none;padding:0;margin:0 0 16px}
.editor-steps li{min-width:0;padding:15px 18px;background:#e9eef6;border:1px solid #d7e1ef;border-radius:13px;display:grid;gap:3px}
.editor-steps strong{font-size:.95rem;color:#1b345c}.editor-steps span{font-size:.83rem;color:#61748d;line-height:1.48}
.editor-status{margin:0 0 18px;min-height:50px;display:flex;align-items:center;padding:13px 17px;background:#eaf0f8;color:#25436b;border:1px solid #d4e0ef}
.editor-status[data-tone="ok"]{color:#1c6842;background:#e9f5ed;border-color:#bdddc8}
.editor-status[data-tone="error"]{color:#a02d36;background:#fff1f1;border-color:#edcbd0}
.editor-status[data-tone="warn"]{color:#815617;background:#fff8e5;border-color:#ead7a9}
.editor-workspace{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(310px,1fr);align-items:start;gap:18px}
.editor-card{min-width:0;padding:clamp(20px,2.4vw,30px);background:#fff;border:1px solid #dde4ed;border-radius:16px}
.editor-card h2{font-size:1.25rem;line-height:1.4;margin:5px 0;color:#1b2d49}
.editor-section-head{display:flex;align-items:center;justify-content:space-between;gap:14px}
.editor-section-head .eyebrow{font-size:.72rem;color:#6581a1;letter-spacing:.1em}
.editor-section-description{font-size:.9rem;line-height:1.65;margin:12px 0 20px}
.editor-page button{white-space:normal;line-height:1.4}
.editor-page :is(input,select,textarea){font:inherit}
.editor-page :is(input:not([type=checkbox]),select,textarea){color:#1f2f48;background:#fff;border:1px solid #bdc8d7;border-radius:9px;padding:11px 12px;min-height:44px}
.editor-page :is(input:not([type=checkbox]),select,textarea):focus-visible{outline:3px solid #b3c7f6;outline-offset:1px;border-color:#315d9b}
.editor-page :is(button,a):focus-visible{outline:3px solid #7fa8e7;outline-offset:3px}
.editor-page :is(button,input,select,textarea):disabled{opacity:.56;cursor:not-allowed}
.editor-fields{display:grid;grid-template-columns:minmax(190px,1fr) minmax(0,1.6fr);gap:12px}
.editor-page .editor-fields label,.editor-page .editor-request-row label{display:grid;gap:7px;font-size:.89rem;font-weight:750;min-width:0}
.editor-fields :is(select,input){width:100%;min-width:0}
.editor-field-note{font-size:.82rem;line-height:1.6;color:#64758e;margin:9px 0 17px;overflow-wrap:anywhere}
.editor-toolbar{display:flex;flex-wrap:wrap;gap:9px;align-items:center}
.editor-json-label{display:grid;gap:4px;font-size:.98rem;font-weight:750;margin-top:20px;color:#1a2e4d}
.editor-json-label span{font-size:.81rem;font-weight:400;color:#61748d;line-height:1.55}
.editor-page .editor-json{display:block;width:100%;min-width:0;max-width:100%;height:clamp(350px,47vh,600px);min-height:260px;resize:vertical;margin-top:12px;background:#fbfcfe;border-color:#c9d4e3;border-radius:12px;padding:17px;font:13px/1.7 ui-monospace,SFMono-Regular,Consolas,monospace;tab-size:2;white-space:pre;overflow:auto}
.editor-footer{display:flex;justify-content:space-between;align-items:center;gap:16px;padding-top:16px;border-top:1px solid #e3e8f0}
.editor-footer p{font-size:.83rem;line-height:1.6;margin:0;max-width:46ch}
.editor-footer button{flex:none}
.editor-page .primary{background:#294974;border-color:#294974;color:#fff}
.editor-page .primary:hover:not(:disabled){background:#203b61}
.editor-page .secondary{background:#fff;color:#2b4468;border-color:#c4d1e0}
.editor-page .secondary:hover:not(:disabled){background:#f0f5fc;border-color:#9fb4d0}
.editor-page .editor-compact{min-height:36px;padding:7px 10px;font-size:.84rem}
.editor-queue-count{font-size:.82rem;color:#61748d;margin:0 0 14px}
.editor-review-list{display:grid;gap:11px}
.editor-empty{margin:0;background:#f5f8fc;border:1px dashed #c9d5e3;border-radius:12px;padding:24px 18px;color:#526783;font-size:.9rem;line-height:1.65;text-align:center}
.editor-request-item{display:grid;gap:7px;width:100%;padding:14px 15px;border:1px solid #d9e3ef;border-radius:12px;text-align:left;background:#fcfdff;color:#243c60}
.editor-request-item:hover,.editor-request-item:focus-visible{border-color:#829fca;background:#f0f6fe}
.editor-request-item strong{font-size:.9rem}
.editor-request-item small{font-size:.77rem;color:#62758d;overflow-wrap:anywhere;line-height:1.55}
.editor-request-state{display:inline-block;width:max-content;font-size:.73rem;padding:2px 8px;background:#e9eff8;border-radius:99px}
.editor-publication{margin-top:18px}
.editor-stage-tag{background:#fff7e7;border:1px solid #e9d5ad;border-radius:99px;color:#82571c;padding:6px 11px;font-size:.81rem;font-weight:750;white-space:nowrap}
.editor-request-row{display:flex;gap:12px;align-items:end;flex-wrap:wrap}
.editor-request-row label{flex:1;min-width:min(100%,350px)}
.editor-request-row input{width:100%}
.editor-review-hint{margin:16px 0;color:#526681;font-size:.9rem;line-height:1.65}
.editor-proposal-details{border:1px solid #dce5ef;border-radius:12px;padding:0 15px;margin:15px 0}
.editor-proposal-details summary{font-weight:750;padding:13px 0;cursor:pointer}
.editor-proposal-details pre{max-height:360px;overflow:auto;padding:16px;background:#182338;color:#e6edf6;border-radius:9px;font:12px/1.6 ui-monospace,Consolas,monospace;white-space:pre-wrap;overflow-wrap:anywhere}
.editor-publication-actions{padding:18px;background:#f7f9fc;border:1px solid #e0e7f0;border-radius:12px}
.editor-confirm{display:flex;align-items:start;gap:10px;font-size:.92rem;line-height:1.6;font-weight:650;cursor:pointer}
.editor-confirm input{margin-top:5px;width:17px;height:17px;flex:none;accent-color:#294974}
.editor-publication-actions .editor-toolbar{margin-top:17px}
.editor-reject{color:#8a363c!important;border-color:#e4c8cb!important}
@media(max-width:1080px){.editor-workspace{grid-template-columns:1fr}.editor-queue{order:-1}.editor-review-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){.editor-shell{width:calc(100% - 24px);padding:16px 0 50px}.editor-page .editor-topbar{padding:10px 12px;gap:10px}.editor-page .site-account{flex-basis:100%;margin-left:0}.editor-page .site-account .account-panel{max-width:100%}.editor-heading{flex-direction:column;gap:12px}.editor-home-link{margin:0}.editor-facts{gap:6px}.editor-steps{grid-template-columns:1fr;gap:7px}.editor-steps li{padding:10px 14px}.editor-fields{grid-template-columns:1fr}.editor-review-list{grid-template-columns:1fr}.editor-footer{flex-direction:column;align-items:stretch}.editor-footer button{width:100%}.editor-request-row{flex-direction:column;align-items:stretch}.editor-request-row label{width:100%;min-width:0}.editor-request-row button{width:100%}.editor-publication-actions .editor-toolbar{flex-direction:column;align-items:stretch}.editor-publication-actions .editor-toolbar button{width:100%}.editor-stage-tag{white-space:normal;text-align:center}.editor-section-head{align-items:start}}

/* Private review: selection is visible; reading does not publish. */
.editor-request-item[aria-pressed="true"]{border:2px solid #245db3;background:#e8f1ff;box-shadow:0 0 0 2px #d6e5ff}
.editor-request-action{font-weight:750;font-size:.85rem;color:#24579c}
.editor-review-preview{scroll-margin-top:110px;outline-offset:5px}
.review-summary{font-size:1.1rem;font-weight:750}
.review-item-nav{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0}
.review-item-nav a{border:1px solid #ccd8e9;border-radius:8px;padding:8px 10px;max-width:100%;overflow-wrap:anywhere}
.review-change{border-top:2px solid #dce5f2;margin-top:26px;padding-top:16px;scroll-margin-top:100px}
.review-object-id,.review-changed-fields{overflow-wrap:anywhere;color:#526783;font-size:.85rem}
.review-conflict{padding:12px;background:#fff1e0;color:#8a4511;border:1px solid #e9bb82}
.review-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.review-side{min-width:0;border:1px solid #dbe3ef;border-radius:12px;padding:18px;background:#fafbfd;overflow-wrap:anywhere}
.review-side:last-child{background:#f2f8f5;border-color:#bfddcb}
.review-side h4{margin:0 0 18px;color:#324b6e}
.review-prose{line-height:1.75}.review-prose pre{white-space:pre-wrap}.review-prose .table-wrap{overflow:auto}
.review-fields{margin:12px 0}.review-fields dt{font-weight:750;margin-top:12px}.review-fields dd{margin:5px 0 12px 12px}
.review-side details{border-top:1px solid #dce4ee;padding-top:12px;margin-top:16px}.review-side summary{cursor:pointer;font-weight:700}
@media(max-width:800px){.review-columns{grid-template-columns:1fr}.review-side{padding:14px}}
