/*
 * KelCommunity – Hyperglass Theme (2026 Redesign v3)
 * Comprehensive responsive redesign
 */

/* ═══════════════════════════════════════════════════════════
   DESIGN TOKENS
   ═══════════════════════════════════════════════════════════ */
:root {
  --c-navy:         #0c1325;
  --c-navy-mid:     #162040;
  --c-blue-700:     #1d4ed8;
  --c-blue-600:     #2563eb;
  --c-blue-500:     #3b82f6;
  --c-blue-400:     #60a5fa;
  --c-blue-300:     #93c5fd;
  --c-surface:      #ffffff;
  --c-bg:           #f1f5f9;
  --c-bg-subtle:    #f8fafc;
  --c-border:       #e2e8f0;
  --c-border-mid:   #cbd5e1;
  --c-text:         #0f172a;
  --c-text-body:    #334155;
  --c-muted:        #64748b;
  --c-muted-light:  #94a3b8;
  --c-hover-row:    #f0f6ff;
  --c-unread:       #f97316;
  --c-unread-bg:    #fff7ed;

  --r-xs:  4px;
  --r-sm:  8px;
  --r-md:  12px;
  --r-lg:  16px;

  --shadow-xs: 0 1px 2px rgba(0,0,0,.05);
  --shadow-sm: 0 1px 4px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 20px rgba(0,0,0,.10), 0 1px 4px rgba(0,0,0,.06);

  --font: 'Inter', 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;

  --svg-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'/%3E%3C/svg%3E");
  --svg-comment: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3C/svg%3E");
}

/* ═══════════════════════════════════════════════════════════
   BASE RESET
   ═══════════════════════════════════════════════════════════ */
* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0;
  background: var(--c-bg);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--c-text-body);
  text-align: left;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--c-bg); }
::-webkit-scrollbar-thumb { background: var(--c-border-mid); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--c-muted); }

div, td { text-align: left; }

h1, h2, h3, h4, h5 {
  margin: 0;
  font-weight: 700;
  color: var(--c-text);
  letter-spacing: -0.025em;
  line-height: 1.25;
}
h1 { font-size: 28px; }
h2 { font-size: 20px; }
h3 { font-size: 16px; }

p, ul, ol {
  margin: 0 0 .875em 0;
  line-height: 1.7;
  text-align: left;
}

blockquote {
  border-left: 3px solid var(--c-blue-600);
  padding: 4px 0 4px 14px;
  margin: 12px 0;
  color: var(--c-muted);
  font-style: italic;
  background: var(--c-hover-row);
  border-radius: 0 var(--r-xs) var(--r-xs) 0;
}

a {
  color: var(--c-blue-600);
  text-decoration: none;
  transition: color .12s ease;
}
a:hover { color: var(--c-blue-700); }

small  { font-size: 11px; color: var(--c-muted); }
hr     { display: none; }
img    { border: none; max-width: 100%; height: auto; }
img.left  { float: left;  margin: 2px 14px 6px 0; }
img.right { float: right; margin: 2px 0 6px 14px; }
abbr   { border-bottom: 0; text-decoration: none; }
.abbr  { color: var(--c-muted); }

/* ── Forms ──────────────────────────────────────────────── */
input, textarea, select {
  background: var(--c-surface);
  border: 1.5px solid var(--c-border-mid);
  border-radius: var(--r-sm);
  padding: 7px 11px;
  font-family: var(--font);
  font-size: 13px;
  color: var(--c-text);
  transition: border-color .15s, box-shadow .15s;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--c-blue-600);
  box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}
input:active { border: 1.5px solid var(--c-blue-600); }
input[active="true"] { border: 1.5px solid var(--c-text); }
input[type="submit"], input[type="reset"] {
  background: var(--c-blue-600);
  color: #fff;
  border: none;
  border-radius: var(--r-sm);
  padding: 7px 18px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: background .15s, box-shadow .15s;
  box-shadow: 0 1px 3px rgba(37,99,235,.30);
}
input[type="submit"]:hover, input[type="reset"]:hover {
  background: var(--c-blue-700);
  color: #fff;
  border: none;
  box-shadow: 0 2px 8px rgba(37,99,235,.40);
}
.inputreadonly {
  background: var(--c-bg-subtle) !important;
  color: var(--c-muted);
  border-color: var(--c-border);
}
form { margin: 0; }

/* ── Tables ─────────────────────────────────────────────── */
table { font-size: 13px; }
.xtableover { background: #f1f5f9; }
.xtabledown { background: #dbeafe; }

/* ═══════════════════════════════════════════════════════════
   AD BANNER — outside .bodymain, centred, stays in normal flow
   ═══════════════════════════════════════════════════════════ */
.topbannerframe {
  position: relative;
  left: auto;
  display: block;
  width: 100%;
  max-width: 728px;
  height: 90px;
  margin: 12px auto;
  text-align: center;
  overflow: hidden;
  z-index: 10;
}

/* ═══════════════════════════════════════════════════════════
   WRAPPER
   ═══════════════════════════════════════════════════════════ */
.bodymain,
#bodymain {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto 20px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  background: var(--c-surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  text-align: left;
}

#page  { width: 100%; max-width: 1080px; margin: 0 auto; background: none; }
#bg    { background: none; }

/* ═══════════════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════════════ */
#topbanner {
  width: 100%;
  margin: 0;
  padding: 0 28px;
  min-height: 68px;
  background: linear-gradient(100deg, var(--c-navy) 0%, var(--c-navy-mid) 45%, #1e4db7 100%);
  border: none;
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
}
#topbanner::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}
#logo { float: none; flex: 1; position: relative; z-index: 1; }
#logo a {
  display: inline-block;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, #fff 0%, var(--c-blue-400) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
#logo h2 {
  padding: 0;
  font-size: 12px;
  font-weight: 400;
  color: rgba(255,255,255,.50);
  letter-spacing: 0;
}
.topbannertitle {
  float: none;
  flex: 1;
  padding: 0;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.04em;
  position: relative;
  z-index: 1;
  background: linear-gradient(90deg, #fff 0%, var(--c-blue-400) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
#languages {
  position: static;
  width: auto;
  left: auto;
  top: auto;
  text-align: right;
  font-size: 11px;
  z-index: 1;
}
#languages a {
  color: rgba(255,255,255,.55);
  padding: 2px 5px;
  border-radius: var(--r-xs);
  transition: color .12s, background .12s;
}
#languages a:hover { color: #fff; background: rgba(255,255,255,.10); }

/* ═══════════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════════ */
#menu {
  position: static;
  top: auto; left: auto;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0 12px;
  background: var(--c-navy);
  border: none;
  border-top: 1px solid rgba(255,255,255,.06);
  line-height: 1;
  text-align: left;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
#menu a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 9px 12px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,.60);
  background: none;
  border: none;
  border-radius: var(--r-xs);
  margin: 3px 1px;
  white-space: nowrap;
  letter-spacing: .01em;
  transition: color .12s, background .12s;
}
#menu a:hover {
  color: #fff;
  background: rgba(255,255,255,.10);
  border: none;
}
#menu img { margin: 0; vertical-align: middle; width: 14px; height: 14px; }

/* ═══════════════════════════════════════════════════════════
   MAIN CONTENT AREA
   ═══════════════════════════════════════════════════════════ */
#main,
.mainex {
  width: auto;
  background: none;
  padding: 20px 24px;
  margin: 0;
  min-height: 300px;
  left: auto;
  right: auto;
  position: static;
  font-size: 14px;
}

/* hide stray br elements that break layouts in .mainex */
.mainex > br { display: none; }

/* ═══════════════════════════════════════════════════════════
   SIDEBAR
   ═══════════════════════════════════════════════════════════ */
#sidebar {
  float: right;
  width: 200px;
  background: none;
  border-left: 1px solid var(--c-border);
  min-height: 200px;
}
#sidebar ul { width: auto; margin: 0; padding: 0 14px; list-style: none; }
#sidebar li ul { width: auto; padding: 0 0 0 8px; }
#sidebar li li {
  padding: 5px 0;
  background: none;
  border-top: 1px solid var(--c-border);
}
#sidebar li li.first { padding-top: 0; border-top: none; }
#sidebar li h2 {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--c-muted);
  padding: 14px 0 8px 0;
  background: none;
  border-bottom: 1px solid var(--c-border);
  margin-bottom: 0;
}
#about-box {
  width: auto; height: auto;
  padding: 14px;
  background: var(--c-bg-subtle);
  border-radius: var(--r-sm);
  margin-bottom: 10px;
}
#about-box h2 { font-size: 14px; font-weight: 700; margin-bottom: 8px; }
#about-box p  { font-size: 12px; }

/* ═══════════════════════════════════════════════════════════
   PANELS
   ═══════════════════════════════════════════════════════════ */
.leftpanel {
  width: 100%;
  margin-bottom: 14px;
  padding: 0;
  overflow: hidden;
  text-align: left;
}
.mainex .leftpanel { margin-bottom: 12px; }

.leftpaneltitle {
  font-weight: 700;
  font-size: 13px;
  color: var(--c-text);
  border: none;
  border-bottom: 2px solid var(--c-blue-600);
  padding: 0 0 6px 0;
  margin-bottom: 12px;
  letter-spacing: .01em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.leftpanelfooter {
  border-top: 1px solid var(--c-border);
  font-weight: 600;
  font-size: 12px;
  color: var(--c-muted);
  margin-top: 8px;
  padding-top: 6px;
}
.leftpanelcolumns { width: 100%; border: 0; border-collapse: collapse; }
.leftpanelcolumns td { vertical-align: top; border: 0; width: 50%; }

/* Forum main title ("Forum") */
.leftpaneltitle.forumleftpaneltitle {
  font-size: 18px;
  font-weight: 800;
  padding-bottom: 10px;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

/* Breadcrumb panel */
.leftpanel.forumleftpanelex {
  margin-bottom: 6px;
}
.leftpaneltitle.forumleftpaneltitleex {
  font-size: 12px;
  font-weight: 400;
  color: var(--c-muted);
  border-bottom: 1px solid var(--c-border);
  border-bottom-width: 1px;
  padding-bottom: 6px;
  margin-bottom: 10px;
}
.leftpaneltitle.forumleftpaneltitleex a {
  color: var(--c-blue-600);
  font-weight: 500;
}
.leftpaneltitle.forumleftpaneltitleex a:hover { color: var(--c-blue-700); }

/* Pagination header panel */
.leftpaneltitle.leftpaneltitlegreyex {
  font-weight: 400;
  font-size: 12px;
  color: var(--c-muted);
  border-bottom: 1px solid var(--c-border);
  border-bottom-width: 1px;
  padding: 6px 0 8px 0;
  margin-bottom: 10px;
  align-items: flex-start;
  row-gap: 6px;
}

/* Posts (blog/news) */
.post { width: auto; padding: 20px 0; border-bottom: 1px solid var(--c-border); }
.post .title { padding: 0; }
.post .title a { color: var(--c-text); font-weight: 700; font-size: 16px; }
.post .title a:hover { color: var(--c-blue-600); }
.post .date { margin: 0; text-align: right; color: var(--c-muted); font-size: 11px; }
.post .entry { padding: 12px 0 0; background: none; }
.post .meta {
  padding: 8px 0; background: none;
  border-top: 1px solid var(--c-border); margin-top: 12px;
  font-size: 12px; color: var(--c-muted);
}
.post .meta b { display: none; }
.post .more, .post .comments {
  padding-left: 18px;
  background-repeat: no-repeat;
  background-position: left center;
  background-size: 12px 12px;
  display: inline-block;
}
.post .more     { background-image: var(--svg-chevron); }
.post .comments { background-image: var(--svg-comment); }

/* ═══════════════════════════════════════════════════════════
   PAGINATION  (.XPages / .XPagesInner / .XPagesCurrent)
   ═══════════════════════════════════════════════════════════ */
.XPages { display: inline; }
.XPagesInner {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 2px;
  align-items: center;
}
.XPagesInner a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 26px;
  padding: 0 6px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-xs);
  font-size: 11px;
  font-weight: 500;
  color: var(--c-text-body);
  transition: background .10s, border-color .10s, color .10s;
}
.XPagesInner a:hover {
  background: var(--c-hover-row);
  border-color: var(--c-blue-400);
  color: var(--c-blue-600);
}
.XPagesCurrent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 26px;
  padding: 0 6px;
  background: var(--c-blue-600);
  color: #fff !important;
  font-size: 11px;
  font-weight: 700;
  border-radius: var(--r-xs);
}
.XPagesPrev, .XPagesNext {
  font-size: 11px;
  font-weight: 600;
  color: var(--c-blue-600);
}

/* Standalone page navigation (.forummessagepages outside leftpaneltitle) */
.forummessagepages {
  float: none;
  white-space: nowrap;
  text-align: left;
  width: auto;
  font-size: 12px;
  font-weight: 500;
  color: var(--c-muted);
}
.forummessagecategories {
  white-space: normal;
  width: auto;
  font-size: 12px;
}

/* Topic prev/next links (standalone, outside leftpanel) */
.mainex > .forummessagepages,
.mainex > a {
  display: inline-block;
  font-size: 12px;
  color: var(--c-muted);
  margin-bottom: 6px;
}

/* ═══════════════════════════════════════════════════════════
   FORUM — SECTION HEADING
   ═══════════════════════════════════════════════════════════ */
.forumsection {
  width: 100%;
  float: none;
  margin: 20px 0 0;
  padding: 10px 14px 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(90deg, rgba(37,99,235,.06) 0%, transparent 100%);
  border-left: 3px solid var(--c-blue-600);
  border-radius: 0 var(--r-xs) var(--r-xs) 0;
}
/* hide br inside forumsection */
.forumsection br { display: none; }
.forumsection a {
  font-size: 14px;
  font-weight: 700;
  color: var(--c-text);
  letter-spacing: -0.01em;
}
.forumsection a:hover { color: var(--c-blue-600); }

/* ═══════════════════════════════════════════════════════════
   FORUM — CATEGORY TABLE
   ═══════════════════════════════════════════════════════════ */
.forumcategoryheader {
  display: flex;
  align-items: center;
  float: none;
  width: auto;
  margin: 6px 0 0;
  padding: 7px 14px;
  background: linear-gradient(90deg, var(--c-navy) 0%, #1a3060 100%);
  color: rgba(255,255,255,.55);
  border-radius: var(--r-sm) var(--r-sm) 0 0;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}
/* hide br tag inside header flex */
.forumcategoryheader br { display: none; }

.forumcategory {
  display: flex;
  align-items: center;
  float: none;
  width: auto;
  margin: 0;
  padding: 11px 14px;
  border-bottom: none; /* desc has the separator */
  transition: background .12s;
  position: relative;
}
.forumcategory:hover { background: var(--c-hover-row); }

/* Left unread indicator — orange to differentiate from blue section headings */
.forumcategory.forumcatunread::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--c-unread);
  border-radius: 0 2px 2px 0;
}

.forumcategoryname {
  flex: 1;
  min-width: 0;
  float: none;
  font-weight: 600;
  padding-right: 12px;
}
.forumcategoryname a {
  color: var(--c-text);
  font-size: 14px;
  font-weight: 600;
}
.forumcategoryname a:hover { color: var(--c-blue-600); }
.forumcategoryname img {
  vertical-align: middle;
  margin-right: 7px;
}
/* SVG swap for category icons — orange unread, grey read */
.forumcategoryname img[src*="topicunread"],
.forumcategoryname .forumcatunreadimg {
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='%23f97316'%3E%3Cpath d='M20 2H4a2 2 0 0 0-2 2v18l4-4h14a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2z'/%3E%3C/svg%3E");
  filter: none;
  width: 14px !important;
  height: 14px !important;
}
.forumcategoryname img[src*="topicread"] {
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='%2394a3b8'%3E%3Cpath d='M20 2H4a2 2 0 0 0-2 2v18l4-4h14a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2z'/%3E%3C/svg%3E");
  filter: none;
  width: 14px !important;
  height: 14px !important;
}

.forumcategorynameheader {
  flex: 1;
  min-width: 0;
  float: none;
  color: rgba(255,255,255,.55);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.forumcategorytopics,
.forumcategorymessages {
  width: 80px;
  flex-shrink: 0;
  float: none;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--c-text);
}

/* header column uses "lastmessage", data rows use "lastmsg" */
.forumcategorylastmessage,
.forumcategorylastmsg {
  width: 160px;
  flex-shrink: 0;
  float: none;
  text-align: right;
  font-size: 11px;
  color: var(--c-muted);
  line-height: 1.4;
}
.forumcategorylastmessage {
  color: rgba(255,255,255,.55);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.forumcategorymoderators {
  width: 130px;
  flex-shrink: 0;
  float: none;
  text-align: right;
  font-size: 11px;
  color: var(--c-muted);
}
.forumcategorymoderatorselem { font-size: 10px; color: var(--c-muted-light); }

/* Category description — SIBLING of .forumcategory */
.forumcategorydesc {
  display: block;
  float: none;
  width: auto;
  margin: 0;
  padding: 3px 14px 10px 37px; /* indent aligns with category name text */
  font-size: 11px;
  color: var(--c-muted);
  border-bottom: 1px solid var(--c-border);
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  line-height: 1.5;
}
/* Remove top border from next category after desc */
.forumcategorydesc + .forumcategory { border-top: none; }

.forumcategorypages {
  float: none;
  text-align: right;
  white-space: nowrap;
  font-size: 11px;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════
   FORUM — TOPIC LIST
   ═══════════════════════════════════════════════════════════ */
.forumtopicheader {
  display: flex;
  align-items: center;
  float: none;
  width: auto;
  margin: 0;
  padding: 7px 14px;
  background: var(--c-bg-subtle);
  border-bottom: 1px solid var(--c-border-mid);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--c-muted);
}
.forumtopic,
.forumtopichover {
  display: flex;
  align-items: center;
  float: none;
  width: auto;
  margin: 0;
  padding: 9px 14px 9px 16px;
  border: none;
  border-bottom: 1px solid var(--c-border);
  transition: background .10s;
  position: relative;
}
.forumtopic::before,
.forumtopichover::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: transparent;
  border-radius: 0 2px 2px 0;
  transition: background .10s;
}
.forumtopic:hover { background: var(--c-hover-row); }
.forumtopic:hover::before { background: var(--c-blue-400); }
.forumtopichover { background: var(--c-unread-bg); }
.forumtopichover::before { background: var(--c-unread); }
.forumtopichover a { color: var(--c-text); }
.forumtopichover a:hover { color: var(--c-blue-600); }

.forumtopicname {
  flex: 1;
  min-width: 0;
  float: none;
  font-weight: 600;
  font-size: 13px;
  padding-right: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.forumtopicname img {
  vertical-align: middle;
  margin-right: 6px;
  flex-shrink: 0;
}
.forumtopicname img[src*="topicunread"] {
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='%23f97316'%3E%3Cpath d='M20 2H4a2 2 0 0 0-2 2v18l4-4h14a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2z'/%3E%3C/svg%3E");
  filter: none;
}
.forumtopicname img[src*="topicread"] {
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='%2394a3b8'%3E%3Cpath d='M20 2H4a2 2 0 0 0-2 2v18l4-4h14a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2z'/%3E%3C/svg%3E");
  filter: none;
}

.forumtopicuser {
  width: 110px;
  flex-shrink: 0;
  float: none;
  text-align: center;
  font-size: 11px;
  color: var(--c-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.forumtopicmessages,
.forumtopicviews {
  width: 56px;
  flex-shrink: 0;
  float: none;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--c-text);
  max-width: none;
}
.forumtopiclastmsgdate {
  width: 110px;
  flex-shrink: 0;
  float: none;
  text-align: right;
  font-size: 11px;
  color: var(--c-muted);
  white-space: nowrap;
}
.forumtopicfooter {
  display: flex;
  justify-content: space-between;
  align-items: center;
  float: none;
  width: auto;
  margin: 0;
  padding: 8px 14px;
  border-top: 1px solid var(--c-border);
  font-size: 11px;
  font-weight: 500;
  color: var(--c-muted);
}
.forumtopicintro {
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: rgba(255,255,255,.65);
  padding: 8px 14px;
  margin: 0;
  background: linear-gradient(90deg, var(--c-navy) 0%, #1a3060 100%);
}
.forumtopicsecondline { font-size: 11px; font-weight: 400; color: var(--c-muted); display: block; margin-top: 1px; }
.forumtopicpages { display: inline; font-size: 11px; font-weight: 600; color: var(--c-muted-light); }
.forumlockedsubject { font-weight: 700; color: #dc2626; }
.forumlockedsubject img { vertical-align: top; }

/* Reminder section wrapping the previous message */
.forumfirstmessage {
  border: 1px solid var(--c-border-mid);
  border-radius: var(--r-md);
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: var(--shadow-xs);
}
.forumfirstmessage .forummessage {
  border: none;
  border-radius: 0;
  margin-top: 0;
  box-shadow: none;
}

/* ═══════════════════════════════════════════════════════════
   FORUM — THREAD MESSAGES
   Float + BFC layout (forummessageinfo = float left, forummessagetext = BFC)
   The <span id="pXXX"> anchor sits between info and text in the DOM.
   ═══════════════════════════════════════════════════════════ */
.forummessage > span[id],
.leftpanel.forummessage > span[id] {
  display: block;
  height: 0;
  overflow: hidden;
  font-size: 0;
  line-height: 0;
  position: absolute;
}

.forummessage {
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  margin-top: 14px;
  overflow: hidden;
  background: var(--c-surface);
  box-shadow: var(--shadow-xs);
  position: relative;
  clear: both;
}

/* Author sidebar */
.forummessageinfo {
  float: left;
  width: 130px;
  min-width: 0;
  padding: 12px 8px 12px 10px;
  background: var(--c-bg-subtle);
  border-right: 1px solid var(--c-border);
  font-weight: 600;
  font-size: 13px;
  text-align: center;
  word-break: break-word;
}
.forummessageinfo > a:first-child {
  font-weight: 700;
  font-size: 13px;
  color: var(--c-text);
  display: block;
  margin-bottom: 2px;
}
.forummessageinfo > a:first-child:hover { color: var(--c-blue-600); }

/* Avatar */
.forumavatar { margin: 8px 0 4px; text-align: center; }
.forumavatar img {
  border-radius: var(--r-sm);
  max-width: 72px;
  height: auto;
  box-shadow: var(--shadow-xs);
}
.forumrank { font-size: 10px; color: var(--c-muted); text-align: center; margin-top: 4px; }

/* Action icons inside info panel — circular pill buttons (à la informaticien) */
.forummessageutils {
  margin-top: 8px;
  font-size: 0;  /* collapse whitespace between inline-flex items */
  text-align: center;
  border-top: 1px solid var(--c-border);
  padding-top: 8px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
}
.forummessageutils a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  transition: background .12s, border-color .12s, box-shadow .12s;
}
.forummessageutils a:hover {
  background: var(--c-hover-row);
  border-color: var(--c-blue-400);
  box-shadow: 0 0 0 2px rgba(37,99,235,.10);
}
.forummessageutils img {
  width: 12px;
  height: 12px;
  vertical-align: middle;
  opacity: .65;
  transition: opacity .12s;
}
.forummessageutils a:hover img { opacity: 1; }
/* Hide trailing br */
.forummessageutils br { display: none; }
/* Up/down already live in .messageheaderimages — hide duplicate in sidebar */
.forummessageutilsright { display: none !important; }

/* Message body column — BFC fills space next to the float */
.forummessagetext {
  overflow: hidden;
  float: none;
  width: auto;
  height: auto;   /* override base height: 100% which clips long messages */
  border-left: none;
  min-height: 80px;
}

.forummessagetextfooter {
  clear: both;
  overflow: hidden;
  height: 0;
  font-size: 0;
}

.forummessagetextbody {
  margin: 0;
  padding: 14px 16px;
  min-height: 80px;
  line-height: 1.75;
  font-size: 14px;
  color: var(--c-text-body);
}
.forummessagetextbody img { max-width: 100%; border-radius: var(--r-xs); }

/* Message subject bar */
.forummessagesubject {
  font-size: 12px;
  font-weight: 600;
  color: var(--c-text);
  border-bottom: 1px solid var(--c-border);
  margin: 0;
  padding: 8px 14px;
  background: var(--c-bg-subtle);
  height: auto !important;  /* override base CSS height: 20px which clips title */
  overflow: visible;
  min-height: 0;
}
/* clearfix — keeps float inside without clipping text via overflow:hidden */
.forummessagesubject::after {
  content: '';
  display: block;
  clear: both;
}
.messageheaderimages {
  float: right;
  display: flex;
  align-items: center;
  gap: 3px;
  margin-left: 10px;
  margin-bottom: 2px;
  width: auto !important;  /* override base CSS width: 200px */
}
.messageheaderimages a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  transition: background .12s, border-color .12s, box-shadow .12s;
}
.messageheaderimages a:hover {
  background: var(--c-hover-row);
  border-color: var(--c-blue-400);
  box-shadow: 0 0 0 2px rgba(37,99,235,.10);
}
.messageheaderimages img {
  width: 12px;
  height: 12px;
  opacity: .65;
  transition: opacity .12s;
  vertical-align: middle;
}
.messageheaderimages a:hover img { opacity: 1; }

.forummessagesubjectsecondline {
  font-size: 10px;
  font-weight: 400;
  color: var(--c-muted);
  display: block;
  margin-top: 2px;
}

.forummessageedited {
  font-size: 10px;
  font-weight: 500;
  color: var(--c-muted-light);
  font-style: italic;
}
.forummessageedited br { display: none; }

.forummessageinfopin { float: right; }

/* Signature */
div.forummessagesignature { padding-top: 14px; clear: both; }
span.forummessagesignature {
  display: block;
  border-top: 1px dashed var(--c-border);
  padding-top: 8px;
  font-size: 11px;
  color: var(--c-muted-light);
  overflow: auto;
  font-style: italic;
}

/* Bottom message footer (page nav + category selector) */
.forummessagefooter {
  font-size: 11px;
  font-weight: 500;
  color: var(--c-muted);
  padding: 6px 14px;
  border-top: 1px solid var(--c-border);
  background: var(--c-bg-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
}
.forummessagefooter.forumstats {
  /* pagination + category selector */
  padding: 8px 14px;
}

/* Quick reply */
.leftpanel.leftpanelreply {
  margin-top: 16px;
}
.leftpanel.leftpanelreply .leftpaneltitle {
  font-size: 14px;
  font-weight: 700;
  border-bottom-width: 2px;
  padding-bottom: 8px;
  margin-bottom: 12px;
}
.leftpanelreplytitle { display: none; } /* empty element */
.forumquickreply { text-align: center; padding: 8px 0; }
#quickreplyform { width: 100%; margin: 0; }

/* ═══════════════════════════════════════════════════════════
   FORUM — TOOLS DROPDOWN
   ═══════════════════════════════════════════════════════════ */
.forumtopictools {
  float: right;
  position: relative;
  margin-left: 8px;
  margin-bottom: 8px;
}
.forumtopictools a { color: var(--c-muted); }

.forumtopictoolstitle {
  width: auto;
  margin: 0;
  padding: 6px 12px;
  color: var(--c-muted);
  font-weight: 600;
  font-size: 12px;
  text-align: right;
  z-index: 300 !important;
  cursor: pointer;
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  transition: background .12s, border-color .12s;
  display: inline-block;
}
.forumtopictoolstitle:hover {
  background: var(--c-hover-row);
  border-color: var(--c-blue-600);
  color: var(--c-blue-600);
}

.forumtopictoolsdata {
  position: absolute;
  right: 0;
  top: 100%;
  width: 210px;
  margin-left: 0;
  z-index: 9999 !important;
  visibility: hidden;
  padding-top: 4px;
}
.forumtopictoolsdatabody {
  background: var(--c-surface);
  border: 1px solid var(--c-border-mid);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-md);
  padding: 6px 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
}
/* hide br tags used as separators in the dropdown */
.forumtopictoolsdatabody br { display: none; }
.forumtopictoolsdatabody a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  color: var(--c-text-body);
  transition: background .10s, color .10s;
}
.forumtopictoolsdatabody a:hover {
  background: var(--c-hover-row);
  color: var(--c-blue-600);
}
.forumtopictoolsdatabody img {
  width: 14px;
  height: 14px;
  vertical-align: middle;
  opacity: .75;
  flex-shrink: 0;
}
.forumtopictoolsdatabody input { font-size: 11px; }
.forumtopictoolsfooter { height: 0; padding: 0; }
.forumleftpanelex { }

/* ═══════════════════════════════════════════════════════════
   FORUM — STATS / MISC
   ═══════════════════════════════════════════════════════════ */
.leftpanel.forumstats {
  background: var(--c-bg-subtle);
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  padding: 12px 16px !important;
  margin-top: 16px;
  font-size: 12px;
  line-height: 1.7;
  overflow: hidden;
}

.leftpanel.forumloginpanel {
  background: linear-gradient(135deg, var(--c-bg-subtle) 0%, #eef4ff 100%);
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  padding: 14px 16px !important;
  margin-top: 8px;
  font-size: 13px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.forumloginpanel input[type="text"],
.forumloginpanel input[type="password"] { padding: 5px 8px; font-size: 12px; }

.forummsgs {
  float: none; width: auto; margin: 0; padding: 8px 14px;
  font-size: 13px; font-weight: 700; text-align: center;
  border-bottom: 1px solid var(--c-border);
  background: var(--c-bg-subtle); color: var(--c-text);
}
.forummsgsrow {
  float: none; width: auto; margin: 0;
  font-size: 13px; font-weight: 600; text-align: center;
}
.forummsgsuser, .forummsgsmessages { width: 45%; float: left; }
.forumhomedate { float: left; margin-right: 5px; color: var(--c-muted); font-size: 11px; }
.forumhometopic { margin-bottom: 6px; }

.forumrightpanel img {
  vertical-align: top;
  opacity: .80;
}
.forumunreadprivates { color: #dc2626 !important; font-weight: 700 !important; }
.onlymoderator { border: 1px solid #fca5a5; border-radius: var(--r-sm); background: #fff1f2; }
.forumtopicsdelete { text-align: right; padding-top: 10px; margin-bottom: 10px; }

/* ═══════════════════════════════════════════════════════════
   FORUM — SMILEYS
   ═══════════════════════════════════════════════════════════ */
.forumsmiley { width: 72px; height: 72px; text-align: center; float: left; }
.smileypanel { overflow: auto; }
.forumtopsmileys {
  width: 140px; text-align: center;
  margin: 0 auto; overflow: auto;
  font-size: 9px !important; padding-bottom: 5px;
}
.forumtopsmiley { float: right; margin: 2px; cursor: pointer; width: 20px; height: 20px; }

/* ═══════════════════════════════════════════════════════════
   FORUM — POLLS
   ═══════════════════════════════════════════════════════════ */
.XForumPoll {
  width: 70%; margin: 0 auto 16px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  background: var(--c-bg-subtle);
  padding: 16px;
  box-shadow: var(--shadow-xs);
}
.XForumPoll th {
  border-bottom: 1px solid var(--c-border);
  font-weight: 700;
  text-align: left;
  padding: 6px 4px;
  color: var(--c-text);
  font-size: 13px;
}
.XForumPoll td { font-size: 13px; padding: 4px; }
.XForumPollBar {
  background: linear-gradient(90deg, var(--c-blue-600) 0%, var(--c-blue-400) 100%);
  border: none;
  border-radius: 4px;
  height: 8px;
}
.XForumPollQuestion { white-space: nowrap; }
.XForumPollDoodle td { width: auto !important; text-align: center; }
.XForumPollDoodle th { text-align: left; }
td.XForumPollDoodleOk { background: #22c55e; color: #fff; font-weight: 700; text-align: center; border-radius: 3px; }
td.XForumPollDoodleKo { background: #f87171; text-align: center; border-radius: 3px; }
.XForumPollVotesAllOk { font-weight: 700; }

/* ═══════════════════════════════════════════════════════════
   BBCODE EDITOR
   ═══════════════════════════════════════════════════════════ */
.bbeditor {
  background: var(--c-bg-subtle);
  border: 1px solid var(--c-border-mid);
  border-radius: var(--r-sm);
  padding: 8px;
  margin: 8px 0;
}
.bbeditorbuttonscontainer {
  border-bottom: 1px solid var(--c-border);
  padding-bottom: 6px;
  margin-bottom: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  align-items: flex-start;
}
.bbeditorbuttons {
  display: flex;
  align-items: center;
  gap: 1px;
  flex-wrap: nowrap;
  padding: 2px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-xs);
  background: var(--c-surface);
}
.bbeditorbuttons img {
  cursor: pointer;
  width: 20px;
  height: 20px;
  padding: 2px;
  border-radius: 3px;
  opacity: .65;
  transition: opacity .10s, background .10s;
  display: block;
}
.bbeditorbuttons img:hover {
  opacity: 1;
  background: var(--c-hover-row);
}
.bbeditor textarea {
  width: 100%;
  min-height: 100px;
  border-radius: var(--r-xs);
  font-family: var(--font);
  font-size: 13px;
  resize: vertical;
}
.leftpanelreply textarea { width: 100%; }

/* BBCode color picker popup */
.bbeditorcolors {
  position: fixed;
  z-index: 10001;
  background: var(--c-surface);
  border: 1px solid var(--c-border-mid);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  padding: 12px;
  max-width: 340px;
  display: none;
}
.bbeditorcolors[style*="block"] { display: block; }
.bbeditorcolorbutton {
  display: inline-block;
  width: 18px;
  height: 18px;
  cursor: pointer;
  border-radius: 3px;
  margin: 1px;
  vertical-align: top;
  transition: transform .10s;
}
.bbeditorcolorbutton:hover { transform: scale(1.2); }

/* BBCode highlight/widget picker popups */
.bbeditorhighlight {
  position: fixed;
  z-index: 10001;
  background: var(--c-surface);
  border: 1px solid var(--c-border-mid);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  padding: 10px;
  display: none;
}
.bbeditorhighlight[style*="block"] { display: block; }
.bbeditortextbutton {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-xs);
  cursor: pointer;
  font-size: 11px;
  font-weight: 500;
  margin: 2px;
  color: var(--c-text-body);
  background: var(--c-surface);
  transition: background .10s, border-color .10s;
}
.bbeditortextbutton:hover {
  background: var(--c-hover-row);
  border-color: var(--c-blue-400);
  color: var(--c-blue-600);
}

/* ═══════════════════════════════════════════════════════════
   SHARED ICONS — SVG content swap (Feather-style line icons)
   Replaces PNG icons with crisp inline SVGs. No CSS filter needed.
   ═══════════════════════════════════════════════════════════ */

/* ── Blue accent icons (#2563eb) ─ navigation & actions ──── */
img[src*="base_search"] {
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
  filter: none !important;
}
img[src*="base_subscribe"] {
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9'/%3E%3Cpath d='M13.73 21a2 2 0 0 1-3.46 0'/%3E%3C/svg%3E");
  filter: none !important;
}
img[src*="base_pin"] {
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71'/%3E%3Cpath d='M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71'/%3E%3C/svg%3E");
  filter: none !important;
}
img[src*="base_lock"] {
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2' ry='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E");
  filter: none !important;
}
img[src*="base_quote"] {
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3C/svg%3E");
  filter: none !important;
}
img[src*="base_print"] {
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 6 2 18 2 18 9'/%3E%3Cpath d='M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2'/%3E%3Crect x='6' y='14' width='12' height='8'/%3E%3C/svg%3E");
  filter: none !important;
}
img[src*="base_email"] {
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z'/%3E%3Cpolyline points='22,6 12,13 2,6'/%3E%3C/svg%3E");
  filter: none !important;
}
img[src*="base_arrow"] {
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3Cpolyline points='12 5 19 12 12 19'/%3E%3C/svg%3E");
  filter: none !important;
}
img[src*="forum_lastmsg"] {
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolyline points='12 6 12 12 16 14'/%3E%3C/svg%3E");
  filter: none !important;
}
img[src*="forum_topicsday"] {
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
  filter: none !important;
}
img[src*="forum_moderators"] {
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M23 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E");
  filter: none !important;
}
img[src*="forum_edit"] {
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7'/%3E%3Cpath d='M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z'/%3E%3C/svg%3E");
  filter: none !important;
}
img[src*="forum_quote"] {
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3C/svg%3E");
  filter: none !important;
}
img[src*="forum_multiquote"]:not([src*="forum_multiquoteadded"]) {
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z'/%3E%3C/svg%3E");
  filter: none !important;
}
img[src*="forum_multiquoteadded"] {
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2322c55e' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  filter: none !important;
}
img[src*="forum_categories"] {
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7'/%3E%3Crect x='14' y='3' width='7' height='7'/%3E%3Crect x='14' y='14' width='7' height='7'/%3E%3Crect x='3' y='14' width='7' height='7'/%3E%3C/svg%3E");
  filter: none !important;
}
img[src*="forum_users"] {
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M23 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E");
  filter: none !important;
}
img[src*="forum_viewers"] {
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
  filter: none !important;
}
img[src*="forum_answer"] {
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 10 4 15 9 20'/%3E%3Cpath d='M20 4v7a4 4 0 0 1-4 4H4'/%3E%3C/svg%3E");
  filter: none !important;
}

/* ── Muted icons (#64748b) ─ sidebar profile/social ──────── */
img[src*="forum_profile"] {
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
  filter: none !important;
}
img[src*="forum_friendadd"] {
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='8.5' cy='7' r='4'/%3E%3Cline x1='20' y1='8' x2='20' y2='14'/%3E%3Cline x1='23' y1='11' x2='17' y2='11'/%3E%3C/svg%3E");
  filter: none !important;
}
img[src*="forum_private"] {
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z'/%3E%3Cpolyline points='22,6 12,13 2,6'/%3E%3C/svg%3E");
  filter: none !important;
}
img[src*="forum_email"] {
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M16 8v5a3 3 0 0 0 6 0V12a10 10 0 1 0-3.92 7.94'/%3E%3C/svg%3E");
  filter: none !important;
}
img[src*="forum_blog"] {
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z'/%3E%3C/svg%3E");
  filter: none !important;
}
img[src*="forum_website"] {
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='2' y1='12' x2='22' y2='12'/%3E%3Cpath d='M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z'/%3E%3C/svg%3E");
  filter: none !important;
}

/* ── Navigation icons (#64748b) ─ up/down arrows ─────────── */
img[src*="forum_up"] {
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='18 15 12 9 6 15'/%3E%3C/svg%3E");
  filter: none !important;
}
img[src*="forum_down"] {
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  filter: none !important;
}

/* ── Red destructive icon ────────────────────────────────── */
img[src*="forum_delete"] {
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23dc2626' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='3 6 5 6 21 6'/%3E%3Cpath d='M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2'/%3E%3Cline x1='10' y1='11' x2='10' y2='17'/%3E%3Cline x1='14' y1='11' x2='14' y2='17'/%3E%3C/svg%3E");
  filter: none !important;
}

/* ── Dropdown chevron ────────────────────────────────────── */
img[src*="base_dropdown"] {
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  filter: none !important;
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */
#outro {
  background: var(--c-navy);
  padding: 18px 24px;
  margin: 0;
  width: 100%;
  color: #94a3b8;       /* applies to all text nodes, not just <p> */
  font-size: 12px;
  text-align: center;
  line-height: 1.8;
}
#outro p { margin: 3px 0; }
#outro a { color: var(--c-blue-300); transition: color .12s; }
#outro a:hover { color: #fff; }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — TABLET  (≤ 920px)
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 920px) {
  .bodymain, #bodymain {
    max-width: 100%;
    margin: 6px;
    width: calc(100% - 12px);
    border-radius: var(--r-sm);
  }

  .topbannerframe { max-width: 100%; }

  #topbanner { padding: 0 16px; min-height: 60px; }
  .topbannertitle { font-size: 17px; }
  #logo a { font-size: 17px; }

  #main, .mainex { padding: 16px; }

  #sidebar {
    float: none; width: 100%;
    border-left: none;
    border-top: 1px solid var(--c-border);
  }

  .forumcategorymoderators { display: none; }
  .forumcategoryname, .forumcategorynameheader { flex: 1; }
  .forumcategorylastmessage,
  .forumcategorylastmsg { width: 140px; }

  .forumtopicviews { display: none; }

  /* Stack message columns on tablet */
  .forummessageinfo {
    float: none;
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--c-border);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    text-align: left;
  }
  .forummessageinfo > a:first-child { margin-bottom: 0; }
  .forummessageinfo .forumavatar { margin: 0; }
  .forummessageinfo .forumavatar img { max-width: 40px; border-radius: 50%; }
  .forummessageutils {
    margin-top: 0;
    border-top: none;
    padding-top: 0;
    margin-left: auto;
    flex-wrap: nowrap;
    gap: 3px;
  }
  .forummessagetext { overflow: hidden; width: auto; }

  .XForumPoll { width: 90%; }

  .forumtopictoolstitle { width: auto; margin-left: 0; margin-right: 0; }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE  (≤ 600px)
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 600px) {
  body { font-size: 13px; }

  .topbannerframe { height: auto; min-height: 50px; }

  .bodymain, #bodymain {
    margin: 4px;
    width: calc(100% - 8px);
    border-radius: var(--r-xs);
  }

  #topbanner {
    flex-wrap: wrap;
    padding: 10px 14px;
    min-height: auto;
    gap: 4px;
  }
  .topbannertitle, #logo { flex: none; width: 100%; }
  #languages { width: 100%; text-align: left; }

  #menu { flex-direction: column; align-items: stretch; padding: 2px 0; }
  #menu a {
    margin: 0;
    border-radius: 0;
    padding: 9px 16px;
    border-bottom: 1px solid rgba(255,255,255,.05);
  }

  #main, .mainex { padding: 10px 12px; }

  /* Forum categories */
  .forumcategorytopics, .forumcategorymessages { display: none; }
  .forumcategorylastmessage, .forumcategorylastmsg { width: 120px; font-size: 10px; }
  .forumcategoryheader { border-radius: 0; }
  .forumcategorydesc { padding-left: 14px; }

  /* Forum topics */
  .forumtopicuser { display: none; }
  .forumtopicmessages { width: 40px; }
  .forumtopiclastmsgdate { width: 80px; font-size: 10px; }
  .forumtopicname { white-space: normal; }

  /* Tools dropdown */
  .forumtopictools { float: none; margin: 0 0 10px 0; }
  .forumtopictoolsdata { right: auto; left: 0; width: 220px; }

  /* Messages */
  .forummessageinfo {
    float: none; width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--c-border);
    flex-wrap: wrap;
  }
  .forummessagetext { overflow: hidden; }
  .forummessagefooter { flex-direction: column; align-items: flex-start; }

  .leftpanel.forumloginpanel { display: block; }
  .forumloginpanel input[type="text"],
  .forumloginpanel input[type="password"] { display: block; width: 100%; box-sizing: border-box; margin: 4px 0 8px; }
  .forumloginpanel input[type="submit"] { margin-top: 4px; }

  .leftpanel { width: 100%; }
  .XForumPoll { width: 100%; margin: 0 0 12px; }
  #quickreplyform { width: 100%; }

  .forummsgsuser, .forummsgsmessages { width: 100%; float: none; text-align: left; }

  .bbeditorbuttonscontainer { flex-wrap: wrap; overflow: visible; }

  /* BBEditor answer form */
  .XFormularTable { table-layout: fixed; width: 100%; }
  .XFormularTable td { display: block; width: 100% !important; }
  .XFormularTable input[type="text"] { width: 100%; box-sizing: border-box; }
  .bbeditor { max-width: 100%; box-sizing: border-box; }
  .bbeditor textarea { width: 100%; box-sizing: border-box; }
  .forumtopsmileys { width: 100%; }
}
