/* Top nav */
#topnav .inner {
  max-width: 960px;
  margin: 0 auto;
  height: 43px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 10px;
}
#topnav .brand {
  color: #fff;
  font-weight: 700;
  font-size: 20px;
  font-family: Georgia, serif;
  margin-right: 10px;
}
#topnav input[type="search"] {
  border: none;
  border-radius: 3px;
  padding: 5px 5px 5px 24px;
  width: 220px;
  height: 16px;
  background: #fff url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12"><circle cx="5" cy="5" r="4" stroke="%23999" fill="none"/><line x1="8" y1="8" x2="11" y2="11" stroke="%23999"/></svg>') no-repeat 6px center;
}
#topnav .nav-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}
#topnav .nav-actions button {
  background: var(--accent-dark);
  color: #fff;
  border: 1px solid #1e2e56;
  border-radius: 3px;
  padding: 6px 10px;
  font-weight: 700;
  font-size: 13px;
  position: relative;
}
#topnav .nav-actions button#login-btn,
#topnav .nav-actions button#account-btn {
  margin-left: 4px;
}
#topnav #lang-select {
  border: 1px solid #1e2e56;
  border-radius: 3px;
  background: #29447e;
  color: #fff;
  padding: 3px 4px;
  font-size: 12px;
}
.theme-toggle {
  background: none;
  border: none;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  padding: 2px 4px;
}
#topnav .badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #d33;
  color: #fff;
  border-radius: 8px;
  padding: 1px 5px;
  font-size: 10px;
  border: 1px solid #fff;
}

/* Profile header */
.cover-photo {
  height: 260px;
  background: linear-gradient(135deg, #6b8fc4, var(--accent) 60%, #26355c);
  position: relative;
}
.cover-photo .cover-label {
  position: absolute;
  bottom: 6px;
  right: 10px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 4px 8px;
  border-radius: 3px;
  font-size: 11px;
  cursor: pointer;
}
.profile-strip {
  display: flex;
  align-items: flex-end;
  padding: 0 12px;
  position: relative;
  height: 90px;
}
.profile-pic {
  width: 168px;
  height: 168px;
  background: #cdd3dd;
  border: 4px solid #fff;
  margin-top: -84px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
}
.name-block {
  padding: 10px 14px 14px;
  flex: 1;
}
.name-block h1 {
  font-size: 28px;
  margin: 0;
  font-family: Georgia, serif;
  font-weight: 400;
}
.name-block .meta { color: var(--text-muted); }
.profile-pic-wrap { position: relative; flex-shrink: 0; }
.avatar-upload-btn {
  position: absolute;
  bottom: 4px;
  left: 4px;
  right: 4px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: none;
  border-radius: 2px;
  font-size: 10px;
  padding: 3px;
  font-weight: 700;
  opacity: 0;
  transition: opacity 0.15s;
}
.profile-pic-wrap:hover .avatar-upload-btn { opacity: 1; }
.media-upload-btn { cursor: pointer; }
.timeline-tabs {
  display: flex;
  gap: 2px;
  padding: 0 12px;
  border-top: 1px solid #e5e6ea;
  background: #f2f2f2;
}
.timeline-tabs div {
  padding: 10px 14px;
  font-weight: 700;
  color: var(--accent);
  font-size: 13px;
  cursor: pointer;
}
.timeline-tabs div.active {
  background: #fff;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
}

/* Panels */
.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 3px;
  margin-bottom: 8px;
  padding: 10px 12px;
}
.panel h3 {
  font-size: 14px;
  margin: 0 0 8px;
  border-bottom: 1px solid #e5e6ea;
  padding-bottom: 6px;
}
.panel .row { padding: 4px 0; color: #333; }
.panel .row b { color: #000; }

.photo-grid, .friend-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}
.photo-grid div {
  background: #b7c2d7;
  height: 60px;
  border-radius: 2px;
}
.friend-grid { gap: 6px; }
.friend-grid .f { text-align: center; font-size: 11px; }
.friend-grid .f .pic {
  background: #cdd3dd;
  height: 65px;
  border-radius: 2px;
  margin-bottom: 3px;
}

/* Composer */
.composer textarea {
  width: 100%;
  border: 1px solid #ccd0d5;
  border-radius: 3px;
  padding: 8px;
  font-family: inherit;
  resize: none;
  height: 36px;
}
.composer .actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 6px;
}
.composer .actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}
.composer button[type="button"],
.composer #composer-submit {
  background: linear-gradient(var(--accent-btn), var(--accent));
  color: #fff;
  border: 1px solid var(--accent-btn-border);
  border-radius: 3px;
  padding: 5px 12px;
  font-weight: 700;
}
.composer #composer-submit:disabled { opacity: 0.5; cursor: default; }
.composer #composer-visibility {
  border: 1px solid #ccd0d5;
  border-radius: 3px;
  padding: 4px 6px;
  font-size: 12px;
  background: #fff;
  color: var(--text);
}
.composer.disabled { opacity: 0.8; }
.login-prompt { padding: 8px; color: var(--text-muted); }

.post-visibility {
  font-size: 10px;
  color: var(--text-muted);
  margin-left: 4px;
  white-space: nowrap;
}
.post-visibility.vis-friends { color: var(--accent); }

/* Timeline posts — card on the left, date rail on the right */
.timeline-post {
  display: flex;
  gap: 10px;
  position: relative;
}
.timeline-post::before {
  content: "";
  position: absolute;
  right: 90px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #d8dbe0;
}
.post-card {
  width: 78%;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 10px;
  position: relative;
  margin-bottom: 14px;
}
.post-card::after {
  content: "";
  position: absolute;
  right: -8px;
  top: 14px;
  width: 8px;
  height: 8px;
  background: #fff;
  border-right: 1px solid var(--border);
  border-top: 1px solid var(--border);
  transform: rotate(45deg);
}
.post-side {
  width: 22%;
  text-align: left;
  padding-left: 20px;
  color: var(--text-muted);
  font-size: 11px;
  padding-top: 10px;
}
.post-header { display: flex; gap: 8px; margin-bottom: 6px; }
.post-header .avatar-sm {
  width: 32px;
  height: 32px;
  background: #cdd3dd;
  border-radius: 2px;
  flex-shrink: 0;
}
.post-header .who b { font-size: 12px; }
.post-header .who .time { color: var(--text-muted); font-size: 11px; }
.post-body { color: var(--text); line-height: 1.4; margin-bottom: 6px; white-space: pre-wrap; }
.post-actions {
  border-top: 1px solid #e5e6ea;
  padding-top: 6px;
  color: var(--text-muted);
  display: flex;
  gap: 14px;
  font-weight: 700;
  font-size: 11px;
}
.post-actions .action {
  background: none;
  border: none;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 11px;
  padding: 0;
}
.post-actions .action:hover { color: var(--accent); text-decoration: underline; }
.post-actions .action.liked { color: var(--accent); }
.post-reactions {
  display: inline-block;
  font-size: 11px;
  color: var(--text-muted);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2px 6px;
  margin-bottom: 6px;
  cursor: pointer;
}
.reaction-picker {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  position: absolute;
  z-index: 50;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.reaction-opt {
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 12px;
}
.reaction-opt:hover { background: var(--bg); }
.react-btn { position: relative; }
.post-media {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 4px;
  margin-bottom: 8px;
  border-radius: 3px;
  overflow: hidden;
}
.post-media-item { border-radius: 2px; }
.composer-media-preview {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.composer-preview-item {
  width: 56px; height: 56px;
  border-radius: 3px;
  position: relative;
  border: 1px solid var(--border);
}
.composer-preview-remove {
  position: absolute;
  top: -6px; right: -6px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  font-size: 12px;
  cursor: pointer;
  line-height: 1;
}
.composer-photo-btn {
  background: #f5f6f7;
  border: 1px solid #ccd0d5;
  border-radius: 3px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}

.feed-sentinel { height: 1px; margin: 8px 0; }
.feed-loading { text-align: center; padding: 12px; color: var(--text-muted); font-size: 12px; }

.comments { margin-top: 8px; border-top: 1px solid #f0f0f0; padding-top: 6px; }
.comment { display: flex; gap: 6px; margin-bottom: 4px; font-size: 12px; }
.comment .bubble { background: var(--bg); border-radius: 10px; padding: 4px 8px; border: 1px solid var(--border); }
.comment-form { display: flex; gap: 6px; margin-top: 6px; align-items: center; }
.comment-form input {
  flex: 1;
  border: 1px solid #ccd0d5;
  border-radius: 12px;
  padding: 4px 10px;
  font-size: 12px;
}
.comment-emoji-btn {
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  padding: 2px;
}

/* Notifications page */
.notifications-wrap { max-width: 600px; margin: 0 auto; }
.notifications-header {
  font-size: 20px;
  font-weight: 700;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}
.notif-section { margin-bottom: 16px; }
.notif-section h3 { margin-top: 0; }
.notif-card {
  display: flex;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.notif-card:last-child { border-bottom: none; }
.notif-avatar {
  width: 36px; height: 36px;
  background: #cdd3dd;
  border-radius: 2px;
  flex-shrink: 0;
}
.notif-main { flex: 1; line-height: 1.4; font-size: 12px; }
.notif-actions { display: flex; gap: 6px; margin-top: 6px; }
.notif-actions button {
  border-radius: 3px;
  border: 1px solid #ccd0d5;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  background: #f5f6f7;
  color: var(--text);
}
.notif-allow { background: linear-gradient(var(--accent-btn), var(--accent)) !important; color: #fff !important; border-color: var(--accent-btn-border) !important; }
.notif-block { color: #c0392b !important; }
.notif-empty { color: var(--text-muted); padding: 8px 0; }

/* Settings */
.settings-wrap { max-width: 600px; margin: 0 auto; }
.settings-header {
  font-size: 20px;
  font-weight: 700;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}
.settings-section { margin-bottom: 16px; }
.settings-section h3 { margin-top: 0; }
.settings-label { display: block; font-weight: 700; font-size: 12px; color: #606770; margin: 10px 0 4px; }
.settings-section input[type="text"] {
  width: 100%;
  border: 1px solid #ccd0d5;
  border-radius: 3px;
  padding: 8px;
  font-size: 13px;
  box-sizing: border-box;
}
.settings-actions { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.settings-actions button {
  background: linear-gradient(var(--accent-btn), var(--accent));
  color: #fff;
  border: 1px solid var(--accent-btn-border);
  border-radius: 3px;
  padding: 7px 16px;
  font-weight: 700;
  font-size: 12px;
}
.settings-msg { color: #28a745; font-size: 12px; }
.settings-visibility { display: flex; flex-direction: column; gap: 8px; margin: 8px 0; }
.settings-option { display: flex; gap: 8px; border: 1px solid var(--border); border-radius: 4px; padding: 10px; cursor: pointer; }
.settings-option:hover { border-color: var(--accent); }
.settings-option small { color: var(--text-muted); font-size: 11px; }
.settings-storage { padding: 8px 0; }
.storage-bar { height: 12px; background: #e5e6ea; border-radius: 6px; overflow: hidden; margin-bottom: 6px; }
.storage-bar-fill { height: 100%; background: linear-gradient(var(--accent-btn), var(--accent)); transition: width 0.3s; }
.storage-text { font-size: 12px; color: var(--text-muted); }
.settings-logout {
  background: #f5f6f7;
  color: #c0392b;
  border: 1px solid #ccd0d5;
  border-radius: 3px;
  padding: 7px 16px;
  font-weight: 700;
  font-size: 12px;
}
.settings-link { font-weight: 600; }

/* Search */
#search-dropdown {
  position: fixed;
  z-index: 250;
  width: 240px;
  max-height: 300px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #c4cde0;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.search-result {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  cursor: pointer;
  font-size: 12px;
}
.search-result:hover { background: #f0f2f5; }
.search-avatar {
  width: 28px; height: 28px;
  background: #cdd3dd;
  border-radius: 2px;
  flex-shrink: 0;
}
.search-lock { margin-left: auto; font-size: 10px; }
.search-empty { padding: 12px; color: var(--text-muted); text-align: center; font-size: 12px; }

/* Profile page */
.profile-cover {
  height: 200px;
  background: linear-gradient(135deg, #6b8fc4, var(--accent) 60%, #26315c);
  position: relative;
  border: 1px solid var(--border);
  border-top: none;
}
.profile-cover-actions {
  position: absolute;
  bottom: 10px;
  right: 12px;
  display: flex;
  gap: 6px;
}
.profile-name-block h1 { font-size: 24px; margin: 0; font-family: Georgia, serif; font-weight: 400; }
.profile-name-block .meta { color: var(--text-muted); }
.profile-tabs {
  display: flex;
  gap: 2px;
  padding: 0 12px;
  border-top: 1px solid #e5e6ea;
  background: #f2f2f2;
}
.profile-tabs div {
  padding: 10px 14px;
  font-weight: 700;
  color: var(--accent);
  font-size: 13px;
  cursor: pointer;
}
.profile-tabs div.active { background: #fff; border-left: 1px solid var(--border); border-right: 1px solid var(--border); }
.profile-tabs .count { font-weight: 400; color: var(--text-muted); font-size: 11px; }
.profile-empty { color: var(--text-muted); padding: 16px 0; text-align: center; }
.profile-private { text-align: center; padding: 60px 20px; }
.profile-private-icon { font-size: 48px; margin-bottom: 12px; }
.profile-photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 6px;
  padding: 12px;
}
.profile-photo { height: 140px; border-radius: 3px; }
.profile-btn {
  background: linear-gradient(var(--accent-btn), var(--accent));
  color: #fff;
  border: 1px solid var(--accent-btn-border);
  border-radius: 3px;
  padding: 6px 14px;
  font-weight: 700;
  font-size: 12px;
}
.profile-btn:disabled { opacity: 0.7; cursor: default; }
.profile-btn-friends { background: #f5f6f7; color: var(--text); border-color: #ccd0d5; }
.profile-btn-row { display: flex; gap: 6px; }
.profile-btn-add { background: linear-gradient(#42b72a, #36a420); border-color: #2b9217; }
.profile-btn-deny { background: #f5f6f7; color: var(--text); border-color: #ccd0d5; }
.clickable { cursor: pointer; }
.clickable:hover { text-decoration: underline; }

/* Moderation */
.mod-wrap { max-width: 700px; margin: 0 auto; }
.mod-header { font-size: 20px; font-weight: 700; padding: 12px 0; border-bottom: 1px solid var(--border); margin-bottom: 12px; }
.mod-tabs { display: flex; gap: 2px; margin-bottom: 16px; flex-wrap: wrap; }
.mod-tabs div { padding: 8px 14px; font-weight: 700; color: var(--accent); font-size: 13px; cursor: pointer; border-radius: 4px 4px 0 0; }
.mod-tabs div.active { background: var(--panel); border: 1px solid var(--border); border-bottom: none; }
.mod-badge { background: #d33; color: #fff; border-radius: 8px; padding: 0 5px; font-size: 10px; }
.mod-card { display: flex; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--border); align-items: flex-start; }
.mod-card:last-child { border-bottom: none; }
.mod-card-main { flex: 1; font-size: 12px; line-height: 1.4; }
.mod-meta { color: var(--text-muted); font-size: 11px; margin-top: 2px; }
.mod-actions { display: flex; gap: 6px; }
.mod-actions button { border-radius: 3px; border: 1px solid #ccd0d5; padding: 4px 10px; font-size: 11px; font-weight: 700; background: #f5f6f7; cursor: pointer; }
.mod-resolve, .mod-overturn { background: linear-gradient(var(--accent-btn), var(--accent)) !important; color: #fff !important; border-color: var(--accent-btn-border) !important; }
.mod-empty { color: var(--text-muted); padding: 16px 0; text-align: center; }
.mod-ai { font-size: 11px; color: var(--accent); background: #eef0f8; border-radius: 3px; padding: 4px 6px; margin-top: 4px; }
.mod-label { display: block; font-weight: 700; font-size: 12px; color: #606770; margin: 10px 0 4px; }
.mod-label { display: block; font-weight: 700; font-size: 12px; color: #606770; margin: 10px 0 4px; }
.mod-wrap input, .mod-wrap select { width: 100%; border: 1px solid #ccd0d5; border-radius: 3px; padding: 7px; font-size: 12px; box-sizing: border-box; }

/* Messaging */
#chatbar.collapsed .chat-body { display: none; }
#chatbar .chat-toggle { cursor: pointer; user-select: none; }
.chat-body { max-height: 320px; overflow-y: auto; }
.chat-search { padding: 4px; }
.chat-search input {
  width: 100%;
  border: 1px solid #ccd0d5;
  border-radius: 3px;
  padding: 4px 6px;
  font-size: 11px;
  box-sizing: border-box;
}
.chat-friends { max-height: 250px; overflow-y: auto; }
.chat-friend {
  padding: 5px 10px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.chat-friend:hover { background: #f0f2f5; }
.chat-friend .dot { background: #6ecf68; }

/* Pop-out chat windows */
.chat-window {
  position: fixed;
  bottom: 0;
  right: 220px;
  width: 280px;
  background: #fff;
  border: 1px solid #c4cde0;
  border-bottom: none;
  border-radius: 4px 4px 0 0;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
  z-index: 150;
  display: flex;
  flex-direction: column;
}
.chat-window + .chat-window { right: 510px; }
.chat-window + .chat-window + .chat-window { right: 800px; }
.chat-window-bar {
  background: var(--accent);
  color: #fff;
  padding: 6px 8px;
  font-weight: 700;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: 4px 4px 0 0;
}
.chat-window-title { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-window-lock { font-size: 11px; opacity: 0.85; }
.chat-window-close { cursor: pointer; font-size: 16px; line-height: 1; padding: 0 2px; }
.chat-window-messages {
  height: 240px;
  overflow-y: auto;
  padding: 8px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.chat-window-typing { height: 16px; padding: 0 8px; }
.typing-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #999;
  margin-right: 2px;
  animation: typing 1.2s infinite;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing { 0%, 60%, 100% { opacity: 0.3; } 30% { opacity: 1; } }
.chat-window-input {
  display: flex;
  gap: 4px;
  padding: 6px;
  border-top: 1px solid #e5e6ea;
}
.chat-window-input input {
  flex: 1;
  border: 1px solid #ccd0d5;
  border-radius: 12px;
  padding: 5px 10px;
  font-size: 12px;
}
.chat-voice-btn {
  background: none;
  border: 1px solid #ccd0d5;
  border-radius: 50%;
  width: 28px; height: 28px;
  font-size: 13px;
  cursor: pointer;
}
.chat-voice-btn.recording { background: #c0392b; animation: pulse 1s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

.msg { display: flex; flex-direction: column; gap: 2px; }
.msg-me { align-items: flex-end; }
.msg-them { align-items: flex-start; }
.msg-bubble {
  max-width: 75%;
  padding: 6px 10px;
  border-radius: 12px;
  font-size: 12px;
  line-height: 1.3;
  word-wrap: break-word;
}
.msg-me .msg-bubble { background: #0084ff; color: #fff; border-bottom-right-radius: 3px; }
.msg-them .msg-bubble { background: var(--bg); color: var(--text); border-bottom-left-radius: 3px; }
.msg-time { font-size: 9px; color: #90949c; }
.msg-receipt { font-size: 9px; color: var(--accent); }
.msg-voice-icon { margin-left: 4px; }
.msg-meta { display: flex; align-items: center; gap: 4px; padding: 0 4px; }
.msg-reaction-summary {
  display: inline-block;
  font-size: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1px 4px;
  margin-left: 4px;
}
.msg-react-btn, .msg-edit-btn {
  background: none;
  border: none;
  font-size: 11px;
  cursor: pointer;
  padding: 0 2px;
  opacity: 0.6;
}
.msg-react-btn:hover, .msg-edit-btn:hover { opacity: 1; }
.msg-reaction-picker {
  display: flex;
  gap: 2px;
  position: absolute;
  z-index: 60;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 3px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.msg-react-opt {
  background: none;
  border: none;
  font-size: 15px;
  cursor: pointer;
  padding: 2px;
  border-radius: 10px;
}
.msg-react-opt:hover { background: var(--bg); }
.msg-edited { font-size: 9px; color: #90949c; font-style: italic; margin-left: 4px; }

/* Policies */
.policies-wrap { max-width: 700px; margin: 0 auto; }
.policies-header { font-size: 20px; font-weight: 700; padding: 12px 0; border-bottom: 1px solid var(--border); margin-bottom: 12px; }
.policies-version { font-size: 12px; font-weight: 400; color: var(--text-muted); }
.policies-toc { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.toc-link { font-size: 12px; }
.policies-section { margin-bottom: 12px; }
.policies-section h3 { margin-top: 0; }
.policies-section ul { padding-left: 18px; }
.policies-section li { margin-bottom: 4px; }
.pp-warning { display: flex; gap: 10px; padding: 12px; background: #fff3cd; border: 1px solid #ffc107; border-radius: 4px; margin: 8px 0; }
.pp-warning-icon { font-size: 20px; }
.pp-warning-body { font-size: 12px; line-height: 1.4; }
.pp-warning-body p { margin: 4px 0 0; }

/* Emoji picker */
.emoji-picker {
  position: fixed;
  z-index: 260;
  width: 280px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  padding: 6px;
}
.emoji-tabs { display: flex; gap: 2px; margin-bottom: 6px; flex-wrap: wrap; }
.emoji-tab {
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 3px;
}
.emoji-tab.active { background: var(--bg); }
.emoji-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 2px;
  max-height: 180px;
  overflow-y: auto;
}
.emoji-btn {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  padding: 3px;
  border-radius: 3px;
}
.emoji-btn:hover { background: var(--bg); }
.chat-window-emoji {
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  padding: 2px 4px;
}

/* Login screen */
.login-shell {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 70vh;
  padding: 40px 0;
}
.login-card {
  width: 360px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 28px 24px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.login-brand {
  font-family: Georgia, serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px;
}
.login-sub { color: var(--text-muted); margin: 0 0 20px; }
.login-card .providers { display: flex; flex-direction: column; gap: 10px; }
.provider-btn {
  background: linear-gradient(var(--accent-btn), var(--accent));
  color: #fff;
  border: 1px solid var(--accent-btn-border);
  border-radius: 3px;
  padding: 10px;
  font-weight: 700;
  font-size: 13px;
}
.provider-btn:hover { opacity: 0.92; }
.login-card .loading { color: var(--text-muted); }
.login-card .error { color: #c0392b; }

/* Chat bar */
#chatbar {
  position: fixed;
  bottom: 0;
  right: 10px;
  width: 200px;
  background: #f2f2f2;
  border: 1px solid #dfe0e4;
  border-bottom: none;
  border-radius: 4px 4px 0 0;
  z-index: 50;
}
#chatbar .chat-title {
  background: var(--accent);
  color: #fff;
  padding: 6px 10px;
  border-radius: 4px 4px 0 0;
  font-weight: 700;
  font-size: 12px;
  display: flex;
  justify-content: space-between;
}
#chatbar .chat-friend {
  padding: 5px 10px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
#chatbar .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6ecf68;
}

/* Notifications popup */
.notifications-popup {
  position: fixed;
  z-index: 200;
  width: 320px;
  max-height: 420px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #c4cde0;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  font-size: 12px;
}
.notif-header {
  background: var(--accent);
  color: #fff;
  padding: 8px 12px;
  font-weight: 700;
  position: sticky;
  top: 0;
}
.notif-list { padding: 4px 0; }
.notif-empty { padding: 16px 12px; color: var(--text-muted); text-align: center; }
.notif-item {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid #eef0f2;
  align-items: flex-start;
}
.notif-item:last-child { border-bottom: none; }
.notif-avatar {
  width: 36px;
  height: 36px;
  background: #cdd3dd;
  border-radius: 2px;
  flex-shrink: 0;
}
.notif-main { flex: 1; line-height: 1.4; }
.notif-actions { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.notif-actions button {
  border-radius: 3px;
  border: 1px solid #ccd0d5;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  background: #f5f6f7;
  color: var(--text);
}
.notif-allow { background: linear-gradient(var(--accent-btn), var(--accent)) !important; color: #fff !important; border-color: var(--accent-btn-border) !important; }
.notif-block { color: #c0392b !important; }

/* Onboarding setup overlay */
.setup-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.setup-card {
  width: 420px;
  max-width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 28px 26px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}
.setup-brand {
  font-family: Georgia, serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
}
.setup-sub { color: var(--text-muted); margin: 4px 0 18px; }
.setup-label {
  display: block;
  font-weight: 700;
  font-size: 12px;
  color: #606770;
  margin: 12px 0 4px;
}
.setup-card input[type="text"] {
  width: 100%;
  border: 1px solid #ccd0d5;
  border-radius: 3px;
  padding: 8px;
  font-size: 13px;
  box-sizing: border-box;
}
.setup-visibility {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 8px 0;
}
.setup-option {
  display: flex;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 10px;
  cursor: pointer;
  align-items: flex-start;
}
.setup-option:hover { border-color: var(--accent); }
.setup-option input { margin-top: 2px; }
.setup-option small { color: var(--text-muted); font-size: 11px; }
.setup-bio-details {
  margin-top: 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 8px 10px;
}
.setup-bio-details summary { cursor: pointer; font-weight: 700; font-size: 12px; margin-bottom: 6px; }
.setup-bio-details .setup-label { margin-top: 8px; }
.setup-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
}
.setup-actions button[type="submit"] {
  background: linear-gradient(var(--accent-btn), var(--accent));
  color: #fff;
  border: 1px solid var(--accent-btn-border);
  border-radius: 3px;
  padding: 8px 16px;
  font-weight: 700;
  font-size: 13px;
}

/* E2E key setup */
.setup-e2e .setup-e2e-desc { color: var(--text-muted); margin: 0 0 16px; font-size: 13px; }
.setup-e2e .setup-e2e-actions { display: flex; flex-direction: column; gap: 8px; margin: 16px 0; }
.setup-e2e-btn {
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  transition: border-color 0.15s;
}
.setup-e2e-btn:hover { border-color: var(--accent); }
.setup-e2e-btn.primary {
  background: linear-gradient(var(--accent-btn), var(--accent));
  color: #fff;
  border-color: var(--accent-btn-border);
}
.setup-e2e-btn.primary:hover { opacity: 0.9; }
.setup-e2e-btn.small { padding: 6px 12px; font-size: 12px; width: auto; display: inline-block; }
.setup-e2e-warning {
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 4px;
  padding: 10px 12px;
  margin: 12px 0;
  font-size: 12px;
  color: #856404;
}
.setup-e2e-key { margin: 12px 0; }
.setup-e2e-textarea {
  width: 100%;
  border: 1px solid #ccd0d5;
  border-radius: 3px;
  padding: 8px;
  font-size: 11px;
  font-family: monospace;
  resize: none;
  box-sizing: border-box;
  background: #f5f6f7;
  color: #333;
}
.setup-e2e-check {
  display: flex !important;
  align-items: center;
  gap: 8px;
  font-weight: 400 !important;
  font-size: 13px !important;
  color: #333 !important;
  margin-top: 12px !important;
}
.setup-e2e-check input { margin: 0; }
.setup-e2e-error {
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  border-radius: 4px;
  padding: 8px 12px;
  margin: 12px 0;
  font-size: 12px;
  color: #721c24;
}
.linkish {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 12px;
  padding: 0;
}
.linkish:hover { text-decoration: underline; }

/* Key exchange */
.key-exchange-section { margin: 12px 0; }
.key-exchange-divider { border-top: 1px solid var(--border); margin: 16px 0; }
.key-copy-row { display: flex; gap: 8px; align-items: flex-start; }
.key-copy-row textarea { flex: 1; }
.key-fingerprint {
  display: flex;
  gap: 4px;
  margin: 8px 0;
  justify-content: center;
}
.key-fp-block {
  width: 24px;
  height: 24px;
  border-radius: 4px;
}
.key-exchange-status {
  font-size: 11px;
  margin-top: 4px;
  min-height: 16px;
}
.key-exchange-status.ok { color: #28a745; }
.key-exchange-status.error { color: #dc3545; }

/* Backup passphrase / restore modal */
.setup-e2e .setup-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-input, var(--bg-card, #fff));
  color: var(--text);
  font-size: 14px;
  margin: 4px 0 12px;
  box-sizing: border-box;
}
.setup-e2e .setup-input:focus { outline: none; border-color: var(--accent); }
.setup-e2e-status {
  margin: 8px 0;
  min-height: 18px;
  font-size: 13px;
}
.setup-e2e-status.ok { color: #28a745; }
.setup-e2e-status.error { color: #dc3545; }

footer {
  max-width: 960px;
  margin: 20px auto 60px;
  color: var(--text-muted);
  font-size: 11px;
  text-align: center;
}

/* ========== Marketplace ========== */
.marketplace { max-width: 960px; margin: 0 auto; padding: 16px; }
.marketplace-nav { display: flex; gap: 8px; margin-bottom: 16px; border-bottom: 1px solid #ddd; padding-bottom: 8px; }
.mk-nav-btn { padding: 8px 16px; border: none; background: none; cursor: pointer; font-size: 14px; color: #606770; border-radius: 6px; }
.mk-nav-btn.active { background: #eef0f8; color: #1a73e8; font-weight: 700; }
.marketplace-content { min-height: 400px; }
.mk-sidebar { margin-bottom: 16px; }
.mk-filters { background: #f5f6f7; padding: 12px; border-radius: 8px; margin-bottom: 16px; }
.mk-filters h4 { margin: 12px 0 4px; font-size: 12px; color: #606770; }
.mk-filters h4:first-child { margin-top: 0; }
.mk-filters select, .mk-filters input[type=number] { width: 100%; padding: 6px; margin-bottom: 4px; border: 1px solid #ccd0d5; border-radius: 4px; }
.mk-range { display: flex; gap: 8px; }
.mk-check { display: block; font-size: 13px; padding: 2px 0; }
.mk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.mk-card { border: 1px solid #ddd; border-radius: 8px; overflow: hidden; cursor: pointer; transition: box-shadow 0.15s; background: #fff; }
.mk-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.12); }
.mk-card-img { height: 160px; }
.mk-card-body { padding: 10px; }
.mk-card-title { font-size: 14px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-card-price { font-size: 18px; font-weight: 700; color: #1a73e8; margin: 4px 0; }
.mk-card-meta { font-size: 11px; color: #606770; }
.mk-loading, .mk-empty, .mk-error { text-align: center; padding: 40px; color: #606770; }
.mk-error { color: #d93025; }
.mk-form { max-width: 500px; }
.mk-form label { display: block; font-weight: 700; font-size: 12px; color: #606770; margin: 10px 0 4px; }
.mk-form input, .mk-form select, .mk-form textarea { width: 100%; padding: 8px; border: 1px solid #ccd0d5; border-radius: 4px; font-size: 14px; }
.mk-form .mk-check { font-weight: 400; }
.mk-row { display: flex; gap: 8px; }
.mk-detail { max-width: 700px; }
.mk-detail h2 { margin: 8px 0; }
.mk-detail-price { font-size: 28px; font-weight: 700; color: #1a73e8; margin: 8px 0; }
.mk-detail-meta { font-size: 13px; color: #606770; margin-bottom: 12px; }
.mk-detail-desc { line-height: 1.5; margin: 12px 0; }
.mk-detail-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-bottom: 12px; }
.mk-detail-photo { height: 150px; border-radius: 8px; }
.mk-no-photo { height: 150px; background: #eee; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #999; }
.mk-detail-attrs { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.mk-attr { background: #f0f2f5; padding: 4px 10px; border-radius: 12px; font-size: 12px; }
.mk-attr-key { color: #606770; }
.mk-detail-loc { font-size: 13px; color: #606770; margin: 8px 0; }
.mk-detail-actions { margin-top: 16px; display: flex; gap: 8px; }
.mk-muted { color: #999; font-size: 12px; }

/* ========== Social Features ========== */
.life-event { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.life-event:last-child { border-bottom: none; }
.life-event-icon { font-size: 20px; width: 32px; text-align: center; }
.life-event-body { flex: 1; font-size: 12px; line-height: 1.4; }
.life-event-body .time { color: var(--text-muted); font-size: 11px; }

.album-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.album-card { border: 1px solid var(--border); border-radius: 4px; overflow: hidden; cursor: pointer; }
.album-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.12); }
.album-cover { height: 100px; background: #cdd3dd; }
.album-info { padding: 6px 8px; font-size: 12px; }
.album-info span { color: var(--text-muted); font-size: 11px; display: block; }

.mention { color: var(--accent); font-weight: 600; }

.post-checkin { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.post-feeling { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; font-style: italic; }

.friend-list-item { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--border); }
.friend-list-item:last-child { border-bottom: none; }

.poke-btn { background: none; border: 1px solid var(--border); border-radius: 3px; padding: 4px 8px; font-size: 12px; cursor: pointer; }
.poke-btn:hover { background: var(--bg); }

.wall-post-label { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }

/* ========== Events ========== */
.events-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.event-card { border: 1px solid var(--border); border-radius: 4px; overflow: hidden; cursor: pointer; }
.event-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.12); }
.event-date { background: var(--accent); color: #fff; padding: 8px; text-align: center; }
.event-month { font-size: 11px; text-transform: uppercase; display: block; }
.event-day { font-size: 22px; font-weight: 700; }
.event-info { padding: 8px; font-size: 12px; }
.event-location { color: var(--text-muted); font-size: 11px; }
.event-attendees { color: var(--text-muted); font-size: 11px; margin-top: 4px; }

/* ========== Groups ========== */
.groups-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.group-card { border: 1px solid var(--border); border-radius: 4px; overflow: hidden; cursor: pointer; }
.group-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.12); }
.group-cover { height: 80px; background: #cdd3dd; }
.group-info { padding: 8px; font-size: 12px; }
.group-meta { color: var(--text-muted); font-size: 11px; }
.group-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.group-join-btn, .group-leave-btn { padding: 6px 14px; border-radius: 3px; font-weight: 700; font-size: 12px; cursor: pointer; }
.group-join-btn { background: linear-gradient(var(--accent-btn), var(--accent)); color: #fff; border: 1px solid var(--accent-btn-border); }
.group-leave-btn { background: #f5f6f7; color: var(--text); border: 1px solid #ccd0d5; }

/* ========== Pages ========== */
.pages-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.page-card { border: 1px solid var(--border); border-radius: 4px; overflow: hidden; cursor: pointer; }
.page-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.12); }
.page-cover { height: 80px; background: #cdd3dd; }
.page-info { padding: 8px; font-size: 12px; }
.page-category { color: var(--text-muted); font-size: 11px; }
.page-meta { color: var(--text-muted); font-size: 11px; }
.page-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.page-follow-btn, .page-unfollow-btn { padding: 6px 14px; border-radius: 3px; font-weight: 700; font-size: 12px; cursor: pointer; }
.page-follow-btn { background: linear-gradient(var(--accent-btn), var(--accent)); color: #fff; border: 1px solid var(--accent-btn-border); }
.page-unfollow-btn { background: #f5f6f7; color: var(--text); border: 1px solid #ccd0d5; }

/* ========== Theme Settings ========== */
.theme-toggle-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.theme-toggle-btn { background: none; border: none; font-size: 20px; cursor: pointer; padding: 4px; }
.theme-colors label { display: block; font-weight: 700; font-size: 12px; color: #606770; margin-bottom: 6px; }
.color-presets { display: flex; gap: 8px; }
.color-preset { width: 32px; height: 32px; border-radius: 50%; border: 3px solid transparent; cursor: pointer; transition: border-color 0.15s; }
.color-preset:hover { transform: scale(1.1); }
.color-preset.active { border-color: var(--text); }

/* ========== Memories ========== */
.memories-card { background: #fff9e6; border: 1px solid #f0d060; border-radius: 4px; padding: 12px; margin-bottom: 8px; }
.memories-header { font-size: 14px; font-weight: 700; color: #8a6d00; margin-bottom: 8px; }
.memories-post { background: #fff; border: 1px solid var(--border); border-radius: 4px; padding: 10px; }
.memories-panel h3 { margin-bottom: 10px; }
.memory-card { background: #fff; border: 1px solid var(--border); border-radius: 4px; padding: 12px; margin-bottom: 8px; position: relative; }
.memory-badge { position: absolute; top: 10px; right: 10px; background: #e4c642; color: #6b4f00; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 10px; }
.memory-body { padding-right: 80px; }
.memory-text { font-size: 14px; line-height: 1.4; }
.memory-meta { margin-top: 6px; font-size: 12px; color: var(--text-muted); display: flex; gap: 10px; }

/* ========== Activity Log ========== */
.activity-panel h3 { margin-bottom: 10px; }
.activity-filters { display: flex; gap: 4px; margin-bottom: 12px; flex-wrap: wrap; }
.activity-filter-btn { background: #f0f2f5; border: 1px solid #ccd0d5; border-radius: 16px; padding: 4px 12px; font-size: 12px; cursor: pointer; }
.activity-filter-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.activity-list { display: flex; flex-direction: column; gap: 4px; }
.activity-item { display: flex; align-items: flex-start; gap: 10px; padding: 8px 10px; background: #f0f2f5; border-radius: 4px; }
.activity-icon { font-size: 16px; flex-shrink: 0; width: 24px; text-align: center; }
.activity-body { flex: 1; font-size: 13px; }
.activity-body .time { font-size: 12px; color: var(--text-muted); }
.activity-empty { padding: 20px; text-align: center; color: var(--text-muted); }
.activity-load-more { background: none; border: none; color: var(--accent); cursor: pointer; font-size: 13px; padding: 8px; }
.activity-load-more:hover { text-decoration: underline; }

/* ========== Composer Extras (Feelings/Checkins) ========== */
.composer-extras { display: flex; gap: 8px; margin: 4px 0; font-size: 13px; }
.composer-feeling, .composer-checkin { display: flex; align-items: center; gap: 4px; }
.feeling-picker { display: flex; gap: 4px; flex-wrap: wrap; padding: 4px; background: #fff; border: 1px solid var(--border); border-radius: 4px; }
.feeling-opt { background: none; border: none; cursor: pointer; padding: 4px 8px; border-radius: 4px; font-size: 13px; }
.feeling-opt:hover { background: #f0f2f5; }
.checkin-input { border: 1px solid var(--border); border-radius: 4px; padding: 4px 8px; font-size: 13px; width: 200px; }

/* ========== Post Feeling/Checkin ========== */
.post-feeling { font-size: 13px; color: var(--text-muted); padding: 0 12px; margin-bottom: 4px; }
.post-checkin { font-size: 13px; color: var(--text-muted); padding: 0 12px; margin-bottom: 4px; }

/* ========== Share Button ========== */
.post-actions .share-btn { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 13px; padding: 4px 8px; }
.post-actions .share-btn:hover { color: var(--accent); }

/* ========== Wall Post Header ========== */
.wall-post-label { font-size: 12px; color: var(--text-muted); padding: 6px 12px 0; }

/* ========== Profile Tabs ========== */
.profile-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--border); margin-bottom: 12px; }
.profile-tabs div { padding: 8px 16px; cursor: pointer; font-size: 13px; font-weight: 700; color: var(--text-muted); border-bottom: 3px solid transparent; }
.profile-tabs div.active { color: var(--accent); border-bottom-color: var(--accent); }
.profile-tabs div:hover { background: #f0f2f5; }

/* ========== Avatar & Cover Upload ========== */
.profile-cover { position: relative; }
.cover-upload-btn { position: absolute; top: 10px; right: 10px; background: rgba(0,0,0,0.6); color: #fff; padding: 4px 10px; border-radius: 4px; font-size: 12px; cursor: pointer; }
.cover-upload-btn:hover { background: rgba(0,0,0,0.8); }
.profile-pic { position: relative; }
.avatar-upload-btn { position: absolute; bottom: 4px; right: 4px; background: rgba(0,0,0,0.6); color: #fff; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; cursor: pointer; }
.avatar-upload-btn:hover { background: rgba(0,0,0,0.8); }

/* ========== Error Toast ========== */
#ns-error-toast {
  position: fixed;
  bottom: 16px;
  right: 16px;
  max-width: 360px;
  padding: 10px 14px;
  background: #d9534f;
  color: #fff;
  border-radius: 6px;
  font-size: 13px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
  z-index: 10000;
}
#ns-error-toast.show { opacity: 1; transform: translateY(0); }
