.editor-desk { max-width: 76rem; margin-inline: auto; }
.editor-desk .page-head { margin-bottom: .9rem; }
.editor-desk :is(h2,h3,p,li,dd,summary) { word-break: keep-all; overflow-wrap: anywhere; }
.editor-library { background: white; border: 1px solid #d4e1d8; border-radius: 10px; }
.editor-library > summary {
  display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: .85rem;
  min-height: 48px; padding: .6rem 1rem; color: var(--ink); cursor: pointer; list-style: none;
}
.editor-library > summary::-webkit-details-marker { display: none; }
.editor-library > summary:hover { background: #f2f7f3; border-radius: 10px; }
.editor-library-label { color: var(--forest); font-size: .84rem; font-weight: 730; }
.editor-library-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .99rem; font-weight: 650; }
.editor-library .ico { width: 1rem; height: 1rem; }
.editor-library[open] > summary > .ico { transform: rotate(180deg); }
.editor-library .editor-picker { padding: .8rem 1rem 1rem; border-top: 1px solid var(--line); }
.editor-nav {
  display: flex; flex-wrap: wrap; gap: .2rem; margin: .9rem 0 .75rem; padding: .24rem;
  background: #e9efeb; border: 1px solid #d6e2da; border-radius: 9px;
}
.editor-nav a {
  display: flex; flex: 1 1 0; align-items: center; justify-content: center; gap: .4rem;
  padding: .53rem .4rem; min-height: 40px; border-radius: 6px; line-height: 1.35;
  text-decoration: none; font-size: .95rem; font-weight: 680; color: #385546;
}
.editor-nav a:hover { background: #f7faf7; }
.editor-nav a[aria-current="page"] { background: #14543f; color: white; }
.editor-nav .ico { width: 1rem; height: 1rem; }
.editor-desk :is(a,summary):focus-visible { outline: 3px solid #307456; outline-offset: 2px; }
.editor-pane { min-width: 0; }
.editor-pane > .card { margin-top: 0; }
.editor-pane .card-head { gap: .7rem; align-items: start; }
.editor-pane .card-head :is(h2,h3), .editor-starter h2 { color: #153d2d; font-size: clamp(1.12rem,1.5vw,1.32rem); line-height: 1.45; }
.editor-unified { display: grid; grid-template-columns: minmax(0,1fr) minmax(20rem,34%); align-items: start; gap: .9rem; }
.editor-manuscript, .editor-review-panel, .editor-review-body { min-width: 0; }
.editor-manuscript > .notice-box { margin-top: .7rem; }
.editor-review-panel { border: 1px solid #ccdcd2; border-radius: 10px; background: #fff; }
.editor-review-panel > summary {
  display: flex; align-items: center; gap: .5rem; min-height: 48px; padding: .68rem .95rem;
  list-style: none; cursor: pointer; border-radius: inherit; color: #204936; background: #eef5f0;
  scroll-margin-top: 5rem;
}
.editor-review-panel > summary::-webkit-details-marker { display: none; }
.editor-review-panel > summary > span { display: inline-flex; gap: .4rem; align-items: center; font-size: 1.01rem; font-weight: 720; }
.editor-review-panel > summary small { margin-left: auto; color: var(--muted); font-size: .82rem; }
.editor-review-panel > summary .ico { width: 1rem; height: 1rem; flex: none; }
.editor-review-panel[open] > summary { border-radius: 10px 10px 0 0; }
.editor-review-panel[open] > summary > .ico { transform: rotate(180deg); }
.editor-review-body > .card { margin: 0; min-width: 0; padding: .9rem 1rem; border: 0; border-radius: 0; box-shadow: none; background: transparent; }
.editor-review-body > .card + .card { border-top: 1px solid var(--line); }
.editor-review-body .card-head { flex-wrap: wrap; gap: .4rem; }
.editor-review-body :is(h2, h3) { overflow-wrap: anywhere; }
.editor-review-body .notice-box { min-width: 0; }
.editor-review-body .editor-unsaved { margin: .7rem .9rem 0; }
.editor-review-materials { padding: .75rem .9rem 0; }
.editor-review-body .editor-review-extra { margin: .65rem .9rem; }
.editor-review-body .tablewrap { max-width: 100%; overflow-x: auto; }
.editor-review-body .prose { white-space: pre-wrap; overflow-wrap: anywhere; }
.editor-review-body [data-evidence-section] { scroll-margin-top: 5rem; }
.editor-review-body [hidden] { display: none; }
.editor-review-return { padding: 0 1rem 1rem; }
.editor-manuscript :is(textarea[name="body"],.draft-reading) { scroll-margin-top: 5rem; }
.editor-pane[data-editor-pane="publish"] p, .editor-review-body p { line-height: 1.65; }
.editor-pane > .notice-box, .editor-desk > .notice-box { margin-top: .8rem; }
.editor-unsaved { border-left: 3px solid #aa742a; padding: .7rem .85rem; margin: .65rem 0; border-radius: 4px; color: #614719; background: #fff7e9; font-size: .92rem; }
.editor-starter header { margin-bottom: .7rem; }
.editor-starter h2 { margin: 0; }
.editor-starter-question { margin: .3rem 0 0; color: var(--muted); font-size: .93rem; line-height: 1.55; }
.editor-starter-question strong { color: var(--forest); margin-right: .35rem; }
.editor-switchboard {display:grid;grid-template-columns:minmax(0,1fr) minmax(12rem,17rem);align-items:start;gap:.65rem;margin-bottom:.75rem;}
.editor-switchboard .editor-nav,.editor-switchboard .editor-library {margin:0;}
@media(max-width:680px) {
  .editor-switchboard {grid-template-columns:minmax(0,1fr);gap:.3rem;}
  .editor-desk:has(.editor-switchboard)>.page-head {position:absolute;width:1px;height:1px;margin:0;padding:0;overflow:hidden;clip-path:inset(50%);}
  .editor-switchboard .editor-nav {margin:0;}
  .draft-workspace .draft-workspace-tools .btn {min-height:32px;padding:.25rem .5rem;}
}
@media (min-width: 1180px) {
  .editor-unified:not(:has(.editor-review-panel[open])) {grid-template-columns:minmax(0,1fr);max-width:66rem;margin-inline:auto;}
  .editor-unified:has(.editor-review-panel[open]) .draft-workspace [data-do="editor-review-focus"] {display:none;}
}
@media (max-width: 1179px) {
  .editor-unified { grid-template-columns: minmax(0,1fr); gap: .65rem; }
  .editor-manuscript { display: contents; }
  .editor-manuscript > .notice-box { order: 2; margin: 0; }
  .editor-review-panel { order: 1; }
}
@media (max-width: 630px) {
  .editor-desk .page-head { align-items: center; flex-direction: row; gap: .5rem; margin-bottom: .7rem; }
  .editor-desk .page-head p { margin-top: .15rem; }
  .editor-desk .head-actions { flex: none; }
  .editor-library > summary { padding: .5rem .75rem; gap: .55rem; }
  .editor-library-title { font-size: .9rem; }
  .editor-nav { margin: .55rem 0; gap: .12rem; }
  .editor-nav a { gap: .25rem; font-size: .91rem; }
}
