.home-dashboard {
  --home-body: #08111a;
  --home-panel: rgba(12, 19, 29, var(--site-panel-opacity, 0.96));
  --home-panel-soft: rgba(17, 26, 40, var(--site-panel-soft-opacity, 0.9));
  --home-border: rgba(111, 161, 232, 0.14);
  --home-text: #eef5ff;
  --home-muted: #8ea0bb;
  --home-blue: #68aafc;
  --home-blue-soft: #9fd0ff;
  --home-cyan: #79ead6;
  --home-orange: #ffb969;
  color: var(--home-text);
}

html[data-bs-theme="light"] .home-dashboard {
  --home-body: #eef5ff;
  --home-panel: rgba(255, 255, 255, var(--site-panel-opacity, 0.94));
  --home-panel-soft: rgba(246, 250, 255, var(--site-panel-soft-opacity, 0.98));
  --home-border: rgba(43, 83, 138, 0.12);
  --home-text: #13233d;
  --home-muted: #58708e;
  --home-blue: #2f6fe2;
  --home-blue-soft: #2858ab;
  --home-cyan: #1a9f9b;
  --home-orange: #d97f29;
}

.home-dashboard .component,
.home-dashboard .card {
  background: var(--home-panel);
  border: 1px solid var(--home-border);
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.26);
}

html[data-bs-theme="light"] .home-dashboard .component,
html[data-bs-theme="light"] .home-dashboard .card {
  box-shadow: 0 18px 44px rgba(24, 49, 86, 0.08);
}

.home-hero {
  position: relative;
  min-height: 340px;
  margin-bottom: 1.4rem;
  background:
    linear-gradient(180deg, rgba(10, 15, 24, 0.18), rgba(10, 15, 24, 0.32)),
    url("/images/site-background.webp") center center / cover no-repeat;
}

html[data-bs-theme="light"] .home-hero {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(232, 240, 255, 0.3)),
    url("/images/site-background.webp") center center / cover no-repeat;
}

.home-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 10, 18, 0.34), rgba(6, 10, 18, 0.56)),
    linear-gradient(90deg, rgba(6, 11, 20, 0.58), rgba(6, 11, 20, 0.14) 45%, rgba(6, 11, 20, 0.52));
}

html[data-bs-theme="light"] .home-hero__overlay {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.26), rgba(232, 240, 255, 0.44)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0.12) 45%, rgba(243, 248, 255, 0.58));
}

.home-hero__orb {
  position: absolute;
  top: 32px;
  right: 58px;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(196, 223, 255, 0.32);
  border-radius: 50%;
  box-shadow: 0 0 26px rgba(139, 198, 255, 0.14);
}

.home-hero__skyline {
  display: none;
}

.building {
  position: absolute;
  bottom: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.01)),
    linear-gradient(180deg, #0c1623, #0a111c);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

html[data-bs-theme="light"] .building {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0.08)),
    linear-gradient(180deg, #d6e6fb, #b8cce9);
  box-shadow: inset 0 0 0 1px rgba(47, 111, 226, 0.08);
}

.building::before {
  content: "";
  position: absolute;
  inset: 10% 14%;
  background:
    repeating-linear-gradient(
      180deg,
      rgba(145, 198, 255, 0.12),
      rgba(145, 198, 255, 0.12) 3px,
      transparent 3px,
      transparent 10px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(145, 198, 255, 0.1),
      rgba(145, 198, 255, 0.1) 2px,
      transparent 2px,
      transparent 10px
    );
}

html[data-bs-theme="light"] .building::before {
  background:
    repeating-linear-gradient(
      180deg,
      rgba(47, 111, 226, 0.12),
      rgba(47, 111, 226, 0.12) 3px,
      transparent 3px,
      transparent 10px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(47, 111, 226, 0.1),
      rgba(47, 111, 226, 0.1) 2px,
      transparent 2px,
      transparent 10px
    );
}

.building--1 { left: 2%; width: 8%; height: 64%; }
.building--2 { left: 14%; width: 5%; height: 38%; }
.building--3 { left: 24%; width: 7%; height: 46%; }
.building--4 { right: 10%; width: 9%; height: 58%; }
.building--5 { right: 2%; width: 6%; height: 40%; }

.home-hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 340px;
  padding: 2.6rem 3rem 4rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.home-hero__eyebrow {
  margin-bottom: 0.7rem;
  color: #9dbcf5;
  font-size: 0.78rem;
  letter-spacing: 0.26em;
}

html[data-bs-theme="light"] .home-hero__eyebrow {
  color: #3e6eac;
}

.home-hero__title {
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 4.25rem);
  font-weight: 800;
  letter-spacing: 0.03em;
}

.home-hero__subtitle {
  max-width: 720px;
  margin: 1rem 0 1.4rem;
  color: #dce8fb;
  line-height: 1.8;
}

html[data-bs-theme="light"] .home-hero__subtitle {
  color: #42556f;
}

.home-hero__runtime {
  min-width: min(100%, 620px);
  margin: 1.2rem 0 1.5rem;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(145, 198, 255, 0.16);
  border-radius: 18px;
  background: rgba(8, 16, 28, 0.38);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
}

html[data-bs-theme="light"] .home-hero__runtime {
  border-color: rgba(43, 83, 138, 0.12);
  background: rgba(255, 255, 255, 0.54);
}

.home-hero__runtime-label,
.home-hero__runtime-meta {
  color: var(--home-muted);
}

.home-hero__runtime-label {
  margin-bottom: 0.75rem;
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.home-hero__runtime-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
}

.home-hero__runtime-grid span {
  display: flex;
  min-height: 92px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

html[data-bs-theme="light"] .home-hero__runtime-grid span {
  background: rgba(47, 111, 226, 0.05);
  border-color: rgba(47, 111, 226, 0.08);
}

.home-hero__runtime-grid b {
  color: var(--home-text);
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1;
}

.home-hero__runtime-grid small {
  color: var(--home-muted);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
}

.home-hero__runtime-meta {
  margin: 0.8rem 0 0;
  font-size: 0.82rem;
  line-height: 1.6;
}

.home-hero__actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.home-grid {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr) 300px;
  gap: 1rem;
  align-items: start;
}

.home-side,
.home-main {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.home-panel,
.home-post-card {
  padding: 1rem;
}

.home-profile {
  overflow: hidden;
  padding: 0;
}

.home-profile__cover {
  height: 108px;
  background:
    radial-gradient(circle at 20% 28%, rgba(118, 196, 255, 0.48), transparent 24%),
    linear-gradient(135deg, #20385f 0%, #0b1320 100%);
}

.home-profile__body {
  padding: 0 1rem 1rem;
  text-align: center;
}

.home-profile__avatar {
  width: 94px;
  height: 94px;
  margin-top: -46px;
  border: 4px solid #09111a;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.38);
}

html[data-bs-theme="light"] .home-profile__avatar {
  border-color: #f0f6ff;
  box-shadow: 0 10px 24px rgba(19, 35, 61, 0.12);
}

.home-panel__title {
  margin: 0 0 0.85rem;
  color: var(--home-text);
  font-size: 1rem;
  font-weight: 700;
}

.home-profile__bio,
.home-panel__text {
  color: var(--home-muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

.home-profile__meta {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin: 0.8rem 0 1rem;
  color: var(--home-muted);
  font-size: 0.8rem;
}

.home-profile__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.home-profile__stats div,
.home-stat-list div {
  padding: 0.72rem 0.4rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.04);
  text-align: center;
}

html[data-bs-theme="light"] .home-profile__stats div,
html[data-bs-theme="light"] .home-stat-list div {
  background: rgba(47, 111, 226, 0.05);
  border-color: rgba(47, 111, 226, 0.08);
}

.home-profile__stats strong,
.home-stat-list strong {
  display: block;
  font-size: 1.15rem;
  color: var(--home-text);
}

.home-profile__stats span,
.home-stat-list span,
.home-mini-list__item span,
.home-category-list strong,
.home-radar-legend span {
  color: var(--home-muted);
  font-size: 0.78rem;
}

.home-profile__links,
.home-nav-list,
.home-mini-list,
.home-category-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.home-profile__links a,
.home-nav-list a,
.home-mini-list__item,
.home-category-list a,
.home-featured__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.78rem 0.85rem;
  background: rgba(255, 255, 255, 0.028);
  border: 1px solid rgba(255, 255, 255, 0.045);
  border-radius: 12px;
  color: var(--home-text);
  text-decoration: none;
  transition: 0.2s ease;
}

html[data-bs-theme="light"] .home-profile__links a,
html[data-bs-theme="light"] .home-nav-list a,
html[data-bs-theme="light"] .home-mini-list__item,
html[data-bs-theme="light"] .home-category-list a,
html[data-bs-theme="light"] .home-featured__link {
  background: rgba(248, 251, 255, 0.98);
  border-color: rgba(43, 83, 138, 0.1);
}

.home-profile__links a:hover,
.home-nav-list a:hover,
.home-mini-list__item:hover,
.home-category-list a:hover,
.home-featured__link:hover {
  transform: translateY(-1px);
  border-color: rgba(104, 170, 252, 0.34);
  background: rgba(104, 170, 252, 0.08);
}

html[data-bs-theme="light"] .home-profile__links a:hover,
html[data-bs-theme="light"] .home-nav-list a:hover,
html[data-bs-theme="light"] .home-mini-list__item:hover,
html[data-bs-theme="light"] .home-category-list a:hover,
html[data-bs-theme="light"] .home-featured__link:hover {
  background: rgba(47, 111, 226, 0.08);
}

.home-profile__links b,
.home-nav-list b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  border-radius: 8px;
  background: rgba(104, 170, 252, 0.12);
  color: var(--home-blue-soft);
  font-size: 0.76rem;
}

html[data-bs-theme="light"] .home-profile__links b,
html[data-bs-theme="light"] .home-nav-list b {
  background: rgba(47, 111, 226, 0.09);
}

.home-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.home-tag-cloud a,
.home-post-card__chips a {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.68rem;
  border-radius: 999px;
  background: rgba(104, 170, 252, 0.1);
  color: #d4e7ff;
  text-decoration: none;
  font-size: 0.8rem;
}

html[data-bs-theme="light"] .home-tag-cloud a,
html[data-bs-theme="light"] .home-post-card__chips a {
  background: rgba(47, 111, 226, 0.08);
  color: #2858ab;
}

.home-post-card {
  display: grid;
  grid-template-columns: 122px minmax(0, 1fr);
  gap: 1rem;
  align-items: stretch;
}

.home-post-card__thumb {
  position: relative;
  min-height: 132px;
  border-radius: 14px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(73, 122, 206, 0.35), rgba(10, 16, 26, 0.5)),
    linear-gradient(135deg, #1c3356, #0c1521);
}

html[data-bs-theme="light"] .home-post-card__thumb {
  background:
    linear-gradient(135deg, rgba(125, 168, 240, 0.28), rgba(228, 238, 252, 0.82)),
    linear-gradient(135deg, #dbe8fb, #f3f8ff);
}

.home-post-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
}

.home-post-card__thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 10, 18, 0.02), rgba(6, 10, 18, 0.45));
}

html[data-bs-theme="light"] .home-post-card__thumb::after {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(18, 33, 57, 0.16));
}

.home-post-card__thumb-badge {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 1;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: rgba(7, 15, 26, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e4efff;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

html[data-bs-theme="light"] .home-post-card__thumb-badge {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(43, 83, 138, 0.1);
  color: #16325c;
}

.home-post-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.78rem;
}

.home-post-card__meta,
.home-post-card__footer,
.home-bar__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.home-post-card__meta {
  color: var(--home-muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-post-card__title {
  margin: 0;
  font-size: 1.16rem;
  line-height: 1.45;
}

.home-post-card__title a {
  color: var(--home-text);
  text-decoration: none;
}

.home-post-card__summary {
  margin: 0;
  color: var(--home-muted);
  line-height: 1.75;
}

.home-post-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.home-post-card__more {
  color: var(--home-blue-soft);
  font-weight: 700;
  text-decoration: none;
}

.home-stat-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.home-chart {
  position: relative;
  min-height: 118px;
  padding: 0.25rem 0;
}

.home-chart--line svg {
  width: 100%;
  height: 120px;
  overflow: visible;
}

.home-chart--line::before,
.home-chart--line::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  border-top: 1px dashed rgba(145, 198, 255, 0.1);
}

.home-chart--line::before { top: 38px; }
.home-chart--line::after { top: 80px; }

.home-chart--radar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.home-chart--radar svg {
  width: 100%;
  max-width: 220px;
  height: 120px;
}

.home-chart--radar .radar-grid {
  fill: rgba(104, 170, 252, 0.04);
  stroke: rgba(104, 170, 252, 0.2);
  stroke-width: 1;
}

.home-chart--radar .radar-shape {
  fill: rgba(121, 234, 214, 0.18);
  stroke: rgba(121, 234, 214, 0.9);
  stroke-width: 2;
}

.home-chart--radar circle {
  fill: #79ead6;
}

.home-radar-legend {
  display: flex;
  gap: 0.8rem;
}

.home-chart--nodes {
  min-height: 136px;
}

.home-chart--nodes::before,
.home-chart--nodes::after {
  content: "";
  position: absolute;
  background: rgba(121, 234, 214, 0.15);
}

.home-chart--nodes::before {
  top: 28px;
  left: 40px;
  width: 120px;
  height: 1px;
  box-shadow:
    0 26px 0 rgba(121, 234, 214, 0.12),
    0 52px 0 rgba(121, 234, 214, 0.09);
}

.home-chart--nodes::after {
  top: 20px;
  left: 68px;
  width: 1px;
  height: 78px;
  box-shadow:
    34px 0 0 rgba(121, 234, 214, 0.12),
    68px 0 0 rgba(121, 234, 214, 0.09);
}

.node {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #7ae9d6;
  box-shadow: 0 0 12px rgba(122, 233, 214, 0.6);
}

.node--1 { top: 23px; left: 35px; }
.node--2 { top: 23px; left: 101px; }
.node--3 { top: 23px; left: 169px; }
.node--4 { top: 49px; left: 69px; }
.node--5 { top: 49px; left: 137px; background: #ffb969; box-shadow: 0 0 12px rgba(255, 185, 105, 0.55); }
.node--6 { top: 75px; left: 35px; }
.node--7 { top: 75px; left: 101px; }
.node--8 { top: 75px; left: 169px; }

.home-mini-list__item strong,
.home-category-list span,
.home-featured__link strong {
  color: var(--home-text);
}

.home-featured__link {
  flex-direction: column;
  align-items: flex-start;
}

.home-featured__link span {
  color: var(--home-muted);
  line-height: 1.7;
}

.home-panel--link {
  display: block;
  color: var(--home-text);
  text-decoration: none;
  transition: 0.2s ease;
}

.home-panel--link:hover {
  transform: translateY(-2px);
  border-color: rgba(104, 170, 252, 0.34);
  background: rgba(104, 170, 252, 0.08);
}

html[data-bs-theme="light"] .home-panel--link:hover {
  background: rgba(47, 111, 226, 0.08);
}

.home-panel__head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 0.85rem;
  margin-bottom: 0.8rem;
}

.home-panel__eyebrow {
  margin-bottom: 0.4rem;
  color: #9dbcf5;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

html[data-bs-theme="light"] .home-panel__eyebrow {
  color: #3e6eac;
}

.home-panel__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--home-blue-soft);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

html[data-bs-theme="light"] .home-panel__cta {
  border-color: rgba(43, 83, 138, 0.1);
  background: rgba(47, 111, 226, 0.06);
}

.home-gadgets {
  position: relative;
  overflow: hidden;
}

.home-gadgets::before {
  content: "";
  position: absolute;
  inset: -42% -28% auto auto;
  width: 170px;
  height: 170px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(121, 234, 214, 0.18), transparent 68%);
  pointer-events: none;
}

.home-gadgets__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.home-gadget-link {
  display: flex;
  min-height: 72px;
  flex-direction: column;
  justify-content: space-between;
  padding: 0.78rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  background:
    radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.14), transparent 24px),
    linear-gradient(135deg, rgba(104, 170, 252, 0.14), rgba(255, 255, 255, 0.035));
  color: var(--home-text);
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.home-gadget-link:hover {
  transform: translateY(-2px);
  border-color: rgba(121, 234, 214, 0.36);
  background:
    radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.2), transparent 24px),
    linear-gradient(135deg, rgba(121, 234, 214, 0.18), rgba(104, 170, 252, 0.12));
}

.home-gadget-link span {
  color: var(--home-text);
  font-size: 0.92rem;
  font-weight: 700;
}

.home-gadget-link b {
  width: fit-content;
  padding: 0.18rem 0.48rem;
  border-radius: 999px;
  background: rgba(5, 12, 21, 0.28);
  color: var(--home-blue-soft);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
}

.home-gadget-link--fan b {
  color: var(--home-cyan);
}

.home-gadget-link--game b,
.home-gadget-link--fc b {
  color: var(--home-orange);
}

.home-gadget-link--fc {
  grid-column: 1 / -1;
  min-height: 64px;
}

html[data-bs-theme="light"] .home-gadgets::before {
  background: radial-gradient(circle, rgba(47, 111, 226, 0.12), transparent 68%);
}

html[data-bs-theme="light"] .home-gadget-link {
  border-color: rgba(43, 83, 138, 0.1);
  background:
    radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.82), transparent 24px),
    linear-gradient(135deg, rgba(47, 111, 226, 0.08), rgba(255, 255, 255, 0.72));
}

html[data-bs-theme="light"] .home-gadget-link:hover {
  border-color: rgba(47, 111, 226, 0.28);
  background:
    radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.95), transparent 24px),
    linear-gradient(135deg, rgba(47, 111, 226, 0.12), rgba(121, 234, 214, 0.1));
}

html[data-bs-theme="light"] .home-gadget-link b {
  background: rgba(47, 111, 226, 0.08);
  color: #2858ab;
}

.home-activity {
  margin: 0.95rem 0;
}

.home-activity__toolbar,
.home-activity__tabs {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.home-activity__toolbar {
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.home-activity__tabs {
  flex-wrap: wrap;
}

.home-activity__tab,
.home-activity__summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.42rem 0.78rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--home-muted);
  font-size: 0.76rem;
}

html[data-bs-theme="light"] .home-activity__tab,
html[data-bs-theme="light"] .home-activity__summary {
  border-color: rgba(43, 83, 138, 0.1);
  background: rgba(47, 111, 226, 0.06);
}

.home-activity__tab {
  cursor: pointer;
  transition: 0.2s ease;
}

.home-activity__tab.is-active {
  border-color: rgba(104, 170, 252, 0.34);
  background: rgba(104, 170, 252, 0.12);
  color: var(--home-text);
}

html[data-bs-theme="light"] .home-activity__tab.is-active {
  background: rgba(47, 111, 226, 0.1);
}

.home-activity__summary {
  color: var(--home-blue-soft);
}

.home-activity__panel {
  display: none;
}

.home-activity__panel.is-active {
  display: block;
}

.home-line-chart {
  position: relative;
  min-height: 174px;
  padding-bottom: 2.2rem;
}

.home-line-chart--30d {
  min-width: 420px;
}

.home-line-chart__svg {
  width: 100%;
  height: 138px;
  overflow: visible;
}

.home-line-chart__area {
  fill: rgba(104, 170, 252, 0.14);
}

.home-line-chart__line {
  fill: none;
  stroke: #84c6ff;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

html[data-bs-theme="light"] .home-line-chart__line {
  stroke: #2f6fe2;
}

.home-line-chart__dot {
  fill: #79ead6;
  stroke: rgba(7, 13, 24, 0.96);
  stroke-width: 0.75;
  vector-effect: non-scaling-stroke;
}

html[data-bs-theme="light"] .home-line-chart__dot {
  fill: #2f6fe2;
  stroke: rgba(255, 255, 255, 0.98);
}

.home-line-chart__labels {
  position: absolute;
  inset: 0;
}

.home-line-chart__labels::before,
.home-line-chart__labels::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  border-top: 1px dashed rgba(145, 198, 255, 0.1);
}

.home-line-chart__labels::before {
  top: 42px;
}

.home-line-chart__labels::after {
  top: 84px;
}

.home-line-chart__label {
  position: absolute;
  bottom: 0;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.28rem;
  min-width: 28px;
}

.home-line-chart__label b {
  color: var(--home-muted);
  font-size: 0.74rem;
  font-weight: 600;
}

.home-line-chart__label small {
  color: var(--home-muted);
  font-size: 0.72rem;
}

.home-kpi-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.home-kpi-row--activity {
  margin-top: 0.2rem;
}

.home-kpi-row div,
.home-board-chip {
  padding: 0.72rem 0.55rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

html[data-bs-theme="light"] .home-kpi-row div,
html[data-bs-theme="light"] .home-board-chip {
  background: rgba(47, 111, 226, 0.05);
  border-color: rgba(47, 111, 226, 0.08);
}

.home-kpi-row strong,
.home-board-chip b {
  display: block;
  color: var(--home-text);
  font-size: 1rem;
}

.home-kpi-row span,
.home-board-chip small {
  color: var(--home-muted);
  font-size: 0.74rem;
}

.home-distribution-list,
.home-board-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.home-meter__track {
  height: 9px;
  margin-top: 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

html[data-bs-theme="light"] .home-meter__track {
  background: rgba(47, 111, 226, 0.08);
}

.home-meter__track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(121, 234, 214, 0.92), rgba(104, 170, 252, 0.92));
}

.home-board-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-board-chip {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
}

.home-board-chip strong {
  color: var(--home-muted);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-board-chip--cyan b {
  color: var(--home-cyan);
}

.home-board-chip--orange b {
  color: var(--home-orange);
}

@media (max-width: 1399.98px) {
  .home-grid {
    grid-template-columns: 252px minmax(0, 1fr);
  }

  .home-side--right {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .home-hero__content {
    padding: 2rem 1.2rem 3.4rem;
  }

  .home-hero__runtime-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-grid,
  .home-side--right {
    grid-template-columns: 1fr;
  }

  .home-activity__toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-line-chart--30d,
  .home-line-chart--12m {
    min-width: 520px;
  }

  .home-kpi-row,
  .home-board-list {
    grid-template-columns: 1fr;
  }

  .home-post-card {
    grid-template-columns: 1fr;
  }

  .home-post-card__thumb {
    min-height: 180px;
  }
}

/* ── 最新板块 ── */
.home-latest {
  --latest-accent: var(--home-blue);
}

.home-latest__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.home-latest__item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  transition: background .2s;
}
.home-latest__item:hover {
  background: rgba(104, 170, 252, .08);
}

.home-latest__badge {
  flex-shrink: 0;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .04em;
  padding: 2px 8px;
  border-radius: 4px;
  margin-top: 2px;
  color: #fff;
  background: var(--home-blue);
}
.home-latest__badge--posts     { background: #4f9fcf; }
.home-latest__badge--buu       { background: #e0784b; }
.home-latest__badge--reverse   { background: #c97ac6; }
.home-latest__badge--iscc-2026 { background: #5db89a; }
.home-latest__badge--contest-2026 { background: #a0a870; }

.home-latest__body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.home-latest__title {
  font-size: .9rem;
  font-weight: 600;
  color: var(--home-text);
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-latest__date {
  font-size: .72rem;
  color: var(--home-muted);
  margin-top: 2px;
}
