/* Share composer using the app's light and dark tokens. */
.note-share-menu,.note-share-dialog{background:var(--bg-alt);color:var(--text);border:1px solid var(--border);box-shadow:0 22px 75px #1d233640}
.note-share-menu{position:fixed;z-index:1101;width:220px;border-radius:8px;padding:5px}
.note-share-menu button{display:block;width:100%;text-align:left;padding:11px;font-size:13px;border:0;background:transparent;color:inherit;border-radius:5px;cursor:pointer}
.note-share-menu button:hover,.note-share-results button:hover{background:var(--accent-soft)}
.note-share-menu hr{border:0;border-top:1px solid var(--border);margin:4px}
.note-share-shade{position:fixed;inset:0;background:#222b4666;z-index:1100;display:flex;align-items:center;justify-content:center;padding:22px}
.note-share-shade[hidden]{display:none}
.note-share-dialog{width:520px;max-width:100%;max-height:100%;overflow:auto;border-radius:12px;font:13px var(--font);box-sizing:border-box}
.note-share-dialog *{box-sizing:border-box}
.note-share-dialog header{padding:20px 22px 12px;display:flex;align-items:center;justify-content:space-between}
.note-share-dialog h2{font-size:20px;letter-spacing:-.4px;margin:0}
.note-share-dialog [data-share-close]{border:0;background:transparent;color:var(--text-muted);font-size:24px;cursor:pointer}
.note-share-body{padding:0 22px 20px}
.note-share-dialog button,.note-share-dialog input{font:inherit}
.note-share-destwrap{border:1px solid var(--btn-secondary-border);border-radius:7px;padding:7px}
.note-share-destwrap input{width:100%;min-width:0;border:0;background:var(--bg-alt);color:var(--text);padding:7px}
.note-share-chip{display:inline-flex;align-items:center;gap:6px;background:var(--accent-soft);border-radius:5px;padding:4px 7px;margin-bottom:4px;font-size:12px}
.note-share-chip button{background:none;border:0;color:inherit;cursor:pointer}
.note-share-results{border:1px solid var(--border);border-radius:7px;max-height:202px;overflow:auto;margin-top:7px}
.note-share-results button{width:100%;border:0;text-align:left;padding:9px 12px;color:var(--text);background:var(--bg-alt);cursor:pointer}
.note-share-results:empty{display:none}
.note-share-results p{padding:12px;font-size:12px;color:var(--text-muted)}
.note-share-group{display:block;font-size:10px;color:var(--text-muted);text-transform:uppercase;letter-spacing:.8px;padding:9px 12px 4px}
.note-share-row{display:flex;gap:8px;align-items:flex-start;margin-top:10px}
.note-share-row [contenteditable]{flex:1;min-width:0;min-height:40px;border:1px solid var(--btn-secondary-border);border-radius:7px;padding:9px 11px;font-size:14px;line-height:1.5;max-height:140px;overflow:auto;overflow-wrap:anywhere;white-space:pre-wrap;outline:0}
.note-share-row [contenteditable]:focus{border-color:var(--accent)}
.note-share-row .btn{flex-shrink:0;padding:9px 14px}
.note-share-dialog small{color:var(--text-muted);font-size:11px}
.note-share-access{font-size:11px;line-height:1.6;color:var(--text-muted);margin:10px 0 0}
.note-share-access:empty{margin:0}
.note-share-dialog [role=alert]{color:var(--danger-text);font-size:12px;line-height:1.6;overflow-wrap:anywhere}
.note-share-dialog :focus-visible,.note-share-menu :focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.detail-actions.agenda-share-only>:not(#share-btn){display:none!important}
@media(max-width:540px){.note-share-shade{padding:0;align-items:flex-end}.note-share-dialog{width:100%;max-width:100%;max-height:95dvh;border-radius:12px 12px 0 0}.note-share-dialog header{padding:17px 17px 12px}.note-share-body{padding:0 17px 18px}.note-share-dialog h2{font-size:19px}.note-share-results{max-height:175px}}
