:root {
  --navy: #071b3a;
  --navy-2: #0d2a58;
  --blue: #2f6df6;
  --blue-soft: #eaf2ff;
  --teal: #18a999;
  --mint: #78e2c2;
  --purple: #7d55d9;
  --gold: #d7a43b;
  --orange: #f28b32;
  --ink: #172033;
  --muted: #667085;
  --line: #dce5f3;
  --white: #ffffff;
  --soft: #f6f9ff;
  --soft-2: #eef7fb;
  --danger: #df4d4d;
  --success: #14966b;
  --warning: #c77a16;
  --radius: 8px;
  --shadow: 0 18px 40px rgba(12, 36, 72, 0.12);
  --shadow-soft: 0 10px 24px rgba(12, 36, 72, 0.08);
  --max: 1380px;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, #f4f9ff 0%, #ffffff 38%, #f8fbff 100%);
  font-family:
    "Pretendard",
    "Noto Sans KR",
    "Apple SD Gothic Neo",
    "Malgun Gothic",
    system-ui,
    sans-serif;
  line-height: 1.65;
}

body.no-scroll {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  max-width: 100%;
  display: block;
}

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

.app-shell {
  min-height: 100vh;
}

.container {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(220, 229, 243, 0.8);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
}

.header-inner {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
  font-weight: 900;
  color: var(--navy);
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  color: white;
  background:
    linear-gradient(145deg, rgba(215, 164, 59, 0.95), rgba(47, 109, 246, 0.98)),
    var(--blue);
  box-shadow: 0 10px 18px rgba(47, 109, 246, 0.22);
}

.brand-mark span {
  font-size: 0.84rem;
  font-weight: 900;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
  color: #29344a;
  font-weight: 700;
  font-size: 0.95rem;
}

.nav-menu a {
  position: relative;
  padding: 10px 0;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--teal));
  transition: width 0.25s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.mobile-toggle {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  color: var(--navy);
  display: none;
  align-items: center;
  justify-content: center;
}

.btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 18px;
  font-weight: 800;
  white-space: nowrap;
  color: var(--navy);
  background: var(--white);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.btn-primary {
  color: white;
  background: linear-gradient(135deg, var(--blue), #1a4ed8);
  box-shadow: 0 14px 26px rgba(47, 109, 246, 0.28);
}

.btn-gold {
  color: #23190a;
  background: linear-gradient(135deg, #f4c763, var(--gold));
  box-shadow: 0 14px 26px rgba(215, 164, 59, 0.26);
}

.btn-ghost {
  border-color: rgba(47, 109, 246, 0.22);
  color: var(--navy);
  background: rgba(255, 255, 255, 0.76);
}

.btn-soft {
  border-color: var(--line);
  color: var(--blue);
  background: var(--blue-soft);
}

.hero {
  min-height: min(760px, 82vh);
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(115deg, rgba(7, 27, 58, 0.96) 0%, rgba(13, 42, 88, 0.88) 44%, rgba(255, 255, 255, 0.2) 100%),
    linear-gradient(180deg, #ffffff, #eaf4ff);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(120, 226, 194, 0.18), transparent 34%),
    linear-gradient(315deg, rgba(242, 139, 50, 0.22), transparent 38%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  min-height: inherit;
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(420px, 1.04fr);
  align-items: center;
  gap: 52px;
  padding: 54px 0 60px;
}

.hero-copy {
  color: white;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #e9f3ff;
  font-size: 0.9rem;
  font-weight: 800;
}

.hero h1 {
  margin: 0;
  font-size: 4.15rem;
  line-height: 1.13;
  font-weight: 900;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.hero h1 strong {
  color: #ffd77e;
}

.hero .blue-mark {
  color: #82b6ff;
}

.hero p {
  margin: 24px 0 0;
  max-width: 700px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 38px;
  max-width: 620px;
}

.hero-stat {
  padding: 16px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
}

.hero-stat strong {
  display: block;
  color: #ffffff;
  font-size: 1.35rem;
  line-height: 1.1;
}

.hero-stat span {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.86rem;
}

.hero-media {
  position: relative;
  min-height: 520px;
  align-self: stretch;
}

.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.26);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(7, 27, 58, 0.12), transparent 45%),
    linear-gradient(0deg, rgba(7, 27, 58, 0.2), transparent 36%);
  pointer-events: none;
}

.floating-brief {
  position: absolute;
  left: -28px;
  bottom: 32px;
  width: 290px;
  padding: 18px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  color: var(--navy);
  box-shadow: var(--shadow);
}

.floating-brief strong {
  display: block;
  font-size: 1rem;
}

.floating-brief span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.9rem;
}

.section {
  padding: 92px 0;
}

.section-tight {
  padding: 68px 0;
}

.section-band {
  background:
    linear-gradient(180deg, rgba(234, 242, 255, 0.72), rgba(255, 255, 255, 0.86)),
    var(--soft);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.section-heading.center {
  display: block;
  text-align: center;
  max-width: 760px;
  margin: 0 auto 38px;
}

.section-kicker {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--blue);
  font-size: 0.88rem;
  font-weight: 900;
}

.section-heading h2,
.page-hero h1,
.admin-title h1 {
  margin: 0;
  color: var(--navy);
  font-size: 2.36rem;
  line-height: 1.25;
  font-weight: 900;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.section-heading p,
.page-hero p,
.admin-title p {
  max-width: 720px;
  margin: 12px 0 0;
  color: var(--muted);
}

.slider-wrap {
  position: relative;
}

.logo-slider,
.partner-slider {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 1fr);
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 2px 18px;
  scrollbar-width: thin;
}

.sponsor-card,
.partner-logo,
.program-card,
.shortcut-card,
.process-card,
.notice-card,
.product-card,
.dashboard-card,
.form-panel,
.info-panel,
.admin-card,
.table-panel,
.voucher-card,
.setting-card {
  border: 1px solid rgba(220, 229, 243, 0.86);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
}

.sponsor-card {
  scroll-snap-align: start;
  min-height: 180px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.fake-logo {
  width: 54px;
  height: 54px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  color: white;
  font-weight: 900;
  background: linear-gradient(135deg, var(--navy), var(--blue));
}

.fake-logo.gold {
  background: linear-gradient(135deg, #8a641d, var(--gold));
}

.fake-logo.mint {
  background: linear-gradient(135deg, #098f86, var(--mint));
}

.fake-logo.purple {
  background: linear-gradient(135deg, #5333a6, var(--purple));
}

.fake-logo.orange {
  background: linear-gradient(135deg, #be5c11, var(--orange));
}

.sponsor-image {
  object-fit: cover;
  background: #fff;
}

.sponsor-card h3,
.partner-logo strong {
  margin: 18px 0 6px;
  color: var(--navy);
  font-size: 1.16rem;
}

.sponsor-card p,
.partner-logo span {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.slider-actions {
  display: flex;
  gap: 8px;
}

.icon-btn {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--navy);
  background: white;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.icon-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.slider-dots span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #c7d6ef;
}

.slider-dots span:first-child {
  width: 24px;
  background: linear-gradient(90deg, var(--blue), var(--teal));
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.program-card {
  position: relative;
  overflow: hidden;
  padding: 28px;
  transition:
    transform 0.24s ease,
    box-shadow 0.24s ease,
    border-color 0.24s ease;
}

.program-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(47, 109, 246, 0.24);
}

.program-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: linear-gradient(90deg, var(--blue), var(--teal));
}

.program-card.teal::before {
  background: linear-gradient(90deg, var(--teal), var(--mint));
}

.program-card.purple::before {
  background: linear-gradient(90deg, var(--purple), var(--orange));
}

.program-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.program-icon,
.step-icon,
.page-icon,
.admin-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--navy-2));
}

.program-card.teal .program-icon {
  background: linear-gradient(135deg, var(--teal), #086a70);
}

.program-card.purple .program-icon {
  background: linear-gradient(135deg, var(--purple), #39206f);
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--blue);
  background: var(--blue-soft);
  font-size: 0.84rem;
  font-weight: 900;
  white-space: nowrap;
}

.badge.teal {
  color: #08756d;
  background: #e4fbf6;
}

.badge.purple {
  color: #5f3bb8;
  background: #f1ecff;
}

.badge.gold {
  color: #7a5612;
  background: #fff5d9;
}

.badge.orange {
  color: #9b4e0f;
  background: #fff0e1;
}

.badge.success {
  color: var(--success);
  background: #e5f8f1;
}

.badge.warning {
  color: var(--warning);
  background: #fff2df;
}

.badge.danger {
  color: var(--danger);
  background: #ffeded;
}

.program-card h3 {
  margin: 22px 0 4px;
  color: var(--navy);
  font-size: 1.46rem;
}

.program-card .amount {
  margin: 0 0 18px;
  color: var(--gold);
  font-weight: 900;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  display: grid;
  gap: 10px;
}

.check-list li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 8px;
  color: #354057;
  font-size: 0.96rem;
}

.check-list li::before {
  content: "✓";
  width: 18px;
  height: 18px;
  margin-top: 4px;
  border-radius: 50%;
  background:
    linear-gradient(135deg, var(--teal), var(--blue)),
    var(--teal);
  color: white;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 900;
}

.program-summary {
  margin: 18px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.shortcut-layout {
  display: grid;
  gap: 24px;
}

.shortcut-group {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 22px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.shortcut-group:first-child {
  border-top: 0;
}

.shortcut-title h3 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 1.35rem;
}

.shortcut-title p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

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

.shortcut-card {
  min-height: 98px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  font-weight: 900;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.shortcut-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.shortcut-card .mini-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  color: var(--blue);
  background: var(--blue-soft);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  position: relative;
}

.process-card {
  position: relative;
  min-height: 220px;
  padding: 24px;
}

.process-card h3 {
  margin: 20px 0 8px;
  color: var(--navy);
}

.process-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.step-number {
  color: var(--gold);
  font-weight: 900;
}

.process-card:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 44px;
  right: -20px;
  width: 20px;
  height: 12px;
  background: linear-gradient(90deg, var(--blue), var(--teal));
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.partner-slider {
  grid-auto-columns: minmax(190px, 1fr);
}

.partner-logo {
  min-height: 136px;
  padding: 22px;
  display: grid;
  place-items: center;
  text-align: center;
}

.partner-logo .mark {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, var(--navy-2), var(--teal));
  font-weight: 900;
}

.notice-grid,
.product-grid,
.dashboard-grid,
.info-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.notice-card,
.product-card,
.dashboard-card,
.info-panel {
  padding: 22px;
}

.notice-card h3,
.product-card h3,
.dashboard-card h3,
.info-panel h3 {
  margin: 14px 0 8px;
  color: var(--navy);
  font-size: 1.08rem;
}

.notice-card p,
.product-card p,
.dashboard-card p,
.info-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.notice-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 0.86rem;
}

.site-footer {
  padding: 64px 0 36px;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.78);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(4, minmax(120px, 1fr));
  gap: 34px;
}

.footer-brand .brand {
  color: white;
}

.footer-brand p {
  margin: 18px 0 0;
  max-width: 360px;
}

.footer-col h3 {
  margin: 0 0 14px;
  color: white;
  font-size: 1rem;
}

.footer-col a,
.footer-col span {
  display: block;
  margin: 8px 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.94rem;
}

.sns-row {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.footer-bottom {
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.88rem;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 82px 0;
  background:
    linear-gradient(135deg, rgba(7, 27, 58, 0.96), rgba(16, 71, 141, 0.9)),
    var(--navy);
  color: white;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(120, 226, 194, 0.18), transparent 36%),
    linear-gradient(315deg, rgba(215, 164, 59, 0.18), transparent 42%);
  pointer-events: none;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1,
.page-hero p {
  color: white;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.82);
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) 360px;
  gap: 24px;
  align-items: start;
}

.detail-main,
.detail-side {
  display: grid;
  gap: 18px;
}

.info-panel h2 {
  margin: 0 0 12px;
  color: var(--navy);
}

.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: start;
}

.form-panel {
  padding: 28px;
}

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

.field {
  display: grid;
  gap: 7px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  color: var(--navy);
  font-weight: 900;
  font-size: 0.92rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 14px;
  background: white;
  color: var(--ink);
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.field textarea {
  min-height: 128px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(47, 109, 246, 0.12);
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.check-grid label,
.check-consent {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 13px;
  background: #fff;
  color: var(--navy);
  font-weight: 800;
}

.check-grid input,
.check-consent input {
  width: auto;
}

.consent {
  margin: 18px 0 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
}

.consent input {
  width: 18px;
  height: 18px;
  margin-top: 4px;
}

.login-shell {
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 0.7fr);
  gap: 40px;
  align-items: center;
  padding: 70px 0;
}

.login-visual {
  padding: 42px;
  border-radius: var(--radius);
  color: white;
  background:
    linear-gradient(135deg, rgba(7, 27, 58, 0.96), rgba(47, 109, 246, 0.84)),
    var(--navy);
  box-shadow: var(--shadow);
}

.login-visual h1 {
  margin: 18px 0;
  font-size: 2.5rem;
  line-height: 1.25;
}

.login-visual p {
  color: rgba(255, 255, 255, 0.82);
}

.auth-card {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow);
}

.auth-card h1 {
  margin: 0 0 8px;
  color: var(--navy);
}

.auth-card p {
  margin: 0 0 24px;
  color: var(--muted);
}

.auth-card form {
  display: grid;
  gap: 14px;
}

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

.dashboard-card strong {
  display: block;
  margin-top: 8px;
  color: var(--navy);
  font-size: 1.45rem;
}

.history-table,
.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.history-table th,
.history-table td,
.admin-table th,
.admin-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
  font-size: 0.94rem;
}

.history-table th,
.admin-table th {
  color: var(--navy);
  background: #f8fbff;
  font-weight: 900;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.market-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 24px;
}

.market-toolbar .search-box {
  max-width: 420px;
  flex: 1;
}

.search-box {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 16px;
  background: white;
  color: var(--muted);
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
}

.product-card .product-visual {
  height: 130px;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(47, 109, 246, 0.18), rgba(120, 226, 194, 0.34)),
    #eef7fb;
  display: grid;
  place-items: center;
  color: var(--navy);
  overflow: hidden;
}

.product-card .product-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-price {
  margin: 16px 0 8px;
  color: var(--navy);
  font-size: 1.25rem;
  font-weight: 900;
}

.admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  background: #f5f8fc;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  padding: 24px 18px;
  color: white;
  background:
    linear-gradient(180deg, #061631, #0b244c 58%, #071b3a),
    var(--navy);
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
  font-weight: 900;
}

.admin-menu {
  display: grid;
  gap: 4px;
}

.admin-menu a {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: var(--radius);
  padding: 0 12px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
  font-size: 0.92rem;
}

.admin-menu a:hover,
.admin-menu a.active {
  color: white;
  background: rgba(255, 255, 255, 0.12);
}

.admin-main {
  min-width: 0;
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
}

.admin-topbar h2 {
  margin: 0;
  color: var(--navy);
  font-size: 1.08rem;
}

.admin-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 10px;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  font-weight: 900;
}

.admin-content {
  padding: 30px;
}

.admin-title {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin-bottom: 24px;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.admin-card {
  padding: 20px;
}

.kpi-card .kpi-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.kpi-card h3 {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.kpi-card strong {
  display: block;
  margin-top: 14px;
  color: var(--navy);
  font-size: 1.34rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.kpi-card .delta {
  display: inline-flex;
  margin-top: 10px;
  color: var(--success);
  font-weight: 900;
  font-size: 0.86rem;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.6fr);
  gap: 18px;
  margin-top: 18px;
}

.table-panel {
  padding: 22px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.panel-head h2 {
  margin: 0;
  color: var(--navy);
  font-size: 1.18rem;
}

.bar-chart {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  min-height: 270px;
  align-items: end;
  padding-top: 18px;
}

.bar-group {
  display: grid;
  gap: 7px;
  align-items: end;
  text-align: center;
}

.bars {
  height: 210px;
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 5px;
}

.bar {
  width: 16px;
  border-radius: 999px 999px 4px 4px;
  min-height: 18px;
}

.bar.startup {
  background: var(--blue);
}

.bar.citizen {
  background: var(--teal);
}

.bar.hope {
  background: var(--purple);
}

.bar-group span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  color: var(--muted);
  font-size: 0.88rem;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.donut {
  width: 210px;
  height: 210px;
  margin: 22px auto;
  border-radius: 50%;
  background: conic-gradient(var(--blue) 0 32%, var(--teal) 32% 75%, var(--purple) 75% 100%);
  position: relative;
}

.donut::after {
  content: "100%";
  position: absolute;
  inset: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--navy);
  background: white;
  font-weight: 900;
}

.activity-list {
  display: grid;
  gap: 12px;
}

.activity-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.activity-row span {
  color: var(--muted);
}

.activity-row strong {
  color: var(--navy);
}

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

.voucher-card {
  padding: 22px;
}

.voucher-card h3 {
  margin: 0 0 18px;
  color: var(--navy);
}

.voucher-stats {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.voucher-stats div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
}

.voucher-stats strong {
  color: var(--navy);
}

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

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

.setting-card {
  padding: 22px;
}

.setting-card h3 {
  margin: 0 0 8px;
  color: var(--navy);
}

.setting-card p {
  margin: 0 0 18px;
  color: var(--muted);
}

.toggle {
  width: 48px;
  height: 28px;
  border-radius: 999px;
  padding: 3px;
  background: var(--blue);
}

.toggle span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: block;
  margin-left: auto;
  background: white;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.55s ease,
    transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.icon {
  width: 22px;
  height: 22px;
  display: inline-block;
}

.icon svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Portal-style homepage matching the compact public support dashboard reference. */
.site-header {
  border-bottom-color: #cdd9ea;
  box-shadow: 0 1px 0 rgba(9, 28, 62, 0.05);
}

.header-inner {
  height: 54px;
}

.brand {
  gap: 10px;
  font-size: 1.12rem;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #d6a137;
  color: white;
  background:
    radial-gradient(circle at 50% 48%, #0b3474 0 38%, transparent 39%),
    conic-gradient(from 210deg, #d6a137, #fff0b0, #d6a137, #8b641d, #d6a137);
  box-shadow: 0 4px 10px rgba(8, 34, 76, 0.18);
}

.brand-mark span {
  font-size: 0.66rem;
}

.nav-menu {
  gap: 44px;
  font-size: 0.93rem;
}

.header-actions .btn {
  min-height: 38px;
  padding: 0 17px;
}

.portal-home {
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 52%, #f7fbff 100%);
}

.portal-home .container {
  width: min(100% - 42px, 1380px);
}

.portal-hero {
  position: relative;
  min-height: 226px;
  overflow: hidden;
  color: white;
  background: #062b63;
}

.portal-hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 31, 76, 0.98) 0%, rgba(6, 45, 105, 0.86) 35%, rgba(6, 45, 105, 0.16) 58%, rgba(255, 255, 255, 0.08) 100%),
    url("./assets/hanmiwon-portal-hero.png") center right / cover no-repeat;
}

.portal-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 36% 76%, rgba(255, 195, 72, 0.55), transparent 14%),
    linear-gradient(105deg, transparent 0 22%, rgba(89, 167, 255, 0.22) 34%, transparent 45%),
    linear-gradient(168deg, transparent 0 64%, rgba(215, 164, 59, 0.26) 82%, transparent 100%);
  pointer-events: none;
}

.portal-hero-inner {
  position: relative;
  z-index: 1;
  min-height: 226px;
  display: flex;
  align-items: center;
}

.portal-hero-copy {
  width: min(620px, 50%);
  padding: 20px 0 22px;
}

.portal-hero h1 {
  margin: 0;
  font-size: 2.26rem;
  line-height: 1.2;
  font-weight: 900;
  color: white;
  word-break: keep-all;
}

.portal-hero h1 strong {
  color: #ffc84f;
}

.portal-hero p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.94);
  font-size: 0.92rem;
  line-height: 1.58;
  font-weight: 700;
}

.portal-hero .hero-actions {
  margin-top: 12px;
}

.portal-hero .btn {
  min-height: 40px;
  min-width: 190px;
  border-radius: 7px;
}

.portal-sponsors {
  padding: 8px 0 8px;
  border-bottom: 1px solid #d8e3f2;
  background: rgba(248, 251, 255, 0.96);
}

.portal-sponsor-layout {
  display: grid;
  grid-template-columns: 250px 34px minmax(0, 1fr) 34px;
  gap: 12px;
  align-items: center;
}

.portal-sponsor-title h2,
.portal-section-title h2 {
  margin: 0;
  color: var(--navy);
  font-size: 1.2rem;
  line-height: 1.25;
  font-weight: 900;
  word-break: keep-all;
}

.portal-sponsor-title p,
.portal-section-title p {
  margin: 6px 0 8px;
  color: #4e5e79;
  font-size: 0.85rem;
  line-height: 1.5;
}

.portal-sponsor-title .btn {
  min-height: 32px;
  border-radius: 6px;
  padding: 0 14px;
  font-size: 0.86rem;
}

.portal-sponsor-cards {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(190px, 1fr);
  gap: 10px;
  overflow-x: auto;
  padding: 2px 2px 8px;
  scrollbar-width: none;
}

.portal-sponsor-card {
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border: 1px solid #d9e5f4;
  border-radius: 7px;
  background: white;
  box-shadow: 0 5px 14px rgba(12, 36, 72, 0.08);
}

.portal-sponsor-card .fake-logo {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
}

.portal-sponsor-card h3 {
  margin: 0 0 3px;
  color: var(--navy);
  font-size: 1rem;
}

.portal-sponsor-card p {
  margin: 0;
  color: #62708a;
  font-size: 0.78rem;
}

.portal-round {
  width: 36px;
  height: 36px;
  border: 1px solid #d9e5f4;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--navy);
  background: white;
  box-shadow: 0 8px 18px rgba(12, 36, 72, 0.08);
}

.portal-main {
  padding: 10px 0 8px;
}

.portal-program-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.portal-program-card {
  position: relative;
  min-height: 134px;
  padding: 12px 16px 10px;
  border: 1px solid #cfddee;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(135deg, #ffffff 0%, #f5faff 100%);
  box-shadow: 0 8px 20px rgba(20, 49, 88, 0.1);
}

.portal-program-card::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 40px;
  width: 104px;
  height: 92px;
  opacity: 0.18;
  background: linear-gradient(135deg, currentColor, transparent);
  clip-path: polygon(0 84%, 23% 70%, 44% 78%, 72% 34%, 100% 0, 100% 100%, 0 100%);
}

.portal-program-card.blue {
  color: #0d58b8;
}

.portal-program-card.teal {
  color: #0a938d;
}

.portal-program-card.purple {
  color: #6a3bbd;
}

.portal-program-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.portal-program-head .program-icon {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border-radius: 50%;
}

.portal-program-head h3 {
  margin: 0 0 3px;
  color: var(--navy);
  font-size: 1.28rem;
  line-height: 1.15;
}

.portal-program-card ul {
  position: relative;
  z-index: 1;
  list-style: none;
  display: grid;
  gap: 2px;
  margin: 6px 0 7px 60px;
  padding: 0;
  color: #243653;
  font-size: 0.74rem;
  line-height: 1.38;
  font-weight: 700;
}

.portal-program-card li::before {
  content: "✓";
  margin-right: 6px;
  color: currentColor;
  font-weight: 900;
}

.portal-full-btn {
  position: relative;
  z-index: 1;
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 6px;
  color: white;
  background: linear-gradient(135deg, #084895, #002b66);
  font-weight: 900;
  box-shadow: 0 8px 14px rgba(6, 41, 96, 0.18);
}

.portal-program-card.teal .portal-full-btn {
  background: linear-gradient(135deg, #0aa69e, #006d75);
}

.portal-program-card.purple .portal-full-btn {
  background: linear-gradient(135deg, #7342cc, #4d24a3);
}

.portal-shortcuts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 7px;
}

.portal-shortcut-panel {
  padding: 8px;
  border: 1px solid #d3e0f0;
  border-radius: 8px;
  background: white;
}

.portal-shortcut-panel h3 {
  margin: 0 0 8px;
  color: var(--navy);
  text-align: center;
  font-size: 1.05rem;
}

.portal-shortcut-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.portal-shortcut-grid a {
  min-height: 48px;
  display: grid;
  place-items: center;
  gap: 5px;
  padding: 6px 5px;
  border: 1px solid #d6e2f2;
  border-radius: 6px;
  color: #0b326d;
  background: linear-gradient(180deg, #ffffff, #f7fbff);
  text-align: center;
  font-size: 0.68rem;
  font-weight: 800;
}

.portal-shortcut-grid a:hover {
  border-color: var(--blue);
  box-shadow: 0 8px 16px rgba(47, 109, 246, 0.12);
}

.portal-shortcut-grid .icon {
  width: 22px;
  height: 22px;
}

.portal-shortcut-panel.teal .portal-shortcut-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.portal-shortcut-panel.teal .portal-shortcut-grid a {
  color: #08756d;
}

.portal-shortcut-panel.purple .portal-shortcut-grid a {
  color: #5b33b0;
}

.portal-row {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.portal-process-row {
  grid-template-columns: minmax(0, 1.65fr) minmax(340px, 0.75fr);
}

.portal-process,
.portal-mypage,
.portal-news,
.portal-partners {
  border: 1px solid #d3e0f0;
  border-radius: 8px;
  background: white;
  box-shadow: 0 5px 14px rgba(12, 36, 72, 0.06);
}

.portal-process {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  align-items: center;
  padding: 14px;
}

.portal-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.portal-step {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 4px;
  text-align: center;
  color: #41526d;
  font-size: 0.75rem;
}

.portal-step > span {
  position: absolute;
  left: 4px;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: white;
  background: #0b4ea2;
  font-size: 0.72rem;
  font-weight: 900;
}

.portal-step div {
  width: 48px;
  height: 48px;
  border: 1px solid #bfd1e9;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #0b4ea2;
  background: #f3f8ff;
}

.portal-step strong {
  color: var(--navy);
  font-size: 0.78rem;
}

.portal-mypage {
  overflow: hidden;
}

.portal-mypage h2 {
  margin: 0;
  padding: 8px 14px;
  color: white;
  background: #06499d;
  font-size: 1rem;
}

.portal-mypage small {
  color: rgba(255, 255, 255, 0.82);
}

.portal-mypage-body {
  display: grid;
  grid-template-columns: 42px 1fr 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  font-size: 0.8rem;
}

.portal-mypage-body p {
  margin: 3px 0;
}

.portal-mypage-body ul {
  margin: 0;
  padding-left: 16px;
  color: #243653;
}

.portal-bottom-row {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
}

.portal-news,
.portal-partners {
  padding: 10px 12px;
}

.portal-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.portal-section-title a {
  color: #0b4ea2;
  font-size: 0.82rem;
  font-weight: 900;
}

.portal-news-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.portal-news-list a {
  min-height: 42px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 8px;
  align-content: center;
  padding: 6px 8px;
  border: 1px solid #d6e2f2;
  border-radius: 6px;
  background: #fbfdff;
}

.portal-news-list span {
  padding: 1px 7px;
  border-radius: 999px;
  color: white;
  background: #0b66c3;
  font-size: 0.68rem;
  font-weight: 900;
}

.portal-news-list strong {
  color: #1d2b45;
  font-size: 0.74rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-news-list small {
  grid-column: 1 / -1;
  color: #6c7890;
  font-size: 0.68rem;
}

.portal-partner-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin-top: 8px;
  border: 1px solid #d6e2f2;
  border-radius: 6px;
  overflow: hidden;
}

.portal-partner-strip div {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-right: 1px solid #e1e9f5;
  background: white;
}

.portal-partner-strip div:last-child {
  border-right: 0;
}

.portal-partner-strip span {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, #0758b8, #19a7a0);
  font-weight: 900;
}

.portal-partner-strip strong {
  color: #243653;
  font-size: 0.86rem;
}

.portal-home + .site-footer,
.portal-home ~ .site-footer {
  margin-top: 0;
}

.site-footer {
  padding: 22px 0 18px;
}

.footer-grid {
  grid-template-columns: 1.7fr repeat(4, minmax(120px, 1fr));
  gap: 24px;
}

.footer-brand p {
  margin-top: 10px;
  font-size: 0.86rem;
}

.footer-bottom {
  margin-top: 16px;
  padding-top: 12px;
}

/* Compact admin dashboard. */
.admin-shell {
  grid-template-columns: 200px minmax(0, 1fr);
}

.admin-sidebar {
  padding: 12px 10px;
}

.admin-brand {
  gap: 8px;
  margin-bottom: 14px;
  font-size: 1rem;
}

.admin-brand .brand-mark {
  width: 38px;
  height: 38px;
}

.admin-menu a {
  min-height: 43px;
  padding: 0 14px;
  font-size: 0.88rem;
}

.admin-topbar {
  height: 52px;
  padding: 0 16px;
}

.admin-topbar .search-box {
  max-width: 330px;
}

.admin-topbar .btn {
  min-height: 36px;
  border-radius: 7px;
}

.admin-content {
  padding: 16px;
}

.admin-title {
  margin-bottom: 12px;
}

.admin-title h1 {
  font-size: 1.7rem;
}

.admin-title p {
  margin-top: 4px;
  font-size: 0.9rem;
}

.kpi-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.admin-card {
  padding: 13px;
}

.kpi-card .admin-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.kpi-card h3 {
  font-size: 0.76rem;
}

.kpi-card strong {
  margin-top: 8px;
  font-size: 1.08rem;
}

.kpi-card .delta {
  margin-top: 7px;
  font-size: 0.72rem;
}

.admin-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(330px, 0.75fr);
  gap: 10px;
  margin-top: 10px;
  align-items: start;
}

.admin-chart-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(310px, 0.72fr) minmax(270px, 0.58fr);
  gap: 10px;
  margin-top: 10px;
  align-items: start;
}

.table-panel {
  padding: 13px;
}

.panel-head {
  margin-bottom: 10px;
}

.panel-head h2 {
  font-size: 1rem;
}

.line-chart-svg {
  width: 100%;
  height: 210px;
  display: block;
}

.line-chart-svg .grid {
  stroke: #e6edf7;
  stroke-width: 1;
}

.line-chart-svg .axis-label {
  fill: #68768f;
  font-size: 11px;
  font-weight: 700;
}

.line-chart-svg .series-startup {
  fill: none;
  stroke: #2f6df6;
  stroke-width: 3;
}

.line-chart-svg .series-citizen {
  fill: none;
  stroke: #18a999;
  stroke-width: 3;
}

.line-chart-svg .series-hope {
  fill: none;
  stroke: #7d55d9;
  stroke-width: 3;
}

.line-chart-svg .series-dot-startup {
  fill: #2f6df6;
  stroke: #ffffff;
  stroke-width: 2;
}

.line-chart-svg .series-dot-citizen {
  fill: #18a999;
  stroke: #ffffff;
  stroke-width: 2;
}

.line-chart-svg .series-dot-hope {
  fill: #7d55d9;
  stroke: #ffffff;
  stroke-width: 2;
}

.donut {
  width: 184px;
  height: 184px;
  margin: 14px auto;
}

.donut::after {
  inset: 44px;
}

.activity-row {
  padding: 8px 0;
  font-size: 0.84rem;
}

.admin-table th,
.admin-table td {
  padding: 9px 10px;
  font-size: 0.82rem;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9999;
  max-width: min(420px, calc(100vw - 36px));
  padding: 13px 16px;
  border-radius: 8px;
  color: white;
  background: #0b4ea2;
  box-shadow: 0 16px 36px rgba(6, 24, 54, 0.24);
  font-weight: 900;
}

.toast.error {
  background: #c0392b;
}

.toast.warning {
  background: #c77a16;
}

.api-warning {
  position: sticky;
  top: 54px;
  z-index: 45;
  padding: 10px 18px;
  border-bottom: 1px solid #f3d28a;
  color: #5b3a05;
  background: #fff4d8;
  text-align: center;
  font-weight: 900;
}

.api-warning code {
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.68);
}

.dashboard-lower {
  align-items: start;
}

.admin-voucher-panel {
  display: grid;
  gap: 9px;
}

.admin-voucher-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto auto auto;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border: 1px solid #d8e4f3;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f9fcff);
}

.admin-voucher-row .program-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.admin-voucher-row h3 {
  margin: 0 0 3px;
  color: var(--navy);
  font-size: 0.95rem;
}

.admin-voucher-row p,
.admin-voucher-row strong {
  display: block;
  margin: 0;
  color: #5a6780;
  font-size: 0.76rem;
}

.admin-voucher-row strong {
  color: #0b4ea2;
}

.admin-voucher-row .btn {
  min-height: 30px;
  border-radius: 6px;
  padding: 0 12px;
  font-size: 0.76rem;
}

.admin-bottom-panels {
  margin-top: 10px;
}

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

.admin-banner-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.admin-banner-strip span {
  min-height: 54px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: white;
  background: linear-gradient(135deg, #0b5fc6, #0e9a9a);
  font-size: 0.78rem;
  font-weight: 900;
  text-align: center;
}

@media (max-width: 1180px) {
  .nav-menu {
    gap: 14px;
    font-size: 0.9rem;
  }

}

@media (max-width: 980px) {
  .container {
    width: min(100% - 28px, var(--max));
  }

  .mobile-toggle {
    display: inline-flex;
  }

  .nav-menu {
    position: fixed;
    left: 14px;
    right: 14px;
    top: 82px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: white;
    box-shadow: var(--shadow);
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-menu a {
    padding: 13px 10px;
  }

  .header-actions .btn-ghost {
    display: none;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .hero {
    min-height: auto;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .hero-media,
  .hero-media img {
    min-height: 390px;
  }

  .floating-brief {
    left: 18px;
  }

  .program-grid,
  .notice-grid,
  .product-grid,
  .dashboard-grid,
  .info-grid,
  .voucher-grid,
  .settings-grid,
  .split-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shortcut-group,
  .detail-layout,
  .form-layout,
  .login-shell,
  .admin-grid {
    grid-template-columns: 1fr;
  }

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

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

  .process-card::after {
    display: none;
  }

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

  .footer-brand {
    grid-column: 1 / -1;
  }

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

  .admin-sidebar {
    position: relative;
    height: auto;
  }

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

  .admin-topbar {
    position: relative;
    flex-wrap: wrap;
    height: auto;
    padding: 16px;
  }

  .admin-content {
    padding: 20px 14px;
  }
}

@media (max-width: 680px) {
  .header-inner {
    height: 68px;
  }

  .brand span:last-child {
    display: none;
  }

  .header-actions .btn-primary {
    display: none;
  }

  .hero-inner {
    padding: 42px 0;
  }

  .hero h1 {
    font-size: 2.12rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-stats,
  .program-grid,
  .notice-grid,
  .product-grid,
  .dashboard-grid,
  .info-grid,
  .voucher-grid,
  .settings-grid,
  .split-grid,
  .process-grid,
  .shortcut-grid,
  .form-grid,
  .check-grid,
  .kpi-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 64px 0;
  }

  .section-heading {
    display: block;
  }

  .section-heading h2,
  .page-hero h1,
  .admin-title h1 {
    font-size: 1.9rem;
  }

  .hero-media,
  .hero-media img {
    min-height: 320px;
  }

  .portal-home .container {
    width: min(100% - 28px, 1380px);
  }

  .portal-hero {
    min-height: 670px;
  }

  .portal-hero-bg {
    background:
      linear-gradient(90deg, rgba(4, 31, 76, 0.96) 0%, rgba(6, 45, 105, 0.72) 46%, rgba(6, 45, 105, 0.2) 100%),
      url("./assets/hanmiwon-portal-hero.png") 66% center / cover no-repeat;
  }

  .portal-hero-inner {
    min-height: 670px;
    align-items: flex-start;
    padding-top: 26px;
  }

  .portal-hero-copy {
    width: 100%;
  }

  .portal-hero h1 {
    font-size: 2.55rem;
  }

  .portal-hero p {
    max-width: 270px;
    font-size: 0.97rem;
    line-height: 1.7;
  }

  .portal-hero .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .portal-hero .btn {
    min-width: 210px;
    font-size: 0.9rem;
  }

  .portal-sponsor-layout,
  .portal-program-grid,
  .portal-shortcuts,
  .portal-process-row,
  .portal-bottom-row,
  .portal-process,
  .portal-mypage-body,
  .portal-news-list,
  .portal-partner-strip {
    grid-template-columns: 1fr;
  }

  .portal-sponsor-layout {
    gap: 8px;
  }

  .portal-round {
    display: none;
  }

  .portal-sponsor-cards {
    grid-auto-columns: minmax(230px, 1fr);
  }

  .portal-shortcut-panel.teal .portal-shortcut-grid,
  .portal-shortcut-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .floating-brief {
    position: relative;
    left: auto;
    bottom: auto;
    width: 100%;
    margin-top: -72px;
  }

  .footer-grid,
  .admin-menu {
    grid-template-columns: 1fr;
  }

  .market-toolbar,
  .admin-title {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-actions {
    flex-wrap: wrap;
  }
}
