/* Three actions stay together in the existing tools area, outside its scroll. */
.editor-tools{flex-shrink:0;min-width:0}
.editor-shell .editor-tools .editor-smart-actions{display:flex;flex-wrap:nowrap;gap:6px;padding:8px 10px}
.editor-tools .editor-smart-actions .btn{min-width:0;min-height:42px;flex:1 1 auto;padding:6px;gap:4px;font-size:11px;line-height:1.25;white-space:normal}
.editor-tools .editor-smart-actions .btn svg{width:15px;height:15px}
.editor-tools .editor-smart-actions .note-action{flex:0 0 auto;min-width:68px;border:1px solid var(--line);border-radius:12px}
.editor-tools .note-action[data-selection=true]{background:var(--green);border-color:var(--green);color:var(--paper)}
@media(min-width:640px){
 .editor-tools{display:flex;align-items:center;background:var(--paper);border-block:1px solid var(--line)}
 .editor-shell .editor-tools .toolbar-wrap{flex:1 1 auto;min-width:0;border:0}
 .editor-shell .editor-tools .editor-smart-actions{flex:0 0 auto;padding:6px 10px 6px 0;border:0}
 .editor-tools .editor-smart-actions .btn{flex:0 0 auto;min-height:36px;padding:7px 9px;white-space:nowrap}
 .editor-tools .editor-smart-actions .note-action{border-radius:10px}
}
@media(min-width:640px) and (orientation:landscape) and (max-height:820px){
 .editor-shell .editor-tools .editor-smart-actions{padding:2px 8px 2px 0}
 .editor-tools .editor-smart-actions .btn{min-height:33px;padding:5px 7px}
}
.editor-page,.reader-paper{position:relative}
.presenter-note-layer{position:absolute;inset:0;pointer-events:none;z-index:2}
.presenter-note-marker{position:absolute;right:0;width:16px;height:22px;padding:0;border:1px solid var(--line);border-radius:5px;background:var(--soft);color:var(--green);display:grid;place-items:center;pointer-events:auto}
.presenter-note-marker:after{content:'';position:absolute;inset:0 -3px}
.presenter-note-marker svg{width:11px;height:11px}
.presenter-note-marker:hover{border-color:var(--green)}
/* Private directions are already readable above the passage, on the right. */
.reader-text .presenter-inline-notes{width:fit-content;max-width:100%;margin:10px 0 8px auto;padding:6px 9px;border-right:2px solid var(--copper);border-radius:6px 0 0 6px;background:var(--soft);color:var(--ink);font-family:Inter,Arial,sans-serif;font-size:clamp(12px,calc(var(--speech-size)*var(--zoom)*.52),20px);line-height:1.6;letter-spacing:0;text-align:right;break-inside:avoid}
.reader-text .presenter-inline-label{margin-bottom:2px;color:var(--copper);font-size:.75em;font-weight:700;letter-spacing:.7px;text-transform:uppercase}
.reader-text .presenter-inline-body{margin:0;font:inherit;white-space:pre-wrap;overflow-wrap:anywhere}
.reader-text .presenter-inline-body+.presenter-inline-body{margin-top:8px;padding-top:8px;border-top:1px solid var(--line)}
.reader-controls .reader-subtools{display:grid;grid-template-columns:minmax(64px,1fr) 36px 36px minmax(58px,1fr);align-items:stretch;gap:6px;min-width:0}
.reader-controls .reader-subtools .btn{min-width:0;padding:8px 5px;font-size:11px;line-height:1.2;gap:3px;white-space:nowrap}
.reader-controls .reader-subtools .btn svg{width:15px;height:15px}
.reader-controls .reader-subtools .icon-btn{width:36px;min-width:36px;height:auto;min-height:44px;align-self:stretch}
.reader-controls .reader-notes-toggle[aria-pressed=true]{background:var(--green);border-color:var(--green);color:var(--paper)}
@media(min-width:751px){
 .reader-controls .reader-subtools{grid-template-columns:minmax(64px,1fr) 44px 44px minmax(72px,1fr);gap:8px}
 .reader-controls .reader-subtools .btn{padding:10px 8px;font-size:12px;gap:5px}
 .reader-controls .reader-subtools .btn svg{width:17px;height:17px}
 .reader-controls .reader-subtools .icon-btn{width:44px;min-width:44px;min-height:56px}
}
.note-privacy{display:flex;align-items:center;gap:7px;color:var(--green);font-size:11px;line-height:1.6;margin-bottom:15px}
.note-privacy svg{width:16px;height:16px}
.note-excerpt{margin:0 0 19px;padding:12px 14px;border-left:3px solid var(--copper);border-radius:0 10px 10px 0;background:var(--soft);color:var(--muted);font-size:12px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere}
.note-body{font-size:16px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere;padding:2px 0 10px}
.note-presets{display:flex;flex-wrap:wrap;gap:7px;margin:14px 0}
.note-presets .suggestion{padding:7px 10px;border:1px solid var(--line);border-radius:9px;background:var(--soft);color:var(--ink);font-size:11px;line-height:1.5}
.note-storage{margin-top:12px}.note-list{display:grid;gap:10px}
.note-card{display:flex;align-items:center;gap:12px;width:100%;padding:14px;border:1px solid var(--line);border-radius:14px;background:var(--paper);color:var(--ink);text-align:left}
.note-card-symbol{display:grid;place-items:center;width:30px;height:30px;flex:0 0 30px;border-radius:9px;background:var(--soft);color:var(--green)}
.note-card-symbol svg{width:16px;height:16px}.note-card>span+span{min-width:0;flex:1;overflow-wrap:anywhere}
.note-card strong{display:block;font-size:12px;font-weight:600;line-height:1.6;white-space:pre-wrap}
.note-card small{display:block;font-size:10px;color:var(--muted);margin-top:4px;line-height:1.6}
.note-card>svg{width:16px;height:16px;color:var(--muted)}.note-empty{padding:23px 14px}
@media print{.presenter-note-layer,.presenter-inline-notes{display:none}}
