.admin-shell {
  width: min(100%, 1180px);
}

.admin-login {
  min-height: 65vh;
  display: grid;
  place-items: center;
  padding: 42px 0;
}

.login-panel {
  width: min(100%, 510px);
  padding: clamp(27px, 6vw, 46px);
  border: 1px solid rgba(23, 49, 47, 0.12);
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 248, 0.86);
  box-shadow: var(--shadow);
}

.login-panel h1,
.dashboard-heading h1 {
  font-size: clamp(36px, 6vw, 54px);
}

.field-label {
  display: block;
  margin-bottom: 9px;
  color: var(--teal-deep);
  font-size: 12px;
  font-weight: 800;
}

.password-field {
  position: relative;
}

.password-field input {
  width: 100%;
  height: 53px;
  padding: 0 64px 0 15px;
  border: 1px solid rgba(23, 49, 47, 0.18);
  border-radius: 13px;
  outline: none;
  background: #f8f5ee;
  color: var(--ink);
  font-size: 17px;
  letter-spacing: 0.08em;
}

.password-field input:focus {
  border-color: var(--teal);
  outline: 3px solid rgba(14, 107, 98, 0.13);
}

.password-toggle {
  position: absolute;
  top: 4px;
  right: 4px;
  height: 45px;
  padding: 0 13px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.login-button {
  width: 100%;
  margin-top: 12px;
}

.admin-status {
  min-height: 18px;
  margin: 10px 0 0;
  color: var(--danger);
  font-size: 12px;
  line-height: 1.5;
}

.login-footnote {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-top: 27px;
  padding-top: 19px;
  border-top: 1px solid var(--line);
}

.login-footnote > span {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--teal-wash);
  color: var(--teal);
  font-size: 13px;
}

.login-footnote p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.7;
}

.dashboard {
  padding-top: clamp(18px, 4vw, 44px);
  animation: screen-in 420ms cubic-bezier(0.2, 0.72, 0.2, 1) both;
}

.dashboard-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}

.dashboard-heading .lead {
  margin-bottom: 0;
}

.dashboard-actions {
  flex: 0 0 auto;
  display: flex;
  gap: 8px;
  padding-bottom: 6px;
}

.compact-button {
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid rgba(23, 49, 47, 0.1);
  font-size: 11px;
}

.admin-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin: 24px 0 20px;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 700;
}

.admin-meta-separator {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--coral);
}

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

.result-group {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 253, 248, 0.87);
  box-shadow: 0 8px 26px rgba(36, 55, 49, 0.045);
}

.result-group:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.result-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 19px;
  border-bottom: 1px solid var(--line);
  background: rgba(219, 234, 229, 0.31);
}

.result-group-name {
  margin: 0;
  color: var(--teal-deep);
  font-family: "STSong", "Songti SC", serif;
  font-size: 21px;
}

.submission-status {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 999px;
  background: #fffdf8;
  color: var(--teal);
  font-size: 10px;
  font-weight: 800;
}

.submission-status.is-complete {
  background: var(--teal);
  color: white;
}

.result-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.result-member {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 74px;
  padding: 13px 19px;
  border-bottom: 1px solid rgba(23, 49, 47, 0.08);
}

.result-member:last-child {
  border-bottom: 0;
}

.result-person {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.result-person .avatar {
  width: 39px;
  height: 39px;
  font-size: 16px;
}

.result-person-copy {
  min-width: 0;
}

.result-person-name {
  overflow: hidden;
  font-size: 14px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-person-count {
  margin: 3px 0 0;
  color: var(--ink-soft);
  font-size: 10px;
}

.result-score {
  text-align: right;
}

.result-average {
  color: var(--teal-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}

.result-average.is-empty {
  color: #9aa7a4;
  font-family: inherit;
  font-size: 14px;
}

.result-unit {
  margin-left: 3px;
  color: var(--ink-soft);
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 10px;
  font-weight: 700;
}

.privacy-notice {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-top: 20px;
  padding: 18px;
  border: 1px dashed rgba(14, 107, 98, 0.22);
  border-radius: var(--radius-sm);
  background: rgba(219, 234, 229, 0.33);
}

.privacy-notice-mark {
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--teal);
  color: white;
  font-family: Georgia, serif;
  font-size: 14px;
  font-weight: 700;
}

.privacy-notice strong {
  color: var(--teal-deep);
  font-size: 12px;
}

.privacy-notice p {
  margin: 4px 0 0;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.7;
}

.admin-footer {
  padding-top: 36px;
}

@media (max-width: 760px) {
  .dashboard-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }

  .dashboard-actions {
    width: 100%;
    flex-wrap: wrap;
    padding-bottom: 0;
  }

  .dashboard-actions .compact-button {
    flex: 1 1 auto;
  }

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

  .result-group:last-child:nth-child(odd) {
    grid-column: auto;
  }
}

@media (max-width: 430px) {
  .login-panel {
    padding: 27px 22px;
  }

  .result-member {
    padding-inline: 15px;
  }

  .result-group-head {
    padding-inline: 15px;
  }
}