/* Opt-in annotations use the existing Reader palette and direct editor. */
.luma-selection-actions{position:fixed;z-index:1800;bottom:max(14px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);display:flex;gap:6px;max-width:calc(100vw - 24px);padding:8px;border:1px solid var(--line,#dfd6df);border-radius:16px;background:color-mix(in srgb,var(--paper,#fff) 78%,transparent);backdrop-filter:blur(12px) saturate(1.15);-webkit-backdrop-filter:blur(12px) saturate(1.15);box-shadow:0 6px 28px #0002;box-sizing:border-box}
.luma-selection-actions[hidden]{display:none}.luma-selection-actions button{white-space:nowrap;min-height:40px;flex:none}
.luma-annotation-mark{background:color-mix(in srgb,var(--accent,#cd789e) 22%,transparent);border-bottom:2px solid var(--accent,#cd789e);cursor:pointer;border-radius:2px}
.luma-annotation-mark.comment,.luma-annotation-mark.attachment{border-bottom-style:dotted}.luma-annotation-mark.needsReview{border-bottom-color:#ba7c13;background:#d8b25b30}
.luma-annotation-dialog{color:var(--ink,#443340);background:var(--paper,#fff);border:1px solid var(--line,#ddd);border-radius:18px;width:min(440px,calc(100vw - 40px));max-height:75dvh;overflow:auto;padding:22px;font:inherit;box-sizing:border-box}
.luma-annotation-dialog::backdrop{background:#24192755}.luma-annotation-dialog h2{font-size:18px}.luma-annotation-dialog p,.luma-annotation-dialog blockquote{white-space:pre-wrap;overflow-wrap:anywhere}.luma-annotation-dialog textarea{width:100%;min-height:130px;box-sizing:border-box;margin:14px 0;font:inherit}.luma-annotation-dialog img{max-width:100%;height:auto;border-radius:10px}.luma-annotation-row{display:block;width:100%;padding:12px;text-align:start;background:transparent;color:inherit;border:0;border-bottom:1px solid #8883;cursor:pointer}
.embedded-reader.embed-readonly .luma-selection-actions{display:flex}.embedded-reader.embed-readonly .luma-selection-actions[hidden]{display:none}
.luma-annotations-button[hidden]{display:none!important}
.luma-image-drop{width:100%;min-height:150px;border:2px dashed var(--line);border-radius:14px;background:var(--paper);color:var(--ink);font:inherit;cursor:pointer;margin:16px 0}
.luma-annotation-popover{position:fixed;z-index:1900;width:250px;max-width:calc(100vw - 24px);max-height:240px;overflow:auto;padding:12px;box-sizing:border-box;background:var(--paper);color:var(--ink);border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow);font:13px/1.6 var(--sans)}
.luma-annotation-popover[hidden]{display:none}.luma-annotation-popover img{width:100%;max-height:160px;object-fit:contain}.luma-annotation-popover p{margin:6px 0;white-space:pre-wrap;overflow-wrap:anywhere}
@media print{.luma-selection-actions,.luma-annotation-popover,.luma-annotation-dialog{display:none!important}.luma-annotation-mark{background:transparent!important;border:0!important}html[data-pdf-annotations=true] .luma-annotation-mark{background:#ffe2ed!important;box-shadow:inset 0 -1px #d894ae!important;print-color-adjust:exact;-webkit-print-color-adjust:exact}}

.luma-selection-items{display:flex;gap:6px;overflow-x:auto;min-width:0}.luma-selection-items[hidden],.luma-annotation-retry[hidden]{display:none!important}
.luma-selection-actions[data-placement=right]{left:auto;right:max(14px,env(safe-area-inset-right));transform:none}
.luma-selection-actions .compact-button{background:color-mix(in srgb,var(--paper,#fff) 45%,transparent)}
.luma-selection-actions .luma-selection-dock{display:grid;place-items:center;min-width:32px;padding:4px;border-color:transparent;border-left:1px solid var(--line);border-radius:0 8px 8px 0}
