/* V19 — refined ADEN WYSIWYG: restrained color, direct formatting, tactile micro-interactions. */
.aden-wysiwyg{position:relative;isolation:isolate;box-sizing:border-box;min-width:0;margin:8px 0 12px;border:1px solid #dfe7f0;border-radius:14px;background:#fff;box-shadow:0 2px 10px rgba(36,57,82,.035);overflow:hidden;transition:border-color .18s,box-shadow .18s,transform .18s}
.aden-wysiwyg:hover{border-color:#cddae8;box-shadow:0 5px 18px rgba(36,57,82,.052)}
.aden-wysiwyg:focus-within{border-color:#ed865d;box-shadow:0 0 0 3px rgba(237,79,24,.1),0 7px 20px rgba(36,57,82,.05)}
.aden-wysiwyg.is-invalid{border-color:#da4444;box-shadow:0 0 0 3px rgba(218,68,68,.09)}
.aden-wysiwyg-toolbar{min-height:41px;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:5px 9px;background:linear-gradient(110deg,#fbfcff 0%,#fffaf7 100%);border-bottom:1px solid #e8edf5}
.aden-wysiwyg-tools{display:flex;align-items:center;gap:4px;flex-wrap:wrap}
.aden-wysiwyg-action{appearance:none;display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:30px;padding:6px 10px;border-radius:8px;border:1px solid transparent;background:transparent;color:#364860;cursor:pointer;font:inherit;font-size:11px;font-weight:690;line-height:1;transition:background .16s,border-color .16s,transform .16s,color .16s}
.aden-wysiwyg-action svg{width:15px;height:15px;flex-shrink:0}
.aden-wysiwyg-action:hover{background:#fff0e8;border-color:#ffd6c3;color:#db4a19;transform:translateY(-1px)}
.aden-wysiwyg-action:active{transform:translateY(0);background:#ffe8dc}
.aden-wysiwyg-action:focus-visible{outline:2px solid #ed4f18;outline-offset:2px}
.aden-wysiwyg-action[data-command=bold]{font-weight:790}
.aden-wysiwyg-action[data-command=italic] span{font-style:italic}
.aden-wysiwyg-action+ .aden-wysiwyg-action[data-command=bullet]{position:relative}
.aden-wysiwyg-action[data-command=bullet]{margin-left:4px;border-left-color:#e9edf3;border-top-left-radius:0;border-bottom-left-radius:0}
.aden-wysiwyg-meta{display:flex;align-items:center;gap:5px;color:#9b6976;font-size:10px;font-weight:670;white-space:nowrap;letter-spacing:.01em}
.aden-wysiwyg-meta svg{width:14px;height:14px;color:#ed6536}
.aden-wysiwyg-surface{box-sizing:border-box;min-height:109px;max-height:410px;overflow:auto;padding:13px 15px;color:#253750;background:#fff;font-size:12.5px;line-height:1.75;outline:none;overflow-wrap:anywhere;white-space:pre-wrap;caret-color:#ed4f18}
.aden-wysiwyg-surface:focus{outline:none}
.aden-wysiwyg-surface p{margin:0 0 8px}
.aden-wysiwyg-surface p:last-child{margin-bottom:0}
.aden-wysiwyg-surface ul,.aden-wysiwyg-surface ol{margin:4px 0 10px;padding-left:22px;white-space:normal}
.aden-wysiwyg-surface ul{list-style-type:disc}.aden-wysiwyg-surface ol{list-style-type:decimal}
.aden-wysiwyg-surface li{padding-left:2px;line-height:1.65}
.aden-wysiwyg-surface strong{font-weight:790;color:#1c2e49}
.aden-wysiwyg-surface em{font-style:italic}
.aden-wysiwyg-surface:empty::before{content:attr(data-placeholder);color:#a3aebe;pointer-events:none}
.aden-wysiwyg-foot{display:flex;justify-content:space-between;align-items:center;gap:7px;min-height:25px;padding:5px 12px;background:#fcfdff;border-top:1px solid #f0f3f8;font-size:10px;color:#8493a6}
.aden-wysiwyg-hint{display:flex;align-items:center;gap:5px}.aden-wysiwyg-hint svg{width:12px;height:12px;color:#309979}
.aden-wysiwyg-count{font-variant-numeric:tabular-nums;white-space:nowrap;color:#96a2b1}
.aden-wysiwyg-source{position:absolute!important;top:0!important;left:-10000px!important;width:1px!important;height:1px!important;min-width:1px!important;min-height:1px!important;max-width:1px!important;max-height:1px!important;opacity:0!important;overflow:hidden!important;border:0!important;padding:0!important;pointer-events:none!important}
/* Keeping a detached label and editor as siblings fixes the old label/textarea overlap. */
label:has(+ .aden-wysiwyg){display:block!important;height:auto!important;margin-bottom:5px!important;white-space:normal;line-height:1.45}
.v16-editor-panel.v4-editor label:has(+ .aden-wysiwyg){margin-bottom:5px!important}
.v16-editor-panel.v4-editor .aden-wysiwyg{margin-top:6px;margin-bottom:13px}
.v16-subcheck-card .aden-wysiwyg{margin-bottom:12px}
.aden-wysiwyg.is-readonly{background:#fafbfd;box-shadow:none;border-color:#e5eaf2}
.aden-wysiwyg.is-readonly .aden-wysiwyg-toolbar{min-height:30px;padding:6px 11px;background:#f8fafc}
.aden-wysiwyg.is-readonly .aden-wysiwyg-surface{background:#fafbfd;min-height:65px;max-height:360px}
.aden-wysiwyg.is-readonly .aden-wysiwyg-meta{color:#718197}
/* Server-rendered rich notes (checklist, report, evidence) get matching typography. */
.aden-rich-render p{margin:0 0 7px;line-height:1.7;overflow-wrap:anywhere}
.aden-rich-render p:last-child{margin-bottom:0}
.aden-rich-render ul,.aden-rich-render ol{margin:5px 0 8px;padding-left:22px;list-style-position:outside}
.aden-rich-render ul{list-style-type:disc}.aden-rich-render ol{list-style-type:decimal}
.aden-rich-render li{padding:2px 0;line-height:1.65;overflow-wrap:anywhere}
.aden-rich-render strong{font-weight:790;color:inherit}
.aden-rich-render em{font-style:italic}
@media(max-width:680px){.aden-wysiwyg-toolbar{padding:5px 7px}.aden-wysiwyg-action{min-width:32px;padding:7px}.aden-wysiwyg-action span{display:none}.aden-wysiwyg-meta span{display:none}.aden-wysiwyg-surface{min-height:98px;padding:12px;font-size:13px}}
@media(prefers-reduced-motion:reduce){.aden-wysiwyg,.aden-wysiwyg-action{transition:none!important}.aden-wysiwyg-action:hover{transform:none!important}}
@media print{.aden-wysiwyg-toolbar,.aden-wysiwyg-foot{display:none!important}.aden-wysiwyg{border:0;box-shadow:none!important}.aden-wysiwyg-surface{max-height:none;min-height:0}}
