.learner-workspace{display:grid;grid-template-columns:minmax(260px,.85fr) minmax(400px,1.8fr) minmax(260px,.85fr);gap:24px;align-items:start;margin-top:24px}
.learner-workspace>*{min-width:0}.learner-workspace .panel{margin:0 0 20px}.lesson-learning-content{display:grid;gap:20px}
.lesson-tutor-column{position:sticky;top:24px;max-height:calc(100dvh - 48px);overflow:auto;scrollbar-gutter:stable}
.lesson-tutor-chat{display:flex;flex-direction:column;gap:16px}.lesson-tutor-chat .tutor-history{display:grid;gap:16px;max-height:40dvh;overflow:auto;margin:0;padding:0;list-style:none}
.lesson-tutor-chat form{border-top:1px solid var(--line);padding-top:20px}.lesson-tutor-chat .field{min-width:0}.lesson-tutor-greeting{padding:16px;background:var(--surface-muted,var(--paper));border-radius:12px;line-height:1.6}
.lesson-tutor-more{padding:16px;background:var(--surface);border:1px solid var(--line);border-radius:16px}.lesson-tutor-more>summary{font-weight:600;cursor:pointer}.lesson-tutor-more[open]>summary{margin-bottom:20px}
.lesson-annotations{padding:20px;background:var(--surface);border:1px solid var(--line);border-radius:20px;display:grid;gap:16px;position:sticky;top:24px;max-height:calc(100dvh - 48px);overflow:auto;scrollbar-gutter:stable}
.lesson-annotations h2{margin:0;font-size:1.1rem}.lesson-annotations p{margin:0}.lesson-annotations .panel{padding:16px;border-radius:12px}.lesson-annotations [hidden],.lesson-learning-content [hidden]{display:none!important}
.annotation-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding:16px;border:1px solid var(--line);border-radius:16px;background:var(--surface)}.annotation-selected{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.85rem;color:var(--quiet);margin:0}
.annotation-geometry{display:grid;grid-template-columns:1fr 1fr;gap:12px}.annotation-geometry input{width:100%;min-width:0}
.annotation-video-frame{position:relative;line-height:0;isolation:isolate}.annotation-video-frame video{display:block;width:100%;height:auto}.annotation-video-layer{position:absolute;inset:0;pointer-events:none;overflow:hidden}.video-annotation{position:absolute!important;pointer-events:auto;touch-action:none;cursor:grab;min-height:0!important;min-width:0!important;border:1px solid var(--annotation-color)!important;background:var(--annotation-bg)!important;color:#11151C!important;border-radius:8px!important;padding:8px!important;font-size:clamp(.7rem,1.2vw,1rem)!important;line-height:1.35!important;white-space:pre-wrap;overflow:hidden;overflow-wrap:anywhere;box-shadow:0 2px 8px #11151c26;transform-origin:center}.video-annotation:active{cursor:grabbing}.annotation-placing video{cursor:crosshair;outline:3px solid #325FFF}.annotation-video-controls{margin-top:12px}
@media(max-width:1250px){.learner-workspace{grid-template-columns:minmax(260px,.85fr) minmax(0,1.6fr)}.lesson-annotations{grid-column:2;position:static;max-height:none}.lesson-tutor-column{grid-row:1 / span 2}}
@media(max-width:800px){.learner-workspace{display:flex;flex-direction:column;gap:20px}.learner-workspace>*{width:100%}.lesson-tutor-column,.lesson-annotations{position:static;max-height:none}.lesson-tutor-column{order:2}.lesson-learning-content{order:1}.lesson-annotations{order:3}.lesson-tutor-chat .tutor-history{max-height:50dvh}.annotation-toolbar{position:sticky;top:8px;z-index:2;box-shadow:0 2px 12px #11151c0d}.annotation-geometry{grid-template-columns:1fr 1fr}}
@media(prefers-reduced-motion:reduce){.learner-workspace *{scroll-behavior:auto!important}}
.annotation-placing .annotation-video-layer{pointer-events:auto;cursor:crosshair}.annotation-video-frame iframe[data-stream-video]{display:block;width:100%;border:0;aspect-ratio:16/9}
.annotation-image-frame{display:inline-block;position:relative;max-width:100%;vertical-align:top;isolation:isolate}
.annotation-image-frame>img{display:block;max-width:100%;height:auto;cursor:crosshair}
.annotation-image-layer{position:absolute;inset:0;pointer-events:none}
.image-annotation{position:absolute;transform:translate(-50%,-50%);width:44px!important;height:44px!important;min-height:44px!important;padding:0!important;border:3px solid var(--annotation-color)!important;border-radius:50%!important;background:var(--annotation-bg)!important;color:#11151c!important;box-shadow:0 1px 6px #11151c50;pointer-events:auto;font-weight:700!important;line-height:1!important}
.image-annotation:focus-visible{outline:3px solid var(--blue);outline-offset:3px}
.annotation-image-controls{display:grid;gap:8px;margin:12px 0;justify-items:start}
.annotation-image-controls .field-hint{font-size:.8rem;margin:0}

/* ---------- Note colours ----------
   Named colours keep their classes. An own colour arrives as validated custom properties set via the CSSOM. */
.annotation-color-lime{--annotation-color:#c4e330;--annotation-bg:#f1fac7}
.annotation-color-blue{--annotation-color:var(--blue-deep,#2448c1);--annotation-bg:#e8edff}
.annotation-color-rose{--annotation-color:#b33c6a;--annotation-bg:#fbe6ee}
.annotation-color-amber{--annotation-color:#9a6c00;--annotation-bg:#fff2bf}
.annotation-color-custom{--annotation-color:var(--annotation-custom-accent,#626b78);--annotation-bg:var(--annotation-custom-soft,#eef0ea)}
html[data-theme="dark"] .annotation-color-rose{--annotation-color:#f59bbd}
html[data-theme="dark"] .annotation-color-amber{--annotation-color:#f8c66d}
html[data-theme="dark"] .annotation-color-custom{--annotation-color:var(--annotation-custom-accent-dark,#b0bac4)}
::highlight(annotation-lime){background:#e7f69a;color:#11151C}::highlight(annotation-blue){background:#dce4ff;color:#11151C}::highlight(annotation-rose){background:#fad8e5;color:#11151C}::highlight(annotation-amber){background:#ffedb0;color:#11151C}

/* ---------- Notes of this lesson ---------- */
.annotation-selection-hint{display:inline-flex;align-items:center;gap:.45rem;color:var(--ui-text-muted,var(--quiet));font-size:.78rem;line-height:1.45}
.annotation-selection-hint .icon{width:1rem;height:1rem;flex:none}
.annotation-list{display:grid;gap:10px;margin:0;padding:0;list-style:none}
.annotation-card{display:grid;gap:10px;padding:12px 14px 12px 16px;border:1px solid var(--ui-border,var(--line));border-radius:12px;
    background:var(--ui-surface,var(--surface));box-shadow:inset 3px 0 0 var(--annotation-color)}
.annotation-card-top{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px}
.annotation-card-tags{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.annotation-color-label{font-size:.75rem;color:var(--ui-text-muted,var(--quiet))}
.annotation-display-label{padding:1px 8px;border:1px solid var(--ui-border,var(--line));border-radius:999px;background:var(--ui-surface-2,var(--paper));
    color:var(--ui-text-muted,var(--quiet));font-size:.6875rem;font-weight:600;line-height:1.5}
.annotation-quote{margin:0;padding:8px 10px;border-left:3px solid var(--annotation-color,var(--ui-border-strong));border-radius:0 8px 8px 0;
    background:var(--ui-surface-2,var(--paper));white-space:pre-wrap;overflow-wrap:anywhere;font-size:.875rem;max-height:160px;overflow:auto}
.annotation-text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6}
.annotation-delete>summary{font-size:.85rem;color:var(--ui-text-muted,var(--quiet));cursor:pointer}

/* ---------- Course notebook: notes of all modules, searchable ----------
   Fits the notes dock and, with .course-notebook-column, a tall side column with sticky header and search. */
.course-notebook{min-width:0;padding:20px!important;--course-notebook-sticky:0px}
.course-notebook [hidden]{display:none!important}
.course-notebook-summary{cursor:pointer;font-family:var(--font-heading,Sora,Inter,sans-serif);font-weight:600;line-height:1.5;min-height:44px}
.course-notebook-summary>span{display:block}
.course-notebook-summary .field-hint{font-family:var(--font-sans,Inter,sans-serif);font-weight:400;margin-top:2px}
.course-notebook[open]>.course-notebook-summary{margin-bottom:12px}
.course-notebook-body{display:grid;gap:10px;min-width:0}
.course-notebook-search{position:sticky;top:var(--course-notebook-sticky);z-index:1;display:flex;align-items:center;gap:6px;min-width:0;
    padding:2px 4px 2px 10px;border:1px solid var(--ui-border,var(--line));border-radius:10px;background:var(--ui-surface,var(--surface));
    box-shadow:var(--ui-shadow-xs,none);transition:border-color .14s,box-shadow .14s}
.course-notebook-search:focus-within{border-color:var(--ui-primary,var(--blue));box-shadow:0 0 0 3px var(--ui-primary-soft,#edf0ff)}
.course-notebook-search-icon{flex:none;width:16px;height:16px;color:var(--ui-text-muted,var(--quiet))}
.course-notebook-search-field{display:block;flex:1;min-width:0;margin:0}
.course-notebook-search .course-notebook-search-field input{box-sizing:border-box;width:100%;min-width:0;min-height:34px;margin:0;padding:4px 2px;border:0;border-radius:0;
    background:transparent;box-shadow:none;outline:0;color:var(--ui-text,var(--ink));font-size:.875rem;line-height:1.4}
.course-notebook-search .course-notebook-search-field input::placeholder{color:var(--ui-text-muted,var(--quiet))}
.course-notebook-search .course-notebook-search-field input::-webkit-search-cancel-button{display:none}
.course-notebook-search-clear{display:inline-grid;place-items:center;flex:none;width:30px;height:30px;min-height:0;margin:0;padding:0;border:0;
    border-radius:8px;background:transparent;color:var(--ui-text-muted,var(--quiet))}
.course-notebook-search-clear:hover{background:var(--ui-surface-2,var(--paper));color:var(--ui-text,var(--ink))}
.course-notebook-search-clear .icon{width:14px;height:14px}
.course-notebook-search-clear:focus-visible{outline:2px solid var(--ui-focus,var(--blue));outline-offset:1px}
.course-notebook-status{margin:0;font-size:.75rem}
.course-notebook-groups{display:grid;gap:18px;margin:2px 0}
.course-notebook-module{display:grid;gap:12px;min-width:0}
.course-notebook-module-title{margin:0;padding-bottom:6px;border-bottom:1px solid var(--ui-border,var(--line));color:var(--ui-text-muted,var(--quiet));
    font:700 .6875rem/1.4 var(--font-sans,Inter,sans-serif);letter-spacing:.06em;text-transform:uppercase;overflow-wrap:anywhere}
.course-notebook-lesson{display:grid;gap:6px;min-width:0}
.course-notebook-lesson-title{margin:0;color:var(--ui-text,var(--ink));font:600 .875rem/1.35 var(--font-heading,Sora,Inter,sans-serif);overflow-wrap:anywhere}
.course-notebook-list{display:grid;gap:6px;margin:0;padding:0;list-style:none}
.course-notebook-note{position:relative;display:grid;gap:4px;min-width:0;padding:8px 10px 9px;border:1px solid var(--ui-border,var(--line));
    border-radius:10px;background:var(--ui-surface,var(--surface));transition:border-color .14s,box-shadow .14s,background-color .14s}
.course-notebook-note:hover{border-color:var(--ui-border-strong,var(--line));background:var(--ui-surface-2,var(--paper))}
.course-notebook-note:has(.course-notebook-link:focus-visible){outline:2px solid var(--ui-focus,var(--blue));outline-offset:2px}
.course-notebook-note.is-highlighted{border-color:var(--ui-primary,var(--blue));box-shadow:0 0 0 3px var(--ui-primary-soft,#edf0ff)}
.course-notebook-meta{display:flex;align-items:center;gap:8px;min-width:0}
.course-notebook-swatch{flex:none;width:8px;height:8px;border-radius:50%;background:var(--annotation-color,var(--ui-border-strong,#c6ccc3));
    box-shadow:0 0 0 2px var(--annotation-bg,var(--ui-surface-2,#f0f2ed))}
.course-notebook-link{flex:1;min-width:0;display:inline-flex;align-items:center;min-height:24px;color:var(--ui-primary-strong,var(--blue-deep));
    font-size:.75rem;font-weight:600;line-height:1.3;text-decoration:none;overflow-wrap:anywhere}
/* The whole card opens the note; the link keeps the accessible name and keyboard focus. */
.course-notebook-link::after{content:'';position:absolute;inset:0;border-radius:inherit}
.course-notebook-link:focus-visible{outline:0}
.course-notebook-date{flex:none;color:var(--ui-text-muted,var(--quiet));font-size:.6875rem;line-height:1.3;white-space:nowrap}
.course-notebook-text{margin:0;color:var(--ui-text,var(--ink));font-size:.8125rem;line-height:1.45;white-space:pre-wrap;overflow-wrap:anywhere;
    display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;line-clamp:3;overflow:hidden}
.course-notebook-quote{margin:0;padding:0 0 0 8px;border-left:2px solid var(--annotation-color,var(--ui-border-strong,#c6ccc3));
    color:var(--ui-text-muted,var(--quiet));font-size:.75rem;line-height:1.4;overflow-wrap:anywhere;
    display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden}
.course-notebook-hit{padding:0 1px;border-radius:3px;background:#e7f69a;color:#11151c}
.course-notebook-actions{margin:0}
.learning-notes-dock .course-notebook{--course-notebook-sticky:42px}
.course-notebook-column{box-sizing:border-box;height:100%;max-height:100%;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;
    padding:0!important;--course-notebook-sticky:3.5rem}
.course-notebook-column>.course-notebook-summary{position:sticky;top:0;z-index:2;box-sizing:border-box;min-height:3.5rem;margin:0!important;
    padding:10px 16px;background:var(--ui-surface,var(--surface));border-bottom:1px solid var(--ui-border,var(--line))}
.course-notebook-column>.course-notebook-body{padding:10px 16px 16px}
.course-notebook-column .course-notebook-search{margin-top:-10px;padding-block:6px;border-radius:0 0 10px 10px;border-top:0}
@media (pointer:coarse){.course-notebook-search-clear{width:44px;height:44px}.course-notebook-note{min-height:44px}.course-notebook-search .course-notebook-search-field input{min-height:40px}}

/* ---------- Note window ----------
   The top-left grip moves the window, the other corners resize it. No rotation. */
.annotation-popover{position:fixed;z-index:80;left:0;top:0;max-width:calc(100vw - 24px);color:var(--ui-text,var(--ink));line-height:1.45;text-align:start}
.annotation-popover[hidden],.annotation-popover [hidden]{display:none!important}
.annotation-frame{position:relative;width:100%}
.annotation-paper{box-sizing:border-box;display:flex;flex-direction:column;gap:6px;position:relative;width:100%;
    max-height:var(--note-max-height,calc(100dvh - 24px));overflow:auto;overscroll-behavior:contain;padding:6px 12px 10px;
    border:1px solid color-mix(in srgb,var(--annotation-color) 40%,var(--ui-border,#dde2da));border-radius:14px;
    background:var(--annotation-bg);color:#1d2219;box-shadow:inset 0 3px 0 var(--annotation-color),var(--ui-shadow-lg,0 9px 26px #11151c2b)}
html[data-theme="dark"] .annotation-paper{background:color-mix(in srgb,var(--annotation-color) 13%,var(--ui-surface,#1b2128));color:var(--ui-text,#f2f4f0)}
.annotation-paper-header,.annotation-paper-title,.annotation-swatches,.annotation-delete-confirm{display:flex;align-items:center}
.annotation-paper-header{gap:2px;min-height:32px}
.annotation-paper-title{flex:1;min-width:0;gap:7px;align-self:stretch;font:600 .8125rem/1.3 var(--font-sans,Inter,sans-serif);
    cursor:grab;user-select:none;touch-action:none}
.annotation-paper-title:active{cursor:grabbing}
.annotation-popover-compact .annotation-paper-title{cursor:default;touch-action:auto}
.annotation-paper-title .icon,.annotation-paper .icon{width:16px;height:16px;flex:none}
.annotation-paper-title strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.annotation-paper .annotation-tool{display:inline-grid;place-items:center;flex:none;width:30px;height:30px;min-height:0;margin:0;padding:0;
    border:0;border-radius:8px;background:transparent;color:inherit;cursor:pointer;transition:background-color .14s}
.annotation-paper .annotation-tool:hover{background:color-mix(in srgb,currentColor 10%,transparent)}
.annotation-paper .annotation-display-toggle[aria-pressed=true]{background:color-mix(in srgb,currentColor 14%,transparent)}
.annotation-paper :focus-visible{outline:2px solid var(--ui-focus,#264bbd);outline-offset:1px}
.annotation-paper .annotation-tool:disabled{opacity:.35;cursor:default}
.annotation-paper .form{display:flex;flex:1;flex-direction:column;align-items:stretch;gap:6px;margin:0;padding:0;background:transparent}
.annotation-paper p:empty,.annotation-paper .annotation-writing-field>span{display:none}
.annotation-paper .annotation-writing-field{display:flex;flex-direction:column;flex:1;min-height:0;margin:0;color:inherit}
/* The text area fills the window, so a taller window gives more room to write. */
.annotation-paper .annotation-writing-field textarea{box-sizing:border-box;width:100%;flex:1 1 auto;min-height:48px;height:auto;max-height:none;resize:none;
    padding:4px 6px;border:0;border-radius:6px;background:transparent;box-shadow:none;color:inherit;font:400 .9375rem/1.55 var(--font-sans,Inter,sans-serif)}
.annotation-paper .annotation-writing-field textarea:focus-visible{outline:0;background:color-mix(in srgb,currentColor 5%,transparent);
    box-shadow:inset 0 0 0 1px color-mix(in srgb,currentColor 28%,transparent)}
.annotation-paper .annotation-writing-field textarea::placeholder{color:color-mix(in srgb,currentColor 58%,transparent)}
.annotation-paper .annotation-paper-footer{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px;margin:0;
    padding-top:6px;border-top:1px solid color-mix(in srgb,currentColor 14%,transparent)}
.annotation-paper .annotation-paper-footer>.button{display:inline-flex;align-items:center;gap:5px;min-height:30px;margin-left:auto;padding:4px 12px;
    border:0;border-radius:8px;background:#1d2219;color:#fff;font-size:.8125rem;font-weight:600}
html[data-theme="dark"] .annotation-paper .annotation-paper-footer>.button{background:var(--ui-text,#f2f4f0);color:var(--ui-bg,#12161b)}
.annotation-swatches{gap:0;flex-wrap:wrap}
.annotation-swatches .annotation-tool{position:relative;isolation:isolate;width:28px;height:28px}
.annotation-swatches .annotation-tool::before{content:'';position:absolute;inset:6px;z-index:-1;border-radius:50%;background:var(--annotation-bg);
    box-shadow:inset 0 0 0 2px var(--annotation-color)}
.annotation-swatches .icon{width:10px;height:10px;visibility:hidden}
.annotation-swatches [aria-pressed=true] .icon,.annotation-swatch-custom.is-selected .icon{visibility:visible}
.annotation-swatches .annotation-swatch-custom::before{background:conic-gradient(#ff6b6b,#ffd23f,#7bd651,#3fc6ff,#7c5cff,#ff5cc8,#ff6b6b);
    box-shadow:inset 0 0 0 2px #ffffffb3}
.annotation-swatches .annotation-swatch-custom.is-selected::before{background:var(--annotation-swatch,#7c5cff);box-shadow:inset 0 0 0 2px #ffffffb3,0 0 0 1px #11151c40}
.annotation-swatch-custom.is-selected .icon{color:#fff;filter:drop-shadow(0 0 1px #11151c)}
.annotation-color-input{position:absolute;inset:0;width:100%;height:100%;margin:0;padding:0;border:0;opacity:0;cursor:pointer}
.annotation-paper .annotation-swatch-custom:focus-within{outline:2px solid var(--ui-focus,#264bbd);outline-offset:1px}
.annotation-paper .annotation-geometry{gap:5px}.annotation-paper .annotation-geometry .field{gap:2px;font-size:.7rem}
.annotation-paper .annotation-geometry input{min-height:30px;padding:2px;color:inherit;background:color-mix(in srgb,var(--ui-surface,#fff) 55%,transparent)}
.annotation-paper .field-hint{font-size:.75rem;color:color-mix(in srgb,currentColor 72%,transparent)}
.annotation-paper .sr-only,.annotation-margin-note .sr-only{position:absolute;top:0;left:0;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.annotation-paper .annotation-delete-confirm{gap:6px;padding-top:4px;border-top:1px solid color-mix(in srgb,currentColor 14%,transparent)}
.annotation-paper .annotation-delete-confirm .button,.annotation-paper .annotation-problem .button{min-height:30px;color:inherit;font-size:.8rem}
.annotation-paper .annotation-delete-confirm .button:first-child,.annotation-paper .form-error{color:#a32140}
html[data-theme="dark"] .annotation-paper .annotation-delete-confirm .button:first-child,html[data-theme="dark"] .annotation-paper .form-error{color:#ffa6b8}
.annotation-placement summary{cursor:pointer;font-size:.78rem;font-weight:600;padding:3px 0}
.annotation-placement[open] summary{margin-bottom:4px}
.annotation-frame .annotation-handle{position:absolute;z-index:2;display:grid;place-items:center;width:24px;height:24px;min-height:0;margin:0;padding:0;
    border:0;border-radius:50%;background:transparent;color:var(--ui-primary,#325fff);touch-action:none;user-select:none;opacity:.6;transition:opacity .14s}
.annotation-popover:hover .annotation-handle,.annotation-popover:focus-within .annotation-handle{opacity:1}
.annotation-handle::after{content:'';box-sizing:border-box;width:12px;height:12px;border:2px solid currentColor;border-radius:50%;
    background:var(--ui-surface,#fff);box-shadow:var(--ui-shadow-xs,none);transition:transform .14s}
.annotation-handle:hover::after,.annotation-handle:focus-visible::after{transform:scale(1.2)}
.annotation-frame .annotation-handle:focus-visible{outline:2px solid var(--ui-focus,#264bbd);outline-offset:1px;opacity:1}
.annotation-handle-ne{right:-11px;top:-11px;cursor:nesw-resize}
.annotation-handle-se{right:-11px;bottom:-11px;cursor:nwse-resize}
.annotation-handle-sw{left:-11px;bottom:-11px;cursor:nesw-resize}
.annotation-frame .annotation-handle-move{left:-12px;top:-12px;width:28px;height:28px;opacity:1;cursor:move;background:var(--ui-surface,#fff);
    color:var(--ui-text-muted,#626b78);box-shadow:var(--ui-shadow-sm,0 1px 3px #11151c14),0 0 0 1px var(--ui-border,#dde2da)}
.annotation-frame .annotation-handle-move:hover{color:var(--ui-text,#11151c)}
.annotation-handle-move::after{display:none}
.annotation-handle-move .icon{width:14px;height:14px}
@media (pointer:coarse){
    .annotation-paper .annotation-tool{width:44px;height:44px}
    .annotation-swatches .annotation-tool{width:40px;height:44px}
    .annotation-swatches .annotation-tool::before{inset:10px 8px}
    .annotation-paper .annotation-paper-footer>.button{min-height:44px}
    .annotation-frame .annotation-handle{opacity:1}
    .annotation-frame .annotation-handle::before{content:'';position:absolute;inset:-10px}
}
@media (forced-colors:active){.annotation-handle::after{border-color:ButtonText}.annotation-frame .annotation-handle-move{border:1px solid ButtonText}}

/* ---------- Compact notes ----------
   No window: the passage stays highlighted and the note sits in the right margin of the text.
   Narrow material keeps a slim gutter with markers; a tap opens the note below the passage. */
.annotation-popover-compact .annotation-paper{padding:4px 10px 8px;border:0;border-left:3px solid var(--annotation-color);border-radius:0 10px 10px 0;
    background:var(--ui-surface,#fff);color:var(--ui-text,#11151c);box-shadow:var(--ui-shadow-sm,none)}
html[data-theme="dark"] .annotation-popover-compact .annotation-paper{background:var(--ui-surface,#1b2128)}
.annotation-popover-compact .annotation-paper-header{min-height:28px}
.annotation-popover-compact .annotation-paper-title{font-size:.75rem;color:var(--ui-text-muted,#626b78)}
.annotation-popover-compact .annotation-paper .annotation-paper-footer>.button{background:var(--ui-text,#11151c);color:var(--ui-surface,#fff)}
.annotation-margin-host{position:relative;--annotation-margin-width:clamp(10.5rem,28%,15rem)}
.annotation-margin-host.annotation-margin-wide{padding-inline-end:calc(var(--annotation-margin-width) + 1.25rem)!important}
.annotation-margin-host.annotation-margin-narrow{padding-inline-end:2.75rem!important}
.annotation-margin-layer{position:absolute;inset:0;z-index:1;pointer-events:none}
.annotation-margin-note{position:absolute;right:0;box-sizing:border-box;width:var(--annotation-margin-width);min-height:0;margin:0;padding:4px 8px 5px 10px;
    display:flex;align-items:flex-start;gap:8px;border:0;border-left:3px solid var(--annotation-color);border-radius:0 8px 8px 0;background:transparent;
    color:var(--ui-text,var(--ink));font:400 .8125rem/1.45 var(--font-sans,Inter,sans-serif);text-align:start;pointer-events:auto;cursor:pointer;
    transition:background-color .14s}
.annotation-margin-note:hover{background:color-mix(in srgb,var(--annotation-color) 12%,transparent)}
.annotation-margin-note:focus-visible{outline:2px solid var(--ui-focus,#264bbd);outline-offset:2px}
.annotation-margin-note.is-editing{visibility:hidden}
.annotation-margin-text{min-width:0;white-space:pre-wrap;overflow-wrap:anywhere;overflow:hidden;
    display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:6;line-clamp:6}
.annotation-margin-marker{display:none}
.annotation-margin-narrow .annotation-margin-note{right:.375rem;width:2rem;height:2rem;padding:0;justify-content:center;align-items:center;
    border:0;border-radius:50%;background:var(--annotation-bg);box-shadow:inset 0 0 0 2px var(--annotation-color)}
.annotation-margin-narrow .annotation-margin-text{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.annotation-margin-narrow .annotation-margin-marker{display:block;width:.5rem;height:.5rem;border-radius:50%;background:var(--annotation-color)}
@media (pointer:coarse){.annotation-margin-note{min-height:44px}.annotation-margin-narrow .annotation-margin-note{min-height:0}
    .annotation-margin-narrow .annotation-margin-note::before{content:'';position:absolute;inset:-6px}}
@media (prefers-reduced-motion:no-preference){
    .annotation-paper-header .icon{transition:transform 140ms ease}.annotation-paper-header .annotation-tool:hover .icon{transform:scale(1.1)}
    .course-notebook-note.is-highlighted{animation:course-notebook-found 1.4s ease-out 1}
}
@keyframes course-notebook-found{0%{box-shadow:0 0 0 7px var(--ui-primary-soft,#edf0ff)}100%{box-shadow:0 0 0 3px var(--ui-primary-soft,#edf0ff)}}
@media (prefers-reduced-motion:reduce){
    .annotation-handle,.annotation-handle::after,.annotation-paper .annotation-tool,.annotation-margin-note,.course-notebook-note,.course-notebook-search{transition:none}
}
@media(max-width:760px){.annotation-selection-hint{font-size:.75rem}}
