:root {
  --sidebar-width: 200px;
}

body.has-modal-open {
  overflow: hidden;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  width: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0 14px 18px;
  background: var(--sidebar-brand);
  border-right: 1px solid var(--sidebar-brand-deep);
  color: white;
  transition: width 180ms ease, padding 180ms ease;
}

.brand-block {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  height: var(--topbar-height);
  margin: 0 -14px;
  padding: 0 14px;
  background: var(--brand);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.88);
  border-radius: var(--radius-ui);
  color: white;
  background: transparent;
  font-weight: 800;
  letter-spacing: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
}

.brand-block strong,
.brand-block span {
  display: block;
}

.brand-block span,
.section-label,
.card-meta,
.result-count,
.form-note,
.notification-item span,
.log-row span {
  color: var(--muted);
  font-size: 12px;
}

.brand-block strong {
  color: white;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  line-height: 1;
}

.sidebar-toggle {
  position: absolute;
  top: 50%;
  right: -11px;
  z-index: 2;
  transform: translateY(-50%);
  width: 22px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-ui);
  background: rgba(0, 0, 0, 0.18);
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
  line-height: 1;
  opacity: 0.52;
}

.sidebar-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
  color: white;
  opacity: 1;
}

.brand-block span,
.sidebar .section-label {
  color: rgba(255, 255, 255, 0.74);
}

.nav-list,
.board-list,
.followed-tags {
  display: grid;
  gap: 4px;
}

.nav-list {
  padding-top: 2px;
}

.nav-item,
.board-link,
.tag-link,
.admin-link {
  width: 100%;
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 0;
  border-radius: var(--radius-ui);
  background: transparent;
  color: rgba(255, 255, 255, 0.88);
  text-align: left;
}

.nav-item > span:first-child {
  width: 18px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 18px;
  font-size: 13px;
}

.nav-item:hover,
.board-link:hover,
.tag-link:hover,
.admin-link:hover,
.sort-button:hover,
.tab-pill:hover,
.card-actions button:hover,
.detail-actions button:hover,
.comment-actions button:hover {
  background: var(--surface-muted);
}

.nav-item.is-active,
.board-link.is-active,
.tag-link.is-active,
.tab-pill.is-active,
.sort-button.is-active,
.admin-tabs .is-active {
  background: var(--brand-weak);
  color: var(--brand);
}

.sidebar .nav-item.is-active,
.sidebar .board-link.is-active,
.sidebar .tag-link.is-active {
  background: white;
  color: var(--sidebar-brand);
  box-shadow: none;
  font-weight: 800;
}

.sidebar .nav-item:hover,
.sidebar .board-link:hover,
.sidebar .tag-link:hover,
.sidebar .admin-link:hover {
  background: rgba(255, 255, 255, 0.12);
  color: white;
}

.sidebar-section,
.tag-follow-section {
  min-height: 0;
}

.tag-follow-section {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.tag-link {
  min-height: 30px;
  padding: 5px 10px;
  border-radius: var(--radius-ui);
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 700;
}

.section-label {
  margin: 0 0 8px 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.board-link {
  justify-content: space-between;
}

.admin-link {
  margin-top: auto;
  color: white;
  font-weight: 700;
}

body.is-sidebar-collapsed {
  --sidebar-width: 78px;
}

.sidebar.is-collapsed {
  align-items: center;
  padding: 14px 9px;
}

.sidebar.is-collapsed .brand-block {
  justify-content: center;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  background: transparent;
  border-bottom: 0;
}

.sidebar.is-collapsed .brand-block div:not(.brand-mark),
.sidebar.is-collapsed .nav-item span:last-child,
.sidebar.is-collapsed .section-label,
.sidebar.is-collapsed .tag-follow-section,
.sidebar.is-collapsed .admin-link {
  display: none;
}

.sidebar.is-collapsed .nav-item {
  justify-content: center;
  width: 44px;
}

.sidebar.is-collapsed .sidebar-toggle {
  position: absolute;
  top: 50%;
  right: -11px;
  transform: translateY(-50%);
  width: 22px;
  height: 34px;
  background: rgba(0, 0, 0, 0.18);
  color: rgba(255, 255, 255, 0.68);
  border-color: rgba(255, 255, 255, 0.16);
}

.sidebar.is-collapsed .sidebar-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

body.is-faculty-view .sidebar {
  background: #101725;
  border-right-color: #0a0f19;
}

body.is-faculty-view .brand-block,
body.is-faculty-view .topbar {
  background: #101725;
}

body.is-faculty-view .topbar {
  border-bottom-color: #0a0f19;
}

.topbar {
  position: fixed;
  inset: 0 0 auto var(--sidebar-width);
  z-index: 20;
  height: var(--topbar-height);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 10px 28px;
  background: var(--brand);
  border-bottom: 1px solid var(--brand-deep);
  backdrop-filter: blur(12px);
  transition: inset 180ms ease;
}

.search-shell {
  position: absolute;
  left: calc(50vw - var(--sidebar-width) + 44px);
  transform: translateX(-50%);
  width: min(620px, calc(100% - 360px));
  height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 15px;
  border: 1px solid transparent;
  border-radius: var(--radius-ui);
  background: rgba(255, 255, 255, 0.96);
}

.search-shell:focus-within {
  border-color: color-mix(in srgb, var(--brand) 28%, transparent);
  box-shadow: var(--focus);
}

.search-shell.is-faculty-search:focus-within {
  border-color: color-mix(in srgb, var(--topbar-search-theme, var(--brand)) 42%, transparent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--topbar-search-theme, var(--brand)) 24%, transparent);
}

.search-shell input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.ghost-button,
.primary-button,
.icon-button,
.profile-chip,
.sort-button,
.tab-pill,
.card-actions button,
.detail-actions button,
.comment-actions button,
.admin-tabs button,
.admin-actions button,
.admin-row button {
  border: 0;
  border-radius: var(--radius-ui);
  background: transparent;
  color: var(--text);
}

.ghost-button,
.primary-button {
  min-height: 32px;
  padding: 0 12px;
  font-weight: 700;
}

.primary-button {
  background: var(--brand);
  color: white;
}

.topbar .ghost-button,
.topbar .icon-button {
  color: white;
}

.topbar .icon-button {
  font-size: 14px;
}

.topbar .ghost-button {
  border: 1px solid rgba(255, 255, 255, 0.42);
}

.topbar .ghost-button {
  height: 32px;
  font-size: 13px;
}

.topbar .ghost-button:hover,
.topbar .icon-button:hover {
  background: rgba(255, 255, 255, 0.13);
}

.icon-button {
  position: relative;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  font-size: 19px;
}

.notification-button {
  width: 32px;
  min-width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.34);
}

.bell-icon {
  width: 17px;
  height: 17px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--brand);
  color: white;
  font-size: 10px;
}

.profile-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px 4px 4px;
  background: rgba(255, 255, 255, 0.14);
  color: white;
}

.avatar {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border: 0;
  border-radius: var(--radius-ui);
  background: linear-gradient(135deg, var(--brand-deep), var(--brand-bright));
  color: white;
  font-weight: 800;
  letter-spacing: 0;
}

.avatar-small {
  width: 26px;
  height: 26px;
  font-size: 11px;
}

.avatar-normal {
  width: 34px;
  height: 34px;
  font-size: 13px;
}

.avatar-large {
  width: 82px;
  height: 82px;
  font-size: 24px;
}

.avatar-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-ui);
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.avatar-button:hover {
  background: transparent;
}

.avatar-button:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--brand) 55%, transparent);
  outline-offset: 3px;
}

.thread-author-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  cursor: pointer;
}

.thread-author-button:hover {
  color: #0e1947;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.main-content {
  margin-left: var(--sidebar-width);
  padding: calc(var(--topbar-height) + 12px) 24px 48px;
  transition: margin-left 180ms ease;
}

.feed-top-row {
  position: sticky;
  top: var(--topbar-height);
  z-index: 12;
  display: grid;
  grid-template-columns: 260px minmax(720px, 860px) 260px;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.feed-tool-rail {
  justify-self: end;
}

.board-tabs {
  min-width: 0;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  width: 100%;
  margin: 0;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius-ui);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
}

.tab-pill,
.sort-button {
  flex: 0 0 auto;
  min-height: 28px;
  padding: 0 11px;
  border-radius: var(--radius-ui);
  font-size: 13px;
}

.feed-intro {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 44px;
  margin: 0;
  color: var(--text);
  font-size: initial;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.profile-hero h1 {
  margin: 0;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.05;
  letter-spacing: 0;
}

.profile-hero p {
  max-width: 620px;
  margin: 8px 0 0;
  color: var(--muted);
}

.feed-layout {
  display: grid;
  grid-template-columns: 260px minmax(720px, 860px) 260px;
  justify-content: center;
  align-items: start;
  gap: 12px;
  margin-top: 0;
}

.feed-column {
  min-width: 0;
  grid-column: 2;
}

.sort-menu {
  position: relative;
}

.sort-menu summary {
  width: 34px;
  min-width: 34px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-ui);
  background: #ffffff;
  color: var(--brand);
  font-size: 0;
  cursor: pointer;
  list-style: none;
}

.sort-menu summary::-webkit-details-marker {
  display: none;
}

.sort-menu summary::before {
  content: "";
  width: 14px;
  height: 14px;
  background:
    linear-gradient(var(--brand) 0 0) left top / 5px 5px no-repeat,
    linear-gradient(var(--brand) 0 0) right top / 5px 5px no-repeat,
    linear-gradient(var(--brand) 0 0) left bottom / 5px 5px no-repeat,
    linear-gradient(var(--brand) 0 0) right bottom / 5px 5px no-repeat;
}

.sort-popover {
  position: absolute;
  top: 42px;
  left: 0;
  z-index: 15;
  width: 118px;
  display: grid;
  gap: 4px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius-ui);
  background: #ffffff;
}

.sort-popover .sort-button {
  width: 100%;
  justify-content: flex-start;
  text-align: left;
}

.sort-menu:not([open]) .sort-popover {
  display: none;
}

.result-count {
  display: none;
}

.masonry-feed {
  max-width: 860px;
  margin: 0 auto;
  column-count: initial;
  column-gap: 0;
  border: 1px solid #d5d5d5;
  border-radius: var(--radius-ui);
  background: #ffffff;
  overflow: hidden;
}

.feed-sidebar {
  position: sticky;
  grid-column: 3;
  top: calc(var(--topbar-height) + 58px);
  display: grid;
  gap: 14px;
}

.feed-hot-rail {
  position: sticky;
  grid-column: 1;
  top: calc(var(--topbar-height) + 58px);
  width: 100%;
  min-width: 0;
}

.side-widget {
  border: 1px solid var(--line);
  border-radius: var(--radius-ui);
  background: #ffffff;
  padding: 14px 14px 16px;
}

.calendar-widget h2,
.hot-posts-widget h2,
.campus-events-widget h2,
.student-events-widget h2 {
  margin: 0 0 12px;
  color: #0e1947;
  font-size: 15px;
  font-weight: 800;
}

.feed-hot-rail .hot-posts-widget {
  display: grid;
  gap: 10px;
  margin-top: 0;
  padding: 14px 14px 16px;
  background: #ffffff;
}

.widget-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.widget-title-row h2 {
  margin: 0;
}

.widget-title-row button {
  border: 0;
  border-radius: var(--radius-ui);
  background: #f0f3f8;
  color: #0e1947;
  font-size: 12px;
  font-weight: 800;
}

.hot-post-list {
  display: grid;
  gap: 0;
}

.hot-post-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 54px;
  gap: 10px;
  width: 100%;
  padding: 10px 0;
  border: 0;
  border-top: 1px solid #e8ebf1;
  background: transparent;
  color: #0e1947;
  text-align: left;
}

.hot-post-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.hot-post-copy small,
.hot-post-copy em {
  overflow: hidden;
  color: #737c8d;
  font-size: 12px;
  font-style: normal;
  line-height: 1.25;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.hot-post-copy strong {
  display: -webkit-box;
  overflow: hidden;
  color: #0e1947;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 800;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.hot-post-thumb {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #dce2ed;
  border-radius: var(--radius-ui);
  background: #eef2f8;
}

.hot-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hot-post-initial {
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
}

.campus-events-widget,
.student-events-widget {
  display: grid;
  gap: 10px;
}

.event-link {
  display: grid;
  gap: 7px;
  color: #0e1947;
  font-size: 13px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.event-link span::after {
  content: "↗";
  margin-left: 4px;
  color: var(--muted);
  font-size: 10px;
}

.event-thumb {
  min-height: 58px;
  display: block;
  border-radius: var(--radius-ui);
  border: 1px solid #d5dbe8;
  background:
    linear-gradient(135deg, rgba(14, 25, 71, 0.28), rgba(255, 255, 255, 0.18)),
    linear-gradient(110deg, #b8d6f2 0 38%, #f6f1e8 38% 62%, #7d8eb4 62% 100%);
}

.event-thumb-night {
  background:
    linear-gradient(135deg, rgba(0, 11, 52, 0.2), rgba(255, 255, 255, 0.12)),
    linear-gradient(120deg, #09184d 0 34%, #315c9e 34% 55%, #f1f3f7 55% 66%, #1e2b54 66% 100%);
}

.student-promo {
  display: grid;
  gap: 4px;
  padding: 10px 11px;
  border: 1px solid #dce2ed;
  border-radius: var(--radius-ui);
  background: #f6f8fc;
  color: #0e1947;
}

.student-promo strong {
  font-size: 13px;
}

.student-promo span {
  color: #687386;
  font-size: 12px;
  line-height: 1.45;
}

.calendar-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.calendar-head strong {
  color: var(--brand);
  font-size: 14px;
}

.calendar-head span {
  color: var(--muted);
  font-size: 12px;
}

.calendar-mode {
  display: flex;
  gap: 6px;
  justify-content: space-between;
  margin-bottom: 12px;
}

.calendar-mode span {
  flex: 1;
  min-width: 0;
  padding: 5px 10px;
  border-radius: var(--radius-ui);
  background: #f3f5f9;
  color: var(--brand);
  text-align: center;
  font-size: 11px;
  font-weight: 800;
}

.calendar-week,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  text-align: center;
}

.calendar-week {
  padding: 10px 0 6px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.calendar-grid span {
  min-height: 27px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-ui);
  color: #4b5563;
  font-size: 12px;
  font-weight: 700;
}

.calendar-grid .is-muted {
  color: #a7adb7;
}

.calendar-grid .is-today {
  background: var(--brand);
  color: #ffffff;
}

.calendar-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.calendar-links button {
  border: 0;
  border-radius: var(--radius-ui);
  padding: 4px 8px;
  background: var(--brand-weak);
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
}

.calendar-links button:nth-child(2) {
  background: #eef2f8;
}

.post-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  width: 100%;
  margin: 0;
  padding: 20px 24px 18px;
  break-inside: avoid;
  border-radius: 0;
  border-bottom: 1px solid #d5d5d5;
  background: transparent;
  overflow: hidden;
  transition:
    background 160ms ease;
}

.post-card:hover {
  background: transparent;
}

.post-card:last-child {
  border-bottom: 0;
}

.thread-avatar {
  padding-top: 2px;
}

.thread-avatar .avatar {
  border: 1px solid #d5d5d5;
  border-radius: 1000px;
  background: #f2f2f2;
  color: #20242c;
}

.is-hidden-post {
  opacity: 0.62;
}

.media-strip {
  position: relative;
  width: min(100%, 466px);
  margin-top: 14px;
}

.media-track {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  cursor: grab;
  touch-action: pan-x;
}

.media-track::-webkit-scrollbar {
  display: none;
}

.post-media {
  width: 150px;
  height: 112px;
  flex: 0 0 150px;
  display: block;
  border: 1px solid #d5d5d5;
  border-radius: var(--radius-ui);
  object-fit: cover;
  object-position: center;
  background: #efefef;
  scroll-snap-align: start;
}

.media-nav {
  display: none;
}

.media-prev {
  left: 0;
}

.media-next {
  right: 0;
}

.text-art {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  background:
    radial-gradient(circle at 80% 16%, rgba(0, 32, 91, 0.14), transparent 30%),
    linear-gradient(135deg, #f9fafc, #e9efff);
}

.text-art span {
  color: #969696;
  font-size: 12px;
  font-weight: 700;
}

.text-art strong {
  color: var(--brand);
  font-size: 26px;
  line-height: 1;
}

.post-card-body {
  position: relative;
  padding: 0;
  padding-right: 132px;
}

.card-top-actions {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.post-time,
.card-top-actions .flag {
  white-space: nowrap;
}

.post-more-menu {
  position: relative;
}

.post-more-menu summary {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: var(--radius-ui);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  list-style: none;
  line-height: 1;
}

.post-more-menu summary::-webkit-details-marker {
  display: none;
}

.card-top-actions button {
  min-height: 30px;
  border: 0;
  border-radius: var(--radius-ui);
  background: transparent;
  color: var(--muted);
  font-size: 13px;
}

.post-more-menu summary:hover,
.card-top-actions button:hover {
  background: var(--surface-muted);
  color: #385898;
}

.post-more-popover {
  position: absolute;
  top: 30px;
  right: 0;
  z-index: 12;
  min-width: 84px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: var(--radius-ui);
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(12, 19, 36, 0.12);
}

.post-more-popover button {
  width: 100%;
  justify-content: flex-start;
  padding: 0 10px;
  text-align: left;
}

.thread-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.thread-meta strong {
  color: #000000;
  font-weight: 600;
}

.verified-dot {
  display: inline-grid;
  place-items: center;
  width: 14px;
  height: 14px;
  border-radius: 1000px;
  background: #385898;
  color: white;
  font-size: 10px;
  line-height: 1;
}

.post-flags,
.tag-row,
.card-actions,
.detail-actions,
.comment-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.flag,
.tag-row span,
.edited {
  border-radius: var(--radius-ui);
  padding: 2px 7px;
  background: var(--surface-muted);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.flag.danger {
  color: var(--danger);
  background: #fff0f2;
}

.post-card h2 {
  margin: 7px 0 6px;
  overflow: visible;
  font-size: 19px;
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: 0;
  color: #0e1947;
}

.post-card p {
  display: block;
  margin: 0 0 12px;
  overflow: visible;
  color: #000000;
  font-size: 16px;
  line-height: 1.55;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  margin-top: 10px;
}

.card-actions {
  justify-content: flex-start;
  gap: 14px;
  margin-top: 10px;
}

.card-action-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.post-time {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.media-strip + .tag-row {
  margin-top: 12px;
}

.card-actions button,
.detail-actions button,
.comment-actions button {
  min-height: 30px;
  padding: 0;
  color: #000000;
}

.post-action-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #303642;
  font-size: 14px;
  line-height: 1;
}

.post-action-button:hover {
  color: #000000;
}

.action-icon {
  width: 19px;
  height: 19px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.action-icon-send {
  width: 20px;
  height: 20px;
}

.post-action-button span {
  color: #303642;
  font-size: 13px;
  line-height: 1;
}

.card-actions button:hover,
.detail-actions button:hover,
.comment-actions button:hover {
  color: #0e1947;
  background: transparent;
}

.card-actions .is-active,
.detail-actions .is-active {
  color: #303642;
  background: transparent;
}

.card-actions .is-active .action-icon,
.detail-actions .is-active .action-icon {
  fill: #0e1947;
  stroke: #0e1947;
}

.card-actions .is-active span,
.detail-actions .is-active span {
  color: #303642;
}

.empty-state,
.load-state {
  max-width: 720px;
  margin: 24px auto;
  padding: 28px;
  border-radius: var(--radius-md);
  background: var(--surface);
  text-align: center;
}

.empty-state span,
.load-state p {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}

.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.skeleton-grid span {
  height: 70px;
  border-radius: var(--radius-sm);
  background: linear-gradient(90deg, #eef1f6, #f8f9fc, #eef1f6);
}

.skeleton-grid span:nth-child(2) {
  height: 96px;
}

.skeleton-grid span:nth-child(3) {
  height: 118px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(18, 23, 33, 0.34);
  overscroll-behavior: contain;
}

.modal-card,
.drawer-card {
  width: min(560px, 100%);
  max-height: min(86vh, 920px);
  overflow: auto;
  border-radius: 16px;
  background: var(--surface);
}

.modal-wide {
  width: min(720px, 100%);
}

.create-modal {
  width: min(900px, calc(100vw - 40px));
  overflow: hidden;
}

.detail-modal,
.admin-modal {
  width: min(980px, 100%);
}

.detail-modal {
  width: min(1080px, calc(100vw - 48px));
  max-height: min(88vh, 960px);
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  background: #f7f9fc;
}

.detail-modal::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.auth-modal {
  width: min(860px, calc(100vw - 32px));
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1fr);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #111521;
  color: #ffffff;
}

.auth-info-panel,
.auth-form-panel {
  min-width: 0;
  padding: 34px;
}

.auth-info-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(circle at 18% 22%, rgba(83, 118, 190, 0.28), transparent 30%),
    linear-gradient(145deg, #131a2b, #0b0f18);
}

.auth-brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-weight: 900;
}

.auth-info-panel h2 {
  max-width: 360px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: 0;
}

.auth-info-panel p {
  max-width: 390px;
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.65;
}

.auth-proof-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.auth-proof-list span {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-ui);
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  font-weight: 800;
}

.auth-info-panel .auth-small-note {
  color: rgba(255, 255, 255, 0.56);
  font-size: 12px;
}

.auth-form-panel {
  background: #151515;
}

.auth-modal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 26px;
}

.auth-modal-top h2 {
  margin: 0;
  color: #ffffff;
  font-size: 22px;
}

.auth-modal .icon-button {
  color: #ffffff;
}

.auth-form {
  padding: 0;
}

.auth-form p,
.auth-modal .form-note {
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.5;
}

.auth-form label {
  color: rgba(255, 255, 255, 0.68);
}

.auth-form input {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #242424;
  color: #ffffff;
}

.auth-form input::placeholder {
  color: rgba(255, 255, 255, 0.34);
}

.auth-modal .primary-button {
  min-height: 46px;
  justify-content: center;
  border-color: #ffffff;
  background: #ffffff;
  color: #000b34;
}

.auth-modal .success-state {
  padding: 0;
  color: rgba(255, 255, 255, 0.72);
}

.auth-modal .success-state strong {
  color: #ffffff;
}

.drawer-card {
  position: fixed;
  top: 80px;
  right: 22px;
  width: min(420px, calc(100vw - 32px));
}

.modal-header {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.modal-header h2 {
  margin: 0;
  font-size: 20px;
}

.modal-header p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.stack-form,
.profile-editor {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.create-modal .stack-form {
  gap: 16px;
  padding: 18px;
  background: #f7f9fc;
}

.create-type-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.create-type-tabs button {
  min-height: 68px;
  display: grid;
  align-content: center;
  gap: 4px;
  border: 1px solid #d9dfeb;
  border-radius: var(--radius-ui);
  padding: 10px;
  background: #ffffff;
  color: #0e1947;
  text-align: left;
}

.create-type-tabs button strong {
  font-size: 14px;
  font-weight: 950;
}

.create-type-tabs button span {
  color: #647084;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
}

.create-type-tabs button:hover,
.create-type-tabs button.is-active {
  border-color: #0e1947;
  background: #0e1947;
  color: #ffffff;
}

.create-type-tabs button:hover span,
.create-type-tabs button.is-active span {
  color: rgba(255, 255, 255, 0.74);
}

.create-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid #d9dfeb;
  border-radius: var(--radius-ui);
  background: #ffffff;
}

.create-two-column,
.create-rating-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.create-rating-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.media-upload-entry {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px dashed #b9c3d3;
  border-radius: var(--radius-ui);
  background: #f8fafc;
}

.media-upload-entry span {
  color: #647084;
  font-size: 12px;
  font-weight: 750;
}

.create-submit-button {
  min-height: 42px;
}

.stack-form label,
.profile-editor label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.stack-form input,
.stack-form select,
.stack-form textarea,
.profile-editor input,
.profile-editor textarea,
.admin-actions select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 11px;
  background: #fff;
  color: var(--text);
}

.form-note {
  margin: 0;
}

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

.success-text,
.success-state strong {
  color: var(--brand);
}

.success-state {
  padding: 18px;
}

.settings-body {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.settings-body section {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-ui);
  background: #ffffff;
}

.settings-body h3 {
  margin: 0 0 6px;
  font-size: 15px;
}

.settings-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.detail-post {
  display: grid;
  gap: 16px;
  padding: 22px 24px 18px;
  background: #ffffff;
}

.detail-post-hero {
  display: grid;
  gap: 12px;
}

.detail-author-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
}

.detail-author-row .avatar-button {
  margin-top: 1px;
}

.detail-author-row > div {
  display: grid;
  gap: 2px;
}

.detail-author-row .thread-author-button {
  justify-self: start;
  color: #0e1947;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.2;
}

.detail-author-row span {
  color: #6a7280;
  font-size: 13px;
  line-height: 1.35;
}

.detail-post h1 {
  margin: 0;
  color: #0e1947;
  font-size: clamp(24px, 2vw, 34px);
  line-height: 1.24;
  letter-spacing: 0;
}

.detail-media-wrap {
  overflow: hidden;
  border: 1px solid #dfe5ee;
  border-radius: var(--radius-ui);
  background: #f8fafc;
}

.detail-post .post-media {
  border-radius: var(--radius-ui);
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 460px;
  object-fit: cover;
}

.detail-post-body {
  padding: 16px;
  border: 1px solid #e1e7f0;
  border-radius: var(--radius-ui);
  background: #f8fafc;
}

.detail-post-body p {
  margin: 0;
  color: var(--text);
  font-size: 17px;
  line-height: 1.65;
}

.detail-post .tag-row span {
  background: #edf2f8;
  color: #43506a;
}

.detail-actions {
  padding-top: 2px;
  gap: 10px;
}

.detail-actions button:not(.post-action-button) {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid #d9e1ec;
  background: #ffffff;
  color: #0e1947;
  font-weight: 800;
}

.comment-section {
  display: grid;
  gap: 14px;
  padding: 18px 24px 24px;
  border-top: 1px solid #e1e7f0;
  background: #f7f9fc;
}

.comment-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.comment-section-head h3 {
  margin: 0;
  color: #0e1947;
  font-size: 22px;
}

.comment-section-head span {
  color: #6a7280;
  font-size: 13px;
  font-weight: 800;
}

.comment-form {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid #dfe5ee;
  border-radius: var(--radius-ui);
  background: #ffffff;
}

.comment-form textarea {
  width: 100%;
  min-height: 92px;
  border: 1px solid #d9e1ec;
  border-radius: var(--radius-ui);
  padding: 12px;
  resize: vertical;
}

.comment-form button {
  justify-self: end;
  min-width: 110px;
}

.locked-note {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
  color: var(--muted);
}

.comment-item {
  position: relative;
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  margin-left: calc(var(--depth) * 16px);
  padding: 6px 0;
}

.comment-line {
  width: 2px;
  min-height: 100%;
  border-radius: 999px;
  background: linear-gradient(180deg, #d8e1ee, #eef3f8);
}

.comment-header {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.comment-header > div {
  display: grid;
  gap: 2px;
}

.comment-header .thread-author-button {
  justify-self: start;
  color: #0e1947;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
}

.comment-header span {
  color: #6a7280;
  font-size: 12px;
  line-height: 1.3;
}

.comment-body {
  margin: 10px 0 12px;
  color: #1d2430;
  font-size: 15px;
  line-height: 1.58;
}

.comment-content {
  padding: 14px 16px;
  border: 1px solid #dfe6f0;
  border-radius: var(--radius-ui);
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(14, 25, 71, 0.04);
}

.comment-item[style*="--depth:1"] .comment-content,
.comment-item[style*="--depth:2"] .comment-content,
.comment-item[style*="--depth:3"] .comment-content,
.comment-item[style*="--depth:4"] .comment-content,
.comment-item[style*="--depth:5"] .comment-content {
  background: #fbfcfe;
  box-shadow: none;
}

.comment-thread {
  display: grid;
  gap: 9px;
}

.comment-content > .comment-thread {
  margin-top: 10px;
  padding-top: 2px;
}

.comment-actions {
  gap: 8px;
}

.comment-actions button {
  min-height: 26px;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: var(--radius-ui);
  color: #4d596d;
  font-size: 12px;
  font-weight: 850;
}

.comment-actions button:hover {
  border-color: #d7e0ec;
  background: #f5f8fc;
}

.empty-comments {
  margin: 0;
  padding: 18px;
  border: 1px dashed #cfd8e6;
  border-radius: var(--radius-ui);
  background: #ffffff;
  color: #6a7280;
}

.notification-list {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.notification-item,
.admin-row,
.log-row,
.mini-post {
  display: block;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  text-align: left;
}

.notification-item.is-unread {
  border-color: color-mix(in srgb, var(--brand) 28%, var(--line));
  background: var(--brand-weak);
}

.profile-page {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 24px;
}

.profile-hero {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px;
  border-radius: var(--radius-md);
  background: #fff;
}

.profile-hero > div:not(.profile-actions) {
  min-width: 0;
}

.profile-actions {
  margin-left: auto;
}

.profile-actions .ghost-button {
  color: #0e1947;
}

.profile-editor {
  margin: 16px 0;
  border-radius: var(--radius-md);
  background: #fff;
}

.profile-whiteboard-section {
  margin: 16px 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
}

.whiteboard-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.whiteboard-heading h2 {
  margin: 0 0 6px;
  color: #0e1947;
  font-size: 22px;
  line-height: 1.2;
}

.whiteboard-heading p {
  margin: 0;
  color: var(--muted);
}

.whiteboard-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.whiteboard-toolbar .ghost-button {
  border: 1px solid var(--line);
  color: #0e1947;
  background: #f8fafc;
}

.user-whiteboard {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid #d8dee9;
  border-radius: var(--radius-md);
  background:
    linear-gradient(rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.86)),
    linear-gradient(#eef3fb 1px, transparent 1px),
    linear-gradient(90deg, #eef3fb 1px, transparent 1px);
  background-size: auto, 32px 32px, 32px 32px;
}

.user-whiteboard.is-editable {
  cursor: default;
}

.whiteboard-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--muted);
  text-align: center;
}

.whiteboard-item {
  position: absolute;
  z-index: 1;
  min-width: 140px;
  border: 1px solid rgba(14, 25, 71, 0.14);
  border-radius: var(--radius-ui);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 12px 28px rgba(14, 25, 71, 0.08);
}

.whiteboard-item.is-dragging {
  z-index: 3;
  opacity: 0.88;
}

.whiteboard-text-item {
  padding: 14px;
}

.whiteboard-text-item p {
  margin: 0;
  color: #172033;
  font-size: 15px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.whiteboard-image-item {
  overflow: hidden;
}

.whiteboard-image-item img {
  display: block;
  width: 100%;
  max-height: 240px;
  object-fit: cover;
}

.whiteboard-image-item a {
  color: inherit;
}

.whiteboard-link-hint {
  display: block;
  padding: 7px 10px;
  border-top: 1px solid var(--line);
  color: #0e1947;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.whiteboard-item-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 7px;
  border-bottom: 1px solid rgba(14, 25, 71, 0.08);
  background: rgba(248, 250, 252, 0.92);
}

.whiteboard-item-controls button {
  min-height: 24px;
  padding: 0 7px;
  border: 1px solid var(--line);
  border-radius: var(--radius-ui);
  background: #fff;
  color: #0e1947;
  font-size: 12px;
  font-weight: 700;
}

.whiteboard-item-controls button[data-action="whiteboard-drag"] {
  cursor: grab;
}

.user-profile-modal {
  width: min(980px, calc(100vw - 48px));
  overflow: hidden;
  background: #f7f9fc;
}

.user-profile-summary {
  position: relative;
  display: grid;
  gap: 16px;
  padding: 0 22px 20px;
  border-bottom: 1px solid #e0e6ef;
  background: #ffffff;
}

.user-profile-cover {
  height: 118px;
  margin: 0 -22px;
  background:
    linear-gradient(135deg, rgba(14, 25, 71, 0.92), rgba(56, 88, 152, 0.72)),
    linear-gradient(90deg, #0e1947, #385898);
}

.user-profile-identity {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  align-items: end;
  margin-top: -46px;
}

.user-profile-identity .avatar-large {
  width: 96px;
  height: 96px;
  border: 4px solid #ffffff;
  box-shadow: 0 12px 28px rgba(14, 25, 71, 0.18);
}

.user-profile-summary h3 {
  margin: 0 0 6px;
  color: #0e1947;
  font-size: 30px;
  line-height: 1.12;
}

.user-profile-summary p,
.user-profile-summary span {
  color: var(--muted);
}

.user-profile-summary .eyebrow {
  width: fit-content;
  margin: 0 0 6px;
  border-radius: var(--radius-ui);
  padding: 3px 8px;
  background: #edf2f8;
  color: #0e1947;
  font-size: 12px;
  font-weight: 900;
}

.user-profile-summary p:not(.eyebrow) {
  max-width: 680px;
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
}

.user-profile-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.user-profile-stats span {
  display: grid;
  gap: 3px;
  padding: 12px;
  border: 1px solid #e0e6ef;
  border-radius: var(--radius-ui);
  background: #f8fafc;
  font-size: 12px;
  font-weight: 800;
}

.user-profile-stats strong {
  color: #0e1947;
  font-size: 18px;
  line-height: 1.1;
}

.user-profile-posts {
  display: grid;
  gap: 12px;
  padding: 20px 22px 24px;
}

.user-profile-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.user-profile-section-head h3 {
  margin: 0;
  color: #0e1947;
  font-size: 22px;
}

.user-profile-section-head span {
  color: #6a7280;
  font-size: 13px;
  font-weight: 850;
}

.user-profile-post-list {
  display: grid;
  gap: 10px;
}

.user-profile-empty {
  margin: 0;
  padding: 18px;
  border: 1px dashed #cbd5e3;
  border-radius: var(--radius-ui);
  background: #ffffff;
  color: #6a7280;
}

.profile-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.profile-columns section {
  padding: 16px;
  border-radius: var(--radius-md);
  background: #fff;
}

.campus-info-main {
  padding: var(--topbar-height) 0 64px;
  background:
    linear-gradient(180deg, rgba(245, 247, 251, 0.92), #f5f7fb 420px),
    radial-gradient(circle at 78% 8%, rgba(0, 11, 52, 0.16), transparent 32%);
}

.campus-info-page {
  width: min(1500px, calc(100% - 48px));
  margin: 0 auto;
  color: #111827;
}

.campus-info-hero {
  position: relative;
  min-height: 220px;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 34px 44px;
  background:
    linear-gradient(90deg, rgba(255, 219, 22, 0.98), rgba(255, 207, 0, 0.86)),
    radial-gradient(circle at 74% 35%, rgba(0, 11, 52, 0.18), transparent 34%);
}

.campus-info-hero::before,
.campus-info-hero::after {
  content: "";
  position: absolute;
  inset: auto;
  pointer-events: none;
}

.campus-info-hero::before {
  right: 9%;
  top: -36px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background:
    linear-gradient(135deg, rgba(0, 11, 52, 0.92), rgba(39, 53, 249, 0.58)),
    repeating-linear-gradient(45deg, transparent 0 18px, rgba(255, 255, 255, 0.18) 18px 20px);
  clip-path: polygon(18% 0, 100% 22%, 73% 100%, 0 82%);
  transform: rotate(8deg);
}

.campus-info-hero::after {
  right: 4%;
  bottom: 22px;
  width: 240px;
  height: 78px;
  background:
    linear-gradient(110deg, transparent 0 18%, rgba(0, 11, 52, 0.9) 18% 40%, transparent 40% 49%, rgba(255, 255, 255, 0.72) 49% 56%, transparent 56%),
    linear-gradient(90deg, rgba(0, 11, 52, 0.12), rgba(0, 11, 52, 0.24));
}

.campus-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.campus-hero-copy span {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 9px;
  background: #111827;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.campus-hero-copy h1 {
  max-width: 760px;
  margin: 0;
  color: #0a0c10;
  font-size: clamp(36px, 4.8vw, 68px);
  line-height: 0.96;
  letter-spacing: 0;
  font-weight: 900;
}

.campus-hero-copy p {
  max-width: 560px;
  margin: 16px 0 0;
  color: rgba(17, 24, 39, 0.78);
  font-size: 15px;
  line-height: 1.55;
}

.campus-hero-tabs {
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 50%;
  display: flex;
  gap: 3px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  transform: translateX(-50%);
}

.campus-hero-tabs button {
  min-width: 78px;
  min-height: 30px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #0e1947;
  font-size: 13px;
  font-weight: 800;
}

.campus-hero-tabs button.is-active {
  background: #ffffff;
  box-shadow: 0 1px 8px rgba(0, 11, 52, 0.12);
}

.campus-feature-row {
  display: grid;
  grid-template-columns: 1.1fr 1.1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}

.campus-feature-card,
.campus-pick-card,
.campus-news-card,
.campus-question-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-ui);
  background: #ffffff;
}

.campus-feature-card {
  overflow: hidden;
}

.campus-feature-art {
  min-height: 142px;
  border-bottom: 1px solid var(--line);
}

.campus-feature-copy {
  padding: 13px 15px 16px;
}

.campus-feature-copy span,
.campus-pick-body span {
  color: #c00f10;
  font-size: 12px;
  font-weight: 900;
}

.campus-feature-copy h2,
.campus-pick-body h3,
.campus-news-card h3 {
  margin: 6px 0 0;
  color: #0e1947;
  line-height: 1.22;
}

.campus-feature-copy h2 {
  font-size: 19px;
}

.campus-feature-copy p,
.campus-pick-body p,
.campus-news-card p {
  margin: 8px 0 0;
  color: #526079;
  line-height: 1.45;
}

.campus-section {
  margin-top: 30px;
}

.campus-section > h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: #111827;
  font-size: 22px;
  line-height: 1;
}

.campus-pick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.campus-pick-card {
  overflow: hidden;
}

.campus-pick-visual {
  aspect-ratio: 16 / 9;
  border-bottom: 1px solid var(--line);
}

.campus-pick-body {
  display: grid;
  gap: 8px;
  padding: 14px 16px 16px;
}

.campus-pick-body h3 {
  font-size: 17px;
}

.campus-pick-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
  color: #8a93a6;
  font-size: 12px;
}

.campus-pick-meta strong {
  color: #0e1947;
}

.campus-news-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(180px, 1fr));
  gap: 14px;
}

.campus-news-card {
  overflow: hidden;
  background: transparent;
  border-color: transparent;
}

.campus-news-visual {
  aspect-ratio: 16 / 9;
  margin-bottom: 10px;
  border-radius: var(--radius-ui);
  border: 1px solid var(--line);
}

.campus-news-card h3 {
  min-height: 42px;
  font-size: 15px;
}

.campus-news-card p {
  color: #8a93a6;
  font-size: 12px;
}

.campus-question-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.campus-question-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 12px;
  min-height: 74px;
  padding: 16px 18px;
  color: #0e1947;
  text-align: left;
}

.campus-question-card span {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-ui);
  background: #dbe7f8;
  color: #0e1947;
  font-weight: 900;
}

.campus-question-card strong {
  font-size: 15px;
}

.campus-question-card em {
  grid-column: 2;
  color: #8a93a6;
  font-size: 12px;
  font-style: normal;
}

.campus-visual-library .campus-feature-art,
.campus-visual-library.campus-pick-visual,
.campus-news-1 {
  background:
    linear-gradient(135deg, rgba(0, 11, 52, 0.86), rgba(13, 77, 139, 0.7)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.16) 0 2px, transparent 2px 18px);
}

.campus-visual-calendar .campus-feature-art,
.campus-visual-calendar.campus-pick-visual,
.campus-news-2 {
  background:
    linear-gradient(135deg, #ffde17, #f6b800),
    radial-gradient(circle at 72% 28%, rgba(0, 11, 52, 0.28), transparent 26%);
}

.campus-visual-campus .campus-feature-art,
.campus-visual-campus.campus-pick-visual,
.campus-news-3 {
  background:
    linear-gradient(120deg, rgba(0, 11, 52, 0.08) 0 38%, rgba(0, 11, 52, 0.78) 38% 58%, rgba(255, 255, 255, 0.78) 58% 66%, rgba(14, 25, 71, 0.78) 66%),
    #dfe7f3;
}

.campus-visual-study,
.campus-news-4 {
  background:
    linear-gradient(135deg, rgba(14, 25, 71, 0.84), rgba(63, 99, 166, 0.74)),
    radial-gradient(circle at 18% 38%, rgba(255, 255, 255, 0.72), transparent 18%);
}

.campus-visual-rent {
  background:
    linear-gradient(120deg, #e9edf4, #ffffff),
    repeating-linear-gradient(0deg, rgba(14, 25, 71, 0.18) 0 1px, transparent 1px 18px);
}

.campus-visual-clubs {
  background:
    linear-gradient(135deg, #000b34, #294f9d),
    radial-gradient(circle at 70% 28%, rgba(255, 219, 22, 0.78), transparent 16%);
}

.campus-visual-safety {
  background:
    linear-gradient(135deg, #f7f9fd, #dbe7f8),
    radial-gradient(circle at 78% 26%, rgba(192, 15, 16, 0.36), transparent 18%);
}

.discussion-main {
  min-height: 100vh;
  padding: calc(var(--topbar-height) + 18px) 16px 56px;
  background: linear-gradient(180deg, #eef3f8 0%, #f7f9fc 46%, #edf2f7 100%);
}

.discussion-page {
  width: min(1720px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.discussion-hero {
  display: grid;
  grid-template-columns: minmax(300px, 0.24fr) minmax(0, 1fr);
  align-items: stretch;
  gap: 14px;
  padding: 12px;
  border: 1px solid #d8e0eb;
  border-radius: var(--radius-ui);
  background: #ffffff;
}

.discussion-copy {
  min-height: clamp(420px, 31vw, 520px);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  border-radius: var(--radius-ui);
  background: linear-gradient(150deg, #000b34, #0e1947);
  color: #ffffff;
}

.discussion-copy span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 800;
}

.discussion-copy h1 {
  margin: 10px 0 12px;
  color: #ffffff;
  font-size: clamp(42px, 5vw, 72px);
  line-height: 0.96;
  letter-spacing: 0;
}

.discussion-copy p {
  max-width: 330px;
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 1.65;
}

.discussion-pin-button,
.discussion-section-header button {
  width: fit-content;
  min-height: 32px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: var(--radius-ui);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
}

.discussion-map-card {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 8px;
  padding: 8px;
  border: 1px solid #dbe3ee;
  border-radius: var(--radius-ui);
  background: linear-gradient(180deg, #e6f0fb, #f9fbfe);
}

.origin-map {
  position: relative;
  width: 100%;
  min-height: 0;
  height: auto;
  aspect-ratio: 2000 / 857;
  overflow: hidden;
  border-radius: var(--radius-ui);
  border: 1px solid #dbe3ee;
  background: #ffffff;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.origin-map.is-dragging {
  cursor: grabbing;
}

.origin-map:focus-visible {
  outline: 2px solid #0e1947;
  outline-offset: 3px;
}

.origin-map-stage {
  position: absolute;
  inset: 0;
}

.origin-map-loading {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: #526079;
  font-size: 13px;
  font-weight: 800;
}

.origin-map-image,
.origin-map-svg {
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  shape-rendering: geometricPrecision;
  text-rendering: geometricPrecision;
  fill: #a8adb2;
  stroke: rgba(255, 255, 255, 0.96);
  stroke-width: 0.55px;
}

.origin-map-svg path,
.origin-map-svg polygon,
.origin-map-svg polyline {
  vector-effect: non-scaling-stroke;
}

.origin-map-image {
  object-fit: fill;
}

.origin-map-pins {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.origin-image-pin {
  position: absolute;
  z-index: 1;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 2px solid #ffffff;
  border-radius: 999px 999px 999px 4px;
  background: #0e1947;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(14, 25, 71, 0.24);
  transform: translate(-50%, -100%) rotate(-45deg);
  pointer-events: none;
  will-change: left, top;
}

.origin-image-pin span {
  transform: rotate(45deg);
}

.origin-image-pin.is-current {
  background: #c00f10;
  box-shadow: 0 8px 20px rgba(192, 15, 16, 0.28);
}

.origin-map-controls {
  position: absolute;
  z-index: 3;
  top: 12px;
  right: 12px;
  display: flex;
  gap: 6px;
}

.origin-map-controls button {
  min-width: 34px;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid #d6deea;
  border-radius: var(--radius-ui);
  background: rgba(255, 255, 255, 0.9);
  color: #0e1947;
  font-size: 13px;
  font-weight: 900;
}

.origin-map-controls button:hover {
  background: #eef3f8;
}

.discussion-map-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 28px;
  color: #526079;
  font-size: 13px;
}

.discussion-map-meta strong {
  color: #0e1947;
  font-size: 16px;
}

.discussion-question-section {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #d8e0eb;
  border-radius: var(--radius-ui);
  background: #ffffff;
}

.discussion-content-grid {
  display: grid;
  grid-template-columns: minmax(340px, 0.9fr) minmax(0, 1.1fr);
  align-items: start;
  gap: 14px;
}

.discussion-column {
  min-width: 0;
  display: grid;
  gap: 12px;
}

.discussion-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.discussion-section-header span {
  color: #0e1947;
  font-size: 18px;
  font-weight: 900;
}

.discussion-section-header button {
  border-color: #d5deea;
  background: #f4f7fb;
  color: #0e1947;
}

.discussion-poll-card {
  padding: 18px;
  border: 1px solid #d8e0eb;
  border-radius: var(--radius-ui);
  background: linear-gradient(180deg, #f7fbff, #eef5fc);
  color: #0e1947;
}

.discussion-poll-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 8px;
}

.discussion-poll-header h2 {
  margin: 0 0 10px;
  color: #0e1947;
  font-size: 20px;
  line-height: 1.35;
}

.discussion-poll-header span,
.discussion-poll-prompt {
  color: #526079;
  font-size: 13px;
  font-weight: 800;
}

.discussion-poll-prompt {
  margin: 0 0 14px;
}

.discussion-thread-link {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid #cfd9e7;
  border-radius: var(--radius-ui);
  background: #ffffff;
  color: #0e1947;
  font-size: 13px;
  font-weight: 900;
}

.discussion-thread-link:hover {
  border-color: #0e1947;
  background: #eef3f8;
}

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

.discussion-poll-option {
  position: relative;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  border: 1px solid #dbe3ee;
  border-radius: var(--radius-ui);
  padding: 0 14px;
  background: #ffffff;
  color: #0e1947;
  text-align: left;
  font-size: 15px;
  font-weight: 900;
}

.discussion-poll-option::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--poll-percent, 0%);
  background: rgba(14, 25, 71, 0.08);
}

.discussion-poll-option span,
.discussion-poll-option strong {
  position: relative;
  z-index: 1;
}

.discussion-poll-option:hover,
.discussion-poll-option.is-selected {
  border-color: #0e1947;
  background: #f2f6fb;
}

.discussion-question-list {
  display: grid;
  gap: 12px;
}

.discussion-question-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  width: 100%;
  padding: 16px;
  border: 1px solid #e0e6ef;
  border-radius: var(--radius-ui);
  background: #f8fafc;
  color: #0e1947;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.discussion-question-card:hover {
  border-color: #b9c7d8;
  background: #ffffff;
}

.discussion-rank {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-ui);
  background: #0e1947;
  color: #ffffff;
  font-weight: 900;
}

.discussion-question-card h2 {
  margin: 0 0 7px;
  color: #0e1947;
  font-size: 17px;
  line-height: 1.32;
}

.discussion-question-card p {
  margin: 0 0 10px;
  color: #526079;
  font-size: 13px;
  line-height: 1.55;
}

.discussion-question-card small {
  color: #7c8798;
  font-size: 12px;
}

.game-squad-main {
  min-height: 100vh;
  padding: var(--topbar-height) 0 0;
  background: #f3f6fb;
}

.game-squad-page {
  width: 100%;
  height: calc(100vh - var(--topbar-height));
  min-height: 620px;
  display: grid;
  background: #f3f6fb;
}

.squadpool-frame {
  width: 100%;
  height: 100%;
  border: 0;
  background: #f3f6fb;
}

.game-squad-auth {
  place-items: center;
  padding: 24px;
}

.game-squad-auth > div {
  width: min(520px, 100%);
  display: grid;
  gap: 14px;
  padding: 28px;
  border: 1px solid #d8e0eb;
  border-radius: var(--radius-ui);
  background: #ffffff;
}

.game-squad-auth span {
  color: #526079;
  font-size: 13px;
  font-weight: 800;
}

.game-squad-auth h1 {
  margin: 0;
  color: #0e1947;
  font-size: 28px;
  line-height: 1.2;
}

.game-squad-auth p {
  margin: 0;
  color: #526079;
  font-size: 14px;
  line-height: 1.6;
}

.faculty-main {
  min-height: 100vh;
  padding: calc(var(--topbar-height) + 18px) 24px 34px;
  background:
    radial-gradient(circle at 18% 12%, rgba(98, 105, 118, 0.12), transparent 31%),
    radial-gradient(circle at 84% 18%, rgba(105, 112, 104, 0.08), transparent 28%),
    linear-gradient(135deg, #15171b 0%, #171b22 46%, #101216 100%);
}

.faculty-page {
  position: relative;
  width: min(1540px, 100%);
  margin: 0 auto;
  color: #f3f6ff;
}

.faculty-detail-main {
  background:
    radial-gradient(circle at 16% 10%, rgba(14, 25, 71, 0.045), transparent 32%),
    linear-gradient(180deg, #f4f6fa 0%, #eef2f7 100%);
}

.faculty-detail-main .faculty-page {
  color: #0e1947;
}

.faculty-select-page {
  position: relative;
  min-height: calc(100vh - var(--topbar-height) - 52px);
  display: grid;
}

.faculty-select-page::before {
  content: "";
  position: fixed;
  inset: var(--topbar-height) 0 0 var(--sidebar-width);
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.72), transparent 86%);
}

.faculty-select-page::after {
  content: "学";
  position: fixed;
  top: 50%;
  left: calc(var(--sidebar-width) + (100vw - var(--sidebar-width)) / 2);
  z-index: 0;
  display: block;
  color: rgba(255, 255, 255, 0.055);
  font-size: clamp(150px, 24vw, 380px);
  font-weight: 950;
  line-height: 0.9;
  letter-spacing: 0;
  pointer-events: none;
  transform: translate(-1.04em, -48%);
}

.faculty-page-header {
  display: grid;
  gap: 8px;
  margin-bottom: 22px;
}

.faculty-page-header h1 {
  margin: 0;
  color: #0e1947;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.02;
  letter-spacing: 0;
}

.faculty-page-header p:not(.eyebrow) {
  max-width: 620px;
  margin: 0;
  color: #526079;
  font-size: 15px;
  line-height: 1.6;
}

.faculty-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 20px;
  min-height: 100%;
}

.faculty-grid::before {
  content: "院";
  position: fixed;
  top: 50%;
  left: calc(var(--sidebar-width) + (100vw - var(--sidebar-width)) / 2);
  z-index: 0;
  display: block;
  color: rgba(255, 255, 255, 0.045);
  font-size: clamp(150px, 24vw, 380px);
  font-weight: 950;
  line-height: 0.9;
  letter-spacing: 0;
  pointer-events: none;
  transform: translate(0.06em, -48%);
}

.faculty-card {
  position: relative;
  z-index: 1;
  min-height: 240px;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  gap: 16px;
  padding: 28px;
  border: 1px solid color-mix(in srgb, var(--faculty-text, #f3f6ff) 34%, transparent);
  border-radius: var(--radius-ui);
  background: var(--faculty-theme, #ffffff);
  color: var(--faculty-text, #0e1947);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 18px 40px rgba(0, 0, 0, 0.28);
  text-align: left;
  transition:
    background 140ms ease,
    border-color 140ms ease,
    color 140ms ease,
    transform 140ms ease;
}

.faculty-card:hover {
  border-color: color-mix(in srgb, var(--faculty-hover-text, #ffffff) 54%, transparent);
  background: var(--faculty-hover-theme, #ffffff);
  color: var(--faculty-hover-text, #0e1947);
  transform: translateY(-2px);
}

.faculty-card:hover .faculty-index,
.faculty-card:hover strong,
.faculty-card:hover em,
.faculty-card:hover p {
  color: var(--faculty-hover-text, #0e1947);
}

.faculty-index {
  color: var(--faculty-text, #0e1947);
  font-size: 15px;
  font-weight: 900;
}

.faculty-card strong {
  max-width: 96%;
  color: var(--faculty-text, #0e1947);
  font-size: clamp(32px, 3.1vw, 54px);
  line-height: 1.04;
  font-weight: 950;
}

.faculty-card em {
  color: var(--faculty-text, #0e1947);
  font-size: 16px;
  font-style: normal;
  font-weight: 900;
}

.faculty-card p {
  margin: 0;
  color: var(--faculty-text, #0e1947);
  font-size: 16px;
  line-height: 1.45;
}

.faculty-detail-page {
  display: grid;
  gap: 18px;
}

.faculty-back-button {
  justify-self: start;
  min-height: 34px;
  border: 1px solid color-mix(in srgb, var(--faculty-detail-theme, #0e1947) 28%, #d9dfeb);
  border-radius: var(--radius-ui);
  padding: 0 12px;
  background: #ffffff;
  color: #0e1947;
  font-weight: 800;
}

.faculty-detail-page .faculty-back-button:hover {
  border-color: var(--faculty-detail-theme, #0e1947);
  background: color-mix(in srgb, var(--faculty-detail-theme, #0e1947) 12%, #ffffff);
}

.faculty-detail-hero {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: 26px;
  border: 1px solid color-mix(in srgb, var(--faculty-detail-text, #0e1947) 24%, transparent);
  border-left: 8px solid var(--faculty-detail-text, #0e1947);
  border-radius: var(--radius-ui);
  background: var(--faculty-detail-theme, #ffffff);
  color: var(--faculty-detail-text, #0e1947);
}

.faculty-detail-hero > span {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: var(--radius-ui);
  border: 1px solid color-mix(in srgb, var(--faculty-detail-text, #0e1947) 52%, transparent);
  background: var(--faculty-detail-text, #0e1947);
  color: var(--faculty-detail-theme, #ffffff);
  font-size: 28px;
  font-weight: 900;
}

.faculty-detail-hero h1 {
  margin: 0;
  color: var(--faculty-detail-text, #0e1947);
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: 0;
}

.faculty-detail-hero .eyebrow {
  color: var(--faculty-detail-text, #0e1947);
}

.faculty-detail-hero p:not(.eyebrow) {
  margin: 10px 0 0;
  color: color-mix(in srgb, var(--faculty-detail-text, #0e1947) 84%, transparent);
}

.faculty-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.faculty-detail-grid section {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  padding: 14px;
  border: 1px solid #d9dfeb;
  border-radius: var(--radius-ui);
  background: #ffffff;
}

.faculty-detail-grid h2 {
  margin: 0 0 8px;
  color: #0e1947;
  font-size: 18px;
}

.faculty-detail-grid p {
  margin: 0 0 14px;
  color: #5c6678;
  line-height: 1.55;
}

.faculty-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.faculty-search-form input {
  min-height: 42px;
  border: 1px solid #d9dfeb;
  border-radius: var(--radius-ui);
  padding: 0 12px;
}

.faculty-search-form input:focus {
  border-color: var(--faculty-detail-theme, #0e1947);
  outline: 2px solid color-mix(in srgb, var(--faculty-detail-theme, #0e1947) 24%, transparent);
}

.faculty-review-entry {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.faculty-review-entry .ghost-button {
  min-height: 34px;
  padding: 0 12px;
  font-size: 12px;
}

.faculty-detail-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid color-mix(in srgb, var(--faculty-detail-theme, #0e1947) 24%, #d9dfeb);
  border-radius: var(--radius-ui);
  background: #ffffff;
}

.faculty-detail-actions strong,
.faculty-detail-actions span {
  display: block;
}

.faculty-detail-actions strong {
  color: #0e1947;
  font-size: 15px;
}

.faculty-detail-actions span {
  margin-top: 3px;
  color: #5c6678;
  font-size: 12px;
}

.faculty-detail-actions > div:last-child {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.faculty-detail-actions .ghost-button {
  min-height: 34px;
  padding: 0 12px;
  font-size: 12px;
}

.faculty-detail-page .primary-button {
  border-color: var(--faculty-detail-theme, #0e1947);
  background: var(--faculty-detail-theme, #0e1947);
  color: var(--faculty-detail-text, #ffffff);
}

.faculty-detail-page .ghost-button {
  border: 1px solid color-mix(in srgb, var(--faculty-detail-theme, #0e1947) 30%, #d9dfeb);
  background: #ffffff;
  color: #0e1947;
}

.faculty-detail-page .primary-button:hover,
.faculty-detail-page .primary-button:focus-visible,
.faculty-detail-page .ghost-button:hover,
.faculty-detail-page .ghost-button:focus-visible,
.faculty-detail-page .faculty-back-button:focus-visible {
  border-color: var(--faculty-detail-theme, #0e1947);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--faculty-detail-theme, #0e1947) 22%, transparent);
  outline: 0;
}

.faculty-detail-page .ghost-button:hover,
.faculty-detail-page .ghost-button:focus-visible {
  background: color-mix(in srgb, var(--faculty-detail-theme, #0e1947) 12%, #ffffff);
}

.faculty-filter-panel {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid #d9dfeb;
  border-radius: var(--radius-ui);
  background: #ffffff;
}

.faculty-subject-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.faculty-area-chip {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid rgba(217, 223, 235, 0.72);
  border-radius: var(--radius-ui);
  padding: 0 11px;
  background: rgba(255, 255, 255, 0.94);
  color: #0e1947;
  font-size: 12px;
  font-weight: 850;
}

.faculty-area-chip:hover,
.faculty-area-chip:focus-visible {
  border-color: var(--faculty-detail-theme, #0e1947);
  background: color-mix(in srgb, var(--faculty-detail-theme, #0e1947) 12%, #ffffff);
  outline: 0;
}

.faculty-area-chip span {
  color: #6a7280;
  font-weight: 750;
}

.faculty-area-chip.is-active {
  border-color: var(--faculty-detail-theme, #0e1947);
  background: var(--faculty-detail-theme, #0e1947);
  color: var(--faculty-detail-text, #ffffff);
}

.faculty-area-chip.is-active span {
  color: currentColor;
}

.faculty-course-results {
  display: grid;
  gap: 18px;
}

.faculty-level-booklet {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: #ffffff;
}

.booklet-row {
  width: 100%;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid #e5eaf2;
  border-radius: var(--radius-ui);
  padding: 0 12px;
  background: #ffffff;
  color: #0e1947;
  text-align: left;
}

.booklet-row:hover {
  border-color: color-mix(in srgb, var(--faculty-detail-theme, #0e1947) 42%, #e5eaf2);
  background: color-mix(in srgb, var(--faculty-detail-theme, #0e1947) 10%, #ffffff);
}

.booklet-row:focus-visible {
  border-color: var(--faculty-detail-theme, #0e1947);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--faculty-detail-theme, #0e1947) 20%, transparent);
  outline: 0;
}

.booklet-row.is-active {
  border-color: color-mix(in srgb, var(--faculty-detail-theme, #0e1947) 62%, #ffffff);
  background: color-mix(in srgb, var(--faculty-detail-theme, #0e1947) 18%, #ffffff);
  box-shadow: inset 4px 0 0 var(--faculty-detail-theme, #0e1947);
}

.booklet-row.is-active strong {
  color: #0e1947;
}

.booklet-row.is-active em {
  color: color-mix(in srgb, var(--faculty-detail-theme, #0e1947) 58%, #0e1947);
}

.booklet-row.is-parent {
  font-weight: 900;
}

.booklet-row.is-open {
  background: #fbfcfe;
}

.booklet-row strong {
  min-width: 0;
  font-size: 14px;
  line-height: 1.2;
}

.booklet-row em {
  color: #6a7280;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.booklet-caret {
  display: none;
}

.booklet-row.is-open .booklet-caret {
  transform: rotate(90deg);
}

.booklet-row:not(.is-parent) .booklet-caret {
  opacity: 0;
}

.booklet-children {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  border-bottom: 0;
  background: #fbfcfe;
}

.booklet-children .booklet-row {
  min-height: 56px;
  padding-left: 12px;
  background: #fbfcfe;
}

.booklet-children .booklet-row:hover {
  background: #f4f7fb;
}

.faculty-course-level {
  display: grid;
  gap: 12px;
}

.undergraduate-level-stack {
  gap: 18px;
}

.undergraduate-level-section {
  display: grid;
  gap: 10px;
}

.undergraduate-level-subheading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  padding: 0 2px;
}

.undergraduate-level-subheading h3 {
  margin: 0;
  color: #0e1947;
  font-size: 18px;
}

.undergraduate-level-subheading span {
  color: #6a7280;
  font-size: 12px;
  font-weight: 850;
}

.faculty-course-level.is-expanded {
  animation: panel-in 140ms ease;
}

.faculty-level-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  padding: 0 2px;
}

.faculty-level-heading h2 {
  margin: 0;
  color: #0e1947;
  font-size: 22px;
  line-height: 1.1;
}

.faculty-level-heading span {
  color: #6a7280;
  font-size: 12px;
  font-weight: 800;
}

.faculty-subject-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.faculty-subject-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 210px;
  padding: 16px;
  border: 1px solid #d9dfeb;
  border-top: 4px solid color-mix(in srgb, var(--faculty-theme, #0e1947) 76%, #d9dfeb);
  border-radius: var(--radius-ui);
  background: #ffffff;
  color: #0e1947;
  cursor: pointer;
  transition:
    border-color 140ms ease,
    box-shadow 140ms ease,
    transform 140ms ease;
}

.faculty-subject-card:hover,
.faculty-subject-card:focus-visible {
  border-color: color-mix(in srgb, var(--faculty-theme, #0e1947) 45%, #d9dfeb);
  box-shadow: 0 12px 28px rgba(14, 25, 71, 0.1);
  outline: 0;
  transform: translateY(-1px);
}

.subject-card-cover {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) max-content;
  gap: 12px;
  align-items: start;
}

.subject-score-tile {
  min-height: 82px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 3px;
  border-radius: var(--radius-ui);
  background: #e7edf4;
  color: #111111;
}

.subject-score-tile.is-score-1,
.review-item-score.is-score-1 {
  background: #ff8f95;
}

.subject-score-tile.is-score-2,
.review-item-score.is-score-2 {
  background: #ffbf69;
}

.subject-score-tile.is-score-3,
.review-item-score.is-score-3 {
  background: #ffeb6a;
}

.subject-score-tile.is-score-4,
.review-item-score.is-score-4 {
  background: #a8e875;
}

.subject-score-tile.is-score-5,
.review-item-score.is-score-5 {
  background: #52d69d;
}

.subject-score-tile span {
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.subject-score-tile strong {
  font-size: 30px;
  line-height: 1;
}

.subject-score-tile em {
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.subject-title-block {
  position: relative;
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 4px;
}

.faculty-subject-card .subject-cn-name {
  color: #111111;
  font-size: 19px;
  font-weight: 950;
}

.review-scoreline {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.review-scoreline span {
  border-radius: var(--radius-ui);
  padding: 5px 7px;
  background: #f1f4f9;
  color: #33405c;
  font-size: 11px;
  font-weight: 900;
}

.review-preview {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px;
  border-radius: var(--radius-ui);
  background: #f7f8fa;
}

.review-preview div {
  min-height: 58px;
  display: grid;
  place-items: center;
  align-content: center;
  background: #ffe1e3;
  color: #111111;
}

.review-preview strong {
  font-size: 22px;
  line-height: 1;
}

.review-preview span {
  margin-top: 4px;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.review-preview p {
  margin: 0;
  color: #111111;
  font-size: 13px;
  line-height: 1.45;
}

.subject-review-modal {
  width: min(1040px, calc(100vw - 40px));
  max-width: 1040px;
  padding: 0;
  overflow: hidden;
}

.subject-review-modal .modal-header {
  padding: 18px 20px;
  border-bottom: 1px solid #e5eaf2;
  background: #ffffff;
}

.subject-review-summary {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
  border-bottom: 1px solid #e5eaf2;
  background: linear-gradient(135deg, #ffffff 0%, #f5f8fc 100%);
}

.subject-review-summary h3 {
  margin: 0;
  color: #0e1947;
  font-size: 24px;
  line-height: 1.18;
}

.subject-review-summary p {
  margin: 4px 0 10px;
  color: #4f596b;
}

.subject-review-summary .review-scoreline {
  gap: 8px;
}

.subject-review-summary .review-scoreline .is-key-stat {
  border: 1px solid color-mix(in srgb, var(--faculty-detail-theme, #0e1947) 38%, #d9dfeb);
  background: color-mix(in srgb, var(--faculty-detail-theme, #0e1947) 16%, #ffffff);
  color: #0e1947;
  font-size: 12px;
  font-weight: 950;
}

.subject-review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 20px;
  border-bottom: 1px solid #e5eaf2;
  background: #ffffff;
}

.subject-review-list {
  display: grid;
  gap: 10px;
}

.subject-review-section {
  display: grid;
  gap: 10px;
  padding: 16px 20px 18px;
}

.subject-review-section + .subject-review-section {
  border-top: 1px solid #e5eaf2;
}

.subject-review-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #eef2f7;
}

.subject-review-section-heading h3 {
  margin: 0;
  color: #0e1947;
  font-size: 18px;
}

.subject-review-section-heading span {
  border-radius: var(--radius-ui);
  padding: 4px 8px;
  background: color-mix(in srgb, var(--faculty-detail-theme, #0e1947) 12%, #f1f4f9);
  color: #0e1947;
  font-size: 12px;
  font-weight: 950;
}

.subject-review-item,
.subject-review-empty {
  padding: 14px;
  border: 1px solid #e2e7f0;
  border-radius: var(--radius-ui);
  background: #ffffff;
}

.subject-review-item {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.review-item-score {
  min-height: 84px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 3px;
  border-radius: var(--radius-ui);
  background: #e7edf4;
  color: #111111;
}

.review-item-score span {
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.review-item-score strong {
  font-size: 32px;
  line-height: 1;
}

.review-item-score em {
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
}

.subject-review-item p,
.subject-review-empty p {
  margin: 10px 0;
  color: #111111;
  line-height: 1.55;
}

.subject-review-empty {
  background: #f8fafc;
}

.subject-review-item footer {
  color: #6a7280;
  font-size: 12px;
  font-weight: 800;
}

.review-thanks-modal {
  max-width: 520px;
}

.subject-tutor-list,
.subject-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.subject-tutor-list button {
  min-height: 28px;
  border: 1px solid color-mix(in srgb, var(--faculty-detail-theme, #0e1947) 28%, #d9dfeb);
  border-radius: var(--radius-ui);
  padding: 0 9px;
  background: #ffffff;
  color: #0e1947;
  font-size: 12px;
  font-weight: 850;
}

.subject-tutor-list button:hover,
.subject-tutor-list button:focus-visible {
  border-color: var(--faculty-detail-theme, #0e1947);
  background: color-mix(in srgb, var(--faculty-detail-theme, #0e1947) 12%, #ffffff);
  outline: 0;
}

.subject-card-actions .ghost-button {
  min-height: 30px;
  padding: 0 9px;
  font-size: 12px;
}

.faculty-professor-panel {
  display: grid;
  gap: 14px;
}

.faculty-professor-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: 14px;
  align-items: end;
  padding: 18px;
  border: 1px solid #d9dfeb;
  border-radius: var(--radius-ui);
  background: #ffffff;
}

.faculty-professor-toolbar h2,
.faculty-professor-toolbar p {
  margin: 0;
}

.faculty-professor-toolbar p {
  margin-top: 6px;
  color: #5c6678;
}

.professor-add-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 8px;
}

.professor-add-form input {
  min-height: 40px;
  border: 1px solid #d9dfeb;
  border-radius: var(--radius-ui);
  padding: 0 10px;
}

.professor-add-form input:focus {
  border-color: var(--faculty-detail-theme, #0e1947);
  outline: 2px solid color-mix(in srgb, var(--faculty-detail-theme, #0e1947) 22%, transparent);
}

.professor-form-toggle {
  justify-self: end;
  min-height: 40px;
  padding: 0 14px;
}

.professor-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.professor-card,
.professor-empty-card {
  display: grid;
  gap: 12px;
  min-height: 150px;
  padding: 16px;
  border: 1px solid #d9dfeb;
  border-radius: var(--radius-ui);
  background: #ffffff;
}

.professor-card strong,
.professor-empty-card strong {
  display: block;
  color: #0e1947;
  font-size: 18px;
}

.professor-card > div:first-child span,
.professor-empty-card p {
  display: block;
  margin-top: 4px;
  color: #5c6678;
  font-size: 13px;
}

.professor-empty-card .primary-button {
  justify-self: start;
  margin-top: 4px;
}

.graduate-subject-strip {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid #d9dfeb;
  border-radius: var(--radius-ui);
  background: #ffffff;
}

.graduate-subject-strip h3 {
  margin: 0;
  color: #0e1947;
  font-size: 16px;
}

.graduate-subject-strip div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.graduate-subject-strip span {
  border-radius: var(--radius-ui);
  padding: 6px 8px;
  background: #f1f4f9;
  color: #33405c;
  font-size: 12px;
  font-weight: 800;
}

.review-modal {
  max-width: 820px;
}

.review-scale-grid,
.review-select-grid {
  display: grid;
  gap: 10px;
}

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

.review-select-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.subject-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #697386;
  font-size: 12px;
  font-weight: 800;
}

.subject-card-side {
  display: grid;
  justify-items: end;
  gap: 8px;
  text-align: right;
  color: #697386;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.25;
}

.subject-card-side span {
  white-space: nowrap;
}

.subject-card-review-button {
  min-height: 28px;
  padding: 0 9px;
  font-size: 11px;
  white-space: nowrap;
}

.subject-code {
  color: var(--faculty-theme, #0e1947);
  font-size: 13px;
  letter-spacing: 0;
  line-height: 1.1;
}

.faculty-subject-card h3 {
  margin: 0;
  color: #0e1947;
  font-size: 18px;
  line-height: 1.16;
}

.subject-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.subject-meta span {
  border-radius: var(--radius-ui);
  padding: 4px 7px;
  background: color-mix(in srgb, var(--faculty-theme, #0e1947) 12%, #f1f4f9);
  color: #33405c;
  font-size: 11px;
  font-weight: 800;
}

.faculty-subject-card p {
  margin: 0;
  color: #4f596b;
  font-size: 13px;
  line-height: 1.5;
}

.subject-link {
  align-self: end;
  justify-self: start;
  color: color-mix(in srgb, var(--faculty-theme, #0e1947) 70%, #0e1947);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.faculty-course-empty {
  padding: 24px;
  border: 1px solid rgba(217, 223, 235, 0.82);
  border-radius: var(--radius-ui);
  background: #ffffff;
}

.faculty-course-empty strong {
  color: #0e1947;
  font-size: 18px;
}

.faculty-course-empty p {
  margin: 8px 0 0;
  color: #5c6678;
}

.mini-post {
  display: grid;
  gap: 5px;
  margin-top: 0;
  padding: 14px 16px;
  border-color: #dfe5ee;
  border-radius: var(--radius-ui);
  background: #ffffff;
  transition:
    border-color 120ms ease,
    transform 120ms ease,
    box-shadow 120ms ease;
}

.mini-post:hover {
  border-color: #b9c7d8;
  box-shadow: 0 10px 24px rgba(14, 25, 71, 0.08);
  transform: translateY(-1px);
}

.mini-post strong {
  color: #0e1947;
  font-size: 16px;
  line-height: 1.35;
}

.mini-post span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.clubs-page {
  --club-ink: #303030;
  --club-canvas: #dbdbdb;
  --club-card: #ffffff;
  --club-fog: #f2f2f2;
  --club-ash: #ededed;
  --club-smoke: #c2c2c2;
  --club-graphite: #808080;
  --club-sand: #e2ceb8;
  --club-slate: #6a728e;
  --club-yellow: #f9f5a2;
  max-width: 1440px;
  min-height: calc(100vh - var(--topbar-height) - 60px);
  margin: 0 auto;
  padding: 24px;
  border-radius: 20px;
  background: var(--club-canvas);
  color: var(--club-ink);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.clubs-hero-widget,
.clubs-index-widget,
.club-widget,
.clubs-state-widget {
  border: 0;
  border-radius: 20px;
  background: var(--club-card);
  box-shadow: rgba(0, 0, 0, 0.16) 0 3px 6px 0;
}

.clubs-hero-widget {
  min-height: 210px;
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 26px;
}

.clubs-hero-widget h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: 0;
}

.clubs-hero-widget h1 span {
  background: var(--club-yellow);
}

.clubs-hero-widget p {
  max-width: 680px;
  margin: 0;
  color: var(--club-ink);
  font-size: 15px;
  line-height: 1.55;
}

.club-caption {
  margin-bottom: 8px;
  color: var(--club-ink);
  font-size: 11px;
  line-height: 1.4;
  text-align: center;
}

.club-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.club-hero-meta span,
.club-actions a,
.club-actions span,
.club-info-stack a,
.club-info-stack span,
.club-category-list span {
  border-radius: 20px;
  background: var(--club-fog);
  color: var(--club-ink);
}

.club-hero-meta span {
  padding: 8px 18px;
  font-size: 13px;
}

.clubs-index-widget {
  margin-top: 24px;
  padding: 18px;
}

.club-category-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.club-category-list span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 38px;
  padding: 7px 12px;
  font-size: 12px;
}

.club-category-list b,
.club-category-list em {
  font: inherit;
}

.club-category-list em {
  color: var(--club-graphite);
}

.clubs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  grid-auto-flow: dense;
  gap: 24px;
  margin-top: 24px;
}

.club-widget {
  min-height: 310px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
}

.club-widget:nth-child(9n + 1),
.club-widget:nth-child(9n + 5) {
  grid-row: span 2;
  min-height: 400px;
}

.club-widget.is-sand {
  background: var(--club-sand);
}

.club-widget.is-slate {
  background: var(--club-slate);
}

.club-widget.is-slate,
.club-widget.is-slate .club-category,
.club-widget.is-slate .club-description,
.club-widget.is-slate .club-actions span {
  color: #ffffff;
}

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

.club-avatar {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--club-fog);
  color: var(--club-ink);
  font-size: 17px;
  line-height: 1;
  box-shadow: rgba(0, 0, 0, 0.18) 0 1px 4px 0;
}

.club-category {
  margin: 0 0 4px;
  color: var(--club-graphite);
  font-size: 12px;
  line-height: 1.4;
}

.club-widget h2 {
  margin: 0;
  color: inherit;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0;
}

.club-description {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--club-ink);
  font-size: 14px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 7;
}

.club-widget:nth-child(9n + 1) .club-description,
.club-widget:nth-child(9n + 5) .club-description {
  -webkit-line-clamp: 12;
}

.club-info-stack {
  display: grid;
  gap: 8px;
  margin-top: auto;
}

.club-info-stack a,
.club-info-stack span {
  display: block;
  min-width: 0;
  overflow: hidden;
  padding: 7px 12px;
  font-size: 12px;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.club-info-stack a:hover,
.club-actions a:hover {
  background: var(--club-ash);
}

.club-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 2px;
}

.club-actions a,
.club-actions span {
  padding: 7px 12px;
  font-size: 12px;
  text-decoration: none;
  white-space: nowrap;
}

.clubs-state-widget {
  margin-top: 24px;
  padding: 24px;
  text-align: center;
}

.clubs-state-widget strong {
  display: block;
  margin-bottom: 6px;
  font-weight: 400;
  font-size: 20px;
}

.clubs-state-widget p {
  margin: 0;
  color: var(--club-graphite);
}

.clubs-main {
  padding: var(--topbar-height) 0 0;
}

.clubs-main .clubs-page {
  max-width: none;
  min-height: calc(100vh - var(--topbar-height));
  margin: 0;
  padding: 24px 28px 28px;
  border-radius: 0;
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 255, 255, 0.38), transparent 26%),
    radial-gradient(circle at 16% 6%, rgba(10, 77, 179, 0.35), transparent 24%),
    linear-gradient(135deg, color-mix(in srgb, var(--brand) 18%, #d6dce2), #c9d1d8 42%, color-mix(in srgb, var(--sidebar-brand) 22%, #d8d8d8));
}

.clubs-main .club-widget,
.clubs-main .clubs-state-widget {
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: rgba(0, 0, 0, 0.16) 0 3px 6px 0;
}

.clubs-slogan-panel {
  width: 100%;
  min-height: 360px;
  display: inline-flex;
  flex-direction: column;
  justify-content: flex-start;
  break-inside: avoid;
  padding: 0 16px 24px 0;
  margin: 0 0 24px;
  background: transparent;
  box-shadow: none;
}

.clubs-slogan-panel .club-caption {
  text-align: left;
  margin-bottom: 16px;
}

.clubs-slogan-panel h1 {
  max-width: 620px;
  margin: 0;
  color: var(--club-ink);
  font-size: clamp(34px, 5vw, 72px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: 0;
}

.clubs-slogan-panel mark {
  background: rgba(127, 220, 234, 0.9);
  color: inherit;
}

.clubs-slogan-panel p:not(.club-caption) {
  max-width: 560px;
  margin: 16px 0 0;
  color: var(--club-ink);
  font-size: 15px;
  line-height: 1.55;
}

.club-filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.club-filter-tags button {
  min-height: 34px;
  border: 1px solid rgba(0, 11, 52, 0.16);
  border-radius: 20px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--club-ink);
  font-size: 13px;
  box-shadow: rgba(0, 0, 0, 0.08) 0 1px 2px 0;
}

.club-filter-tags button.is-active {
  background: #ffffff;
  box-shadow:
    inset 0 0 0 2px var(--club-ink),
    rgba(0, 0, 0, 0.18) 0 1px 4px 0;
}

.clubs-main .clubs-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: start;
  gap: 24px;
  margin-top: 0;
}

.club-masonry-column {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.clubs-main .club-widget {
  position: relative;
  min-height: 0;
  display: inline-flex;
  flex-direction: column;
  width: 100%;
  break-inside: avoid;
  margin: 0;
  padding: 0;
  overflow: hidden;
  color: var(--club-ink);
  cursor: pointer;
}

.clubs-main .club-widget.is-wide {
  width: 100%;
}

.club-image-wrap {
  width: 100%;
  min-height: 0;
  display: block;
  overflow: hidden;
  background: #ffffff;
}

.club-image-wrap img {
  width: 100%;
  min-height: 0;
  max-height: none;
  display: block;
  height: auto;
  object-fit: initial;
  filter: saturate(0.94) contrast(0.98);
  transition:
    transform 220ms ease,
    filter 220ms ease;
}

.club-image-wrap.is-fallback {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  background:
    radial-gradient(circle at 72% 24%, rgba(255, 255, 255, 0.62), transparent 24%),
    linear-gradient(135deg, rgba(0, 15, 70, 0.92), rgba(1, 48, 167, 0.7));
}

.club-widget:hover .club-image-wrap img {
  transform: scale(1.015);
  filter: saturate(1.02) contrast(1);
}

.club-image-fallback {
  width: 100%;
  min-height: 100%;
  display: grid;
  place-items: center;
  gap: 10px;
  padding: 24px;
  color: #ffffff;
  text-align: center;
}

.club-image-fallback span {
  font-size: 38px;
  line-height: 1;
}

.club-image-fallback small {
  font-size: 12px;
  opacity: 0.78;
}

.club-card-overlay {
  position: static;
  display: grid;
  gap: 6px;
  padding: 12px 14px 14px;
  border-top: 1px solid rgba(0, 11, 52, 0.08);
  background: rgba(255, 255, 255, 0.95);
  color: var(--club-ink);
  backdrop-filter: none;
}

.club-card-overlay span {
  color: var(--club-graphite);
  font-size: 11px;
}

.club-card-overlay strong {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

.clubs-load-more {
  width: min(420px, calc(100% - 32px));
  margin: 18px auto 0;
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.62);
  color: rgba(0, 11, 52, 0.72);
  font-size: 13px;
  text-align: center;
  box-shadow: rgba(0, 0, 0, 0.08) 0 1px 3px 0;
}

.clubs-load-more.is-complete {
  opacity: 0.72;
}

.club-detail-modal {
  width: min(980px, 100%);
  border-radius: 20px;
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.club-detail-body {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(320px, 1.1fr);
  gap: 22px;
  padding: 22px;
  background: #dbdbdb;
}

.club-detail-media {
  min-height: 360px;
  overflow: hidden;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: rgba(0, 0, 0, 0.16) 0 3px 6px 0;
}

.club-detail-media img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.club-detail-copy {
  padding: 22px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: rgba(0, 0, 0, 0.16) 0 3px 6px 0;
}

.club-detail-category {
  display: inline-block;
  margin-bottom: 12px;
  border-radius: 20px;
  padding: 7px 14px;
  background: #f2f2f2;
  color: #303030;
  font-size: 12px;
}

.club-detail-copy p {
  margin: 0 0 18px;
  color: #303030;
  font-size: 14px;
  line-height: 1.65;
}

.club-detail-links {
  display: grid;
  gap: 8px;
}

.club-detail-links a {
  display: block;
  overflow: hidden;
  border-radius: 20px;
  padding: 9px 14px;
  background: #f2f2f2;
  color: #303030;
  font-size: 12px;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.club-detail-links a:hover {
  background: #ededed;
}

.admin-tabs {
  display: flex;
  gap: 8px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
}

.admin-tabs button {
  min-height: 34px;
  padding: 0 12px;
}

.admin-body {
  display: grid;
  gap: 10px;
  padding: 18px;
}

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

.admin-row p,
.notification-item p,
.log-row p {
  margin: 5px 0;
  color: var(--muted);
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.admin-actions button,
.admin-row > button {
  min-height: 32px;
  padding: 0 10px;
  background: var(--surface-muted);
}

.bottom-nav {
  display: none;
}

.mobile-only {
  display: none;
}

@media (max-width: 1580px) {
  .feed-hot-rail {
    display: none;
  }

  .feed-top-row,
  .feed-layout {
    grid-template-columns: 44px minmax(0, 860px) 260px;
    gap: 14px;
  }
}

@media (max-width: 1280px) {
  .discussion-hero {
    grid-template-columns: 1fr;
  }

  .discussion-copy {
    min-height: 280px;
  }

  .discussion-content-grid {
    grid-template-columns: 1fr;
  }

  .origin-map {
    min-height: 0;
    height: auto;
  }

  .campus-info-page {
    width: min(960px, calc(100% - 28px));
  }

  .campus-info-hero {
    min-height: 190px;
    padding: 30px 28px;
  }

  .campus-info-hero::before,
  .campus-info-hero::after {
    opacity: 0.42;
  }

  .campus-feature-row,
  .campus-pick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .campus-news-strip {
    grid-template-columns: repeat(3, minmax(180px, 1fr));
  }

  .campus-question-grid {
    grid-template-columns: 1fr;
  }

  .feed-top-row {
    grid-template-columns: 44px minmax(0, 760px);
    gap: 14px;
  }

  .feed-layout {
    grid-template-columns: minmax(0, 760px);
    gap: 0;
  }

  .feed-column {
    grid-column: 1;
  }

  .feed-top-row > div:last-child,
  .feed-hot-rail,
  .feed-sidebar {
    display: none;
  }

  .masonry-feed {
    max-width: 760px;
  }

  .board-tabs {
    width: min(100%, 760px);
  }
}

@media (max-height: 880px) {
  .feed-hot-rail {
    display: none;
  }

  .feed-top-row,
  .feed-layout {
    grid-template-columns: 44px minmax(0, 860px) 260px;
    gap: 14px;
  }
}

@media (max-width: 1280px) and (max-height: 880px) {
  .feed-top-row {
    grid-template-columns: 44px minmax(0, 760px);
  }

  .feed-layout {
    grid-template-columns: minmax(0, 760px);
  }
}

@media (max-width: 980px) {
  :root {
    --sidebar-width: 78px;
  }

  .sidebar {
    width: var(--sidebar-width);
    align-items: center;
    padding: 14px 9px;
  }

  .brand-block div:not(.brand-mark),
  .nav-item span:last-child,
  .board-link span,
  .section-label,
  .tag-follow-section,
  .hot-posts-widget,
  .admin-link {
    display: none;
  }

  .sidebar-toggle {
    display: none;
  }

  .nav-item,
  .board-link {
    justify-content: center;
    width: 44px;
  }

  .board-link::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--soft);
  }

  .board-link.is-active::before {
    background: var(--sidebar-brand);
  }

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

  .profile-hero {
    align-items: flex-start;
  }

  .profile-actions {
    margin-left: 0;
  }

  .feed-top-row {
    grid-template-columns: 44px minmax(0, 600px);
  }

  .feed-layout {
    grid-template-columns: minmax(0, 600px);
  }

  .feed-column {
    grid-column: 1;
  }

  .feed-top-row > div:last-child {
    display: none;
  }

  .feed-sidebar {
    display: none;
  }

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

  .discussion-main {
    padding-inline: 16px;
  }

  .discussion-question-list {
    grid-template-columns: 1fr;
  }

  .faculty-detail-grid {
    grid-template-columns: 1fr;
  }

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

  .faculty-level-booklet,
  .booklet-children {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .faculty-professor-toolbar {
    grid-template-columns: 1fr;
  }

  .professor-add-form,
  .review-select-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  :root {
    --sidebar-width: 0px;
    --topbar-height: 60px;
  }

  .game-squad-main {
    padding: var(--topbar-height) 0 76px;
  }

  .game-squad-page {
    height: calc(100vh - var(--topbar-height) - 76px);
    min-height: 520px;
  }

  .discussion-main {
    padding: calc(var(--topbar-height) + 14px) 12px 88px;
  }

  .discussion-hero,
  .discussion-question-section {
    padding: 12px;
  }

  .discussion-copy {
    min-height: 250px;
    padding: 18px;
  }

  .discussion-poll-header {
    align-items: start;
    flex-direction: column;
    gap: 8px;
  }

  .faculty-subject-grid {
    grid-template-columns: 1fr;
  }

  .faculty-detail-hero {
    grid-template-columns: 1fr;
  }

  .discussion-copy h1 {
    font-size: 42px;
  }

  .origin-map {
    min-height: 0;
    height: auto;
  }

  .campus-info-main {
    padding: var(--topbar-height) 0 88px;
  }

  .campus-info-page {
    width: 100%;
  }

  .campus-info-hero {
    min-height: 230px;
    padding: 58px 18px 24px;
  }

  .campus-hero-tabs {
    top: 12px;
    width: calc(100% - 24px);
    justify-content: space-between;
  }

  .campus-hero-tabs button {
    min-width: 0;
    flex: 1;
  }

  .campus-hero-copy h1 {
    font-size: 42px;
  }

  .campus-feature-row,
  .campus-pick-grid,
  .campus-news-strip,
  .campus-question-grid {
    grid-template-columns: 1fr;
  }

  .campus-feature-row,
  .campus-section {
    width: calc(100% - 24px);
    margin-left: auto;
    margin-right: auto;
  }

  .auth-modal {
    grid-template-columns: 1fr;
  }

  .auth-info-panel {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .auth-info-panel,
  .auth-form-panel {
    padding: 24px;
  }

  .mobile-only {
    display: grid;
  }

  .sidebar {
    width: min(290px, 86vw);
    transform: translateX(-104%);
    transition: transform 180ms ease;
    align-items: stretch;
  }

  .sidebar.is-open {
    transform: translateX(0);
  }

  .brand-block div:not(.brand-mark),
  .nav-item span:last-child,
  .board-link span,
  .section-label,
  .tag-follow-section,
  .admin-link {
    display: block;
  }

  .nav-item,
  .board-link {
    width: 100%;
    justify-content: flex-start;
  }

  .board-link::before {
    display: none;
  }

  .topbar {
    left: 0;
    gap: 8px;
    padding: 9px 10px;
  }

  .search-shell {
    position: static;
    transform: none;
    flex: 1;
    width: auto;
    min-width: 0;
  }

  .desktop-action,
  .profile-chip span:not(.avatar) {
    display: none;
  }

  .main-content {
    margin-left: 0;
    padding: calc(var(--topbar-height) + 12px) 10px 84px;
  }

  .faculty-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .faculty-detail-hero {
    grid-template-columns: 1fr;
  }

  .faculty-detail-hero > span {
    width: 92px;
  }

  .faculty-search-form {
    grid-template-columns: 1fr;
  }

  .faculty-detail-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .faculty-detail-actions > div:last-child {
    justify-content: flex-start;
  }

  .faculty-level-booklet,
  .booklet-children {
    grid-template-columns: 1fr;
  }

  .faculty-subject-grid,
  .professor-grid,
  .professor-add-form,
  .review-scale-grid,
  .review-select-grid {
    grid-template-columns: 1fr;
  }

  .subject-card-cover {
    grid-template-columns: 78px minmax(0, 1fr);
  }

  .subject-card-side {
    grid-column: 2;
    justify-items: start;
    text-align: left;
  }

  .subject-review-summary,
  .subject-review-item {
    grid-template-columns: 1fr;
  }

  .subject-review-summary .subject-score-tile,
  .review-item-score {
    width: 92px;
  }

  .feed-top-row {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 8px;
    align-items: start;
  }

  .feed-layout {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .feed-rail-spacer {
    display: none;
  }

  .sort-menu summary {
    width: 30px;
    min-width: 30px;
    padding: 0;
  }

  .masonry-feed {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }

  .post-card {
    grid-template-columns: 40px minmax(0, 1fr);
    padding: 12px 10px;
  }

  .post-card-body {
    padding: 0;
    padding-right: 96px;
  }

  .media-strip {
    width: 100%;
    padding: 0;
  }

  .card-actions {
    gap: 14px;
  }

  .card-actions button {
    padding: 0;
  }

  .modal-backdrop {
    padding: 8px;
    align-items: end;
  }

  .modal-card,
  .drawer-card {
    width: 100%;
    max-height: 92vh;
    border-radius: 14px 14px 0 0;
  }

  .detail-modal,
  .user-profile-modal {
    width: 100%;
  }

  .detail-post,
  .comment-section,
  .user-profile-posts {
    padding-left: 16px;
    padding-right: 16px;
  }

  .detail-post h1 {
    font-size: 24px;
  }

  .user-profile-summary {
    padding-left: 16px;
    padding-right: 16px;
  }

  .user-profile-cover {
    margin-left: -16px;
    margin-right: -16px;
  }

  .user-profile-identity,
  .user-profile-stats {
    grid-template-columns: 1fr;
  }

  .create-type-tabs,
  .create-two-column,
  .create-rating-grid {
    grid-template-columns: 1fr;
  }

  .drawer-card {
    position: static;
  }

  .admin-row {
    grid-template-columns: 1fr;
  }

  .admin-actions {
    justify-content: flex-start;
  }

  .comment-item {
    margin-left: calc(var(--depth) * 8px);
  }

  .bottom-nav {
    position: fixed;
    inset: auto 0 0;
    z-index: 25;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    min-height: 62px;
    padding-bottom: env(safe-area-inset-bottom);
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.96);
  }

  .bottom-nav button {
    display: grid;
    place-items: center;
    gap: 2px;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 18px;
  }

  .bottom-nav span {
    font-size: 10px;
  }
}

@media (max-width: 980px) {
  .clubs-desktop-top,
  .club-detail-body {
    grid-template-columns: 1fr;
  }

  .clubs-main .clubs-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
  }

  .club-masonry-column {
    gap: 18px;
  }

  .clubs-main .club-widget.is-wide {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .clubs-main {
    margin-left: 0;
    padding: var(--topbar-height) 0 76px;
  }

  .clubs-main .clubs-page {
    padding: 14px;
  }

  .clubs-slogan-panel {
    min-height: auto;
    padding: 18px 0;
    margin: 0 0 14px;
  }

  .clubs-slogan-panel h1 {
    font-size: 38px;
  }

  .clubs-main .clubs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .club-masonry-column {
    gap: 14px;
  }

  .clubs-main .club-widget.is-wide,
  .clubs-main .club-widget.is-tall {
    width: 100%;
  }

  .club-card-overlay {
    padding: 9px;
  }

  .club-card-overlay strong {
    font-size: 13px;
  }

  .club-category-list {
    grid-template-columns: 1fr;
  }

  .club-detail-body {
    padding: 12px;
  }

  .club-detail-media {
    min-height: 240px;
  }
}
