.ra-ui[hidden]{display:none!important}
.ra-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:14px 0 30px;font:13px/1.5 system-ui,sans-serif;color:#444}
.ra-toolbar button,.ra-selection,.ra-compose button,.ra-marker{font:inherit;text-transform:none;letter-spacing:normal;cursor:pointer;border-radius:3px;box-shadow:none}
.ra-toggle{padding:7px 10px;border:1px solid #b8b8b1;background:transparent;color:#222}
.ra-toggle[aria-pressed=true]{background:#222;color:#fff;border-color:#222}
.ra-count,.ra-hint{color:#666}.ra-hint{font-size:12px}.ra-status{flex-basis:100%;color:#444}.ra-status:empty{display:none}
::highlight(rusul-annotations){background-color:#e6dbaf;color:inherit;text-decoration:underline;text-decoration-color:#a48d42}
.ra-layer{position:absolute;inset:0;z-index:5;pointer-events:none;overflow:visible;height:0!important}
.ra-card{font:13px/1.5 system-ui,sans-serif;color:#242424;background:#fafaf8;border:1px solid #d4d4cc;border-left:2px solid #8c8055;padding:10px 12px;box-sizing:border-box;overflow-wrap:anywhere;text-align:left;white-space:normal;box-shadow:none;max-width:100%}
.ra-margin-card{position:absolute;pointer-events:auto}.ra-card-head{display:flex;gap:8px;align-items:baseline}.ra-number{font:11px/1.5 monospace;color:#777}.ra-author{font-size:13px}.ra-type{font-size:11px;color:#65655e;margin:3px 0}.ra-quote{font:12px/1.5 system-ui,sans-serif;border-left:2px solid #c5b98d;padding:4px 8px;color:#555;margin:8px 0;white-space:pre-wrap;max-height:110px;overflow:auto}.ra-note{white-space:pre-wrap}.ra-focus{outline:2px solid #84734b;outline-offset:2px}
.ra-marker{position:absolute;pointer-events:auto;background:#333;color:#fff;border:0;border-radius:50%;width:18px;height:18px;padding:0;font:10px/18px system-ui,sans-serif;transform:translateX(-50%);text-align:center}
.ra-inline-group,.ra-unplaced{font:13px/1.5 system-ui,sans-serif;color:#444;margin:8px 0 20px}.ra-inline-group summary,.ra-unmatched summary{cursor:pointer;font-weight:600}.ra-inline-group .ra-card,.ra-unmatched .ra-card{margin-top:8px}
.ra-selection{position:fixed;z-index:99990;background:#202020;color:white;border:0;padding:8px 12px;font:13px/1.4 system-ui,sans-serif;box-shadow:0 2px 7px #0003}
.ra-compose{display:block;border:1px solid #c9c9c4;border-radius:4px;background:#fff;color:#222;padding:16px;width:100%;max-width:100%;font:14px/1.5 system-ui,sans-serif;box-sizing:border-box;text-align:left;margin:12px 0 24px;box-shadow:0 3px 14px #0001}
.ra-compose-docked{position:fixed;right:10px;top:clamp(12px,10vh,80px);z-index:99990;max-height:calc(100vh - clamp(12px,10vh,80px) - 16px);overflow:auto;margin:0;overscroll-behavior:contain}
.ra-compose-active{visibility:hidden}
::highlight(rusul-draft){background:#ded2a1;color:inherit}
.ra-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.ra-compose h2{font:600 18px/1.3 system-ui,sans-serif;margin:0;color:#222}.ra-compose .ra-close{border:0;background:transparent;color:#555;padding:6px}.ra-compose .ra-help{font:12px/1.5 system-ui,sans-serif;margin:12px 0;color:#555}.ra-field{display:block;font:13px/1.4 system-ui,sans-serif;margin:8px 0;color:#333}.ra-field input,.ra-field textarea,.ra-field select{display:block;box-sizing:border-box;width:100%;border:1px solid #c8c8c8;background:white;color:#222;border-radius:3px;font:14px/1.4 system-ui,sans-serif;padding:8px;margin:5px 0 0}.ra-field textarea{resize:vertical}.ra-submit{background:#222;color:#fff;border:0;padding:10px 14px;font:600 13px/1.4 system-ui,sans-serif}.ra-submit:disabled{opacity:.55;cursor:wait}.ra-form-message{color:#8c3329;margin:8px 0}.ra-trap{position:absolute!important;left:-10000px!important;top:auto!important;width:1px!important;height:1px!important;opacity:0!important}

.ra-compose .ra-field textarea{min-height:80px}.ra-compose .ra-close{font-size:22px;line-height:1}.ra-compose .ra-submit{width:100%}

/* v1.3: quiet editorial invitation and optional palette. */
.ra-intro{flex-basis:100%;margin:0 0 3px}.ra-cta{font-size:14px;font-weight:600;color:#222}.ra-intro .ra-instruction{font:12px/1.5 system-ui,sans-serif;margin:3px 0 0;color:#666}.ra-colors{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin:8px 0 10px}.ra-color-label{font-size:12px;color:#555;margin-right:3px}.ra-compose .ra-swatch{width:23px;height:23px;border-radius:50%;padding:0;border:1px solid #888;background:var(--ra-color);min-width:0;min-height:0;position:relative}.ra-compose .ra-swatch[aria-pressed=true]{outline:2px solid #333;outline-offset:2px}.ra-swatch[aria-pressed=true]::after{content:'✓';position:absolute;inset:0;line-height:21px;text-align:center;color:#222;font-size:13px}.ra-swatch:focus-visible{outline:2px solid #222;outline-offset:3px}.ra-card[data-color]{border-left-color:var(--ra-edge);border-left-width:3px}.ra-card[data-color] .ra-quote,.ra-compose[data-color] .ra-quote{border-left-color:var(--ra-edge)}.ra-marker[data-color]{background:var(--ra-color);color:#222;border:1px solid var(--ra-edge)}
:is(.ra-card,.ra-marker,.ra-compose,.ra-swatch)[data-color="gold"]{--ra-color:#E8DDA8;--ra-edge:#9E8845}
::highlight(rusul-annotations-gold){background-color:#E8DDA8;color:inherit;text-decoration:underline;text-decoration-color:#9E8845}
::highlight(rusul-draft-gold){background-color:#E8DDA8;color:inherit}
:is(.ra-card,.ra-marker,.ra-compose,.ra-swatch)[data-color="sage"]{--ra-color:#B9D8C7;--ra-edge:#608E77}
::highlight(rusul-annotations-sage){background-color:#B9D8C7;color:inherit;text-decoration:underline;text-decoration-color:#608E77}
::highlight(rusul-draft-sage){background-color:#B9D8C7;color:inherit}
:is(.ra-card,.ra-marker,.ra-compose,.ra-swatch)[data-color="blue"]{--ra-color:#BCD3E8;--ra-edge:#668BAB}
::highlight(rusul-annotations-blue){background-color:#BCD3E8;color:inherit;text-decoration:underline;text-decoration-color:#668BAB}
::highlight(rusul-draft-blue){background-color:#BCD3E8;color:inherit}
:is(.ra-card,.ra-marker,.ra-compose,.ra-swatch)[data-color="plum"]{--ra-color:#DEC4D9;--ra-edge:#9B7796}
::highlight(rusul-annotations-plum){background-color:#DEC4D9;color:inherit;text-decoration:underline;text-decoration-color:#9B7796}
::highlight(rusul-draft-plum){background-color:#DEC4D9;color:inherit}
