:root {
  --bg: #f6f7fb;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --accent: #eff6ff;
  --accent-strong: #dbeafe;
  --danger: #b91c1c;
  --danger-bg: #fef2f2;
  --success: #15803d;
  --success-bg: #ecfdf5;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}

a {
  color: var(--primary);
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 20px 60px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding: 18px 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  flex-wrap: wrap;
}

.topbar .user {
  font-size: 15px;
  font-weight: 600;
}

.topbar .actions,
.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.nav-btn,
.link-btn,
.button {
  appearance: none;
  border: none;
  border-radius: 10px;
  padding: 10px 14px;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.05s ease, box-shadow 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 120px;
}

.nav-btn:hover,
.link-btn:hover,
.button:hover {
  background: var(--primary-hover);
}

.nav-btn:disabled,
.button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

.nav-btn--ghost {
  background: #f3f4f6;
  color: #111827;
  border: 1px solid #e5e7eb;
}

.nav-btn--ghost:hover {
  background: #e5e7eb;
}

.link-btn.secondary {
  background: #111827;
}

.hero {
  margin-bottom: 24px;
}

.hero h1 {
  margin: 0 0 8px;
  font-size: 32px;
  line-height: 1.2;
}

.hero p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  margin-bottom: 20px;
}

.card h2 {
  margin: 0 0 14px;
  font-size: 20px;
  line-height: 1.3;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 16px;
  line-height: 1.4;
}

.muted {
  color: var(--muted);
  font-size: 14px;
}

.mt14 {
  margin-top: 14px;
}

.form-group {
  margin-bottom: 14px;
}

label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
}

.optional {
  color: var(--muted);
  font-weight: 500;
  font-size: 12px;
  margin-left: 4px;
}

input,
textarea,
select,
button {
  font: inherit;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  background: #fff;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}

textarea {
  resize: vertical;
  min-height: 90px;
}

.helper {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.helper.strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.price-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.price-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.price-list li:last-child {
  border-bottom: none;
}

.price-list strong {
  font-size: 15px;
}

.detail-list {
  margin-top: 16px;
}

.detail-list p {
  margin: 8px 0;
}

.list {
  margin: 0;
  padding-left: 18px;
}

.list li + li {
  margin-top: 8px;
}

.notice {
  background: var(--accent);
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 14px;
}

.notice strong {
  display: block;
  margin-bottom: 6px;
}

.small-warning {
  margin-top: 14px;
  padding: 12px 14px;
  font-size: 13px;
  color: var(--danger);
  background: var(--danger-bg);
  border: 1px solid #fecaca;
  border-radius: 12px;
}

.footer {
  margin-top: 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.info-block {
  padding: 2px 0;
}

.info-block p {
  margin: 8px 0;
  font-size: 14px;
  word-break: keep-all;
}

.info-block a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
  word-break: break-all;
}

.info-block a:hover {
  text-decoration: underline;
}

.links {
  margin-top: 16px;
  font-size: 14px;
}

.links a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
}

.links a:hover {
  text-decoration: underline;
}

.hidden {
  display: none !important;
}

/* 심사/운영 안내 강조용 보조 스타일 */
.notice-soft {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 14px;
}

.notice-success {
  background: var(--success-bg);
  border: 1px solid #bbf7d0;
  color: var(--success);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 14px;
}

.notice-danger {
  background: var(--danger-bg);
  border: 1px solid #fecaca;
  color: var(--danger);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 14px;
}

.kv {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 8px 12px;
  font-size: 14px;
}

.kv strong {
  color: var(--text);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid var(--line);
  background: #f9fafb;
}

.badge-primary {
  background: var(--accent);
  border-color: #bfdbfe;
  color: var(--primary);
}

.badge-danger {
  background: var(--danger-bg);
  border-color: #fecaca;
  color: var(--danger);
}

.badge-success {
  background: var(--success-bg);
  border-color: #bbf7d0;
  color: var(--success);
}

@media (max-width: 820px) {
  .grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .container {
    padding: 24px 14px 40px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .kv {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .topbar {
    align-items: flex-start;
  }

  .topbar .actions,
  .top-actions {
    width: 100%;
  }

  .nav-btn,
  .link-btn,
  .button {
    width: 100%;
    min-width: 0;
  }

  .price-list li {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
}
.kb-maintenance-lock {
  overflow: hidden;
}

#kbMaintenanceOverlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(15, 23, 42, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  pointer-events: all;
}

.kb-maintenance-box {
  width: min(520px, 100%);
  background: white;
  color: #111827;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  text-align: center;
}

.kb-maintenance-box h1 {
  margin: 0 0 14px;
  font-size: 24px;
}

.kb-maintenance-box p {
  line-height: 1.6;
}

.kb-maintenance-box .main-message {
  font-weight: 700;
  color: #dc2626;
}

.kb-maintenance-box .time-box {
  margin: 18px 0;
  padding: 16px;
  border-radius: 14px;
  background: #f3f4f6;
  line-height: 1.6;
}

.kb-maintenance-box .small {
  color: #6b7280;
  font-size: 13px;
}