/* Team notes (public/notes.js): a button, and a drawer at the window's edge with the notes and a box to add one. */
.notes-button { white-space: nowrap; }
.notes-drawer { position: fixed; z-index: 60; top: 0; right: 0; bottom: 0; width: min(420px, 100vw); display: flex; flex-direction: column; background: var(--surface); box-shadow: -12px 0 40px rgba(0, 0, 0, .14); }
.notes-head { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 18px 12px; border-bottom: 1px solid var(--line-soft); }
.notes-head h2 { margin: 0; font-size: 16px; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notes-head .notes-close { position: static; flex: none; width: 32px; height: 32px; border: 0; border-radius: 8px; background: var(--field); color: var(--ink); font-size: 18px; cursor: pointer; }
.notes-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; margin: 0; padding: 12px 18px; list-style: none; display: grid; gap: 14px; align-content: start; }
.notes-item { min-width: 0; }
.notes-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; font-size: 12.5px; }
.notes-meta .notes-remove { margin-left: auto; font-size: 12px; }
.notes-text { margin: 3px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 1.5; }
.notes-foot { flex: none; padding: 12px 18px 16px; border-top: 1px solid var(--line-soft); display: grid; gap: 8px; }
.notes-box { width: 100%; min-height: 64px; resize: vertical; font: inherit; color: inherit; background: var(--field); border: 1px solid transparent; border-radius: 10px; padding: 9px 11px; }
.notes-foot-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12.5px; }
.head-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
/* Members: a new CLI token, shown once. */
.cli-token-dialog { border: 0; border-radius: 16px; padding: 22px; width: min(520px, calc(100vw - 32px)); background: var(--surface); color: var(--ink); box-shadow: 0 24px 80px rgba(0, 0, 0, .25); }
.cli-token-dialog::backdrop { background: rgba(0, 0, 0, .35); }
.cli-token-dialog h2 { margin: 0 0 8px; font-size: 17px; }
.cli-token-dialog p { margin: 0 0 12px; font-size: 14px; line-height: 1.5; }
.cli-token-field { width: 100%; font: 13px ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--field); border: 1px solid transparent; border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; color: inherit; }
.cli-token-dialog code { font-size: 12.5px; overflow-wrap: anywhere; }

/* The CLI tokens dialog on Members: each member on a line, the token just made above them. */
.cli-token-list { list-style: none; margin: 0 0 14px; padding: 0; max-height: min(46vh, 380px); overflow: auto; border-radius: 12px; background: var(--field); }
.cli-token-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; font-size: 13.5px; }
.cli-token-row + .cli-token-row { border-top: 1px solid var(--line-soft); }
.cli-token-who { display: flex; align-items: center; gap: 8px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cli-token-new { margin: 0 0 14px; padding: 12px; border-radius: 12px; background: var(--accent-soft); }
.cli-token-new p { margin: 0 0 8px; }
.cli-token-new .cli-token-field { margin-bottom: 8px; background: var(--surface); }
.cli-token-new .row { flex-wrap: wrap; }
.cli-token-foot { display: flex; width: 100%; justify-content: space-between; align-items: center; }
.cli-token-lasts { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-size: 13.5px; }
.cli-token-lasts select { min-width: 150px; }
