.hg-shell {
  --hg-ink: #18313a;
  --hg-muted: #5f747a;
  --hg-line: #dce8eb;
  --hg-sea: #2f8193;
  --hg-sea-dark: #226574;
  --hg-sea-soft: #e9f4f6;
  --hg-sand: #f7f4ee;
  --hg-danger: #a64040;
  max-width: 1080px;
  margin: 2rem auto;
  color: var(--hg-ink);
  font-family: inherit;
}

.hg-shell *, .hg-shell *::before, .hg-shell *::after { box-sizing: border-box; }
.hg-shell h2, .hg-shell h3, .hg-shell h4 { color: var(--hg-ink); line-height: 1.15; margin-top: 0; }
.hg-shell h2 { font-size: clamp(2rem, 4vw, 3.4rem); margin-bottom: .65rem; }
.hg-shell h3 { font-size: clamp(1.35rem, 2vw, 2rem); margin-bottom: .55rem; }
.hg-shell h4 { font-size: 1.12rem; margin-bottom: .45rem; }
.hg-shell p { color: var(--hg-muted); line-height: 1.65; }
.hg-shell a { color: var(--hg-sea-dark); }

.hg-eyebrow {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .74rem;
  font-weight: 800;
  color: var(--hg-sea-dark) !important;
  margin: 0 0 .55rem;
}

.hg-card {
  background: #fff;
  border: 1px solid var(--hg-line);
  border-radius: 22px;
  padding: clamp(1.35rem, 3vw, 2.25rem);
  box-shadow: 0 18px 45px rgba(30, 72, 82, .08);
}
.hg-card--center { text-align: center; }
.hg-card--soft { background: #fbfdfd; box-shadow: none; }

.hg-auth { max-width: 650px; }
.hg-auth-switch { margin-top: 1.15rem; }

.hg-form { display: grid; gap: 1rem; margin-top: 1.4rem; }
.hg-form label { display: grid; gap: .42rem; font-weight: 700; color: var(--hg-ink); }
.hg-form input[type="text"],
.hg-form input[type="email"],
.hg-form input[type="password"] {
  width: 100%;
  border: 1px solid #c9dadd;
  border-radius: 12px;
  padding: .82rem .9rem;
  font: inherit;
  background: #fff;
  color: var(--hg-ink);
}
.hg-form input:focus { outline: 3px solid rgba(47,129,147,.15); border-color: var(--hg-sea); }
.hg-check { display: flex !important; align-items: flex-start; gap: .65rem !important; font-weight: 400 !important; line-height: 1.5; }
.hg-check input { margin-top: .22rem; }

.hg-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  border: 0;
  border-radius: 999px;
  padding: .76rem 1.15rem;
  background: var(--hg-sea-dark);
  color: #fff !important;
  font: inherit;
  font-weight: 800;
  text-decoration: none !important;
  cursor: pointer;
  transition: transform .15s ease, opacity .15s ease;
}
.hg-button:hover { transform: translateY(-1px); opacity: .94; }
.hg-button--small { padding: .6rem .95rem; font-size: .92rem; }
.hg-button--ghost { background: transparent; color: var(--hg-sea-dark) !important; border: 1px solid #aacbd1; }
.hg-button--danger { background: var(--hg-danger); }
.hg-button--danger-ghost { background: #fff; color: var(--hg-danger) !important; border: 1px solid #d9aaaa; }
.hg-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.15rem; }
.hg-card--center .hg-actions { justify-content: center; }

.hg-notice { border-radius: 14px; padding: .85rem 1rem; margin: 0 0 1rem; font-weight: 700; }
.hg-notice--success { background: #edf7f1; border: 1px solid #badbc6; color: #235f3d; }
.hg-notice--error { background: #fff0f0; border: 1px solid #e7bcbc; color: #873535; }
.hg-notice--info { background: #eef6f8; border: 1px solid #bfd9df; color: #2d6571; }

.hg-dashboard-head,
.hg-section-head {
  display: flex;
  justify-content: space-between;
  gap: 1.2rem;
  align-items: flex-start;
}
.hg-dashboard-head { margin-bottom: 1.3rem; }
.hg-dashboard-head p { max-width: 720px; margin-bottom: 0; }

.hg-wave-stage {
  position: relative;
  overflow: hidden;
  min-height: 410px;
  border-radius: 30px;
  border: 1px solid #cfe2e6;
  background: linear-gradient(180deg, #f8fcfd 0%, #ecf6f8 58%, #d8edf1 100%);
  isolation: isolate;
}
.hg-wave-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 72% 20%, rgba(255,255,255,.95) 0 9%, transparent 10%);
  z-index: -3;
}
.hg-wave {
  position: absolute;
  left: -8%;
  width: 116%;
  height: 52%;
  border-radius: 48% 52% 0 0 / 70% 70% 0 0;
  transform: rotate(-2deg);
  z-index: -1;
}
.hg-wave--back { bottom: 20%; background: rgba(98, 173, 188, .24); transform: rotate(2deg) scaleX(1.04); }
.hg-wave--mid { bottom: 6%; background: rgba(47, 129, 147, .38); transform: rotate(-4deg) scaleX(1.08); }
.hg-wave--front { bottom: -18%; background: rgba(34, 101, 116, .88); transform: rotate(3deg) scaleX(1.12); }
.hg-wave-copy {
  position: absolute;
  left: clamp(1.3rem, 5vw, 4rem);
  top: clamp(1.6rem, 5vw, 4rem);
  max-width: 560px;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(255,255,255,.9);
  backdrop-filter: blur(7px);
  border-radius: 22px;
  padding: 1.3rem 1.45rem;
  box-shadow: 0 18px 50px rgba(30,72,82,.08);
}
.hg-wave-copy p { margin-bottom: 0; }
.hg-status {
  display: inline-flex;
  border-radius: 999px;
  background: var(--hg-sea-soft);
  color: var(--hg-sea-dark);
  padding: .34rem .65rem;
  font-size: .78rem;
  font-weight: 800;
  margin-bottom: .75rem;
}

.hg-section { margin-top: 2.2rem; }
.hg-section-head { margin-bottom: 1rem; align-items: center; }
.hg-section-head h3 { margin-bottom: 0; }

.hg-test-empty,
.hg-test-card {
  border: 1px dashed #b7d2d8;
  border-radius: 20px;
  padding: 1.35rem;
  background: #fbfdfd;
}
.hg-test-empty p, .hg-test-card p { margin-bottom: 0; }
.hg-test-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.hg-test-card .hg-button { margin-top: .8rem; }

.hg-result-list { border: 1px solid var(--hg-line); border-radius: 18px; overflow: hidden; background: #fff; }
.hg-result-row { display: flex; justify-content: space-between; gap: 1rem; padding: .9rem 1rem; border-bottom: 1px solid var(--hg-line); }
.hg-result-row:last-child { border-bottom: 0; }
.hg-result-row span { color: var(--hg-muted); }

.hg-account-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.hg-account .hg-card p { margin-bottom: 1rem; }
.hg-privacy { max-width: 820px; }
.hg-privacy h3 { margin-top: 1.7rem; }

@media (max-width: 700px) {
  .hg-shell { margin: 1rem auto; }
  .hg-dashboard-head, .hg-section-head { flex-direction: column; align-items: stretch; }
  .hg-account-grid { grid-template-columns: 1fr; }
  .hg-wave-stage { min-height: 470px; }
  .hg-wave-copy { right: 1rem; left: 1rem; top: 1rem; }
  .hg-result-row { flex-direction: column; gap: .2rem; }
  .hg-button { width: 100%; }
  .hg-actions { flex-direction: column; }
}
