:root {
  --blue: #2167db;
  --navy: #172c4d;
  --muted: #8591a4;
  --line: #e7edf4;
  --bg: #f5f8fc;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--navy);
  background: var(--bg);
  font-family: Arial, "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.6;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  outline-offset: 4px;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
button {
  border: 0;
}
img {
  max-width: 100%;
  object-fit: cover;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  line-height: 1.45;
}
h2 {
  font-size: 23px;
}
button svg,
a svg {
  vertical-align: middle;
}
input,
textarea,
select {
  border: 1px solid #dce4ef;
  border-radius: 7px;
  padding: 10px 12px;
  color: var(--navy);
  background: white;
  min-width: 0;
}
textarea {
  min-height: 100px;
  resize: vertical;
}
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #8fb8f6;
}
.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 24px;
}
.site-header {
  height: 88px;
  background: white;
  border-bottom: 1px solid var(--line);
}
.nav {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 1px;
}
.brand small {
  display: block;
  font-size: 9px;
  letter-spacing: 3px;
  color: #8090a8;
  font-weight: 400;
  margin-top: 1px;
}
.brand-mark {
  width: 43px;
  height: 43px;
  background: #2468d6;
  color: white;
  display: grid;
  place-items: center;
  border-radius: 11px 3px;
  font-family: serif;
  font-size: 29px;
}
.nav nav {
  display: flex;
  gap: 36px;
  align-items: center;
  font-weight: 600;
}
.nav a:hover {
  color: var(--blue);
}
.nav .nav-admin {
  font-size: 12px;
  font-weight: 400;
  color: #8a96a9;
  border-left: 1px solid var(--line);
  padding-left: 30px;
}
.home-hero {
  background:
    linear-gradient(90deg, rgba(6, 34, 80, 0.45), transparent),
    url("/images/naming-hero.png") center 55% / cover;
  color: white;
  padding: 70px 0 60px;
  min-height: 470px;
}
.eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2.2px;
  margin-bottom: 15px;
  display: block;
}
.home-hero h1 {
  font-family: Georgia, "Songti SC", SimSun, serif;
  font-size: 45px;
  letter-spacing: 3px;
  margin: 20px 0;
}
.home-hero em,
.ranking-hero em {
  font-style: normal;
}
.home-hero p {
  font-size: 14px;
  letter-spacing: 1px;
  color: #dbe9ff;
  max-width: 580px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--blue);
  color: white;
  border-radius: 6px;
  padding: 11px 21px;
  font-weight: 600;
  transition:
    background 0.2s,
    transform 0.2s;
}
.button:hover {
  background: #1557c0;
  transform: translateY(-1px);
}
.button.white {
  background: white;
  color: #205aa8;
  margin-top: 13px;
}
.hero-note {
  color: #b8cfe9;
  font-size: 10px;
  letter-spacing: 3px;
  margin-top: 34px;
}
.section {
  padding-top: 52px;
  padding-bottom: 60px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 28px;
  gap: 20px;
}
.section-heading h2 {
  margin-bottom: 0;
}
.blue {
  color: var(--blue);
}
.muted {
  color: var(--muted);
  font-size: 12px;
}
.industry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}
.industry-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.industry-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 40px #1b487218;
}
.industry-image {
  position: relative;
  background-size: cover;
  background-position: center;
  padding: 26px 30px;
  color: white;
  height: 260px;
  isolation: isolate;
}
.industry-image:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #082e69ba, transparent);
  z-index: -1;
}
.pill {
  font-size: 10px;
  border: 1px solid #ffffff66;
  background: #ffffff1c;
  padding: 5px 10px;
  border-radius: 4px;
}
.card-index {
  float: right;
  font-size: 28px;
  opacity: 0.6;
  font-family: Georgia, serif;
}
.industry-image h2 {
  font-family: SimSun, serif;
  font-size: 32px;
  margin: 57px 0 10px;
  letter-spacing: 3px;
}
.industry-image p {
  font-size: 12px;
  color: #dceafa;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.industry-bottom {
  padding: 20px 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #8593a9;
  font-size: 12px;
}
.industry-bottom b {
  color: #284369;
  font-size: 16px;
  margin-right: 3px;
}
.industry-bottom i,
.news-copy .eyebrow i {
  display: inline-block;
  height: 10px;
  width: 1px;
  background: #d7e0eb;
  margin: 0 13px;
}
.round-arrow {
  display: grid;
  place-items: center;
  border: 1px solid #dbe8fa;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  color: var(--blue);
}
.values-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-top: 48px;
  padding-top: 35px;
  border-top: 1px solid var(--line);
}
.values-strip > div {
  position: relative;
  padding-left: 45px;
}
.values-strip span {
  position: absolute;
  left: 0;
  color: #b6c6dc;
  font-family: Georgia, serif;
  font-size: 24px;
}
.values-strip h3 {
  font-size: 15px;
  margin: 0 0 6px;
}
.values-strip p {
  font-size: 12px;
  color: var(--muted);
}
footer {
  background: white;
  border-top: 1px solid var(--line);
  padding: 35px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  align-items: center;
}
.footer-inner .brand {
  font-size: 18px;
}
.footer-inner .brand small {
  letter-spacing: 1px;
}
.footer-inner p {
  margin: 0;
  font-size: 12px;
  color: #7e8da1;
  line-height: 2;
}
.footer-inner > a {
  font-size: 11px;
  color: #7e8da1;
}
.ranking-hero {
  background-size: cover;
  background-position: center 56%;
  color: white;
  padding: 25px 0 64px;
  min-height: 360px;
}
.crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #bdd3ef;
  margin-bottom: 27px;
}
.ranking-hero h1 {
  font-size: 35px;
  font-family: SimSun, serif;
  letter-spacing: 4px;
  margin-bottom: 14px;
}
.ranking-hero h1 em {
  font-size: 23px;
}
.ranking-hero p {
  color: #d4e3f5;
  font-size: 12px;
}
.hero-tags {
  display: flex;
  gap: 12px;
  font-size: 10px;
  margin-top: 24px;
}
.hero-tags span {
  border: 1px solid #ffffff40;
  padding: 4px 12px;
  border-radius: 3px;
}
.ranking-main {
  padding-bottom: 65px;
}
.stats-bar {
  position: relative;
  margin-top: -28px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 23px 35px;
  display: flex;
  align-items: center;
  gap: 55px;
  box-shadow: 0 8px 25px #223e6410;
}
.stats-bar > div {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.stats-bar b {
  font-size: 25px;
  font-weight: 600;
  color: #2766c2;
  font-variant-numeric: tabular-nums;
}
.stats-bar span {
  font-size: 11px;
  color: #8a97aa;
}
.stats-bar .status-text {
  font-size: 14px;
  color: #314f76;
}
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ba48b;
  align-self: center;
}
.text-button {
  margin-left: auto;
  color: var(--blue);
  background: transparent;
  font-size: 11px;
}
.ranking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 268px;
  gap: 24px;
  margin-top: 28px;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
}
.panel-heading {
  padding: 25px 25px 18px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
}
.panel-heading h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  margin-bottom: 5px;
}
.panel-heading h2 svg {
  color: #2f71ce;
}
.panel-heading p {
  font-size: 11px;
  color: #99a4b4;
  margin: 0;
}
.search {
  display: flex;
  align-items: center;
  border: 1px solid #e4eaf2;
  border-radius: 6px;
  color: #9ba7b7;
  background: white;
  padding: 0 10px;
}
.search input {
  border: 0;
  width: 170px;
  padding: 9px 6px;
  font-size: 11px;
  background: transparent;
}
.ranking-labels {
  margin: 0 25px;
  padding: 10px 0;
  display: flex;
  justify-content: space-between;
  padding-right: 112px;
  font-size: 10px;
  color: #98a5b6;
  border-bottom: 1px solid var(--line);
}
.rank-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 25px;
  padding: 24px 0;
  border-bottom: 1px solid #edf1f7;
}
.rank-number {
  width: 25px;
  color: #95a3b6;
  font-family: Georgia, serif;
  font-size: 19px;
  text-align: center;
  flex-shrink: 0;
}
.rank-1 {
  color: #d9a841;
}
.rank-2 {
  color: #8da0b8;
}
.rank-3 {
  color: #b78d6a;
}
.candidate-logo {
  width: 53px;
  height: 53px;
  border: 1px solid #e3eaf4;
  background: #f5f8fd;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 24px;
  font-family: SimSun, serif;
  color: #346bc2;
  flex-shrink: 0;
}
.candidate-logo img {
  width: 100%;
  height: 100%;
  border-radius: 9px;
}
.candidate-info {
  min-width: 0;
  flex: 1;
}
.candidate-info h3 {
  font-size: 15px;
  margin: 0 0 5px;
}
.candidate-info p {
  font-size: 10px;
  color: #929fb1;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 230px;
}
.candidate-info a {
  font-size: 9px;
  color: #8d9fb7;
}
.vote-count {
  text-align: right;
  margin-right: 5px;
  min-width: 72px;
}
.vote-count strong {
  display: block;
  font-size: 21px;
  font-weight: 600;
  color: #276cd0;
  font-variant-numeric: tabular-nums;
}
.vote-count small {
  font-size: 9px;
  color: #a0adbd;
}
.vote-button {
  font-size: 11px;
  padding: 8px 16px;
  white-space: nowrap;
}
.vote-button.voted {
  background: #edf3fd;
  color: #6e91c1;
}
.rank-footnote {
  padding: 18px;
  text-align: center;
  font-size: 10px;
  color: #a0adbc;
}
.side-panel {
  padding: 26px 24px;
}
.side-panel h2 {
  font-size: 19px;
  margin-bottom: 15px;
}
.small-divider {
  height: 2px;
  background: var(--blue);
  width: 27px;
  margin-bottom: 25px;
}
.organizer {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 20px 0;
  font-size: 12px;
  font-weight: 600;
}
.organizer small {
  display: block;
  color: #98a4b4;
  font-size: 9px;
  font-weight: 400;
  margin-top: 4px;
}
.organizer-logo {
  border: 1px solid #e7edf5;
  border-radius: 8px;
  background: #f5f8fd;
  color: #386cbc;
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.organizer img {
  width: 100%;
  height: 100%;
}
.support-note {
  background: linear-gradient(135deg, #e8f1ff, #f1f6fd);
  border: 1px solid #dce9f9;
  border-radius: 9px;
  margin-top: 20px;
  padding: 28px 24px;
  color: #4274b9;
}
.support-note h3 {
  font-family: SimSun, serif;
  margin: 12px 0;
  font-size: 21px;
}
.support-note p {
  font-size: 11px;
  color: #7a97bc;
  line-height: 2;
}
.support-note button {
  padding: 0;
  background: none;
  font-size: 10px;
  color: #4274b9;
}
.news-hero {
  padding: 50px 0;
  background:
    linear-gradient(90deg, #092f69d9, #092f6920),
    url("/images/naming-hero.png") center/cover;
  color: white;
}
.news-hero h1 {
  font-family: SimSun, serif;
  font-size: 34px;
  letter-spacing: 3px;
  margin-bottom: 15px;
}
.news-hero p {
  font-size: 12px;
  color: #c0d6f1;
}
.news-filters {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
  gap: 15px;
}
.tabs {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.tabs button {
  background: transparent;
  color: #7e8fa5;
  padding: 9px 19px;
  border-radius: 5px;
}
.tabs .active {
  background: var(--blue);
  color: white;
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}
.news-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
  transition: transform 0.2s;
}
.news-card:hover {
  transform: translateY(-4px);
}
.news-image {
  height: 190px;
  position: relative;
  overflow: hidden;
}
.news-image img {
  width: 100%;
  height: 100%;
  transition: transform 0.5s;
}
.news-card:hover img {
  transform: scale(1.04);
}
.news-image .pill {
  position: absolute;
  left: 16px;
  top: 16px;
  background: #2669d5e0;
  color: white;
  border: 0;
}
.news-copy {
  padding: 23px;
}
.news-copy .eyebrow {
  font-size: 9px;
  letter-spacing: 0.5px;
}
.news-copy h2 {
  font-size: 17px;
  margin-bottom: 12px;
}
.news-copy p {
  color: #8b99ac;
  font-size: 12px;
  line-height: 1.9;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 45px;
}
.read-more {
  font-size: 11px;
  color: #547bb4;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 15px;
}
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin-top: 40px;
  font-size: 12px;
}
.pagination button {
  border: 1px solid var(--line);
  border-radius: 5px;
  background: white;
  padding: 8px 15px;
  color: #48668f;
}
.article-container {
  max-width: 900px;
  padding-top: 35px;
  padding-bottom: 65px;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #7e91ad;
  margin-bottom: 35px;
}
.article-container article {
  padding: 45px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
}
.article-container h1 {
  font-size: 31px;
  margin: 20px 0;
}
.article-summary {
  padding: 18px 22px;
  background: #f5f8fc;
  border-left: 3px solid #6c9ce4;
  font-size: 14px;
  color: #7b8da5;
  line-height: 1.9;
}
.article-cover {
  width: 100%;
  max-height: 390px;
  border-radius: 6px;
  margin: 15px 0 25px;
}
.article-body {
  font-size: 16px;
  line-height: 2.1;
  color: #4f6179;
  overflow-wrap: anywhere;
}
.article-body img {
  max-width: 100%;
  height: auto;
}
.article-end {
  margin-top: 50px;
  border-top: 1px solid var(--line);
  padding-top: 25px;
  text-align: center;
  color: #a4afbd;
  font-size: 12px;
}
.empty,
.loading {
  padding: 65px 20px;
  text-align: center;
  color: #91a0b4;
}
.loading span {
  display: inline-block;
  width: 15px;
  height: 15px;
  border: 2px solid #d8e6fc;
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  vertical-align: middle;
  margin-right: 10px;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.notice {
  padding: 16px 20px;
  border-radius: 6px;
  margin: 15px 0;
  background: #edf5ff;
  color: #386caa;
}
.notice.error {
  background: #fff0ee;
  color: #bd4e44;
}
.notice button {
  margin-left: 16px;
  background: none;
  color: inherit;
  text-decoration: underline;
}
.toast {
  position: fixed;
  bottom: 35px;
  left: 50%;
  transform: translateX(-50%);
  background: #173553;
  color: white;
  box-shadow: 0 8px 35px #112e4130;
  padding: 15px 20px;
  z-index: 100;
  border-radius: 8px;
  display: flex;
  gap: 24px;
  max-width: 90vw;
}
.toast button {
  background: none;
  color: white;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: #102a4f88;
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 80;
  padding: 20px;
}
.modal {
  background: white;
  border-radius: 12px;
  padding: 35px;
  width: 580px;
  max-width: 100%;
  max-height: 90vh;
  overflow: auto;
  position: relative;
  box-shadow: 0 20px 70px #10234f30;
}
.modal h2 {
  margin-bottom: 25px;
}
.modal p {
  color: #75879e;
  line-height: 1.9;
}
.modal-close {
  position: absolute;
  right: 15px;
  top: 15px;
  background: none;
  color: #8192a9;
}
.pre-line {
  white-space: pre-line;
}
.admin-shell {
  min-height: 100vh;
  display: flex;
}
.admin-sidebar {
  width: 230px;
  background: #12243f;
  color: #a2b2cc;
  position: fixed;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  padding: 30px 18px 18px;
  z-index: 40;
}
.admin-sidebar .brand {
  color: white;
  font-size: 18px;
  padding: 0 8px;
}
.admin-sidebar .brand-mark {
  width: 34px;
  height: 37px;
  font-size: 24px;
}
.admin-sidebar .brand small {
  font-size: 7px;
  letter-spacing: 1.5px;
  color: #7086a6;
}
.sidebar-label {
  font-size: 9px;
  color: #526b8d;
  letter-spacing: 2px;
  padding: 35px 15px 13px;
}
.admin-sidebar nav {
  display: grid;
  gap: 5px;
}
.admin-sidebar nav a {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 11px 15px;
  border-radius: 6px;
  font-size: 12px;
}
.admin-sidebar nav a:hover {
  background: #1b3558;
}
.admin-sidebar nav a.active {
  background: #2469dc;
  color: white;
  box-shadow: 0 5px 18px #08142b40;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 25px;
  border-top: 1px solid #29405f;
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 11px;
}
.sidebar-bottom small {
  display: block;
  color: #607b9e;
  font-size: 9px;
}
.avatar {
  width: 32px;
  height: 32px;
  background: #294160;
  color: #dce8fc;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.sidebar-bottom button {
  background: none;
  color: #839cbf;
  margin-left: auto;
}
.admin-main {
  margin-left: 230px;
  flex: 1;
  min-width: 0;
}
.admin-header {
  height: 73px;
  background: white;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 35px;
  font-size: 12px;
}
.admin-header > a {
  font-size: 11px;
  color: #8192ac;
}
.admin-content {
  padding: 34px;
  max-width: 1600px;
  margin: auto;
  min-height: calc(100vh - 125px);
}
.admin-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.admin-title .eyebrow {
  font-size: 8px;
  margin-bottom: 8px;
}
.admin-title h1 {
  font-size: 26px;
  margin-bottom: 8px;
}
.admin-title p {
  font-size: 11px;
  color: #8e9db1;
  margin: 0;
}
.admin-title .button {
  font-size: 11px;
}
.overview-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 17px;
  margin-bottom: 24px;
}
.metric {
  background: white;
  border: 1px solid var(--line);
  padding: 22px;
  border-radius: 8px;
}
.metric > span {
  font-size: 11px;
  color: #8c9bb0;
}
.metric strong {
  display: block;
  font-size: 28px;
  color: #254a7d;
  margin: 9px 0;
  font-variant-numeric: tabular-nums;
}
.metric small {
  font-size: 9px;
  color: #acb7c6;
}
.admin-panel {
  padding: 25px;
  margin-bottom: 23px;
}
.admin-panel > h2 {
  font-size: 17px;
  margin-bottom: 20px;
}
.admin-industry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.admin-industry-grid > div {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 20px;
  background: linear-gradient(120deg, #f8fbff, white);
}
.admin-industry-grid h3 {
  margin: 10px 0;
  font-size: 17px;
}
.admin-industry-grid p {
  color: #8899b0;
  font-size: 11px;
}
.admin-industry-grid a {
  color: var(--blue);
  font-size: 10px;
}
.badge {
  font-size: 9px;
  display: inline-block;
  padding: 3px 9px;
  border-radius: 4px;
  background: #edf3fc;
  color: #5e81b7;
  white-space: nowrap;
}
.badge.published,
.badge.running,
.badge.success {
  background: #eaf6f0;
  color: #3b9773;
}
.badge.failed {
  background: #fdf0ee;
  color: #c8675b;
}
.badge.disabled,
.badge.archived,
.badge.paused,
.badge.ended {
  background: #f0f2f6;
  color: #8e9aab;
}
.admin-toolbar {
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.admin-toolbar select {
  font-size: 11px;
  padding: 8px 12px;
}
.table-scroll {
  overflow: auto;
  width: 100%;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 11px;
  text-align: left;
  white-space: nowrap;
}
th {
  font-size: 10px;
  font-weight: 500;
  color: #92a0b4;
  background: #f9fbfe;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 17px 18px;
  border-bottom: 1px solid #eef2f8;
  color: #546b8c;
  max-width: 250px;
  overflow: hidden;
  text-overflow: ellipsis;
}
tbody tr:hover {
  background: #fafcff;
}
.table-actions button {
  background: none;
  color: #3977d2;
  font-size: 10px;
  padding: 0 8px 0 0;
}
.admin-bottom {
  font-size: 9px;
  color: #a3afbf;
  text-align: center;
  padding: 17px;
}
.admin-editor {
  width: 800px;
  padding: 32px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-grid label,
.adjustment-panel label,
.login-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 11px;
  color: #627a9b;
}
.full-field {
  grid-column: 1/-1;
}
.checkbox-field {
  display: flex;
  gap: 8px;
  align-items: center;
  height: 43px;
}
.checkbox-field input {
  width: 16px;
  height: 16px;
}
.form-grid input,
.form-grid select,
.form-grid textarea {
  font-size: 12px;
  width: 100%;
}
.form-grid input[type="file"] {
  font-size: 10px;
  padding: 7px;
  background: #f9fbff;
}
.upload-preview {
  max-width: 180px;
  max-height: 90px;
  border-radius: 6px;
}
.body-editor {
  min-height: 220px;
  font-family: monospace;
}
.editor-tools {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.editor-tools button {
  font-size: 10px;
  background: #eef3fa;
  border-radius: 4px;
  padding: 5px 10px;
  color: #6580a5;
}
iframe {
  width: 100%;
  height: 300px;
  border: 1px solid var(--line);
  border-radius: 5px;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 28px;
  border-top: 1px solid var(--line);
  padding-top: 23px;
}
.secondary {
  background: #eef2f7;
  color: #7185a0;
  padding: 10px 20px;
  border-radius: 6px;
}
.adjustment-panel {
  max-width: 730px;
}
.adjustment-panel label {
  margin: 22px 0;
}
.adjustment-panel input,
.adjustment-panel select {
  width: 100%;
}
.adjust-preview {
  background: #f4f8ff;
  border: 1px solid #deebff;
  padding: 22px;
  border-radius: 8px;
  margin-top: 25px;
}
.adjust-preview h3 {
  font-size: 15px;
}
.adjust-preview p {
  font-size: 12px;
  color: #7890af;
}
.error-text {
  color: #c64d45 !important;
}
.mobile-menu {
  display: none;
  background: none;
  color: #587193;
}
.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: white;
}
.login-intro {
  padding: 50px 65px;
  background:
    linear-gradient(0deg, #0b326ae0, #113c6b70),
    url("/images/naming-hero.png") center/cover;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
}
.login-intro h1 {
  font-family: SimSun, serif;
  font-size: 42px;
  letter-spacing: 3px;
}
.login-intro p {
  color: #bed3ef;
  font-size: 13px;
}
.login-intro small {
  font-size: 10px;
  color: #8faed6;
}
.login-form {
  display: grid;
  place-items: center;
  padding: 35px;
}
.login-form form {
  max-width: 350px;
  width: 100%;
}
.login-form h2 {
  font-size: 28px;
  margin-bottom: 13px;
}
.login-form label {
  margin: 25px 0;
}
.login-form .button {
  width: 100%;
  margin-top: 8px;
}
.login-form .back-link {
  display: block;
  text-align: center;
  margin-top: 25px;
}
@media (min-width: 1500px) {
  .home-hero {
    padding-top: 90px;
    min-height: 510px;
  }
  .ranking-hero {
    min-height: 380px;
  }
}
@media (max-width: 1050px) {
  .stats-bar {
    gap: 25px;
    padding: 23px;
  }
  .ranking-layout {
    grid-template-columns: minmax(0, 1fr) 230px;
    gap: 18px;
  }
  .rank-row {
    gap: 10px;
    margin: 0 18px;
  }
  .candidate-logo {
    width: 44px;
    height: 44px;
  }
  .vote-count strong {
    font-size: 18px;
  }
  .vote-button {
    padding: 8px 12px;
  }
  .candidate-info p {
    max-width: 140px;
  }
  .panel-heading {
    padding: 20px 18px;
  }
  .search input {
    width: 130px;
  }
  .overview-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .admin-content {
    padding: 25px;
  }
  .admin-sidebar {
    width: 205px;
  }
  .admin-main {
    margin-left: 205px;
  }
  .news-grid {
    gap: 18px;
  }
  .news-copy {
    padding: 18px;
  }
  .section-heading > .muted {
    max-width: 190px;
  }
  .stats-bar > div {
    gap: 7px;
  }
  .stats-bar > div:nth-child(3) {
    flex-wrap: wrap;
    max-width: 140px;
  }
  .stats-bar > div:nth-child(3) > span:last-child {
    flex-basis: 100%;
  }
  .login-intro {
    padding: 40px;
  }
}
@media (max-width: 760px) {
  .container {
    padding-left: 18px;
    padding-right: 18px;
  }
  .site-header {
    height: 73px;
  }
  .brand {
    font-size: 18px;
    gap: 8px;
  }
  .brand-mark {
    width: 35px;
    height: 36px;
    font-size: 25px;
  }
  .brand small {
    font-size: 7px;
    letter-spacing: 2px;
  }
  .nav nav {
    gap: 20px;
    font-size: 12px;
  }
  .nav .nav-admin {
    display: none;
  }
  .home-hero {
    padding: 48px 0;
    min-height: 410px;
    background-position: 60%;
  }
  .home-hero h1 {
    font-size: 34px;
    letter-spacing: 2px;
  }
  .home-hero p {
    max-width: 290px;
    font-size: 12px;
    line-height: 1.9;
  }
  .eyebrow {
    font-size: 8px;
    letter-spacing: 1.7px;
  }
  .section {
    padding-top: 32px;
    padding-bottom: 40px;
  }
  .section-heading {
    display: block;
  }
  .section-heading h2 {
    font-size: 21px;
  }
  .section-heading > .muted {
    display: block;
    max-width: none;
    margin-top: 12px;
  }
  .industry-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .industry-image {
    height: 235px;
    padding: 24px;
  }
  .industry-image h2 {
    margin-top: 47px;
    font-size: 29px;
  }
  .industry-bottom {
    padding: 17px 22px;
  }
  .values-strip {
    gap: 18px;
    margin-top: 30px;
    padding-top: 25px;
  }
  .values-strip > div {
    padding: 0;
  }
  .values-strip span {
    position: static;
    font-size: 20px;
  }
  .values-strip h3 {
    font-size: 12px;
    margin-top: 10px;
  }
  .values-strip p {
    font-size: 10px;
  }
  .footer-inner {
    flex-wrap: wrap;
    gap: 18px;
  }
  .footer-inner p {
    font-size: 10px;
  }
  .footer-inner .brand {
    font-size: 16px;
  }
  .footer-inner > a {
    margin-left: auto;
  }
  .ranking-hero {
    padding: 20px 0 60px;
    min-height: 340px;
    background-position: 60%;
  }
  .ranking-hero h1 {
    font-size: 29px;
    letter-spacing: 2px;
  }
  .ranking-hero h1 em {
    font-size: 19px;
  }
  .hero-tags {
    gap: 8px;
    flex-wrap: wrap;
  }
  .hero-tags span {
    font-size: 9px;
    padding: 4px 8px;
  }
  .stats-bar {
    padding: 17px 15px;
    gap: 12px;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .stats-bar > div {
    gap: 8px;
  }
  .stats-bar b {
    font-size: 22px;
  }
  .stats-bar span {
    font-size: 9px;
  }
  .stats-bar > div:nth-child(3) {
    max-width: none;
    flex-wrap: nowrap;
  }
  .stats-bar > div:nth-child(3) > span:last-child {
    display: none;
  }
  .stats-bar .status-text {
    font-size: 11px;
  }
  .text-button {
    font-size: 10px;
  }
  .ranking-layout {
    grid-template-columns: 1fr;
    margin-top: 20px;
  }
  .ranking-layout aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 13px;
  }
  .side-panel {
    padding: 20px 15px;
  }
  .side-panel h2 {
    font-size: 17px;
  }
  .side-panel .eyebrow {
    font-size: 7px;
  }
  .organizer {
    gap: 8px;
    font-size: 10px;
  }
  .organizer-logo {
    width: 30px;
    height: 30px;
  }
  .organizer small {
    font-size: 8px;
  }
  .support-note {
    padding: 23px 15px;
    margin-top: 0;
  }
  .support-note h3 {
    font-size: 19px;
  }
  .support-note p {
    font-size: 9px;
  }
  .panel-heading {
    align-items: flex-start;
    gap: 10px;
  }
  .panel-heading h2 {
    font-size: 17px;
  }
  .panel-heading h2 svg {
    width: 18px;
  }
  .panel-heading p {
    font-size: 9px;
  }
  .panel-heading .search {
    padding: 0 6px;
  }
  .panel-heading .search input {
    width: 90px;
    font-size: 9px;
    padding: 7px 3px;
  }
  .panel-heading .search svg {
    width: 13px;
  }
  .ranking-labels {
    margin: 0 16px;
    padding-right: 80px;
  }
  .rank-row {
    margin: 0 14px;
    padding: 21px 0;
    gap: 9px;
  }
  .rank-number {
    width: 21px;
    font-size: 16px;
  }
  .rank-number svg {
    width: 20px;
  }
  .candidate-logo {
    width: 38px;
    height: 38px;
    border-radius: 7px;
    font-size: 19px;
  }
  .candidate-info h3 {
    font-size: 12px;
    margin-bottom: 4px;
  }
  .candidate-info p {
    font-size: 8px;
    max-width: 108px;
  }
  .candidate-info a {
    font-size: 8px;
  }
  .vote-count {
    min-width: 53px;
    margin: 0;
  }
  .vote-count strong {
    font-size: 16px;
  }
  .vote-count small {
    font-size: 8px;
  }
  .vote-button {
    font-size: 9px;
    padding: 7px 10px;
    gap: 3px;
  }
  .vote-button svg {
    width: 10px;
  }
  .rank-footnote {
    font-size: 9px;
  }
  .news-hero {
    padding: 37px 0;
  }
  .news-hero h1 {
    font-size: 27px;
  }
  .news-filters {
    align-items: flex-start;
    flex-direction: column;
  }
  .tabs button {
    font-size: 11px;
    padding: 8px 14px;
  }
  .news-filters .search {
    width: 100%;
  }
  .news-filters .search input {
    flex: 1;
  }
  .news-grid {
    grid-template-columns: 1fr;
  }
  .news-image {
    height: 210px;
  }
  .news-copy h2 {
    font-size: 19px;
  }
  .news-copy p {
    font-size: 12px;
  }
  .article-container article {
    padding: 24px 19px;
  }
  .article-container h1 {
    font-size: 25px;
  }
  .article-summary {
    font-size: 12px;
    padding: 15px;
  }
  .article-body {
    font-size: 14px;
  }
  .article-end {
    font-size: 10px;
  }
  .modal {
    padding: 28px 22px;
  }
  .admin-sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s;
    width: 220px;
  }
  .admin-sidebar.open {
    transform: translateX(0);
    box-shadow: 0 0 0 100vw #10244866;
  }
  .admin-main {
    margin-left: 0;
  }
  .mobile-menu {
    display: block;
    padding: 0;
  }
  .admin-header {
    padding: 0 20px;
    height: 64px;
    gap: 15px;
    justify-content: flex-start;
  }
  .admin-header > a {
    margin-left: auto;
  }
  .admin-content {
    padding: 23px 16px;
  }
  .admin-title {
    gap: 12px;
  }
  .admin-title h1 {
    font-size: 23px;
  }
  .admin-title p {
    font-size: 10px;
  }
  .admin-title .button {
    padding: 9px 12px;
    font-size: 10px;
  }
  .overview-stats {
    gap: 12px;
  }
  .metric {
    padding: 17px;
  }
  .metric strong {
    font-size: 25px;
  }
  .admin-panel {
    padding: 19px;
  }
  .admin-industry-grid {
    grid-template-columns: 1fr;
  }
  .admin-toolbar {
    padding: 14px;
    gap: 10px;
  }
  .admin-toolbar .search {
    flex: 1;
  }
  .admin-toolbar .search input {
    width: 110px;
  }
  .admin-toolbar .muted {
    font-size: 10px;
  }
  .admin-toolbar select {
    max-width: 140px;
  }
  .admin-editor {
    padding: 27px 20px;
  }
  .form-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .full-field {
    grid-column: auto;
  }
  .admin-editor h2 {
    font-size: 20px;
  }
  .login-shell {
    grid-template-columns: 1fr;
  }
  .login-intro {
    min-height: 260px;
    padding: 25px;
  }
  .login-intro > div {
    margin-top: 35px;
  }
  .login-intro h1 {
    font-size: 27px;
  }
  .login-intro p,
  .login-intro > small {
    display: none;
  }
  .login-form {
    padding: 35px 25px;
  }
  .login-form h2 {
    font-size: 25px;
  }
  .login-form .eyebrow {
    font-size: 9px;
  }
  .toast {
    bottom: 20px;
    font-size: 12px;
    padding: 13px 17px;
    min-width: 250px;
  }
  .admin-bottom {
    font-size: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
.nav-rules {
  background: none;
  color: inherit;
  font-weight: 600;
  padding: 0;
}
.rank-panel {
  scroll-margin-top: 24px;
}
@media (max-width: 760px) {
  .home-hero h1 {
    font-size: clamp(25px, 6.9vw, 34px);
    letter-spacing: 1px;
  }
  .home-hero h1 em {
    white-space: nowrap;
  }
  .nav:has(.nav-rules) {
    flex-wrap: wrap;
    padding-top: 12px;
    padding-bottom: 9px;
    gap: 10px;
  }
  .site-header:has(.nav-rules) {
    height: auto;
    min-height: 98px;
  }
  .nav:has(.nav-rules) nav {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
    font-size: 11px;
  }
  .nav-rules {
    font-size: 11px;
  }
  .stats-bar {
    scroll-margin-top: 10px;
  }
}
.field-label {
  display: block;
  font-size: 11px;
  color: #627a9b;
  margin-bottom: 9px;
}
.rich-editor {
  border: 1px solid #dce4ef;
  border-radius: 8px;
  background: white;
  overflow: hidden;
}
.rich-toolbar {
  display: flex;
  gap: 3px;
  align-items: center;
  flex-wrap: wrap;
  background: #f7f9fd;
  border-bottom: 1px solid #e5ebf4;
  padding: 9px 10px;
}
.rich-toolbar button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 4px;
  background: transparent;
  color: #6a7f9c;
}
.rich-toolbar button:hover,
.rich-toolbar button.active {
  background: #e4edfc;
  color: #2167db;
}
.rich-toolbar select {
  width: 100px !important;
  height: 30px;
  padding: 3px 7px;
  font-size: 11px !important;
  background: white;
}
.toolbar-divider {
  height: 18px;
  border-left: 1px solid #dce4ef;
  margin: 0 4px;
}
.rich-toolbar .preview-toggle {
  width: auto;
  padding: 0 8px;
  gap: 5px;
  font-size: 10px;
  margin-left: auto;
}
.rich-content {
  min-height: 290px;
  max-height: 500px;
  overflow: auto;
  padding: 22px 25px;
  font-size: 14px;
  line-height: 1.9;
  color: #49617f;
  outline: none;
}
.rich-content:focus {
  box-shadow: inset 0 0 0 2px #c7daf8;
}
.rich-content:empty:before {
  content: attr(data-placeholder);
  color: #afbac9;
  pointer-events: none;
}
.rich-content h2 {
  font-size: 21px;
  margin: 18px 0 10px;
}
.rich-content h3 {
  font-size: 17px;
  margin: 15px 0 9px;
}
.rich-content p {
  margin: 0 0 12px;
}
.rich-content blockquote {
  border-left: 3px solid #9ebfee;
  background: #f3f7fd;
  padding: 10px 18px;
  color: #7d93af;
  margin: 16px 0;
}
.rich-content a {
  color: #2167db;
  text-decoration: underline;
}
.rich-editor-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #fafcff;
  padding: 9px 13px;
  border-top: 1px solid #edf1f7;
  font-size: 9px;
  color: #9aa9bc;
}
.rich-link-form {
  padding: 12px;
  background: #eef4ff;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  border-bottom: 1px solid #dce8fb;
}
.rich-link-form input {
  flex: 1;
  min-width: 150px;
}
.rich-link-form button {
  padding: 8px 10px;
  font-size: 10px;
}
.rich-link-form .error-text {
  flex-basis: 100%;
  font-size: 10px;
}
.rich-preview {
  padding: 18px;
  background: #f4f7fc;
  border-top: 1px solid #dce4ef;
}
.rich-preview .eyebrow {
  margin-bottom: 10px;
}
.rich-preview iframe {
  background: white;
}
.body-field {
  min-width: 0;
}
@media (max-width: 760px) {
  .rich-toolbar {
    padding: 7px;
    gap: 2px;
  }
  .rich-toolbar button {
    height: 28px;
    width: 27px;
  }
  .rich-toolbar .preview-toggle {
    margin-left: 0;
  }
  .rich-content {
    padding: 18px 15px;
    min-height: 250px;
  }
  .rich-editor-footer {
    font-size: 8px;
  }
  .rich-toolbar select {
    width: 85px !important;
  }
  .toolbar-divider {
    margin: 0 2px;
  }
}
.interval-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 95px;
  gap: 8px;
}
.interval-field small {
  grid-column: 1/-1;
  font-size: 9px;
}
@media (max-width: 760px) {
  .candidate-info h3 {
    font-size: 13px;
  }
  .candidate-info p {
    font-size: 11px;
    max-width: none;
    line-height: 1.5;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .vote-button {
    font-size: 11px;
    padding: 8px 10px;
    white-space: nowrap;
  }
  .vote-count small {
    font-size: 9px;
  }
  .rich-editor-footer {
    font-size: 10px;
  }
}
