:root {
  --theme-accent: #3477dc;
  --theme-accent-dark: #215dbb;
  --theme-accent-deep: #154eaa;
  --theme-accent-text: #275cae;
  --theme-accent-soft: #f1f6fc;
  --theme-accent-border: #c8d9f0;
  --theme-accent-shadow: rgba(34, 96, 189, 0.2);
  --theme-focus-ring: rgba(57, 119, 213, 0.13);
  --theme-page-glow: rgba(58, 115, 216, 0.12);
  color-scheme: light;
  font-family: Pretendard, "Noto Sans KR", "Malgun Gothic", sans-serif;
  color: #182339;
  background: #eef3f9;
  font-synthesis: none;
}

html.theme-v1-hyowontec-blue {
  --theme-accent: #3477dc;
  --theme-accent-dark: #215dbb;
  --theme-accent-deep: #154eaa;
  --theme-accent-text: #275cae;
  --theme-accent-soft: #f1f6fc;
  --theme-accent-border: #c8d9f0;
  --theme-accent-shadow: rgba(34, 96, 189, 0.2);
  --theme-focus-ring: rgba(57, 119, 213, 0.13);
  --theme-page-glow: rgba(58, 115, 216, 0.12);
}

html.theme-v1-navy {
  --theme-accent: #334f7c;
  --theme-accent-dark: #263e66;
  --theme-accent-deep: #182d4d;
  --theme-accent-text: #304f7d;
  --theme-accent-soft: #f0f4f9;
  --theme-accent-border: #c7d3e2;
  --theme-accent-shadow: rgba(38, 62, 102, 0.2);
  --theme-focus-ring: rgba(51, 79, 124, 0.14);
  --theme-page-glow: rgba(51, 79, 124, 0.13);
}

html.theme-v1-emerald {
  --theme-accent: #238267;
  --theme-accent-dark: #176b53;
  --theme-accent-deep: #0f513f;
  --theme-accent-text: #176b53;
  --theme-accent-soft: #edf8f4;
  --theme-accent-border: #bcded2;
  --theme-accent-shadow: rgba(23, 107, 83, 0.2);
  --theme-focus-ring: rgba(35, 130, 103, 0.14);
  --theme-page-glow: rgba(35, 130, 103, 0.13);
}

html.theme-v1-burgundy {
  --theme-accent: #9a4661;
  --theme-accent-dark: #7d304b;
  --theme-accent-deep: #612039;
  --theme-accent-text: #7d304b;
  --theme-accent-soft: #fbf1f4;
  --theme-accent-border: #e6c7d2;
  --theme-accent-shadow: rgba(125, 48, 75, 0.2);
  --theme-focus-ring: rgba(154, 70, 97, 0.14);
  --theme-page-glow: rgba(154, 70, 97, 0.13);
}

* {
  box-sizing: border-box;
}

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

body {
  background:
    radial-gradient(circle at 50% 0%, var(--theme-page-glow), transparent 31rem),
    #eef3f9;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.shell {
  width: min(100% - 32px, 680px);
  margin: 0 auto;
  padding: 28px 0 32px;
}

.brand-bar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  margin-bottom: 22px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(145deg, var(--theme-accent), var(--theme-accent-deep));
  box-shadow: 0 9px 20px var(--theme-accent-shadow);
  font-size: 21px;
  font-weight: 800;
}

.brand-bar h1,
.card h2,
.notice h2,
.result-card h2 {
  margin: 0;
}

.brand-bar h1 {
  margin-top: 2px;
  font-size: 21px;
  letter-spacing: -0.04em;
}

.eyebrow,
.step-label {
  margin: 0;
  color: var(--theme-accent-text);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.secure-badge,
.state-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.secure-badge {
  padding: 8px 11px;
  color: #186641;
  background: #e3f5ec;
}

.secure-badge span {
  font-size: 8px;
}

.notice,
.card {
  border: 1px solid rgba(108, 134, 172, 0.19);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 13px 38px rgba(40, 67, 105, 0.09);
}

.notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  padding: 16px 18px;
  border-color: #c9dfd5;
  background: #f4fbf8;
}

.notice-icon {
  display: grid;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #25845c;
  font-weight: 800;
}

.notice h2 {
  color: #205841;
  font-size: 14px;
  letter-spacing: -0.02em;
}

.notice p {
  margin: 5px 0 0;
  color: #4c6e60;
  font-size: 12px;
  line-height: 1.55;
}

.card {
  margin-top: 14px;
  padding: 23px;
}

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

.card h2 {
  margin-top: 5px;
  font-size: 18px;
  line-height: 1.4;
  letter-spacing: -0.035em;
}

.state-chip {
  padding: 7px 10px;
}

.state-chip.pending {
  color: #6b5a1a;
  background: #fff4cf;
}

.state-chip.verified {
  color: #17633e;
  background: #e1f5ea;
}

.state-chip.error {
  color: #9b2d2d;
  background: #fee9e9;
}

.service-registration-ui {
  margin-top: 18px;
  border: 1px solid var(--theme-accent-border);
  border-radius: 13px;
  padding: 14px;
  background: var(--theme-accent-soft);
}

.service-registration-ui h3 {
  margin: 0;
  color: var(--theme-accent-text);
  font-size: 12px;
  font-weight: 800;
}

.service-registration-ui p {
  margin: 6px 0 0;
  color: #42526a;
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere;
  white-space: normal;
}

.service-details {
  margin: 19px 0 0;
  overflow: hidden;
  border: 1px solid #e3e9f1;
  border-radius: 13px;
  background: #f8fafc;
}

.service-details > div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 12px;
  padding: 11px 14px;
}

.service-details > div + div {
  border-top: 1px solid #e3e9f1;
}

.service-details dt {
  color: #6b7890;
  font-size: 12px;
  font-weight: 700;
}

.service-details dd {
  min-width: 0;
  margin: 0;
  color: #263650;
  font-size: 12px;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.advanced-security-details {
  margin-top: 10px;
  overflow: hidden;
  border: 1px solid #e3e9f1;
  border-radius: 13px;
  background: #f8fafc;
}

.advanced-security-details summary {
  padding: 11px 14px;
  color: #52647d;
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
}

.advanced-security-details summary::marker {
  color: #71839c;
}

.advanced-security-details summary:focus-visible {
  outline: 3px solid #1f4f91;
  outline-offset: -3px;
}

.advanced-security-details[open] summary {
  border-bottom: 1px solid #e3e9f1;
}

.advanced-security-values {
  margin: 0;
  padding: 12px 14px 14px;
}

.advanced-security-values > div {
  display: grid;
  gap: 7px;
}

.advanced-security-values dt {
  color: #6b7890;
  font-size: 12px;
  font-weight: 700;
}

.advanced-security-values dd {
  min-width: 0;
  margin: 0;
  font-size: 12px;
  font-weight: 650;
}

.monospace {
  font-family: Consolas, "SFMono-Regular", monospace;
  letter-spacing: -0.01em;
}

.fingerprint {
  color: #466180 !important;
  overflow-wrap: anywhere;
}

.field-grid {
  display: grid;
  gap: 17px;
  margin-top: 21px;
}

.file-field,
.password-field {
  display: grid;
  gap: 8px;
}

.field-title {
  color: #2b3950;
  font-size: 13px;
  font-weight: 750;
}

.file-field input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.file-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 47px;
  overflow: hidden;
  border: 1px solid #ced8e7;
  border-radius: 11px;
  background: #fff;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.file-field:focus-within .file-control,
.password-control:focus-within {
  border-color: var(--theme-accent);
  box-shadow: 0 0 0 3px var(--theme-focus-ring);
}

.file-name {
  min-width: 0;
  padding: 0 13px;
  overflow: hidden;
  color: #6b7890;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-button {
  align-self: stretch;
  display: grid;
  place-items: center;
  padding: 0 16px;
  color: var(--theme-accent-text);
  border-left: 1px solid #dce4ef;
  background: var(--theme-accent-soft);
  font-size: 12px;
  font-weight: 750;
}

.field-help {
  color: #758197;
  font-size: 11px;
  line-height: 1.5;
}

.password-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 47px;
  overflow: hidden;
  border: 1px solid #ced8e7;
  border-radius: 11px;
  background: #fff;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.password-control input {
  min-width: 0;
  padding: 0 13px;
  border: 0;
  outline: 0;
  color: #182339;
  background: transparent;
}

.text-button {
  padding: 0 15px;
  border: 0;
  color: var(--theme-accent-text);
  background: transparent;
  font-size: 12px;
  font-weight: 750;
}

.confirm-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 21px;
  padding: 13px;
  border-radius: 11px;
  color: #3e4d64;
  background: #f4f7fb;
  font-size: 12px;
  line-height: 1.55;
}

.confirm-row input {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin: 1px 0 0;
  accent-color: var(--theme-accent);
}

.form-message {
  min-height: 19px;
  margin: 13px 0 0;
  color: #b23434;
  font-size: 12px;
  line-height: 1.55;
}

.actions {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 10px;
  margin-top: 3px;
}

.primary-button,
.secondary-button {
  min-height: 47px;
  padding: 0 17px;
  border-radius: 11px;
  font-weight: 750;
}

.primary-button {
  border: 1px solid var(--theme-accent-dark);
  color: #fff;
  background: linear-gradient(180deg, var(--theme-accent), var(--theme-accent-dark));
  box-shadow: 0 8px 19px var(--theme-accent-shadow);
}

.secondary-button {
  border: 1px solid #ccd7e5;
  color: #4b5a70;
  background: #fff;
}

.result-card {
  text-align: center;
}

.result-icon {
  display: grid;
  width: 52px;
  height: 52px;
  margin: 1px auto 14px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #27875e;
  font-size: 24px;
  font-weight: 800;
}

.result-icon.error {
  background: #b53b3b;
}

.result-card p {
  margin: 10px auto 18px;
  color: #657289;
  font-size: 13px;
  line-height: 1.65;
}

.result-card .secondary-button {
  width: 150px;
}

footer {
  padding: 18px 6px 0;
  color: #6f7c91;
  font-size: 11px;
  line-height: 1.55;
  text-align: center;
}

footer p {
  margin: 0;
}

.footer-mark {
  margin-top: 6px;
  color: #8a96a8;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.04em;
}

noscript {
  display: block;
  padding: 20px;
  color: #8f2929;
  text-align: center;
}

[hidden] {
  display: none !important;
}

@media (max-width: 560px) {
  .shell {
    width: min(100% - 20px, 680px);
    padding-top: 17px;
  }

  .brand-bar {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .secure-badge {
    display: none;
  }

  .card,
  .notice {
    border-radius: 14px;
  }

  .card {
    padding: 19px 16px;
  }

  .card-heading {
    display: grid;
  }

  .state-chip {
    justify-self: start;
  }

  .service-details > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .actions {
    grid-template-columns: 1fr;
  }

  .primary-button {
    grid-row: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
