:root {
  --paper: #eef3f2;
  --paper-deep: #e2e9e7;
  --surface: #ffffff;
  --ink: #142320;
  --ink-soft: #596b66;
  --ink-faint: #879690;
  --pine: #0f766e;
  --pine-light: #159a8d;
  --lime: #c9f066;
  --coral: #ff7d62;
  --amber: #edb43f;
  --blue: #4b8fd8;
  --line: rgba(17, 48, 43, 0.11);
  --line-soft: rgba(17, 48, 43, 0.07);
  --shadow: 0 20px 50px rgba(17, 48, 43, 0.08);
  --radius: 20px;
}

body {
  background:
    radial-gradient(circle at 8% 4%, rgba(201, 240, 102, 0.16), transparent 23rem),
    radial-gradient(circle at 92% 6%, rgba(40, 171, 157, 0.13), transparent 28rem),
    #eef3f2;
}

body::before {
  display: none;
}

.container {
  width: min(1240px, calc(100% - 48px));
}

.site-header {
  border-bottom: 1px solid rgba(17, 48, 43, 0.08);
  background: rgba(255, 255, 255, 0.9);
}

.header-inner {
  min-height: 74px;
  gap: 34px;
}

.brand {
  gap: 11px;
}

.brand-emblem {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  color: white;
  background: linear-gradient(145deg, #0f766e, #0d5a55);
  border-radius: 14px;
  box-shadow: 0 7px 16px rgba(15, 118, 110, 0.2);
}

.brand-emblem svg {
  position: absolute;
  inset: auto -4px -3px;
  width: 50px;
  height: 26px;
  color: rgba(201, 240, 102, 0.55);
  stroke-width: 1.6;
}

.brand-emblem b {
  position: relative;
  z-index: 1;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.brand-emblem-small {
  width: 38px;
  height: 38px;
  border-radius: 12px;
}

.brand-emblem-small b {
  font-size: 11px;
}

.brand-logo {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  object-fit: contain;
  border-radius: 50%;
  background: #285eaa;
}

.brand-logo-small {
  width: 38px;
  height: 38px;
}

.brand-logo-light {
  padding: 2px;
  background: white;
  border-radius: 50%;
}

.brand-emblem-light {
  color: #0d514b;
  background: var(--lime);
  box-shadow: 0 8px 20px rgba(7, 48, 43, 0.22);
}

.brand-copy {
  display: grid;
  gap: 1px;
  line-height: 1.2;
}

.brand-copy strong {
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 850;
  letter-spacing: -0.045em;
  white-space: nowrap;
}

.brand-copy small {
  color: var(--ink-faint);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.16em;
}

.brand-light .brand-copy strong {
  color: white;
}

.brand-light .brand-copy small {
  color: rgba(255, 255, 255, 0.5);
}

.user-chip-copy {
  display: grid;
  gap: 0;
  line-height: 1.25;
}

.user-chip-copy strong {
  max-width: 100px;
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-chip-copy small {
  max-width: 100px;
  overflow: hidden;
  color: var(--ink-faint);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.avatar,
.mini-avatar {
  overflow: hidden;
}

.avatar img,
.mini-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.main-nav {
  gap: 22px;
}

.main-nav a {
  padding-block: 26px 24px;
  font-size: 13px;
}

.main-nav a.active::after {
  right: 4px;
  left: 4px;
  height: 3px;
  background: var(--pine);
  border-radius: 3px 3px 0 0;
}

.button-primary {
  background: var(--pine);
  border-color: var(--pine);
  box-shadow: 0 12px 26px rgba(15, 118, 110, 0.18);
}

.button-primary:hover {
  background: #0b615b;
}

.button-primary span {
  color: var(--lime);
}

.hero {
  padding: 48px 0 30px;
  overflow: visible;
}

.hero::after {
  top: -105px;
  right: -40px;
  width: 470px;
  height: 470px;
  border-color: rgba(15, 118, 110, 0.1);
  box-shadow: 0 0 0 75px rgba(15, 118, 110, 0.018), 0 0 0 150px rgba(15, 118, 110, 0.012);
}

.hero-grid {
  grid-template-columns: minmax(0, 1.3fr) minmax(310px, 0.7fr);
  align-items: center;
  padding: 39px 43px;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.82), rgba(236, 252, 247, 0.7)),
    #dff1ec;
  border: 1px solid rgba(15, 118, 110, 0.11);
  border-radius: 28px;
  box-shadow: 0 25px 70px rgba(17, 48, 43, 0.08);
  gap: 55px;
}

.hero-grid::before {
  position: absolute;
  top: -100px;
  left: 40%;
  width: 360px;
  height: 360px;
  background: rgba(201, 240, 102, 0.19);
  border-radius: 48% 52% 57% 43%;
  content: "";
  filter: blur(1px);
  transform: rotate(20deg);
}

.hero-copy,
.hero-panel {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin-bottom: 16px;
  color: var(--pine);
}

.hero h1 {
  font-size: clamp(42px, 5vw, 67px);
  line-height: 1.08;
}

.hero h1 em::after {
  height: 13%;
  background: var(--lime);
}

.hero-lead {
  max-width: 550px;
  margin-top: 20px;
  font-size: 14px;
  line-height: 1.8;
}

.hero-actions {
  margin-top: 25px;
}

.hero-stats {
  margin-top: 31px;
}

.hero-stats div {
  min-width: 92px;
  padding-right: 22px;
  margin-right: 22px;
}

.hero-panel {
  padding: 22px;
  background: linear-gradient(155deg, #0e716a, #0d4f4a);
  border-radius: 21px;
  box-shadow: 0 25px 50px rgba(15, 79, 74, 0.2);
  transform: none;
}

.signal-number {
  margin: 24px 0 17px;
}

.signal-number strong {
  font-size: 54px;
}

.signal-lines a {
  padding: 9px 0;
}

.accent-green {
  background: #46a777;
}

.accent-violet {
  background: #8b75c9;
}

.accent-rank {
  background: #d49a2e;
}

.accent-soft-green {
  background: #dff3e6;
}

.accent-soft-violet {
  background: #ece7f8;
}

.accent-soft-rank {
  background: #fae8c4;
}

.community-layout {
  grid-template-columns: 205px minmax(0, 1fr) 274px;
  align-items: start;
  padding-top: 12px;
  padding-bottom: 90px;
  gap: 18px;
}

.channel-rail {
  position: sticky;
  top: 91px;
  padding: 13px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: 17px;
  box-shadow: 0 14px 35px rgba(17, 48, 43, 0.045);
}

.channel-rail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 8px 12px;
  color: var(--ink-faint);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.channel-rail-head a {
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  color: var(--pine);
  background: rgba(15, 118, 110, 0.08);
  border-radius: 7px;
  font-size: 16px;
  letter-spacing: 0;
}

.channel-rail-head a:hover {
  color: white;
  background: var(--pine);
}

.channel-link {
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 42px;
  padding: 5px 9px;
  margin-bottom: 2px;
  gap: 8px;
  color: var(--ink-soft);
  border-radius: 10px;
  font-size: 12px;
  font-weight: 650;
}

.channel-link:hover {
  color: var(--ink);
  background: rgba(15, 118, 110, 0.055);
}

.channel-link.active {
  color: #0b5e58;
  background: #e1f3ee;
}

.channel-icon {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  color: var(--ink-faint);
  background: rgba(17, 48, 43, 0.06);
  border-radius: 8px;
  font-size: 11px;
  font-weight: 850;
}

.channel-icon.accent-coral,
.channel-icon.accent-pine,
.channel-icon.accent-amber,
.channel-icon.accent-blue,
.channel-icon.accent-green,
.channel-icon.accent-violet {
  color: white;
}

.channel-link small {
  display: grid;
  min-width: 19px;
  height: 19px;
  place-items: center;
  color: var(--ink-faint);
  background: rgba(17, 48, 43, 0.055);
  border-radius: 50%;
  font-size: 8px;
}

.channel-link i {
  width: 6px;
  height: 6px;
  background: var(--coral);
  border-radius: 50%;
}

.channel-rail-foot {
  padding: 15px 9px 5px;
  margin-top: 12px;
  border-top: 1px solid var(--line-soft);
}

.channel-rail-foot strong {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-serif);
  font-size: 12px;
}

.channel-rail-foot p {
  margin: 0;
  color: var(--ink-faint);
  font-size: 9px;
  line-height: 1.7;
}

.feed-panel {
  padding: 21px 23px 17px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(17, 48, 43, 0.045);
}

.section-heading {
  padding-bottom: 15px;
}

.section-heading h2 {
  font-size: 25px;
}

.search-bar {
  margin: 15px 0 8px;
  background: #f5f8f7;
  border-color: transparent;
}

.search-bar:focus-within {
  background: white;
  border-color: rgba(15, 118, 110, 0.35);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.06);
}

.thread-card {
  padding: 20px 5px;
}

.thread-card:hover {
  background: #fbfcfc;
}

.thread-title {
  font-size: 18px;
  overflow-wrap: anywhere;
}

.post-card > h1 {
  overflow-wrap: anywhere;
}

.thread-excerpt {
  -webkit-line-clamp: 2;
}

.thread-read {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  color: var(--pine);
  background: rgba(15, 118, 110, 0.06);
  border-radius: 6px;
  opacity: 1;
  transform: none;
}

.sidebar {
  gap: 14px;
}

.side-card {
  padding: 18px;
  background: rgba(255, 255, 255, 0.84);
  border-radius: 16px;
  box-shadow: 0 14px 35px rgba(17, 48, 43, 0.04);
}

.channel-about-card {
  position: relative;
  overflow: hidden;
  color: white;
  background: linear-gradient(145deg, #0f766e, #0b5953);
  border: 0;
}

.channel-about-card::after {
  position: absolute;
  right: -44px;
  bottom: -64px;
  width: 160px;
  height: 160px;
  border: 1px solid rgba(201, 240, 102, 0.2);
  border-radius: 50%;
  box-shadow: 0 0 0 30px rgba(201, 240, 102, 0.03);
  content: "";
}

.channel-about-card .section-kicker {
  position: relative;
  z-index: 1;
  color: var(--lime);
  font-size: 8px;
}

.channel-about-mark {
  display: grid;
  width: 43px;
  height: 43px;
  margin-bottom: 18px;
  place-items: center;
  color: #0c5a54;
  background: var(--lime);
  border-radius: 13px;
  font-family: var(--font-serif);
  font-size: 12px;
  font-weight: 900;
}

.channel-about-card h3 {
  position: relative;
  z-index: 1;
  margin: 8px 0 10px;
  font-family: var(--font-serif);
  font-size: 21px;
  letter-spacing: -0.04em;
  line-height: 1.35;
}

.channel-about-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 10px;
  line-height: 1.7;
}

.channel-about-card > a {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  margin-top: 16px;
  color: var(--lime);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 10px;
  font-weight: 700;
}

.mobile-channel-strip {
  display: none;
}

.mobile-dock {
  display: none;
}

.brand-name,
.brand-tag,
.brand-mark {
  display: none;
}

.auth-visual {
  background:
    radial-gradient(circle at 20% 20%, rgba(201, 240, 102, 0.12), transparent 32%),
    linear-gradient(155deg, #0f766e, #0a4b47);
}

.auth-visual .brand {
  position: absolute;
  top: 0;
  left: 0;
}

.auth-visual .brand-emblem {
  color: #0c5a54;
  background: var(--lime);
}

.auth-tags span {
  color: var(--lime);
  border-color: rgba(201, 240, 102, 0.28);
}

.optional-label {
  padding: 2px 5px;
  margin-left: 3px;
  color: var(--ink-faint);
  background: rgba(17, 48, 43, 0.06);
  border-radius: 4px;
  font-size: 8px;
  font-weight: 600;
}

.account-section-title {
  padding-top: 27px;
  margin-top: 25px;
  border-top: 1px solid var(--line);
}

.badge-poll {
  color: #0b5f58;
  background: #dff3ee;
}

.badge-ranking {
  color: #7d5310;
  background: #f8e3b8;
}

.poll-builder {
  padding: 17px;
  margin-bottom: 23px;
  background: #f7faf9;
  border: 1px solid var(--line);
  border-radius: 13px;
}

.leaderboard-create-box {
  padding: 17px;
  margin-bottom: 23px;
  background: linear-gradient(135deg, #fffaf0, #f8f4e9);
  border: 1px solid #ead9b6;
  border-radius: 13px;
}

.leaderboard-create-box .poll-toggle-switch {
  background: #e8d5ac;
}

.leaderboard-create-box .poll-toggle > input:checked + .poll-toggle-switch {
  background: #b77917;
}

.leaderboard-create-box p {
  padding-top: 11px;
  margin: 12px 0 0;
  color: #806c4b;
  border-top: 1px solid rgba(128, 108, 75, 0.14);
  font-size: 9px;
  line-height: 1.65;
}

.poll-toggle {
  display: flex;
  align-items: center;
  gap: 11px;
  cursor: pointer;
}

.poll-toggle > input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.poll-toggle-switch {
  position: relative;
  width: 38px;
  height: 22px;
  flex: 0 0 auto;
  background: rgba(17, 48, 43, 0.14);
  border-radius: 999px;
  transition: background 160ms ease;
}

.poll-toggle-switch::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(17, 48, 43, 0.2);
  content: "";
  transition: transform 160ms ease;
}

.poll-toggle > input:checked + .poll-toggle-switch {
  background: var(--pine);
}

.poll-toggle > input:checked + .poll-toggle-switch::after {
  transform: translateX(16px);
}

.poll-toggle > input:focus-visible + .poll-toggle-switch {
  outline: 3px solid rgba(15, 118, 110, 0.18);
  outline-offset: 2px;
}

.poll-toggle-copy {
  display: grid;
  gap: 2px;
}

.poll-toggle-copy strong {
  font-size: 11px;
}

.poll-toggle-copy small {
  color: var(--ink-faint);
  font-size: 9px;
}

.poll-fields {
  padding-top: 19px;
  margin-top: 16px;
  border-top: 1px solid var(--line-soft);
}

.poll-fields[hidden] {
  display: none;
}

.poll-options-field {
  margin-bottom: 0;
}

.poll-option-list {
  display: grid;
  gap: 7px;
}

.poll-option-input {
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 7px;
}

.poll-option-input > span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: var(--pine);
  background: rgba(15, 118, 110, 0.08);
  border-radius: 7px;
  font-size: 9px;
  font-weight: 800;
}

.poll-option-input input {
  min-height: 40px;
}

.poll-option-input button {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: var(--ink-faint);
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-size: 17px;
}

.poll-option-input button:hover:not(:disabled) {
  color: #a44735;
  background: #fff0eb;
}

.poll-option-input button:disabled {
  opacity: 0.25;
  cursor: default;
}

.add-poll-option {
  padding: 6px 0;
  margin-top: 7px;
  color: var(--pine);
  background: none;
  border: 0;
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
}

.add-poll-option:disabled {
  color: var(--ink-faint);
  cursor: default;
}

.poll-card {
  padding: 24px;
  margin: 3px 0 24px;
  background:
    radial-gradient(circle at 100% 0, rgba(201, 240, 102, 0.2), transparent 35%),
    #f0f8f5;
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 17px;
}

.poll-head {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
}

.poll-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: #0c5a54;
  background: var(--lime);
  border-radius: 12px;
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 900;
}

.poll-head > div {
  min-width: 0;
}

.poll-head > div > span {
  color: var(--pine);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.poll-head h2 {
  margin: 4px 0 0;
  font-family: var(--font-serif);
  font-size: 20px;
  letter-spacing: -0.03em;
  line-height: 1.45;
}

.poll-form {
  padding-top: 19px;
}

.poll-choices {
  display: grid;
  gap: 8px;
}

.poll-choice {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 9px 13px;
  gap: 10px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  font-size: 12px;
  transition: border 150ms ease, background 150ms ease;
}

.poll-choice:hover {
  border-color: rgba(15, 118, 110, 0.35);
}

.poll-choice:has(input:checked) {
  color: #0b5e58;
  background: #e2f5ee;
  border-color: var(--pine);
}

.poll-choice input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--pine);
}

.poll-submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 13px;
  gap: 15px;
  color: var(--ink-faint);
  font-size: 9px;
}

.poll-results {
  display: grid;
  padding-top: 18px;
  gap: 13px;
}

.poll-result {
  padding: 9px 11px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid transparent;
  border-radius: 9px;
}

.poll-result.selected {
  background: white;
  border-color: rgba(15, 118, 110, 0.28);
}

.poll-result-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
  font-weight: 650;
}

.poll-result-label span {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.poll-result-label i {
  padding: 2px 5px;
  color: var(--pine);
  background: rgba(15, 118, 110, 0.08);
  border-radius: 4px;
  font-size: 8px;
  font-style: normal;
}

.poll-result-label strong {
  color: var(--pine);
  font-size: 11px;
}

.poll-progress {
  display: block;
  width: 100%;
  height: 6px;
  margin: 7px 0 3px;
  overflow: hidden;
  appearance: none;
  background: rgba(17, 48, 43, 0.07);
  border: 0;
  border-radius: 999px;
}

.poll-progress::-webkit-progress-bar {
  background: rgba(17, 48, 43, 0.07);
  border-radius: 999px;
}

.poll-progress::-webkit-progress-value {
  background: linear-gradient(90deg, var(--pine), var(--pine-light));
  border-radius: 999px;
}

.poll-progress::-moz-progress-bar {
  background: linear-gradient(90deg, var(--pine), var(--pine-light));
  border-radius: 999px;
}

.poll-result small {
  display: block;
  color: var(--ink-faint);
  font-size: 8px;
  text-align: right;
}

.poll-total {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  padding-top: 13px;
  gap: 13px;
  color: var(--ink-faint);
  font-size: 9px;
}

.poll-total a {
  margin-left: auto;
  color: var(--pine);
  font-weight: 700;
}

.leaderboard-card {
  padding: 24px;
  margin: 3px 0 24px;
  background:
    radial-gradient(circle at 100% 0, rgba(244, 195, 92, 0.2), transparent 34%),
    #fffaf0;
  border: 1px solid rgba(183, 121, 23, 0.2);
  border-radius: 17px;
}

.leaderboard-head {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.leaderboard-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #6f4605;
  background: linear-gradient(145deg, #ffe08c, #f2b93e);
  border-radius: 13px;
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 900;
  box-shadow: 0 7px 15px rgba(183, 121, 23, 0.14);
}

.leaderboard-head > div > span {
  color: #9b6b19;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.leaderboard-head h2 {
  margin: 3px 0 0;
  font-family: var(--font-serif);
  font-size: 21px;
  letter-spacing: -0.04em;
}

.leaderboard-summary {
  color: #967a4d;
  font-size: 9px;
}

.leaderboard-list {
  display: grid;
  padding: 15px 0 0;
  margin: 0;
  gap: 8px;
  list-style: none;
}

.leaderboard-entry {
  display: grid;
  grid-template-columns: 43px minmax(0, 1fr) auto;
  align-items: center;
  padding: 13px;
  gap: 13px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(183, 121, 23, 0.11);
  border-radius: 11px;
}

.leaderboard-entry.voted {
  background: white;
  border-color: rgba(15, 118, 110, 0.34);
  box-shadow: inset 3px 0 0 var(--pine);
}

.leaderboard-rank {
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  color: #8c6c30;
  background: #f4ead6;
  border-radius: 10px;
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 900;
}

.leaderboard-rank.rank-1 {
  color: #6f4500;
  background: linear-gradient(145deg, #ffe18f, #f2b93e);
}

.leaderboard-rank.rank-2 {
  color: #53605f;
  background: linear-gradient(145deg, #eef2f1, #cbd4d1);
}

.leaderboard-rank.rank-3 {
  color: #794c2e;
  background: linear-gradient(145deg, #f3d1b7, #d6a17a);
}

.leaderboard-entry-copy {
  min-width: 0;
}

.leaderboard-entry-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.leaderboard-entry-title h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 16px;
  letter-spacing: -0.025em;
}

.leaderboard-entry-copy > p {
  margin: 4px 0 0;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.leaderboard-submitter {
  display: flex;
  align-items: center;
  margin-top: 7px;
  gap: 5px;
  color: var(--ink-faint);
  font-size: 8px;
}

.leaderboard-submitter .mini-avatar {
  width: 18px;
  height: 18px;
  font-size: 8px;
}

.leaderboard-entry-side {
  display: grid;
  min-width: 66px;
  justify-items: end;
  gap: 5px;
}

.leaderboard-entry-side strong {
  color: #8d6115;
  font-family: var(--font-serif);
  font-size: 22px;
  line-height: 1;
}

.leaderboard-entry-side small {
  margin-left: 2px;
  color: var(--ink-faint);
  font-family: var(--font-sans);
  font-size: 8px;
  font-weight: 500;
}

.leaderboard-entry-side form {
  margin: 0;
}

.leaderboard-entry-side button {
  padding: 5px 9px;
  color: #79510c;
  background: #fff3d8;
  border: 1px solid #efd7a7;
  border-radius: 6px;
  cursor: pointer;
  font-size: 8px;
  font-weight: 700;
}

.leaderboard-entry-side button:hover {
  color: white;
  background: #b77917;
  border-color: #b77917;
}

.leaderboard-entry-side .delete-entry {
  color: #a44735;
  background: transparent;
  border-color: transparent;
}

.leaderboard-empty {
  display: grid;
  padding: 28px 16px;
  margin-top: 16px;
  place-items: center;
  gap: 3px;
  color: var(--ink-faint);
  background: rgba(255, 255, 255, 0.52);
  border: 1px dashed #e4d2b0;
  border-radius: 10px;
  text-align: center;
}

.leaderboard-empty strong {
  color: #775b2d;
  font-family: var(--font-serif);
  font-size: 14px;
}

.leaderboard-empty span {
  font-size: 9px;
}

.leaderboard-add {
  margin-top: 13px;
  border-top: 1px solid rgba(183, 121, 23, 0.13);
}

.leaderboard-add summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 2px 0;
  color: #8d6115;
  cursor: pointer;
  font-size: 10px;
  font-weight: 750;
  list-style: none;
}

.leaderboard-add summary::-webkit-details-marker {
  display: none;
}

.leaderboard-add summary span {
  color: var(--ink-faint);
  font-size: 8px;
  font-weight: 500;
}

.leaderboard-add[open] summary {
  padding-bottom: 13px;
}

.leaderboard-add form {
  padding: 16px;
  background: white;
  border: 1px solid rgba(183, 121, 23, 0.13);
  border-radius: 10px;
}

.leaderboard-add .field:last-of-type {
  margin-bottom: 14px;
}

.leaderboard-add textarea {
  min-height: 88px;
  resize: vertical;
}

.leaderboard-note {
  padding-top: 14px;
  margin-top: 13px;
  color: var(--ink-faint);
  border-top: 1px solid rgba(183, 121, 23, 0.13);
  font-size: 9px;
}

.leaderboard-note a {
  color: var(--pine);
  font-weight: 700;
}

.author-line small {
  color: var(--ink-faint);
  font-size: 9px;
}

.author-profile-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.author-profile-link:hover,
.post-author a:hover,
.reply-meta a:hover,
.contributor-row a:hover,
.leaderboard-submitter a:hover {
  color: var(--pine);
}

.account-card-title-label {
  color: var(--ink-faint);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.12em;
}

.account-profile-link {
  margin-top: 18px;
}

.account-avatar-panel {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: center;
  padding-bottom: 25px;
  margin-bottom: 25px;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}

.account-avatar,
.profile-avatar {
  display: inline-grid;
  flex: 0 0 auto;
  overflow: hidden;
  place-items: center;
  color: #0b5d57;
  border-radius: 50%;
  font-family: var(--font-serif);
  font-weight: 900;
}

.account-avatar {
  width: 88px;
  height: 88px;
  font-size: 28px;
}

.profile-avatar {
  width: 112px;
  height: 112px;
  font-size: 36px;
}

.account-avatar img,
.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.account-avatar-small {
  display: inline-grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  overflow: hidden;
  place-items: center;
  border-radius: 50%;
  font-size: 15px;
  font-weight: 800;
}

.account-avatar-small img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.account-avatar-panel h2 {
  margin: 4px 0 4px;
  font-family: var(--font-serif);
  font-size: 22px;
  letter-spacing: -0.04em;
}

.account-avatar-panel p {
  margin: 0 0 12px;
  color: var(--ink-faint);
  font-size: 9px;
}

.account-avatar-panel form {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}

.avatar-file-label {
  position: relative;
  cursor: pointer;
}

.avatar-file-label input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.avatar-file-label span {
  display: inline-flex;
  min-height: 36px;
  padding: 0 12px;
  align-items: center;
  color: var(--ink-soft);
  background: #f7f9f8;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 9px;
  font-weight: 700;
}

.avatar-file-label:focus-within span {
  border-color: var(--pine);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.08);
}

.remove-avatar-form {
  margin-top: 7px !important;
}

.profile-form-grid {
  display: grid;
  grid-template-columns: 1fr 0.7fr 1fr;
  gap: 10px;
}

.field select {
  width: 100%;
  min-height: 42px;
  padding: 10px 13px;
  color: var(--ink);
  background: #fbfaf6;
  border: 1px solid var(--line);
  border-radius: 9px;
  outline: 0;
  font-size: 12px;
}

.field select:focus {
  border-color: var(--pine-light);
  box-shadow: 0 0 0 3px rgba(23, 74, 60, 0.08);
}

.account-page .field textarea {
  min-height: 120px;
}

.profile-page {
  padding-top: 45px;
  padding-bottom: 90px;
}

.profile-hero {
  position: relative;
  display: flex;
  align-items: center;
  padding: 32px;
  overflow: hidden;
  gap: 24px;
  background:
    radial-gradient(circle at 90% 10%, rgba(201, 240, 102, 0.23), transparent 33%),
    linear-gradient(135deg, #ffffff, #eef9f5);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(17, 48, 43, 0.07);
}

.profile-hero::after {
  position: absolute;
  top: -95px;
  right: -70px;
  width: 280px;
  height: 280px;
  border: 1px solid rgba(15, 118, 110, 0.09);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.profile-hero .button {
  position: relative;
  z-index: 1;
  margin-left: auto;
}

.profile-identity {
  position: relative;
  z-index: 1;
}

.profile-identity h1 {
  margin: 5px 0 7px;
  font-family: var(--font-serif);
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -0.06em;
}

.profile-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--ink-faint);
  font-size: 9px;
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: start;
  padding-top: 18px;
  gap: 18px;
}

.profile-card {
  padding: 25px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.profile-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 0;
  margin: 0;
}

.profile-fields > div {
  padding: 18px 12px;
  border-bottom: 1px solid var(--line-soft);
}

.profile-fields dt {
  margin-bottom: 4px;
  color: var(--ink-faint);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.profile-fields dd {
  margin: 0;
  font-size: 13px;
  font-weight: 650;
}

.profile-bio {
  padding: 20px 12px 4px;
}

.profile-bio > span {
  color: var(--ink-faint);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.profile-bio p {
  margin: 7px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.75;
}

.profile-side {
  display: grid;
  gap: 14px;
}

.profile-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding-top: 15px;
  gap: 8px;
}

.profile-stat-grid > div {
  display: grid;
  gap: 2px;
}

.profile-stats strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 24px;
}

.profile-stats span {
  color: var(--ink-faint);
  font-size: 8px;
}

.profile-thread-list {
  display: grid;
  padding-top: 8px;
}

.profile-thread-list a {
  display: grid;
  padding: 10px 0;
  gap: 3px;
  border-bottom: 1px solid var(--line-soft);
}

.profile-thread-list a:last-child {
  border: 0;
}

.profile-thread-list a > span,
.profile-thread-list a > small {
  color: var(--ink-faint);
  font-size: 8px;
}

.profile-thread-list a > strong {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-thread-list a:hover > strong {
  color: var(--pine);
}

.profile-empty {
  margin: 10px 0 0;
  color: var(--ink-faint);
  font-size: 10px;
}

.badge-banned {
  color: #8d382b;
  background: #ffe3dc;
}

.admin-users-card {
  margin-bottom: 18px;
}

.admin-user-list {
  display: grid;
  padding-top: 10px;
}

.admin-user-row {
  display: grid;
  grid-template-columns: 49px minmax(0, 1fr) auto;
  align-items: center;
  padding: 13px 5px;
  gap: 12px;
  border-bottom: 1px solid var(--line-soft);
}

.admin-user-row:last-child {
  border: 0;
}

.admin-user-row.is-banned {
  opacity: 0.68;
}

.admin-user-identity {
  min-width: 0;
}

.admin-user-identity > div:first-child {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-user-identity strong {
  font-size: 12px;
}

.admin-user-identity strong a:hover {
  color: var(--pine);
}

.admin-user-identity > small {
  display: block;
  margin-top: 2px;
  color: var(--ink-faint);
  font-size: 8px;
}

.admin-user-meta {
  display: flex;
  flex-wrap: wrap;
  margin-top: 6px;
  gap: 4px 10px;
  color: var(--ink-faint);
  font-size: 8px;
}

.admin-user-actions {
  position: relative;
}

.admin-user-actions summary {
  padding: 7px 11px;
  color: var(--ink-soft);
  background: #f7f9f8;
  border: 1px solid var(--line);
  border-radius: 7px;
  cursor: pointer;
  font-size: 9px;
  font-weight: 700;
  list-style: none;
}

.admin-user-actions summary::-webkit-details-marker {
  display: none;
}

.admin-user-actions[open] {
  z-index: 2;
}

.admin-user-actions[open] summary {
  margin-bottom: 7px;
}

.admin-user-actions form {
  display: flex;
  align-items: center;
  margin-top: 6px;
  gap: 6px;
}

.admin-user-actions input {
  width: 150px;
  min-height: 32px;
  padding: 6px 9px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 9px;
}

.admin-user-actions button {
  padding: 6px 9px;
  color: var(--pine);
  background: rgba(15, 118, 110, 0.06);
  border: 1px solid rgba(15, 118, 110, 0.15);
  border-radius: 6px;
  cursor: pointer;
  font-size: 8px;
  font-weight: 700;
}

.admin-user-actions button.danger {
  color: #a44735;
  background: #fff0eb;
  border-color: #f0c9bf;
}

.admin-self-label {
  color: var(--ink-faint);
  font-size: 8px;
}

.student-id-public {
  padding: 2px 5px;
  color: #0b5e58;
  background: rgba(15, 118, 110, 0.08);
  border-radius: 4px;
  font-size: 8px;
}

.privacy-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.privacy-options > label {
  cursor: pointer;
}

.privacy-options input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.privacy-options label > span {
  display: grid;
  min-height: 63px;
  padding: 11px 12px;
  align-content: center;
  gap: 2px;
  background: #fbfaf6;
  border: 1px solid var(--line);
  border-radius: 9px;
}

.privacy-options strong {
  font-size: 10px;
}

.privacy-options small {
  color: var(--ink-faint);
  font-size: 8px;
}

.privacy-options input:checked + span {
  background: #e5f5f0;
  border-color: var(--pine);
  box-shadow: inset 0 0 0 1px var(--pine);
}

.privacy-options input:focus-visible + span {
  outline: 2px solid var(--pine);
  outline-offset: 2px;
}

.admin-identity small {
  color: var(--ink-faint);
  font-size: 8px;
  font-weight: 500;
}

.category-option-inner i {
  background: currentColor;
}

@media (max-width: 1180px) {
  .community-layout {
    grid-template-columns: 190px minmax(0, 1fr) 250px;
    gap: 14px;
  }

  .main-nav {
    gap: 15px;
  }

  .brand-copy strong {
    font-size: 15px;
  }
}

@media (max-width: 980px) {
  .brand-copy strong {
    max-width: 190px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hero-grid {
    padding: 32px;
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 30px;
  }

  .hero h1 {
    font-size: 46px;
  }

  .community-layout {
    grid-template-columns: 185px minmax(0, 1fr);
  }

  .channel-rail {
    grid-row: 1;
  }

  .feed-panel {
    grid-column: 2;
    grid-row: 1;
  }

  .community-layout > .sidebar {
    grid-column: 2;
    grid-template-columns: 1fr 1fr;
  }

  .community-layout > .sidebar .rules-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  body {
    padding-bottom: 73px;
  }

  .container {
    width: min(100% - 24px, 1240px);
  }

  .site-header .container {
    width: min(100% - 24px, 1240px);
  }

  .header-inner {
    min-height: 62px;
  }

  .brand-emblem {
    width: 37px;
    height: 37px;
    border-radius: 12px;
  }

  .brand-copy strong {
    max-width: none;
    font-size: 14px;
  }

  .brand-copy small {
    font-size: 8px;
  }

  .header-actions .button-small {
    min-height: 34px;
    padding-inline: 11px;
  }

  .hero {
    padding-top: 22px;
  }

  .hero-grid {
    display: block;
    padding: 27px 22px 20px;
    border-radius: 22px;
  }

  .hero h1 {
    font-size: clamp(37px, 11vw, 50px);
  }

  .hero-lead {
    font-size: 13px;
  }

  .hero-actions {
    margin-top: 21px;
  }

  .hero-stats {
    margin-top: 25px;
    margin-bottom: 20px;
  }

  .hero-panel {
    display: none;
  }

  .community-layout {
    display: block;
    padding-top: 13px;
    padding-bottom: 45px;
  }

  .channel-rail,
  .community-layout > .sidebar {
    display: none;
  }

  .feed-panel {
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .section-heading {
    padding-inline: 3px;
  }

  .section-heading h2 {
    font-size: 23px;
  }

  .search-bar {
    background: white;
  }

  .mobile-channel-strip {
    display: flex;
    padding: 8px 1px 11px;
    margin-bottom: 8px;
    overflow-x: auto;
    gap: 7px;
    scrollbar-width: none;
  }

  .mobile-channel-strip::-webkit-scrollbar {
    display: none;
  }

  .mobile-channel-strip a {
    flex: 0 0 auto;
    padding: 7px 12px;
    color: var(--ink-soft);
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 650;
  }

  .mobile-channel-strip a.active {
    color: white;
    background: var(--pine);
    border-color: var(--pine);
  }

  .thread-list {
    gap: 9px;
  }

  .thread-card {
    padding: 16px 12px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 15px;
  }

  .thread-card:hover {
    background: white;
  }

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

  .thread-excerpt {
    font-size: 12px;
  }

  .thread-read {
    padding: 4px 8px;
  }

  .mobile-dock {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 200;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    min-height: 62px;
    padding: 5px max(8px, env(safe-area-inset-left)) calc(5px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 30px rgba(17, 48, 43, 0.06);
    backdrop-filter: blur(18px);
  }

  .mobile-dock a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 2px;
    color: var(--ink-faint);
    font-size: 9px;
    font-weight: 650;
  }

  .mobile-dock svg {
    width: 20px;
    height: 20px;
  }

  .mobile-dock a.active {
    color: var(--pine);
  }

  .mobile-dock .mobile-compose-icon {
    display: grid;
    width: 34px;
    height: 28px;
    margin-top: -10px;
    place-items: center;
    color: #0c5a54;
    background: var(--lime);
    border-radius: 10px;
    box-shadow: 0 6px 15px rgba(128, 160, 47, 0.2);
    font-size: 18px;
  }

  .site-footer {
    margin-bottom: -73px;
  }

  .auth-visual .brand-copy strong {
    max-width: 260px;
  }

  .auth-visual .brand-copy small {
    font-size: 9px;
  }

  .auth-visual {
    min-height: 385px;
    padding: 88px 24px 34px;
  }

  .auth-visual blockquote {
    font-size: 28px;
  }

  .poll-card {
    padding: 18px;
  }

  .poll-head {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .poll-icon {
    width: 36px;
    height: 36px;
  }

  .poll-head .badge {
    grid-column: 2;
    justify-self: start;
  }

  .poll-head h2 {
    font-size: 18px;
  }

  .poll-submit-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .leaderboard-card {
    padding: 18px;
  }

  .leaderboard-head {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .leaderboard-icon {
    width: 38px;
    height: 38px;
  }

  .leaderboard-summary {
    grid-column: 2;
    margin-top: -4px;
  }

  .leaderboard-entry {
    grid-template-columns: 34px minmax(0, 1fr);
    padding: 11px;
    gap: 9px;
  }

  .leaderboard-rank {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }

  .leaderboard-entry-side {
    grid-column: 2;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
  }

  .leaderboard-entry-side strong {
    font-size: 17px;
  }

  .profile-form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .profile-page {
    padding-top: 25px;
    padding-bottom: 45px;
  }

  .profile-hero {
    align-items: flex-start;
    padding: 23px 18px;
    flex-wrap: wrap;
    gap: 15px;
    border-radius: 19px;
  }

  .profile-avatar {
    width: 82px;
    height: 82px;
    font-size: 28px;
  }

  .profile-identity {
    min-width: 0;
    flex: 1;
  }

  .profile-identity h1 {
    font-size: 31px;
  }

  .profile-hero .button {
    width: 100%;
    margin-left: 0;
  }

  .profile-layout {
    grid-template-columns: 1fr;
  }

  .profile-card {
    padding: 19px;
  }

  .profile-fields {
    grid-template-columns: 1fr;
  }

  .account-avatar-panel {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 14px;
  }

  .account-avatar {
    width: 72px;
    height: 72px;
    font-size: 23px;
  }

  .admin-user-row {
    grid-template-columns: 43px minmax(0, 1fr);
    align-items: start;
  }

  .account-avatar-small {
    width: 43px;
    height: 43px;
  }

  .admin-user-actions,
  .admin-self-label {
    grid-column: 2;
  }
}
