/* Web-only text annotations; no screenshot or manuscript mutations. */
.web-annotation-mark{color:#a82135!important;background:rgba(191,38,61,.09)!important;text-decoration:underline;text-decoration-color:rgba(172,29,52,.5);text-decoration-thickness:1px;text-underline-offset:4px;border-radius:2px;cursor:pointer;box-decoration-break:clone;-webkit-box-decoration-break:clone}
.web-annotation-mark:hover,.web-annotation-mark[aria-expanded="true"]{background:rgba(191,38,61,.18)!important;text-decoration-color:currentColor}
.web-annotation-mark:focus-visible{outline:2px solid #a82135;outline-offset:3px}
.web-annotation-mark.source-multi-selected{box-shadow:0 0 0 2px var(--skin-accent,#8573bc);background:rgba(140,120,195,.16)!important}
.web-annotation-card{position:fixed;z-index:10000;box-sizing:border-box;margin:0;padding:14px 16px 16px;border:1px solid #d8b7bd;border-left:4px solid #ad3345;border-radius:10px;background:var(--skin-surface,#fffdfb);color:var(--skin-ink,#26384b);box-shadow:0 8px 32px #28223038;overflow:auto;overscroll-behavior:contain;white-space:normal;overflow-wrap:anywhere;font:14px/1.7 system-ui,-apple-system,"PingFang SC",sans-serif;text-align:left;animation:web-annotation-enter .12s ease-out}
.web-annotation-card *{box-sizing:border-box}
.web-annotation-card-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 6px;font-size:15px}
.web-annotation-close{display:inline-flex;align-items:center;justify-content:center;flex:none;min-width:36px;height:36px;border:0;border-radius:6px;background:transparent;color:inherit;font:24px/1 system-ui;cursor:pointer;padding:0}
.web-annotation-close:hover{background:#8882}
.web-annotation-round,.web-annotation-meta{margin:4px 0 8px;color:var(--skin-muted,#62717a);font-size:11px;line-height:1.6}
.web-annotation-item{padding:9px 0 12px;border-bottom:1px solid var(--skin-border,#eadde0)}
.web-annotation-item:last-child{border-bottom:0;padding-bottom:0}
.web-annotation-quote{margin:5px 0 10px;padding:6px 10px;border-left:2px solid #c45667;background:rgba(191,38,61,.06);color:var(--skin-muted,#725c61);font-size:12px;line-height:1.6;white-space:pre-wrap;max-height:110px;overflow:auto}
.web-annotation-text{margin:0;white-space:pre-wrap;line-height:1.8;font-size:14px}
.web-annotation-warning{margin:10px 0 0;font-size:12px;color:#965b21;line-height:1.6}
.web-annotation-action{display:inline-block;margin:10px 12px 0 0;padding:5px 0;background:transparent;border:0;color:var(--skin-accent,#74558a);font:inherit;font-size:12px;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.web-annotation-action:focus-visible,.web-annotation-close:focus-visible{outline:2px solid var(--skin-accent,#74558a);outline-offset:2px}
.web-annotation-mobile{border-radius:12px;border-left-width:4px;box-shadow:0 -4px 30px #28223038}
body[data-theme="night"] .web-annotation-mark{color:#ff9bac!important;background:rgba(255,130,151,.12)!important;text-decoration-color:#f599aa}
body[data-theme="night"] .web-annotation-mark:hover,body[data-theme="night"] .web-annotation-mark[aria-expanded="true"]{background:rgba(255,130,151,.24)!important}
body[data-theme="night"] .web-annotation-card{border-color:#86535e;border-left-color:#ec8c9c}
body[data-theme="night"] .web-annotation-warning{color:#efba85}
@keyframes web-annotation-enter{from{opacity:0}to{opacity:1}}
@media(prefers-reduced-motion:reduce){.web-annotation-card{animation:none}}
@media(prefers-contrast:more){.web-annotation-mark{color:#951328!important;text-decoration-thickness:2px}.web-annotation-card{border-width:2px}}
