/* Menus, popovers, modale, écran de connexion. */
.pop { position: fixed; z-index: 60; background: var(--card); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); padding: 6px; min-width: 200px; max-width: 340px; max-height: 70vh; overflow: auto; }
.menu button { display: flex; align-items: center; gap: 4px; width: 100%; text-align: left; padding: 5px 8px; border-radius: 4px; }
.menu button:hover, .menu button.on { background: var(--hover); }
.menu-head { font-size: 12px; font-weight: 600; color: var(--muted); padding: 6px 8px 2px; }
.menu .inp { margin-bottom: 4px; }
.slash { width: 280px; max-height: 320px; }
.emoji { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; }
.emoji button { font-size: 20px; padding: 4px; border-radius: 4px; }
.emoji button:hover { background: var(--hover); }
.emoji .wide-b { grid-column: 1 / -1; font-size: 13px; color: var(--muted); }
.trash { width: 340px; }
.trash-row { display: flex; align-items: center; gap: 6px; padding: 4px 8px; }
.trash-row .grow { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.opt-row { display: flex; align-items: center; }
.opt-row .ib { width: 24px; display: inline-block; }
.menu .opt-row .ib { width: 24px; padding: 0; justify-content: center; }
.fmt { position: fixed; z-index: 70; display: flex; background: var(--card); border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow); padding: 2px; }
.fmt button { width: 32px; height: 28px; border-radius: 4px; }
.fmt button:hover { background: var(--hover); }
.f-bold { font-weight: 700; } .f-italic { font-style: italic; font-family: Georgia, serif; } .f-underline { text-decoration: underline; } .f-strikeThrough { text-decoration: line-through; }
.overlay { position: fixed; inset: 0; z-index: 50; background: rgba(15, 15, 15, .45); display: flex; justify-content: center; align-items: flex-start; padding: 5vh 16px; overflow: auto; }
.modal { background: var(--bg); border-radius: 10px; box-shadow: var(--shadow); width: 100%; max-width: 860px; min-height: 60vh; }
.modal-bar { display: flex; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 13px; }
.modal .page { padding: 20px 60px 60px; }
.modal .blocks-tail { height: 60px; }
.login { align-items: center; background: var(--side); z-index: 100; }
.login-box { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 28px; width: 320px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow); }
.login-box h2 { margin: 0 0 6px; text-align: center; }
.err { color: var(--danger); font-size: 13px; min-height: 18px; }

.dlg { z-index: 55; align-items: flex-start; }
.dialog { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); padding: 22px 24px; width: 100%; max-width: 420px; margin-top: 6vh; }
.dialog.wide { max-width: 620px; }
.dialog h3 { margin: 0 0 14px; font-size: 18px; }
.dialog h4 { margin: 18px 0 8px; font-size: 14px; }
.field { display: block; margin-bottom: 10px; }
.field-l { display: block; font-size: 13px; color: var(--muted); margin-bottom: 3px; }
.small { font-size: 13px; }
.members { display: flex; flex-direction: column; gap: 2px; max-height: 220px; overflow: auto; border: 1px solid var(--line); border-radius: 6px; padding: 6px 4px; }
.members label, .check { display: flex; align-items: center; padding: 3px 4px; }
.dialog-a { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.user-row { display: flex; align-items: center; gap: 6px; padding: 5px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.login-box p { margin: 0; font-size: 14px; text-align: center; }
