:root {
    color-scheme: light;
    --ui-accent: #73951f;
    --ui-accent-soft: #edf4d7;
    --ui-border: #e2e9e2;
    --ui-shadow: 0 14px 38px rgba(21, 48, 36, .075);
    --ui-shadow-hover: 0 20px 46px rgba(21, 48, 36, .13);
}

html {
    scroll-padding-top: 24px;
}

body {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

::selection {
    color: var(--ink);
    background: #ddf29a;
}

:focus-visible {
    outline: 3px solid rgba(115, 149, 31, .62);
    outline-offset: 3px;
}

img,
video,
canvas,
svg {
    max-width: 100%;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a,
input,
select,
textarea {
    -webkit-tap-highlight-color: transparent;
}

.site-header {
    border-bottom: 1px solid rgba(217, 225, 219, .65);
    backdrop-filter: blur(14px);
}

.brand__mark {
    transition: transform .25s ease, box-shadow .25s ease;
}

.brand:hover .brand__mark {
    transform: rotate(-7deg) scale(1.06);
    box-shadow: 0 6px 16px rgba(16, 35, 30, .18);
}

.main-nav a:not(.nav-cta),
.main-nav .nav-logout {
    transition: color .2s ease, background-color .2s ease;
}

.button,
.nav-cta {
    min-height: 44px;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.button:hover,
.nav-cta:hover {
    box-shadow: 0 8px 20px rgba(16, 35, 30, .13);
}

.button:active,
.nav-cta:active {
    transform: translateY(0) scale(.98);
}

button:not(:disabled) {
    cursor: pointer;
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
    cursor: not-allowed;
    opacity: .62;
}

input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
    max-width: 100%;
}

input:not([type="checkbox"]):not([type="radio"]):focus,
select:focus,
textarea:focus {
    border-color: #8aaa48 !important;
    box-shadow: 0 0 0 3px rgba(138, 170, 72, .14);
}

textarea {
    min-height: 110px;
    resize: vertical;
}

.dashboard-card,
.portal-card,
.service-card,
.service-option,
.journey-step,
.request-card,
.table-card,
.auth-panel--form,
.client-actions a,
.client-promo,
.portal-service {
    transition: box-shadow .24s ease, border-color .24s ease, transform .24s ease;
}

.dashboard-card,
.request-card,
.table-card,
.auth-panel--form {
    border: 1px solid rgba(226, 233, 226, .72);
    box-shadow: 0 8px 26px rgba(21, 48, 36, .045);
}

.dashboard-card:hover,
.request-card:hover,
.table-card:hover {
    box-shadow: var(--ui-shadow);
}

.service-card,
.portal-service,
.client-actions a {
    will-change: transform;
}

.service-card:hover,
.portal-service:hover,
.client-actions a:hover {
    box-shadow: var(--ui-shadow-hover);
}

.service-option {
    transition: transform .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.service-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(21, 48, 36, .08);
}

.journey-step {
    border-radius: 16px;
}

.journey-step:hover {
    transform: translateY(-4px);
}

.client-balance {
    overflow: hidden;
    animation: dashboard-balance-arrive .7s cubic-bezier(.2, .75, .25, 1) both;
}

.client-balance::before {
    content: "";
    position: absolute;
    z-index: 0;
    top: -20%;
    bottom: -20%;
    left: -42%;
    width: 28%;
    pointer-events: none;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .13), transparent);
    transform: skewX(-20deg);
    animation: dashboard-balance-sheen 9s ease-in-out 1.2s infinite;
}

.client-balance > * {
    position: relative;
    z-index: 1;
}

.client-actions a {
    animation: dashboard-card-arrive .55s cubic-bezier(.2, .75, .25, 1) both;
}

.client-actions a:nth-child(2),
.dashboard-services .dashboard-service:nth-child(2) {
    animation-delay: 60ms;
}

.client-actions a:nth-child(3),
.dashboard-services .dashboard-service:nth-child(3) {
    animation-delay: 120ms;
}

.client-actions a:nth-child(4),
.dashboard-services .dashboard-service:nth-child(4) {
    animation-delay: 180ms;
}

.client-actions a:nth-child(5),
.dashboard-services .dashboard-service:nth-child(5) {
    animation-delay: 240ms;
}

.client-actions a:nth-child(6),
.dashboard-services .dashboard-service:nth-child(6) {
    animation-delay: 300ms;
}

.client-actions a:hover {
    transform: translateY(-6px) scale(1.015);
    border-color: #c9d9c8;
}

.client-actions a:nth-child(1) {
    --action-tint: #e6f4ed;
    --action-accent: #19805b;
    background: linear-gradient(145deg, #fff 55%, #f0f9f3);
}

.client-actions a:nth-child(2) {
    --action-tint: #e9efff;
    --action-accent: #526dcc;
    background: linear-gradient(145deg, #fff 55%, #f1f4ff);
}

.client-actions a:nth-child(3) {
    --action-tint: #f4eaff;
    --action-accent: #8958b5;
    background: linear-gradient(145deg, #fff 55%, #f8f1ff);
}

.client-actions a:nth-child(4) {
    --action-tint: #fff1dc;
    --action-accent: #c27b19;
    background: linear-gradient(145deg, #fff 55%, #fff8ec);
}

.client-actions a:nth-child(5) {
    --action-tint: #ffe9e5;
    --action-accent: #cb6451;
    background: linear-gradient(145deg, #fff 55%, #fff3f0);
}

.client-actions a:nth-child(6) {
    --action-tint: #e0f5f4;
    --action-accent: #16858a;
    background: linear-gradient(145deg, #fff 55%, #eefafa);
}

.client-action-icon {
    color: var(--action-accent, #1e3a5f);
    border-color: color-mix(in srgb, var(--action-accent, #1e3a5f) 15%, white);
    background: linear-gradient(145deg, #fff, var(--action-tint, #e8eef7));
}

.client-action-icon {
    transition: transform .28s cubic-bezier(.2, .75, .25, 1), box-shadow .28s ease;
}

.client-actions a:hover .client-action-icon {
    transform: translateY(-3px) rotate(-5deg) scale(1.08);
    box-shadow: 0 8px 18px rgba(30, 58, 95, .14);
}

.dashboard-service {
    position: relative;
    overflow: hidden;
    transition: transform .25s cubic-bezier(.2, .75, .25, 1), box-shadow .25s ease, border-color .25s ease;
    animation: dashboard-card-arrive .55s cubic-bezier(.2, .75, .25, 1) both;
}

.dashboard-service::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #48a77b, #c9db65);
    transform: scaleX(.35);
    transform-origin: left;
    transition: transform .3s ease;
}

.dashboard-service:nth-child(3n + 2)::before {
    background: linear-gradient(90deg, #677de0, #ac9aef);
}

.dashboard-service:nth-child(3n)::before {
    background: linear-gradient(90deg, #e39c46, #f0d16c);
}

.dashboard-service:hover::before {
    transform: scaleX(1);
}

.dashboard-service:hover {
    transform: translateY(-5px);
    border-color: #c9d9c8;
    box-shadow: 0 16px 32px rgba(20, 33, 61, .12);
}

.dashboard-service__action {
    transition: color .2s ease, background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.dashboard-service__action:not(.dashboard-service__action--disabled):hover {
    transform: translateY(-2px);
    background: #2e5279;
    box-shadow: 0 6px 14px rgba(20, 33, 61, .2);
}

.client-promo {
    isolation: isolate;
}

.client-promo::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: -95%;
    right: 16%;
    width: 260px;
    aspect-ratio: 1;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 50%;
    box-shadow: 0 0 0 28px rgba(255, 255, 255, .035), 0 0 0 58px rgba(255, 255, 255, .025);
    animation: dashboard-promo-orbit 16s ease-in-out infinite alternate;
}

.client-promo-mark {
    transform-origin: center;
    animation: dashboard-mark-float 5s ease-in-out infinite;
}

.client-transaction {
    transition: background-color .2s ease, padding-left .2s ease;
}

.client-transaction:hover {
    padding-left: 21px;
}

@keyframes dashboard-balance-arrive {
    from {
        opacity: 0;
        transform: translateY(12px) scale(.99);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes dashboard-balance-sheen {
    0%, 55% {
        left: -42%;
    }
    78%, 100% {
        left: 125%;
    }
}

@keyframes dashboard-card-arrive {
    from {
        opacity: 0;
        filter: blur(3px);
    }
    to {
        opacity: 1;
        filter: blur(0);
    }
}

@keyframes dashboard-promo-orbit {
    from {
        transform: translate3d(0, 0, 0) scale(.92);
    }
    to {
        transform: translate3d(-20px, 16px, 0) scale(1.08);
    }
}

@keyframes dashboard-mark-float {
    0%, 100% {
        transform: translateY(0) rotate(-4deg);
    }
    50% {
        transform: translateY(-7px) rotate(3deg);
    }
}

.project-submission-field {
    margin-bottom: 18px;
}

.project-submission-field--academic-type select {
    min-height: 50px;
    padding: 0 14px;
    border: 1px solid #dce5dc;
    border-radius: 13px;
    background: linear-gradient(145deg, #fff, #f6f9ef);
    color: var(--ink);
    font-weight: 600;
}

.project-upload-input {
    display: block;
    width: 100%;
    min-height: 58px;
    padding: 10px;
    border: 1px dashed #a9bda8;
    border-radius: 14px;
    background: linear-gradient(145deg, #f8fbf6, #eff6e9);
    color: #536258;
    cursor: pointer;
}

.project-upload-input:hover {
    border-color: #73951f;
    background: #f2f8e8;
}

.project-upload-input::file-selector-button {
    min-height: 36px;
    margin-right: 11px;
    padding: 0 13px;
    border: 0;
    border-radius: 9px;
    background: #173d33;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: background-color .2s ease, transform .2s ease;
}

.project-upload-input::file-selector-button:hover {
    background: #2d5a4b;
    transform: translateY(-1px);
}

.project-upload-hint {
    display: block;
    margin-top: 5px;
    color: #758378;
    font-size: 11px;
    font-weight: 500;
}

.table-wrap {
    max-width: 100%;
    border-radius: 12px;
    scrollbar-color: #bdcaba transparent;
    scrollbar-width: thin;
}

table {
    max-width: 100%;
}

th {
    white-space: nowrap;
}

td {
    overflow-wrap: anywhere;
}

.menu-toggle {
    transition: background-color .2s ease, transform .2s ease;
}

.menu-toggle:hover {
    background: rgba(16, 35, 30, .06);
}

.menu-toggle[aria-expanded="true"] {
    background: var(--ui-accent-soft);
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .65s ease, transform .65s cubic-bezier(.2, .75, .25, 1);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal--delay {
    transition-delay: .1s;
}

.reveal--delay-2 {
    transition-delay: .18s;
}

@media (max-width: 980px) {
    .container {
        width: min(100% - 36px, 860px);
    }

    .service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .service-card--featured {
        grid-row: auto;
        min-height: 300px;
    }

    .portal-service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .service-options {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .client-actions {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .site-header {
        min-height: 68px;
    }

    .site-header .container {
        width: calc(100% - 30px);
    }

    .main-nav {
        border-color: rgba(217, 225, 219, .9);
        backdrop-filter: blur(16px);
    }

    .hero__actions {
        flex-wrap: wrap;
    }

    .section-heading {
        gap: 16px;
    }

    .service-grid,
    .portal-service-grid,
    .portal-cards,
    .client-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .portal-page {
        display: block;
    }

    .portal-sidebar {
        width: 100%;
        padding: 13px 16px;
    }

    .portal-sidebar .brand {
        margin: 0 0 12px;
    }

    .portal-sidebar nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .portal-logout {
        margin-top: 5px;
    }

    .sidebar-balance {
        margin-top: 12px;
    }

    .portal-bar {
        height: auto;
        min-height: 54px;
        padding: 12px 18px;
        gap: 12px;
        flex-wrap: wrap;
    }

    .portal-inner {
        width: calc(100% - 30px);
        padding-top: 22px;
    }

    .dashboard-page {
        padding: 42px 0 60px;
    }

    .dashboard-top {
        align-items: flex-start;
        gap: 14px;
        margin-bottom: 28px;
        flex-wrap: wrap;
    }

    .wallet-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-card {
        padding: 22px;
    }

    .fund-form {
        align-items: stretch;
        flex-direction: column;
    }

    .fund-form .button {
        width: 100%;
    }

    .service-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .slip {
        padding: 30px 22px;
    }

    .slip__title {
        padding: 46px 0 26px;
    }

    .slip__title h1 {
        font-size: clamp(30px, 8vw, 42px);
        overflow-wrap: anywhere;
    }
}

@media (max-width: 520px) {
    .container {
        width: calc(100% - 28px);
    }

    .brand {
        font-size: 16px;
    }

    .hero {
        padding-top: 42px;
    }

    .hero h1 {
        font-size: clamp(36px, 11vw, 52px);
    }

    .hero__actions .button {
        width: 100%;
    }

    .hero__visual {
        min-height: 280px;
    }

    .hero-card--main {
        padding: 20px;
    }

    .section {
        padding: 56px 0;
    }

    .service-grid,
    .portal-service-grid,
    .portal-cards,
    .portal-sidebar nav,
    .client-actions {
        grid-template-columns: 1fr;
    }

    .service-card,
    .service-card--featured {
        min-height: 245px;
    }

    .about__visual {
        min-height: 310px;
    }

    .about__circle {
        width: min(250px, 72vw);
        height: min(250px, 72vw);
    }

    .about__circle span {
        font-size: 76px;
    }

    .about__badge {
        right: 0;
        bottom: 10px;
    }

    .dashboard-shell,
    .portal-inner {
        width: calc(100% - 28px);
    }

    .dashboard-top h1,
    .portal-heading h1 {
        font-size: clamp(34px, 10vw, 48px);
    }

    .dashboard-top > .button {
        width: 100%;
    }

    .dashboard-card {
        padding: 18px 15px;
    }

    .portal-heading {
        align-items: flex-start;
        gap: 12px;
        flex-direction: column;
    }

    .portal-notice {
        gap: 10px;
        margin-bottom: 24px;
    }

    .service-options {
        grid-template-columns: 1fr;
    }

    .request-summary {
        gap: 12px;
        flex-wrap: wrap;
    }

    .auth-panel {
        padding: 28px 22px;
    }

    .auth-panel--intro {
        min-height: 265px;
    }

    .auth-panel--intro h1 {
        font-size: clamp(40px, 12vw, 56px);
    }

    .auth-panel--form .back-link {
        margin-bottom: 38px;
    }

    .auth-panel--form .form-heading h2 {
        font-size: 32px;
    }

    .slip-page {
        padding: 30px 12px;
    }

    .slip {
        padding: 24px 16px;
    }

    .slip__header,
    .slip__footer {
        gap: 12px;
        flex-wrap: wrap;
    }

    .slip__details {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 24px 0;
    }

    .table-wrap table {
        min-width: 560px;
    }

    .wallet-table-wrap table {
        min-width: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }

    .dashboard-service::before {
        transition: none;
    }
}

main form.application-form,
main form.form-stack,
main form.fund-form,
main form.admin-form,
main form.wallet-identity-form,
main form.wallet-checkout-form {
    gap: 16px;
}

#cac-generated-fields[hidden],
#cac-capital-field[hidden],
#cac-restricted-field[hidden],
#cac-share-class-other-field[hidden] {
    display: none !important;
}

main form label:not(.inline-checkbox):not(.consent-check):not(.identity-consent):not(.wallet-consent) {
    color: #42564a;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
}

main form input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]),
main form select,
main form textarea {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 47px;
    margin-top: 7px;
    padding: 11px 13px;
    border: 1px solid #dce5dc;
    border-radius: 12px;
    outline: none;
    background: linear-gradient(145deg, #fff, #fcfdfa);
    color: #172c22;
    font: 500 14px/1.4 'DM Sans', sans-serif;
    box-shadow: inset 0 1px 2px rgba(16, 35, 30, .025);
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease, transform .2s ease;
}

main form label > textarea,
main form textarea {
    min-height: 120px;
    line-height: 1.6;
}

main form select {
    padding-right: 38px;
}

main form input::placeholder,
main form textarea::placeholder {
    color: #9aa79e;
    opacity: 1;
}

main form label:focus-within > input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]),
main form label:focus-within > select,
main form label:focus-within > textarea,
main form .form-row:focus-within input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]),
main form .form-row:focus-within select,
main form .form-row:focus-within textarea,
main form input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]):focus,
main form > select:focus,
main form > textarea:focus {
    border-color: #8aaa48;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(138, 170, 72, .12), 0 4px 12px rgba(21, 48, 36, .04);
}

main form input[type="file"] {
    width: 100%;
    max-width: 100%;
    min-height: 48px;
    padding: 8px;
    border: 1px dashed #b9c8b7;
    border-radius: 12px;
    background: #f8faf6;
    color: #5f7064;
    font-size: 12px;
}

main form input[type="file"]::file-selector-button {
    min-height: 32px;
    margin-right: 10px;
    padding: 0 11px;
    border: 0;
    border-radius: 8px;
    background: #e8f0dc;
    color: #35583a;
    font: 700 11px 'DM Sans', sans-serif;
    cursor: pointer;
    transition: color .2s ease, background-color .2s ease;
}

main form input[type="file"]::file-selector-button:hover {
    color: #fff;
    background: #315c42;
}

main form input[type="checkbox"],
main form input[type="radio"] {
    accent-color: #537c34;
}

main form label > small,
main form .form-help,
main form small {
    color: #7c8980;
    line-height: 1.55;
}

main form .form-row {
    gap: 14px;
}

main form :is(button[type="submit"], input[type="submit"]).button:not(:disabled) {
    box-shadow: 0 8px 20px rgba(16, 35, 30, .11);
}

main form :is(button[type="submit"], input[type="submit"]).button:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(16, 35, 30, .17);
}

main form :is(button[type="submit"], input[type="submit"]):disabled {
    box-shadow: none;
}

.auth-panel--form {
    background: rgba(255, 255, 255, .76);
}

.auth-panel--form .application-form {
    padding: 22px;
    border: 1px solid rgba(226, 233, 226, .9);
    border-radius: 20px;
    background: rgba(255, 255, 255, .82);
    box-shadow: 0 14px 36px rgba(21, 48, 36, .055);
}

.application-form > label,
.form-stack > .form-row,
.admin-form > label,
.admin-form > .form-row {
    min-width: 0;
}

main form .inline-checkbox,
main form .consent-check,
main form .identity-consent,
main form .wallet-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #64746a;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.55;
}

main form .inline-checkbox input,
main form .consent-check input,
main form .identity-consent input,
main form .wallet-consent input {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    margin: 2px 0 0;
}

main form .button--full {
    width: 100%;
}

main form :is(input, select, textarea):disabled {
    background: #f0f3ef;
}

.cac-order-document-list {
    display: grid;
    gap: 12px;
    margin: 12px 0 0;
    padding-left: 28px;
}

.cac-order-document-list > li {
    padding-left: 4px;
}

.cac-order-document-list > li::marker {
    color: #347b56;
    font-weight: 800;
}

.cac-share-structure {
    display: grid;
    gap: 14px;
    padding: 20px;
    border: 1px solid #dbe7dc;
    border-radius: 18px;
    background: linear-gradient(145deg, #fbfdf9, #f2f8f1);
}

.cac-share-structure[hidden] {
    display: none !important;
}

.cac-share-structure h3,
.cac-shareholders-heading h4 {
    margin: 0;
}

.cac-share-structure > p,
.cac-shareholders-heading p {
    margin: 0;
    color: #65726c;
    font-size: 13px;
}

.cac-shareholders-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 8px;
}

.cac-shareholders {
    display: grid;
    gap: 12px;
}

.cac-shareholder-card {
    display: grid;
    gap: 12px;
    min-width: 0;
    padding: 16px;
    border: 1px solid #dce5dc;
    border-radius: 14px;
    background: #fff;
}

.cac-shareholder-card legend {
    padding: 0 8px;
    color: #285d42;
    font-weight: 800;
}

.cac-shareholder-card .form-row,
.cac-allocation-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.cac-allocation-list {
    padding-top: 10px;
    border-top: 1px solid #e8eee8;
}

.cac-share-structure .verification-summary {
    margin: 0;
}

.cac-shareholder-allocation {
    margin: 0;
    color: #3c684e;
    font-size: 13px;
    font-weight: 700;
}

.cac-remove-shareholder {
    justify-self: start;
}

.cac-share-summary[data-valid="true"] {
    border-color: #a9d8b9;
}

.cac-payment-choice {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    min-width: 0;
    margin: 0;
    padding: 14px;
    border: 1px solid #dce5dc;
    border-radius: 14px;
    background: #fff;
}

.cac-payment-choice legend {
    padding: 0 8px;
    color: #285d42;
    font-weight: 800;
}

.cac-payment-choice label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cac-payment-choice input[type="radio"] {
    width: auto;
    min-height: 0;
    margin: 0;
}

@media (max-width: 760px) {
    main form.application-form,
    main form.form-stack,
    main form.fund-form,
    main form.admin-form,
    main form.wallet-identity-form,
    main form.wallet-checkout-form {
        gap: 14px;
    }

    .auth-panel--form .application-form {
        padding: 18px;
    }

    .cac-shareholders-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .cac-shareholders-heading .button {
        width: 100%;
    }

    .cac-shareholder-card .form-row,
    .cac-allocation-list {
        grid-template-columns: minmax(0, 1fr);
    }

    .cac-payment-choice {
        flex-direction: column;
    }
}

@media (max-width: 520px) {
    .auth-panel--form .application-form {
        padding: 15px;
        border-radius: 16px;
    }

    main form input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]),
    main form select,
    main form textarea {
        font-size: 16px;
    }
}

.wallet-amount-input input {
    min-height: 0;
    margin-top: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.wallet-amount-input input:focus {
    box-shadow: none;
}

.signup-terms {
    display: flex !important;
    align-items: flex-start;
    gap: 10px;
    padding: 13px 14px;
    border: 1px solid #dce5de;
    border-radius: 12px;
    background: #f8faf7;
    color: #53645d;
    font-size: 13px;
    font-weight: 500 !important;
    line-height: 1.55;
}

.signup-terms input[type="checkbox"] {
    width: 18px !important;
    height: 18px;
    min-height: 18px;
    margin: 1px 0 0;
    accent-color: #557b36;
    flex: 0 0 18px;
}

.signup-terms a {
    color: #315f3c;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.signup-terms a:focus-visible {
    outline: 2px solid #557b36;
    outline-offset: 3px;
}

.terms-open-button {
    padding: 0;
    border: 0;
    background: transparent;
    color: #315f3c;
    font: inherit;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}

.terms-open-button:focus-visible {
    outline: 2px solid #557b36;
    outline-offset: 3px;
}

.signup-terms-dialog {
    display: flex;
    flex-direction: column;
    width: min(760px, calc(100% - 28px));
    max-width: 760px;
    height: min(88vh, 900px);
    max-height: 88vh;
    padding: 0;
    overflow: hidden;
    border: 1px solid #dce5de;
    border-radius: 20px;
    background: #fff;
    color: #10231e;
    box-shadow: 0 24px 90px rgba(12, 28, 22, .34);
}

.signup-terms-dialog::backdrop {
    background: rgba(10, 24, 19, .68);
    backdrop-filter: blur(3px);
}

.signup-terms-dialog__header,
.signup-terms-dialog__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 24px;
    background: #fff;
    flex: 0 0 auto;
}

.signup-terms-dialog__header {
    border-bottom: 1px solid #e5ebe6;
}

.signup-terms-dialog__header > div > span {
    color: #698077;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
}

.signup-terms-dialog__header h2 {
    margin: 5px 0;
    color: #14213d;
    font: 700 23px/1.2 'Syne', sans-serif;
}

.signup-terms-dialog__header p,
.signup-terms-dialog__footer p {
    margin: 0;
    color: #66756d;
    font-size: 12px;
    line-height: 1.5;
}

.signup-terms-dialog__close {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border: 1px solid #dce5de;
    border-radius: 50%;
    background: #f8faf7;
    color: #173d33;
    font-size: 24px;
    cursor: pointer;
}

.signup-terms-dialog__body {
    min-height: 0;
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 8px 26px 24px;
    overscroll-behavior: contain;
    scroll-behavior: smooth;
}

.signup-terms-dialog__body h2 {
    margin: 22px 0 7px;
    color: #173d33;
    font: 700 18px/1.35 'Syne', sans-serif;
    letter-spacing: -.03em;
}

.signup-terms-dialog__body p,
.signup-terms-dialog__body li {
    color: #53645d;
    font-size: 13px;
    line-height: 1.7;
}

.signup-terms-dialog__body ul {
    padding-left: 22px;
}

.signup-terms-dialog__body li + li {
    margin-top: 6px;
}

.signup-terms-dialog__body .terms-legal-note {
    margin-top: 25px;
    padding-top: 16px;
    border-top: 1px solid #e5ebe6;
    color: #79857f;
    font-size: 12px;
}

.signup-terms-dialog__footer {
    border-top: 1px solid #e5ebe6;
}

.signup-terms-dialog__footer .button:disabled {
    opacity: .5;
    cursor: not-allowed;
}

@media(max-width:600px) {
    .signup-terms-dialog {
        height: 94vh;
        max-height: 94vh;
        border-radius: 16px;
    }

    .signup-terms-dialog__header,
    .signup-terms-dialog__footer {
        padding: 14px 16px;
    }

    .signup-terms-dialog__body {
        padding: 6px 17px 20px;
    }

    .signup-terms-dialog__footer {
        align-items: stretch;
        flex-direction: column;
        gap: 9px;
    }
}

@media (prefers-reduced-motion: reduce) {
    main form label > input,
    main form label > select,
    main form label > textarea,
    main form input[type="file"]::file-selector-button,
    main form :is(button[type="submit"], input[type="submit"]).button {
        transition: none;
    }
}

@media (max-width: 760px) {
    .auth-page .auth-panel--intro {
        padding-right: 25px;
    }

    .auth-page .auth-panel--intro h1 {
        max-width: 100%;
        font-size: clamp(38px, 10vw, 56px);
        overflow-wrap: anywhere;
    }
}

.auth-page {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: calc(100svh - 84px);
    background: #f3f7f1;
}

.auth-page .auth-panel {
    min-width: 0;
    padding: clamp(38px, 6vw, 82px) clamp(26px, 5.2vw, 80px);
}

.auth-page .auth-panel--intro {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    gap: 48px;
    background:
        radial-gradient(ellipse at 90% 85%, rgba(216, 249, 92, .15), transparent 42%),
        linear-gradient(145deg, #173d33, #102d26);
}

.auth-page .auth-panel--intro::after {
    position: absolute;
    z-index: -1;
    right: -170px;
    bottom: -220px;
    width: clamp(300px, 42vw, 560px);
    aspect-ratio: 1;
    border: 1px solid rgba(216, 249, 92, .15);
    border-radius: 50%;
    box-shadow: 0 0 0 34px rgba(216, 249, 92, .035), 0 0 0 72px rgba(216, 249, 92, .025);
    content: "";
    pointer-events: none;
}

.auth-page .auth-panel--intro > div {
    width: min(100%, 540px);
}

.auth-page .auth-panel--intro .eyebrow {
    color: #b5cc9e;
    margin-bottom: 20px;
}

.auth-page .auth-panel--intro h1 {
    font-size: clamp(42px, 4.3vw, 60px);
    line-height: .99;
}

.auth-page .auth-panel--intro p:not(.eyebrow) {
    max-width: 390px;
    margin-top: 24px;
    font-size: clamp(15px, 1.4vw, 17px);
    line-height: 1.75;
}

.auth-page .auth-panel--form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background:
        radial-gradient(ellipse at 100% 0, rgba(220, 238, 210, .55), transparent 42%),
        #f7f9f5;
}

.auth-page .auth-panel--form .back-link,
.auth-page .auth-panel--form .form-heading,
.auth-page .auth-panel--form .application-form,
.auth-page .auth-panel--form .auth-switch {
    width: min(100%, 500px);
    margin-right: auto;
    margin-left: auto;
}

.auth-page .auth-panel--form .back-link {
    margin-bottom: 28px;
}

.auth-page .auth-panel--form .form-heading {
    margin-bottom: 22px;
}

.auth-page .auth-panel--form .form-heading h2 {
    font-size: clamp(34px, 4vw, 46px);
    line-height: 1.05;
}

.auth-page .auth-panel--form .form-heading p {
    max-width: 440px;
    margin-top: 12px;
    line-height: 1.65;
}

.auth-page .auth-panel--form .application-form {
    gap: 18px;
    padding: clamp(20px, 3vw, 28px);
    border-color: #e5ebe3;
    border-radius: 22px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 22px 60px rgba(23, 61, 51, .09), 0 2px 8px rgba(23, 61, 51, .035);
}

.auth-page .application-form label {
    gap: 7px;
    color: #344b40;
    font-size: 12px;
    font-weight: 700;
}

.auth-page .application-form label > input:not([type="checkbox"]) {
    min-height: 50px;
    border: 1px solid #dfe7df;
    border-radius: 12px;
    background: #fbfcfa;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.auth-page .application-form label > input:not([type="checkbox"]):hover {
    border-color: #b9cbb9;
}

.auth-page .application-form label > input:not([type="checkbox"]):focus {
    border-color: #648d53;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(100, 141, 83, .13);
    outline: 0;
}

.auth-page .application-form .form-row {
    gap: 14px;
}

.auth-page .signup-terms {
    border-color: #e2e9e1;
    border-radius: 13px;
    background: #f7faf6;
}

.auth-page .application-form .button--full {
    min-height: 52px;
    border-radius: 13px;
}

.auth-page .auth-switch {
    margin-top: 18px;
}

.signup-terms-dialog:not([open]) {
    display: none;
}

.signup-terms-dialog[open] {
    display: flex;
}

@media (min-width: 761px) and (max-width: 1100px) {
    .auth-page .auth-panel {
        padding-right: clamp(24px, 5vw, 54px);
        padding-left: clamp(24px, 5vw, 54px);
    }

    .auth-page .auth-panel--intro h1 {
        font-size: clamp(34px, 4.3vw, 46px);
    }
}

@media (min-width: 761px) {
    .auth-page .auth-panel--intro {
        justify-content: flex-start;
    }

    .auth-page .auth-panel--intro > div {
        margin-top: clamp(88px, 14vh, 150px);
    }
}

@media (max-width: 960px) {
    .auth-page .application-form .form-row {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 760px) {
    .auth-page {
        grid-template-columns: minmax(0, 1fr);
    }

    .auth-page .auth-panel {
        padding: 30px clamp(20px, 6vw, 34px);
    }

    .auth-page .auth-panel--intro {
        min-height: 290px;
        gap: 38px;
        padding-top: 30px;
        padding-bottom: 38px;
    }

    .auth-page .auth-panel--intro h1 {
        font-size: clamp(35px, 9vw, 60px);
    }

    .auth-page .auth-panel--intro p:not(.eyebrow) {
        margin-top: 16px;
        font-size: 15px;
    }

    .auth-page .auth-panel--form {
        justify-content: flex-start;
        padding-top: 34px;
        padding-bottom: 46px;
    }

    .auth-page .auth-panel--form .back-link {
        margin-bottom: 24px;
    }

    .auth-page .auth-panel--form .form-heading {
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .auth-page .auth-panel--intro {
        min-height: 260px;
        gap: 30px;
    }

    .auth-page .auth-panel--intro h1 {
        font-size: clamp(34px, 8.5vw, 40px);
    }

    .auth-page .auth-panel--form {
        padding-right: 18px;
        padding-left: 18px;
    }

    .auth-page .auth-panel--form .application-form {
        gap: 15px;
        padding: 18px;
        border-radius: 18px;
    }
}

.email-verification-page {
    display: grid;
    min-height: calc(100svh - 84px);
    place-items: center;
    padding: clamp(28px, 7vw, 80px) 18px;
    background:
        radial-gradient(ellipse at 15% 15%, rgba(216, 249, 92, .24), transparent 36%),
        #f3f7f1;
}

.email-verification-card {
    width: min(100%, 520px);
    padding: clamp(26px, 6vw, 48px);
    border: 1px solid #e2e9e1;
    border-radius: 24px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 24px 70px rgba(23, 61, 51, .1);
    text-align: center;
}

.email-verification-card__icon {
    display: grid;
    width: 64px;
    height: 64px;
    place-items: center;
    margin: 0 auto 22px;
    border-radius: 20px;
    background: #e7f1db;
    color: #315f3c;
    font-size: 29px;
}

.email-verification-card .eyebrow {
    margin-bottom: 12px;
}

.email-verification-card h1 {
    color: #173d33;
    font-size: clamp(30px, 6vw, 42px);
}

.email-verification-card__message {
    margin: 16px 0;
    color: #65726c;
    font-size: 14px;
    line-height: 1.7;
}

.email-verification-card__address {
    margin: 18px 0 24px;
    overflow-wrap: anywhere;
    color: #173d33;
    font-size: 15px;
    font-weight: 700;
}

.email-verification-card form .button,
.email-verification-card > .button {
    width: 100%;
    min-height: 50px;
    border-radius: 13px;
}

.email-verification-card__fine-print {
    margin: 20px 0 0;
    color: #87938c;
    font-size: 12px;
    line-height: 1.6;
}

@media (max-width: 480px) {
    .email-verification-page {
        min-height: calc(100svh - 68px);
        padding-right: 16px;
        padding-left: 16px;
    }

    .email-verification-card {
        border-radius: 20px;
    }
}

.site-header {
    border-bottom-color: rgba(216, 249, 92, .15);
    background: #173d33 !important;
    color: #f7fbf5;
}

.site-header .brand,
.site-header .brand > span:last-child,
.site-header .main-nav a:not(.nav-cta),
.site-header .main-nav .nav-logout {
    color: #f1f7f1;
}

.site-header .brand > span:last-child > span {
    color: #b7cbbd;
}

.site-header .brand__mark {
    background: #d8f95c !important;
    color: #10231e !important;
}

.site-header .main-nav a:not(.nav-cta):hover,
.site-header .main-nav .nav-logout:hover {
    color: #d8f95c;
}

.site-header .nav-cta {
    border-color: #d8f95c;
    background: #d8f95c !important;
    color: #10231e !important;
}

.site-header .nav-cta:hover {
    border-color: #e5ff8e;
    background: #e5ff8e;
    color: #10231e;
}

.site-header .menu-toggle {
    color: #f7fbf5;
}

.site-header .menu-toggle span {
    background: currentColor;
}

.site-footer {
    border-top: 1px solid rgba(216, 249, 92, .14);
    background:
        radial-gradient(ellipse at 90% 0, rgba(216, 249, 92, .08), transparent 38%),
        #173d33 !important;
    color: #f1f7f1;
}

.site-footer .brand,
.site-footer .brand > span:last-child {
    color: #fff;
}

.site-footer .brand > span:last-child > span {
    color: #b7cbbd;
}

.site-footer .brand__mark {
    background: #d8f95c;
    color: #10231e;
}

.site-footer .footer__top > p,
.site-footer .footer__bottom {
    color: #b7cbbd;
}

.site-footer .footer__links a {
    color: #e5eee7;
    transition: color .2s ease;
}

.site-footer .footer__links a:hover {
    color: #d8f95c;
}

.site-footer .footer__bottom {
    border-top-color: rgba(216, 249, 92, .16);
}

@media (max-width: 760px) {
    .site-header .main-nav {
        border-color: #dce5df;
        background: rgba(255, 255, 255, .98);
    }

    .site-header .main-nav a:not(.nav-cta),
    .site-header .main-nav .nav-logout {
        color: #173d33;
    }

    .site-header .main-nav a:not(.nav-cta):hover,
    .site-header .main-nav .nav-logout:hover {
        background: #f0f5f1;
        color: #315f3c;
    }
}
