/* Scoped to the native document editor; saving and attachments live outside it. */
.aven-document-editor{box-sizing:border-box;max-width:100%;min-width:0;border:1px solid var(--mist,#dfe6e0);border-radius:10px;background:var(--paper,#fbfcfa);color:var(--ink,#1c2b26);font-family:var(--sans,'Segoe UI',sans-serif);overflow:hidden}
.aven-document-editor *{box-sizing:border-box}
.aven-document-editor [hidden]{display:none!important}
.aven-document-editor__toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:7px;padding:10px;border-bottom:1px solid var(--mist,#dfe6e0);background:var(--cloud,#f3f5f1)}
.aven-document-editor__group{display:flex;align-items:center;gap:3px;min-width:0;padding-right:7px;border-right:1px solid var(--mist,#dfe6e0)}
.aven-document-editor__toolbar button,.aven-document-editor__toolbar select,.aven-document-editor__table-tools>summary,.aven-document-editor__link-panel button{min-height:38px;min-width:38px;border:1px solid transparent;border-radius:5px;background:transparent;color:var(--pine,#2e4b3f);font:600 12px/1.25 var(--sans,'Segoe UI',sans-serif);padding:8px 9px;cursor:pointer}
.aven-document-editor__toolbar button:hover:not(:disabled),.aven-document-editor__table-tools>summary:hover,.aven-document-editor__link-panel button:hover{background:#e3ebe1}
.aven-document-editor__toolbar button[aria-pressed=true]{border-color:#bdcdbb;background:#e1eadd;color:var(--ink,#1c2b26)}
.aven-document-editor__toolbar button:disabled{opacity:.4;cursor:default}
.aven-document-editor__toolbar select{border-color:var(--mist,#dfe6e0);background:var(--paper,#fbfcfa);max-width:150px}
.aven-document-editor__style-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.aven-document-editor [data-editor-command=bold]{font-weight:800}
.aven-document-editor [data-editor-command=italic]{font-style:italic}
.aven-document-editor [data-editor-command=underline]{text-decoration:underline}
.aven-document-editor [data-editor-command=strike]{text-decoration:line-through}
.aven-document-editor [data-editor-command=undo],.aven-document-editor [data-editor-command=redo]{font-size:22px;line-height:1}
.aven-document-editor__table-tools{min-width:0;max-width:100%}
.aven-document-editor__table-tools>summary{display:list-item;margin-left:17px}
.aven-document-editor__table-actions{display:flex;flex-wrap:wrap;gap:4px;padding:5px 0;max-width:100%}
.aven-document-editor__table-tools[open]{flex-basis:100%;border-top:1px solid var(--mist,#dfe6e0);padding-top:5px}
.aven-document-editor__link-panel{padding:14px;border-bottom:1px solid var(--mist,#dfe6e0);background:var(--cloud,#f3f5f1)}
.aven-document-editor__link-panel label{display:block;font-size:12px;font-weight:700;margin-bottom:6px}
.aven-document-editor__link-panel input{display:block;width:100%;max-width:100%;min-width:0;min-height:44px;padding:10px;border:1px solid #a9baa9;border-radius:5px;background:var(--paper,#fbfcfa);color:var(--ink,#1c2b26);font:16px/1.4 var(--sans,'Segoe UI',sans-serif)}
.aven-document-editor__link-actions{display:flex;gap:8px;margin-top:10px}
.aven-document-editor__link-actions button:first-child{background:var(--pine,#2e4b3f);color:var(--paper,#fbfcfa)}
.aven-document-editor__surface{min-width:0;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}
.aven-document-editor__content{min-height:300px;padding:24px 28px;outline:none;font:16px/1.8 var(--sans,'Segoe UI',sans-serif);overflow-wrap:anywhere;white-space:pre-wrap;word-break:normal}
.aven-document-editor__content:focus-visible{box-shadow:inset 0 0 0 2px var(--rain,#5b7e8c);outline:none}
.aven-document-editor__content>:first-child{margin-top:0}
.aven-document-editor__content p{margin:0 0 13px}
.aven-document-editor__content h1,.aven-document-editor__content h2,.aven-document-editor__content h3{font-family:var(--serif,Georgia,serif);font-weight:400;line-height:1.2;letter-spacing:-.02em;margin:25px 0 13px;color:var(--ink,#1c2b26)}
.aven-document-editor__content h1{font-size:36px}.aven-document-editor__content h2{font-size:29px}.aven-document-editor__content h3{font-size:24px}
.aven-document-editor__content ul,.aven-document-editor__content ol{padding-left:24px;margin:12px 0 16px}
.aven-document-editor__content li{margin:5px 0;padding-left:3px}
.aven-document-editor__content li>p{margin:0 0 5px}
.aven-document-editor__content blockquote{border-left:3px solid var(--sage,#adbfae);padding:4px 0 4px 18px;margin:20px 0;color:var(--body,#3d4f47)}
.aven-document-editor__content code{font-family:Consolas,'Courier New',monospace;font-size:.9em;background:#e9eee7;padding:2px 4px;border-radius:3px}
.aven-document-editor__content pre{background:#24382e;color:#f3f5f1;border-radius:6px;padding:16px;overflow-x:auto;white-space:pre;font:14px/1.6 Consolas,'Courier New',monospace;margin:18px 0}
.aven-document-editor__content pre code{background:transparent;color:inherit;padding:0;font-size:inherit}
.aven-document-editor__content a{color:var(--pine,#2e4b3f);text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}
.aven-document-editor__content hr{border:0;border-top:1px solid #c8d4c6;margin:24px 0}
.aven-document-editor__content ul[data-type=taskList]{list-style:none;padding-left:0}
.aven-document-editor__content li[data-type=taskItem]{display:flex;align-items:flex-start;gap:10px;padding-left:0}
.aven-document-editor__content li[data-type=taskItem]>label{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:32px;min-height:32px;margin:0;user-select:none}
.aven-document-editor__content li[data-type=taskItem]>label input{width:20px;height:20px;margin:0;accent-color:var(--pine,#2e4b3f);cursor:pointer}
.aven-document-editor__content li[data-type=taskItem]>div{flex:1;min-width:0;padding-top:2px}
.aven-document-editor__content li[data-type=taskItem][data-checked=true]>div>p{color:#627263}
.aven-document-editor__content li[data-type=taskItem] ul[data-type=taskList]{margin-left:3px}
.aven-document-editor__content .tableWrapper{max-width:100%;overflow-x:auto;margin:18px 0}
.aven-document-editor__content table{border-collapse:collapse;table-layout:fixed;width:100%;min-width:320px;margin:18px 0;overflow:visible}
.aven-document-editor__content .tableWrapper table{margin:0}
.aven-document-editor__content td,.aven-document-editor__content th{min-width:85px;border:1px solid #b7c8b4;padding:9px 11px;vertical-align:top;text-align:left;position:relative}
.aven-document-editor__content th{background:#e9efe5;font-weight:700}
.aven-document-editor__content td>p:last-child,.aven-document-editor__content th>p:last-child{margin-bottom:0}
.aven-document-editor__content .selectedCell::after{content:'';position:absolute;inset:0;background:#adc4a93b;pointer-events:none;z-index:1}
.aven-document-editor__hint,.aven-document-editor__status{font:12px/1.6 var(--sans,'Segoe UI',sans-serif);margin:0;padding:10px 16px;color:var(--muted,#53675c)}
.aven-document-editor__status:empty{display:none}
.aven-document-editor__status[role=alert]{color:#8d352c;background:#fff0ed;border-top:1px solid #e6bcb5}
.aven-document-editor__link-panel .aven-document-editor__hint{padding:6px 0 0}
.aven-document-editor button:focus-visible,.aven-document-editor select:focus-visible,.aven-document-editor input:focus-visible,.aven-document-editor summary:focus-visible,.aven-document-editor a:focus-visible{outline:3px solid var(--rain,#5b7e8c);outline-offset:2px}
.aven-document-editor.is-read-only{border-color:transparent;background:transparent}
.aven-document-editor.is-read-only .aven-document-editor__content{min-height:0;padding:8px 0 24px}
@media(max-width:690px),(pointer:coarse){
  .aven-document-editor__toolbar{padding:7px;gap:5px}
  .aven-document-editor__group{gap:2px;padding-right:4px}
  .aven-document-editor__toolbar button,.aven-document-editor__toolbar select,.aven-document-editor__table-tools>summary,.aven-document-editor__link-panel button{min-width:44px;min-height:44px;font-size:13px;padding:9px}
  .aven-document-editor__toolbar select{font-size:16px;max-width:145px}
  .aven-document-editor__content{min-height:270px;padding:20px 16px;font-size:16px;line-height:1.8}
  .aven-document-editor__content h1{font-size:32px}.aven-document-editor__content h2{font-size:27px}.aven-document-editor__content h3{font-size:23px}
  .aven-document-editor__content li[data-type=taskItem]>label{width:44px;min-height:44px}
  .aven-document-editor__content li[data-type=taskItem]>div{padding-top:8px}
  .aven-document-editor__content li[data-type=taskItem]>label input{width:24px;height:24px}
  .aven-document-editor__content table{min-width:320px}
  .aven-document-editor__content td,.aven-document-editor__content th{padding:9px}
}
@media print{.aven-document-editor__toolbar,.aven-document-editor__link-panel,.aven-document-editor__hint,.aven-document-editor__status{display:none}.aven-document-editor{border:0}.aven-document-editor__content{padding:0;min-height:0}.aven-document-editor__surface{overflow:visible}}
