/* AURA Community — Stylesheet
   Location: /community/assets/community.css
   Matches the AURA dark theme from contact.html exactly */

:root {
    --bg0: #05060a;
    --bg1: #070a12;
    --panel: rgba(255,255,255,.06);
    --panel2: rgba(255,255,255,.045);
    --stroke: rgba(255,255,255,.12);
    --stroke2: rgba(255,255,255,.08);
    --text: rgba(255,255,255,.92);
    --muted: rgba(255,255,255,.62);
    --muted2: rgba(255,255,255,.45);
    --shadow: 0 18px 60px rgba(0,0,0,.55);
    --radius: 14px;
    --radius2: 20px;
    --glowA: rgba(123,92,255,.35);
    --glowB: rgba(0,209,255,.22);
    --glowC: rgba(114,255,214,.14);
    --grad: linear-gradient(90deg, rgba(123,92,255,.95), rgba(0,209,255,.75));
    --gradSoft: linear-gradient(90deg, rgba(123,92,255,.35), rgba(0,209,255,.22));
    --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    --reaction-resonates: rgba(123,92,255,.85);
    --reaction-awakens:   rgba(0,209,255,.85);
    --reaction-grounds:   rgba(114,255,214,.85);
    --reaction-lucid:     rgba(186,200,255,.85);
    --reaction-luminous:  rgba(255,220,100,.85);
    --reaction-ethereal:  rgba(200,160,255,.85);
}

*, *::before, *::after { box-sizing: border-box; }

html {
    background: var(--bg0);
    height: 100%;
    overflow-x: hidden;
	overscroll-behavior-y: none;
    color-scheme: dark;
}

body {
    margin: 0;
    font-family: var(--font);
    color: var(--text);
    min-height: 100%;
    background:
        radial-gradient(1200px 600px at 65% 25%, var(--glowB), transparent 60%),
        radial-gradient(900px 700px at 25% 55%, var(--glowA), transparent 62%),
        radial-gradient(900px 600px at 55% 110%, var(--glowC), transparent 60%),
        linear-gradient(180deg, var(--bg0), var(--bg1));
    -webkit-font-smoothing: antialiased;
}

a { color: rgba(186,200,255,.95); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Topbar ────────────────────────────────────────────────────────────────── */
.topbar {
    position: sticky; top: 0; z-index: 50;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    background: rgba(0,0,0,.72);
    border-bottom: 1px solid rgba(255,255,255,.08);
    transform: translateZ(0);
}
.nav {
    max-width: 1180px; margin: 0 auto;
    padding: 14px 18px;
    display: flex; align-items: center; gap: 16px;
}
.brand {
    display: flex; align-items: center; gap: 10px;
    font-weight: 650; letter-spacing: .02em; font-size: 15px;
}
.logo {
    width: 36px; height: 36px; border-radius: 50%;
    border: 1px solid rgba(122,220,255,.35);
    background:
        radial-gradient(circle at 30% 25%, rgba(0,209,255,.45), transparent 55%),
        radial-gradient(circle at 70% 65%, rgba(123,92,255,.55), transparent 55%),
        rgba(255,255,255,.06);
    display: grid; place-items: center;
    font-size: 10px; letter-spacing: .14em;
    color: rgba(255,255,255,.85); font-family: var(--mono);
}
.dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(123,92,255,.95); box-shadow: 0 0 14px rgba(123,92,255,.65); }
.nav-spacer { flex: 1; }
.nav-badge {
    padding: 4px 10px; border-radius: 999px;
    background: var(--gradSoft);
    border: 1px solid rgba(123,92,255,.35);
    font-size: 11px; letter-spacing: .08em;
    color: rgba(255,255,255,.75); text-transform: uppercase;
}
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    height: 34px; padding: 0 14px; border-radius: 999px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.04);
    color: rgba(255,255,255,.86); font-size: 13px;
    cursor: pointer; text-decoration: none; white-space: nowrap;
    font-family: var(--font);
    transition: border-color .15s, background .15s;
}
.btn:hover { border-color: rgba(255,255,255,.22); background: rgba(255,255,255,.07); text-decoration: none; }
.btn.primary {
    background: var(--grad); border-color: rgba(180,190,255,.35);
    color: rgba(10,12,20,.95); font-weight: 650;
    box-shadow: 0 8px 30px rgba(123,92,255,.22);
}
.btn.primary:hover { filter: brightness(1.06); }
.btn.sm { height: 28px; padding: 0 10px; font-size: 12px; }
.btn.danger { border-color: rgba(255,100,100,.3); color: rgba(255,150,150,.85); }
.btn.danger:hover { background: rgba(255,80,80,.1); }

/* Compact horizontal category action buttons in the mod table */
.cat-actions-header {
  width: 174px;
  min-width: 174px;
}

.cat-actions-cell {
  padding: 8px 0 8px 6px;
  text-align: right;
  vertical-align: top;
  width: 174px;
  min-width: 174px;
  white-space: nowrap;
}

.cat-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.cat-action-btn {
  width: 54px;
  min-width: 54px;
  height: 24px;
  padding: 0;
  font-size: 11px;
  line-height: 1;
  justify-content: center;
  border-radius: 999px;
}


/* ── Layout ────────────────────────────────────────────────────────────────── */
.wrap { max-width: 860px; margin: 0 auto; padding: 28px 18px 80px; }
.wrap.wide { max-width: 1100px; }

/* ── Card ──────────────────────────────────────────────────────────────────── */
.card {
    background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.04));
    border: 1px solid rgba(255,255,255,.10);
    border-radius: var(--radius2);
    box-shadow: var(--shadow);
    overflow: hidden;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    margin-bottom: 14px;
}
.card-pad { padding: 20px 22px; }
.card-header {
    padding: 16px 22px 14px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.02);
    display: flex; align-items: center; gap: 10px;
}
.card-header h2 { margin: 0; font-size: 18px; font-weight: 600; }
.card-header .spacer { flex: 1; }

/* ── Page hero ─────────────────────────────────────────────────────────────── */
.page-hero {
    padding: 22px 22px 18px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    background:
        radial-gradient(900px 200px at 10% 0%, rgba(123,92,255,.14), transparent 60%),
        radial-gradient(900px 200px at 90% 0%, rgba(0,209,255,.10), transparent 60%),
        rgba(255,255,255,.02);
}
.kicker { text-transform: uppercase; letter-spacing: .22em; font-size: 11px; color: rgba(255,255,255,.45); margin: 0 0 10px; }
.page-hero h1 { margin: 0 0 6px; font-size: 30px; font-weight: 520; letter-spacing: -.02em; }
.page-hero .sub { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }

/* ── Category grid ─────────────────────────────────────────────────────────── */
.cat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 18px; }
@media (max-width: 600px) { .cat-grid { grid-template-columns: 1fr; } }

.cat-card {
    display: block;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.09);
    border-radius: var(--radius);
    padding: 16px 18px;
    text-decoration: none;
    transition: border-color .15s, background .15s;
}
.cat-card:hover { border-color: rgba(123,92,255,.45); background: rgba(123,92,255,.07); text-decoration: none; }


/* Public category cards: unique Cadmium Orange icon badges */
.cat-card .cat-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  line-height: 1;
  color: #fff7e8;
  text-shadow:
    0 1px 0 rgba(0,0,0,.45),
    0 0 14px rgba(255,97,0,.85);
  border-radius: 16px;
  border: 1px solid rgba(255,150,40,.68);
  background:
    radial-gradient(circle at 34% 24%, rgba(255,255,255,.34), transparent 28%),
    linear-gradient(135deg, #ff6100 0%, #ff8c1a 48%, #8f2f00 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.25),
    inset 0 -10px 18px rgba(80,18,0,.28),
    0 0 0 1px rgba(255,97,0,.24),
    0 0 26px rgba(255,97,0,.30),
    0 12px 26px rgba(0,0,0,.25);
}

.cat-card:hover .cat-icon {
  transform: translateY(-1px) scale(1.04);
  border-color: rgba(255,214,120,.92);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.32),
    inset 0 -10px 18px rgba(80,18,0,.22),
    0 0 0 2px rgba(255,97,0,.28),
    0 0 34px rgba(255,97,0,.44),
    0 14px 30px rgba(0,0,0,.30);
}


.cat-card .cat-name { font-size: 15px; font-weight: 600; margin-bottom: 4px; color: var(--text); }
.cat-card .cat-desc { font-size: 13px; color: var(--muted); line-height: 1.45; }


/* ── Thread list ───────────────────────────────────────────────────────────── */
.thread-list { padding: 0; }
.thread-item {
    display: flex; align-items: flex-start; gap: 14px;
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255,255,255,.06);
    transition: background .12s;
}
.thread-item:last-child { border-bottom: none; }
.thread-item:hover { background: rgba(255,255,255,.03); }
.thread-icon { font-size: 18px; opacity: .65; flex-shrink: 0; margin-top: 2px; }
.thread-main { flex: 1; min-width: 0; }
.thread-title {
    font-size: 15px; font-weight: 500; color: var(--text);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    margin-bottom: 4px;
}
.thread-title a { color: inherit; text-decoration: none; }
.thread-title a:hover { color: rgba(186,200,255,.95); }
.thread-meta { font-size: 12px; color: var(--muted2); display: flex; gap: 10px; flex-wrap: wrap; }
.thread-stats { display: flex; gap: 12px; font-size: 12px; color: var(--muted2); flex-shrink: 0; text-align: right; }
.badge-pinned { display: inline-block; padding: 1px 7px; border-radius: 999px; background: rgba(123,92,255,.2); border: 1px solid rgba(123,92,255,.35); font-size: 11px; color: rgba(186,160,255,.9); margin-right: 6px; }
.badge-locked { display: inline-block; padding: 1px 7px; border-radius: 999px; background: rgba(255,200,100,.1); border: 1px solid rgba(255,200,100,.25); font-size: 11px; color: rgba(255,220,140,.8); margin-right: 6px; }

/* ── Thread view ───────────────────────────────────────────────────────────── */
.thread-op {
    padding: 20px 22px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.thread-op .op-title { font-size: 22px; font-weight: 600; margin: 0 0 12px; line-height: 1.3; }
.thread-op .op-body { font-size: 14.5px; line-height: 1.65; color: rgba(255,255,255,.85); white-space: pre-wrap; word-break: break-word; }
.thread-op .op-meta { font-size: 12px; color: var(--muted2); margin-top: 12px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

.post-list { padding: 0; }
.post-item {
    padding: 16px 22px;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.post-item:last-child { border-bottom: none; }
.post-header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.post-author { font-size: 13px; font-weight: 600; color: rgba(186,200,255,.9); }
.post-time { font-size: 12px; color: var(--muted2); }
.post-edited { font-size: 11px; color: var(--muted2); font-style: italic; }
.post-spacer { flex: 1; }
.post-body { font-size: 14px; line-height: 1.65; color: rgba(255,255,255,.82); white-space: pre-wrap; word-break: break-word; }
.post-deleted { font-size: 13px; color: var(--muted2); font-style: italic; }

/* ── Reactions ─────────────────────────────────────────────────────────────── */
.reactions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.reaction-btn {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 3px 10px; border-radius: 999px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.04);
    font-size: 12px; color: var(--muted); cursor: pointer;
    transition: border-color .15s, background .15s, color .15s;
    font-family: var(--font);
}
.reaction-btn:hover { border-color: rgba(255,255,255,.25); color: var(--text); }
.reaction-btn.active-resonates { border-color: var(--reaction-resonates); color: var(--reaction-resonates); background: rgba(123,92,255,.12); }
.reaction-btn.active-awakens   { border-color: var(--reaction-awakens);   color: var(--reaction-awakens);   background: rgba(0,209,255,.10); }
.reaction-btn.active-grounds   { border-color: var(--reaction-grounds);   color: var(--reaction-grounds);   background: rgba(114,255,214,.10); }
.reaction-btn.active-lucid     { border-color: var(--reaction-lucid);     color: var(--reaction-lucid);     background: rgba(186,200,255,.10); }
.reaction-btn.active-luminous  { border-color: var(--reaction-luminous);  color: var(--reaction-luminous);  background: rgba(255,220,100,.10); }
.reaction-btn.active-ethereal  { border-color: var(--reaction-ethereal);  color: var(--reaction-ethereal);  background: rgba(200,160,255,.10); }

/* ── Reply form ────────────────────────────────────────────────────────────── */
.reply-form { padding: 18px 22px; border-top: 1px solid rgba(255,255,255,.08); }
.reply-form textarea {
    width: 100%; min-height: 90px; max-height: 200px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius);
    color: var(--text); font-family: var(--font); font-size: 14px;
    padding: 10px 14px; resize: vertical; outline: none;
    transition: border-color .15s;
}
.reply-form textarea:focus { border-color: rgba(123,92,255,.55); }
.reply-form textarea::placeholder { color: var(--muted2); }
.reply-form .form-footer { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.char-count { font-size: 12px; color: var(--muted2); }
.char-count.warn { color: rgba(255,180,80,.85); }
.char-count.over { color: rgba(255,100,100,.9); }

/* ── Status / flash ────────────────────────────────────────────────────────── */
.flash { padding: 10px 16px; border-radius: var(--radius); margin-bottom: 14px; font-size: 13.5px; }
.flash.ok  { background: rgba(114,255,214,.1); border: 1px solid rgba(114,255,214,.25); color: rgba(114,255,214,.9); }
.flash.err { background: rgba(255,100,100,.08); border: 1px solid rgba(255,100,100,.2); color: rgba(255,150,150,.9); }

/* ── New thread form ───────────────────────────────────────────────────────── */
.new-thread-form { padding: 20px 22px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.field input[type="text"],
.field textarea {
    width: 100%;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius);
    color: var(--text); font-family: var(--font); font-size: 14px;
    padding: 10px 14px; outline: none;
    transition: border-color .15s;
}
.field input[type="text"]:focus,
.field textarea:focus { border-color: rgba(123,92,255,.55); }
.field textarea { min-height: 120px; resize: vertical; }

/* ── Pagination ────────────────────────────────────────────────────────────── */
.pagination { display: flex; gap: 6px; justify-content: center; padding: 20px 0; flex-wrap: wrap; }
.page-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 8px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.04);
    font-size: 13px; color: var(--muted); cursor: pointer;
    transition: border-color .15s, background .15s;
    text-decoration: none;
}
.page-btn:hover { border-color: rgba(255,255,255,.25); color: var(--text); text-decoration: none; }
.page-btn.active { background: var(--gradSoft); border-color: rgba(123,92,255,.4); color: var(--text); }

/* ── Breadcrumb ────────────────────────────────────────────────────────────── */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted2); margin-bottom: 16px; flex-wrap: wrap; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb .sep { opacity: .4; }

/* ── Mod bar ───────────────────────────────────────────────────────────────── */
.mod-bar {
    display: flex; gap: 8px; flex-wrap: wrap;
    padding: 10px 22px;
    border-top: 1px solid rgba(255,255,255,.07);
    background: rgba(255,200,100,.04);
}
.mod-label { font-size: 11px; color: rgba(255,200,100,.6); text-transform: uppercase; letter-spacing: .1em; align-self: center; }

/* ── Mod dashboard ─────────────────────────────────────────────────────────── */
.report-item {
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.report-item:last-child { border-bottom: none; }
.report-meta { font-size: 12px; color: var(--muted2); margin-bottom: 6px; display: flex; gap: 10px; flex-wrap: wrap; }
.report-reason { font-size: 13.5px; margin-bottom: 8px; }
.report-actions { display: flex; gap: 8px; }

/* ── Empty state ───────────────────────────────────────────────────────────── */
.empty { text-align: center; padding: 48px 20px; color: var(--muted2); }
.empty .empty-icon { font-size: 32px; margin-bottom: 12px; opacity: .5; }
.empty p { font-size: 14px; margin: 0; }

/* ── Spinner ───────────────────────────────────────────────────────────────── */
.spinner { display: inline-block; width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.15); border-top-color: rgba(123,92,255,.8); border-radius: 50%; animation: spin .6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Locked notice ─────────────────────────────────────────────────────────── */
.locked-notice {
    padding: 10px 22px;
    background: rgba(255,200,100,.06);
    border-top: 1px solid rgba(255,200,100,.15);
    font-size: 13px; color: rgba(255,220,140,.75);
    display: flex; align-items: center; gap: 8px;
}

/* ── Report modal overlay ──────────────────────────────────────────────────── */
.overlay {
    display: none; position: fixed; inset: 0; z-index: 100;
    background: rgba(0,0,0,.7); backdrop-filter: blur(4px);
    align-items: center; justify-content: center;
}
.overlay.open { display: flex; }
.modal {
    background: linear-gradient(180deg, rgba(20,20,35,.98), rgba(10,10,20,.98));
    border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius2);
    padding: 24px; width: 100%; max-width: 420px; margin: 18px;
    box-shadow: 0 24px 80px rgba(0,0,0,.7);
}
.modal h3 { margin: 0 0 14px; font-size: 17px; }
.modal textarea {
    width: 100%; min-height: 80px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius);
    color: var(--text); font-family: var(--font); font-size: 14px;
    padding: 10px 14px; resize: none; outline: none; margin-bottom: 12px;
}
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; }

/* ── Footer ────────────────────────────────────────────────────────────────── */
.footer {
    max-width: 860px; margin: 0 auto; padding: 0 18px 32px;
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 10px;
    font-size: 12.5px; color: rgba(255,255,255,.35);
    border-top: 1px solid rgba(255,255,255,.06); padding-top: 20px;
}
.footer a { color: rgba(255,255,255,.35); }
.footer a:hover { color: rgba(255,255,255,.6); }
.footlinks { display: flex; gap: 14px; }


/* Forced compact mod category buttons */
.cat-actions-cell .btn,
.cat-actions .btn,
.cat-action-btn {
  width: 44px !important;
  min-width: 44px !important;
  max-width: 44px !important;
  height: 22px !important;
  padding: 0 !important;
  font-size: 10px !important;
  line-height: 1 !important;
  border-radius: 999px !important;
}

.cat-actions-cell .btn.danger:last-child,
.cat-actions .btn.danger:last-child {
  width: 50px !important;
  min-width: 50px !important;
  max-width: 50px !important;
}


/* Eye-catching Cadmium Orange category icon inputs */
.cat-icon-input {
  width: 62px !important;
  min-width: 62px !important;
  height: 44px !important;
  padding: 0 !important;
  text-align: center !important;
  font-size: 21px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  color: #fff7e8 !important;
  text-shadow:
    0 1px 0 rgba(0,0,0,.45),
    0 0 12px rgba(255,97,0,.75) !important;
  border-radius: 14px !important;
  border: 1px solid rgba(255,150,40,.62) !important;
  background:
    radial-gradient(circle at 34% 24%, rgba(255,255,255,.34), transparent 28%),
    linear-gradient(135deg, #ff6100 0%, #ff8c1a 48%, #8f2f00 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.25),
    inset 0 -10px 18px rgba(80,18,0,.28),
    0 0 0 1px rgba(255,97,0,.22),
    0 0 20px rgba(255,97,0,.24),
    0 10px 24px rgba(0,0,0,.24) !important;
  outline: none !important;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, filter .16s ease;
}

.cat-icon-input:hover {
  transform: translateY(-1px) scale(1.02);
  filter: brightness(1.08) saturate(1.08);
  border-color: rgba(255,190,80,.9) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.32),
    inset 0 -10px 18px rgba(80,18,0,.22),
    0 0 0 2px rgba(255,97,0,.26),
    0 0 30px rgba(255,97,0,.38),
    0 12px 28px rgba(0,0,0,.28) !important;
}

.cat-icon-input:focus {
  border-color: rgba(255,214,120,.95) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.34),
    inset 0 -10px 18px rgba(80,18,0,.20),
    0 0 0 3px rgba(255,97,0,.28),
    0 0 34px rgba(255,97,0,.46),
    0 12px 30px rgba(0,0,0,.30) !important;
}

.cat-icon-input-new {
  width: 78px !important;
}


/* Single category and thread icon badges */
.category-hero-icon,
.thread-icon-badge,
.empty-icon-badge,
.crumb-cat-icon,
.thread-category-pill-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff7e8;
  text-shadow:
    0 1px 0 rgba(0,0,0,.45),
    0 0 14px rgba(255,97,0,.85);
  border: 1px solid rgba(255,150,40,.68);
  background:
    radial-gradient(circle at 34% 24%, rgba(255,255,255,.34), transparent 28%),
    linear-gradient(135deg, #ff6100 0%, #ff8c1a 48%, #8f2f00 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.25),
    inset 0 -10px 18px rgba(80,18,0,.28),
    0 0 0 1px rgba(255,97,0,.24),
    0 0 22px rgba(255,97,0,.28),
    0 10px 24px rgba(0,0,0,.22);
}

.category-hero-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  font-size: 24px;
  flex-shrink: 0;
  margin-right: 10px;
}

.thread-icon-badge {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.empty-icon-badge {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  font-size: 28px;
  margin: 0 auto 12px;
}

#catLink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.crumb-cat-icon {
  width: 22px;
  height: 22px;
  border-radius: 8px;
  font-size: 12px;
  vertical-align: middle;
}

.thread-category-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  margin-bottom: 10px;
  padding: 6px 12px 6px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .02em;
}

.thread-category-pill-icon {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  font-size: 14px;
}

/* override older simple icon styles */
.thread-icon { opacity: 1; font-size: inherit; }
.empty .empty-icon { opacity: 1; font-size: inherit; margin-bottom: 12px; }



/* Mobile responsiveness patch */
@media (max-width: 760px) {
  html, body {
    overflow-x: hidden;
  }

  body {
    font-size: 15px;
  }

  .wrap {
    width: 100%;
    max-width: 100%;
    padding: 14px;
  }

  .topbar {
    position: relative;
  }

  .nav {
    min-height: auto;
    padding: 12px 14px;
    gap: 8px;
    flex-wrap: wrap;
  }

  .brand {
    min-width: 0;
    flex: 1 1 100%;
  }

  .brand .logo,
  .logo {
    font-size: 11px;
    letter-spacing: .28em;
  }

  .nav .btn,
  .nav a.btn {
    height: 30px;
    font-size: 12px;
    padding: 0 10px;
  }

  .nav-spacer {
    display: none;
  }

  h1 {
    font-size: 32px;
    line-height: 1.08;
  }

  h2 {
    font-size: 22px;
    line-height: 1.15;
  }

  .hero,
  .card {
    border-radius: 22px;
  }

  .hero {
    padding: 24px 18px;
  }

  .hero p {
    font-size: 16px;
    line-height: 1.45;
  }

  .card-header {
    padding: 16px;
    gap: 10px;
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .card-header .spacer {
    display: none;
  }

  .card-header #newThreadBtn,
  #newThreadBtn {
    width: 100%;
  }

  #newThreadBtn .btn {
    width: 100%;
    justify-content: center;
    height: 42px;
    font-size: 15px;
  }

  .cat-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px;
  }

  .cat-card {
    min-height: auto;
    padding: 18px;
    border-radius: 18px;
  }

  .cat-card .cat-icon {
    width: 46px;
    height: 46px;
    font-size: 24px;
    margin-bottom: 12px;
  }

  .cat-card .cat-name {
    font-size: 18px;
  }

  .cat-card .cat-desc {
    font-size: 15px;
  }

  .breadcrumb {
    font-size: 14px;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }

  .category-hero-icon {
    width: 42px;
    height: 42px;
    font-size: 22px;
    margin-right: 6px;
  }

  .thread-list {
    padding: 0;
  }

  .thread-item {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 10px;
    padding: 14px;
    align-items: start;
  }

  .thread-icon-badge,
  .thread-icon {
    width: 38px;
    height: 38px;
    font-size: 19px;
    margin-top: 0;
  }

  .thread-main {
    min-width: 0;
  }

  .thread-title {
    font-size: 16px;
    line-height: 1.3;
  }

  .thread-title a {
    overflow-wrap: anywhere;
  }

  .thread-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    font-size: 12px;
  }

  .thread-stats {
    grid-column: 2;
    justify-self: start;
    display: flex;
    flex-direction: row;
    gap: 10px;
    font-size: 12px;
    text-align: left;
  }

  .thread-item > div[style*="display:flex"] {
    grid-column: 1 / -1;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-top: 6px;
  }

  .thread-op {
    padding: 16px;
  }

  .op-title {
    font-size: 24px;
    line-height: 1.18;
    overflow-wrap: anywhere;
  }

  .op-body,
  .post-body {
    font-size: 15px;
    line-height: 1.55;
    overflow-wrap: anywhere;
  }

  .op-meta,
  .post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .op-meta .btn,
  .post-meta .btn,
  .mod-bar .btn {
    height: 30px;
    font-size: 12px;
    padding: 0 10px;
  }

  .mod-bar {
    flex-wrap: wrap;
    gap: 6px;
  }

  .post {
    padding: 16px;
  }

  .reply-box,
  .new-thread-form {
    padding: 16px;
  }

  textarea,
  input,
  select {
    max-width: 100%;
    font-size: 16px;
  }

  .field input,
  .field textarea,
  .field select,
  .new-thread-form input,
  .new-thread-form textarea {
    width: 100%;
  }

  .modal {
    width: calc(100vw - 28px);
    max-width: calc(100vw - 28px);
    border-radius: 20px;
    padding: 16px;
  }

  .modal-actions {
    flex-direction: column-reverse;
  }

  .modal-actions .btn {
    width: 100%;
    justify-content: center;
    height: 40px;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 22px 4px;
  }

  .footlinks {
    flex-wrap: wrap;
  }

  /* Mod page: keep admin tools usable on phones */
  #categoryForm,
  .category-form,
  form {
    max-width: 100%;
  }

  #categoryForm {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  #categoryForm input,
  #categoryForm button {
    width: 100% !important;
  }

  #addCategoryBtn {
    height: 42px !important;
    font-size: 15px !important;
  }

  /* Turn wide category admin table into horizontal scroll instead of breaking layout */
  .card:has(table) {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  table {
    min-width: 780px;
  }

  .cat-actions-cell {
    width: 146px !important;
    min-width: 146px !important;
    max-width: 146px !important;
  }

  .cat-icon-input {
    width: 54px !important;
    min-width: 54px !important;
    height: 40px !important;
    font-size: 19px !important;
  }

  .pagination {
    flex-wrap: wrap;
    justify-content: center;
  }

  .page-btn {
    min-width: 34px;
    height: 34px;
  }
}

@media (max-width: 420px) {
  .wrap {
    padding: 10px;
  }

  h1 {
    font-size: 28px;
  }

  .hero {
    padding: 22px 16px;
  }

  .card-header {
    padding: 14px;
  }

  .cat-card {
    padding: 16px;
  }

  .cat-card .cat-icon {
    width: 44px;
    height: 44px;
    font-size: 23px;
  }

  .thread-item {
    grid-template-columns: 38px 1fr;
    padding: 12px;
  }

  .thread-icon-badge,
  .thread-icon {
    width: 34px;
    height: 34px;
    font-size: 18px;
  }

  .op-title {
    font-size: 21px;
  }

  .btn {
    max-width: 100%;
  }

  .reactions {
    gap: 5px;
  }

  .reaction-btn {
    font-size: 11px;
    padding: 6px 8px;
  }
}
