.reader-document-editing .reader-block-edit { display:none !important; }
.reader-document-editing [data-reader-edit-target]:hover,
.reader-document-editing [data-reader-edit-target]:focus-within { background:transparent; }
.reader-document-editing [data-document-field] { outline:0; border-radius:3px; cursor:text; caret-color:#2455c9; text-decoration-skip-ink:auto; transition:box-shadow .18s,background-color .18s; }
.reader-document-editing [data-document-field]:focus { background:#f4f7fe; box-shadow:0 0 0 7px #f4f7fe; }
.reader-document-editing .reader-case-result [data-document-field]:focus { background:#244b65; box-shadow:0 0 0 7px #244b65; }
.reader-document-editing [data-document-field] { scroll-margin-block:180px 180px; }
.reader-document-editing .reader-check-item input,
.reader-document-editing .reader-check-progress,
.reader-document-editing .reader-checks + .reader-note { display:none; }
.reader-document-editing .reader-check-item > label { padding-left:0; }
.reader-document-editing .reader-check-item > label > span { display:block; width:100%; }
.reader-document-editing .reader-aliases [data-document-field] { display:block; white-space:pre-wrap; }
.reader-document-editing .reader-list-edit-link { font-size:12px; color:#647e90; }
.reader-document-editing .reader-editorial-links > [data-reader-edit-mode] svg { display:none; }
.reader-document-editing .reader-editorial-links > [data-reader-edit-mode] { color:#2455c9; }
.has-document-draft { padding-bottom:112px; }
.document-dock { position:fixed; z-index:80; bottom:0; left:0; right:0; padding:14px max(24px,calc((100vw - 1100px)/2)) max(14px,env(safe-area-inset-bottom)); color:#173248; background:#fff; border-top:1px solid #dce5ed; box-shadow:0 -8px 36px #1732480a; font-family:inherit; }
.document-dock-main { display:flex; align-items:center; gap:18px; max-width:1100px; margin:auto; }
.document-dock-mark { flex:0 0 40px; height:40px; display:grid; place-content:center; color:#2455c9; border-radius:11px; background:#edf3ff; font-size:28px; line-height:1; }
.document-dock-copy { flex:1; min-width:0; display:flex; flex-direction:column; gap:3px; }
.document-dock-copy strong { font-size:14px; font-weight:600; }
.document-dock-copy > span { font-size:12px; color:#6a7e8d; line-height:1.5; }
.document-dock-copy .document-save-state { color:#54745f; }
.document-dock-copy .document-save-state[data-state=error] { color:#9a553d; }
.document-resume { display:flex; align-items:center; gap:20px; margin-top:14px; padding:14px 17px; background:#f4f8f2; border:1px solid #dbe5d5; border-radius:8px; }
.document-resume > div:first-child { flex:1; display:flex; flex-direction:column; gap:3px; }
.document-resume strong { font-size:13px; color:#365646; font-weight:600; }
.document-resume span { font-size:12px; line-height:1.5; color:#617b6a; }
.document-resume-actions { display:flex; align-items:center; gap:18px; }
.document-resume button { min-height:44px; font:inherit; font-size:12px; color:#2455c9; background:transparent; cursor:pointer; }
.document-resume a { display:inline-flex; align-items:center; min-height:44px; font-size:12px; line-height:1.5; color:#2455c9; }
.document-resume-actions { flex-wrap:wrap; }
.document-resume [data-document-erase] { color:#728176; }
.reader-document-editing .document-resume { display:none; }
.document-resume button:focus-visible { outline:3px solid #d99842; outline-offset:3px; }
.document-dock button { min-height:44px; font-family:inherit; font-size:13px; border:0; cursor:pointer; }
.document-exit { color:#647888; background:transparent; padding:10px; border-radius:6px; }
.document-continue { color:white; background:#2455c9; border-radius:8px; padding:12px 20px; display:flex; align-items:center; justify-content:center; gap:20px; font-weight:500; }
.document-continue:hover:not(:disabled) { background:#1945af; }
.document-continue:disabled { color:#7d8d9d; background:#edf1f5; cursor:default; }
.document-dock button:focus-visible { outline:3px solid #89a8f2; outline-offset:3px; }
.document-dock-status:empty { display:none; }
.document-dock-status { margin:10px auto 0; max-width:1100px; font-size:13px; line-height:1.5; color:#914c31; }
.document-dock-status button { display:inline; color:#2455c9; background:transparent; padding:4px 0; text-decoration:underline; text-underline-offset:3px; }
.document-exit-choice { max-width:1100px; margin:14px auto 0; padding-top:12px; border-top:1px solid #dce5ed; display:flex; align-items:center; gap:16px; flex-wrap:wrap; }
.document-exit-choice[hidden] { display:none; }
.document-exit-choice p { flex:1; margin:0; font-size:13px; line-height:1.6; }
.document-exit-choice button { background:transparent; color:#2455c9; }
.document-exit-choice [data-document-discard] { color:#9a4d35; }
.document-list-editor { margin:8px 0 22px; padding:18px; border:1px solid #dce5ed; border-radius:9px; background:#fafcfe; }
.document-list-editor label { display:block; color:#627b8b; font-size:12px; line-height:1.5; }
.document-list-editor textarea { box-sizing:border-box; display:block; width:100%; margin-top:12px; padding:12px; resize:vertical; font:inherit; font-size:15px; line-height:1.8; color:#234357; border:1px solid #cddbe8; border-radius:5px; background:white; }
.document-list-editor textarea[hidden] { display:none; }
.document-list-editor button { margin-top:10px; min-height:44px; border:0; background:transparent; font:inherit; font-size:12px; color:#2455c9; cursor:pointer; }
.document-list-editor.is-folded { background:transparent; border-color:transparent; padding-inline:0; }
.document-list-editor.is-folded button { margin:0; }
.document-list-preview { margin:14px 0; padding-left:24px; font-size:var(--reader-copy,16px); line-height:1.75; color:#234357; }
.document-list-preview li { padding-left:8px; margin:12px 0; white-space:pre-wrap; }
@media(max-width:960px){
  .reader-document-editing .reader-essential-scope > .reader-text-block > h3[data-document-field],
  .reader-document-editing [data-document-field="aliases"],
  .reader-document-editing .reader-text-block > .reader-note[data-document-field] { font-size:16px; }
}
@media(max-width:600px){
  .document-resume { gap:6px; flex-wrap:wrap; padding:12px 14px; }
  .document-resume > div:first-child { flex-basis:100%; }
  .document-resume-actions { gap:24px; }
  .document-dock { padding:12px 18px max(12px,env(safe-area-inset-bottom)); }
  .document-dock-main { gap:8px 12px; flex-wrap:wrap; }
  .document-dock-mark { flex-basis:30px; height:30px; border-radius:8px; font-size:23px; }
  .document-dock-copy { flex:1; flex-basis:0; }
  .document-dock-copy strong { font-size:13px; }
  .document-dock-copy > span { font-size:11px; }
  .document-exit { margin-left:auto; font-size:12px !important; }
  .document-continue { flex:1 0 100%; min-height:44px; padding:10px 16px; }
  .document-dock.keyboard-is-open .document-dock-copy > span,
  .document-dock.keyboard-is-open .document-dock-mark { display:none; }
  .document-dock.keyboard-is-open .document-dock-copy { flex:1; }
  .document-dock.keyboard-is-open .document-continue { flex:0 0 auto; font-size:12px; gap:10px; }
  .document-dock.keyboard-is-open .document-exit { display:none; }
  .has-document-draft { padding-bottom:160px; }
  .document-exit-choice p { flex-basis:100%; }
  .document-list-editor { padding:14px; }
  .document-list-editor textarea { font-size:16px; }
}
@media(prefers-reduced-motion:reduce){.reader-document-editing [data-document-field]{transition:none;}}
@media print{.document-dock{display:none!important;}.has-document-draft{padding-bottom:0;}}
