@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-h: #f1f5f9;
  --bg-glass: rgba(0, 0, 0, 0.04);
  --bg-input: #f1f5f9;
  --border: #e2e8f0;
  --border-h: #cbd5e1;
  --accent: #16a34a;
  --accent-light: #22c55e;
  --accent-dark: #15803d;
  --accent-glow: rgba(22, 163, 74, 0.2);
  --text: #0f172a;
  --text-sub: #64748b;
  --text-muted: #94a3b8;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --nav-height: 72px;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font);
  background: var(--bg-main);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse 800px 600px at 20% 20%, rgba(34, 197, 94, 0.06), transparent),
    radial-gradient(ellipse 600px 400px at 80% 80%, rgba(22, 163, 74, 0.04), transparent);
  pointer-events: none;
  z-index: 0;
  animation: bgShift 20s ease-in-out infinite alternate;
}

@keyframes bgShift {
  0% { transform: translateX(0) translateY(0); }
  100% { transform: translateX(-30px) translateY(-20px); }
}

/* ── 헤더: 녹색 배경 ── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent) 50%, var(--accent-light) 100%);
  border-bottom: none;
  box-shadow: 0 4px 20px rgba(21, 128, 61, 0.25), 0 1px 0 rgba(255, 255, 255, 0.08) inset;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: var(--transition);
}
.logo:hover {
  opacity: 0.95;
}
/* 로고: 헤더 높이에 맞춰 전체 표시 */
.logo-img {
  display: block;
  height: 64px;
  width: auto;
  max-width: 288px;
  object-fit: contain;
  vertical-align: middle;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
}

.nav-links .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 40px;
  padding: 0 1rem;
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  white-space: nowrap;
}
.nav-links .nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
}
.nav-links .nav-link-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
  font-weight: 700;
}
.nav-links .nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.nav-links .nav-icon svg {
  flex-shrink: 0;
  vertical-align: middle;
}
.nav-links .nav-link-active:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* 헤더 내 버튼(시작하기) */
.nav-links .btn-header {
  margin-left: 0.5rem;
  background: #fff;
  color: var(--accent-dark);
  border: none;
}
.nav-links .btn-header:hover {
  background: rgba(255, 255, 255, 0.95);
  color: var(--accent-dark);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.main-content {
  position: relative;
  z-index: 1;
  padding-top: var(--nav-height);
  min-height: 100vh;
}
body.layout-minimal .main-content {
  padding-top: 2rem;
}
body.layout-minimal .auth-container {
  min-height: calc(100vh - 4rem);
}

/* 선거인단 등록 카드: 제목/본문 구분, 폼·버튼 여백 */
.vote-register-card.section-card { box-shadow: var(--shadow), 0 8px 24px rgba(0, 0, 0, 0.08); }
.vote-register-header { padding: 1.25rem 1.5rem; }
.vote-register-title { font-size: 1.375rem; font-weight: 700; margin: 0 0 0.25rem; color: var(--text); }
.vote-register-subtitle { font-size: 0.9375rem; color: var(--text-sub); margin: 0; font-weight: 500; }
.vote-register-body { padding: 1.5rem 1.5rem 1.75rem; }
.vote-register-desc,
.vote-register-fields-desc { font-size: 0.875rem; color: var(--text-sub); margin: 0 0 1.25rem; line-height: 1.5; }
.vote-register-form .form-group { margin-bottom: 1.25rem; }
.vote-register-form .form-group:last-of-type { margin-bottom: 0; }
.vote-register-submit { margin-top: 1.5rem; width: 100%; padding: 0.75rem 1.25rem; font-size: 1rem; font-weight: 600; }
.vote-register-done { margin: 0; color: var(--text-sub); }

.hero {
  text-align: center;
  padding: 4rem 1.5rem 3rem;
  max-width: 800px;
  margin: 0 auto;
}
.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--text), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero .subtitle {
  color: var(--text-sub);
  font-size: 1.125rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}
.hero-btns {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.hero-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.hero-btn-row-primary {
  width: 100%;
}
.hero-btn-row-secondary {
  width: 100%;
}

.hero-card {
  margin-top: 2.5rem;
  width: 100%;
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}
.hero-card-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}
.hero-card-item {
  flex: 1 1 240px;
  max-width: 280px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hero-card-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
.hero-card-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 280 / 180;
  object-fit: cover;
}
.hero-card-label {
  display: block;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  background: var(--bg-card);
}

.section {
  padding: 3rem 1.5rem 4rem;
  max-width: 1100px;
  margin: 0 auto;
}
.section h2 {
  font-size: 1.75rem;
  color: var(--text);
  margin-bottom: 0.5rem;
  text-align: center;
}
.section-sub {
  color: var(--text-sub);
  text-align: center;
  margin-bottom: 2rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: var(--transition);
}
.feature-card:hover {
  border-color: var(--border-h);
  box-shadow: var(--shadow);
}
.feature-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(22, 163, 74, 0.08));
  color: var(--accent-dark);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.feature-card h3 {
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.feature-card p {
  font-size: 0.875rem;
  color: var(--text-sub);
  line-height: 1.5;
}

/* 랜딩 플로우: 단계별 시각 플로우 */
.landing-flow-section {
  padding-top: 2rem;
  scroll-margin-top: 2rem;
}
.landing-flow-section h2 {
  margin-bottom: 0.5rem;
}
.landing-flow {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  margin-bottom: 2.5rem;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}
.flow-step {
  flex: 0 0 120px;
  min-width: 100px;
  text-align: center;
  padding: 0.75rem 0.35rem;
}
.flow-step-visual {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.flow-num {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.flow-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  color: var(--accent);
  opacity: 0.95;
}
.flow-icon svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.flow-step-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.25rem;
  line-height: 1.3;
}
.flow-step-desc {
  font-size: 0.6875rem;
  color: var(--text-sub);
  line-height: 1.35;
  margin: 0;
}
.flow-connector {
  flex: 0 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 2.5rem;
  color: var(--text-sub);
  opacity: 0.6;
}
.flow-connector svg {
  width: 14px;
  height: 14px;
}

@media (max-width: 768px) {
  .landing-flow {
    flex-direction: column;
    align-items: center;
    gap: 0;
    margin-bottom: 2rem;
  }
  .flow-step {
    flex: none;
    width: 100%;
    max-width: 200px;
    min-width: 0;
  }
  .flow-connector {
    padding: 0.25rem 0;
    transform: rotate(90deg);
  }
  .flow-connector svg {
    width: 16px;
    height: 16px;
  }
}

/* 랜딩 과금 흐름 */
.landing-billing {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
  scroll-margin-top: 2rem;
}
.landing-billing h2 {
  margin-bottom: 0.5rem;
}
.billing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto;
}
.billing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.billing-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.08);
}
.billing-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 0.75rem;
  color: var(--accent);
}
.billing-icon svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.billing-card-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.35rem;
  line-height: 1.3;
}
.billing-card-desc {
  font-size: 0.8125rem;
  color: var(--text-sub);
  line-height: 1.5;
  margin: 0;
}

/* 랜딩 과금 계산기 */
.landing-calculator {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
  scroll-margin-top: 2rem;
}
.landing-calculator h2 {
  margin-bottom: 0.5rem;
}
.calculator-cards-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}
.calculator-card {
  flex: 1 1 320px;
  max-width: 420px;
  padding: 1.5rem;
}
.calculator-example {
  flex: 1 1 320px;
  max-width: 460px;
  padding: 1.5rem;
}
.calculator-rate-desc {
  font-size: 0.875rem;
  color: var(--text-sub);
  margin-bottom: 1.25rem;
}
.calculator-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.calculator-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.calculator-row label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
}
.calculator-input {
  max-width: 12rem;
}
.calculator-result-wrap {
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.calculator-result-label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
}
.calculator-result-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}
.calculator-result-unit {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
}

.calculator-example-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.75rem;
}
.calculator-example-desc {
  font-size: 0.875rem;
  color: var(--text-sub);
  line-height: 1.5;
  margin: 0 0 0.75rem;
}
.calculator-example-list {
  font-size: 0.875rem;
  color: var(--text-sub);
  line-height: 1.6;
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}
.calculator-example-calc {
  font-size: 0.875rem;
  color: var(--text);
  line-height: 1.5;
  margin: 0;
  padding: 0.75rem 1rem;
  background: var(--bg-card-h);
  border-radius: var(--radius-sm);
}

.cta {
  text-align: center;
  margin-top: 3rem;
}
.cta p {
  color: var(--text-sub);
  margin-bottom: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  min-height: 48px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius);
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-family: inherit;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  box-shadow: 0 4px 16px var(--accent-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(52, 211, 153, 0.35);
}
.btn-outline {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
}
.btn-outline:hover {
  background: rgba(22, 163, 74, 0.08);
}
.btn-block {
  width: 100%;
}

.auth-section {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--nav-height));
  padding: 2rem 1rem;
}
.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow), 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* 섹션 카드: 제목 영역(배경) + 본문 구분 */
.auth-card.section-card {
  padding: 0;
  overflow: hidden;
}
.section-card-header {
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 50%, #f0fdf4 100%);
  border-bottom: 1px solid var(--border);
}
.section-card-header .form-section-title,
.section-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.35;
  color: var(--text);
}
.section-card-body {
  padding: 1.5rem 1.5rem 1.75rem;
}
.section-card-body .points-table-wrap {
  margin: 0 -1.5rem -1.75rem;
}

.auth-card h2 {
  font-size: 1.25rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.auth-subtitle {
  color: var(--text-sub);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}
.auth-form .form-group {
  margin-bottom: 1.25rem;
}
.auth-form .form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.form-input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 1rem;
  transition: var(--transition);
  outline: none;
}
.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-actions {
  margin-bottom: 1rem;
}
.auth-form .btn {
  margin-top: 0.5rem;
}
.auth-footer {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-sub);
}

/* 회원가입 약관·개인정보 동의 */
.signup-agree-group { margin-bottom: 1.5rem; }
.signup-agree-box {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card-h);
  overflow: hidden;
}
.signup-agree-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}
.signup-agree-title { margin: 0; }
.signup-terms-toggle {
  flex-shrink: 0;
  padding: 0.25rem 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--accent);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  border-radius: var(--radius-sm);
}
.signup-terms-toggle:hover { color: var(--accent-hover, var(--accent)); }
.signup-terms-wrap {
  max-height: 180px;
  overflow-y: auto;
  padding: 1rem;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--text-sub);
}
.signup-terms-wrap[hidden] { display: none !important; }
.signup-terms-wrap p { margin: 0 0 0.6rem; }
.signup-terms-wrap p:last-child { margin-bottom: 0; }
.signup-terms-wrap ul { margin: 0.4rem 0 0.6rem 1.25rem; padding: 0; }
.signup-agree-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  cursor: pointer;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
  border-top: 1px solid var(--border);
  background: var(--bg-card);
}
.signup-agree-label input[type="checkbox"] {
  width: 1.125rem;
  height: 1.125rem;
  accent-color: var(--accent);
  flex-shrink: 0;
}

.link-accent {
  color: var(--accent);
  text-decoration: none;
  transition: var(--transition);
}
.link-accent:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  font-size: 0.875rem;
}
.alert-error {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #dc2626;
}
.alert-success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.25);
  color: var(--accent-dark);
}
.btn-success {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: var(--accent-dark);
}
.btn-success:hover { background: rgba(34, 197, 94, 0.25); }
.btn-danger {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #dc2626;
}
.btn-danger:hover { background: rgba(239, 68, 68, 0.2); }

.org-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.org-list {
  margin-top: 0.5rem;
}
.org-items {
  list-style: none;
}
.org-item {
  margin-bottom: 0.5rem;
}
.org-item-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--text);
  text-decoration: none;
  transition: var(--transition);
}
.org-item-link:hover {
  border-color: var(--accent);
  background: rgba(22, 163, 74, 0.04);
}
.org-item-link-pending {
  cursor: default;
  opacity: 0.92;
}
.org-item-link-pending:hover {
  border-color: var(--border);
  background: var(--bg-card);
}
.org-name {
  font-weight: 600;
}
.org-role {
  font-size: 0.875rem;
  color: var(--text-sub);
}
.org-role-pending {
  color: var(--text-muted);
  font-style: italic;
}
.org-role-admin {
  color: var(--accent);
  font-size: 0.8125rem;
}
.org-item-link-admin {
  border-color: rgba(22, 163, 74, 0.25);
}
.orgs-empty-hint {
  color: var(--text-sub);
  font-size: 1rem;
  line-height: 1.5;
}

.page-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}
.page-section h2 {
  font-size: 1.5rem;
  color: var(--text);
  margin-bottom: 0.5rem;
  text-align: left;
}
.page-section .section-sub {
  color: var(--text-sub);
  margin-bottom: 1.5rem;
  margin-left: 0;
  margin-right: 0;
  max-width: none;
  text-align: left;
}
.section-sub {
  color: var(--text-sub);
  margin-bottom: 1.5rem;
}
.text-muted {
  color: var(--text-sub);
  margin-bottom: 1rem;
}

.site-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 1.5rem;
  color: var(--text-sub);
  font-size: 0.875rem;
  border-top: 1px solid var(--border);
}
.site-footer-inner { max-width: 720px; margin: 0 auto; line-height: 1.6; }
.site-footer-company,
.site-footer-address,
.site-footer-contact { margin-bottom: 0.35rem; }
.site-footer-company strong { color: var(--text); }
.site-footer-link { color: var(--text-sub); text-decoration: none; }
.site-footer-link:hover { color: var(--accent); text-decoration: underline; }

.org-layout {
  display: flex;
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem;
}
.org-sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: calc(var(--nav-height) + 1.5rem);
  align-self: flex-start;
  max-height: calc(100vh - var(--nav-height) - 3rem);
}
.org-sidebar-header {
  padding: 1.25rem 1.25rem 1rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
}
.org-sidebar-header a {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.org-sidebar-header a::before {
  content: '';
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  flex-shrink: 0;
  display: inline-flex;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 2L3 7v10l9 5 9-5V7l-9-5zm0 2.18l6.35 3.53L12 11.24 5.65 7.71 12 4.18zM5 16.12V9.29l6 3.33v6.84l-6-3.34zm8 3.34V12.62l6-3.33v6.83l-6 3.34z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 16px 16px;
}
.org-sidebar-header a:hover { color: var(--accent); }
.org-sidebar-nav {
  display: flex;
  flex-direction: column;
  padding: 0.5rem 0;
  flex: 1;
  overflow-y: auto;
}
.org-sidebar-nav a {
  padding: 0.625rem 1.25rem;
  color: var(--text-sub);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  border-left: 3px solid transparent;
  transition: var(--transition);
  position: relative;
}
.org-sidebar-nav a:hover {
  background: var(--bg-card-h);
  color: var(--text);
  border-left-color: var(--border-h);
}
.org-sidebar-nav a.active {
  color: var(--accent-dark);
  font-weight: 600;
  background: linear-gradient(90deg, rgba(22, 163, 74, 0.08) 0%, transparent 100%);
  border-left-color: var(--accent);
}
.org-sidebar-nav .sidebar-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.7;
}
.org-sidebar-nav a.active .sidebar-icon { opacity: 1; }
.org-sidebar-nav a:hover .sidebar-icon { opacity: 1; }
.org-sidebar-footer {
  padding: 0.75rem 1.25rem;
  border-top: 1px solid var(--border);
  background: var(--bg-card-h);
}
.org-sidebar-footer a {
  font-size: 0.8125rem;
  color: var(--text-sub);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}
.org-sidebar-footer a:hover { color: var(--accent); }
.org-main { flex: 1; min-width: 0; }

/* ── 대시보드 ── */
.dashboard-main .auth-card.section-card {
  max-width: none;
  width: 100%;
  margin-bottom: 1.25rem;
}
.dashboard-main .auth-card.section-card:last-child {
  margin-bottom: 0;
}
.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.dashboard-stat-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.25rem 1.25rem;
  min-width: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.dashboard-stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--border);
  transition: var(--transition);
}
.dashboard-stat-card:hover {
  border-color: var(--accent);
  background: var(--bg-card-h);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.dashboard-stat-card:hover::before {
  background: var(--accent);
}
.dashboard-stat-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.12), rgba(22, 163, 74, 0.06));
  color: var(--accent);
}
.dashboard-stat-icon svg { width: 20px; height: 20px; }
.dashboard-stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}
.dashboard-stat-label {
  font-size: 0.8125rem;
  color: var(--text-sub);
  margin-top: 0.35rem;
  font-weight: 500;
}
.dashboard-stat-highlight .dashboard-stat-value { color: var(--accent); }
.dashboard-stat-highlight::before { background: var(--accent); }
.dashboard-stat-highlight .dashboard-stat-icon { background: linear-gradient(135deg, rgba(22, 163, 74, 0.2), rgba(22, 163, 74, 0.1)); }
.dashboard-stat-alert .dashboard-stat-value { color: #c2410c; }
.dashboard-stat-alert::before { background: #c2410c; }
.dashboard-stat-alert .dashboard-stat-icon { background: linear-gradient(135deg, rgba(194, 65, 12, 0.15), rgba(194, 65, 12, 0.08)); color: #c2410c; }
.dashboard-projects-card .section-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.dashboard-card-link {
  font-size: 0.875rem;
  color: var(--accent);
  text-decoration: none;
}
.dashboard-card-link:hover { text-decoration: underline; }
.dashboard-project-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.dashboard-project-item {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}
.dashboard-project-item:last-child { border-bottom: none; }
.dashboard-project-head { margin-bottom: 0.5rem; }
.dashboard-project-name {
  font-weight: 600;
  color: var(--text);
}
.dashboard-round-list {
  list-style: none;
  margin: 0;
  padding: 0;
  padding-left: 0.5rem;
}
.dashboard-round-list li { margin-bottom: 0.35rem; }
.dashboard-round-link {
  font-size: 0.9375rem;
  color: var(--text-sub);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.dashboard-round-link:hover { color: var(--accent); }
.dashboard-round-status {
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: var(--bg-input);
  color: var(--text-sub);
}
.dashboard-round-status.status-voting {
  background: rgba(22, 163, 74, 0.15);
  color: var(--accent-dark);
}
.dashboard-round-status.status-closed {
  background: var(--bg-input);
  color: var(--text-muted);
}
.dashboard-no-rounds { font-size: 0.875rem; margin: 0; }
.dashboard-quick-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.dashboard-quick-list li { margin-bottom: 0.5rem; }
.dashboard-quick-list a {
  color: var(--accent);
  text-decoration: none;
}
.dashboard-quick-list a:hover { text-decoration: underline; }

/* ── 세부 투표 상세: 카드 넓이 확대 ── */
.page-section.org-round-page {
  max-width: 960px;
  padding: 2rem 1.5rem;
}
.org-round-page .auth-card.section-card {
  max-width: none;
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow), 0 2px 8px rgba(0, 0, 0, 0.06);
}
.org-round-page .section-card-header {
  padding: 1rem 1.5rem;
  font-size: 1rem;
}
.org-round-page .section-card-body {
  padding: 1.5rem 1.75rem;
}
.org-round-page .round-card-sep {
  margin-bottom: 1.5rem;
}
.org-round-page .round-card-sep:last-of-type {
  margin-bottom: 0;
}

/* 세부 투표: 후보 선택 모달 */
.round-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  border: none;
  border-radius: var(--radius-lg);
  padding: 0;
  max-width: 90vw;
  width: 480px;
  max-height: 90vh;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}
.round-modal::backdrop {
  background: rgba(0, 0, 0, 0.4);
}
.round-modal-box {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.round-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  border-bottom: 1px solid var(--border);
}
.round-modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text-sub);
  cursor: pointer;
  padding: 0 0.25rem;
}
.round-modal-close:hover {
  color: var(--text);
}
.round-modal-body {
  padding: 1.25rem 1.5rem;
  max-height: 60vh;
  overflow-y: auto;
}
.round-modal-footer {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--bg-card-h);
}
.round-modal-box-wide { max-width: min(720px, 92vw); width: 100%; }
.round-modal.round-modal-wide { width: 90%; max-width: 720px; }
.round-modal .round-modal-box { max-width: 100%; }

/* 라운드 관리: 요약 + 상세 모달 */
.round-summary-text { font-size: 1rem; margin: 0 0 0.75rem; color: var(--text); }
.round-summary-text strong { color: var(--text); }
.round-summary-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* 라운드 모달: 디자인된 체크박스 (체크 시 녹색) */
.round-modal .round-checkbox-label {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  user-select: none;
}
.round-modal .round-checkbox-label .round-checkbox-input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.round-modal .round-checkbox-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: 2px solid var(--border);
  border-radius: 6px;
  background: var(--bg-card);
  transition: border-color 0.15s, background 0.15s;
  flex-shrink: 0;
}
.round-modal .round-checkbox-label:hover .round-checkbox-box {
  border-color: var(--accent);
}
.round-modal .round-checkbox-label input:checked + .round-checkbox-box {
  background: #22c55e;
  border-color: #22c55e;
  color: #fff;
}
.round-modal .round-checkbox-label input:checked + .round-checkbox-box::after {
  content: '';
  width: 6px;
  height: 11px;
  margin-top: -2px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.round-modal .round-checkbox-label-inline { margin: 0; }
.round-modal .round-checkbox-label-inline .round-checkbox-box { margin-right: 0; }

/* 휴대폰 선거인단 모달: 조회 조건, 투표한 후보 보기 */
.phone-voters-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.phone-voters-filter-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-sub);
}
.phone-voters-filter-label span { white-space: nowrap; }
.phone-voter-voted-cell { display: flex; flex-direction: column; gap: 0.25rem; }
.btn-link {
  background: none;
  border: none;
  padding: 0;
  font-size: inherit;
  color: var(--accent);
  cursor: pointer;
  text-decoration: underline;
}
.btn-link:hover { color: var(--accent-dark); }
.phone-voter-voted-detail {
  font-size: 0.875rem;
  color: var(--text-sub);
  margin-top: 0.25rem;
  padding: 0.35rem 0.5rem;
  background: var(--bg-card-h);
  border-radius: var(--radius-sm);
}

/* 라운드 후보자 상세 모달: 사진 + 소개 */
.round-candidate-detail-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.round-candidate-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-card-h);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.round-candidate-detail-photo-wrap {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  min-width: 80px;
  min-height: 80px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-card);
  position: relative;
}
.round-candidate-detail-photo {
  width: 80px;
  height: 80px;
  object-fit: cover;
  display: block;
}
.round-candidate-detail-photo-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 80px;
  min-height: 80px;
  background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
  position: relative;
}
.round-candidate-detail-photo-placeholder::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%239ca3af'%3E%3Cpath d='M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
}
.round-candidate-detail-photo-wrap.round-candidate-detail-photo-placeholder {
  background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
}
.round-candidate-detail-photo-wrap.round-candidate-detail-photo-placeholder::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%239ca3af'%3E%3Cpath d='M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
}
.round-candidate-detail-main { flex: 1; min-width: 0; }
.round-candidate-detail-name { font-weight: 700; font-size: 1.125rem; color: var(--text); }
.round-candidate-detail-position { font-size: 1rem; color: var(--text-sub); margin-left: 0.25rem; }
.round-candidate-detail-intro { font-size: 0.9375rem; color: var(--text-sub); margin: 0.5rem 0 0; line-height: 1.5; }

/* 후보 선택 모달 내 체크박스: 네이티브 숨기고 커스텀 박스만 표시 */
.round-modal-checkboxes.candidate-select-list .candidate-select-option label {
  align-items: flex-start;
}
.round-modal-checkboxes .candidate-select-option .round-checkbox-input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.round-modal-checkboxes .candidate-select-option .round-checkbox-box {
  flex-shrink: 0;
  margin-top: 0.15rem;
}

/* 후보 선택 컴포넌트: 카드형 옵션 */
.candidate-select-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: grid;
  gap: 0.75rem;
  width: 100%;
}
.candidate-select-option {
  display: block;
  margin: 0;
  width: 100%;
  min-width: 0;
}
.candidate-select-option label {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  margin: 0;
  cursor: pointer;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  transition: var(--transition);
  min-height: 56px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.candidate-select-option label:hover {
  border-color: var(--border-h);
  background: var(--bg-card-h);
}
.candidate-select-option input[type="checkbox"] {
  width: 1.25rem;
  height: 1.25rem;
  margin: 0;
  accent-color: var(--accent);
  flex-shrink: 0;
}
.candidate-select-option label .candidate-option-name {
  flex: 1;
}
.candidate-select-option label .candidate-option-position {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-sub);
}
.candidate-select-option:has(input:checked) label {
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.08) 0%, rgba(34, 197, 94, 0.06) 100%);
  box-shadow: 0 0 0 1px var(--accent);
}
.candidate-select-option:has(input:checked) label .candidate-option-name {
  color: var(--accent-dark);
  font-weight: 600;
}

/* 후보 선택 모달: 사진·자기소개 포함 카드 (카드 넓이 통일) */
.candidate-select-list-with-detail .candidate-select-option label {
  align-items: flex-start;
  min-height: auto;
  padding: 1rem 1.25rem;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.candidate-select-list-with-detail .candidate-option-main {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.candidate-select-list-with-detail .candidate-option-intro {
  word-break: break-word;
  overflow-wrap: break-word;
}
/* 모달 내 후보 사진: 80x80 (2배) */
.round-modal .candidate-select-option-photo-wrap {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  min-width: 80px;
  min-height: 80px;
  max-width: 80px;
  max-height: 80px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-card-h);
  display: inline-block;
  vertical-align: middle;
}
.round-modal .candidate-select-option-photo-wrap img,
.round-modal img.candidate-select-option-photo {
  width: 80px !important;
  height: 80px !important;
  min-width: 80px !important;
  min-height: 80px !important;
  max-width: 80px !important;
  max-height: 80px !important;
  object-fit: cover;
  display: block;
  box-sizing: border-box;
}
/* 후보 사진 없을 때 더미 이미지 (사람 실루엣) */
.round-modal .candidate-option-photo-placeholder,
.round-modal .candidate-select-option-photo-wrap.candidate-option-photo-placeholder {
  display: block;
  width: 80px;
  height: 80px;
  min-width: 80px;
  min-height: 80px;
  background: var(--bg-input);
  border-radius: 8px;
  position: relative;
  box-sizing: border-box;
}
.round-modal .candidate-option-photo-placeholder::after,
.round-modal .candidate-select-option-photo-wrap.candidate-option-photo-placeholder::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2394a3b8'%3E%3Cpath d='M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z'/%3E%3C/svg%3E");
}
.candidate-option-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.candidate-option-intro {
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--text-sub);
  line-height: 1.45;
  margin-top: 0.25rem;
}
.candidate-select-list-with-detail .candidate-select-option-position {
  font-size: 0.875rem;
}

/* 세부 투표: 기타 리스트 정리 */
.org-round-page .candidates-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.org-round-page .candidates-list .candidate-item {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9375rem;
}
.org-round-page .candidates-list .candidate-item:last-child {
  border-bottom: none;
}
.org-round-page .candidates-list .candidate-position {
  font-size: 0.875rem;
}
.org-round-page .breadcrumb {
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-sub);
}
.org-round-page .breadcrumb a {
  color: var(--accent);
  text-decoration: none;
}
.org-round-page .breadcrumb a:hover {
  text-decoration: underline;
}
.org-round-page h2 {
  margin-bottom: 0.25rem;
}
.org-round-page .section-sub {
  margin-bottom: 1.5rem;
}
.org-round-page .btn-primary {
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
}

/* ── Clean table (마이페이지 스타일) ── */
.overflow-x { overflow-x: auto; }
.auth-card.overflow-x {
  max-width: none;
  text-align: left;
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.table-members {
  width: 100%;
  min-width: 320px;
  border-collapse: collapse;
  table-layout: fixed;
  text-align: left;
  font-size: 0.875rem;
}
.table-members thead {
  background: var(--bg-card-h);
}
.table-members th {
  padding: 14px 20px;
  font-weight: 600;
  color: var(--text);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  border-bottom: 1px solid var(--border);
}
.table-members td {
  padding: 14px 20px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.table-members tbody tr:last-child td {
  border-bottom: none;
}
.table-members tbody tr:hover {
  background: var(--bg-glass);
}
.table-members .col-name { width: 38%; min-width: 130px; }
.table-members .col-role { width: 34%; min-width: 110px; }
.table-members .col-action { width: 28%; min-width: 90px; }
.table-members .member-name { margin-right: 0.5rem; }
.table-members .badge-me {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 600;
  background: var(--accent-glow);
  color: var(--accent-dark);
  vertical-align: middle;
}
.table-members .role-text,
.table-members .action-empty { display: inline-block; }
.table-members .form-inline { display: inline-block; margin: 0; }
.table-members .form-select-role {
  width: 100%;
  max-width: 8rem;
  min-width: 6rem;
  padding: 6px 10px;
  font-size: 0.8125rem;
}
.table-members .form-input-sm {
  padding: 6px 10px;
  font-size: 0.8125rem;
}
.table-members .btn-sm {
  padding: 6px 14px;
  font-size: 0.8125rem;
}
.table-join-requests .col-name { width: 28%; }
.table-join-requests .col-role { width: 18%; }
.table-join-requests .col-date { width: 24%; min-width: 120px; }
.table-join-requests .col-action { width: 30%; min-width: 140px; }

.form-section-title { font-size: 1rem; margin-bottom: 1rem; color: var(--text); }
.form-row { display: flex; gap: 1rem; margin-bottom: 1rem; }
.form-row-2 { flex-wrap: wrap; }
.form-row-2 .form-group { flex: 1; min-width: 140px; }
.form-actions-inline { display: flex; gap: 0.5rem; margin-top: 1rem; }
.required { color: #dc2626; }
.table-membership .col-name { width: 18%; }
.table-membership .col-phone { width: 18%; }
.table-membership .col-position { width: 14%; }
.table-membership .col-status { width: 12%; }
.table-membership .col-date { width: 14%; min-width: 90px; }
.table-membership .col-action { width: 24%; min-width: 120px; }

.points-balance-amount { font-size: 1.75rem; font-weight: 700; color: var(--text); margin: 0.5rem 0 0; }
.points-unit { font-size: 1rem; font-weight: 500; color: var(--text-sub); }
.badge-success { background: rgba(34, 197, 94, 0.15); color: var(--accent-dark); }
.badge-danger { background: rgba(239, 68, 68, 0.12); color: #dc2626; }
.badge-muted { background: var(--bg-card-h); color: var(--text-sub); }
.table-points .amount-plus { color: var(--accent-dark); }
.table-points .amount-minus { color: #dc2626; }
.table-points .col-date { min-width: 120px; }

/* 포인트 카드: 충전 요청 내역·원장 */
/* 포인트 화면: 카드 넓이·간격 통일 */
.org-points-page .auth-card.section-card {
  max-width: none;
  width: 100%;
  margin-bottom: 1.25rem;
}
.org-points-page .auth-card.section-card:last-child {
  margin-bottom: 0;
}
.org-points-page .points-balance-card .section-card-body,
.org-points-page .points-charge-form-card .section-card-body {
  text-align: left;
}

.points-bank-info {
  margin-bottom: 1.25rem;
  padding: 1rem 1.25rem;
  background: var(--bg-card-h);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.points-bank-title { margin: 0 0 0.35rem; font-size: 0.875rem; font-weight: 600; color: var(--text-sub); }
.points-bank-detail { margin: 0; font-size: 1rem; color: var(--text); }
.points-tier-label { margin: 0 0 0.75rem; font-size: 0.9375rem; font-weight: 600; color: var(--text); }
.points-tier-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.points-tier-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem 0.75rem;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.9375rem;
  text-align: center;
  transition: border-color 0.2s, background 0.2s;
}
.points-tier-card:hover {
  border-color: var(--accent);
  background: rgba(22, 163, 74, 0.06);
}
.points-tier-amount { font-weight: 700; color: var(--text); margin-bottom: 0.25rem; }
.points-tier-bonus { font-size: 0.8125rem; color: var(--accent-dark); margin-bottom: 0.35rem; }
.points-tier-points { font-size: 0.875rem; font-weight: 600; color: var(--text-sub); }
.points-charge-hint { margin: 0 0 1rem; font-size: 0.9375rem; color: var(--text-sub); }
.points-charge-hint strong { color: var(--accent-dark); }

.points-card.overflow-x { padding: 0; }
.points-card-inner { padding: 1.25rem 1.5rem; }
.points-card-inner .form-section-title { margin-bottom: 1rem; }
.points-empty-state {
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--text-sub);
  font-size: 0.875rem;
  background: var(--bg-card-h);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
}
.points-empty-state p { margin: 0; }
.points-table-wrap { overflow-x: auto; margin: 0 -1.5rem -1.25rem; }
.points-table-wrap .table-members { margin: 0; min-width: 400px; }
.points-table-wrap .table-members th,
.points-table-wrap .table-members td { padding: 12px 1.5rem; }
.table-charge .col-amount { width: 22%; }
.table-charge .col-status { width: 18%; }
.table-charge .col-note { width: 35%; }
.table-charge .col-date { width: 25%; min-width: 120px; }
.table-ledger .col-date { width: 28%; min-width: 120px; }
.table-ledger .col-type { width: 20%; }
.table-ledger .col-amount { width: 22%; }
.table-ledger .col-desc { width: 30%; }

/* ── 시스템 관리자 페이지 ── */
.admin-page { max-width: 1100px; margin-left: auto; margin-right: auto; }
.admin-page .section-sub,
.admin-dashboard .section-sub { color: var(--text-sub); font-size: 0.9375rem; margin-bottom: 1.5rem; }
.admin-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.admin-card {
  display: block;
  text-decoration: none;
  color: inherit;
  text-align: left;
  transition: var(--transition);
}
.admin-card:hover {
  background: var(--bg-card-h);
  border-color: var(--border-h);
}
.admin-card h3 { font-size: 1.125rem; margin-bottom: 0.35rem; }
.admin-card-count { font-size: 1.25rem; font-weight: 700; color: var(--accent); margin: 0 0 0.25rem; }
.admin-card-desc { font-size: 0.8125rem; color: var(--text-sub); margin: 0; }
.admin-footer { margin-top: 1.5rem; font-size: 0.9375rem; }
.admin-footer .link-accent { color: var(--accent); }
.admin-filter {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.admin-filter .form-select-role,
.admin-filter select { min-width: 120px; }
.table-admin th,
.table-admin td { padding: 10px 12px; vertical-align: middle; }
.table-admin .col-name { width: 22%; }
.table-admin .col-slug { width: 18%; }
.table-admin .col-code { width: 18%; }
.table-admin .col-date { width: 20%; min-width: 100px; }
.table-charges .col-org { width: 16%; min-width: 90px; }
.table-charges .col-amount { width: 20%; min-width: 160px; white-space: nowrap; }
.table-charges .col-status { width: 10%; min-width: 64px; }
.table-charges .col-note { width: 18%; min-width: 80px; }
.table-charges .col-date { width: 16%; min-width: 120px; }
.table-charges .col-action { width: 20%; min-width: 140px; }
.table-charges td.col-amount { white-space: nowrap; }
.table-audit .col-date { width: 18%; min-width: 120px; }
.table-audit .col-action { width: 14%; }
.table-audit .col-resource { width: 20%; }
.table-audit .col-org { width: 18%; }
.table-audit .col-detail { width: 30%; }
.form-inline { display: inline-flex; align-items: center; gap: 0.25rem; }
.btn-success { background: var(--accent); color: #fff; border: none; }
.btn-success:hover { background: var(--accent-dark); }
.btn-danger { background: #dc2626; color: #fff; border: none; }
.btn-danger:hover { background: #b91c1c; }
.nav-admin { margin-bottom: 1rem; }
.nav-admin a { margin-right: 1rem; color: var(--text-sub); }
.nav-admin a:hover,
.nav-admin a.active { color: var(--accent); }

/* 프로젝트 · 세부 투표 */
.projects-add-card {
  max-width: 720px;
  margin-bottom: 1.5rem;
  text-align: left;
}
.project-add-row {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
}
.project-year-group { width: 100px; flex-shrink: 0; }
.project-name-group { flex: 1; min-width: 200px; }
.project-submit-group { flex-shrink: 0; }
.project-add-row .form-input { height: 40px; box-sizing: border-box; }
.project-add-row .btn { height: 40px; padding-top: 0; padding-bottom: 0; display: inline-flex; align-items: center; }
.form-label-invisible { display: block; height: 0; overflow: hidden; margin: 0; padding: 0; }

.project-card {
  max-width: 720px;
  margin-bottom: 1.5rem;
  text-align: left;
  padding: 0;
  overflow: hidden;
}
.project-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 50%, #f0fdf4 100%);
  border-bottom: 1px solid var(--border);
}
.project-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.35;
  color: var(--text);
}
.project-card-body {
  padding: 1.25rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.project-delete-form { flex-shrink: 0; }
.btn-consistent {
  height: 36px;
  line-height: 1;
  padding: 0 0.875rem;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
/* 프로젝트 카드 섹션: 블록으로 구분 */
.project-card-section {
  margin-top: 0;
}
.project-card-section.project-card-block {
  background: var(--bg-card-h);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}
.project-card-section .project-section-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-sub);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 0.75rem;
}
.project-section-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
}
.project-section-row-actions {
  justify-content: space-between;
  align-items: center;
}
.project-section-row-actions .project-section-value {
  flex: 1;
  min-width: 0;
}
.project-section-row-actions .btn-sm,
.project-section-row-actions .project-inline-form,
.project-section-row-actions .badge {
  flex-shrink: 0;
}
.project-section-value {
  font-size: 0.9375rem;
  color: var(--text);
  line-height: 1.4;
}
.project-section-value strong {
  font-weight: 700;
  color: var(--text);
}
.project-section-count {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
}
.project-section-muted {
  font-size: 0.8125rem;
  color: var(--text-sub);
  font-weight: 400;
}
.project-badge-sm {
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
}
.project-inline-form {
  display: inline;
}
.project-inline-form .btn { vertical-align: middle; }
.project-section-note {
  font-size: 0.8125rem;
  color: var(--text-sub);
  margin: 0.5rem 0 0;
  line-height: 1.45;
}
.project-section-summary {
  font-size: 0.8125rem;
  color: var(--text-sub);
  margin-top: 0.75rem;
  padding: 0.5rem 0.75rem;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent);
  line-height: 1.45;
}
.project-section-summary strong {
  color: var(--text);
}
/* 현장 투표 참여 인원 행 */
.project-paper-count-form {
  margin-top: 0;
}
.project-paper-count-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.project-paper-label {
  font-size: 0.875rem;
  color: var(--text);
  margin: 0;
  flex-shrink: 0;
}
.project-paper-input {
  width: 4.5rem;
  min-width: 4.5rem;
  height: 36px;
  padding: 0 0.5rem;
  font-size: 0.9375rem;
  text-align: right;
  box-sizing: border-box;
}
.project-paper-unit {
  font-size: 0.875rem;
  color: var(--text-sub);
}
.project-paper-count-row .btn { height: 36px; padding: 0 0.875rem; font-size: 0.875rem; }
/* 섹션 내 버튼 크기 통일 */
.project-card-section .btn-sm {
  height: 32px;
  padding: 0 0.75rem;
  font-size: 0.8125rem;
}
.project-candidates-open,
.project-voters-open {
  flex-shrink: 0;
}
.project-rounds-list {
  margin: 0 0 1rem;
}
.project-card-section .rounds-list {
  margin-top: 0;
  margin-bottom: 1rem;
}
.project-card-section .round-add-form {
  margin-top: 0;
}
.project-card-section .round-add-row {
  gap: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
.project-card-section .round-add-input {
  height: 38px;
  font-size: 0.9375rem;
  max-width: 220px;
  flex: 1;
  min-width: 120px;
}
.project-card-section .round-add-btn {
  height: 38px;
  padding: 0 1rem;
  font-size: 0.875rem;
  flex-shrink: 0;
}
.project-card-section .round-item {
  min-height: 44px;
  padding: 0 1rem;
  font-size: 0.9375rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.project-card-section .round-item .round-name {
  font-weight: 600;
  flex: 1;
  min-width: 0;
}
.project-card-section .round-item-delete-form {
  margin-left: auto;
}
.project-card-section .round-item-delete-form .btn-consistent {
  height: 32px;
  padding: 0 0.75rem;
  font-size: 0.8125rem;
}
/* 레거시 호환 */
.project-meta {
  font-size: 0.875rem;
  color: var(--text-sub);
  margin: 0 0 0.75rem;
}
.project-voters-summary {
  display: flex;
  align-items: center;
  gap: 0.5rem 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.25rem;
}
.project-voters-count { font-weight: 500; }
.project-voters-open { flex-shrink: 0; }

/* 모달 (선거인단 상세) */
.modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
}
.modal[hidden] { display: none; }
.modal-backdrop {
  position: absolute;
  inset: -1rem;
  z-index: -1;
  background: rgba(0, 0, 0, 0.5);
  cursor: pointer;
}
.modal-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 560px;
  max-height: calc(100vh - 2rem);
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
/* 선거인단 모달: 넓이 확대해 테이블 겹침 방지 */
.project-voters-modal .modal-panel {
  max-width: min(920px, 96vw);
}
.project-voters-modal .modal-body {
  min-width: 0;
}
.project-voters-modal .table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -0.25rem;
}
.project-voters-modal .table-voters {
  min-width: 480px;
  table-layout: fixed;
}
/* 5열: 선택, 이름, 직분, 전화번호, 상태 (관리자) */
.project-voters-modal .table-voters.voters-with-actions th:nth-child(1),
.project-voters-modal .table-voters.voters-with-actions td:nth-child(1) { width: 8%; min-width: 44px; }
.project-voters-modal .table-voters.voters-with-actions th:nth-child(2),
.project-voters-modal .table-voters.voters-with-actions td:nth-child(2) { width: 18%; min-width: 72px; }
.project-voters-modal .table-voters.voters-with-actions th:nth-child(3),
.project-voters-modal .table-voters.voters-with-actions td:nth-child(3) { width: 14%; min-width: 56px; }
.project-voters-modal .table-voters.voters-with-actions th:nth-child(4),
.project-voters-modal .table-voters.voters-with-actions td:nth-child(4) { width: 22%; min-width: 100px; }
.project-voters-modal .table-voters.voters-with-actions th:nth-child(5),
.project-voters-modal .table-voters.voters-with-actions td:nth-child(5) { width: 14%; min-width: 52px; }
/* 4열: 이름, 직분, 전화번호, 상태 (비관리자) */
.project-voters-modal .table-voters:not(.voters-with-actions) th:nth-child(1),
.project-voters-modal .table-voters:not(.voters-with-actions) td:nth-child(1) { width: 22%; min-width: 72px; }
.project-voters-modal .table-voters:not(.voters-with-actions) th:nth-child(2),
.project-voters-modal .table-voters:not(.voters-with-actions) td:nth-child(2) { width: 14%; min-width: 56px; }
.project-voters-modal .table-voters:not(.voters-with-actions) th:nth-child(3),
.project-voters-modal .table-voters:not(.voters-with-actions) td:nth-child(3) { width: 28%; min-width: 100px; }
.project-voters-modal .table-voters:not(.voters-with-actions) th:nth-child(4),
.project-voters-modal .table-voters:not(.voters-with-actions) td:nth-child(4) { width: 14%; min-width: 52px; }
.project-voters-modal .table-voters .col-check { text-align: center; vertical-align: middle; }
.project-voters-modal .table-voters .voters-select-all-label { font-weight: normal; cursor: pointer; display: inline-flex; align-items: center; gap: 0.5rem; }
/* 커스텀 체크박스: 크게, 체크 시 녹색 */
.project-voters-modal .voter-checkbox-label,
.project-voters-modal .voters-select-all-label { position: relative; user-select: none; }
.project-voters-modal .voter-checkbox-label input[type="checkbox"],
.project-voters-modal .voters-select-all-label input[type="checkbox"].voters-select-all {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0,0,0,0);
  border: 0;
}
.project-voters-modal .voter-checkbox-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: 2px solid var(--border);
  border-radius: 6px;
  background: var(--bg-card);
  transition: border-color 0.15s, background 0.15s;
  flex-shrink: 0;
}
.project-voters-modal .voter-checkbox-label:hover .voter-checkbox-box,
.project-voters-modal .voters-select-all-label:hover .voter-checkbox-box { border-color: var(--accent); }
.project-voters-modal .voter-checkbox-label input:checked + .voter-checkbox-box,
.project-voters-modal .voters-select-all-label input:checked + .voter-checkbox-box {
  background: #22c55e;
  border-color: #22c55e;
  color: #fff;
}
.project-voters-modal .voter-checkbox-label input:checked + .voter-checkbox-box::after,
.project-voters-modal .voters-select-all-label input:checked + .voter-checkbox-box::after {
  content: '';
  width: 6px;
  height: 11px;
  margin-top: -2px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.project-voters-modal .voters-select-all-label .voter-checkbox-box { margin-right: 0; }
.project-voters-modal .voters-select-all-text { margin-left: 0.25rem; }
.project-voters-modal .voters-pagination { display: flex; align-items: center; flex-wrap: wrap; gap: 0.35rem; }
.project-voters-modal .voters-pagination .voters-pagination-info { font-size: 0.875rem; color: var(--text-sub); margin-right: 0.5rem; }
.project-voters-modal .voters-pagination .voters-page-num { padding: 0.25rem 0.5rem; font-weight: 600; color: var(--accent); }
.project-voters-modal .voters-pagination .voters-page-current { color: var(--text); }
.project-voters-modal .voters-bulk-actions .btn { margin-right: 0.5rem; }
/* 선거인단 조회 조건 */
.project-voters-modal .voters-filters-row { display: flex; align-items: center; flex-wrap: wrap; gap: 0.75rem; }
.project-voters-modal .voters-filter-label { font-size: 0.875rem; font-weight: 500; color: var(--text-sub); margin: 0; white-space: nowrap; }
.project-voters-modal .voters-filters .form-input { font-size: 0.9375rem; padding: 0.4rem 0.6rem; min-height: 36px; }
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 50%, #f0fdf4 100%);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.modal-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.modal-btn-refresh {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 0.75rem;
  font-size: 0.8125rem;
}
.modal-btn-refresh:hover {
  text-decoration: none;
}
.voters-modal-qr-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.voters-modal-qr-row .btn {
  margin: 0;
}
.modal-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0;
  color: var(--text);
}
.modal-close {
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text-sub);
  cursor: pointer;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-close:hover { color: var(--text); background: var(--bg-card-h); }
.modal-body {
  padding: 1.25rem 1.5rem 1.5rem;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.rounds-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.round-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 48px;
  padding: 0 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.9375rem;
}
.round-item:last-child { border-bottom: none; }
.round-name {
  font-weight: 500;
  min-width: 5rem;
  flex-shrink: 0;
  text-decoration: none;
  color: var(--accent);
}
.round-name:hover { text-decoration: underline; }
.round-badge {
  flex-shrink: 0;
  font-size: 0.8125rem;
  padding: 0.2em 0.5em;
}
.round-item-delete-form { margin-left: auto; flex-shrink: 0; }

.project-candidates-list { margin-bottom: 0.75rem; }
.round-item-candidate { align-items: center; }
.round-item-candidate .project-candidate-name,
.round-item-candidate .project-candidate-position {
  line-height: 1.5;
  font-size: 0.9375rem;
  vertical-align: middle;
}
.project-candidate-name { color: var(--text); }
.project-candidate-position { color: var(--text-sub); margin-left: 0.25rem; }
.project-candidates-empty { font-size: 0.875rem; margin: 0 0 0.5rem; }

/* 후보자 모달: 목록만 스크롤, 4명 분량 노출 후 스크롤 */
.project-candidates-modal .modal-panel {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 2rem);
}
.project-candidates-modal-body {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
.project-candidates-list-wrap {
  flex-shrink: 0;
  max-height: 16rem; /* 약 3명 분량 */
  overflow-y: auto;
  overflow-x: hidden;
  margin: 0 -0.25rem 0 0;
  padding-right: 0.25rem;
}
.project-candidates-list-wrap .project-candidates-empty {
  margin: 0.5rem 0;
  padding: 0;
}
.project-candidate-add-form {
  flex-shrink: 0;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.candidate-form-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.candidate-form-row:last-of-type { margin-bottom: 0; }
.candidate-form-label {
  flex-shrink: 0;
  width: 4.5rem;
  padding-top: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
}
.candidate-form-input {
  flex: 1;
  min-width: 0;
}
.candidate-form-field {
  flex: 1;
  min-width: 0;
}
.candidate-form-field .form-hint {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  color: var(--text-muted);
}
.candidate-form-row-intro {
  align-items: flex-start;
}
.candidate-form-row-intro .candidate-form-label {
  padding-top: 0.65rem;
}
.candidate-form-row-intro textarea {
  resize: vertical;
  min-height: 4rem;
}
.candidate-form-actions {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.project-candidates-list-detailed .round-item-candidate-with-detail { align-items: flex-start; gap: 1rem; padding: 1rem; }
.project-candidate-photo-wrap { flex-shrink: 0; width: 56px; height: 56px; border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-input); }
.project-candidate-photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.project-candidate-info { flex: 1; min-width: 0; }
.project-candidate-info .round-name { display: inline; }
.project-candidate-info .project-candidate-position { display: inline; margin-left: 0.25rem; }
.project-candidate-intro { font-size: 0.8125rem; color: var(--text-sub); margin: 0.35rem 0 0; line-height: 1.45; }

.round-add-form { margin-top: 0.5rem; }
.round-add-row {
  display: flex;
  align-items: stretch;
  gap: 0.75rem;
}
.round-add-input {
  flex: 1;
  min-width: 140px;
  height: 40px;
  min-height: 40px;
  padding: 0 0.75rem;
  font-size: 0.9375rem;
  border-radius: var(--radius-sm);
  box-sizing: border-box;
  border: 1px solid var(--border);
}
.round-add-form .round-add-btn {
  height: 40px;
  min-height: 40px;
  padding: 0 1.25rem;
  font-size: 0.9375rem;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.btn-outline.btn-danger { color: #dc2626; border-color: #dc2626; background: transparent; }
.btn-outline.btn-danger:hover { background: rgba(220, 38, 38, 0.1); color: #b91c1c; }

.breadcrumb { font-size: 0.875rem; color: var(--text-sub); margin-bottom: 0.5rem; }
.breadcrumb a { color: var(--accent); }

/* ── 투표 화면: 후보 사진·자기소개·큰 녹색 체크박스 ── */
.vote-card .vote-section-label { font-weight: 600; font-size: 1rem; margin-bottom: 0.25rem; display: block; }
.vote-card .vote-section-desc { font-size: 0.875rem; margin-bottom: 1rem; color: var(--text-sub); }
.vote-candidate-list { list-style: none; padding: 0; margin: 0 0 1.25rem; display: flex; flex-direction: column; gap: 0.75rem; }
.vote-candidate-item { margin: 0; }
.vote-candidate-option {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.25rem;
  margin: 0;
  cursor: pointer;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  min-height: 56px;
}
.vote-candidate-option:hover { border-color: var(--border-h); background: var(--bg-card-h); }
.vote-candidate-option:has(.vote-choice-cb:checked),
.vote-candidate-option:has(input[type="radio"]:checked) {
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.08) 0%, rgba(34, 197, 94, 0.06) 100%);
  box-shadow: 0 0 0 1px var(--accent);
}
.vote-candidate-photo-wrap {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  min-width: 72px;
  min-height: 72px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-card-h);
}
/* wrap에 플레이스홀더 클래스가 붙은 경우(img 로드 실패 시) */
.vote-candidate-photo-wrap.vote-candidate-photo-placeholder {
  background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.vote-candidate-photo-wrap.vote-candidate-photo-placeholder::before {
  content: '';
  width: 32px;
  height: 32px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%239ca3af'%3E%3Cpath d='M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
}
.vote-candidate-photo { width: 72px; height: 72px; object-fit: cover; display: block; }
.vote-candidate-photo-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 72px;
  min-height: 72px;
  background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
  border-radius: inherit;
  position: relative;
}
.vote-candidate-photo-placeholder::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%239ca3af'%3E%3Cpath d='M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
}
.vote-candidate-main { flex: 1; min-width: 0; }
.vote-candidate-name { font-weight: 600; font-size: 1rem; color: var(--text); display: inline; }
.vote-candidate-position { font-size: 0.9375rem; color: var(--text-sub); margin-left: 0.25rem; }
.vote-candidate-intro { font-size: 0.875rem; color: var(--text-sub); margin: 0.35rem 0 0; line-height: 1.5; }
.vote-candidate-option .vote-input-visual {
  width: 1.5rem;
  height: 1.5rem;
  min-width: 1.5rem;
  min-height: 1.5rem;
  margin: 0.25rem 0 0 0;
  flex-shrink: 0;
  accent-color: var(--accent);
  cursor: pointer;
}
.vote-card .btn-vote-submit { margin-top: 0.5rem; width: 100%; }

.table-voters th, .table-voters td { padding: 8px 12px; }

/* ── 전체화면 현황판 round-board ── */
body.layout-minimal .round-board {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 2rem;
  background: var(--bg-main);
}
.round-board-empty { padding: 2rem; font-size: 1.125rem; }

.round-board-header { margin-bottom: 1.25rem; }
.round-board-header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}
.round-board-titles { flex: 1; min-width: 0; }
.round-board-title { font-size: 2.5rem; margin: 0 0 0.25rem 0; color: var(--text); font-weight: 700; letter-spacing: -0.02em; }
.round-board-sub { font-size: 1.25rem; color: var(--text-sub); margin: 0; }
.round-board-header-cards {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.75rem;
}
.round-board-card {
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.round-board-card-criteria {
  border-color: rgba(22, 163, 74, 0.25);
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.06) 0%, rgba(34, 197, 94, 0.04) 100%);
}
.round-board-card-label { font-size: 0.9375rem; font-weight: 600; color: var(--text-sub); text-transform: uppercase; letter-spacing: 0.03em; }
.round-board-card-value { font-size: 1.25rem; color: var(--text); font-weight: 500; line-height: 1.35; }
.round-board-card-value strong { font-weight: 700; }
.round-board-card-turnout .round-board-turnout-pct { color: var(--accent); font-weight: 600; }
.round-board-card-turnout .round-board-turnout-bar-wrap {
  height: 1.5rem;
  margin-top: 0.25rem;
}
.round-board-card-turnout .round-board-turnout-bar-label { font-size: 1rem; }
.round-board-turnout-bar-wrap {
  position: relative;
  background: var(--bg-card-h);
  border-radius: 999px;
  overflow: hidden;
}
.round-board-turnout-bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: linear-gradient(90deg, var(--accent) 0%, #4ade80 100%);
  border-radius: 999px;
  transition: width 0.3s ease;
}
.round-board-turnout-bar-label {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-weight: 600;
  color: var(--text);
}
.round-board-fullscreen-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  font-size: 1rem;
  white-space: nowrap;
}
.round-board-fullscreen-icon {
  width: 1.25rem;
  height: 1.25rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M8 3H5a2 2 0 0 0-2 2v3m18 0V5a2 2 0 0 0-2-2h-3m0 18h3a2 2 0 0 0 2-2v-3M3 16v3a2 2 0 0 0 2 2h3'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
}
.round-board-fullscreen-btn.round-board-fullscreen-active .round-board-fullscreen-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M8 3v3a2 2 0 0 1-2 2H3m18 0h-3a2 2 0 0 1-2-2V3m0 18v-3a2 2 0 0 1 2-2h3M3 16h3a2 2 0 0 1 2 2v3'/%3E%3C/svg%3E");
}

.round-board-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
  font-size: 1.3rem;
  color: var(--text-sub);
}
.round-board-summary-total { font-weight: 500; }
.round-board-summary-total strong { color: var(--text); }
.round-board-summary-winners { font-weight: 500; }
.round-board-summary-winners strong { color: var(--accent-dark); }
.round-board-summary-time { font-variant-numeric: tabular-nums; }
.round-board-summary-pages { font-weight: 600; color: var(--accent); }

.round-board-table-wrap {
  flex: 1;
  overflow: hidden;
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  position: relative;
}
.round-board-table-wrap-compact {
  min-height: 0;
  overflow-y: auto;
  overflow-x: auto;
  display: flex;
  flex-direction: column;
  background: transparent;
  box-shadow: none;
}
.round-board-table-wrap-compact .round-board-compact-split { flex: 1; min-height: 0; }
.round-board-page {
  display: none;
  padding: 0;
}
.round-board-page.round-board-page-visible {
  display: block;
  animation: round-board-fade 0.3s ease;
}
@keyframes round-board-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.round-board-table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  font-size: 1.25rem;
}
.round-board-table th,
.round-board-table td { padding: 1rem 1.5rem; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; }
.round-board-table thead th {
  color: var(--text-sub);
  font-weight: 600;
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding-top: 1.25rem;
  padding-bottom: 0.75rem;
  white-space: nowrap;
}
.round-board-table tbody tr { transition: background 0.15s ease; }
.round-board-table tbody tr:hover { background: rgba(0,0,0,0.02); }
.round-board-th-rank { width: 64px; text-align: center; }
.round-board-th-photo { width: 100px; }
.round-board-th-name { min-width: 160px; }
.round-board-th-online, .round-board-th-paper { width: 100px; min-width: 100px; text-align: center; }
.round-board-th-total { width: 90px; text-align: center; }
.round-board-th-progress { min-width: 140px; }
.round-board-th-needed { width: 90px; text-align: center; min-width: 72px; }
.round-board-th-badge { width: 90px; min-width: 72px; }

.round-board-cell-rank { text-align: center; vertical-align: middle; }
.round-board-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  font-weight: 700;
  font-size: 1.125rem;
  background: var(--bg-card-h);
  color: var(--text-sub);
}
.round-board-rank.rank-1 { background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%); color: #fff; }
.round-board-rank.rank-2 { background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%); color: #fff; }
.round-board-rank.rank-3 { background: linear-gradient(135deg, #d97706 0%, #b45309 100%); color: #fff; }

.round-board-cell-photo { vertical-align: middle; }
.round-board-photo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  min-width: 72px;
  min-height: 72px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-card-h);
}
.round-board-photo { width: 72px; height: 72px; object-fit: cover; display: block; }
.round-board-photo-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 72px;
  min-height: 72px;
  background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
  border-radius: 50%;
  position: relative;
}
.round-board-photo-placeholder::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 28px;
  height: 28px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%239ca3af'%3E%3Cpath d='M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
}
.round-board-photo-wrap.round-board-photo-placeholder {
  background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
}
.round-board-photo-wrap.round-board-photo-placeholder::before {
  content: '';
  width: 28px;
  height: 28px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%239ca3af'%3E%3Cpath d='M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
}

.round-board-cell-name { }
.round-board-name { font-weight: 700; font-size: 1.5rem; color: var(--text); }
.round-board-position { font-size: 1.125rem; color: var(--text-sub); margin-left: 0.25rem; font-weight: 400; }
.round-board-cell-num { text-align: center; font-size: 1.5rem; color: var(--text); }
.round-board-num { }
.round-board-cell-total { text-align: center; }
.round-board-total { font-weight: 700; font-size: 1.5rem; color: var(--text); }
.round-board-row-winner { background: linear-gradient(90deg, rgba(22, 163, 74, 0.12) 0%, rgba(34, 197, 94, 0.08) 100%); }
.round-board-row-winner:hover { background: linear-gradient(90deg, rgba(22, 163, 74, 0.16) 0%, rgba(34, 197, 94, 0.1) 100%); }
.round-board-cell-badge { text-align: center; white-space: nowrap; }
.round-board-badge { font-size: 1.125rem; padding: 0.4rem 0.9rem; font-weight: 600; }

.round-board-cell-progress { min-width: 120px; }
.round-board-progress-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.round-board-progress-track {
  flex: 1;
  min-width: 0;
  height: 1rem;
  background: var(--bg-card-h);
  border-radius: 999px;
  overflow: hidden;
}
.round-board-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent) 0%, #4ade80 100%);
  border-radius: 999px;
  transition: width 0.3s ease;
}
.round-board-progress-pct {
  flex-shrink: 0;
  min-width: 2.5em;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  text-align: right;
}
.round-board-progress-na { color: var(--text-sub); font-size: 1rem; }
.round-board-cell-needed { text-align: center; font-weight: 600; white-space: nowrap; }
.round-board-needed-num { color: var(--accent); font-size: 1.125rem; }
.round-board-needed-done { color: var(--accent-dark); font-size: 1rem; }
.round-board-needed-na { color: var(--text-sub); font-size: 1rem; }

/* 컴팩트 현황판: 표 안 내용 1.1배 */
.round-board-table-wrap-compact .round-board-table-compact { font-size: 0.9625rem; }
.round-board-table-compact thead th { padding: 0.385rem 0.275rem; }
.round-board-table-compact th.round-board-th-rank,
.round-board-table-compact td.round-board-cell-rank { width: 90px; padding: 0.33rem 0.275rem; }
.round-board-table-compact th.round-board-th-photo,
.round-board-table-compact td.round-board-cell-photo { width: 90px; padding: 0.33rem 0.22rem; }
.round-board-table-compact .round-board-photo-wrap {
  width: 55px !important;
  height: 55px !important;
  min-width: 55px !important;
  min-height: 55px !important;
  overflow: hidden;
  border-radius: 50%;
  flex-shrink: 0;
}
.round-board-table-compact .round-board-photo { width: 55px; height: 55px; min-width: 55px; min-height: 55px; object-fit: cover; display: block; }
.round-board-table-compact .round-board-photo-placeholder {
  width: 55px !important;
  height: 55px !important;
  min-width: 55px !important;
  min-height: 55px !important;
}
.round-board-table-compact .round-board-photo-wrap.round-board-photo-placeholder::before { width: 31px; height: 31px; }
.round-board-table-compact th.round-board-th-name,
.round-board-table-compact td.round-board-cell-name { min-width: 0; max-width: 108px; padding: 0.33rem 0.33rem; }
.round-board-table-compact .round-board-name { font-size: 1.7875rem; font-weight: 600; }
.round-board-table-compact .round-board-position { font-size: 1.43rem; }
.round-board-table-compact th.round-board-th-total,
.round-board-table-compact th.round-board-th-needed,
.round-board-table-compact td.round-board-cell-total,
.round-board-table-compact td.round-board-cell-needed { width: 100px; padding: 0.33rem 0.22rem; min-width: 100px; max-width: 100px; }
.round-board-table-compact th.round-board-th-badge,
.round-board-table-compact td.round-board-cell-badge { width: 100px; padding: 0.33rem 0.22rem; min-width: 100px; max-width: 100px; }
.round-board-table-compact th.round-board-th-rank,
.round-board-table-compact td.round-board-cell-rank { text-align: center; }
.round-board-table-compact th.round-board-th-photo,
.round-board-table-compact td.round-board-cell-photo { text-align: center; }
.round-board-table-compact th.round-board-th-name,
.round-board-table-compact td.round-board-cell-name { text-align: left; }
.round-board-table-compact th.round-board-th-total,
.round-board-table-compact th.round-board-th-needed,
.round-board-table-compact td.round-board-cell-total,
.round-board-table-compact td.round-board-cell-needed { text-align: right; }
.round-board-table-compact th.round-board-th-badge,
.round-board-table-compact td.round-board-cell-badge { text-align: center; }
.round-board-table-compact .round-board-needed-num { font-size: 1.5015rem; }
.round-board-table-compact .round-board-needed-na { font-size: 1.3rem; }
.round-board-table-compact .round-board-total { font-size: 1.573rem; font-weight: 700; }
.round-board-table-compact .round-board-badge {
  font-size: 1.408rem;
  padding: 0.22rem 0.55rem;
  border-radius: var(--radius);
}
.round-board-table-compact .round-board-cell-empty {
  background: var(--bg-card);
  height: 71px;
  vertical-align: middle;
}
.round-board-table-compact tbody tr { height: 71px; }
.round-board-table-compact tbody td { height: 71px; box-sizing: border-box; }
.round-board-row-compact td { border-bottom: 1px solid var(--border); vertical-align: middle; }
.round-board-row-compact .round-board-rank { font-size: 1.1rem; }

/* 컴팩트 현황판: 왼쪽/오른쪽 별도 테이블 */
.round-board-compact-split {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  width: 100%;
  min-height: 0;
  flex: 1;
}
.round-board-compact-half {
  flex: 1;
  min-width: 0;
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  overflow: auto;
}
.round-board-compact-half .round-board-table-compact { width: 100%; }

.round-board-footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}
.round-board-footer-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.round-board-btn-refresh { }
.round-board-pagination {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.round-board-page-info {
  font-weight: 600;
  color: var(--text);
  min-width: 4rem;
  text-align: center;
}
.round-board-per-page-hint {
  font-size: 0.875rem;
  color: var(--text-sub);
  font-weight: 400;
  margin-left: 0.25rem;
}
.round-board-autopage { display: inline-flex; align-items: center; gap: 0.5rem; cursor: pointer; }
.round-board-autopage input { width: 1.25rem; height: 1.25rem; }
.round-board-back { margin: 0; }
.round-board-back a { color: var(--accent); }

/* 전체화면 모드일 때 현황판 영역 여백·가독성 */
#round-board-root:fullscreen,
#round-board-root:-webkit-full-screen {
  padding: 2.5rem 3rem;
  justify-content: center;
}

/* ── 전체화면 종이 투표 입력 round-paper-input ── */
body.layout-minimal .round-paper-input {
  min-height: 100vh;
  padding: 2rem;
  background: var(--bg-main);
}
.round-paper-input-title { font-size: 2rem; margin-bottom: 0.25rem; }
.round-paper-input-sub { font-size: 1.125rem; color: var(--text-sub); margin-bottom: 2rem; }
.round-paper-input-form { max-width: 640px; }
.round-paper-input-desc { font-size: 0.9375rem; color: var(--text-sub); margin: 0 0 1rem; line-height: 1.5; }
.round-paper-input-remaining { font-size: 1rem; color: var(--text-sub); margin: 0 0 1.5rem; }
.round-paper-input-form-single .round-paper-input-fields { margin-bottom: 1rem; }
.round-paper-input-single { width: 100%; max-width: 400px; font-size: 1.25rem; padding: 0.75rem 1rem; }
.round-paper-input-done { font-size: 1rem; margin: 0 0 1rem; }
.round-paper-input-fields { display: flex; flex-direction: column; gap: 1.25rem; margin-bottom: 2rem; }
.round-paper-input-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.round-paper-input-label { font-size: 1.5rem; font-weight: 600; min-width: 140px; }
.round-paper-input-num {
  width: 140px;
  font-size: 1.5rem;
  padding: 0.75rem 1rem;
  min-height: 52px;
}
.round-paper-input-names {
  width: 100%;
  font-size: 1.125rem;
  line-height: 1.6;
  resize: vertical;
  min-height: 200px;
}
.round-paper-input-hint { font-size: 0.875rem; margin-top: 0.5rem; }
.round-paper-input-unit { font-size: 1.25rem; color: var(--text-sub); }
.round-paper-input-actions .btn-lg { font-size: 1.25rem; padding: 0.75rem 2rem; min-height: 52px; }
.round-paper-input-links { margin-top: 2rem; font-size: 1rem; }
.round-paper-input-links a { color: var(--accent); }

/* ── 스텝 진행 표시기 (세부 투표 워크플로우) ── */
.workflow-steps {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding: 1.5rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.workflow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  position: relative;
  z-index: 1;
  min-width: 0;
}
.workflow-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 18px;
  left: calc(50% + 22px);
  right: calc(-50% + 22px);
  height: 2px;
  background: var(--border);
  z-index: -1;
}
.workflow-step.step-done:not(:last-child)::after {
  background: var(--accent);
}
.workflow-step.step-active:not(:last-child)::after {
  background: linear-gradient(90deg, var(--accent) 0%, var(--border) 100%);
}
.workflow-step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  transition: var(--transition);
  border: 2px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  flex-shrink: 0;
}
.workflow-step.step-done .workflow-step-circle {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.workflow-step.step-active .workflow-step-circle {
  background: #fff;
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow);
  animation: stepPulse 2s ease-in-out infinite;
}
@keyframes stepPulse {
  0%, 100% { box-shadow: 0 0 0 4px var(--accent-glow); }
  50% { box-shadow: 0 0 0 8px rgba(22, 163, 74, 0.1); }
}
.workflow-step-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.3;
  max-width: 80px;
}
.workflow-step.step-done .workflow-step-label { color: var(--accent-dark); }
.workflow-step.step-active .workflow-step-label { color: var(--text); font-weight: 700; }
.workflow-step-circle .step-check {
  width: 16px;
  height: 16px;
}

@media (max-width: 600px) {
  .workflow-steps { padding: 1rem 0.75rem; gap: 0; }
  .workflow-step-label { font-size: 0.6875rem; max-width: 64px; }
  .workflow-step-circle { width: 30px; height: 30px; font-size: 0.75rem; }
  .workflow-step:not(:last-child)::after { top: 15px; left: calc(50% + 18px); right: calc(-50% + 18px); }
}

/* ── 상태 배지 개선 ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}
.badge-success { background: rgba(34, 197, 94, 0.15); color: var(--accent-dark); }
.badge-danger { background: rgba(239, 68, 68, 0.12); color: #dc2626; }
.badge-muted { background: var(--bg-card-h); color: var(--text-sub); }
.badge-warning { background: rgba(245, 158, 11, 0.15); color: #b45309; }
.badge-info { background: rgba(59, 130, 246, 0.12); color: #2563eb; }
.badge-voting {
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.2), rgba(34, 197, 94, 0.15));
  color: var(--accent-dark);
  animation: badgePulse 2s ease-in-out infinite;
}
@keyframes badgePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}
.badge-draft { background: var(--bg-card-h); color: var(--text-sub); }
.badge-confirmed { background: rgba(59, 130, 246, 0.12); color: #2563eb; }
.badge-closed { background: rgba(100, 116, 139, 0.12); color: #475569; }

/* ── 대시보드 라운드 상태 배지 개선 ── */
.dashboard-round-status {
  font-size: 0.6875rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  font-weight: 600;
}
.dashboard-round-status.status-draft { background: var(--bg-input); color: var(--text-sub); }
.dashboard-round-status.status-voting {
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.2), rgba(34, 197, 94, 0.15));
  color: var(--accent-dark);
}
.dashboard-round-status.status-closed { background: rgba(100, 116, 139, 0.12); color: #475569; }
.dashboard-round-status.status-confirmed { background: rgba(59, 130, 246, 0.12); color: #2563eb; }

/* ── 프로젝트 카드 섹션 아이콘 ── */
.project-section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  margin-right: 0.5rem;
  flex-shrink: 0;
  vertical-align: middle;
}
.project-section-icon svg { width: 14px; height: 14px; }
.project-section-icon-candidates { background: rgba(139, 92, 246, 0.12); color: #7c3aed; }
.project-section-icon-voters { background: rgba(59, 130, 246, 0.12); color: #2563eb; }
.project-section-icon-paper { background: rgba(245, 158, 11, 0.12); color: #b45309; }
.project-section-icon-rounds { background: rgba(22, 163, 74, 0.12); color: var(--accent-dark); }

/* ── 투표 카드 개선 ── */
.vote-page-wrap {
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}
.vote-card-enhanced {
  max-width: 600px;
  width: 100%;
  text-align: left;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.06);
}
.vote-card-enhanced .vote-card-header {
  background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent) 100%);
  padding: 1.5rem 1.75rem;
  color: #fff;
}
.vote-card-enhanced .vote-card-header h2 {
  color: #fff;
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}
.vote-card-enhanced .vote-card-header .vote-round-name {
  font-size: 0.9375rem;
  opacity: 0.9;
}
.vote-card-enhanced .vote-card-body { padding: 1.5rem 1.75rem 2rem; }
.vote-card-enhanced .vote-section-label {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  display: block;
  color: var(--text);
}
.vote-card-enhanced .vote-section-desc {
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
  color: var(--text-sub);
  padding: 0.5rem 0.75rem;
  background: rgba(59, 130, 246, 0.06);
  border-radius: var(--radius-sm);
  border-left: 3px solid #3b82f6;
}
.vote-card-enhanced .btn-vote-submit {
  margin-top: 1rem;
  width: 100%;
  padding: 0.875rem;
  font-size: 1.0625rem;
  font-weight: 700;
  border-radius: var(--radius);
}
.vote-done-card {
  text-align: center;
  max-width: 480px;
}
.vote-done-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(22, 163, 74, 0.1));
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}
.vote-done-icon svg { width: 32px; height: 32px; }

/* ── 대시보드 빠른 링크 개선 ── */
.dashboard-quick-list a {
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  transition: var(--transition);
}
.dashboard-quick-list a:hover {
  background: var(--bg-card-h);
  color: var(--accent);
}
.dashboard-quick-list li { margin-bottom: 0.25rem; }
.dashboard-quick-icon {
  width: 18px;
  height: 18px;
  color: var(--text-sub);
  flex-shrink: 0;
}
.dashboard-quick-list a:hover .dashboard-quick-icon { color: var(--accent); }

/* ── 대시보드 프로젝트 리스트 개선 ── */
.dashboard-project-item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}
.dashboard-project-item:last-child { border-bottom: none; }
.dashboard-project-head {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.dashboard-project-name {
  font-weight: 700;
  color: var(--text);
  font-size: 1rem;
}
.dashboard-round-list li {
  margin-bottom: 0.25rem;
}
.dashboard-round-link {
  font-size: 0.875rem;
  color: var(--text-sub);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.dashboard-round-link:hover {
  color: var(--accent);
  background: rgba(22, 163, 74, 0.06);
}

/* ── 반응형: 사이드바 접기 ── */
@media (max-width: 768px) {
  .org-layout {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }
  .org-sidebar {
    width: 100%;
    position: static;
    max-height: none;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    border-radius: var(--radius);
  }
  .org-sidebar-header {
    padding: 0.75rem 1rem;
    border-bottom: none;
    border-right: 1px solid var(--border);
  }
  .org-sidebar-nav {
    flex-direction: row;
    flex-wrap: wrap;
    padding: 0.5rem;
    gap: 0.25rem;
  }
  .org-sidebar-nav a {
    padding: 0.4rem 0.75rem;
    border-left: none;
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
  }
  .org-sidebar-nav a.active {
    background: rgba(22, 163, 74, 0.12);
    border-left: none;
  }
  .org-sidebar-footer {
    border-top: none;
    border-left: 1px solid var(--border);
    padding: 0.5rem 0.75rem;
  }
  .page-section.org-round-page { padding: 1.5rem 1rem; }
}

/* ── 빈 상태 일러스트 ── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2.5rem 1.5rem;
}
.empty-state-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.1), rgba(34, 197, 94, 0.06));
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.empty-state-icon svg { width: 28px; height: 28px; }
.empty-state-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.empty-state-desc {
  font-size: 0.875rem;
  color: var(--text-sub);
  max-width: 320px;
  line-height: 1.5;
  margin-bottom: 1rem;
}

/* ── 라운드 상태 헤더 ── */
.round-status-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}
.round-status-badge-lg {
  font-size: 0.875rem;
  padding: 0.35rem 0.875rem;
  font-weight: 700;
}

/* ── 카드 호버 효과 개선 ── */
.project-card {
  transition: var(--transition);
  box-shadow: var(--shadow);
}
.project-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}
.auth-card.section-card {
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s ease;
}

/* ── 라운드 카드 링크 스타일 (투표 중 강조) ── */
.round-badge.badge-voting {
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.2), rgba(34, 197, 94, 0.15));
  color: var(--accent-dark);
}

/* ── 투표 시작 카드 강조 ── */
.round-start-voting-card {
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow), var(--shadow);
}
.round-start-voting-card .section-card-header {
  background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent) 100%);
}
.round-start-voting-card .section-card-header .form-section-title {
  color: #fff;
}

/* ── 프로젝트 카드 블록 라벨 개선 ── */
.project-card-section.project-card-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  transition: border-color 0.2s ease;
}
.project-card-section.project-card-block:hover {
  border-color: var(--border-h);
}
.project-card-section .project-section-title {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text);
  text-transform: none;
  letter-spacing: 0;
  margin: 0 0 0.75rem;
  display: flex;
  align-items: center;
}

/* ── 관리자 선거인단 직접 등록 ── */
.voter-admin-register-section {
  background: #f9fafb;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 0.5rem;
}
.voter-admin-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 1rem;
}
.voter-admin-tab {
  padding: 0.5rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-light);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.2s, border-color 0.2s;
}
.voter-admin-tab:hover {
  color: var(--primary);
}
.voter-admin-tab-active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}
.voter-admin-tab-content {
  display: none;
}
.voter-admin-tab-content-active {
  display: block;
}
.voter-admin-form-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: flex-end;
}
.voter-admin-form-row .form-group {
  margin-bottom: 0;
}
.voter-admin-form-row .form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  display: block;
}

/* ── 엑셀 업로드 ── */
.voter-excel-info {
  margin-bottom: 1rem;
}
.voter-excel-sample-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius);
}
.voter-sample-download-btn {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
  margin-top: 0.25rem;
}
.voter-excel-upload-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.voter-excel-file-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}
.voter-excel-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.voter-excel-choose-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  pointer-events: none;
}
.voter-excel-filename {
  font-size: 0.85rem;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
