.account-shell {
    display: grid;
    grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1.18fr);
    min-height: calc(100vh - 76px);
}

.account-story {
    position: relative;
    overflow: hidden;
    padding: clamp(58px, 8vw, 118px) clamp(34px, 7vw, 104px);
    color: var(--white);
    background:
        radial-gradient(circle at 16% 84%, rgba(32, 201, 215, 0.23), transparent 32%),
        linear-gradient(145deg, var(--navy-800), var(--navy-950) 76%);
}

.account-story::after {
    position: absolute;
    right: -180px;
    bottom: -190px;
    width: 480px;
    height: 480px;
    border: 1px solid rgba(72, 219, 228, 0.2);
    border-radius: 50%;
    content: "";
}

.account-eyebrow {
    margin: 0 0 14px;
    color: var(--blue-600);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.account-story .account-eyebrow {
    color: var(--cyan-400);
}

.account-story h1,
.account-card h2,
.dashboard-heading h1,
.summary-card h2,
.empty-application h2 {
    font-family: var(--font-display);
    font-weight: 400;
}

.account-story h1 {
    max-width: 600px;
    margin: 0;
    font-size: clamp(3.1rem, 6.5vw, 6.8rem);
    line-height: 0.93;
}

.account-story > p:not(.account-eyebrow) {
    max-width: 520px;
    margin: 30px 0 44px;
    color: #c8cde2;
    line-height: 1.75;
}

.account-story ul {
    display: grid;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.account-story li {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #e3e6f4;
}

.account-story li span {
    color: var(--cyan-400);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
}

.account-panel {
    display: grid;
    padding: clamp(28px, 6vw, 84px) clamp(20px, 8vw, 110px);
    place-items: center;
    background:
        linear-gradient(rgba(67, 84, 223, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(67, 84, 223, 0.035) 1px, transparent 1px),
        var(--lavender-50);
    background-size: 28px 28px;
}

.account-card {
    width: min(560px, 100%);
    padding: clamp(30px, 5vw, 58px);
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(67, 84, 223, 0.1);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.account-card h2 {
    margin: 0;
    color: var(--navy-950);
    font-size: clamp(2.7rem, 5.2vw, 4.8rem);
    line-height: 0.98;
}

.account-lead {
    margin: 20px 0 28px;
    color: var(--muted);
    line-height: 1.7;
}

.auth-choice,
.account-button {
    display: flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 13px 20px;
    color: var(--navy-950);
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: 999px;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.auth-choice + .auth-choice {
    margin-top: 10px;
}

.auth-choice:hover:not(.is-disabled),
.account-button:hover {
    transform: translateY(-2px);
}

.auth-choice span {
    display: grid;
    width: 26px;
    height: 26px;
    place-items: center;
    background: var(--white);
    border-radius: 50%;
    box-shadow: 0 4px 14px rgba(11, 16, 51, 0.1);
}

.google-choice {
    background: var(--white);
    border-color: #d9dced;
}

.magic-choice {
    background: #ecfcfd;
    border-color: rgba(32, 201, 215, 0.5);
}

.auth-choice.is-disabled {
    cursor: not-allowed;
    opacity: 0.52;
}

.account-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 26px 0;
    color: #969bb0;
    font-size: 0.78rem;
}

.account-divider::before,
.account-divider::after {
    height: 1px;
    flex: 1;
    background: var(--lavender-200);
    content: "";
}

.account-form {
    display: grid;
    gap: 18px;
}

.account-form > label:not(.account-check) {
    display: grid;
    gap: 8px;
    color: var(--navy-950);
    font-size: 0.9rem;
    font-weight: 600;
}

.account-form input:not([type="checkbox"]),
.account-form select,
.account-form textarea {
    width: 100%;
    min-height: 50px;
    padding: 13px 15px;
    color: var(--ink);
    background: var(--white);
    border: 1px solid #d7daeb;
    border-radius: var(--radius-sm);
}

.account-form input:focus,
.account-form select:focus,
.account-form textarea:focus {
    border-color: var(--cyan-500);
    box-shadow: var(--focus-ring);
}

.account-check {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--muted);
    font-size: 0.86rem;
}

.account-check input {
    width: 17px;
    height: 17px;
    accent-color: var(--cyan-500);
}

.account-button {
    cursor: pointer;
    font: inherit;
    font-weight: 700;
}

.account-button-primary {
    color: var(--navy-950);
    background: var(--cyan-400);
    box-shadow: 0 12px 28px rgba(32, 201, 215, 0.22);
}

.account-button-secondary {
    background: var(--white);
    border-color: var(--lavender-200);
}

.account-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    margin-top: 24px;
    color: var(--muted);
    font-size: 0.86rem;
}

.account-links a {
    color: var(--blue-600);
    font-weight: 700;
}

.account-note,
.account-privacy {
    padding: 14px 16px;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.55;
    background: var(--lavender-50);
    border-radius: 14px;
}

.account-alert,
.account-messages {
    margin-bottom: 18px;
    padding: 14px 16px;
    color: var(--danger);
    background: #fff1f3;
    border-radius: 14px;
}

.account-messages p {
    margin: 0;
}

.field-error {
    color: var(--danger);
    font-weight: 500;
}

.account-success-mark {
    display: grid;
    width: 52px;
    height: 52px;
    margin-bottom: 24px;
    place-items: center;
    color: var(--navy-950);
    background: var(--cyan-400);
    border-radius: 50%;
    font-size: 1.4rem;
    font-weight: 800;
}

.dashboard-shell {
    min-height: calc(100vh - 76px);
    padding: clamp(36px, 6vw, 86px) clamp(20px, 7vw, 108px);
    background:
        radial-gradient(circle at 90% 0%, rgba(32, 201, 215, 0.14), transparent 26%),
        var(--lavender-50);
}

.dashboard-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    max-width: 1280px;
    margin: 0 auto 34px;
}

.dashboard-heading h1 {
    margin: 0;
    color: var(--navy-950);
    font-size: clamp(3rem, 6vw, 6.4rem);
    line-height: 0.94;
}

.dashboard-heading p:not(.account-eyebrow) {
    max-width: 680px;
    margin: 20px 0 0;
    color: var(--muted);
}

.dashboard-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: 1280px;
    margin: 0 auto 24px;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--lavender-200);
    border-radius: 24px;
    box-shadow: 0 16px 48px rgba(22, 29, 76, 0.08);
}

.dashboard-metrics article {
    display: grid;
    gap: 9px;
    min-height: 122px;
    align-content: center;
    padding: 22px 24px;
    border-right: 1px solid var(--lavender-200);
}

.dashboard-metrics article:last-child {
    border-right: 0;
}

.dashboard-metrics article > span {
    color: var(--muted);
    font-size: 0.78rem;
}

.dashboard-metrics strong {
    color: var(--navy-950);
}

.status-pill {
    width: fit-content;
    padding: 7px 10px;
    color: var(--blue-600);
    background: var(--lavender-100);
    border-radius: 999px;
    font-size: 0.78rem;
}

.status-active,
.status-contacted,
.status-trial_collaboration {
    color: var(--success);
    background: #e9faf5;
}

.dashboard-progress {
    height: 5px;
    overflow: hidden;
    background: var(--lavender-100);
    border-radius: 99px;
}

.dashboard-progress span {
    display: block;
    height: 100%;
    background: var(--cyan-500);
}

.submitted-notice {
    display: flex;
    gap: 14px;
    max-width: 1280px;
    margin: 0 auto 24px;
    padding: 18px 20px;
    color: var(--navy-950);
    background: #ecfcfd;
    border: 1px solid rgba(32, 201, 215, 0.45);
    border-radius: 18px;
}

.submitted-notice > span {
    display: grid;
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    place-items: center;
    background: var(--cyan-400);
    border-radius: 50%;
}

.submitted-notice p {
    margin: 4px 0 0;
    color: var(--muted);
}

.application-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    max-width: 1280px;
    margin: 0 auto;
}

.summary-card,
.empty-application {
    padding: clamp(26px, 4vw, 42px);
    background: var(--white);
    border: 1px solid var(--lavender-200);
    border-radius: 24px;
}

.summary-card-wide {
    grid-column: 1 / -1;
}

.summary-card h2,
.empty-application h2 {
    margin: 0 0 22px;
    color: var(--navy-950);
    font-size: clamp(2.1rem, 3.4vw, 3.4rem);
}

.summary-card h3 {
    margin: 26px 0 8px;
    color: var(--navy-950);
    font-size: 0.9rem;
}

.summary-card > p:not(.account-eyebrow),
.empty-application p {
    color: var(--muted);
    line-height: 1.7;
}

.summary-card dl {
    display: grid;
    gap: 14px;
    margin: 0;
}

.summary-card dl div {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--lavender-100);
}

.summary-card dt {
    color: var(--muted);
    font-size: 0.82rem;
}

.summary-card dd {
    margin: 0;
    color: var(--navy-950);
    font-weight: 600;
}

.summary-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.summary-title-row > span {
    padding: 8px 12px;
    color: var(--muted);
    background: var(--lavender-50);
    border-radius: 999px;
    font-size: 0.78rem;
}

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

.dashboard-portfolio article {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--lavender-50);
    border-radius: 16px;
}

.dashboard-portfolio article > span {
    padding: 6px 8px;
    color: var(--blue-600);
    background: var(--white);
    border-radius: 999px;
    font-size: 0.66rem;
    font-weight: 700;
}

.dashboard-portfolio article div {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.dashboard-portfolio small {
    overflow: hidden;
    color: var(--muted);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.empty-application {
    max-width: 760px;
    margin: 40px auto;
    text-align: center;
}

.empty-application > span {
    display: grid;
    width: 54px;
    height: 54px;
    margin: 0 auto 20px;
    place-items: center;
    color: var(--navy-950);
    background: var(--cyan-400);
    border-radius: 18px;
}

.empty-application .account-button {
    width: fit-content;
    margin: 24px auto 0;
}

@media (max-width: 980px) {
    .account-shell {
        grid-template-columns: 1fr;
    }

    .account-story {
        padding: 46px clamp(24px, 7vw, 64px);
    }

    .account-story h1 {
        font-size: clamp(3rem, 10vw, 5.4rem);
    }

    .account-story ul {
        display: none;
    }

    .account-panel {
        padding: 28px 18px 52px;
    }

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

    .dashboard-metrics article:nth-child(2) {
        border-right: 0;
    }

    .dashboard-metrics article:nth-child(-n + 2) {
        border-bottom: 1px solid var(--lavender-200);
    }

    .dashboard-portfolio {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .account-story {
        padding: 36px 22px;
    }

    .account-story h1 {
        font-size: 3.2rem;
    }

    .account-story > p:not(.account-eyebrow) {
        margin: 20px 0 0;
        font-size: 0.9rem;
    }

    .account-card {
        padding: 30px 22px;
        border-radius: 24px;
    }

    .account-card h2 {
        font-size: 2.8rem;
    }

    .dashboard-shell {
        min-height: calc(100vh - 64px);
        padding: 34px 16px 52px;
    }

    .dashboard-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-heading h1 {
        font-size: 3.3rem;
    }

    .dashboard-heading .account-button {
        width: 100%;
    }

    .dashboard-metrics,
    .application-summary {
        grid-template-columns: 1fr;
    }

    .dashboard-metrics article,
    .dashboard-metrics article:nth-child(2) {
        border-right: 0;
        border-bottom: 1px solid var(--lavender-200);
    }

    .dashboard-metrics article:last-child {
        border-bottom: 0;
    }

    .summary-card-wide {
        grid-column: auto;
    }

    .summary-card dl div {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .summary-title-row {
        align-items: flex-start;
        flex-direction: column;
    }
}
