#notes-text{width:100%;min-height:72vh;resize:vertical;border:1px solid #e1deeb;border-radius:4px;padding:26px;color:#28263d;background:white;font:18px/1.75 system-ui,sans-serif}#mode-help{min-height:25px}.annotation-layer{position:absolute;inset:0;pointer-events:none}.pdf-highlight{position:absolute;opacity:.48;pointer-events:none;mix-blend-mode:multiply}.annotation-note{position:absolute;pointer-events:auto;box-shadow:0 2px 5px #0003;border:1px solid #8b7953;border-radius:4px;min-width:80px;min-height:65px}.annotation-note.selected{outline:3px solid #6b40c2}.annotation-note textarea{position:absolute;inset:24px 4px 4px;width:calc(100% - 8px);height:calc(100% - 28px);padding:3px;resize:none;border:0;background:transparent;color:#222;font:14px/1.35 system-ui}.annotation-note .note-grip{position:absolute;left:3px;top:0;background:transparent;border:0;padding:0 7px;cursor:grab;touch-action:none}.annotation-note .remove-mark{position:absolute;right:3px;top:0;background:transparent;border:0;padding:0 7px;font-size:18px}#mark-list>div{display:flex;gap:6px;margin:8px 0}#mark-list button:first-child{flex:1;text-align:left}.pdf-highlight.selected{outline:2px solid #6b40c2}#marks-panel{margin:14px 0}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0)}@media(max-width:850px){#notes-text{padding:16px;min-height:55vh}}

.notes-lesson-dialog{box-sizing:border-box;border:1px solid #d9d5e7;border-radius:16px;padding:24px;color:#28263d;background:#fff}.notes-lesson-dialog::backdrop{background:#17122b66}.notes-lesson-dialog>label{display:block;margin:16px 0;font-weight:600}.notes-lesson-dialog input:not([type=checkbox]),.notes-lesson-dialog textarea{display:block;box-sizing:border-box;width:100%;margin-top:6px;padding:10px;border:1px solid #d9d5e7;border-radius:8px;font:16px/1.4 system-ui;color:inherit;background:white}.notes-lesson-dialog fieldset{border:1px solid #d9d5e7;border-radius:10px;max-height:180px;overflow:auto}.notes-lesson-dialog fieldset label{padding:8px 0}.notes-lesson-dialog input[type=checkbox]{width:18px;height:18px;margin-right:8px;vertical-align:middle}.notes-lesson-dialog button{min-height:44px;touch-action:manipulation;margin:4px 0}.notes-lesson-dialog #notes-lesson-next{background:#59479c;color:white}.notes-lesson-dialog p{line-height:1.45}#notes-lesson-error{color:#9a2536}


body.pdf-highlight-active{-webkit-user-select:none;user-select:none}body.pdf-highlight-active :is(button,a,label,summary,h1,h2,p,output,select){-webkit-user-select:none;user-select:none}body.pdf-highlight-active :is(textarea,input),body.pdf-highlight-active .textLayer,body.pdf-highlight-active .textLayer :is(span,br){-webkit-user-select:text;user-select:text}.pdf-highlight-drag .textLayer{touch-action:none}.pdf-highlight-drag .annotation-layer{pointer-events:none}

body.pdf-highlight-active .textLayer,body.pdf-highlight-active .textLayer :is(span,br){-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.pdf-drag-preview{position:absolute;background:#82baff88;pointer-events:none;z-index:2}
.paper-panel #notes-text{min-height:180px;box-sizing:border-box}.notes-notebook{margin-top:12px}.notes-pen-toolbar,.notes-page-tools{display:flex;gap:6px;align-items:center;flex-wrap:wrap;margin:10px 0}.notes-pen-toolbar button,.notes-page-tools button,.notes-map-dialog button,.notes-photo-dialog button{min-height:44px;margin:3px;border-radius:10px;padding:8px 12px}.notes-pen-toolbar button[aria-pressed=true]{background:#174c43;color:white}.notes-pen-toolbar details{position:relative}.notes-pen-toolbar summary{cursor:pointer;padding:10px 12px;border:1px solid #d1dbd6;border-radius:10px;min-height:24px}.notes-pen-toolbar details[open]{background:#f2f7f3;padding:8px;border-radius:12px}.notes-add-menu[open]>button{display:block;width:100%;text-align:left}.notes-pen-toolbar details label{display:flex;align-items:center;font-size:14px;gap:8px}.notes-pen-toolbar input[type=color]{width:44px;height:38px}.notes-writing-paper{position:relative;width:100%;aspect-ratio:5/7;background:#fff;border:1px solid #d2ded8;box-shadow:0 3px 15px #173f4210;overflow:hidden;border-radius:6px}.notes-writing-paper[data-background=ruled]{background-image:repeating-linear-gradient(to bottom,transparent 0,transparent calc(3% - 1px),#d9e4e8 calc(3% - 1px),#d9e4e8 3%)}.notes-writing-paper[data-background=grid]{background-image:linear-gradient(#d9e4e8 1px,transparent 1px),linear-gradient(90deg,#d9e4e8 1px,transparent 1px);background-size:3% 2.14286%}.notes-ink-canvas{position:absolute;inset:0;width:100%;height:100%;z-index:3;-webkit-user-select:none;user-select:none}.notes-paper-items{position:absolute;inset:0}.notes-paper-item{position:absolute;touch-action:none;box-sizing:border-box;border:1px solid transparent}.notes-paper-item:hover,.notes-paper-item.selected{border:1px dashed #296c61}.notes-paper-item>img{display:block;width:100%;height:100%;object-fit:contain;pointer-events:none}.notes-item-actions{position:absolute;top:0;right:0;display:flex;gap:4px;background:#ffffffdd;z-index:2}.notes-item-actions button{min-width:32px;min-height:32px;padding:3px 7px;background:#fff;color:#174c43;border:1px solid #b6c9c1;border-radius:7px;font-size:13px}.notes-item-resize{position:absolute;right:0;bottom:0;background:#174c43;color:#fff;border-radius:5px;width:32px;height:32px;display:grid;place-items:center;touch-action:none;cursor:nwse-resize}.notes-map-dialog,.notes-photo-dialog{width:min(850px,92vw);max-height:88dvh;overflow:auto;padding:22px;border:1px solid #a9c3b9;border-radius:18px;background:#fff;color:#173f42;box-sizing:border-box}.notes-map-dialog::backdrop,.notes-photo-dialog::backdrop{background:#092a2999}.notes-map-dialog label{display:block;margin:12px 0}.notes-map-dialog textarea,.notes-map-dialog input{width:90%;box-sizing:border-box;font:inherit;padding:8px}.notes-map-dialog select{max-width:40%;padding:10px}.notes-pdf-ink{position:absolute;inset:0;pointer-events:none;z-index:4}.notes-pdf-ink .notes-ink-canvas{pointer-events:none}@media(max-width:850px){.notes-pen-toolbar{position:sticky;top:0;z-index:6;background:#f8fbf8;padding:5px 0}.notes-pen-toolbar button{font-size:14px;padding:8px}.notes-map-dialog textarea{font-size:16px}.notes-item-actions{flex-wrap:wrap;max-width:95%}}
.notes-pen-toolbar{position:sticky;top:0;z-index:6;background:#f8fbf8;padding:5px 0}.notes-item-actions button:focus-visible,.notes-pen-toolbar :focus-visible{outline:3px solid #c99142;outline-offset:2px}

/* Comandi del quaderno: documento, salvataggio, azioni secondarie. */
.notes-heading{margin-top:20px}.notes-heading #title{display:block;width:100%;max-width:760px;background:transparent;border-color:transparent;padding:8px 0}.notes-heading #title:hover,.notes-heading #title:focus{background:#fff;border-color:var(--line);padding-left:10px}.notes-actions{gap:12px;margin:8px 0 12px;padding:10px;background:#fff;border:1px solid var(--line);border-radius:14px}.notes-action-group{display:flex;align-items:center;gap:6px}.notes-save-group{margin-left:auto;padding-left:12px;border-left:1px solid var(--line)}.notes-actions button,.notes-more>summary{min-height:44px;white-space:nowrap}.notes-icon-button{width:44px;display:inline-grid;place-items:center;padding:8px}.notes-more{position:relative}.notes-more>summary{display:flex;align-items:center;gap:14px;list-style:none;padding:9px 12px;border-radius:9px;cursor:pointer}.notes-more>summary::-webkit-details-marker{display:none}.notes-more>summary:hover,.notes-more[open]>summary{background:#f2f0f8}.notes-more-menu{position:absolute;right:0;top:calc(100% + 8px);width:270px;max-width:calc(100vw - 60px);padding:8px;background:white;box-shadow:0 10px 30px #28263d26;border:1px solid var(--line);border-radius:12px;z-index:20;display:grid;gap:5px}.notes-more-menu>button,.notes-more-menu>.file-label{text-align:left;width:100%;border-color:transparent;min-height:44px}.notes-more-menu>.file-label{display:grid;gap:8px}.notes-more-menu .file-label input{max-width:100%;width:100%}.notes-more>summary:focus-visible{outline:3px solid #2778bc;outline-offset:2px}@media(max-width:620px){.notes-actions{gap:6px;justify-content:space-between}.notes-save-group{margin-left:0;border-left:0;padding-left:0;flex-wrap:wrap}.notes-actions button,.notes-more>summary{font-size:14px;padding:9px}.notes-action-group{gap:4px}.notes-heading #title{font-size:21px}.notes-save-group{order:3;width:100%;border-top:1px solid var(--line);padding-top:8px}.notes-save-group button{flex:1}.notes-more-menu{right:0}}

.notes-copy-dialog{width:min(440px,90vw);border:1px solid var(--line);border-radius:16px;padding:24px;color:var(--ink)}.notes-copy-dialog::backdrop{background:#17122b66}.notes-copy-dialog h2{margin:0 0 18px}.notes-copy-choices{display:flex;gap:10px}.notes-copy-choices button{flex:1;min-height:48px}.notes-copy-dialog #copy-cancel{margin-top:10px}.notes-copy-dialog #copy-error{color:#9a2536}.notes-more-menu{width:300px}

.notes-actions{justify-content:flex-start}.notes-actions>.notes-create-lesson{margin-left:auto;background:#174c43;color:white;border-color:#174c43}.notes-actions>.notes-create-lesson:hover{background:#226357}.notes-actions .notes-more-menu{left:0;right:auto;width:210px}.notes-actions [hidden]{display:none!important}#saved-list{display:grid;gap:8px;max-height:55dvh;overflow:auto;margin-bottom:16px}#saved-list button{text-align:left;min-height:44px}.notes-copy-dialog{width:min(560px,92vw)}@media(max-width:620px){.notes-actions>.notes-create-lesson{width:100%;margin-left:0}.notes-actions .notes-more-menu{width:190px}}

.notes-connections{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none}.notes-paper-items{pointer-events:none}.notes-paper-item{pointer-events:auto}.notes-card{height:100%;width:100%;display:flex;align-items:center;justify-content:center;padding:16px;text-align:center;white-space:pre-wrap;overflow-wrap:anywhere;overflow:hidden;font:18px/1.3 system-ui;color:#173f42}.notes-shape{background:#e9f7ef;border:2px solid #517d75;border-radius:12px}.notes-shape-oval{border-radius:50%}.notes-shape-diamond{clip-path:polygon(50% 0,100% 50%,50% 100%,0 50%);border-radius:0;padding:25%}.notes-free-text{background:#ffffffdb}.notes-paper-item:focus-visible{outline:3px solid #c99142}.notes-pen-toolbar{gap:4px}.notes-pen-toolbar button,.notes-pen-toolbar summary{font-size:14px;padding:8px 10px}

.notes-highlight-palette{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:10px 12px;margin:0 0 12px;background:#fff;border:1px solid #dce5df;border-radius:12px}.notes-highlight-palette[hidden]{display:none}.notes-highlight-palette button{width:40px;height:40px;min-height:40px;border-radius:10px;border:3px solid white;background:var(--swatch);box-shadow:0 0 0 1px #b8c5bf;padding:0;position:relative}.notes-highlight-palette button[aria-pressed=true]{background:var(--swatch);outline:3px solid #174c43;outline-offset:2px}.notes-highlight-palette button[aria-pressed=true]::after{content:'✓';color:#173f42;font-size:23px;font-weight:700}.notes-highlight-palette button:focus-visible{outline:3px solid #2778bc;outline-offset:3px}

.notes-highlight-palette{width:100%;margin:4px 0 0}.notes-tool-icon{width:44px;display:inline-grid;place-items:center}.notes-map-dialog input[type=number]{display:block;width:100px;margin-top:6px}.notes-pen-toolbar .notes-highlight-palette button{padding:0}

.notes-pen-palette label{display:flex;align-items:center;gap:8px;margin-left:10px;font-size:14px}.notes-pen-palette select{min-height:40px;padding:7px;border:1px solid #d1dbd6;border-radius:8px;background:white}.notes-pen-palette button[aria-pressed=true]::after{color:white}

/* Barra strumenti compatta: petrolio, carta e colori. */
.notes-notebook{border-top:1px solid #e5ebe7;padding-top:12px}.notes-pen-toolbar{background:#fff;border:1px solid #dce5df;border-radius:14px;padding:8px;gap:5px;box-shadow:0 3px 12px #173f4208}.notes-command-row>button,.notes-command-row>details>summary{margin:0;border:1px solid transparent;border-radius:9px;min-height:44px;background:transparent;color:#34564f;display:flex;align-items:center;justify-content:center}.notes-command-row>button:hover,.notes-command-row>details>summary:hover{background:#edf5f1;border-color:#d5e3dc}.notes-command-row>button[aria-pressed=true]{background:#174c43;color:white;box-shadow:0 2px 4px #174c4326}.notes-command-row>details>summary{list-style:none;gap:7px}.notes-command-row>details>summary::-webkit-details-marker{display:none}.notes-command-row>details>summary::after{content:'⌄';font-size:13px;color:#7d938a}.notes-pen-toolbar .notes-insert-start{border-left:1px solid #dce5df;padding-left:8px;margin-left:4px}.notes-command-row>details[open]{padding:0;background:#f1f7f3}.notes-pen-toolbar .notes-highlight-palette{background:#f5f8f6;border:0;border-top:1px solid #e0e8e3;border-radius:0 0 8px 8px;padding:12px 6px 5px;gap:10px}.notes-highlight-palette button{border-radius:50%;width:34px;height:34px;min-height:34px;margin:2px}.notes-pen-toolbar .notes-highlight-palette button{min-height:34px}.notes-pen-palette label{color:#45655b}.notes-writing-paper{box-shadow:0 4px 18px #173f420d}.notes-page-tools{gap:8px;color:#7b8d85}.notes-page-tools button{background:#fff;border-color:#e1e8e3}.paper-panel>.toolbar h2{color:#174c43}.notes-pen-toolbar .notes-tool-icon{width:44px;padding:8px}

.notes-text-style{display:flex;align-items:flex-end;gap:18px;flex-wrap:wrap;margin-bottom:12px;padding:8px 14px;background:#f5f8f6;border-radius:12px}.notes-text-style label{margin:6px 0;font-size:14px;color:#45655b}.notes-text-style select{display:block;max-width:100%;width:210px;min-height:42px;border:1px solid #d1dbd6;border-radius:8px;background:white;margin-top:6px}.notes-text-style input[type=number]{width:85px;min-height:42px}.notes-text-style input[type=color]{display:block;width:46px;height:42px;margin-top:6px;padding:3px;border:1px solid #d1dbd6;border-radius:8px;background:white}.notes-map-dialog>textarea{width:100%;min-height:150px;border:1px solid #d1dbd6;border-radius:10px;background:white;padding:14px}

.notes-ink-canvas{mix-blend-mode:multiply}

.notes-paper-options{position:relative}.notes-paper-menu{position:absolute;top:calc(100% + 10px);left:0;width:292px;max-width:calc(100vw - 50px);padding:14px;background:white;border:1px solid #dce5df;border-radius:14px;box-shadow:0 10px 28px #173f4224;z-index:22}.notes-paper-choices{display:flex;gap:10px}.notes-paper-choices button{display:grid;gap:7px;justify-items:center;flex:1;margin:0;padding:7px;border:1px solid transparent;background:white;color:#34564f;font-size:13px}.notes-paper-sample{display:block;width:57px;height:73px;border:1px solid #cbd9d1;border-radius:5px;background:white;box-shadow:0 2px 5px #173f4210}.notes-paper-sample[data-paper=ruled]{background-image:repeating-linear-gradient(to bottom,transparent 0,transparent 10px,#cbdde6 10px,#cbdde6 11px)}.notes-paper-sample[data-paper=grid]{background-image:linear-gradient(#cbdde6 1px,transparent 1px),linear-gradient(90deg,#cbdde6 1px,transparent 1px);background-size:10px 10px}.notes-paper-choices button[aria-pressed=true]{background:#edf5f0;color:#174c43;border-color:#639c83}.notes-paper-choices button[aria-pressed=true] .notes-paper-sample{outline:2px solid #174c43;outline-offset:2px}.notes-paper-menu>label{border-top:1px solid #e4ebe6;padding-top:12px;margin-top:12px;font-size:13px}.notes-paper-menu input[type=checkbox]{width:18px;height:18px}

.notes-touch-setting{width:100%;display:flex;justify-content:flex-end;padding:3px 6px 2px;border-top:1px solid #e8eeea}.notes-touch-setting[hidden]{display:none}.notes-touch-setting .notes-touch-switch{display:flex;align-items:center;gap:9px;margin:0;padding:5px 0;min-height:38px;border:0;box-shadow:none;background:transparent;color:#50675f;font-size:13px}.notes-switch-track{width:34px;height:21px;border-radius:20px;background:#cbd3ce;padding:2px;display:inline-block;transition:background .15s}.notes-switch-track::after{content:'';display:block;width:17px;height:17px;background:white;border-radius:50%;box-shadow:0 1px 3px #0002;transition:transform .15s}.notes-touch-switch[aria-checked=true] .notes-switch-track{background:#174c43}.notes-touch-switch[aria-checked=true] .notes-switch-track::after{transform:translateX(13px)}.notes-touch-setting .notes-touch-switch:focus-visible{outline:3px solid #2778bc;outline-offset:2px}.notes-pen-toolbar .notes-touch-setting button:hover{border:0;background:transparent}

#notes-text[hidden]{display:none!important}.notes-notebook{border-top:0;padding-top:0;margin-top:0}.notes-free-text{justify-content:flex-start;text-align:left;align-items:flex-start;padding:14px;overflow:auto;scrollbar-width:thin;background:transparent}.paper-panel>.toolbar{justify-content:space-between}.paper-panel>.toolbar h2{margin:4px 0}.notes-card{user-select:none}

.paper-panel>.toolbar{justify-content:flex-start}.paper-panel>.toolbar h2{margin-right:auto}

.notes-sheet-viewport{position:relative;overflow:auto;max-width:100%;height:min(76vh,900px);min-height:330px;border-radius:12px;background:#edf1ef;border:1px solid #dce5df;overscroll-behavior:contain;padding:12px;scrollbar-gutter:stable}.notes-sheet-space{position:relative;min-width:100%;min-height:100%}.notes-sheet-space .notes-writing-paper{position:relative;max-width:none;flex:none;aspect-ratio:auto}.notes-extend{position:absolute;display:grid;place-items:center;width:36px;height:36px;padding:0;min-height:36px;border:1px solid #b6cfc0;border-radius:50%;background:#fff;color:#174c43;font:28px/1 system-ui;box-shadow:0 2px 6px #173f4212;z-index:5}.notes-extend:hover{background:#174c43;color:#fff}.notes-page-seams{position:absolute;inset:0;pointer-events:none;background-image:linear-gradient(to right,#174c4326 1px,transparent 1px),linear-gradient(to bottom,#174c4326 1px,transparent 1px);background-size:var(--cell-width) var(--cell-height)}.notes-sheet-space .notes-writing-paper[data-background=ruled]{background-image:repeating-linear-gradient(to bottom,transparent 0,transparent calc(var(--paper-step) - 1px),#d9e4e8 calc(var(--paper-step) - 1px),#d9e4e8 var(--paper-step))}.notes-sheet-space .notes-writing-paper[data-background=grid]{background-image:linear-gradient(#d9e4e8 1px,transparent 1px),linear-gradient(90deg,#d9e4e8 1px,transparent 1px);background-size:var(--paper-step) var(--paper-step)}.notes-sheet-viewport:focus-visible{outline:3px solid #2778bc}.notes-page-tools{margin:4px 0}.notes-page-tools:has(button[hidden]){display:none}

.notes-writing-paper[data-fit=true] .notes-item-actions,.notes-writing-paper[data-fit=true] .notes-item-resize{display:none}.notes-writing-paper[data-fit=true] .notes-card{padding:4px}

.notes-history-tools{display:flex;align-items:center;gap:3px;border-left:1px solid #dce5df;padding-left:7px;margin-left:auto}.notes-pen-toolbar .notes-history-tools button{padding:8px;margin:0;min-height:40px;width:40px;border:0;background:transparent;color:#34564f}.notes-pen-toolbar .notes-history-tools button:hover:not(:disabled){background:#edf5f1}.notes-history-tools button:disabled{opacity:.3}.notes-page-seams{background-image:linear-gradient(to right,#174c4366 1px,transparent 1px),linear-gradient(to bottom,#174c4366 1px,transparent 1px)}

.notes-sheet-space{min-width:0;min-height:0;margin-inline:auto}

/* The notebook owns touch panning so Pencil strokes cannot cancel it. */
.notes-writing-paper { touch-action: none; }

/* Keep the command strip on one line; palettes remain a separate, contextual row. */
.notes-pen-toolbar{display:flex;flex-direction:column;align-items:stretch;flex-wrap:nowrap;min-width:0}
.notes-command-row{display:flex;align-items:center;gap:3px;flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;max-width:100%;scrollbar-width:thin;padding:2px}
.notes-command-row>button,.notes-command-row>details,.notes-command-row>.notes-history-tools{flex-shrink:0;white-space:nowrap}
.notes-command-row .notes-history-tools{margin-left:auto;flex-wrap:nowrap}
.notes-command-row>details{position:static}.notes-command-row .notes-command-menu{position:fixed;z-index:100;width:250px;box-sizing:border-box;overflow:auto;padding:12px;background:#fffdf6;border:1px solid #d7e1d8;border-radius:12px;box-shadow:0 8px 28px #173f4226}
.notes-command-menu>button{display:block;width:100%;text-align:left}.notes-command-menu>label{margin:6px 0}.notes-command-row>details:not([open])>.notes-command-menu{display:none}

.notes-lasso{position:absolute;inset:0;width:100%;height:100%;z-index:6;pointer-events:none}.notes-ink-selection{position:absolute;z-index:7;outline:2px dashed #a6813d;background:#ddb95d0a;cursor:move;touch-action:none}.notes-ink-selection[hidden]{display:none}.notes-selection-resize{position:absolute;right:-15px;bottom:-15px;width:32px;height:32px;display:grid;place-items:center;background:#fff8dd;color:#7d652c;border:1px solid #c6ae77;border-radius:50%;cursor:nwse-resize;touch-action:none}.notes-selection-actions{display:flex;gap:8px;align-items:center;margin:5px 0}.notes-selection-actions[hidden]{display:none}.notes-selection-actions button{min-height:40px;padding:6px 12px;border-radius:7px}.notes-word-uncertain{color:#b02b3d!important;text-decoration:underline dotted #b02b3d;text-underline-offset:3px}.notes-handwriting-dialog{width:min(720px,92vw);max-height:88dvh;overflow:auto;padding:24px;border:1px solid #d9d5c7;border-radius:14px;background:#fffdf5;color:#294b43}.notes-handwriting-dialog::backdrop{background:#243e3b66}.notes-handwriting-dialog label{display:flex;align-items:center;gap:12px}.notes-handwriting-dialog select{font:inherit;padding:9px;border:1px solid #d9d5c7;border-radius:7px;background:white}.notes-review-editor{min-height:160px;max-height:45dvh;overflow:auto;border:1px solid #d9d5c7;border-radius:7px;padding:16px;background:white;white-space:pre-wrap;line-height:1.6;outline-color:#245c54}.notes-review-editor[hidden]{display:none}.notes-review-legend,.notes-handwriting-info{font-size:12px;color:#7c7560}.notes-handwriting-info{margin-top:20px}.notes-handwriting-actions{display:flex;gap:8px;justify-content:flex-end;margin-top:18px}.notes-handwriting-actions button{font:inherit;min-height:44px;padding:9px 14px;border:1px solid #d9d5c7;border-radius:7px;background:#fffdf5;color:#294b43}.notes-handwriting-actions button:last-child{background:#245c54;color:white}.notes-handwriting-dialog [role=alert]{color:#b02b3d}.notes-handwriting-actions [hidden]{display:none!important}

.notes-writing-mode{display:flex;gap:4px;margin-left:auto}.notes-writing-mode[hidden]{display:none}.notes-pen-toolbar .notes-writing-mode button{width:auto;height:auto;min-height:36px;font-size:12px;border-radius:7px;padding:7px 10px;background:transparent;border:1px solid #d1dbd6;box-shadow:none}.notes-pen-toolbar .notes-writing-mode button[aria-pressed=true]{background:#245c54;color:white}.notes-pen-toolbar .notes-writing-mode button:after{display:none}.notes-pen-toolbar .notes-command-row>[hidden]{display:none!important}

/* The notebook is a drawing surface, not selectable webpage content. */
.notes-sheet-viewport,.notes-writing-paper,.notes-writing-paper *,.notes-ink-canvas,.notes-lasso{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;-webkit-user-drag:none}
.notes-writing-paper input,.notes-writing-paper textarea,.notes-writing-paper [contenteditable=true],.notes-writing-paper [contenteditable=plaintext-only]{-webkit-user-select:text;user-select:text;-webkit-touch-callout:default}

.notes-convert-on-paper{position:absolute;z-index:8;min-height:44px;padding:8px 15px;border:1px solid #adc6b3;border-radius:22px;background:#edf5e8;color:#245448;box-shadow:0 3px 10px #183b3020;touch-action:manipulation;font:600 14px system-ui;white-space:nowrap}.notes-convert-on-paper[hidden]{display:none}

/* A generous scroll gutter remains reachable without touching the ink. */
.notes-sheet-viewport{padding:44px;background:#e3e9e1;scrollbar-width:auto}
.notes-convert-on-paper{touch-action:none;cursor:grab;-webkit-touch-callout:none;box-shadow:0 3px 12px #183b3033}
.notes-convert-on-paper:active{cursor:grabbing}

.notes-item-actions,.notes-item-resize{z-index:6;pointer-events:auto}.notes-item-actions button{min-height:44px;min-width:44px;touch-action:manipulation}.notes-free-text{overflow-wrap:anywhere;word-break:normal;box-sizing:border-box}

.notes-free-text{padding:54px 14px 44px}

/* Fitted shape labels remain centered; very long labels can be read from their start. */
.notes-shape-overflow{align-items:flex-start;overflow:auto;scrollbar-width:thin}

/* Shape controls live outside the paper, so neither labels nor text are covered. */
.notes-object-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:6px 0;padding:6px 8px;border:1px solid #d7e2d9;border-radius:10px;background:#f5f8f1}
.notes-object-actions[hidden]{display:none!important}
.notes-object-actions button{min-width:44px;min-height:44px;padding:8px 12px;border:1px solid #b6c9c1;border-radius:8px;background:#fffdf6;color:#174c43;font:14px system-ui;touch-action:manipulation}
.notes-object-actions .notes-shape-resize{touch-action:none;cursor:nwse-resize}

@font-face {
  font-family: Caveat;
  src: url('fonts/caveat.ttf') format('truetype');
  font-weight: 400 700;
  font-display: swap;
}
.notes-paper-font {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 2px;
  border: 1px solid #ccdcd3;
  border-radius: 9px;
  background: #fff;
}
.notes-pen-palette .notes-paper-font button {
  width: auto;
  height: auto;
  min-height: 34px;
  padding: 4px 10px;
  margin: 0;
  border: 0;
  border-radius: 6px;
  box-shadow: none;
  background: transparent;
  color: #244b43;
  white-space: nowrap;
}
.notes-pen-palette .notes-paper-font button[aria-pressed=true] {
  background: #174c43;
  color: white;
  outline: 0;
}
.notes-pen-palette .notes-paper-font button[aria-pressed=true]::after { content: none; }
.notes-pen-palette .notes-paper-font button:focus-visible {
  outline: 2px solid #2778bc;
  outline-offset: 2px;
}
.notes-paper-font[hidden] { display: none; }
.paper-panel .notes-writing-paper #notes-text {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--cell-width, 100%);
  height: 100%;
  min-height: 0;
  padding: 0 5%;
  margin: 0;
  border: 0;
  border-radius: 0;
  outline: 0;
  resize: none;
  background: transparent;
  color: #173f42;
  font: 17px / var(--paper-step, 24px) system-ui, sans-serif;
  text-size-adjust: none;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  overflow: auto;
  box-sizing: border-box;
}
.paper-panel .notes-writing-paper #notes-text [data-font=handwritten] {
  font-family: Caveat, cursive;
  font-size: 24px;
}
.paper-panel .notes-writing-paper #notes-text[contenteditable=false] { pointer-events: none; }
.notes-writing-paper .notes-paper-items { z-index: 2; }

.notes-pen-palette [hidden] { display: none; }

.notes-command-row .notes-paper-options > .notes-command-menu {
  width: min(310px, calc(100vw - 16px));
}
.notes-command-menu > .notes-paper-menu {
  position: static;
  width: auto;
  max-width: none;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.notes-writing-paper #notes-text[contenteditable=plaintext-only] span {
  -webkit-user-select: text;
  user-select: text;
}
