:root {
    --hg-ink: #111827;
    --hg-copy: #526276;
    --hg-muted: #74859a;
    --hg-line: #d8e3ef;
    --hg-surface: #ffffff;
    --hg-soft: #f4f8fc;
    --hg-primary: #2563eb;
    --hg-primary-strong: #1d4ed8;
    --hg-accent: #10856b;
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
}

.hg-home-copy h1 {
    max-width: 620px;
    font-size: 68px;
    line-height: 1.02;
}

.hg-home-copy .cd-lead {
    margin-top: 18px;
    font-size: 22px;
}

.hg-home-copy .cd-description {
    max-width: 56ch;
}

.hg-home-actions {
    align-items: stretch;
}

.hg-home-actions .cd-primary,
.hg-home-actions .cd-secondary {
    min-height: 50px;
}

.hg-web-cta {
    color: #23466b;
    border-color: rgba(64, 100, 138, .5);
    background: rgba(255, 255, 255, .82);
}

.hg-web-primary {
    color: #ffffff;
    border-color: var(--hg-primary);
    background: var(--hg-primary);
}

.hg-web-assurance {
    display: flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    margin-top: 14px;
    color: #476078;
    font-size: 12px;
    font-weight: 800;
}

.hg-web-assurance i {
    color: var(--hg-accent);
}

.hg-next-cue {
    text-decoration: none;
}

.hg-nav-actions {
    margin-right: 50px;
}

.hg-nav-actions .hg-nav-web {
    color: #0c6c57;
    border-color: rgba(16, 133, 107, .5);
    background: rgba(234, 248, 244, .9);
    box-shadow: 0 8px 18px rgba(16, 133, 107, .1);
}

.hg-nav-actions .hg-nav-web:hover,
.hg-nav-actions .hg-nav-web:focus-visible {
    color: #075843;
    border-color: rgba(16, 133, 107, .72);
    background: #f2fbf8;
}

.hg-nav-actions .hg-nav-register {
    color: #ffffff;
    border-color: #2867d8;
    background: #2f6fea;
    box-shadow: 0 8px 18px rgba(47, 111, 234, .18);
}

.hg-nav-actions .hg-nav-register:hover,
.hg-nav-actions .hg-nav-register:focus-visible {
    color: #ffffff;
    border-color: #1f59bd;
    background: #255fcf;
}

.is-client-runtime .hg-nav-client {
    display: none;
}

.hg-free-badge {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 18px;
    padding: 1px 6px;
    border: 1px solid rgba(16, 133, 107, .34);
    border-radius: 5px;
    color: #08715b;
    background: #dff7ef;
    font-size: 9px;
    font-style: normal;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

.hg-web-band {
    border-top: 1px solid var(--hg-line);
    border-bottom: 1px solid var(--hg-line);
    background: #f6f9fd;
}

.hg-web-band-inner {
    width: min(1320px, calc(100% - 48px));
    min-height: 178px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hg-web-band-inner > div > span {
    color: var(--hg-accent);
    font-size: 12px;
    font-weight: 900;
}

.hg-web-band h2 {
    margin: 7px 0 0;
    color: var(--hg-ink);
    font-size: 25px;
    line-height: 1.3;
    letter-spacing: 0;
}

.hg-web-band p {
    margin: 7px 0 0;
    color: var(--hg-copy);
    font-size: 13px;
    line-height: 1.7;
}

.hg-web-band-inner > a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    flex: 0 0 auto;
    padding: 0 17px;
    border: 1px solid #9fb5cc;
    border-radius: 7px;
    color: #24435f;
    background: #ffffff;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
    transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease, transform 180ms cubic-bezier(.16, 1, .3, 1);
}

.hg-web-band-inner > a:hover,
.hg-web-band-inner > a:focus-visible {
    color: #174cae;
    border-color: #6f99d3;
    background: #f9fbff;
    transform: translateY(-1px);
    outline: 0;
}

.hg-footer {
    min-height: 66px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 18px;
    padding: 16px 24px;
    color: #7a899b;
    background: #ffffff;
    font-size: 11px;
}

.hg-footer a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: inherit;
    text-decoration: none;
}

.hg-footer img {
    width: 14px;
    height: 14px;
}

body.hg-login-open {
    overflow: hidden;
}

.hg-login-backdrop {
    position: fixed;
    inset: 0;
    z-index: 10020;
    visibility: hidden;
    opacity: 0;
    background: rgba(7, 16, 30, .52);
    backdrop-filter: blur(4px);
    transition: opacity 260ms ease, visibility 260ms ease;
}

.hg-login-panel {
    width: min(430px, 100%);
    height: 100dvh;
    position: fixed;
    top: 0;
    right: 0;
    z-index: 10030;
    visibility: hidden;
    overflow-y: auto;
    border-left: 1px solid var(--hg-line);
    background: var(--hg-surface);
    box-shadow: -22px 0 52px rgba(16, 37, 65, .2);
    opacity: 0;
    transform: translate3d(100%, 0, 0);
    transition: transform 360ms cubic-bezier(.16, 1, .3, 1), opacity 220ms ease, visibility 360ms ease;
}

body.hg-login-open .hg-login-backdrop,
body.hg-login-open .hg-login-panel {
    visibility: visible;
    opacity: 1;
}

body.hg-login-open .hg-login-panel {
    transform: translate3d(0, 0, 0);
}

.hg-login-shell {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 42px 38px;
}

.hg-login-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
}

.hg-login-head > div > span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--hg-accent);
    font-size: 12px;
    font-weight: 900;
}

.hg-login-head h2 {
    margin: 9px 0 0;
    color: var(--hg-ink);
    font-size: 26px;
    line-height: 1.3;
    letter-spacing: 0;
}

.hg-login-head p {
    margin: 8px 0 0;
    color: var(--hg-copy);
    font-size: 13px;
    line-height: 1.65;
}

.hg-login-close {
    width: 36px;
    height: 36px;
    display: grid;
    flex: 0 0 36px;
    place-items: center;
    border: 1px solid var(--hg-line);
    border-radius: 7px;
    color: #60758b;
    background: var(--hg-soft);
    cursor: pointer;
}

.hg-login-close:hover,
.hg-login-close:focus-visible {
    color: var(--hg-primary);
    border-color: #9db8db;
    outline: 0;
}

.hg-field {
    display: grid;
    gap: 7px;
    margin-top: 17px;
    color: #344a62;
    font-size: 12px;
    font-weight: 900;
}

.hg-field:first-child {
    margin-top: 0;
}

.hg-input-wrap {
    min-height: 46px;
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    padding: 0 13px;
    border: 1px solid #cbd8e6;
    border-radius: 7px;
    background: #ffffff;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.hg-input-wrap.has-toggle {
    grid-template-columns: 20px minmax(0, 1fr) auto;
}

.hg-input-wrap:focus-within {
    border-color: #6c9cec;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

.hg-input-wrap > i {
    color: #8294a8;
}

.hg-input-wrap input {
    min-width: 0;
    width: 100%;
    height: 44px;
    padding: 0;
    border: 0;
    outline: 0;
    color: var(--hg-ink);
    background: transparent;
    font-size: 14px;
}

.hg-input-wrap input::placeholder {
    color: #98a6b7;
}

.hg-password-toggle {
    min-width: 42px;
    height: 30px;
    padding: 0 7px;
    border: 0;
    border-radius: 5px;
    color: #48647f;
    background: #edf3f9;
    font-size: 11px;
    font-weight: 900;
    cursor: pointer;
}

.hg-login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 16px;
    font-size: 12px;
}

.hg-login-options label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #5f7288;
    cursor: pointer;
}

.hg-login-options input {
    width: 15px;
    height: 15px;
    accent-color: var(--hg-primary);
}

.hg-login-options a {
    color: #245fbc;
    font-weight: 800;
    text-decoration: none;
}

.hg-login-submit {
    width: 100%;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 22px;
    border: 1px solid var(--hg-primary);
    border-radius: 7px;
    color: #ffffff;
    background: var(--hg-primary);
    box-shadow: 0 14px 28px rgba(37, 99, 235, .2);
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
    transition: transform 180ms cubic-bezier(.16, 1, .3, 1), background-color 180ms ease, box-shadow 180ms ease;
}

.hg-login-submit:hover,
.hg-login-submit:focus-visible {
    background: var(--hg-primary-strong);
    transform: translateY(-1px);
    box-shadow: 0 18px 32px rgba(37, 99, 235, .26);
    outline: 0;
}

.hg-login-submit:disabled {
    opacity: .62;
    cursor: wait;
    transform: none;
}

.hg-login-tip {
    display: none;
    margin-top: 12px;
    padding: 10px 11px;
    border: 1px solid #f1c3bf;
    border-radius: 7px;
    color: #a7382f;
    background: #fff5f4;
    font-size: 12px;
    line-height: 1.55;
}

.hg-login-tip.is-visible {
    display: block;
}

.hg-login-tip.is-success {
    border-color: #a9dac4;
    color: #126547;
    background: #f0fbf6;
}

.hg-login-tip a {
    color: inherit;
    font-weight: 900;
}

.hg-login-tools {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--hg-line);
}

.hg-login-tools > span {
    display: block;
    margin-bottom: 9px;
    color: var(--hg-muted);
    font-size: 11px;
    font-weight: 800;
}

.hg-login-tools > a {
    min-height: 44px;
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    padding: 0 12px;
    border: 1px solid var(--hg-line);
    border-radius: 7px;
    color: #334c66;
    background: var(--hg-soft);
    font-size: 12px;
    text-decoration: none;
}

.hg-login-tools > a > i:first-child {
    color: var(--hg-primary);
}

.hg-mobile-page {
    display: none;
}

body.hg-mobile {
    color: var(--hg-ink);
    background: #f5f8fc;
}

.hg-mobile .hg-mobile-page {
    display: block;
}

.hg-mobile-nav {
    min-height: 66px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px max(70px, calc(env(safe-area-inset-right) + 52px)) 10px max(18px, env(safe-area-inset-left));
    border-bottom: 1px solid var(--hg-line);
    background: rgba(255, 255, 255, .94);
}

.hg-mobile-brand {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--hg-ink);
    text-decoration: none;
}

.hg-mobile-brand img {
    width: 38px;
    height: 38px;
    border: 1px solid #d3dfeb;
    border-radius: 7px;
}

.hg-mobile-brand strong,
.hg-mobile-brand small {
    display: block;
}

.hg-mobile-brand strong {
    overflow: hidden;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hg-mobile-brand small {
    margin-top: 2px;
    color: var(--hg-accent);
    font-size: 9px;
    font-weight: 900;
}

.hg-mobile-register {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 11px;
    border: 1px solid #cbd8e6;
    border-radius: 7px;
    color: #38536d;
    background: #ffffff;
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
}

.hg-mobile-intro {
    padding: 42px max(20px, env(safe-area-inset-right)) 34px max(20px, env(safe-area-inset-left));
    background: #ffffff;
}

.hg-mobile-mode {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--hg-accent);
    font-size: 12px;
    font-weight: 900;
}

.hg-mobile-intro h1 {
    margin: 12px 0 0;
    color: var(--hg-ink);
    font-size: 40px;
    line-height: 1.08;
    letter-spacing: 0;
}

.hg-mobile-intro > p {
    max-width: 34ch;
    margin: 13px 0 0;
    color: var(--hg-copy);
    font-size: 14px;
    line-height: 1.75;
}

.hg-mobile-actions {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr);
    gap: 9px;
    margin-top: 24px;
}

.hg-mobile-primary,
.hg-mobile-secondary {
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid transparent;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
}

.hg-mobile-primary {
    color: #ffffff;
    border-color: var(--hg-primary);
    background: var(--hg-primary);
    box-shadow: 0 12px 24px rgba(37, 99, 235, .18);
}

.hg-mobile-secondary {
    color: #3a536d;
    border-color: #cbd8e6;
    background: #ffffff;
}

.hg-mobile-capabilities {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 30px;
    border-top: 1px solid var(--hg-line);
    border-bottom: 1px solid var(--hg-line);
}

.hg-mobile-capabilities span {
    min-width: 0;
    min-height: 64px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-left: 1px solid var(--hg-line);
    color: #465f78;
    font-size: 11px;
}

.hg-mobile-capabilities span:first-child {
    border-left: 0;
}

.hg-mobile-capabilities i {
    color: var(--hg-primary);
    font-size: 16px;
}

.hg-mobile-jjl {
    min-height: 54px;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    padding: 0 12px;
    border: 1px solid var(--hg-line);
    border-radius: 7px;
    color: #38536d;
    background: var(--hg-soft);
    text-decoration: none;
}

.hg-mobile-jjl > i:first-child {
    color: var(--hg-primary);
    font-size: 16px;
}

.hg-mobile-jjl b,
.hg-mobile-jjl small {
    display: block;
}

.hg-mobile-jjl b {
    font-size: 12px;
}

.hg-mobile-jjl small {
    margin-top: 3px;
    color: var(--hg-muted);
    font-size: 10px;
}

.hg-mobile .hg-login-backdrop {
    display: none;
}

.hg-mobile .hg-login-panel {
    width: 100%;
    height: auto;
    position: static;
    visibility: visible;
    overflow: visible;
    border: 0;
    border-top: 1px solid var(--hg-line);
    background: #f5f8fc;
    box-shadow: none;
    opacity: 1;
    transform: none;
}

.hg-mobile .hg-login-shell {
    min-height: 0;
    width: min(100%, 520px);
    margin: 0 auto;
    padding: 40px max(20px, env(safe-area-inset-right)) 48px max(20px, env(safe-area-inset-left));
}

.hg-mobile .hg-login-head {
    margin-bottom: 24px;
}

.hg-mobile .hg-login-close {
    display: none;
}

html[data-panda-ui="dark"] {
    --hg-ink: #edf5ff;
    --hg-copy: #a9bad0;
    --hg-muted: #91a5bd;
    --hg-line: #2b3d54;
    --hg-surface: #0d1828;
    --hg-soft: #111e30;
    --hg-primary: #2868dc;
    --hg-primary-strong: #3478ef;
    --hg-accent: #3cc5ad;
}

html[data-panda-ui="dark"] .hg-web-cta,
html[data-panda-ui="dark"] .hg-web-band-inner > a {
    color: #e6f0ff !important;
    border-color: #3b5573;
    background: #122237;
}

html[data-panda-ui="dark"] .hg-nav-actions .hg-nav-web {
    color: #dffcf4 !important;
    border-color: rgba(60, 197, 173, .5);
    background: rgba(16, 80, 69, .42);
}

html[data-panda-ui="dark"] .hg-nav-actions .hg-nav-register {
    color: #ffffff !important;
    border-color: #4c8dff;
    background: #3478ef;
    box-shadow: 0 8px 20px rgba(20, 90, 220, .28);
}

html[data-panda-ui="dark"] .hg-free-badge {
    color: #062d25;
    border-color: #75e6d0;
    background: #55d5bd;
}

html[data-panda-ui="dark"] .hg-web-assurance {
    color: #b3c5d9;
}

html[data-panda-ui="dark"] .hg-web-band,
html[data-panda-ui="dark"] .hg-footer,
html[data-panda-ui="dark"] .hg-mobile-intro,
html[data-panda-ui="dark"] .hg-mobile-nav {
    border-color: #26384e;
    background: #0a1524;
}

html[data-panda-ui="dark"] .hg-web-band h2,
html[data-panda-ui="dark"] .hg-login-head h2,
html[data-panda-ui="dark"] .hg-mobile-intro h1,
html[data-panda-ui="dark"] .hg-mobile-brand,
html[data-panda-ui="dark"] .hg-input-wrap input {
    color: #edf5ff !important;
}

html[data-panda-ui="dark"] .hg-login-panel,
html[data-panda-ui="dark"] .hg-mobile .hg-login-panel,
html[data-panda-ui="dark"] body.hg-mobile {
    border-color: #2b3d54;
    background: #081220;
}

html[data-panda-ui="dark"] .hg-field {
    color: #c7d5e7;
}

html[data-panda-ui="dark"] .hg-input-wrap {
    border-color: #354b65;
    background: #101e30;
}

html[data-panda-ui="dark"] .hg-password-toggle,
html[data-panda-ui="dark"] .hg-login-tools > a,
html[data-panda-ui="dark"] .hg-mobile-jjl,
html[data-panda-ui="dark"] .hg-mobile-register,
html[data-panda-ui="dark"] .hg-mobile-secondary {
    color: #dce9f8 !important;
    border-color: #354b65;
    background: #122237;
}

html[data-panda-ui="dark"] .hg-login-submit,
html[data-panda-ui="dark"] .hg-mobile-primary {
    color: #ffffff !important;
}

html[data-panda-ui="dark"] .hg-login-options a {
    color: #93c5fd !important;
}

html[data-panda-ui="dark"] .hg-mobile-capabilities {
    border-color: #2b3d54;
}

html[data-panda-ui="dark"] .hg-mobile-capabilities span {
    border-color: #2b3d54;
    color: #b8c8dc;
}

html[data-panda-ui="anime"] {
    --hg-ink: #4f3042;
    --hg-copy: #815b70;
    --hg-muted: #956b81;
    --hg-line: #edc9da;
    --hg-surface: #fffafd;
    --hg-soft: #fff2f8;
    --hg-primary: #c92f73;
    --hg-primary-strong: #ab215e;
    --hg-accent: #a83269;
}

html[data-panda-ui="anime"] .hg-web-band,
html[data-panda-ui="anime"] .hg-mobile-intro,
html[data-panda-ui="anime"] .hg-mobile-nav {
    background: #fff9fc;
}

html[data-panda-ui="anime"] .hg-web-band-inner > a,
html[data-panda-ui="anime"] .hg-web-cta,
html[data-panda-ui="anime"] .hg-mobile-jjl,
html[data-panda-ui="anime"] .hg-mobile-secondary,
html[data-panda-ui="anime"] .hg-mobile-register {
    color: #7d3e5e;
    border-color: #e7b9cf;
    background: #fffafd;
}

html[data-panda-ui="anime"] .hg-nav-actions .hg-nav-web {
    color: #8f2859;
    border-color: rgba(201, 47, 115, .42);
    background: rgba(255, 240, 247, .9);
}

html[data-panda-ui="anime"] .hg-nav-actions .hg-nav-register {
    color: #ffffff;
    border-color: #b82a69;
    background: #c92f73;
    box-shadow: 0 8px 18px rgba(201, 47, 115, .2);
}

html[data-panda-ui="anime"] .hg-free-badge {
    color: #7c1745;
    border-color: #ef9fc2;
    background: #f8c5dc;
}

html[data-panda-ui="anime"] .hg-login-submit,
html[data-panda-ui="anime"] .hg-mobile-primary {
    color: #ffffff !important;
}

@media (max-width: 1080px) {
    .hg-home-copy h1 {
        font-size: 58px;
    }

    .hg-nav-actions a {
        padding: 0 10px;
    }

    .hg-nav-actions .hg-nav-client span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
    }
}

@media (max-width: 720px) {
    .hg-nav-actions {
        margin-right: 44px;
    }

    .hg-nav-actions .hg-nav-jjl {
        position: relative;
        overflow: visible;
    }

    .hg-nav-actions .hg-nav-jjl .hg-free-badge {
        min-height: 14px;
        position: absolute;
        top: -7px;
        right: -6px;
        padding: 1px 3px;
        font-size: 7px;
    }
}

@media (max-width: 900px) {
    .hg-web-band-inner {
        width: min(100% - 32px, 760px);
    }
}

@media (max-width: 680px) {
    .hg-web-band-inner {
        min-height: 0;
        align-items: stretch;
        flex-direction: column;
        gap: 20px;
        padding: 38px 0;
    }

    .hg-web-band-inner > a {
        width: 100%;
    }
}

@media (max-width: 420px) {
    .hg-mobile-actions {
        grid-template-columns: 1fr;
    }

    .hg-login-options {
        align-items: flex-start;
        flex-direction: column;
    }

    .hg-footer {
        align-items: flex-start;
        flex-direction: column;
        padding-left: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .hg-login-backdrop,
    .hg-login-panel,
    .hg-login-submit,
    .hg-web-band-inner > a {
        transition-duration: 1ms !important;
    }
}
