:root {
  --magenta: #cf0f72;
  --magenta-dark: #8e0f57;
  --line: #c8ccd2;
  --line-strong: #d7dbe0;
  --text: #2f3440;
  --muted: #7d8490;
  --bg: #f7f7f7;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Noto Sans KR", sans-serif;
  color: var(--text);
  background: #f7f7f7;
}

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

button,
input {
  font: inherit;
}

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

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px 20px 26px;
}

.page-topline {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--magenta);
}

.shell {
  width: min(100%, 450px);
  margin: 0 auto;
}

.brand-image {
  width: 276px;
  max-width: 100%;
  height: auto;
}

.login-panel {
  border: 1px solid #e2e2e2;
  background: rgba(255, 255, 255, 0.99);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
  padding: 14px 29px 24px;
}

.panel-header {
  display: grid;
  gap: 14px;
}

.lang-switch {
  justify-self: end;
  display: inline-flex;
  border: 1px solid var(--line);
  background: #fff;
}

.lang-chip {
  min-width: 47px;
  padding: 6px 10px;
  text-align: center;
  font-size: 0.84rem;
  color: #7b7f86;
}

.lang-chip + .lang-chip {
  border-left: 1px solid var(--line);
}

.lang-chip.is-active {
  background: var(--magenta);
  color: #fff;
  font-weight: 700;
}

.hero-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 2px 0 8px;
}

.title-lockup {
  text-align: center;
}

.login-panel h1 {
  margin: 6px 0 6px;
  color: var(--magenta);
  font-size: 2rem;
  font-weight: 700;
}

.panel-subtitle {
  margin: 0 0 18px;
  color: #323947;
  font-size: 0.84rem;
}

.panel-subtitle-strong {
  font-size: 0.98rem;
  font-weight: 700;
}

.login-form {
  display: grid;
  gap: 10px;
}

.field input {
  width: 100%;
  height: 39px;
  padding: 0 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  font-size: 0.94rem;
}

.field input:focus {
  outline: none;
  border-color: #9aa2ad;
}

.login-button {
  height: 51px;
  border: 0;
  background: var(--magenta);
  color: var(--white);
  font-weight: 700;
  cursor: pointer;
  font-size: 1rem;
  letter-spacing: 0.02em;
  margin-top: 16px;
}

.login-button:hover {
  background: #be1069;
}

.utility-row {
  display: block;
  margin-top: -4px;
  color: var(--muted);
  font-size: 0.79rem;
}

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

.checkline input {
  width: 18px;
  height: 18px;
  margin: 0;
}

.bottom-links {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid #dddddd;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.icon-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #222;
  font-size: 0.78rem;
  white-space: nowrap;
}

.icon-circle {
  position: relative;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background: #bdbdbd;
  flex: 0 0 auto;
}

.user-plus::before,
.user-plus::after,
.lock-icon::before,
.lock-icon::after,
.shield-icon::before,
.shield-icon::after {
  content: "";
  position: absolute;
}

.user-plus::before {
  width: 10px;
  height: 10px;
  border: 1.8px solid #fff;
  border-radius: 50%;
  top: 6px;
  left: 9px;
}

.user-plus::after {
  width: 12px;
  height: 7px;
  border: 1.8px solid #fff;
  border-top: 0;
  border-radius: 0 0 8px 8px;
  bottom: 6px;
  left: 8px;
}

.lock-icon::before {
  width: 10px;
  height: 8px;
  border: 1.8px solid #fff;
  border-radius: 2px;
  left: 10px;
  top: 13px;
}

.lock-icon::after {
  width: 8px;
  height: 7px;
  border: 1.8px solid #fff;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  left: 11px;
  top: 7px;
}

.shield-icon::before {
  width: 12px;
  height: 14px;
  border: 1.8px solid #fff;
  border-radius: 7px 7px 10px 10px;
  left: 9px;
  top: 7px;
}

.shield-icon::after {
  width: 2px;
  height: 8px;
  background: #fff;
  left: 15px;
  top: 10px;
  box-shadow: -3px 3px 0 0 #fff, 3px 3px 0 0 #fff;
}

.footer {
  width: min(100%, 450px);
  margin: 16px auto 0;
  text-align: center;
  color: #6e7279;
  font-size: 0.73rem;
  line-height: 1.5;
}

.footer p {
  margin: 0;
}

.login-message {
  min-height: 1.2em;
  margin: 2px 0 0;
  color: var(--magenta);
  font-size: 0.78rem;
}

.is-hidden {
  display: none;
}

.dashboard-page {
  min-height: 100vh;
  padding: 24px 28px 40px;
  background: linear-gradient(180deg, #ffffff 0%, #f6f8fc 100%);
}

.app-shell {
  max-width: 1240px;
  margin: 0 auto;
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.app-brand {
  display: flex;
  align-items: center;
  gap: 18px;
}

.app-brand-image {
  width: 220px;
  max-width: 100%;
  height: auto;
}

.app-brand-copy {
  display: grid;
  gap: 4px;
}

.app-brand-title {
  margin: 0;
  color: #173f7d;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.app-brand-subtitle {
  margin: 0;
  color: #6d7b90;
  font-size: 0.92rem;
}

.ghost-button {
  height: 42px;
  padding: 0 18px;
  border: 1px solid #d3dbe7;
  border-radius: 999px;
  background: #fff;
  color: #173f7d;
  font-weight: 700;
  cursor: pointer;
}

.app-nav {
  min-height: 62px;
  margin-bottom: 22px;
  padding: 0 26px;
  border-radius: 18px;
  background: linear-gradient(90deg, #c90f71 0%, #173f7d 100%);
  box-shadow: 0 14px 28px rgba(23, 63, 125, 0.18);
  display: flex;
  align-items: center;
  gap: 40px;
  color: #fff;
  font-weight: 700;
}

.app-nav a {
  color: inherit;
  font-size: 0.98rem;
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 360px);
  gap: 22px;
  margin-bottom: 22px;
  padding: 24px 26px;
  border: 1px solid #d8e0ec;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 18px 34px rgba(15, 40, 85, 0.08);
}

.hero-kicker {
  margin: 0 0 8px;
  color: var(--magenta);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.hero-copy h2 {
  margin: 0;
  color: #173f7d;
  font-size: 2rem;
  line-height: 1.2;
}

.hero-copy p:last-child {
  margin: 14px 0 0;
  color: #5d6c82;
  font-size: 0.95rem;
  line-height: 1.7;
}

.hero-actions {
  display: grid;
  gap: 12px;
  align-content: center;
}

.mode-button {
  min-height: 60px;
  padding: 0 18px;
  border: 1px solid #d6ddea;
  border-radius: 18px;
  background: #fff;
  color: #173f7d;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
}

.mode-button.is-active {
  border-color: transparent;
  background: linear-gradient(135deg, rgba(201, 15, 113, 0.12), rgba(23, 63, 125, 0.12));
  box-shadow: inset 0 0 0 2px rgba(201, 15, 113, 0.28);
}

.status-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 22px;
}

.status-card {
  padding: 20px 18px;
  border-radius: 22px;
  border: 1px solid #d8e0ec;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 18px 34px rgba(15, 40, 85, 0.08);
  display: grid;
  gap: 8px;
}

.status-card-profile {
  grid-template-columns: 72px 1fr;
  align-items: center;
}

.avatar-badge {
  width: 72px;
  height: 72px;
  border-radius: 24px;
  background: linear-gradient(135deg, #c90f71, #173f7d);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  font-weight: 700;
}

.status-copy h3,
.status-copy p {
  margin: 0;
}

.status-label {
  margin: 0;
  color: #6f7e92;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.status-card strong {
  color: #173f7d;
  font-size: 1.7rem;
  line-height: 1.1;
}

.status-card span,
.status-copy p {
  color: #5f6e82;
  font-size: 0.9rem;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.8fr);
  gap: 22px;
}

.board-panel,
.detail-panel,
.market-panel {
  padding: 22px 22px 18px;
  border-radius: 24px;
  border: 1px solid #dae2ee;
  background: #ffffff;
  box-shadow: 0 18px 34px rgba(15, 40, 85, 0.08);
}

.side-panel {
  display: grid;
  gap: 18px;
}

.panel-titlebar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 2px solid #eef2f7;
}

.panel-titlebar-compact {
  margin-bottom: 12px;
}

.panel-kicker {
  margin: 0 0 6px;
  color: var(--magenta);
  font-size: 0.83rem;
  font-weight: 700;
}

.panel-titlebar h3 {
  margin: 0;
  color: #173f7d;
  font-size: 1.45rem;
}

.progress-chip {
  min-width: 104px;
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(23, 63, 125, 0.08);
  color: #173f7d;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.86rem;
  font-weight: 700;
}

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

.step-item + .step-item {
  margin-top: 12px;
}

.step-button {
  width: 100%;
  border: 1px solid #dce3ee;
  border-radius: 20px;
  background: #fbfcfe;
  padding: 16px 18px;
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 14px;
  text-align: left;
  cursor: pointer;
}

.step-item.is-active .step-button {
  background: linear-gradient(135deg, rgba(201, 15, 113, 0.08), rgba(23, 63, 125, 0.08));
  border-color: rgba(201, 15, 113, 0.28);
}

.step-item.is-complete .step-button {
  border-color: rgba(23, 63, 125, 0.2);
}

.step-index {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: #173f7d;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.92rem;
  font-weight: 700;
}

.step-item.is-complete .step-index {
  background: var(--magenta);
}

.step-text strong {
  display: block;
  color: #1d2635;
  font-size: 0.98rem;
  line-height: 1.45;
}

.step-text small {
  display: block;
  margin-top: 6px;
  color: #617086;
  font-size: 0.85rem;
  line-height: 1.6;
}

.detail-text {
  margin: 0 0 18px;
  color: #5f6e82;
  font-size: 0.93rem;
  line-height: 1.75;
}

.primary-action {
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(90deg, #c90f71 0%, #173f7d 100%);
  color: #fff;
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
}

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

.market-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed #d4dce8;
  font-size: 0.9rem;
}

.market-list strong {
  color: #173f7d;
  font-weight: 700;
}

@media (max-width: 1100px) {
  .hero-panel,
  .status-grid,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .status-card-profile {
    grid-template-columns: 72px 1fr;
  }
}

@media (max-width: 640px) {
  .page {
    padding: 26px 14px 22px;
  }

  .login-panel {
    padding: 14px 18px 22px;
  }

  .hero-brand {
    gap: 10px;
  }

  .brand-image {
    width: 232px;
  }

  .bottom-links {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-page {
    padding: 14px 14px 30px;
  }

  .app-header {
    margin: 0 0 10px;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .app-brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .app-brand-image {
    width: 180px;
  }

  .app-nav {
    margin: 0 0 14px;
    gap: 18px;
    padding: 0 14px;
    overflow-x: auto;
  }

  .hero-panel,
  .board-panel,
  .detail-panel,
  .market-panel {
    padding: 18px 16px;
  }
}
