/* Copyright © 2026 Copeland Systems L.L.C. */
.editor-view { grid-template-rows: auto auto auto auto auto minmax(0, 1fr) auto; }
.editor-view > .editor-controls-dock { grid-row: 1; }
.editor-view > .editorial-tools { grid-row: 2; }
.editor-view > .editorial-session-bar { grid-row: 3; }
.editor-view > .document-lock-notice { grid-row: 4; }
.editor-view > .document-findbar { grid-row: 5; }
.editor-view > .editor-page-scroll { grid-row: 6; }
.editor-view > .editor-statusbar { grid-row: 7; }
.editorial-tools { display:flex; flex-wrap:wrap; min-width:0; gap:.4rem; padding-bottom:.35rem; }
.editorial-tools > button { max-inline-size:100%; white-space:normal; }
.editorial-session-bar { padding:.6rem .8rem; margin-bottom:.6rem; border:1px solid var(--line); border-left:3px solid var(--accent); background:var(--panel); color:var(--ink); font-size:.84rem; }
.editorial-session-bar p { margin:0 0 .4rem; }
.editorial-session-bar button { margin-right:.35rem; }
.editorial-session-summary { display:flex; flex-wrap:wrap; gap:.25rem .75rem; margin-bottom:.4rem; }
.editorial-decision-history { margin-top:.5rem; }
.editorial-decision-history summary { cursor:pointer; }
.editorial-decision-history :is(summary,ol):focus-visible { outline:3px dotted currentColor; outline-offset:3px; }
.editorial-decision-history ol { max-height:12rem; overflow:auto; margin:.5rem 0 0; padding-inline-start:2rem; }
.editorial-decision-history li { margin-block:.45rem; overflow-wrap:anywhere; }
.editorial-decision-history li > :is(strong,span,time) { display:block; }
.editorial-decision-history time { color:var(--muted); }
.editorial-session-bar[hidden], .editorial-margin[hidden], .editorial-feedback-list[hidden] { display:none; }
.editorial-feedback-list { padding:.7rem; }
.editorial-feedback-list h2 { font-size:.85rem; margin:0 0 .6rem; }
.editorial-note-link { display:block; width:100%; text-align:left; white-space:normal; padding:.65rem; border-bottom:1px solid var(--line); border-radius:0; }
.editorial-note-link[aria-pressed="true"] { background:color-mix(in srgb, var(--accent) 16%, var(--panel)); color:var(--ink); border-left:3px solid var(--accent); }
.editorial-review-active:not(.editorial-full-navigation) .navigation-pane > :is(.navigation-tree,.collections-strip,.navigation-hoist-state,.pane-heading) { display:none; }
.editorial-full-navigation [data-editorial-list] { display:none; }
.editorial-review-active .editor-view { --editor-gutter:1rem; }
.editorial-review-active .editor-page-scroll { position:relative; grid-template-columns:minmax(300px, 840px) 290px; column-gap:18px; justify-content:center; justify-items:stretch; align-items:start; overflow:auto; scrollbar-gutter:stable; }
.editorial-review-active .editor-page-scroll > .editor-paper { width:100%; min-width:0; max-width:none; height:auto; min-height:100%; overflow:visible; column-width:auto; column-count:auto; padding:2.2rem clamp(1.2rem,3vw,3rem); margin:0; }
.editorial-margin { min-width:0; width:100%; padding-bottom:1rem; }
.editorial-card { position:relative; padding:.8rem; border:1px solid var(--line); border-left:3px solid color-mix(in srgb,var(--accent) 50%,var(--panel)); border-radius:.4rem; background:var(--panel); color:var(--ink); font: .85rem/1.5 system-ui,sans-serif; margin-bottom:12px; overflow-wrap:break-word; }
.editorial-card.selected { border-left-color:var(--accent); outline:2px dotted currentColor; outline-offset:2px; box-shadow:0 3px 12px #0002; }
.editorial-card :is(button,textarea):focus-visible { outline:3px dotted currentColor; outline-offset:3px; }
.editorial-card-meta { display:flex!important; flex-wrap:wrap; gap:.15rem .6rem; }
.editorial-card-quote { margin:.5rem 0; padding:.35rem .6rem; border-left:2px solid currentColor; font-style:italic; }
.editorial-card h3 { font:600 .93rem/1.35 system-ui,sans-serif; margin:0; }
.editorial-card h3 button { font:inherit; text-align:left; padding:0; color:var(--ink); white-space:normal; }
.editorial-card small { display:block; margin:.3rem 0; color:var(--muted); }
.editorial-card p { margin:.5rem 0; }
.editorial-card label { display:block; margin-top:.8rem; font-weight:600; }
.editorial-card textarea { display:block; width:100%; margin:.3rem 0 .5rem; padding:.5rem; border:1px solid var(--line); border-radius:.25rem; background:var(--paper); color:var(--paper-ink); font:400 .85rem/1.5 system-ui,sans-serif; }
.editorial-card .editorial-writer-message { padding-left:.6rem; border-left:2px solid var(--accent); }
.editorial-question { font-weight:600; }
.editorial-unmatched { color:var(--muted); font-style:italic; }
.editor-paper .editorial-current-passage { background:color-mix(in srgb,#8bc5df 18%,transparent); border-radius:3px; outline:2px dotted currentColor; outline-offset:4px; }
.editorial-review-active .editor-paper del { background:#b33a3a18; text-decoration-line:line-through; text-decoration-style:solid; text-decoration-color:#a12d34; margin-right:.18em; }
.editorial-review-active .editor-paper ins { background:#29815120; text-decoration-line:underline; text-decoration-style:solid; text-decoration-color:#246c46; text-underline-offset:.12em; }
::highlight(af-editorial) { background-color:#d6ac522b; }
::highlight(af-editorial-selected) { background-color:#8bc5df40; }
.editorial-context-toggle { display:block; width:100%; margin:.8rem 0; border-block:1px dashed currentColor; font: .8rem/1.4 system-ui,sans-serif; color:var(--paper-ink); }
.editorial-dialog { width:min(580px,calc(100vw - 2rem)); max-height:85vh; overflow:auto; padding:1.5rem; }
.editorial-dialog header { display:flex; align-items:start; justify-content:space-between; gap:1rem; margin-bottom:1rem; }
.editorial-dialog h2 { font-size:1.3rem; }
.editorial-dialog [data-editorial-dialog-body] > button { display:block; margin:.5rem 0; }
.editorial-dialog [role="alert"] { color:#b02a37; margin:.7rem 0 0; }
@media(min-width:1251px) {
  .app-shell.editorial-review-active { grid-template-columns:56px var(--navigation-width,296px) minmax(0,1fr) 0; }
  .app-shell.editorial-review-active.navigation-hidden { grid-template-columns:56px 0 minmax(0,1fr) 0; }
  .editorial-review-active:not(:has([data-inspector-tab="comments"][aria-selected="true"])) .inspector-pane,
  .editorial-review-active:not(:has([data-inspector-tab="comments"][aria-selected="true"])) .inspector-pane-resizer { display:none!important; }
  .app-shell.editorial-review-active:not(.inspector-hidden):has([data-inspector-tab="comments"][aria-selected="true"]) {
    grid-template-columns:56px var(--navigation-width,296px) minmax(0,1fr) var(--inspector-width,310px);
  }
  .app-shell.editorial-review-active.navigation-hidden:not(.inspector-hidden):has([data-inspector-tab="comments"][aria-selected="true"]) {
    grid-template-columns:56px 0 minmax(0,1fr) var(--inspector-width,310px);
  }
  .app-shell.editorial-review-active.focus-mode:not(.inspector-hidden):has([data-inspector-tab="comments"][aria-selected="true"]) {
    grid-template-columns:0 var(--navigation-width,296px) minmax(0,1fr) var(--inspector-width,310px);
  }
  .app-shell.editorial-review-active.focus-mode.focus-navigation-hidden:not(.inspector-hidden):has([data-inspector-tab="comments"][aria-selected="true"]) {
    grid-template-columns:0 0 minmax(0,1fr) var(--inspector-width,310px);
  }
}
@media(max-width:900px) {
  .editorial-review-active .editor-page-scroll { grid-template-columns:minmax(270px,1fr) 250px; }
}
@media(max-width:600px) {
  .editorial-review-active .editor-page-scroll { display:block; }
  .editorial-margin { padding-top:.8rem; }
  .editorial-card { margin-top:0!important; }
}
