.rw40-notebook-dialog {
  background:#fff!important;
  width:min(920px,calc(100vw - 32px))!important;
  max-width:920px!important;
  max-height:min(92dvh,880px)!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  padding:20px!important;
}
.rw40-notebook-dialog select,.rw40-notebook-dialog input {min-width:0;box-sizing:border-box}
.rw40-notebook-dialog>* {min-width:0!important;max-width:100%!important}
.rw40-notebook-dialog :is(input,select,textarea,button) {max-width:100%}
.rw40-meta-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.rw40-meta-grid label {display:grid;gap:5px;min-width:0;color:#52585a;font-size:11px;font-weight:700}
.rw40-meta-grid select {width:100%;height:38px;min-width:0;border:1px solid #d4d8d6;border-radius:9px;background:#fff;padding:0 10px;color:#202425;font:inherit;font-size:13px}
.rw40-source-textarea {position:absolute!important;width:1px!important;height:1px!important;min-height:0!important;opacity:0!important;pointer-events:none!important;overflow:hidden!important}
.rw40-rich-editor {display:grid;min-width:0;border:1px solid #ccd5d0;border-radius:12px;background:#fff;overflow:hidden}
.rw40-editor-caption {padding:8px 11px 0;color:#5e6963;font-size:11px;font-weight:750}
.rw40-formatbar {display:flex;align-items:center;gap:5px;min-width:0;padding:8px;border-bottom:1px solid #d9e1dc;background:#f3f7f4;overflow-x:auto}
.rw40-tool,.rw40-tool-select {flex:none;min-width:34px;height:34px;border:1px solid #bdc9c2;border-radius:7px;background:#fff;color:#263029;font:inherit;font-size:12px;font-weight:700;cursor:pointer}
.rw40-tool:hover,.rw40-tool:focus-visible,.rw40-tool-select:focus-visible {border-color:#56826a;outline:2px solid #a8cbb4;outline-offset:1px}
.rw40-tool-select {min-width:96px;padding:0 8px;font-weight:600}
.rw40-tool.is-italic {font-style:italic}.rw40-tool.is-underline {text-decoration:underline}
.rw40-grifos-label {flex:none;margin-left:3px;color:#526159;font-size:10px;font-weight:800;text-transform:uppercase}
.rw40-highlight {background:var(--rw40-highlight)!important;color:#203029!important;font-size:15px;font-weight:900}
.rw40-red {color:#b42335!important}.rw40-blue {color:#1769aa!important}
.rw40-editor-area {min-height:145px;max-height:360px;overflow:auto;padding:12px;color:#1c2220;font-size:14px;line-height:1.6;outline:0;white-space:normal}
.rw40-editor-area:empty::before {content:attr(data-placeholder);color:#939b97;pointer-events:none}
.rw40-editor-area :is(p,div,h2,h3,ul,ol) {margin:.35em 0}.rw40-editor-area :is(ul,ol){padding-left:1.5rem}
.rw40-colored-record {position:relative;overflow:hidden;border-left:5px solid var(--rw40-accent,#d8b637)!important;background:color-mix(in srgb,var(--rw40-accent) 7%,white)!important}
.rw40-colored-record[data-rw40-color="yellow"] {--rw40-accent:#d9b62f}.rw40-colored-record[data-rw40-color="green"] {--rw40-accent:#49a86f}
.rw40-colored-record[data-rw40-color="blue"] {--rw40-accent:#4896d2}.rw40-colored-record[data-rw40-color="pink"] {--rw40-accent:#d96d97}.rw40-colored-record[data-rw40-color="gray"] {--rw40-accent:#8b9390}
.rw40-priority {display:inline-flex;margin-top:5px;padding:2px 7px;border-radius:999px;background:#ecefed;color:#555f5a;font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.04em}
.rw40-priority[data-priority="high"] {background:#fff0c9;color:#885f00}.rw40-priority[data-priority="critical"] {background:#ffe0e4;color:#a5142c}.rw40-priority[data-priority="low"] {background:#e5f4e9;color:#287043}
.rw40-rich-view {white-space:normal}.rw40-rich-view :is(p,div,h2,h3,ul,ol) {margin:.45em 0}.rw40-rich-view :is(ul,ol){padding-left:1.5rem}
html.dark .rw40-notebook-dialog,html.dark .rw40-rich-editor,html.dark .rw40-tool,html.dark .rw40-tool-select,html.dark .rw40-meta-grid select {background:#202627;color:#eef2ef;border-color:#52605a}
html.dark .rw40-formatbar {background:#29312d;border-color:#52605a}.dark .rw40-editor-area{color:#eef2ef}.dark .rw40-editor-caption,.dark .rw40-meta-grid label{color:#c4cec8}
html.dark .rw40-colored-record {background:color-mix(in srgb,var(--rw40-accent) 12%,#202627)!important}
@media(max-width:640px){
  .rw40-notebook-dialog {width:calc(100vw - 16px)!important;max-height:calc(100dvh - 16px)!important;padding:14px!important}
  .rw40-meta-grid {grid-template-columns:1fr}.rw40-editor-area{min-height:130px}.rw40-formatbar{padding:7px 6px}
}
