.reading-text.formatted-work { white-space:normal; }
.formatted-work .work-blank-line { height:1.85em; }
.formatted-work p:has(+ .work-blank-line) { margin-bottom:0; }
.formatted-work p { margin:0 0 1.1em; white-space:pre-wrap; }
.formatted-work p[style*="text-align: justify"] { hyphens:auto; }
.formatted-work sup { font-size:.7em; vertical-align:super; white-space:nowrap; }
.formatted-work sup button { color:#2b645b; text-decoration:underline; border:0; padding:0; background:transparent; font:inherit; cursor:pointer; }
.work-note-tooltip { position:fixed; z-index:100; width:min(320px,calc(100vw - 24px)); padding:12px 15px; border:1px solid #a9b8a7; border-radius:7px; background:#fffdf7; color:#213b35; box-shadow:0 8px 28px #102e3740; font:1rem/1.45 Georgia,serif; text-align:left; white-space:normal; overflow-wrap:anywhere; opacity:0; visibility:hidden; pointer-events:none; }
.work-note-tooltip.is-visible { opacity:1; visibility:visible; }
.work-footnotes { border-top:1px solid #c9cdc2; margin-top:3em; padding-top:1em; font: .86em/1.6 Georgia,serif; }
.work-footnotes h3 { font:600 1.12em/1.3 Georgia,serif; margin:0 0 .8em; }
.work-footnotes ol { padding-left:2em; }
.work-footnotes li { padding-left:.3em; margin-bottom:.55em; overflow-wrap:anywhere; }
.open-work-editor { margin:12px 0; padding:10px 16px; border:1px solid #456d63; background:#eaf4ef; color:#214d45; border-radius:7px; font:600 .95rem/1.35 system-ui,sans-serif; cursor:pointer; }
.open-work-editor { display:block; width:fit-content; max-width:100%; text-align:left; }
.open-work-editor:hover { background:#d9ebe2; }
.open-work-editor,.work-text-toggle { display:inline-flex; align-items:center; max-width:100%; min-height:42px; margin:8px 8px 8px 0; vertical-align:middle; }
.work-text-toggle { padding:9px 14px; border:1px solid #99aca2; border-radius:7px; background:#f7faf7; color:#28564a; font:600 .9rem/1.35 system-ui,sans-serif; cursor:pointer; }
.work-text-toggle:hover { background:#e7f0e8; }
.admin-work-text[hidden] { display:none !important; }
.work-editor-dialog { position:fixed; width:min(1160px,96vw); height:min(90vh,850px); max-width:none; max-height:none; padding:0; border:1px solid #b7c5b9; border-radius:12px; color:#1c3b35; background:#fcfbf6; box-shadow:0 20px 70px #0a1f24a8; }
.work-editor-dialog::backdrop { background:#102a33bc; }
.work-editor-dialog[open] { display:flex; flex-direction:column; }
.work-editor-head, .work-editor-toolbar, .work-editor-actions { padding:14px 20px; border-bottom:1px solid #dce2d7; }
.work-editor-head { display:flex; align-items:start; justify-content:space-between; gap:16px; }
.work-editor-head strong { font:1.35rem Georgia,serif; }
.work-editor-head p, .work-editor-columns p { margin:.4em 0 0; color:#52625d; font-size:.85rem; }
.work-editor-head button { border:0; background:transparent; color:inherit; font-size:1.7rem; cursor:pointer; }
.work-editor-toolbar { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.work-editor-group-label { font:700 .78rem/1.35 system-ui,sans-serif; color:#45645a; margin-inline:6px 2px; }
.work-editor-toolbar button, .work-editor-actions button { padding:8px 10px; border:1px solid #b6c5ba; background:#fff; color:#244b43; border-radius:5px; cursor:pointer; font:600 .83rem system-ui,sans-serif; }
.work-editor-toolbar button:hover, .work-editor-actions button:hover { background:#e7f0e8; }
.work-editor-toolbar [data-inline="b"] { font-weight:800; }
.work-editor-toolbar [data-inline="i"] { font-style:italic; }
.work-editor-toolbar [data-inline="u"] { text-decoration:underline; }
.work-editor-toolbar [data-inline="s"] { text-decoration:line-through; }
.work-editor-toolbar label { display:flex; align-items:center; gap:5px; font:.82rem system-ui,sans-serif; }
.work-editor-toolbar select, .work-editor-toolbar input[type=text] { width:80px; padding:6px; border:1px solid #aabbb1; border-radius:4px; }
.work-editor-toolbar input[type=color] { width:36px; height:30px; border:0; padding:0; }
.work-editor-columns { flex:1; min-height:0; display:grid; grid-template-columns:1fr 1fr; gap:16px; padding:14px 20px; }
.work-editor-columns > div { min-height:0; display:flex; flex-direction:column; }
.work-editor-columns label,.work-preview-title { margin-bottom:8px; font:600 .9rem system-ui,sans-serif; }
#work-source,.work-preview { min-height:0; flex:1; overflow:auto; border:1px solid #bbc9be; border-radius:6px; background:#fff; }
#work-source { padding:18px; resize:none; font:1rem/1.6 Georgia,serif; }
.work-preview .reading-text { margin:0; max-width:none; padding:18px; background:#fff; min-height:100%; font-size:1rem; }
.work-editor-actions { display:flex; align-items:center; justify-content:flex-end; gap:10px; border-top:1px solid #dce2d7; border-bottom:0; }
.work-editor-actions [data-action=apply] { color:#fff; background:#265649; }
.work-editor-actions [data-action=apply]:hover { background:#38755f; }
#work-editor-status { margin-right:auto; font-size:.8rem; }
@media(max-width:760px) { .work-editor-dialog { width:100vw; height:100dvh; border-radius:0; } .work-editor-columns { grid-template-columns:1fr; grid-template-rows:1fr 1fr; } .work-editor-head,.work-editor-toolbar,.work-editor-actions { padding:10px 12px; } .work-editor-toolbar { max-height:31vh; overflow:auto; } .reading-text.formatted-work { padding:22px; } }

.work-page-break{height:2rem}@media print{.work-page-break{height:0;break-after:page}}
