body:not(.annotation-beta-enabled) .annotation-beta-ui,
body:not(.annotation-beta-enabled) .annotation-layer { display: none !important; }
body.annotation-beta-enabled { overflow: hidden !important; overscroll-behavior: none; touch-action: none; }
.annotation-layer { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 12; overflow: visible; pointer-events: none; touch-action: none; }
.annotation-layer .annotation-mark { pointer-events: visiblePainted; cursor: pointer; vector-effect: non-scaling-stroke; }
.annotation-layer .annotation-focus-box { fill: none; stroke: #38bdf8; stroke-width: 1.5; stroke-dasharray: 5 4; pointer-events: none; vector-effect: non-scaling-stroke; }
body.annotation-beta-marking .annotation-layer { pointer-events: auto; cursor: crosshair; }
body.annotation-beta-marking .hotlink-zone { pointer-events: none !important; }
.annotation-beta-ui { position: fixed; z-index: 10020; font: 13px/1.35 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #f8fafc; }
.annotation-beta-toolbar { top: 12px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; justify-content: center; gap: 9px; width: min(1250px, calc(100vw - 28px)); min-height: 52px; padding: 8px 12px; overflow-x: auto; border: 1px solid #475569; border-radius: 12px; background: rgba(15,23,42,.94); box-shadow: 0 10px 28px rgba(0,0,0,.35); backdrop-filter: blur(10px); user-select: none; touch-action: manipulation; }
.annotation-beta-drag-handle { display: inline-flex; align-items: center; align-self: stretch; padding: 0 5px; color: #94a3b8; cursor: grab; touch-action: none; font-size: 18px; letter-spacing: -2px; }
.annotation-beta-drag-handle:active { cursor: grabbing; }
.annotation-beta-toolbar button, .annotation-beta-toolbar input, .annotation-beta-sidebar button { font: inherit; }
.annotation-beta-tool { border: 1px solid #475569; border-radius: 7px; background: #1e293b; color: #e2e8f0; padding: 6px 9px; cursor: pointer; }
.annotation-beta-tool[aria-pressed="true"] { background: #2563eb; border-color: #60a5fa; color: white; }
.annotation-beta-tool:disabled { opacity: .38; cursor: default; }
.annotation-beta-strokes { display: inline-flex; align-items: center; gap: 4px; color: #94a3b8; white-space: nowrap; }
.annotation-beta-strokes > span { margin-right: 2px; font-size: 11px; }
.annotation-beta-strokes button { border: 1px solid #475569; border-radius: 6px; background: #1e293b; color: #cbd5e1; padding: 5px 7px; cursor: pointer; }
.annotation-beta-strokes button[aria-pressed="true"] { border-color: #60a5fa; background: #2563eb; color: white; }
.annotation-beta-swatch { width: 24px; height: 24px; border: 2px solid #64748b; border-radius: 50%; padding: 0; cursor: pointer; }
.annotation-beta-swatch[aria-pressed="true"] { outline: 2px solid white; outline-offset: 2px; }
.annotation-beta-color { width: 30px; height: 28px; border: 0; padding: 0; background: transparent; cursor: pointer; }
.annotation-beta-pan-help { color: #94a3b8; font-size: 11px; white-space: nowrap; }
.annotation-beta-notes-toggle { right: 14px; bottom: 72px; border: 1px solid #60a5fa; border-radius: 999px; background: #1d4ed8; color: white; padding: 9px 14px; cursor: pointer; box-shadow: 0 8px 25px rgba(0,0,0,.35); }
.annotation-beta-sidebar { top: 0; right: 0; width: min(390px, 92vw); height: 100dvh; padding: 16px; overflow: auto; background: rgba(15,23,42,.98); border-left: 1px solid #475569; box-shadow: -12px 0 32px rgba(0,0,0,.4); transform: translateX(102%); transition: transform .2s ease; touch-action: pan-y; }
.annotation-beta-sidebar.open { transform: translateX(0); }
.annotation-beta-sidebar-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.annotation-beta-sidebar h2 { margin: 0; font-size: 18px; }
.annotation-beta-close { border: 0; background: transparent; color: white; font-size: 24px !important; cursor: pointer; }
.annotation-beta-identity { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; color: #cbd5e1; }
.annotation-beta-identity button, .annotation-beta-editor button { border: 1px solid #475569; border-radius: 7px; background: #1e293b; color: white; padding: 6px 9px; cursor: pointer; }
.annotation-beta-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 12px; }
.annotation-beta-tabs button { border: 1px solid #475569; border-radius: 7px; background: #1e293b; color: #cbd5e1; padding: 7px; cursor: pointer; }
.annotation-beta-tabs button.active { background: #334155; color: white; border-color: #94a3b8; }
.annotation-beta-list { display: grid; gap: 8px; }
.annotation-beta-page-heading { margin: 12px 0 3px; color: #93c5fd; font-weight: 700; }
.annotation-beta-note { display: grid; grid-template-columns: 10px 1fr; gap: 9px; border: 1px solid #334155; border-radius: 9px; padding: 9px; background: #111827; cursor: pointer; }
.annotation-beta-note.selected { border-color: #60a5fa; box-shadow: 0 0 0 1px #60a5fa inset; }
.annotation-beta-note-color { width: 10px; min-height: 42px; border-radius: 5px; }
.annotation-beta-note-meta { color: #94a3b8; font-size: 11px; }
.annotation-beta-note-text { margin-top: 3px; color: #f1f5f9; white-space: pre-wrap; overflow-wrap: anywhere; }
.annotation-beta-empty { padding: 18px 8px; color: #94a3b8; text-align: center; }
.annotation-beta-editor { position: sticky; bottom: -16px; margin: 14px -16px -16px; padding: 12px 16px 16px; border-top: 1px solid #475569; background: #0f172a; }
.annotation-beta-editor textarea { display: block; width: 100%; min-height: 90px; resize: vertical; margin: 7px 0; padding: 8px; border: 1px solid #475569; border-radius: 7px; background: #020617; color: white; }
.annotation-beta-editor-actions { display: flex; gap: 7px; justify-content: flex-end; }
.annotation-beta-editor .danger { color: #fecaca; border-color: #7f1d1d; background: #450a0a; }
.annotation-beta-name-modal { top: 76px; left: 50%; transform: translateX(-50%); width: min(380px, calc(100vw - 32px)); background: transparent; pointer-events: none; }
.annotation-beta-name-card { width: 100%; padding: 20px; border: 1px solid #64748b; border-radius: 14px; background: rgba(15,23,42,.98); box-shadow: 0 20px 60px rgba(0,0,0,.5); pointer-events: auto; }
.annotation-beta-name-card h2 { margin: 0 0 7px; }
.annotation-beta-name-card p { color: #cbd5e1; }
.annotation-beta-name-card label { display: block; margin-top: 12px; color: #e2e8f0; font-weight: 700; }
.annotation-beta-name-card input { width: 100%; margin: 12px 0; padding: 10px; border: 1px solid #64748b; border-radius: 7px; background: #020617; color: white; }
.annotation-beta-name-card button { float: right; border: 0; border-radius: 7px; background: #2563eb; color: white; padding: 8px 14px; cursor: pointer; }
.annotation-beta-status { color: #94a3b8; min-width: 46px; text-align: right; font-size: 11px; }
.annotation-beta-note-toast { top: 86px; right: 18px; width: min(340px, calc(100vw - 28px)); border: 1px solid #64748b; border-radius: 12px; background: rgba(15,23,42,.98); box-shadow: 0 18px 50px rgba(0,0,0,.48); touch-action: manipulation; }
.annotation-beta-toast-handle { display: flex; align-items: center; justify-content: space-between; padding: 9px 11px; border-bottom: 1px solid #334155; color: #f8fafc; font-weight: 800; cursor: grab; touch-action: none; }
.annotation-beta-toast-handle button { border: 0; background: transparent; color: #cbd5e1; font-size: 20px; cursor: pointer; }
.annotation-beta-note-toast form { padding: 11px; }
.annotation-beta-toast-meta { margin-bottom: 7px; color: #94a3b8; font-size: 11px; }
.annotation-beta-toast-input { width: 100%; min-height: 82px; resize: vertical; padding: 8px; border: 1px solid #475569; border-radius: 7px; background: #020617; color: white; touch-action: manipulation; }
.annotation-beta-toast-actions { display: flex; justify-content: flex-end; gap: 7px; margin-top: 8px; }
.annotation-beta-toast-spacer { flex: 1; }
.annotation-beta-toast-actions button { border: 1px solid #475569; border-radius: 7px; background: #1e293b; color: white; padding: 6px 9px; cursor: pointer; }
.annotation-beta-toast-actions .save { border-color: #2563eb; background: #1d4ed8; }
.annotation-beta-toast-actions .delete { border-color: #7f1d1d; background: #450a0a; color: #fecaca; }
@media (min-width: 900px) {
  body.annotation-beta-single-page.annotation-beta-notes-open .react-frame { padding-right: 390px; }
}
@media (max-width: 760px) {
  .annotation-beta-toolbar { left: 8px; right: 8px; width: auto; transform: none; overflow-x: auto; justify-content: flex-start; }
  .annotation-beta-tool { white-space: nowrap; }
}
