.manual-author{margin-top:22px;min-width:0}.manual-author-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.manual-author-heading strong{font-size:15px}.manual-help{font-size:13px;line-height:1.8;color:#65705d;margin:10px 0 14px}.manual-help kbd{font-family:inherit;font-size:12px;border:1px solid #d7decf;border-radius:4px;padding:1px 5px;background:#f8faf5}.manual-author .rich-editor{border-radius:12px;border-color:#ced8c5}.manual-author .rich-toolbar{padding:8px;row-gap:6px}.manual-author .rich-tool-group{height:32px}.manual-author .rich-editor .rich-toolbar button{min-width:32px;min-height:32px;height:32px}.manual-author .rich-body{min-height:430px;max-height:72vh;overflow:auto;padding:24px;font-size:16px;line-height:1.85;background:white;color:#20291f}.manual-author .rich-body>p{margin:0 0 14px}.manual-bottom{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-top:12px}.manual-bottom>span{font-size:12px;color:#737c6c}.manual-content{white-space:normal;font-size:16px;line-height:1.9;overflow-wrap:anywhere;min-width:0}.manual-content p{margin:0 0 16px}.manual-content h2,.manual-content h3{margin:28px 0 14px}.manual-content img{max-width:100%;height:auto}.manual-content table{width:100%;border-collapse:collapse;table-layout:fixed}.manual-content td,.manual-content th{border:1px solid #cfd6c8;padding:12px}.manual-content blockquote{border-left:4px solid var(--brand-accent,#baff65);background:#f5f8ee;padding:16px;margin:16px 0}.manual-author .rich-body [data-manual-image],.manual-content [data-manual-image]{display:block;position:relative;line-height:0;width:100%;margin:22px 0;cursor:zoom-in;isolation:isolate;outline-offset:4px}.manual-author .rich-body [data-manual-image]{cursor:pointer}.manual-author .rich-body [data-manual-image]>img,.manual-content [data-manual-image]>img{display:block;width:100%;height:auto;max-width:100%;margin:0;object-fit:contain}.manual-image-overlay,.manual-stage-boxes{position:absolute;inset:0;display:block;pointer-events:none}.manual-box{position:absolute;border:3px solid #e52222;box-sizing:border-box;pointer-events:none}.manual-box-label{position:absolute;left:-3px;top:-3px;transform:translateY(-100%);display:block;max-width:300px;background:#e52222;color:white;font:700 clamp(10px,1.05vw,14px)/1.3 Arial,sans-serif;padding:3px 6px;border-radius:3px 3px 0 0;white-space:normal;overflow-wrap:anywhere;min-width:18px}.manual-image-dialog,.manual-preview-dialog{box-sizing:border-box;border:1px solid #d7dece;border-radius:18px;padding:0;width:min(1440px,96vw);max-width:96vw;max-height:94vh;color:#20291f;background:white;box-shadow:0 24px 80px #0004}.manual-image-dialog::backdrop,.manual-preview-dialog::backdrop{background:#16200f99}.manual-image-dialog[open]{display:flex;flex-direction:column}.manual-image-dialog *,.manual-preview-dialog *{box-sizing:border-box}.manual-image-dialog header,.manual-preview-dialog header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 24px;border-bottom:1px solid #e0e6d8}.manual-image-dialog h2,.manual-preview-dialog h2{margin:0;font-size:21px}.manual-image-dialog header p{font-size:13px;color:#68745f;line-height:1.6;margin:8px 0 0}.manual-image-dialog button,.manual-image-dialog select,.manual-image-dialog input{font:inherit;font-size:13px}.manual-image-dialog button{cursor:pointer}.manual-image-tools{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:12px 24px;border-bottom:1px solid #e0e6d8}.manual-image-tools button,.manual-box-settings button{border:1px solid #d6decd;background:#fff;border-radius:7px;min-height:38px;padding:8px 12px;color:#24321b}.manual-image-tools [aria-pressed=true],.manual-box-list [aria-pressed=true]{background:var(--brand-accent,#baff65);border-color:var(--brand-accent,#baff65);color:var(--brand-ink,#14200d)}.manual-image-tools label{display:flex;align-items:center;gap:8px;margin-left:auto;font-size:12px}.manual-image-tools select{max-width:140px;padding:8px;border:1px solid #cfd8c5;border-radius:6px}.manual-image-layout{display:flex;min-height:0;flex:1;overflow:hidden}.manual-image-viewport{background:#eff2ec;padding:38px 24px 24px;overflow:auto;min-width:0;flex:1;max-height:62vh}.manual-image-stage{position:relative;width:100%;max-width:100%;line-height:0;touch-action:none;user-select:none;background:white}.manual-image-stage>img{display:block;width:100%;height:auto;max-width:none;pointer-events:none}.manual-image-stage[data-mode=draw]{cursor:crosshair}.manual-image-stage[data-mode=select] .manual-box{pointer-events:auto;cursor:move}.manual-image-stage .manual-box.is-selected{outline:2px dashed white;outline-offset:2px}.manual-handle{position:absolute;width:12px;height:12px;background:white;border:2px solid #e52222;pointer-events:auto}.manual-handle.nw{left:-7px;top:-7px;cursor:nwse-resize}.manual-handle.ne{right:-7px;top:-7px;cursor:nesw-resize}.manual-handle.sw{left:-7px;bottom:-7px;cursor:nesw-resize}.manual-handle.se{right:-7px;bottom:-7px;cursor:nwse-resize}.manual-box-settings{flex:0 0 245px;padding:20px;border-left:1px solid #e0e6d8;overflow:auto;font-size:13px;line-height:1.6}.manual-box-settings h3{font-size:15px;margin:0 0 8px}.manual-box-settings p,.manual-box-settings small{color:#727b69;font-size:12px}.manual-box-settings label{display:grid;gap:6px;margin:14px 0}.manual-box-settings input,.manual-box-settings select{width:100%;min-width:0;border:1px solid #ccd6c0;border-radius:6px;min-height:40px;padding:8px;background:white}.manual-box-list{display:grid;gap:6px;max-height:180px;overflow:auto}.manual-box-list button{text-align:left;overflow-wrap:anywhere}.manual-box-settings [data-delete]{color:#a63b31;width:100%;margin-bottom:14px}.manual-image-dialog footer{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:10px;padding:16px 24px;border-top:1px solid #e0e6d8}.manual-image-dialog footer span{margin-right:auto;font-size:12px;color:#717d65}.manual-image-dialog footer [data-remove-image]{color:#a83c30;margin-right:auto}.manual-dialog-status{font-size:13px;color:#a44032;margin:0;padding:0 24px;line-height:1.6}.manual-dialog-status:empty{display:none}.manual-image-dialog [disabled]{opacity:.4;cursor:default}.manual-image-error{font-size:13px;line-height:1.6;margin:12px;padding:8px;background:white;border:1px solid #be6259}.manual-preview-dialog>.manual-content{padding:28px;max-width:1100px;margin:auto}.manual-preview-dialog header{position:sticky;top:0;background:white;z-index:2}.manual-author [aria-busy=true] .rich-status{color:#4f6f32}.manual-author .rich-status{padding:8px 16px;font-size:13px;line-height:1.7;margin:0}.manual-author .rich-status:empty{display:none}
@media(max-width:700px){.manual-author .rich-body{min-height:340px;padding:16px}.manual-image-dialog{width:98vw;max-width:98vw;max-height:96vh;border-radius:10px}.manual-image-dialog header,.manual-image-tools{padding:12px}.manual-image-dialog header p{font-size:12px}.manual-image-dialog h2{font-size:18px}.manual-image-tools label{margin-left:0}.manual-image-layout{flex-direction:column;overflow:auto}.manual-image-viewport{flex:none;max-height:44vh;padding:30px 12px 16px}.manual-box-settings{flex:none;border-left:0;border-top:1px solid #e0e6d8;padding:12px;overflow:visible}.manual-box-settings h3,.manual-box-settings>p,.manual-box-settings small{display:none}.manual-box-list{max-height:90px}.manual-box-settings label{display:inline-grid;width:calc(50% - 8px);margin:10px 4px}.manual-image-dialog footer{padding:12px;gap:8px}.manual-image-dialog footer span{width:100%;order:-1}.manual-preview-dialog>.manual-content{padding:16px}.manual-box-label{font-size:10px;max-width:160px}.manual-bottom>span{font-size:11px}}

/* Keep site-wide header, footer and login-dialog styles out of the editor dialogs. */
.manual-image-dialog>header,.manual-preview-dialog>header{position:static;background:#fff;color:#20291f;flex-direction:row;flex-shrink:0;backdrop-filter:none;height:auto;min-height:0}.manual-image-dialog>header>div{flex:1;min-width:0}.manual-image-dialog>header h2,.manual-preview-dialog>header h2{color:#20291f}.manual-image-dialog>header .btn,.manual-preview-dialog>header .btn{width:auto;min-width:40px;flex:0 0 auto;margin:0}.manual-image-dialog>footer{position:static;background:#fff;color:#20291f;display:flex;flex-direction:row;text-align:left;flex-shrink:0}.manual-image-dialog .btn,.manual-preview-dialog .btn{width:auto;flex:0 0 auto;margin:0;min-height:40px;padding:10px 16px}.manual-image-dialog>footer [data-remove-image]{margin-right:auto}.manual-image-dialog .manual-image-tools{flex-shrink:0}.manual-preview-dialog>header{position:sticky}.manual-image-dialog .manual-box-settings{background:white}
