:root {
  --brand: #17365d;
  --brand-deep: #0c2440;
  --brand-soft: #eaf0f7;
  --gold: #c6a04b;
  --gold-soft: #f8f1df;
  --wine: #6f2232;
  --ink: #172033;
  --muted: #69778b;
  --line: #e2e8f0;
  --soft: #f4f6f9;
  --paper: #ffffff;
  --danger: #b42318;
  --good: #087443;
  --shadow: 0 14px 42px rgba(23, 54, 93, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 0%, rgba(198, 160, 75, 0.10), transparent 28rem),
    radial-gradient(circle at 100% 15%, rgba(23, 54, 93, 0.08), transparent 35rem),
    var(--soft);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

.hidden {
  display: none !important;
}

.top {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
}

.platformHeader .platformHeaderInner {
  max-width: 1484px;
}

.actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.btn {
  min-height: 40px;
  color: #26364c;
  background: linear-gradient(135deg, #ffffff 0%, #eef3f8 100%);
  border: 1px solid #d7e0ea;
  border-radius: 11px;
  padding: 9px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-weight: 780;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 7px 18px rgba(23, 54, 93, 0.08);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), #244f80);
  box-shadow: 0 8px 18px rgba(23, 54, 93, 0.18);
}

.btn.ghost {
  color: #31445e;
  background: linear-gradient(135deg, #f7fafc 0%, #e8eef5 100%);
  border-color: #dce5ee;
}

.btn.outline {
  color: #26364c;
  background: linear-gradient(135deg, #ffffff 0%, #f3f6fa 100%);
  border-color: #d3dce7;
}

.btn.gold {
  color: #2a2a24;
  background: linear-gradient(135deg, #d7b761, var(--gold));
}

.btn.wide {
  width: 100%;
  margin-top: 12px;
}

.userChip {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 7px 10px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 850;
  background: var(--brand-soft);
  border-radius: 999px;
}

.communityShell {
  width: min(1440px, calc(100% - 32px));
  margin: 18px auto 42px;
}

.eyebrow {
  display: inline-block;
  color: var(--gold);
  font-size: 10px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eventTicker {
  min-height: 96px;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 205px minmax(0, 1fr);
  align-items: stretch;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 18% 10%, rgba(225, 190, 96, 0.2), transparent 28%),
    radial-gradient(circle at 84% 115%, rgba(129, 41, 62, 0.42), transparent 34%),
    linear-gradient(118deg, #071d35 0%, #123c67 48%, #70283a 115%);
  border: 1px solid rgba(235, 211, 145, 0.22);
  border-radius: 22px;
  box-shadow:
    0 20px 52px rgba(10, 31, 56, 0.2),
    0 4px 14px rgba(10, 31, 56, 0.1);
}

.eventTicker::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 360px;
  height: 360px;
  right: 12%;
  top: -250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 213, 137, 0.26), rgba(240, 213, 137, 0) 68%);
  filter: blur(2px);
  pointer-events: none;
  animation: tickerAurora 11s ease-in-out infinite alternate;
}

.eventTicker::after {
  content: "";
  position: absolute;
  z-index: 6;
  left: 12%;
  right: 12%;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(242, 218, 151, 0.68), transparent);
  opacity: 0.75;
  pointer-events: none;
  animation: tickerShimmer 7s ease-in-out infinite;
}

@keyframes tickerAurora {
  from {
    transform: translate3d(-55px, -10px, 0) scale(0.95);
    opacity: 0.58;
  }
  to {
    transform: translate3d(95px, 34px, 0) scale(1.12);
    opacity: 1;
  }
}

@keyframes tickerShimmer {
  0%,
  100% {
    transform: translateX(-24%);
    opacity: 0.25;
  }
  50% {
    transform: translateX(24%);
    opacity: 0.9;
  }
}

.tickerHeading {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 16px 20px;
  background:
    linear-gradient(90deg, rgba(4, 20, 38, 0.82), rgba(6, 29, 52, 0.56));
  border-right: 1px solid rgba(236, 212, 146, 0.16);
  box-shadow: 12px 0 30px rgba(3, 18, 34, 0.16);
  backdrop-filter: blur(14px);
}

.tickerHeading::after {
  content: "";
  position: absolute;
  top: 18px;
  bottom: 18px;
  right: -1px;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, transparent, rgba(226, 193, 105, 0.82), transparent);
}

.tickerHeading .eyebrow {
  color: #ead085;
  letter-spacing: 0.15em;
}

.tickerHeading strong {
  display: block;
  margin-top: 4px;
  font-size: 15px;
  letter-spacing: 0.01em;
}

.tickerIcon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #2c210b;
  background:
    linear-gradient(145deg, #fff0b8 0%, #d7b35a 58%, #a77e25 100%);
  border: 1px solid rgba(255, 247, 214, 0.58);
  border-radius: 50%;
  box-shadow:
    0 0 0 6px rgba(211, 172, 72, 0.09),
    0 7px 18px rgba(0, 0, 0, 0.18);
  animation: tickerSpark 4.6s ease-in-out infinite;
}

@keyframes tickerSpark {
  0%,
  100% {
    transform: scale(1);
    box-shadow:
      0 0 0 6px rgba(211, 172, 72, 0.09),
      0 7px 18px rgba(0, 0, 0, 0.18);
  }
  50% {
    transform: scale(1.045);
    box-shadow:
      0 0 0 9px rgba(211, 172, 72, 0.045),
      0 8px 24px rgba(0, 0, 0, 0.2);
  }
}

.tickerViewport {
  min-width: 0;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  scrollbar-width: none;
}

.tickerViewport::-webkit-scrollbar {
  display: none;
}

.tickerViewport::before,
.tickerViewport::after {
  content: "";
  position: absolute;
  z-index: 3;
  top: 0;
  bottom: 0;
  width: 68px;
  pointer-events: none;
}

.tickerViewport::before {
  left: 0;
  background: linear-gradient(90deg, rgba(12, 40, 68, 0.98) 0%, rgba(12, 40, 68, 0.68) 34%, transparent 100%);
}

.tickerViewport::after {
  right: 0;
  background: linear-gradient(-90deg, rgba(89, 36, 55, 0.96) 0%, rgba(89, 36, 55, 0.58) 36%, transparent 100%);
}

.eventTrack {
  display: flex;
  align-items: stretch;
  width: max-content;
  min-width: 100%;
  padding: 13px 0;
  will-change: transform;
}

.eventLoopGroup {
  display: flex;
  gap: 12px;
  flex: 0 0 auto;
  padding: 0 54px;
}

.tickerArrow {
  position: absolute;
  z-index: 5;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  align-self: center;
  padding: 0 0 2px;
  color: #fff7dc;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(3, 21, 39, 0.7));
  border: 1px solid rgba(239, 215, 151, 0.34);
  border-radius: 50%;
  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.23),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.tickerArrow:hover {
  transform: translateY(-50%) scale(1.08);
  background:
    linear-gradient(145deg, rgba(226, 190, 94, 0.3), rgba(4, 26, 48, 0.86));
  border-color: rgba(239, 215, 151, 0.66);
  box-shadow:
    0 9px 26px rgba(0, 0, 0, 0.28),
    0 0 0 4px rgba(218, 180, 82, 0.08);
}

.tickerArrow:active {
  transform: translateY(-50%) scale(0.96);
}

.tickerArrowPrev {
  left: 12px;
}

.tickerArrowNext {
  right: 12px;
}

.eventCard {
  width: 278px;
  min-height: 68px;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  padding: 10px 13px;
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.055));
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 15px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 8px 24px rgba(2, 18, 34, 0.12);
  backdrop-filter: blur(14px);
  transition:
    transform 190ms ease,
    background 190ms ease,
    border-color 190ms ease,
    box-shadow 190ms ease;
}

.eventCard::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(226, 192, 101, 0.64), transparent);
  opacity: 0;
  transform: scaleX(0.55);
  transition:
    opacity 190ms ease,
    transform 190ms ease;
}

.eventCard:hover {
  transform: translateY(-2px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.085));
  border-color: rgba(239, 217, 158, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 11px 28px rgba(1, 15, 29, 0.2);
}

.eventCard:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.eventDate {
  min-height: 48px;
  display: grid;
  place-items: center;
  align-content: center;
  color: #2e230c;
  background:
    linear-gradient(145deg, #f6dfa0 0%, #d3ad50 62%, #aa7e28 100%);
  border: 1px solid rgba(255, 245, 210, 0.48);
  border-radius: 12px;
  box-shadow:
    0 7px 16px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.38);
  line-height: 1;
}

.eventDate strong {
  font-size: 19px;
  font-weight: 900;
}

.eventDate span {
  margin-top: 3px;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eventCardTitle {
  overflow: hidden;
  font-size: 12.5px;
  font-weight: 850;
  letter-spacing: 0.005em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.eventCardMeta {
  margin-top: 4px;
  overflow: hidden;
  color: rgba(226, 236, 247, 0.82);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tickerEmpty {
  padding: 0 30px;
  color: #d8e2ef;
  font-size: 13px;
}

.importantBlock {
  margin-top: 15px;
  padding: 18px 20px;
  background:
    linear-gradient(120deg, rgba(198, 160, 75, 0.07), transparent 52%),
    #fff;
  border: 1px solid #eadcb6;
  border-radius: 17px;
  box-shadow: var(--shadow);
  animation: fadeUp 360ms ease both;
}

.importantHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.importantHeader h2 {
  margin: 2px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
}

.importantPulse {
  width: 10px;
  height: 10px;
  background: var(--wine);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(111, 34, 50, 0.35);
  animation: pulse 2.3s ease-out infinite;
}

@keyframes pulse {
  65% {
    box-shadow: 0 0 0 9px rgba(111, 34, 50, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(111, 34, 50, 0);
  }
}

.importantPost {
  padding: 11px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  border-top: 1px solid #f0e7cf;
  cursor: pointer;
}

.importantPost:first-child {
  border-top: 0;
}

.importantPost strong {
  font-size: 14px;
}

.forumLayout {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 286px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.forumSidebar {
  display: grid;
  gap: 14px;
  position: sticky;
  top: 146px;
}

.sidePanel,
.forumMain {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.sidePanel {
  padding: 15px;
}

.sideTitle {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 11px;
}

.sideTitle h2 {
  margin: 0;
  font-size: 14px;
}

.sideTitle p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.sideTitleIcon {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  color: var(--brand);
  background: var(--brand-soft);
  border-radius: 9px;
  font-weight: 900;
}

.lockIcon {
  color: #7a5e17;
  background: var(--gold-soft);
}

.categoryButtons {
  display: grid;
  gap: 5px;
}

.categorySectionLabel {
  margin: 9px 2px 2px;
  padding-top: 9px;
  color: #8b6a1d;
  border-top: 1px solid #e7ebf0;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.privateCategory {
  display: grid;
  gap: 4px;
}

.privateCategoryButton {
  justify-content: space-between;
}

.privateCategoryButton::before {
  background: #d8be69;
}

.privateCategoryButton.expanded {
  color: var(--brand);
  border-color: #cfdbe7;
  background: linear-gradient(135deg, #ffffff, #edf3f8);
}

.categoryChevron {
  margin-left: auto;
  color: #8b6a1d;
  font-size: 16px;
  line-height: 1;
  font-weight: 800;
}

.categorySubmenu {
  display: grid;
  gap: 3px;
  margin: 0 0 3px 10px;
  padding: 3px 0 3px 8px;
  border-left: 2px solid #eadba9;
}

.categorySubmenu .orgForum,
.categorySubmenu .filaForum {
  box-shadow: none;
}

.categoryButton {
  width: 100%;
  min-height: 39px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #3b4a5f;
  background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(239,244,249,.96));
  border: 1px solid #e1e8f0;
  border-radius: 9px;
  font-weight: 720;
  text-align: left;
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease, transform 150ms ease;
}

.categoryButton::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  background: #c8d3df;
  border-radius: 50%;
}

.categoryButton:hover {
  color: var(--brand);
  background: linear-gradient(135deg, #ffffff 0%, #eaf1f7 100%);
  border-color: #cfdae6;
  transform: translateX(2px);
}

.categoryButton.active {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), #264f7c);
}

.categoryButton.active::before {
  background: #e5c979;
}

.privateForumTree {
  display: grid;
  gap: 9px;
}

.forumGroup {
  padding-top: 9px;
  border-top: 1px solid #edf0f4;
}

.forumGroup:first-child {
  padding-top: 0;
  border-top: 0;
}

.forumGroupTitle {
  margin-bottom: 6px;
  color: #8b6a1d;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.orgForum,
.filaForum {
  width: 100%;
  border: 1px solid #e2e9f0;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(241,245,249,.96));
  display: flex;
  align-items: center;
  gap: 7px;
  color: #405066;
  cursor: pointer;
  text-align: left;
  box-shadow: 0 4px 12px rgba(23, 54, 93, 0.045);
  transition: background 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.privateAccessJoin {
  width: 100%;
  border: 0;
  padding: 7px 9px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.privateAccessJoin:hover {
  text-decoration: underline;
}

.organizationForumBlock {
  display: grid;
  gap: 3px;
}

.organizationForumRow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px;
}

.organizationPublicLink {
  width: 28px;
  height: 28px;
  border: 1px solid #d7e0e9;
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  background: #fff;
  color: var(--brand);
  text-decoration: none;
  font-size: 13px;
  box-shadow: 0 4px 10px rgba(23, 54, 93, .05);
}

.organizationPublicLink:hover {
  border-color: #b9cadb;
  background: #eef4f9;
  transform: translateY(-1px);
}

.childOrganizationForumRow .organizationPublicLink {
  width: 25px;
  height: 25px;
  font-size: 11px;
}

.orgForum {
  min-height: 35px;
  padding: 6px 7px;
  font-size: 12px;
  font-weight: 800;
}

.filaForum {
  min-height: 30px;
  padding: 5px 7px 5px 25px;
  font-size: 11px;
  font-weight: 650;
}

.orgForum:hover,
.filaForum:hover {
  color: var(--brand);
  background: linear-gradient(135deg, #ffffff, #eaf1f7);
  border-color: #cfdbe7;
  transform: translateX(2px);
}

.orgForum.active,
.filaForum.active {
  color: #fff;
  background: linear-gradient(135deg, var(--brand-deep), var(--brand) 62%, #315f89);
  border-color: rgba(23, 54, 93, .68);
  box-shadow: 0 7px 16px rgba(23, 54, 93, .14);
}

.forumLock {
  margin-left: auto;
  padding: 2px 6px;
  flex: 0 0 auto;
  white-space: nowrap;
  color: #7a8798;
  background: #eef2f6;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
}

.forumOpen {
  margin-left: auto;
  color: var(--good);
  font-size: 9px;
  font-weight: 900;
}

.filaList {
  display: grid;
  gap: 2px;
}

.privateAccessResult {
  margin-top: 9px;
  padding: 8px 9px;
  color: #795d17;
  background: #fff8e7;
  border-radius: 8px;
  font-size: 11px;
  line-height: 1.4;
}

.professionalCompact .small {
  line-height: 1.45;
}

.forumMain {
  min-width: 0;
  padding: 21px;
  animation: fadeUp 320ms ease both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.feedHeader {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--line);
}

.feedHeader h1 {
  margin: 3px 0 4px;
  color: #172b45;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1;
}

.feedHeader p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.feedActions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.searchBox {
  min-width: 245px;
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  background: #f7f9fb;
  border: 1px solid #dbe3ec;
  border-radius: 11px;
}

.searchBox span {
  color: #8390a1;
  font-size: 18px;
}

.searchBox input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
}

.activeFilter {
  margin: 13px 0 3px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px 6px 11px;
  color: var(--brand);
  background: var(--brand-soft);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.activeFilter button {
  width: 22px;
  height: 22px;
  border: 1px solid rgba(23, 54, 93, 0.12);
  color: var(--brand);
  background: linear-gradient(135deg, #ffffff, #e8eef5);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(23, 54, 93, 0.08);
}

.threadList {
  margin-top: 7px;
}

.thread {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  padding: 15px 8px;
  border-bottom: 1px solid #e8edf2;
  cursor: pointer;
  transition: background 140ms ease, padding 140ms ease;
}

.thread::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  bottom: 13px;
  width: 3px;
  background: transparent;
  border-radius: 4px;
  transition: background 140ms ease;
}

.thread:hover {
  padding-left: 13px;
  background: linear-gradient(90deg, #f7f9fc, transparent);
}

.thread:hover::before {
  background: var(--gold);
}

.thread.unread {
  padding-left: 14px;
  background: linear-gradient(90deg, rgba(111, 34, 50, 0.08), rgba(246, 193, 67, 0.035) 58%, transparent);
}

.thread.unread::before {
  width: 4px;
  background: #6f2232;
}

.thread.unread h3 {
  color: #172033;
  font-weight: 900;
}

.unreadDot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-left: 6px;
  vertical-align: 1px;
  border-radius: 50%;
  background: #6f2232;
  box-shadow: 0 0 0 3px rgba(111, 34, 50, 0.11);
}

.threadTitleRow {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.thread h3 {
  margin: 4px 0 5px;
  color: #20344f;
  font-size: 15px;
  line-height: 1.3;
}

.threadMeta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  color: #7a8798;
  font-size: 10px;
}

.threadStats {
  min-width: 66px;
  display: grid;
  align-content: center;
  justify-items: end;
  color: #79879a;
  font-size: 10px;
}

.threadStats strong {
  color: #35465d;
  font-size: 15px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 2px 7px;
  color: #425a77;
  background: #eef3f8;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 850;
}

.pill.private {
  color: #7a5a14;
  background: #faf1d8;
}

.pill.important {
  color: #fff;
  background: var(--wine);
}

.notice {
  margin-bottom: 14px;
  padding: 12px 14px;
  color: #765c14;
  background: #fff8e6;
  border: 1px solid #f0dca3;
  border-radius: 11px;
  font-size: 12px;
  line-height: 1.5;
}

.empty {
  padding: 42px 16px;
  color: #7b8798;
  text-align: center;
}

.modalOverlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(7, 18, 31, 0.62);
  backdrop-filter: blur(5px);
}

.modal {
  position: relative;
  width: min(780px, 100%);
  max-height: 92vh;
  overflow: auto;
  padding: 28px;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 20px;
  box-shadow: 0 28px 80px rgba(7, 18, 31, 0.32);
  animation: modalIn 170ms ease-out both;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.smallModal {
  width: min(560px, 100%);
}

.threadModal {
  width: min(860px, 100%);
}

.close {
  position: absolute;
  right: 15px;
  top: 14px;
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border: 1px solid #d8e1eb;
  color: #445369;
  background: linear-gradient(135deg, #ffffff, #e7edf4);
  border-radius: 50%;
  box-shadow: 0 6px 14px rgba(23, 54, 93, 0.10);
  font-size: 21px;
  cursor: pointer;
}

.modal h2 {
  margin: 0 42px 6px 0;
  color: #1d3049;
}

.opBody {
  margin: 19px 0;
  padding: 18px;
  color: #33455c;
  white-space: pre-wrap;
  line-height: 1.72;
  background: #f8fafc;
  border-left: 3px solid var(--gold);
  border-radius: 0 12px 12px 0;
}

.responsesHeader {
  margin-top: 22px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.responsesHeader h3 {
  margin: 0;
}

.response {
  padding: 14px 3px;
  border-bottom: 1px solid #e9edf2;
}

.response .bodyText {
  margin-top: 5px;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
}

.field.full {
  grid-column: 1/-1;
}

.field label {
  display: block;
  margin-bottom: 5px;
  color: #536174;
  font-size: 11px;
  font-weight: 850;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 10px 11px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #ccd7e3;
  border-radius: 10px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid rgba(23, 54, 93, 0.12);
  border-color: #91a8c2;
}

.field textarea {
  min-height: 108px;
  resize: vertical;
}

.services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.services label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  font-size: 12px;
}

.services input {
  width: 16px;
  height: 16px;
  margin: 1px 0;
}

.proCategoryGroup {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.proCategoryGroup > strong {
  grid-column: 1 / -1;
  margin-top: 6px;
  font-size: 13px;
}

.importantCheck {
  margin-top: 12px;
  padding: 10px 11px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #6d2432;
  background: #fbf2f4;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 800;
}

.formActions {
  margin-top: 18px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.small,
.meta {
  color: #758399;
  font-size: 11px;
  line-height: 1.5;
}

.bodyText {
  color: #3c4b60;
  white-space: pre-wrap;
  line-height: 1.65;
}

.result {
  margin-top: 12px;
  font-size: 12px;
}

/* Alta directa desde la ventana de acceso. */
.loginRegister {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #e5eaf0;
}

.loginRegister .btn {
  width: 100%;
}

.error {
  color: var(--danger);
}

.success {
  color: var(--good);
}

.summaryRow {
  margin: 7px 0;
  padding: 9px;
  background: #f6f8fb;
  border-radius: 9px;
}

.summaryRow strong {
  display: block;
  color: #718096;
  font-size: 9px;
  text-transform: uppercase;
}

.messageMine,
.messageOther {
  margin: 9px 0;
  padding: 11px 13px;
  border-radius: 12px;
}

.messageMine {
  margin-left: 9%;
  background: #eaf2fb;
}

.messageOther {
  margin-right: 9%;
  background: #f6f7f9;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 980px) {
  .forumLayout {
    grid-template-columns: 240px minmax(0, 1fr);
  }

  .feedHeader {
    align-items: flex-start;
    flex-direction: column;
  }

  .feedActions {
    width: 100%;
    justify-content: stretch;
  }

  .searchBox {
    flex: 1;
  }
}

@media (max-width: 760px) {
  .communityShell {
    width: min(100% - 20px, 1440px);
    margin-top: 10px;
  }

  .eventTicker {
    grid-template-columns: 1fr;
  }

  .tickerHeading {
    min-height: 58px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .forumLayout {
    grid-template-columns: 1fr;
  }

  .forumSidebar {
    position: static;
  }

  .categoriesPanel {
    order: 1;
  }

  .privateForumsPanel {
    order: 2;
  }

  .categoryButtons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .forumMain {
    padding: 16px;
  }

  .searchBox {
    min-width: 0;
    width: 100%;
  }

  .feedActions {
    flex-direction: column;
    align-items: stretch;
  }

  .thread {
    grid-template-columns: 1fr;
  }

  .threadStats {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
  }

  .grid,
  .services,
  .proCategoryGroup {
    grid-template-columns: 1fr;
  }

  .field.full {
    grid-column: auto;
  }

  .modalOverlay {
    padding: 10px;
  }

  .modal {
    padding: 22px 17px;
    border-radius: 16px;
  }

  .messageMine,
  .messageOther {
    margin-left: 0;
    margin-right: 0;
  }
}


.eventLock {
  margin-left: 6px;
  color: #e7cd82;
  font-size: 10px;
  vertical-align: middle;
}

.notificationCluster {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.notificationButton {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 7px 10px;
  color: #40516a;
  background: transparent;
  border: 1px solid #d6e0ea;
  border-radius: 10px;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.notificationButton:hover {
  color: var(--brand);
  background: #f3f7fb;
  border-color: #becddd;
}

.notificationBadge {
  display: inline-grid;
  place-items: center;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  color: #fff;
  background: var(--wine);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.notificationPanel {
  position: absolute;
  z-index: 80;
  top: calc(100% + 8px);
  right: 0;
  width: min(390px, calc(100vw - 32px));
  padding: 12px;
  background: #fff;
  border: 1px solid #d6e0ea;
  border-radius: 12px;
  box-shadow: 0 16px 38px rgba(23, 54, 93, 0.18);
}

.notificationPanel > strong {
  display: block;
  margin-bottom: 8px;
  color: var(--brand-deep);
  font-size: 13px;
}

.notificationMentionList {
  display: grid;
  gap: 6px;
}

.notificationMention {
  display: grid;
  gap: 3px;
  width: 100%;
  padding: 9px 10px;
  text-align: left;
  color: #34445a;
  background: #f7f9fc;
  border: 1px solid #e0e7ef;
  border-radius: 9px;
  cursor: pointer;
}

.notificationMention:hover {
  background: #eef4f9;
  border-color: #c8d5e2;
}

.notificationMentionText {
  font-size: 12px;
  line-height: 1.35;
}

.notificationMentionDate {
  color: var(--muted);
  font-size: 10px;
}

.notificationEmpty {
  padding: 9px 4px;
  color: var(--muted);
  font-size: 12px;
}

.sessionGroup {
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  background: #f4f7fa;
  border: 1px solid #d6e0ea;
  border-radius: 999px;
}

.sessionGroup .userChip {
  max-width: 150px;
  padding: 7px 10px 7px 12px;
  color: var(--brand);
  background: transparent;
  border-radius: 0;
}

.sessionLogout {
  align-self: stretch;
  padding: 7px 11px;
  color: #66758a;
  background: transparent;
  border: 0;
  border-left: 1px solid #d6e0ea;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.sessionLogout:hover {
  color: var(--wine);
  background: #fff;
}

@media (max-width: 760px) {
  .notificationButton span[data-i18n] {
    display: none;
  }

  .notificationButton {
    min-width: 36px;
    justify-content: center;
    padding: 7px 8px;
  }
}

.notificationReport {
  overflow: hidden;
  background: #fff;
  border: 1px solid #e1d7da;
  border-radius: 10px;
}

.notificationReportOpen {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 10px;
  color: #34445a;
  background: #fff9fa;
  border: 0;
  text-align: left;
  cursor: pointer;
}

.notificationReportOpen:hover {
  background: #fdf1f3;
}

.notificationReportReason {
  color: var(--wine);
  font-size: 11px;
  font-weight: 800;
}

.notificationReportDetail {
  color: #56677d;
  font-size: 11px;
  line-height: 1.35;
}

.notificationReportActions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  padding: 7px 9px;
  background: #f7f9fb;
  border-top: 1px solid #eceff3;
}

.notificationReportActions button {
  padding: 5px 8px;
  color: #4e6076;
  background: #fff;
  border: 1px solid #cdd8e3;
  border-radius: 7px;
  font: inherit;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.notificationReportActions button:hover {
  color: var(--brand);
  border-color: #aebfd1;
}

.privateMessageActions {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

.privateMessageActions .btn {
  min-height: 30px;
  padding: 5px 9px;
  font-size: 11px;
}

.composerContext {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 10px 12px;
  color: #243a57;
  background: #f4f7fa;
  border: 1px solid #d9e2eb;
  border-radius: 9px;
  font-weight: 800;
}
