* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; font-family: 'TeX Gyre Pagella', 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif; }
body { background: #0a0a0f; color: #fff; display: flex; height: 100vh; overflow: hidden; }

/* -- Sidebar ---------------------------------------------------------------- */
#sidebar { width: 260px; background: #100d08; border-right: 1px solid #c9a24a15; display: flex; flex-direction: column; }
#sidebar-header { padding: 14px 12px 12px; border-bottom: 1px solid #c9a24a15; }
#sidebar-header-inner { display: flex; align-items: center; gap: 10px; }
#sidebar-user-avatar { width: 40px; height: 40px; border-radius: 50%; background: #3a2f14; color: #c9a24a; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; flex-shrink: 0; cursor: pointer; overflow: hidden; }
#sidebar-user-avatar img { width: 100%; height: 100%; object-fit: cover; }
#sidebar-user-info { flex: 1; min-width: 0; }
#app-title { font-size: 14px; font-weight: 700; color: #e8edf6; }
#user-info { font-size: 10.5px; color: #8a94a6; margin-top: 1px; white-space: normal; word-break: break-all; line-height: 1.2; cursor: pointer; }
#sidebar-compose-btn { width: 36px; height: 36px; border-radius: 50%; background: none; border: none; color: #8a94a6; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background 0.15s, color 0.15s; }
#sidebar-compose-btn:hover { background: #c9a24a18; color: #c9a24a; }
#room-list { flex: 1; overflow-y: auto; padding: 6px 0; }
.room-item { display: flex; align-items: center; padding: 8px 12px; cursor: pointer; border-radius: 10px; margin: 1px 6px; transition: background 0.15s; gap: 10px; }
.room-item:hover { background: #c9a24a12; }
.room-item.active { background: #c9a24a1e; }
.room-avatar { width: 42px; height: 42px; border-radius: 50%; background: #3a2f14; color: #c9a24a; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; flex-shrink: 0; overflow: hidden; }
.avatar-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.room-info { flex: 1; min-width: 0; }
.room-name { font-size: 14px; font-weight: 500; color: #e8edf6; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.room-sub { font-size: 12px; color: #8a94a6; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 1px; }
#sidebar-footer { padding: 8px 0 12px; border-top: 1px solid #c9a24a15; display: flex; justify-content: space-around; align-items: center; }
.sb-icon-btn { width: 44px; height: 44px; border-radius: 50%; background: none; border: none; color: #8a94a6; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; transition: background 0.15s, color 0.15s; }
.sb-icon-btn:hover { background: #c9a24a15; color: #c9a24a; }
.sb-icon-btn--danger:hover { background: rgba(255,68,68,0.1); color: #ff6666; }
.sb-icon-btn svg { width: 20px; height: 20px; }
.sb-icon-btn span { font-size: 10px; }

/* -- Main chat -------------------------------------------------------------- */
#main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
#chat-header { padding: 14px 20px; border-bottom: 1px solid #c9a24a15; background: #0a0a0f; display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
#chat-title { font-size: 17px; color: #fff; font-weight: 600; }
#e2ee-badge { font-size: 11px; background: #4caf5018; color: #4caf50; padding: 3px 10px; border-radius: 20px; border: 1px solid #4caf5030; }
/* Phase 1: contact verification shield in the chat header */
.chat-shield { font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 20px; border: 1px solid transparent; cursor: pointer; background: none; display: inline-flex; align-items: center; gap: 5px; }
.chat-shield.verified { color: #c9a24a; background: #c9a24a18; border-color: #c9a24a44; }
.chat-shield.unverified { color: #8a94a6; background: #ffffff0a; border-color: #ffffff1a; }
.chat-shield.changed { color: #ff6666; background: rgba(255,68,68,0.12); border-color: rgba(255,68,68,0.4); }
#chat-header-right { margin-left: auto; display: flex; gap: 8px; }

/* Pinned bar */
#pinned-bar { display: none; padding: 6px 20px; background: #1c1608; border-bottom: 1px solid #c9a24a22; flex-direction: row; align-items: center; gap: 8px; flex-shrink: 0; }
#pinned-count { font-size: 12px; color: #c9a24a; }
.pinned-icon { color: #c9a24a; font-size: 14px; }

/* Messages */
#messages { flex: 1; overflow-y: auto; padding: 16px 20px; display: flex; flex-direction: column; gap: 6px; }
.msg-wrap { display: flex; align-items: flex-end; gap: 8px; position: relative; }
.msg-wrap.mine { flex-direction: row-reverse; }
.msg-wrap:hover .msg-ctx-btn { display: flex; }
.msg-ctx-btn { display: none; width: 28px; height: 28px; border-radius: 14px; background: #16120d; border: 1px solid #c9a24a22; color: #888; font-size: 12px; cursor: pointer; align-items: center; justify-content: center; flex-shrink: 0; }
.msg-ctx-btn:hover { background: #c9a24a22; color: #fff; }
.msg-bubble { max-width: 62%; padding: 10px 14px; border-radius: 16px; font-size: 14px; line-height: 1.5; }
.msg-wrap:not(.mine) .msg-bubble { background: #16120d; color: #fff; border-bottom-left-radius: 4px; }
.msg-wrap.mine .msg-bubble { background: #3a2f14; color: #fff; border-bottom-right-radius: 4px; }
.msg-sender { font-size: 11px; color: #c9a24a; font-weight: 700; margin-bottom: 4px; }
.msg-reply-badge { font-size: 11px; color: #c9a24a88; border-left: 2px solid #c9a24a44; padding-left: 6px; margin-bottom: 4px; }
.msg-body { color: #fff; word-break: break-word; }
.msg-meta { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.msg-time { font-size: 10px; color: rgba(255,255,255,0.3); }
.msg-ttl { font-size: 10px; color: #ff8c00; background: rgba(255,140,0,0.12); padding: 1px 5px; border-radius: 4px; }
.msg-reactions { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.reaction-chip { background: #2c2618; border-radius: 12px; padding: 2px 8px; font-size: 13px; cursor: pointer; border: 1px solid transparent; transition: border-color 0.15s; }
.reaction-chip:hover { border-color: #c9a24a44; }

/* Typing + reply bar */
#typing-indicator { display: none; padding: 4px 20px; font-size: 12px; color: #555; font-style: italic; flex-shrink: 0; }
#reply-bar { display: none; padding: 6px 16px; background: #14110a; border-top: 1px solid #2c2618; flex-direction: row; align-items: center; gap: 8px; flex-shrink: 0; }
#reply-label { font-size: 12px; color: #c9a24a; font-weight: 600; }
#reply-bar-cancel { background: none; border: none; color: #555; font-size: 16px; cursor: pointer; padding: 0 4px; }

/* Input area */
#input-area { padding: 10px 16px; border-top: 1px solid #c9a24a15; background: #0a0a0f; display: flex; gap: 8px; align-items: flex-end; flex-shrink: 0; }
#ttl-select { background: #16120d; border: 1px solid #c9a24a22; color: #888; border-radius: 8px; padding: 6px 8px; font-size: 12px; cursor: pointer; outline: none; height: 36px; }
#ttl-select:focus { border-color: #c9a24a55; }
#msg-input { flex: 1; background: #16120d; border: 1px solid #c9a24a22; border-radius: 12px; padding: 10px 16px; color: #fff; font-size: 14px; font-family: inherit; resize: none; min-height: 40px; max-height: 120px; outline: none; }
#msg-input:focus { border-color: #c9a24a55; }
#send-btn { width: 40px; height: 40px; border-radius: 20px; background: #c9a24a; border: none; color: #0a0a0f; font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
#send-btn:hover { background: #dab65a; }

/* Empty state */
#empty-state { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #333; }
#empty-title { font-size: 28px; font-weight: 800; color: #c9a24a; margin-bottom: 8px; }
#empty-sub { font-size: 14px; color: #333; }

/* Context menu */
#context-menu { display: none; position: fixed; background: #16120d; border: 1px solid #c9a24a22; border-radius: 12px; padding: 8px; z-index: 500; box-shadow: 0 8px 32px rgba(0,0,0,0.6); min-width: 180px; }
#ctx-emoji-bar { display: flex; gap: 4px; padding: 4px 0 8px; border-bottom: 1px solid #2c2618; margin-bottom: 4px; }
.ctx-emoji-btn { background: none; border: none; font-size: 22px; cursor: pointer; padding: 2px 4px; border-radius: 6px; }
.ctx-emoji-btn:hover { background: #c9a24a22; }
.ctx-action { display: block; width: 100%; text-align: left; background: none; border: none; color: #ccc; font-size: 14px; padding: 8px 10px; cursor: pointer; border-radius: 6px; }
.ctx-action:hover { background: #c9a24a15; color: #fff; }
#ctx-delete { color: #ff4444 !important; }
#ctx-delete:hover { background: rgba(255,68,68,0.1); }

/* Auth overlay */
#auth-view { position: fixed; inset: 0; background: #0a0a0f; display: flex; align-items: center; justify-content: center; z-index: 100; }
.auth-card { background: #272a30; border-radius: 16px; padding: 0 0 28px; width: 380px; border: 1px solid rgba(255,255,255,0.08); overflow: hidden; }
/* Unify the inner elements to ONE recessed shade so the card reads as a single gray panel, not many boxes */
.auth-card .form-input { background: #1a1c21; border: 1px solid rgba(255,255,255,0.09); }
.auth-card .form-input:focus { border-color: #c9a24a88; }
.auth-shield { display: block; width: 100%; height: auto; max-height: 180px; object-fit: contain; object-position: center; filter: drop-shadow(0 0 12px rgba(201,162,74,0.35)); margin-bottom: 0; background: #0a0a0f; }
.auth-logo { display: none; }
.auth-tagline { display: none; }
.auth-card-body { padding: 0 28px; }
.auth-server { font-size: 11px; color: #333; text-align: center; margin-top: 12px; cursor: pointer; }
.auth-server:hover { color: #c9a24a; }
.auth-tabs { display: flex; background: #1a1c21; border-radius: 8px; padding: 4px; margin-bottom: 24px; }
.auth-tab { flex: 1; padding: 8px; border: none; border-radius: 6px; background: none; color: #555; font-size: 14px; font-weight: 600; cursor: pointer; }
.auth-tab.active { background: #30343b; color: #c9a24a; box-shadow: none; }
.form-input { width: 100%; background: #0a0a0f; border: 1px solid #c9a24a22; border-radius: 10px; padding: 12px 14px; color: #fff; font-size: 15px; font-family: inherit; margin-bottom: 12px; outline: none; }
.form-input:focus { border-color: #c9a24a55; }
.auth-btn { width: 100%; background: #c9a24a; color: #0a0a0f; border: none; border-radius: 10px; padding: 14px; font-size: 15px; font-weight: 700; cursor: pointer; margin-top: 4px; }
.auth-btn:hover { background: #dab65a; }
.auth-error { color: #ff4444; font-size: 13px; margin-bottom: 12px; text-align: center; min-height: 20px; }
.auth-show { display: flex; align-items: center; gap: 7px; color: #8a94a6; font-size: 13px; margin: -4px 0 12px 2px; cursor: pointer; }
.auth-show input { width: 15px; height: 15px; cursor: pointer; accent-color: #c9a24a; }
input[type="checkbox"], input[type="radio"] { accent-color: #c9a24a; }
.auth-hint { color: #6b7280; font-size: 12px; line-height: 1.4; margin: -4px 0 14px 2px; }

/* Settings modal */
#settings-modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.7); z-index: 200; align-items: center; justify-content: center; }
#settings-modal.open { display: flex; }
.settings-card { background: #272a30; border-radius: 16px; padding: 32px; width: 420px; border: 1px solid rgba(255,255,255,0.08); }
/* Match the auth panel: one recessed input shade inside every modal */
.settings-card .form-input { background: #1a1c21; border: 1px solid rgba(255,255,255,0.09); }
.settings-card .form-input:focus { border-color: #c9a24a88; }
#newchat-modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.7); z-index: 200; align-items: center; justify-content: center; }
#newchat-modal.open { display: flex; }
#newchat-results { margin-top: 12px; max-height: 300px; overflow-y: auto; }
.user-result { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; cursor: pointer; }
.user-result:hover { background: #c9a24a1a; }
.ur-avatar { width: 36px; height: 36px; border-radius: 18px; background: #c9a24a33; color: #c9a24a; display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; overflow: hidden; }
.ur-meta { display: flex; flex-direction: column; min-width: 0; }
.ur-name { color: #e8edf6; font-size: 14px; }
.ur-id { color: #8a94a6; font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
.ur-empty { color: #8a94a6; font-size: 13px; padding: 12px; text-align: center; }
#attach-btn { width: 40px; height: 40px; border-radius: 20px; background: #16120d; border: 1px solid #c9a24a33; color: #8a94a6; font-size: 17px; cursor: pointer; flex-shrink: 0; }
#attach-btn:hover { color: #c9a24a; border-color: #c9a24a; }
.msg-file { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; background: #c9a24a14; border: 1px solid #c9a24a33; border-radius: 10px; color: #c9a24a; text-decoration: none; margin-top: 4px; }
.msg-image { max-width: 320px; max-height: 320px; border-radius: 10px; margin-top: 4px; display: block; }
.msg-caption { max-width: 320px; margin-top: 4px; font-size: 12px; line-height: 1.35; color: #9aa6ba; font-style: italic; }
.msg-largefile { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 12px; background: #c9a24a10; border: 1px solid #c9a24a33; border-radius: 10px; margin-top: 4px; max-width: 360px; }
.msg-largefile .lf-meta { color: #e8edf6; font-size: 13px; flex: 1; min-width: 0; word-break: break-word; }
.msg-largefile .lf-download { background: #c9a24a; color: #0a0a0f; border: none; border-radius: 8px; padding: 8px 16px; cursor: pointer; font-size: 13px; flex-shrink: 0; }
.msg-largefile .lf-download:hover { background: #dab65a; }
#profile-modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.7); z-index: 200; align-items: center; justify-content: center; }
#profile-modal.open { display: flex; }
.profile-avatar { width: 72px; height: 72px; border-radius: 36px; background: #c9a24a22; object-fit: cover; flex-shrink: 0; border: 1px solid #c9a24a33; }
#user-info { cursor: pointer; }
.settings-title { font-size: 18px; font-weight: 700; margin-bottom: 20px; }
.settings-label { font-size: 13px; color: #888; margin-bottom: 6px; }
.settings-row { display: flex; gap: 8px; margin-bottom: 20px; }
.settings-row .form-input { flex: 1; margin-bottom: 0; }
.settings-save { background: #c9a24a; color: #0a0a0f; border: none; border-radius: 8px; padding: 10px 20px; font-size: 14px; font-weight: 600; cursor: pointer; }
.settings-close { background: none; border: 1px solid #333; color: #888; border-radius: 8px; padding: 10px 16px; font-size: 14px; cursor: pointer; }
.settings-note { font-size: 12px; color: #444; line-height: 1.5; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-thumb { background: #c9a24a33; border-radius: 3px; }

/* Toast notifications */
#toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast { background: #221e12; border: 1px solid #c9a24a33; border-radius: 10px; padding: 12px 18px; font-size: 13px; color: #e8edf6; max-width: 320px; opacity: 0; transform: translateX(20px); transition: opacity 0.25s, transform 0.25s; pointer-events: auto; box-shadow: 0 4px 20px rgba(0,0,0,0.5); }
.toast.toast-show { opacity: 1; transform: translateX(0); }
.toast.toast-error { border-color: #ff444466; background: #200a0a; color: #ff8888; }
.toast.toast-success { border-color: #4caf5066; background: #0a1a0a; color: #80e880; }
.toast.toast-warn { border-color: #ff8c0066; background: #1a1000; color: #ffb74d; }

/* Upload progress overlay */
#upload-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 800; align-items: center; justify-content: center; }
#upload-overlay.active { display: flex; }
.upload-card { background: #16120d; border-radius: 14px; padding: 28px 36px; text-align: center; border: 1px solid #c9a24a33; }
.upload-title { color: #c9a24a; font-size: 15px; font-weight: 600; margin-bottom: 10px; }
.upload-bar-wrap { width: 200px; height: 4px; background: #221e12; border-radius: 2px; margin: 0 auto; }
.upload-bar { height: 100%; background: #c9a24a; border-radius: 2px; width: 0%; transition: width 0.3s; }

/* Loading button state */
.btn-loading { opacity: 0.7; cursor: wait !important; }

/* Hamburger app menu (replaces native File/Edit/View/Help bar) */
#hamburger-btn:hover { color: #fff; }
.app-menu-item { display: block; width: 100%; text-align: left; background: none; border: none;
  color: #e0e6f0; font-size: 14px; padding: 9px 12px; border-radius: 7px; cursor: pointer; }
.app-menu-item:hover { background: #2a2418; }
.app-menu-item--danger { color: #ff6b6b; }
.app-menu-item--danger:hover { background: #2a1f1f; }

/* -- Fluid typography --------------------------------------------------------
   "Responsive type": text grows with the window up to a ceiling and shrinks to a
   floor on small windows, keeping content in proportion at any size. clamp(min,
   fluid, max) -- the fluid term (calc with vw) tracks window width; the min/max
   are the thresholds. These override the fixed px sizes above (later rule wins). */
.msg-bubble  { font-size: clamp(13px, calc(10px + 0.42vw), 18px); }
.msg-sender  { font-size: clamp(10px, calc(8px  + 0.22vw), 13px); }
.msg-time    { font-size: clamp(9px,  calc(7px  + 0.18vw), 12px); }
.msg-ttl     { font-size: clamp(9px,  calc(7px  + 0.18vw), 12px); }
.reaction-chip { font-size: clamp(12px, calc(10px + 0.22vw), 15px); }
.room-name   { font-size: clamp(13px, calc(11px + 0.28vw), 16px); }
.room-sub    { font-size: clamp(11px, calc(9px  + 0.2vw),  13px); }
#app-title   { font-size: clamp(13px, calc(11px + 0.25vw), 15px); }
#user-info   { font-size: 10.5px; }
#chat-title  { font-size: clamp(15px, calc(12px + 0.45vw), 22px); }
#msg-input   { font-size: clamp(13px, calc(10px + 0.42vw), 18px); }
.form-input  { font-size: clamp(14px, calc(12px + 0.3vw),  17px); }
#empty-title { font-size: clamp(22px, calc(14px + 1.3vw),  38px); }
#empty-sub   { font-size: clamp(13px, calc(11px + 0.25vw), 16px); }

/* ── Proof Studio & Safety (new lean-stack features panel) ───────────────────── */
#ps-launch { position: fixed; right: 16px; bottom: 16px; z-index: 9000; background: #c9a24a; color: #0a0a0f;
  border: 0; border-radius: 999px; padding: 11px 18px; font-weight: 700; font-size: 13px; cursor: pointer;
  box-shadow: 0 6px 20px rgba(0,0,0,.4); }
#ps-launch:hover { background: #dab65a; }
.ps-overlay { position: fixed; inset: 0; z-index: 9001; background: rgba(0,0,0,.55); display: flex;
  align-items: center; justify-content: center; padding: 20px; }
.ps-card { width: 100%; max-width: 540px; max-height: 88vh; overflow: auto; background: #15120b;
  border: 1px solid #262014; border-radius: 16px; color: #e8edf6; box-shadow: 0 16px 60px rgba(0,0,0,.6); }
.ps-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px;
  border-bottom: 1px solid #262014; font-size: 16px; }
.ps-x { background: #262014; color: #cfd6e4; border: 0; border-radius: 8px; width: 28px; height: 28px; cursor: pointer; }
.ps-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 16px; border-bottom: 1px solid #262014; }
.ps-tab { background: #100e08; color: #9aa6ba; border: 1px solid #262014; border-radius: 999px;
  padding: 6px 12px; font-size: 12px; cursor: pointer; }
.ps-tab.on { background: #c9a24a22; color: #e3c878; border-color: #c9a24a55; }
.ps-body { padding: 16px 20px 22px; }
.ps-sec h3 { margin: 4px 0 10px; font-size: 14px; color: #cfd6e4; }
.ps-f { display: block; margin: 8px 0; }
.ps-f span { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: #8a94a6; margin-bottom: 3px; }
.ps-f input, .ps-f select { width: 100%; padding: 10px 12px; background: #100e08; border: 1px solid #262014;
  border-radius: 9px; color: #e8edf6; font-size: 14px; }
.ps-go, .ps-go2, .ps-danger { margin-top: 10px; padding: 11px 16px; border: 0; border-radius: 10px;
  font-weight: 700; font-size: 14px; cursor: pointer; }
.ps-go { background: #c9a24a; color: #0a0a0f; } .ps-go:hover { background: #dab65a; }
.ps-go2 { background: #262014; color: #cfd6e4; margin-left: 8px; }
.ps-danger { background: #b00020; color: #fff; }
.ps-out { margin-top: 14px; padding: 12px; background: #100e08; border: 1px solid #262014; border-radius: 10px;
  font-size: 12px; white-space: pre-wrap; word-break: break-word; color: #cfd6e4; }
.ps-out.ok { border-left: 3px solid #4ade80; } .ps-out.bad { border-left: 3px solid #f87171; }
.ps-note { font-size: 12px; color: #8a94a6; margin-bottom: 8px; }
.ps-row { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid #262014; font-size: 13px; }
.ps-row span { flex: 1; word-break: break-all; }
.ps-mini { background: #262014; color: #cfd6e4; border: 0; border-radius: 7px; padding: 6px 10px; font-size: 12px; cursor: pointer; }
.ps-list { margin-top: 10px; }

/* Per-room privacy shield (desktop only) */
#ps-shield { position: fixed; right: 16px; bottom: 60px; z-index: 9000; background: #262014; color: #9aa6ba;
  border: 1px solid #36301f; border-radius: 999px; padding: 9px 16px; font-weight: 700; font-size: 12px;
  cursor: pointer; box-shadow: 0 6px 20px rgba(0,0,0,.4); }
#ps-shield:hover { color: #cfd6e4; }
#ps-shield.on { background: #b00020; color: #fff; border-color: #b00020; box-shadow: 0 0 14px rgba(176,0,32,.6); }

/* Landing tagline under the growl hero */
.auth-tagline { text-align: center; color: #e3c878; font-size: 13px; letter-spacing: .09em;
  text-transform: uppercase; font-weight: 700; margin: 12px 0 2px; text-shadow: 0 0 10px rgba(201,162,74,.35); }

/* Don't render the broken-image icon when no avatar is set yet */
#profile-avatar:not([src]), #profile-avatar[src=""] { visibility: hidden; }

/* Privacy ribbon at the bottom of the auth card */
.auth-ribbon { display: block; width: 100%; height: auto; margin-top: 14px; border-radius: 8px; }

/* Subtle brand watermark at the bottom of the sidebar — present but out of the way. */
#brand-watermark { text-align: center; font-size: 9px; letter-spacing: .32em; font-weight: 700;
  color: #ffffff; opacity: .055; padding: 4px 0 8px; user-select: none; pointer-events: none;
  text-shadow: 0 1px 0 rgba(0,0,0,.7); white-space: nowrap; overflow: hidden; }
#app-title { cursor: pointer; }

/* About modal */
#about-modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.7); z-index: 200; align-items: center; justify-content: center; }
#about-modal.open { display: flex; }
