.note-view-switch{display:flex;gap:3px;align-self:flex-end;padding:3px;margin:6px 0;border:1px solid var(--panel-border);border-radius:10px;background:var(--input-bg);flex-shrink:0}.note-view-switch button{border:0;background:transparent;color:var(--text-soft);padding:6px 14px;border-radius:7px;cursor:pointer}.note-view-switch button[aria-pressed=true]{background:var(--accent-soft);color:var(--text-main);box-shadow:inset 0 0 0 1px var(--accent)}.notes-layered-host textarea[hidden],.note-reader[hidden]{display:none!important}.note-reader{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8;font-size:.9rem;padding:12px;border-radius:10px;border:1px solid var(--panel-border);background:var(--input-bg);color:var(--text-main);overflow:auto;box-sizing:border-box;min-width:0;height:var(--notes-height,180px);min-height:60px;flex:0 0 auto}.note-inline-link{display:inline-flex;vertical-align:middle;max-width:100%;align-items:stretch;white-space:normal;margin:3px 0;border:1px solid var(--panel-border);border-radius:10px;background:var(--accent-soft)}.note-inline-link a{display:flex;flex-direction:column;min-width:0;padding:6px 10px;text-decoration:none;color:var(--text-main);line-height:1.4}.note-inline-link a>span{color:var(--accent);font-weight:600;overflow-wrap:anywhere}.note-inline-link small{color:var(--text-soft);font-size:.7rem}.note-inline-link button{flex-shrink:0;width:38px;border:0;border-left:1px solid var(--panel-border);border-radius:0 10px 10px 0;background:transparent;color:var(--text-main);cursor:pointer;font-size:20px}.note-inline-link a:hover{text-decoration:underline}.note-reader-empty{color:var(--text-soft)}.notes-focus-content .note-reader{max-height:none}.note-link-dialog{box-sizing:border-box;width:min(440px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;margin:auto;border:1px solid var(--panel-border);border-radius:20px;padding:20px;background:#111c2f;color:var(--text-main);box-shadow:0 24px 80px #0008}.light .note-link-dialog{background:#f8fafc}.note-link-dialog::backdrop{background:#0008;backdrop-filter:blur(4px)}.note-link-dialog header{display:flex;justify-content:space-between;align-items:center;gap:12px}.note-link-dialog h2{font-size:1.1rem;margin:0}.note-link-domain{color:var(--text-soft);overflow-wrap:anywhere;font-size:.85rem}.note-link-dialog form{display:grid;gap:10px}.note-link-actions{display:grid;gap:8px;margin-top:16px}.note-link-dialog .btn{min-height:44px}.note-link-dialog [role=status]{font-size:.8rem;margin-bottom:0}.note-link-dialog [role=status] input{width:100%}.note-view-switch button:focus-visible,.note-inline-link button:focus-visible,.note-reader:focus-visible{outline:2px solid var(--accent);outline-offset:2px}@media(max-width:700px){.note-link-dialog{margin:auto auto 10px;border-radius:22px;padding-bottom:max(20px,env(safe-area-inset-bottom))}.note-view-switch button,.note-inline-link button{min-height:44px}.note-inline-link button{width:44px}}

/* Bounded hosts share their remaining height between the editor/reader and tools. */
.floating-notes.notes-layered-host,
.notes-focus-content.notes-layered-host { min-height:0; overflow:auto; }
.floating-notes.notes-layered-host > .note-reader,
.notes-focus-content.notes-layered-host > .note-reader,
.floating-notes.notes-layered-host > .quick-notes,
.notes-focus-content.notes-layered-host > .quick-notes {
  box-sizing:border-box; flex:1 1 0; height:0; min-height:60px; max-height:none;
}
.notes-layered-host > .notes-layer-panel,
.notes-layered-host > .notes-undo,
.notes-layered-host > .notes-links { flex-shrink:0; }
.notes-focus-dialog { box-sizing:border-box; }
.notes-focus-dialog > header { flex-shrink:0; }
