/* Ergänzungen der Online-Version (Anmeldung, Sync-Status, Rollen, Benutzerverwaltung) */
body.booting .app { visibility: hidden; }
.gate { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 16px;
  background: var(--bg, #16181d); overflow: auto; }
.gatebox { width: 100%; max-width: 400px; background: var(--panel, #1f2228); border-radius: 14px; padding: 22px 20px; box-shadow: 0 10px 40px rgba(0,0,0,.35); }
.gatelogo { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.gatelogo img { border-radius: 12px; }
.gatelogo b { display: block; font-size: 18px; }
.gatelogo span { color: var(--muted, #9aa0a6); }
.gform { display: flex; flex-direction: column; gap: 8px; }
.gform h2 { margin: 4px 0 6px; font-size: 20px; }
.gform label { font-size: 13px; color: var(--muted, #9aa0a6); margin-top: 4px; }
.gform input.t { font-size: 16px; }
.gform .btn { min-height: 44px; margin-top: 6px; }
.gmsg { min-height: 1.2em; color: #ff8a80; font-size: 14px; white-space: pre-line; }
.gmsg.ok { color: #7bd88f; }
.btn.linkish { background: none; border: none; color: var(--muted, #9aa0a6); text-decoration: underline; }
.syncpill { display: inline-flex; align-items: center; gap: 6px; border: 1px solid rgba(127,127,127,.35); background: transparent; color: inherit;
  border-radius: 999px; padding: 6px 10px; font: inherit; font-size: 13px; cursor: pointer; white-space: nowrap; min-height: 36px; }
.syncpill i { width: 10px; height: 10px; border-radius: 50%; background: #7b7f85; flex: none; }
.syncpill[data-state=ok] i { background: #2e9d4f; }
.syncpill[data-state=pending] i { background: #c8901c; }
.syncpill[data-state=sync] i { background: #2f6fb5; animation: pulse 1s infinite alternate; }
.syncpill[data-state=offline] i { background: #7b7f85; box-shadow: inset 0 0 0 2px #b0b4ba; }
.syncpill[data-state=error] i { background: #d0021b; }
@keyframes pulse { to { opacity: .35; } }
@media (max-width: 700px) { .syncpill span { display: none; } .syncpill { padding: 6px 9px; } }
/* Rollen */
body.ro .addcard, body.ro .addcol, body.ro #bNew, body.ro .cardonly-write { display: none !important; }
body:not(.admin) [data-colmenu], body:not(.admin) .addcol, body:not(.admin) .admin-only { display: none !important; }
.rohint { background: #2f6fb5; color: #fff; padding: 6px 12px; font-size: 13px; }
.badge-up { display: inline-block; font-size: 11px; padding: 1px 6px; border-radius: 8px; background: #c8901c; color: #fff; margin-left: 4px; }
.att .upl { position: absolute; left: 4px; top: 4px; font-size: 11px; background: rgba(200,144,28,.92); color: #fff; padding: 1px 6px; border-radius: 8px; }
.att { position: relative; }
.att .noimg { display: flex; align-items: center; justify-content: center; aspect-ratio: 1; font-size: 12px; color: var(--muted, #9aa0a6); text-align: center; padding: 6px; }
/* Benutzerverwaltung */
.ulist { display: flex; flex-direction: column; gap: 8px; padding: 12px 16px; max-height: 60vh; overflow: auto; }
.urow { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; align-items: center; padding: 10px; border-radius: 10px; background: rgba(127,127,127,.08); }
.urow .un b { display: block; }
.urow .un small { color: var(--muted, #9aa0a6); }
.urow .uact { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.urow.locked { opacity: .65; }
.urow .tag { font-size: 11px; padding: 1px 7px; border-radius: 8px; background: #6b7079; color: #fff; margin-left: 4px; }
.urow .tag.red { background: #d0021b; } .urow .tag.amber { background: #c8901c; }
.uinv { display: grid; grid-template-columns: auto 1fr; gap: 8px 10px; align-items: center; padding: 12px 16px; border-top: 1px solid rgba(127,127,127,.2); }
.updbar { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 150; background: #2f6fb5; color: #fff; border-radius: 10px; padding: 8px 12px; display: flex; gap: 10px; align-items: center; }
