:root {
  --bg: #f8fafc;
  --bg-deep: #eff6ff;
  --surface: rgba(255, 255, 255, 0.97);
  --surface-strong: #ffffff;
  --surface-soft: #f8fafc;
  --ink: #0f172a;
  --muted: #64748b;
  --line: rgba(0, 105, 210, 0.12);
  --brand: #0069d2;
  --brand-strong: #0057ad;
  --brand-soft: rgba(0, 105, 210, 0.1);
  --accent: #0069d2;
  --accent-soft: rgba(0, 105, 210, 0.08);
  --cool-soft: rgba(0, 105, 210, 0.08);
  --danger: #a63232;
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 10px 24px rgba(15, 23, 42, 0.06);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --ring: 0 0 0 4px rgba(0, 105, 210, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Pretendard", "SUIT", "Apple SD Gothic Neo", "Segoe UI", sans-serif;
  background: var(--bg);
  min-height: 100vh;
}

button,
input,
textarea,
select {
  font: inherit;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease, transform 160ms ease;
}

button {
  border-radius: var(--radius-sm);
}

input,
textarea,
select {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.98);
  color: var(--ink);
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: none;
  border-color: rgba(0, 105, 210, 0.5);
  box-shadow: var(--ring);
}

.page-noise {
  display: none;
}

.app-shell {
  position: relative;
  z-index: 1;
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 56px;
}

.app-toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 30;
  min-width: 240px;
  max-width: min(420px, calc(100vw - 40px));
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(31, 36, 31, 0.5);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.18);
  text-align: center;
}

.app-toast-success {
  background: rgba(0, 105, 210, 0.5);
}

.app-toast-attention {
  background: rgba(190, 24, 48, 0.94);
  font-size: 16px;
  box-shadow: 0 18px 38px rgba(130, 16, 36, 0.32);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(280px, 360px);
  gap: 24px;
  align-items: stretch;
  margin-bottom: 28px;
}

.hero-copy-block,
.hero-card,
.panel,
.stat-card,
.list-card,
.vote-card {
  background: var(--surface);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
}

.hero-copy-block,
.hero-card,
.panel,
.list-card,
.vote-card {
  padding: 24px;
}

.hero-copy-block {
  position: relative;
  overflow: hidden;
}

.hero-copy-block::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -60px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(29, 91, 70, 0.18), transparent 68%);
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
}

h1 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero-copy,
.panel-copy,
.page-description,
.auth-footnote {
  color: var(--muted);
  line-height: 1.7;
}

.hero-copy {
  max-width: 720px;
  margin: 18px 0 0;
  font-size: 16px;
}

.auth-stage {
  display: grid;
  justify-items: center;
  padding-top: 8px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 105, 210, 0.12);
  font-size: 13px;
  font-weight: 700;
}

.hero-card {
  display: grid;
  gap: 18px;
  align-content: start;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(249, 241, 229, 0.88)),
    var(--surface);
}

.hero-card-top,
.row-between,
.item-head,
.candidate-builder-header,
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.credential-stack {
  display: grid;
  gap: 10px;
}

.credential-line {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(248, 251, 255, 1);
  border: 1px solid rgba(0, 105, 210, 0.1);
}

.credential-line span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.page-header {
  margin-bottom: 20px;
  padding: 24px 26px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

.page-header-main {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.page-header-top {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.brand-hero {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.brand-logo {
  width: min(100%, 260px);
  height: auto;
  object-fit: contain;
}

.brand-tagline {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-lockup.compact {
  margin-bottom: 2px;
}

.brand-symbol {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 8px 16px rgba(0, 105, 210, 0.16);
}

.brand-name {
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.page-title {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.page-description {
  margin: 8px 0 0;
  max-width: 760px;
  font-size: 15px;
}

.page-actions {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.page-leading-actions {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
}

.card-title,
.section-title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.section-title.large {
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.12;
}

.panel-header {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.panel-header.row-between {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.panel-header-actions {
  margin-left: auto;
  justify-content: flex-end;
}

.auth-grid,
.dashboard-grid,
.stats-grid,
.list-grid,
.vote-grid {
  display: grid;
  gap: 18px;
}

.auth-grid {
  grid-template-columns: 1.1fr 0.9fr;
}

.auth-card {
  width: min(581px, 100%);
  padding: 28px;
  margin-top: 8px;
}

.auth-feedback {
  margin-bottom: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.6;
  font-weight: 700;
}

.auth-feedback-success {
  color: #0f5132;
  background: rgba(25, 135, 84, 0.1);
  border: 1px solid rgba(25, 135, 84, 0.18);
}

.auth-feedback-error {
  color: #842029;
  background: rgba(220, 53, 69, 0.1);
  border: 1px solid rgba(220, 53, 69, 0.18);
}

.auth-link-button {
  margin-top: 16px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--brand);
  font-size: 14px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.auth-link-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.auth-link-divider {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.onboarding-card {
  margin-top: 0;
}

.auth-card .section-title {
  margin-top: 8px;
  margin-bottom: 14px;
  text-align: center;
}

.auth-card form {
  display: grid;
  gap: 18px;
  margin-top: 8px;
}

.auth-card form > button[type="submit"] {
  width: 100%;
  min-height: 52px;
  justify-self: stretch;
  margin-top: 6px;
  box-sizing: border-box;
}

.password-input-wrap {
  position: relative;
  display: block;
}

.password-input-wrap input {
  padding-right: 52px;
}

.password-input-wrap > .password-visibility-button {
  position: absolute;
  top: 50%;
  right: 10px;
  display: grid;
  width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  box-shadow: none;
  cursor: pointer;
  transform: translateY(-50%);
}

.password-input-wrap > .password-visibility-button:hover {
  color: var(--ink);
  background: transparent;
  box-shadow: none;
  transform: translateY(-50%);
}

.password-input-wrap > .password-visibility-button:focus-visible {
  outline: none;
  border: 0;
  background: transparent;
  box-shadow: var(--ring);
}

.eye-icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.eye-icon-hide,
.password-input-wrap > .password-visibility-button[aria-pressed="true"] .eye-icon-show {
  display: none;
}

.password-input-wrap > .password-visibility-button[aria-pressed="true"] .eye-icon-hide {
  display: block;
}

.auth-footnote {
  margin-top: 18px;
  text-align: center;
}

.admin-stack {
  display: grid;
  gap: 18px;
}

.wide-panel {
  width: 100%;
}

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

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

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

.form-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.inline-edit-actions {
  gap: 14px;
  justify-content: flex-end;
}

.student-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: end;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.student-filter-panel {
  display: grid;
  gap: 14px;
  margin-bottom: 16px;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.98), rgba(255, 255, 255, 0.92));
  border: 1px solid rgba(0, 105, 210, 0.12);
}

.student-filter-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: stretch;
}

.search-field {
  width: 100%;
}

.search-label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 700;
}

.student-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.mini-filter {
  min-width: 0;
}

.student-filter-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.student-filter-actions button {
  min-width: 132px;
  min-height: 52px;
  border-radius: 16px;
  font-size: 16px;
}

.filter-group {
  display: grid;
  gap: 16px;
}

.filter-group-label {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
}

.filter-group-student {
  min-width: 0;
}

.student-info-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(112px, 0.6fr)) minmax(220px, 1.2fr);
  gap: 12px;
  align-items: center;
}

.time-select,
.mini-filter select,
.mini-filter input {
  min-height: 52px;
  padding: 0 15px;
  border-radius: 16px;
}

select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 46px;
}

.select-field {
  position: relative;
}

.select-field::after {
  content: "";
  position: absolute;
  right: 16px;
  bottom: 18px;
  width: 18px;
  height: 13px;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='13' viewBox='0 0 18 13' fill='none'%3E%3Cpath d='M1.5 1.5L9 10.5L16.5 1.5' stroke='%23222222' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 18px 13px;
  background-repeat: no-repeat;
}

.schedule-block .select-field::after {
  right: 9px;
  bottom: 9px;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background-color: #edf5ff;
  background-position: center;
  background-size: 14px 10px;
}

.date-field {
  position: relative;
}

.date-field::after {
  content: "";
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 18px;
  height: 18px;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18' fill='none'%3E%3Crect x='2.25' y='3.75' width='13.5' height='12' rx='2' stroke='%23222222' stroke-width='1.8'/%3E%3Cpath d='M5.25 1.5V5.25' stroke='%23222222' stroke-width='1.8' stroke-linecap='round'/%3E%3Cpath d='M12.75 1.5V5.25' stroke='%23222222' stroke-width='1.8' stroke-linecap='round'/%3E%3Cpath d='M2.25 6.75H15.75' stroke='%23222222' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
  background-size: 18px 18px;
  background-repeat: no-repeat;
}

.schedule-block .date-field::after {
  right: 9px;
  bottom: 9px;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background-color: #edf5ff;
  background-position: center;
  background-size: 17px 17px;
}

input[type="date"] {
  min-height: 52px;
  padding: 0 15px;
  border-radius: 16px;
  font-size: 16px;
}

.schedule-block input[type="date"] {
  position: relative;
  padding-right: 52px;
  cursor: pointer;
}

.schedule-block input[type="date"]::-webkit-calendar-picker-indicator {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  cursor: pointer;
  opacity: 0;
}

.schedule-block select {
  cursor: pointer;
}

.filter-chip {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--muted);
  border: 1px solid rgba(0, 105, 210, 0.14);
  box-shadow: none;
}

.filter-chip.active {
  background: #0069d2;
  color: #fff;
}

.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.compact-actions {
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.icon-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 12px;
  background: #f7faff;
  color: var(--ink);
  border: 1px solid rgba(0, 105, 210, 0.14);
  box-shadow: none;
  font-size: 13px;
  font-weight: 800;
}

.icon-action:hover:not(:disabled) {
  background: #eef6ff;
  transform: none;
}

.icon-action:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.download-icon {
  font-size: 16px;
  line-height: 1;
}

.danger-action {
  background: #fff1f1;
  color: #b42318;
  border: 1px solid #f0c2c2;
}

.danger-action:hover {
  background: #ffe4e4;
}

.election-card-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.election-card-actions {
  justify-content: flex-end;
}

.election-list-item.is-editing {
  gap: 14px;
  padding-bottom: 20px;
}

.election-list-item.is-editing .inline-edit-form {
  margin-top: 4px;
}

.election-head {
  align-items: flex-start;
}

.election-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.election-meta-line {
  margin: 4px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.election-meta-inline {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  text-align: right;
}

.check-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
}

.check-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--brand);
}

.school-card-actions {
  justify-content: flex-end;
  margin-top: 12px;
}


button.secondary.election-edit-button {
  background: #eef2f6;
  color: #364152;
  border: 1px solid #d8dee8;
}

button.secondary.election-edit-button:hover {
  background: #e4e9f0;
}

button.secondary.election-delete-button {
  background: #fff1f1;
  color: #b42318;
  border: 1px solid #f0c2c2;
}

button.secondary.election-delete-button:hover {
  background: #ffe4e4;
}

.table-select-all {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  font-size: 14px;
  font-weight: 700;
}

.table-select-all input,
.student-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--brand);
}

.student-item-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
}

.student-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.student-table-wrap {
  margin-top: 16px;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  border: 1px solid rgba(0, 105, 210, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
}

.student-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
}

.student-table thead th {
  padding: 14px 10px;
  text-align: left;
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  background: #f7faff;
  border-bottom: 1px solid rgba(0, 105, 210, 0.12);
  white-space: normal;
  word-break: keep-all;
}

.student-table thead th:first-child {
  border-top-left-radius: 22px;
}

.student-table thead th:last-child {
  border-top-right-radius: 22px;
}

.student-table tbody td {
  height: 72px;
  padding: 10px 10px;
  vertical-align: middle;
  font-size: 13px;
  line-height: 1.35;
  border-bottom: 1px solid rgba(0, 105, 210, 0.08);
  word-break: break-word;
}

.student-table tbody tr:last-child td {
  border-bottom: 0;
}

.student-table tbody tr:hover {
  background: rgba(0, 105, 210, 0.025);
}

.student-table .checkbox-cell {
  width: 42px;
  text-align: center;
  vertical-align: middle;
}

.student-table .checkbox-cell input {
  display: block;
  width: 18px;
  height: 18px;
  margin: 0 auto;
  accent-color: var(--brand);
}

.student-name-cell {
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
}

.mono-cell {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}

.admin-content {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  padding: 30px 34px 34px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(0, 105, 210, 0.1);
  box-shadow: 0 20px 44px rgba(20, 35, 65, 0.08);
}

.admin-content > .panel.wide-panel,
.admin-content > .list-card.wide-panel,
.admin-content > .dashboard-grid > .panel {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.content-subtabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin-bottom: 26px;
  width: 100%;
  border-bottom: 1px solid rgba(31, 36, 31, 0.14);
}

.admin-main-tabs {
  margin-bottom: 18px;
  padding: 8px;
  border-radius: 24px;
  border: 1px solid rgba(0, 105, 210, 0.1);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 34px rgba(20, 35, 65, 0.06);
}

.content-subtab-button {
  position: relative;
  min-height: 68px;
  padding: 0 18px 8px;
  justify-content: center;
  background: transparent;
  color: #1f241f;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
  box-shadow: none;
  border-radius: 0;
}

.content-subtab-button.active {
  background: transparent;
  color: #1f241f;
  box-shadow: none;
}

.content-subtab-button::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 4px;
  border-radius: 999px;
  background: transparent;
}

.content-subtab-button.active::after {
  background: #0069d2;
}

.admin-main-tabs .content-subtab-button {
  min-height: 58px;
  padding: 0 18px;
  border-radius: 18px;
  font-size: 17px;
  font-weight: 800;
}

.admin-main-tabs .content-subtab-button::after {
  display: none;
}

.admin-main-tabs .content-subtab-button.active {
  background: linear-gradient(180deg, rgba(238, 244, 251, 0.98), rgba(230, 240, 250, 0.98));
  color: var(--brand);
  box-shadow: inset 0 0 0 1px rgba(0, 105, 210, 0.08);
}

.class-main-tabs {
  margin: 22px 0 18px;
}

.class-election-list {
  display: grid;
  gap: 18px;
}

.class-election-card {
  margin: 0;
}

.class-election-card .class-candidate-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
  padding: 0;
  list-style: none;
}

.class-candidate-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(31, 36, 31, 0.1);
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.9);
}

.class-candidate-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.class-candidate-profile > div {
  min-width: 0;
}

.class-election-total {
  margin: 16px 0 0;
  color: var(--muted);
  text-align: right;
}

.class-candidate-result {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  justify-items: center;
  gap: 5px 10px;
  width: 150px;
  min-width: 150px;
  text-align: center;
}

.class-candidate-result > strong,
.class-candidate-result > span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  line-height: 1;
}

.class-candidate-result > strong {
  color: var(--ink);
}

.class-candidate-result > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.class-candidate-result .result-bar-track {
  grid-column: 1 / -1;
  width: 150px;
}

.class-candidate-item .candidate-photo {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
}

.class-results-hidden {
  padding: 16px;
  border-radius: 14px;
  background: rgba(31, 36, 31, 0.05);
  color: var(--muted);
  text-align: center;
}

@media (max-width: 640px) {
  .class-election-card .class-candidate-list,
  .candidate-list {
    grid-template-columns: 1fr;
  }

  .class-candidate-item {
    align-items: stretch;
    flex-direction: column;
  }

  .class-candidate-result {
    grid-template-columns: auto auto 1fr;
    justify-content: stretch;
    justify-items: start;
    width: 100%;
    min-width: 0;
    text-align: left;
  }

  .class-candidate-result .result-bar-track {
    grid-column: auto;
    width: 100%;
  }
}

.dashboard-grid.student-admin-grid.account-create-grid {
  grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr);
  gap: 28px;
  align-items: stretch;
}

.account-create-divider {
  height: 1px;
  background: rgba(0, 105, 210, 0.14);
  margin: 2px 0;
}

.account-create-divider.vertical {
  width: 1px;
  height: 100%;
  min-height: 100%;
  margin: 0;
}

.account-create-divider::before,
.account-create-divider::after {
  content: none;
}

.split-panel {
  display: flex;
  flex-direction: column;
  padding: 26px;
  border-radius: 24px;
  border: 1px solid rgba(0, 105, 210, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.split-panel-primary {
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.98), rgba(255, 255, 255, 0.94));
}

.split-panel-secondary {
  background: linear-gradient(180deg, rgba(244, 246, 249, 0.96), rgba(255, 255, 255, 0.94));
}

.split-panel .panel-header {
  padding-bottom: 18px;
  margin-bottom: 22px;
  border-bottom: 1px solid rgba(0, 105, 210, 0.1);
}

#bulk-student-form,
#student-form {
  display: flex;
  flex-direction: column;
  height: 100%;
}

#bulk-student-form button[type="submit"],
#student-form button[type="submit"] {
  margin-top: auto;
}

#bulk-create-result,
#single-create-result {
  margin-top: 12px;
}

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

.dashboard-grid.single-panel-grid {
  grid-template-columns: minmax(0, 1fr);
}

.super-admin-school-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1.18fr);
  align-items: start;
  gap: 18px;
}

.super-admin-school-grid > * {
  min-width: 0;
}

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

.stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 20px;
}

.school-admin-stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.completion-stats-grid,
.school-admin-stats-grid.completion-stats-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

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

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

.auth-panel {
  min-height: 100%;
}

.auth-footnote {
  margin: 14px 0 0;
  font-size: 13px;
}

.auth-panel-accent {
  background:
    linear-gradient(135deg, rgba(0, 105, 210, 0.92), rgba(0, 87, 173, 0.84)),
    var(--surface);
  color: #fff;
}

.auth-panel-accent .section-kicker,
.auth-panel-accent .panel-copy {
  color: rgba(255, 255, 255, 0.78);
}

.info-list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.info-item {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.info-item strong {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
}

.info-item p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
  font-size: 14px;
}

.guest-mode {
  width: min(1180px, calc(100% - 32px));
  padding-top: 72px;
}

.guest-mode #app {
  max-width: 581px;
  margin: 0 auto;
}

.guest-mode .panel {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  border-radius: 22px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.guest-mode .section-title {
  font-size: 18px;
}

.guest-mode label {
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
}

.guest-mode input {
  height: 45px;
  padding: 0 14px;
  border: 1px solid #5ba7f2;
  border-radius: 14px;
  box-shadow: none;
}

.guest-mode input:focus {
  border-color: #0069d2;
  box-shadow: 0 0 0 3px rgba(0, 105, 210, 0.12);
}

.guest-mode button {
  min-height: 43px;
  padding: 0 16px;
  border-radius: 14px;
  background: #0069d2;
  box-shadow: none;
}

.stat-card {
  padding: 20px;
  border-radius: 24px;
}

.stat-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.stat-card strong {
  display: block;
  margin-top: 10px;
  font-size: clamp(26px, 3.2vw, 34px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.stat-card.tone-warm {
  background: linear-gradient(135deg, rgba(240, 247, 255, 0.95), rgba(255, 255, 255, 0.96));
}

.stat-card.tone-cool {
  background: linear-gradient(135deg, rgba(232, 243, 255, 0.96), rgba(255, 255, 255, 0.96));
}

.completion-rate-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.completion-rate-copy {
  min-width: 0;
}

.completion-rate-ring {
  position: relative;
  display: grid;
  width: 76px;
  height: 76px;
  flex: 0 0 76px;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--brand) calc(var(--completion-rate) * 1%), #dce9f7 0);
  box-shadow: 0 8px 20px rgba(0, 105, 210, 0.12);
}

.completion-rate-ring::after {
  content: "";
  position: absolute;
  inset: 13px;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(0, 105, 210, 0.08);
}

form {
  display: grid;
  gap: 12px;
}

.election-basic-grid,
.election-option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.election-option-grid {
  padding: 14px 0 4px;
}

.election-option-grid .schedule-block {
  display: grid;
  align-content: center;
  justify-items: stretch;
  min-width: 0;
  min-height: 82px;
  padding: 14px 16px;
  border: 1px solid rgba(0, 105, 210, 0.11);
  border-radius: 18px;
  background: #f8fbff;
}

.election-option-grid .schedule-block > .toggle {
  justify-content: flex-start;
  margin: 0;
}

.election-option-grid .schedule-block > .target-grade-fields,
.election-option-grid .schedule-block > .schedule-fields {
  width: 100%;
}

.election-option-grid .schedule-fields {
  grid-template-columns: 1fr;
}

.election-option-grid .schedule-divider {
  display: none;
}

.schedule-block {
  display: grid;
  gap: 10px;
}

.schedule-block > .toggle {
  width: auto;
  justify-content: flex-start;
}

.schedule-block > .toggle .toggle-label {
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
}

.schedule-label {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
}

.schedule-fields {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(118px, 0.55fr) 36px minmax(0, 1.1fr) minmax(118px, 0.55fr);
  gap: 12px;
  align-items: center;
}

.schedule-input {
  margin: 0;
}

.schedule-period-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) minmax(112px, 0.66fr);
  gap: 9px;
  align-items: center;
}

.schedule-period-label {
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.schedule-input input,
.schedule-input select {
  width: 100%;
  border-color: rgba(0, 105, 210, 0.14);
  background-color: #fff;
  box-shadow: 0 7px 18px rgba(26, 61, 103, 0.055);
}

.custom-picker {
  position: relative;
  min-width: 0;
}

.custom-picker-trigger {
  display: flex;
  width: 100%;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 10px 0 15px;
  border: 1px solid rgba(0, 105, 210, 0.14);
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 7px 18px rgba(26, 61, 103, 0.055);
  font-weight: 700;
  text-align: left;
}

.custom-picker-trigger:hover,
.custom-picker.open .custom-picker-trigger {
  border-color: rgba(0, 105, 210, 0.38);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(0, 105, 210, 0.07);
  transform: none;
}

.custom-picker.schedule-invalid .custom-picker-trigger {
  border-color: #d92d20;
  background: #fff8f7;
  box-shadow: 0 0 0 4px rgba(217, 45, 32, 0.1);
}

.schedule-validation-message {
  margin: 0;
  color: #c5271c;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.custom-picker-trigger .is-placeholder {
  color: #8b96a7;
  font-weight: 600;
}

.custom-picker-calendar-icon,
.custom-picker-chevron {
  position: relative;
  display: block;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 11px;
  background-color: #edf5ff;
}

.custom-picker-calendar-icon::before {
  content: "";
  position: absolute;
  inset: 8px;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18' fill='none'%3E%3Crect x='2.25' y='3.75' width='13.5' height='12' rx='2' stroke='%230069d2' stroke-width='1.8'/%3E%3Cpath d='M5.25 1.5V5.25M12.75 1.5V5.25M2.25 6.75H15.75' stroke='%230069d2' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
}

.custom-picker-chevron::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 11px;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: rotate(45deg);
  transition: transform 0.18s ease;
}

.custom-picker.open .custom-picker-chevron::before {
  top: 14px;
  transform: rotate(225deg);
}

.custom-picker-popover {
  position: absolute;
  z-index: 40;
  top: calc(100% + 8px);
  right: 0;
  min-width: 280px;
  padding: 12px;
  border: 1px solid rgba(0, 105, 210, 0.14);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 20px 46px rgba(24, 47, 79, 0.18);
}

.custom-picker-popover[hidden] {
  display: none;
}

.time-picker-popover {
  left: 0;
  right: auto;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 8px;
}

.time-picker-options {
  display: grid;
  max-height: 252px;
  grid-template-columns: 1fr;
  gap: 5px;
  overflow-y: auto;
  padding: 3px;
}

.time-picker-columns {
  display: grid;
  width: 100%;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) minmax(52px, 0.6fr);
  gap: 9px;
}

.time-picker-column {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 7px;
}

.time-picker-column > strong {
  padding: 5px 4px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.minute-options {
  overflow: visible;
}

.native-numeric-select {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 0;
  pointer-events: none;
}

.numeric-select-field::after {
  display: none;
}

.custom-number-select {
  position: relative;
  min-width: 0;
}

.custom-number-trigger {
  display: flex;
  width: 100%;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 9px 0 15px;
  border: 1px solid rgba(0, 105, 210, 0.18);
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 7px 18px rgba(26, 61, 103, 0.055);
  font-weight: 700;
}

.custom-number-trigger:hover,
.custom-number-select.open .custom-number-trigger {
  border-color: rgba(0, 105, 210, 0.38);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(0, 105, 210, 0.07);
  transform: none;
}

.custom-number-popover {
  position: absolute;
  z-index: 45;
  top: calc(100% + 7px);
  left: 0;
  display: grid;
  width: 100%;
  min-width: 130px;
  max-height: 248px;
  gap: 5px;
  padding: 8px;
  overflow-y: auto;
  border: 1px solid rgba(0, 105, 210, 0.14);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 38px rgba(24, 47, 79, 0.17);
}

.custom-number-popover[hidden] {
  display: none;
}

.custom-number-option {
  min-height: 38px;
  padding: 7px 11px;
  justify-content: flex-start;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  box-shadow: none;
  font-size: 14px;
}

.custom-number-option:hover,
.custom-number-option.selected {
  background: #e9f4ff;
  color: var(--brand);
  box-shadow: none;
  transform: none;
}

.custom-time-option {
  min-height: 38px;
  padding: 7px 10px;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  box-shadow: none;
  font-size: 14px;
}

.custom-time-option:hover,
.custom-time-option.selected {
  background: #e9f4ff;
  color: var(--brand);
  box-shadow: none;
  transform: none;
}

.calendar-header {
  display: grid;
  grid-template-columns: 38px 1fr 38px;
  align-items: center;
  margin-bottom: 10px;
  text-align: center;
}

.calendar-nav {
  min-height: 36px;
  padding: 0;
  border-radius: 10px;
  background: #edf5ff;
  color: var(--brand);
  box-shadow: none;
  font-size: 24px;
}

.calendar-nav:hover {
  background: #dfeeff;
  box-shadow: none;
  transform: none;
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}

.calendar-weekdays {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

.calendar-day {
  min-width: 0;
  min-height: 34px;
  padding: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  box-shadow: none;
  font-size: 13px;
}

.calendar-day:hover,
.calendar-day.today {
  background: #edf5ff;
  color: var(--brand);
  box-shadow: none;
  transform: none;
}

.calendar-day.selected {
  background: var(--brand);
  color: #fff;
}

.calendar-day:disabled,
.custom-time-option:disabled {
  background: transparent;
  color: #b8c0cc;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.55;
}

.calendar-day.empty {
  display: block;
}

@media (max-width: 560px) {
  .custom-date-picker .custom-picker-popover {
    left: 0;
    right: auto;
    width: min(320px, calc(100vw - 48px));
    min-width: 0;
  }

  .time-picker-popover {
    left: 0;
    right: auto;
    width: 100%;
    min-width: 0;
  }
}

.schedule-divider {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 900;
  color: var(--muted);
}

.target-grade-fields {
  width: min(260px, 100%);
  margin-top: 12px;
}

.target-grade-fields select {
  background-color: #fff;
  box-shadow: 0 7px 18px rgba(26, 61, 103, 0.055);
}

label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  padding: 14px 15px;
  border-radius: 16px;
  border: 1px solid rgba(0, 105, 210, 0.18);
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  font: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

input:not([type="file"]),
select {
  height: 52px;
  box-sizing: border-box;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(0, 105, 210, 0.45);
  box-shadow: 0 0 0 4px rgba(0, 105, 210, 0.08);
}

input[type="file"] {
  padding: 11px 12px;
}

.file-dropzone {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 112px;
  padding: 18px;
  border: 2px dashed rgba(0, 105, 210, 0.23);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(246, 250, 255, 0.98), rgba(255, 255, 255, 0.98));
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.file-dropzone.is-dragging {
  border-color: var(--brand);
  background: #edf6ff;
  box-shadow: 0 0 0 5px rgba(0, 105, 210, 0.08);
  transform: translateY(-1px);
}

.file-dropzone.has-file {
  border-style: solid;
  border-color: rgba(20, 122, 61, 0.32);
  background: #f2fbf5;
}

.file-dropzone-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.file-dropzone-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  background: #e6f2ff;
  color: var(--brand);
  font-size: 26px;
  font-weight: 900;
}

.file-dropzone-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.file-dropzone-copy span {
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-select-button {
  min-height: 42px;
  padding: 9px 15px;
  white-space: nowrap;
}

.compact-file-dropzone {
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 82px;
  padding: 14px 16px;
}

@media (max-width: 640px) {
  .file-dropzone,
  .compact-file-dropzone {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .file-dropzone-icon {
    margin: 0 auto;
  }

  .file-select-button {
    width: 100%;
  }
}

button,
.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 0;
  border-radius: 16px;
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

button:hover,
.button-link:hover {
  transform: translateY(-1px);
}

button {
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  color: #fff;
  box-shadow: 0 10px 20px rgba(0, 105, 210, 0.18);
}

button.secondary,
.button-link {
  background: #f1f3f5;
  color: #364152;
  border: 1px solid #d8dee8;
  box-shadow: none;
  text-decoration: none;
}

button.secondary:hover,
.button-link:hover {
  background: #e8edf3;
}

.button-with-icon {
  gap: 8px;
}

.button-inline-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

button.auth-link-button {
  display: inline-flex;
  min-height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--brand);
  box-shadow: none;
  justify-content: center;
  align-self: center;
  margin: 18px auto 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-link-row button.auth-link-button {
  margin: 0;
}

button.auth-link-button:hover {
  transform: none;
  background: transparent;
  opacity: 0.85;
}

button.danger {
  background: linear-gradient(135deg, #b44545, #8f2c2c);
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 8px 13px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pill.subtle {
  background: var(--accent-soft);
  color: var(--brand);
}

.pill.pill-voted {
  background: rgba(0, 105, 210, 0.12);
  color: var(--brand);
}

.pill.pill-not-voted {
  background: rgba(113, 128, 150, 0.12);
  color: #5b677a;
}

.pill.pill-in-progress {
  background: rgba(255, 176, 32, 0.16);
  color: #b86a00;
}

.pill.pill-completed {
  background: rgba(0, 105, 210, 0.12);
  color: var(--brand);
}

.pill.pill-election-upcoming {
  background: rgba(255, 176, 32, 0.16);
  color: #b86a00;
}

.pill.pill-election-active {
  background: rgba(0, 105, 210, 0.12);
  color: var(--brand);
}

.pill.pill-election-closed {
  background: rgba(113, 128, 150, 0.16);
  color: #5b677a;
}

.muted {
  color: var(--muted);
}

.helper {
  margin: 4px 0 0;
  font-size: 13px;
}

.toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

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

.toggle-slider {
  position: relative;
  width: 50px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 999px;
  background: #d6e4f5;
  transition: background-color 0.2s ease;
}

.toggle-slider::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease;
}

.toggle-input:checked + .toggle-slider {
  background: var(--brand);
}

.election-progress-closed .toggle-slider {
  background: #dc4545;
}

.election-progress-closed .toggle-label {
  color: #b42318;
  font-weight: 800;
}

.danger-toggle .toggle-input:checked + .toggle-slider {
  background: #d92d20;
}

.toggle-input:checked + .toggle-slider::after {
  transform: translateX(18px);
}

.toggle-label {
  user-select: none;
}

.hidden-field {
  display: none;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.42);
}

.modal-panel {
  width: min(760px, 100%);
  max-height: min(86vh, 900px);
  overflow: auto;
  padding: 24px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(0, 105, 210, 0.14);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.24);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(0, 105, 210, 0.1);
}

.modal-close-button {
  flex: 0 0 auto;
  display: grid;
  width: 36px;
  height: 36px;
  padding: 6px;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--muted);
  box-shadow: none;
  cursor: pointer;
}

.modal-close-button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.modal-close-button:hover {
  border: 0;
  background: transparent;
  color: var(--ink);
  box-shadow: none;
  transform: none;
}

.modal-close-button:focus-visible {
  border: 0;
  box-shadow: var(--ring);
}

.modal-segmented {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 18px;
  padding: 6px;
  border-radius: 16px;
  background: #f1f6fc;
  border: 1px solid rgba(0, 105, 210, 0.1);
}

.modal-segmented button {
  min-height: 44px;
  background: transparent;
  color: var(--muted);
  box-shadow: none;
}

.modal-segmented button.active {
  background: #fff;
  color: var(--brand);
  box-shadow: 0 6px 14px rgba(0, 105, 210, 0.08);
}

.list-card ul,
.vote-card ul,
.results-list,
.credentials-list {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: grid;
  gap: 12px;
}

.list-item,
.candidate-item,
.result-item,
.credential-item,
.candidate-field {
  border: 1px solid rgba(0, 105, 210, 0.12);
  border-radius: 20px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.88);
}

.list-item p,
.vote-card p,
.result-item p,
.candidate-item p {
  margin: 0;
  line-height: 1.55;
}

.list-item,
.result-item,
.credential-item,
.candidate-field {
  display: grid;
  gap: 10px;
}

.candidate-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.student-candidate-item {
  display: grid;
  gap: 16px;
}

.candidate-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.student-candidate-meta {
  align-items: flex-start;
}

.candidate-meta > div {
  min-width: 0;
}

.student-candidate-copy {
  display: grid;
  gap: 6px;
}

.student-result-meta {
  display: grid;
  gap: 8px;
}

.candidate-photo {
  width: 76px;
  height: 76px;
  border-radius: 22px;
  object-fit: cover;
  border: 1px solid rgba(0, 105, 210, 0.12);
  background: #f4f8fc;
  flex-shrink: 0;
}

.candidate-photo.placeholder {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 12px;
}

.status {
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(240, 247, 255, 0.92), rgba(255, 255, 255, 0.9));
  border: 1px solid rgba(0, 105, 210, 0.1);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.6;
}

.status.compact {
  margin-top: 14px;
}

#bulk-student-form .status.compact {
  margin-top: 4px;
}

.field-title {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
}

.candidate-builder {
  display: grid;
  gap: 12px;
}

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

.candidate-field-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.candidate-field {
  padding: 20px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(246, 249, 253, 0.98), rgba(255, 255, 255, 0.96));
  border: 1px solid rgba(0, 105, 210, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

.candidate-photo-preview {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.candidate-photo-field {
  display: grid;
  gap: 6px;
}

.candidate-photo-label {
  font-size: 14px;
  font-weight: 700;
}

.candidate-photo-upload-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.candidate-photo-upload-row .candidate-photo {
  width: 76px;
  height: 76px;
}

.candidate-photo-upload-row .compact-file-dropzone {
  min-height: 76px;
}

.candidate-field.dragging {
  opacity: 0.56;
}

.candidate-drag-handle {
  min-height: 24px;
  min-width: 24px;
  width: 24px;
  padding: 0;
  border-radius: 6px;
  background: transparent;
  border: 0;
  box-shadow: none;
  color: var(--muted);
  cursor: grab;
  opacity: 0.7;
}

.candidate-drag-handle:hover {
  background: rgba(0, 105, 210, 0.06);
  opacity: 1;
}

.candidate-drag-handle img {
  width: 16px;
  height: 16px;
}

.candidate-remove-button[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

.results-box {
  margin-top: 14px;
  padding: 16px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(245, 249, 255, 0.92), rgba(255, 255, 255, 0.92));
  border: 1px solid rgba(0, 105, 210, 0.12);
}

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

.results-box-admin {
  padding: 0;
  border: 0;
  background: transparent;
}

.results-box-admin > .muted {
  margin: 0 0 12px;
  text-align: right;
}

.results-box-admin .result-item {
  display: grid;
  gap: 14px;
  min-height: 150px;
  padding: 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 105, 210, 0.1);
}

.result-candidate-field {
  display: grid;
  min-height: 0;
  gap: 14px;
}

.result-candidate-head {
  justify-content: space-between;
}

.result-candidate-badges {
  display: flex;
  align-items: center;
  gap: 7px;
}

.top-candidate-badge {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 11px;
  border-radius: 10px;
  background: #fff0d6;
  color: #a65300;
  font-size: 12px;
  font-weight: 900;
  vertical-align: middle;
}

.result-candidate-field.top-candidate,
.class-candidate-item.top-candidate {
  border-color: rgba(235, 139, 30, 0.55);
  background: linear-gradient(145deg, #fffaf1, #ffffff);
  box-shadow: 0 10px 28px rgba(181, 99, 12, 0.12);
}

.result-candidate-field.top-candidate .result-bar-fill,
.class-candidate-item.top-candidate .result-bar-fill {
  background: linear-gradient(90deg, #f0a22f, #e47718);
}

.class-candidate-profile .top-candidate-badge {
  min-height: 24px;
  margin-left: 6px;
  padding: 0 8px;
  border-radius: 8px;
  font-size: 11px;
}

.result-candidate-rate {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 11px;
  border-radius: 10px;
  background: #e8f3ff;
  color: var(--brand);
  font-size: 13px;
  font-weight: 900;
}

.result-candidate-body {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.result-candidate-body .candidate-photo-preview {
  justify-content: center;
}

.results-box-admin .result-candidate-body .candidate-photo {
  width: 92px;
  height: 92px;
  border-radius: 22px;
}

.result-candidate-copy {
  display: grid;
  align-content: center;
  gap: 5px;
  min-width: 0;
}

.result-candidate-copy > strong,
.result-candidate-copy > p {
  margin: 0;
  overflow-wrap: anywhere;
  line-height: 1.45;
}

.result-readonly-field {
  display: grid;
  gap: 4px;
}

.result-readonly-field > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.result-readonly-field strong,
.result-readonly-field p {
  margin: 0;
  overflow-wrap: anywhere;
  line-height: 1.45;
}

.result-candidate-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2px;
}

.result-candidate-summary span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

@media (max-width: 560px) {
  .result-candidate-body {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .results-box-admin .result-candidate-body .candidate-photo {
    width: 72px;
    height: 72px;
  }
}

.results-box-admin .candidate-meta {
  align-items: center;
}

.results-box-admin .candidate-meta > div {
  display: grid;
  gap: 4px;
}

.results-box-admin .candidate-photo {
  width: 76px;
  height: 76px;
  border-radius: 22px;
}

.results-box-admin .result-bar-track {
  margin-top: 2px;
}

.section-tools {
  margin-bottom: 12px;
  align-items: center;
}

.school-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.result-bar-track {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: #dcecff;
}

.result-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #0069d2, #4ea0f0);
}

.detail-grid {
  display: grid;
  gap: 6px;
  margin-top: 4px;
}

.empty {
  padding: 20px;
  border: 1px dashed rgba(0, 105, 210, 0.2);
  border-radius: 20px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.48);
}

code {
  padding: 4px 8px;
  border-radius: 10px;
  background: rgba(0, 105, 210, 0.08);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92em;
}

@media (max-width: 1100px) {
  .admin-grid-3,
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .completion-stats-grid,
  .school-admin-stats-grid.completion-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .list-grid,
  .vote-grid,
  .auth-grid {
    grid-template-columns: 1fr;
  }

  .student-admin-grid,
  .split-fields,
  .datetime-fields {
    grid-template-columns: 1fr;
  }

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

  .admin-sidebar {
    position: static;
    grid-auto-flow: column;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
  }

  .student-toolbar,
  .student-filter-form {
    flex-direction: column;
    align-items: stretch;
  }

  .content-subtabs {
    width: 100%;
    flex-wrap: wrap;
  }

  .admin-content {
    padding: 24px 22px 26px;
  }

  .student-filter-form {
    grid-template-columns: 1fr;
  }

  .student-filters {
    justify-content: flex-start;
  }
}

@media (max-width: 900px) {
  .schedule-fields {
    grid-template-columns: 1fr;
  }

  .schedule-divider {
    display: none;
  }

  .hero,
  .dashboard-grid,
  .super-admin-school-grid,
  .admin-grid-3,
  .stats-grid {
    grid-template-columns: 1fr;
  }

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

  .completion-stats-grid,
  .school-admin-stats-grid.completion-stats-grid {
    grid-template-columns: 1fr;
  }

  .page-header,
  .row-between,
  .section-tools,
  .candidate-item,
  .candidate-builder-header {
    flex-direction: column;
    align-items: stretch;
  }

  .dashboard-grid.student-admin-grid.account-create-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .account-create-divider.vertical {
    width: 100%;
    height: 1px;
  }

  .page-actions,
  .page-actions > * {
    width: 100%;
  }

  .content-subtab-button {
    min-height: 58px;
    font-size: 16px;
  }

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

@media (max-width: 640px) {
  .schedule-period-row {
    grid-template-columns: 1fr;
  }

  .election-basic-grid,
  .election-option-grid,
  .results-box-admin .results-list {
    grid-template-columns: 1fr;
  }

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

  .app-shell {
    width: min(100% - 20px, 1220px);
    padding-top: 18px;
  }

  .hero-copy-block,
  .hero-card,
  .panel,
  .list-card,
  .vote-card,
  .page-header {
    padding: 20px;
    border-radius: 24px;
  }

  .admin-content {
    padding: 20px 16px 22px;
  }

  .content-subtabs {
    margin-bottom: 18px;
  }

  .content-subtab-button {
    min-height: 52px;
    padding-bottom: 6px;
    font-size: 15px;
  }

  .admin-main-tabs .content-subtab-button {
    min-height: 52px;
  }

  h1 {
    font-size: clamp(30px, 9vw, 42px);
  }

  .page-title {
    font-size: 28px;
  }

  .auth-card {
    width: 100%;
  }

  .candidate-meta {
    align-items: flex-start;
  }

  .candidate-photo {
    width: 64px;
    height: 64px;
    border-radius: 18px;
  }
}

.translator-shell {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 64px;
}

.translator-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 22px;
}

.translator-hero h1 {
  max-width: 680px;
  font-size: clamp(32px, 5vw, 52px);
}

.translator-panel {
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.translator-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: stretch;
}

.translator-dropzone {
  display: grid;
  gap: 8px;
  min-height: 124px;
  padding: 22px;
  align-content: center;
  border: 1px dashed rgba(0, 105, 210, 0.42);
  border-radius: 16px;
  background: var(--surface-soft);
  cursor: pointer;
}

.translator-dropzone input {
  margin-top: 8px;
}

.translator-dropzone-title {
  font-size: 18px;
  font-weight: 800;
}

.translator-status {
  min-height: 22px;
  color: var(--muted);
  font-weight: 700;
}

.translator-status[data-tone="success"] {
  color: var(--brand-strong);
}

.translator-status[data-tone="error"] {
  color: var(--danger);
}

.translator-result {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.translator-result span {
  color: var(--muted);
  font-weight: 700;
}

@media (max-width: 720px) {
  .translator-hero,
  .translator-form {
    grid-template-columns: 1fr;
    display: grid;
  }

  .translator-form button,
  .translator-hero .button-link {
    width: 100%;
  }
}

/* ── 담임 감독투표(반 계정) ── */
.class-student-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.class-student-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(0, 105, 210, 0.12);
  border-radius: 14px;
  background: #fbfdff;
}
.class-student-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.class-student-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 28px;
  padding: 0 8px;
  border-radius: 8px;
  background: #eef4ff;
  color: var(--ink);
  font-weight: 800;
  font-size: 13px;
}
.class-student-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.class-edit-action {
  display: flex;
  align-items: center;
  gap: 9px;
}

.closed-vote-helper {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.class-edit-action button:disabled,
.vote-edit-status button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
}
.class-student-actions button {
  min-height: 40px;
  padding: 0 16px;
}
.class-status-done,
.class-status-pending {
  font-weight: 800;
  font-size: 12px;
}
.pill.class-status-done { background: #e6f6ec; color: #147a3d; }
.pill.class-status-pending { background: #f0f2f6; color: #5b6472; }
.pill.class-status-partial { background: #fff3dc; color: #a65300; }
.class-voting-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.class-voting {
  display: grid;
  gap: 20px;
}

.class-detail-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  align-items: start;
  gap: 20px;
}

.class-detail-main {
  min-width: 0;
}

.class-detail-locked {
  min-height: 220px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  text-align: center;
}

.class-detail-locked p {
  margin: 0;
}

.class-student-rail {
  position: sticky;
  top: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.class-student-rail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 16px 12px;
  border-bottom: 1px solid var(--line);
}

.class-student-rail-header span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.class-student-rail-list {
  display: grid;
  max-height: calc(100vh - 220px);
  overflow-y: auto;
  margin: 0;
  padding: 8px;
  list-style: none;
}

.class-student-rail-button {
  width: 100%;
  min-height: 52px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  box-shadow: none;
}

.class-student-rail-button:hover {
  background: #f4f8fd;
  transform: none;
}

.class-student-rail-button.active {
  background: #eaf3ff;
  color: var(--brand);
}

.class-student-rail-button strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.class-student-rail-status {
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.class-student-rail-status.class-status-done { color: #147a3d; }
.class-student-rail-status.class-status-partial { color: #a65300; }
.class-student-rail-status.class-status-pending { color: #5b6472; }

.class-voting-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.class-voting-student {
  display: grid;
  gap: 6px;
  padding: 4px 2px 2px;
}

.class-voting-student p {
  margin: 0;
}
.class-candidate-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.class-voting .class-candidate-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.class-vote-candidate-item {
  min-width: 0;
  min-height: 110px;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
}

.class-vote-candidate-card {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: 100%;
  min-height: 110px;
  display: block;
  box-sizing: border-box;
  overflow: hidden;
  padding: 16px 18px 16px 52px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  box-shadow: none;
}

.class-vote-candidate-card:hover:not(:disabled) {
  border-color: rgba(0, 105, 210, 0.45);
  background: #f8fbff;
  transform: none;
}

.candidate-armed .class-vote-candidate-card,
.candidate-current .class-vote-candidate-card {
  border-color: var(--brand);
  background: #f4f8ff;
}

.class-vote-candidate-card:disabled {
  cursor: default;
  opacity: 1;
}

.class-vote-check {
  position: absolute;
  top: 50%;
  left: 18px;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #b7c2d2;
  border-radius: 50%;
  background: #fff;
}

.candidate-armed .class-vote-check,
.candidate-current .class-vote-check {
  border-color: var(--brand);
  background: #fff;
}

.class-vote-radio-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--brand);
}

.class-vote-candidate-meta {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 100%;
  align-items: center;
}

.class-vote-candidate-card .candidate-photo {
  width: 76px;
  max-width: 76px;
  height: 76px;
  display: block;
  object-fit: cover;
}

.class-vote-candidate-copy {
  display: grid;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  align-content: center;
  gap: 5px;
}

.class-vote-candidate-copy strong,
.class-vote-candidate-copy p {
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

@media (max-width: 820px) {
  .class-detail-layout {
    grid-template-columns: 1fr;
  }

  .class-student-rail {
    position: static;
  }

  .class-student-rail-list {
    grid-auto-flow: column;
    grid-auto-columns: minmax(180px, 1fr);
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .class-voting-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .class-voting-actions {
    width: 100%;
  }

  .class-voting-actions > button {
    flex: 1 1 180px;
  }

  .class-voting .class-candidate-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .class-vote-candidate-card {
    padding: 14px 14px 14px 46px;
  }
}
.vote-card-done {
  opacity: 0.72;
}
.class-accounts-box {
  margin: 12px 0;
  padding: 14px;
  border: 1px dashed rgba(0, 105, 210, 0.28);
  border-radius: 14px;
  background: #f7faff;
}
.class-accounts-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.class-chip {
  padding: 6px 10px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid rgba(0, 105, 210, 0.14);
  font-size: 12.5px;
  font-weight: 600;
}
.class-chip code {
  font-weight: 800;
  color: var(--brand, #0069d2);
}

.student-pagination {
  margin-top: 14px;
  align-items: center;
  gap: 12px;
}
.student-pagination .muted {
  font-weight: 600;
}

/* ===== 데모 체험 모드 ===== */
.demo-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 0 0 18px;
  padding: 12px 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, #fff7e6, #ffeccc);
  border: 1px solid #f3d19b;
}
.demo-badge {
  flex: none;
  padding: 4px 10px;
  border-radius: 999px;
  background: #b5620a;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}
.demo-hint {
  flex: 1 1 240px;
  font-size: 13px;
  color: #7a4a08;
  line-height: 1.5;
}
.demo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.demo-actions button {
  padding: 7px 12px;
  font-size: 13px;
  border-radius: 999px;
}
.demo-actions button.active {
  background: #b5620a;
  border-color: #b5620a;
  color: #fff;
}
.auth-extra-row {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}
.auth-extra-row a.auth-extra-button,
.auth-extra-row button.auth-extra-button {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 48px;
  padding: 12px 10px;
  border-radius: 14px;
  border: 1px solid var(--line, #dfe4f0);
  background: #fff;
  background-image: none;
  box-shadow: none;
  color: var(--ink, #161d34);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.auth-extra-row a.auth-extra-button:hover,
.auth-extra-row button.auth-extra-button:hover {
  border-color: #0069d2;
  color: #0069d2;
  background: #fff;
  box-shadow: none;
  transform: none;
}
