/* rich text editor + its toolbar (Opus One look) */
.rt { position: absolute; inset: 0; }
.rt-bar { position: absolute; left: 0; right: 0; height: 24px; font: 400 13px var(--f-ui); color: #444; z-index: 3; }
.rt-i { position: absolute; top: 0; height: 24px; border: 0; background: none; padding: 0; display: flex; align-items: center; justify-content: center; color: #555; font: 400 13px var(--f-ui); cursor: pointer; border-radius: 4px; white-space: nowrap; }
.rt-i.ic { width: 22px; }
.rt-i:hover { background: rgba(0,0,0,.06); }
.rt-i.on { background: rgba(46,134,240,.18); color: #1d5fc2; }
.rt-i b { font-weight: 500; color: #333; margin-left: 5px; font-size: 13px; }
.rt-i .rt-ins { display: flex; }
.rt-i em { font-style: normal; color: #585858; font-size: 13px; margin-right: 3px; }
.rt-i .ud { display: flex; margin-left: 2px; }
.rt-i .dash { display: block; width: 11px; height: 1.6px; background: #333; border-radius: 1px; }
.rt-i .plus { position: relative; display: block; width: 11px; height: 11px; }
.rt-i .plus::before, .rt-i .plus::after { content: ''; position: absolute; background: #333; border-radius: 1px; }
.rt-i .plus::before { left: 0; right: 0; top: 4.7px; height: 1.6px; } .rt-i .plus::after { top: 0; bottom: 0; left: 4.7px; width: 1.6px; }
.rt-size { position: absolute; top: 0; height: 24px; width: 30px; display: flex; align-items: center; justify-content: center; font: 400 13px var(--f-ui); color: #333; margin-left: -2px; }
.rt-i .cdot { display: block; width: 14px; height: 14px; border-radius: 50%; background: #000; }
.rt-i.fm b, .rt-i.fm i, .rt-i.fm u { font-size: 12.5px; color: #333; margin: 0; }
.rt-i.more { color: #222; gap: 4px; font-weight: 400; padding-right: 2px; }
.rt-i.more span { font-size: 13px; font-weight: 500; }

.rt-focus .rt-bar { opacity: 0; pointer-events: none; transition: opacity .18s; }
.rt-focus:focus-within .rt-bar, .rt-focus .rt-bar:hover { opacity: 1; pointer-events: auto; }

.rt-body { font-weight: 400; position: absolute; left: 0; right: 0; bottom: 0; outline: none; overflow-y: auto; color: #111; font-family: var(--f-thin); font-size: 22px; line-height: 22.5px; word-wrap: break-word; padding: 0 2px 20px 0; caret-color: #2e86f0; }
.rt-body:empty::before { content: attr(data-ph); color: #6c6c6c; }
.rt-body div, .rt-body p { margin: 0; min-height: 1em; }
.rt-body h2 { font-size: 1.4em; margin: .2em 0; font-weight: 700; }
.rt-body ul, .rt-body ol { margin: 0; padding-left: 1.4em; }
.rt-body hr { border: 0; border-top: 1px solid #bbb; margin: .5em 0; }
.rt-body a { color: #2e6fe0; text-decoration: underline; }
.rt-body .cl { display: flex; align-items: baseline; gap: 4px; }
.rt-body .cl .cb { display: inline-block; flex: 0 0 auto; width: .62em; height: .62em; border: 1.5px solid #666; border-radius: 3px; cursor: pointer; transform: translateY(2px); background: rgba(255,255,255,.4); }
.rt-body .cl .cb.on { background: #2e86f0; border-color: #2e86f0; box-shadow: inset 0 0 0 2px #fff; }
.rt-body .cl.done { color: #5c5c5c; text-decoration: line-through; }

/* pictures and files inside a note */
.rt-body .att-img, .me-body .att-img { margin: 6px 0; } .rt-body .att-img img, .me-body .att-img img, .rt-body img[data-att], .me-body img[data-att] { max-width: 100%; max-height: 420px; border-radius: 8px; display: block; cursor: zoom-in; object-fit: contain; }
.rt-body a.att, .me-body a.att { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 16px; background: rgba(104,189,226,.18); color: #176b94; text-decoration: none; font-weight: 600; font-size: .78em; cursor: pointer; max-width: 100%; vertical-align: middle; -webkit-user-select: none; user-select: none; }
.rt-body a.att i, .me-body a.att i { font-style: normal; font-weight: 500; opacity: .65; }
