/* MoodSphere — кастомная тема (dark + light), glassmorphism, неон */

:root {
  --bg-0: #0a0a18;
  --bg-1: #11122a;
  --bg-2: #1a1b3a;
  --surface: rgba(255, 255, 255, 0.05);
  --surface-strong: rgba(255, 255, 255, 0.09);
  --border: rgba(255, 255, 255, 0.12);
  --text: #e8eaf6;
  --text-muted: #9aa0c5;
  --code-bg: rgba(255,255,255,.08);
  --primary: #7c5cff;
  --primary-2: #b65cff;
  --pink: #ff5c8d;
  --cyan: #5cffd6;
  --yellow: #ffd05c;
  --orange: #ff945c;
  --green: #5dd39e;
  --red: #ff5c7a;
  --neutral: #9aa0c5;
  --shadow-neon: 0 0 24px rgba(124, 92, 255, 0.45);
  --grad-1: linear-gradient(135deg, #7c5cff 0%, #b65cff 50%, #ff5c8d 100%);
  --grad-2: linear-gradient(135deg, #5cffd6 0%, #5cb8ff 100%);
  --grad-3: linear-gradient(135deg, #ffd05c 0%, #ff945c 100%);
  --grad-bg: radial-gradient(1200px 800px at 10% -10%, rgba(124,92,255,.25), transparent 60%),
             radial-gradient(900px 600px at 100% 0%, rgba(255,92,141,.18), transparent 60%),
             radial-gradient(900px 700px at 50% 110%, rgba(92,255,214,.12), transparent 60%);
}

[data-theme="light"] {
  --bg-0: #f4f5fb;
  --bg-1: #ffffff;
  --bg-2: #eef0fa;
  --surface: rgba(255, 255, 255, 0.85);
  --surface-strong: rgba(255, 255, 255, 1);
  --border: rgba(20, 22, 60, 0.12);
  --text: #1a1d3a;
  --text-muted: #6c7299;
  --code-bg: rgba(20,22,60,.06);
  --grad-bg: radial-gradient(1200px 800px at 10% -10%, rgba(124,92,255,.18), transparent 60%),
             radial-gradient(900px 600px at 100% 0%, rgba(255,92,141,.12), transparent 60%),
             radial-gradient(900px 700px at 50% 110%, rgba(92,255,214,.10), transparent 60%);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--bg-0);
  color: var(--text);
  font-family: "Segoe UI", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  background-image: var(--grad-bg);
  background-attachment: fixed;
  background-color: var(--bg-0);
  min-height: 100vh;
}

a { color: var(--primary); text-decoration: none; transition: color .15s; }
a:hover { color: var(--pink); }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(10, 10, 24, 0.7);
  border-bottom: 1px solid var(--border);
  padding: 12px 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}

.topbar .brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 20px; letter-spacing: .3px;
  background: var(--grad-1);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

.brand-dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--grad-1); box-shadow: var(--shadow-neon);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.25); opacity: .85; }
}

.nav-links { display: flex; gap: 6px; align-items: center; }
.nav-links a, .nav-links button {
  color: var(--text); padding: 8px 14px; border-radius: 10px;
  background: transparent; border: 1px solid transparent;
  font-size: 14px; cursor: pointer;
  transition: all .15s;
}
.nav-links a:hover, .nav-links button:hover {
  background: var(--surface-strong);
  border-color: var(--border);
}
.nav-links a.active {
  background: var(--surface);
  border-color: var(--border);
  box-shadow: 0 0 0 1px rgba(124, 92, 255, .25) inset;
}

.search-form {
  display: flex; flex: 1; max-width: 360px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  align-items: center; gap: 8px;
}
.search-form input {
  flex: 1; background: transparent; border: 0; outline: none; color: var(--text);
  font-size: 14px;
}
.search-form .bi { color: var(--text-muted); }

/* ---------- Layout ---------- */
.shell {
  max-width: 1280px; margin: 24px auto; padding: 0 16px;
  display: grid; grid-template-columns: 240px 1fr 320px; gap: 24px;
}
@media (max-width: 1024px) {
  .shell { grid-template-columns: 1fr; }
  .side-left, .side-right { display: none; }
}

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform .15s, box-shadow .25s, border-color .15s;
}
.card.hoverable:hover {
  transform: translateY(-2px);
  border-color: rgba(124, 92, 255, .35);
  box-shadow: 0 10px 40px rgba(0,0,0,.35), 0 0 0 1px rgba(124,92,255,.15);
}

.card-title {
  font-size: 13px; text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--text-muted); margin-bottom: 12px; font-weight: 600;
}

/* ---------- Avatars ---------- */
.avatar {
  width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; color: white; font-size: 14px;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0,0,0,.4);
}
.avatar.lg { width: 88px; height: 88px; font-size: 28px; }
.avatar.sm { width: 28px; height: 28px; font-size: 11px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 12px;
  font-weight: 600; font-size: 14px; cursor: pointer;
  border: 1px solid var(--border);
  background: var(--surface); color: var(--text);
  transition: all .15s;
}
.btn:hover { background: var(--surface-strong); transform: translateY(-1px); }
.btn-primary {
  background: var(--grad-1); border-color: transparent; color: white;
  box-shadow: 0 6px 24px rgba(124,92,255,.3);
}
.btn-primary:hover { box-shadow: 0 10px 30px rgba(124,92,255,.5); }
.btn-danger { background: linear-gradient(135deg, #ff5c7a, #ff945c); border: 0; color: white; }
.btn-ghost { background: transparent; }
.btn-sm { padding: 6px 12px; font-size: 12px; border-radius: 8px; }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Form ---------- */
.input, textarea.input {
  width: 100%; padding: 12px 14px; border-radius: 12px;
  background: rgba(255,255,255,.04); border: 1px solid var(--border);
  color: var(--text); font-size: 14px; outline: none;
  transition: border .15s, box-shadow .15s;
  font-family: inherit; resize: vertical;
}
.input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(124,92,255,.2); }
label { display: block; font-size: 13px; color: var(--text-muted); margin-bottom: 6px; }

/* ---------- Post ---------- */
.post {
  display: flex; gap: 14px;
  padding: 18px; margin-bottom: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  backdrop-filter: blur(12px);
  position: relative;
  transition: border-color .2s, transform .15s;
}
.post:hover { border-color: rgba(124,92,255,.3); }
.post-body { flex: 1; min-width: 0; }
.post-meta {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 8px; flex-wrap: wrap;
}
.post-author { font-weight: 600; color: var(--text); }
.post-time { color: var(--text-muted); font-size: 12px; }
.post-content {
  font-size: 15px; line-height: 1.55;
  white-space: pre-wrap; word-wrap: break-word;
}
.post-actions {
  display: flex; gap: 18px; margin-top: 12px;
  color: var(--text-muted); font-size: 13px;
}
.post-actions button, .post-actions a {
  background: transparent; border: 0; color: var(--text-muted);
  cursor: pointer; padding: 4px 6px; display: inline-flex; align-items: center; gap: 6px;
  border-radius: 8px; transition: all .15s;
  font-size: 13px;
}
.post-actions button:hover { color: var(--pink); background: rgba(255,92,141,.08); }
.post-actions .liked { color: var(--pink); }

.hashtag {
  display: inline-block; padding: 2px 8px; margin-right: 4px;
  background: rgba(124,92,255,.15); border: 1px solid rgba(124,92,255,.3);
  border-radius: 999px; font-size: 12px; color: #c3b3ff;
}
.hashtag:hover { background: rgba(124,92,255,.3); color: white; }

/* ---------- Sentiment badges ---------- */
.mood {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .8px;
}
.mood.positive { background: rgba(93, 211, 158, .15); color: var(--green); border: 1px solid rgba(93, 211, 158, .35); }
.mood.negative { background: rgba(255, 92, 122, .15); color: var(--red); border: 1px solid rgba(255, 92, 122, .35); }
.mood.neutral  { background: rgba(154, 160, 197, .15); color: var(--neutral); border: 1px solid rgba(154, 160, 197, .35); }

/* ---------- Pulse widget ---------- */
.pulse-ring {
  width: 120px; height: 120px; border-radius: 50%;
  margin: 0 auto;
  background: conic-gradient(var(--green) 0%, var(--green) var(--p, 50%),
                              var(--red) var(--p, 50%), var(--red) 100%);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.pulse-ring::before {
  content: ''; position: absolute; inset: 8px; border-radius: 50%;
  background: var(--bg-1);
}
.pulse-ring .pulse-value { position: relative; font-size: 22px; font-weight: 700; }

/* ---------- Stat tiles ---------- */
.stat-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px;
}
.stat-tile {
  padding: 18px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.stat-tile::before {
  content: ''; position: absolute; inset: 0;
  background: var(--grad-1); opacity: .12; z-index: 0;
}
.stat-tile.t2::before { background: var(--grad-2); }
.stat-tile.t3::before { background: var(--grad-3); }
.stat-tile.t4::before { background: linear-gradient(135deg, #5dd39e, #5cffd6); }
.stat-tile > * { position: relative; z-index: 1; }
.stat-tile .label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.stat-tile .value { font-size: 32px; font-weight: 800; margin-top: 6px; }
.stat-tile .icon  { font-size: 22px; opacity: .65; position: absolute; top: 14px; right: 14px; z-index: 1; }

/* ---------- Charts ---------- */
.chart-wrap { position: relative; height: 280px; }
.chart-wrap.tall { height: 360px; }

/* ---------- Heatmap ---------- */
.heatmap {
  display: grid; grid-template-columns: 40px repeat(24, 1fr); gap: 3px;
  font-size: 10px; color: var(--text-muted);
}
.heatmap .cell {
  aspect-ratio: 1 / 1; border-radius: 3px; background: rgba(124,92,255,.05);
  transition: transform .1s;
}
.heatmap .cell:hover { transform: scale(1.4); z-index: 5; }
.heatmap .lbl { display: flex; align-items: center; justify-content: flex-end; padding-right: 4px; }
.heatmap .hour { text-align: center; font-size: 9px; }

/* ---------- Tables ---------- */
.table {
  width: 100%; border-collapse: collapse;
}
.table th, .table td {
  padding: 12px 14px; text-align: left;
  border-bottom: 1px solid var(--border); font-size: 14px;
}
.table th { font-size: 12px; text-transform: uppercase; color: var(--text-muted); font-weight: 600; letter-spacing: .8px; }
.table tr:hover td { background: var(--surface); }

/* ---------- Flash ---------- */
.flash {
  padding: 12px 16px; border-radius: 12px; margin-bottom: 12px;
  border: 1px solid var(--border); background: var(--surface);
  font-size: 14px;
}
.flash.success { border-color: rgba(93,211,158,.4); background: rgba(93,211,158,.1); }
.flash.danger  { border-color: rgba(255,92,122,.4); background: rgba(255,92,122,.1); }
.flash.warning { border-color: rgba(255,208,92,.4); background: rgba(255,208,92,.1); }
.flash.info    { border-color: rgba(92,184,255,.4); background: rgba(92,184,255,.1); }

/* ---------- Filters ---------- */
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.chip {
  padding: 8px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-muted); font-size: 13px; cursor: pointer; transition: all .15s;
  display: inline-flex; align-items: center; gap: 6px;
}
.chip:hover { color: var(--text); }
.chip.active {
  background: var(--grad-1); color: white; border-color: transparent;
  box-shadow: 0 4px 18px rgba(124,92,255,.4);
}

/* ---------- Auth ---------- */
.auth-shell {
  min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px;
}
.auth-card {
  width: 100%; max-width: 440px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 24px; padding: 36px;
  backdrop-filter: blur(20px);
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
.auth-card h1 {
  font-size: 28px; margin: 0 0 4px;
  background: var(--grad-1); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.auth-card p { color: var(--text-muted); font-size: 14px; margin-top: 0; }

/* ---------- Profile ---------- */
.profile-hero {
  display: flex; gap: 24px; align-items: center;
  padding: 28px; border-radius: 22px;
  background: var(--surface); border: 1px solid var(--border);
}
.profile-hero h1 { margin: 0; font-size: 26px; }
.profile-hero .username-tag { color: var(--text-muted); }

/* ---------- Pagination ---------- */
.pagination {
  display: flex; gap: 6px; justify-content: center; margin-top: 20px;
}
.pagination a, .pagination span {
  padding: 8px 12px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text); font-size: 13px;
}
.pagination .current {
  background: var(--grad-1); color: white; border: 0;
}

/* ---------- Misc ---------- */
.muted { color: var(--text-muted); }
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.row { display: flex; gap: 16px; flex-wrap: wrap; }
.row > * { flex: 1; min-width: 280px; }
.section-title { font-size: 18px; font-weight: 700; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }

@media (max-width: 600px) {
  .topbar { padding: 10px 12px; flex-wrap: wrap; }
  .search-form { order: 3; max-width: 100%; }
  .stat-tile .value { font-size: 24px; }
  .auth-card { padding: 24px; }
  .profile-hero { flex-direction: column; text-align: center; }
}

/* --- v2 additions --- */
.mention { color: var(--cyan); font-weight: 600; }
.mention:hover { text-decoration: underline; }

.badge-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px; font-size: 12px;
  background: var(--surface-strong); border: 1px solid var(--border);
  margin: 4px 4px 0 0; transition: transform .15s;
}
.badge-pill:hover { transform: translateY(-2px); border-color: rgba(124,92,255,.4); }
.badge-pill .b-emoji { font-size: 16px; }

.repost-card {
  margin-top: 10px; padding: 12px;
  border-left: 3px solid var(--primary);
  background: rgba(124,92,255,.06); border-radius: 8px;
  font-size: 13px;
}
.repost-card .post-author { font-size: 13px; }

.notif-item {
  display: flex; gap: 12px; align-items: center;
  padding: 14px 16px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--border);
  margin-bottom: 8px; transition: transform .15s;
}
.notif-item.unread { border-color: rgba(124,92,255,.4); background: rgba(124,92,255,.07); }
.notif-item:hover { transform: translateX(4px); }

.bell {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 10px; transition: background .15s;
}
.bell:hover { background: var(--surface-strong); }
.bell .badge-cnt {
  position: absolute; top: -2px; right: -2px;
  background: var(--pink); color: white; font-size: 10px;
  padding: 2px 5px; border-radius: 999px; font-weight: 700;
}

.theme-toggle {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text);
}
.theme-toggle:hover { background: var(--surface-strong); }

.emoji-picker {
  display: flex; flex-wrap: wrap; gap: 4px; padding: 8px;
  background: var(--surface-strong); border: 1px solid var(--border);
  border-radius: 10px; max-height: 180px; overflow-y: auto;
  margin-top: 6px;
}
.emoji-picker button {
  width: 32px; height: 32px; font-size: 18px; border: 0; background: transparent;
  cursor: pointer; border-radius: 6px;
}
.emoji-picker button:hover { background: var(--surface); }

.wordcloud {
  display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: baseline;
  padding: 10px; min-height: 200px;
}
.wordcloud .w {
  font-weight: 700; transition: transform .15s, color .15s;
  cursor: pointer;
}
.wordcloud .w:hover { transform: scale(1.15); }
.wordcloud .w.positive { color: var(--green); }
.wordcloud .w.negative { color: var(--red); }
.wordcloud .w.neutral { color: var(--text-muted); }

.suggested-user {
  display: flex; align-items: center; gap: 10px; padding: 8px;
  border-radius: 10px; transition: background .15s;
}
.suggested-user:hover { background: var(--surface-strong); }
.suggested-user .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.tabs { display: flex; gap: 6px; margin-bottom: 14px; border-bottom: 1px solid var(--border); }
.tabs a {
  padding: 10px 16px; color: var(--text-muted); font-weight: 600;
  font-size: 14px; border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: all .15s;
}
.tabs a:hover { color: var(--text); }
.tabs a.active { color: var(--text); border-bottom-color: var(--primary); }

.flag-banner {
  background: rgba(255,92,122,.1); border: 1px solid rgba(255,92,122,.4);
  color: var(--red); padding: 8px 12px; border-radius: 8px;
  font-size: 12px; margin-bottom: 8px;
}

[data-theme="light"] .topbar { background: rgba(255,255,255,.85); }
[data-theme="light"] .avatar { box-shadow: 0 4px 14px rgba(0,0,0,.15); }
[data-theme="light"] .input, [data-theme="light"] textarea.input { background: white; }

/* ============ Dark-mode bugfixes ============ */

/* <select> и его выпадающий список */
select.input {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%239aa0c5' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}
/* Сами пункты <option> должны явно задавать цвета — иначе ОС рисует белый фон */
select.input option {
  background-color: #1a1b3a;
  color: #e8eaf6;
  padding: 8px;
}
[data-theme="light"] select.input option {
  background-color: #ffffff;
  color: #1a1d3a;
}

/* Placeholder читаемый в обеих темах */
.input::placeholder, textarea.input::placeholder, .search-form input::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

/* Chrome autofill фикс — иначе вылезает белый фон в тёмной теме */
.input:-webkit-autofill,
.input:-webkit-autofill:hover,
.input:-webkit-autofill:focus,
.search-form input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px var(--bg-1) inset !important;
  -webkit-text-fill-color: var(--text) !important;
  caret-color: var(--text);
  transition: background-color 5000s ease-in-out 0s;
}

/* Inputs в тёмной теме — fallback (на случай экзотических браузеров) */
input, textarea, select {
  color-scheme: dark;
}
[data-theme="light"] input,
[data-theme="light"] textarea,
[data-theme="light"] select {
  color-scheme: light;
}

/* Search form в light не должен показывать белое внутри белого */
[data-theme="light"] .search-form { background: rgba(20, 22, 60, 0.04); }
[data-theme="light"] .search-form input { color: var(--text); }

/* Кнопка темы — фиксируем размер чтобы не прыгала при смене иконки */
.theme-toggle { flex-shrink: 0; }
.theme-toggle i { font-size: 16px; }

/* Hashtag в светлой теме — поправляем читабельность */
[data-theme="light"] .hashtag { background: rgba(124,92,255,.08); color: var(--primary); }
[data-theme="light"] .hashtag:hover { background: rgba(124,92,255,.18); color: var(--primary); }

/* Mention в светлой теме */
[data-theme="light"] .mention { color: #2aa395; }

/* Mood-чипы в светлой теме — увеличиваем контраст */
[data-theme="light"] .mood.positive { color: #1f8b5e; background: rgba(31,139,94,.12); }
[data-theme="light"] .mood.negative { color: #c43350; background: rgba(196,51,80,.12); }
[data-theme="light"] .mood.neutral  { color: #5a5f7e; background: rgba(90,95,126,.12); }

/* Bell/notification badge — читабельно в light */
[data-theme="light"] .bell .badge-cnt { box-shadow: 0 2px 6px rgba(0,0,0,.2); }

/* Navbar links text (в light нужен тёмный) */
[data-theme="light"] .nav-links a,
[data-theme="light"] .nav-links button { color: var(--text); }

/* Stat-tile gradient слишком яркие в светлой теме — приглушаем */
[data-theme="light"] .stat-tile::before { opacity: 0.18; }

/* Фоновое изображение topbar в light не должно перекрывать страницу */
[data-theme="light"] .topbar { box-shadow: 0 2px 16px rgba(20,22,60,.06); }

/* Heatmap cells — в light тоже читаемо */
[data-theme="light"] .heatmap .cell { background: rgba(124,92,255,.08); }

/* Tabs в light — активный таб виднее */
[data-theme="light"] .tabs a.active { color: var(--primary); }

/* Word cloud цвета в light */
[data-theme="light"] .wordcloud .w.positive { color: #1f8b5e; }
[data-theme="light"] .wordcloud .w.negative { color: #c43350; }
[data-theme="light"] .wordcloud .w.neutral  { color: #5a5f7e; }

/* Code/pre  */
code { background: var(--code-bg); padding: 2px 6px; border-radius: 4px; font-size: 12px; }

/* Pagination в light */
[data-theme="light"] .pagination a, [data-theme="light"] .pagination span { color: var(--text); }

/* Flash в light с увеличенным контрастом */
[data-theme="light"] .flash.success { color: #1f6e4e; }
[data-theme="light"] .flash.danger { color: #a82a44; }
[data-theme="light"] .flash.warning { color: #856200; }
[data-theme="light"] .flash.info { color: #1d5e8e; }

/* Profile/post avatar shadow убрать в light */
[data-theme="light"] .post { box-shadow: 0 2px 8px rgba(20,22,60,.04); }

/* fix: forms внутри .post-actions не должны переносить кнопки */
.post-actions form { display: inline-flex; }

/* Чтоб длинные слова не ломали layout */
.post-content, .badge-pill, .notif-item, table td { word-break: break-word; }
