:root {
    --navy-dark: #111D33;
    --navy: #1B2A4A;
    --gold: #B8962E;
    --gold-light: #D4B04A;
    --cream: #F9F6EE;
    --white: #FFFFFF;
    --text: #263145;
    --muted: #6E7480;
    --line: rgba(27, 42, 74, .13);
    --shadow: 0 22px 60px rgba(17, 29, 51, .14);
    --title: "Cinzel", Georgia, serif;
    --body: "Lato", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--white);
    color: var(--text);
    font-family: var(--body);
    line-height: 1.65;
}

a {
    color: inherit;
    text-decoration: none;
}

.motion-button {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    transform: translate3d(0, 0, 0);
    transition:
        transform .22s cubic-bezier(.2, .8, .2, 1),
        box-shadow .22s cubic-bezier(.2, .8, .2, 1),
        border-color .22s ease,
        background-color .22s ease,
        color .22s ease,
        opacity .22s ease;
    will-change: transform;
}

.motion-button::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, .22) 45%, transparent 70%);
    opacity: 0;
    transform: translateX(-120%);
    transition: transform .55s cubic-bezier(.2, .8, .2, 1), opacity .22s ease;
}

.motion-button:hover {
    transform: translate3d(0, -3px, 0);
    box-shadow: 0 16px 34px rgba(17, 29, 51, .18);
}

.motion-button:hover::before {
    opacity: 1;
    transform: translateX(120%);
}

.motion-button.is-pressing {
    transform: translate3d(0, 1px, 0) scale(.98);
}

.motion-ripple {
    position: absolute;
    z-index: 1;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .45);
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0);
    animation: ripple-pop .58s ease-out forwards;
}

@keyframes ripple-pop {
    to {
        opacity: 0;
        transform: translate(-50%, -50%) scale(18);
    }
}

@media (prefers-reduced-motion: reduce) {
    .motion-button,
    .motion-button::before,
    .motion-ripple {
        animation: none !important;
        transition: none !important;
    }

    .motion-button:hover,
    .motion-button.is-pressing {
        transform: none;
    }
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 76px;
    padding: 0 clamp(20px, 5vw, 72px);
    background: rgba(17, 29, 51, .97);
    border-bottom: 1px solid rgba(184, 150, 46, .45);
    color: var(--white);
}

.site-alert {
    position: sticky;
    top: 76px;
    z-index: 19;
    padding: 14px clamp(20px, 5vw, 72px);
    border-bottom: 1px solid rgba(184, 150, 46, .28);
    background: var(--gold);
    color: var(--navy-dark);
    font-size: 14px;
    font-weight: 900;
    text-align: center;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--title);
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.brand-logo {
    width: 34px;
    height: 42px;
    object-fit: contain;
    flex: 0 0 auto;
}

.footer-brand .brand-logo {
    width: 38px;
    height: 48px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.main-nav a {
    position: relative;
    padding: 12px 10px;
    color: rgba(255, 255, 255, .72);
}

.main-nav a:not(.nav-cta)::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 2px;
    left: 0;
    height: 1px;
    background: var(--gold-light);
    opacity: 0;
    transform: scaleX(.2);
    transform-origin: center;
    transition: transform .24s ease, opacity .24s ease;
}

.main-nav a:hover,
.main-nav a.is-active {
    color: var(--gold-light);
}

.main-nav a:not(.nav-cta):hover::after,
.main-nav a:not(.nav-cta).is-active::after {
    opacity: 1;
    transform: scaleX(1);
}

.nav-cta {
    min-height: 48px;
    padding: 13px 28px;
    border: 1px solid var(--gold);
    border-radius: 6px;
    color: var(--gold-light) !important;
}

.nav-cta-light {
    background: var(--gold);
    color: var(--navy-dark) !important;
}

.profile-link {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 2px;
    border: 1px solid rgba(212, 176, 74, .7);
    border-radius: 50%;
    background: rgba(249, 246, 238, .08);
    cursor: pointer;
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.profile-link:hover,
.profile-link.is-active {
    border-color: var(--gold-light);
    background: rgba(212, 176, 74, .16);
    transform: translateY(-1px);
}

.profile-link img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.auth-overlay {
    position: fixed;
    inset: 0;
    z-index: 40;
    background: rgba(17, 29, 51, .58);
    opacity: 0;
    pointer-events: none;
    transition: opacity .24s ease;
}

.auth-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

.auth-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    width: min(100%, 480px);
    padding: clamp(34px, 4vw, 44px);
    overflow-y: auto;
    background:
        linear-gradient(180deg, rgba(249, 246, 238, .98), rgba(255, 255, 255, .98)),
        var(--cream);
    box-shadow: -24px 0 70px rgba(17, 29, 51, .24);
    transform: translateX(100%);
    transition: transform .28s ease;
}

.auth-drawer.is-open {
    transform: translateX(0);
}

.drawer-close {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-left: auto;
    border: 1px solid rgba(27, 42, 74, .16);
    border-radius: 50%;
    background: var(--white);
    color: var(--navy);
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
}

.drawer-heading,
.drawer-profile {
    margin-top: 28px;
}

.drawer-heading p {
    color: var(--muted);
}

.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 32px 0;
    padding: 8px;
    border: 1px solid rgba(184, 150, 46, .24);
    border-radius: 8px;
    background: var(--white);
}

.auth-tabs button {
    min-height: 54px;
    padding: 0 18px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--navy);
    cursor: pointer;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.auth-tabs button.is-active {
    background: var(--gold);
    color: var(--navy-dark);
}

.drawer-form {
    display: none;
}

.drawer-form.is-active {
    display: block;
}

.drawer-form label {
    display: grid;
    gap: 12px;
    margin-bottom: 22px;
    color: var(--navy);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.drawer-form input {
    min-height: 54px;
    padding: 16px 18px;
    font-size: 16px;
}

.drawer-form .btn {
    width: 100%;
    min-height: 58px;
    padding-inline: 22px;
}

.drawer-form-message {
    min-height: 20px;
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.drawer-form-message.is-error {
    color: #B3261E;
}

.auth0-actions {
    display: grid;
    gap: 14px;
    margin-top: 32px;
}

.auth0-actions .btn {
    width: 100%;
    min-height: 58px;
}

.auth0-actions .auth-link {
    justify-content: center;
    margin-top: 0;
}

.auth-verification-card {
    display: grid;
    gap: 18px;
    width: min(100%, 680px);
    margin: 0 auto;
    padding: clamp(28px, 5vw, 46px);
    border: 1px solid rgba(184, 150, 46, .24);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.auth-verification-card h2 {
    margin: 0;
    color: var(--navy-dark);
    font-family: var(--title);
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.05;
}

.auth-verification-card p {
    margin: 0;
    color: var(--muted);
}

.auth-verification-form {
    display: grid;
    gap: 14px;
}

.auth-verification-form label {
    display: grid;
    gap: 10px;
    color: var(--navy-dark);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.auth-verification-form input {
    min-height: 54px;
    border: 1px solid rgba(27, 42, 74, .14);
    border-radius: 6px;
    padding: 0 16px;
    color: var(--navy);
    font-size: 16px;
    font-weight: 800;
}

.form-alert {
    border-radius: 6px;
    padding: 12px 14px;
    font-weight: 900;
}

.form-alert.success {
    background: rgba(22, 152, 81, .1);
    color: #169851;
}

.form-alert.error,
.form-error {
    background: rgba(179, 38, 30, .1);
    color: #B3261E;
}

.form-error {
    margin: 0;
    border-radius: 6px;
    padding: 10px 12px;
    font-weight: 900;
}

.auth-user {
    display: none;
}

.auth-drawer.is-connected .auth-guest {
    display: none;
}

.auth-drawer.is-connected .auth-user {
    display: block;
}

.drawer-profile {
    display: flex;
    align-items: center;
    gap: 18px;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(27, 42, 74, .12);
}

.drawer-profile img {
    width: 72px;
    height: 72px;
    border: 1px solid var(--gold);
    border-radius: 50%;
    background: var(--navy-dark);
    object-fit: cover;
}

.drawer-space-link,
.drawer-admin-link,
.logout-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 62px;
    margin-top: 18px;
    padding: 0 22px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.drawer-space-link {
    background: var(--navy);
    color: var(--white);
}

.drawer-admin-link {
    display: none;
    border: 1px solid rgba(184, 150, 46, .46);
    background: rgba(184, 150, 46, .12);
    color: var(--navy);
}

.auth-drawer.is-admin .drawer-admin-link {
    display: flex;
}

.logout-button {
    border: 1px solid rgba(179, 38, 30, .34);
    background: rgba(179, 38, 30, .08);
    color: #B3261E;
    cursor: pointer;
}

.logout-confirm {
    display: none;
    margin-top: 18px;
    padding: 22px;
    border: 1px solid rgba(179, 38, 30, .28);
    border-radius: 8px;
    background: rgba(179, 38, 30, .06);
}

.logout-confirm.is-open {
    display: block;
}

.logout-confirm p {
    margin: 0 0 16px;
    color: var(--text);
    font-weight: 700;
}

.confirm-actions {
    display: grid;
    gap: 12px;
}

.confirm-actions .btn {
    min-height: 54px;
    padding-inline: 18px;
}

.btn-danger {
    background: #B3261E;
    color: var(--white);
}

.btn-soft {
    background: var(--white);
    border-color: rgba(27, 42, 74, .16);
    color: var(--navy);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 6px;
    background: transparent;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 5px auto;
    background: var(--gold-light);
}

.hero,
.page-hero {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(17, 29, 51, .96), rgba(27, 42, 74, .94)),
        repeating-linear-gradient(90deg, transparent 0 58px, rgba(212, 176, 74, .08) 58px 59px);
    color: var(--white);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    min-height: clamp(500px, calc(82vh - 76px), 680px);
    padding: clamp(62px, 7vw, 92px) clamp(20px, 5vw, 72px);
    text-align: center;
}

.page-hero {
    display: grid;
    place-items: center;
    min-height: clamp(360px, 48vh, 520px);
    padding: clamp(64px, 8vw, 106px) clamp(20px, 5vw, 72px);
    text-align: center;
}

.hero-copy,
.page-hero > * {
    position: relative;
    z-index: 1;
}

.hero-copy {
    display: grid;
    justify-items: center;
    width: 100%;
    max-width: 820px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    color: var(--gold-light);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .28em;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    margin: 0;
    font-family: var(--title);
    line-height: 1.12;
    letter-spacing: 0;
}

h1 {
    max-width: 800px;
    font-size: clamp(40px, 6vw, 78px);
}

.hero h1 {
    max-width: 780px;
    margin-inline: auto;
    font-size: clamp(36px, 4.8vw, 62px);
    line-height: 1.13;
}

.page-hero h1 {
    width: 100%;
    max-width: 980px;
    margin-inline: auto;
    font-size: clamp(34px, 4.2vw, 58px);
    line-height: 1.16;
    text-align: center;
}

h2 {
    font-size: clamp(28px, 4vw, 46px);
}

h3 {
    font-size: 18px;
}

.hero p,
.page-hero p {
    max-width: 680px;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, .72);
    font-size: clamp(17px, 2vw, 20px);
    font-weight: 300;
}

.hero p {
    margin-inline: auto;
    font-size: clamp(16px, 1.55vw, 19px);
}

.page-hero p {
    max-width: 760px;
    margin-inline: auto;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 30px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 13px 24px;
    border-radius: 6px;
    border: 1px solid transparent;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.btn-gold {
    background: var(--gold);
    color: var(--navy-dark);
    box-shadow: 0 14px 34px rgba(184, 150, 46, .25);
}

.btn-outline {
    border-color: rgba(184, 150, 46, .44);
    background: var(--white);
    color: var(--navy-dark);
}

.btn-ghost {
    border-color: rgba(255, 255, 255, .36);
    color: var(--white);
}

.hero-stats {
    justify-content: center;
    display: flex;
    flex-wrap: wrap;
    gap: clamp(22px, 4vw, 42px);
    margin: 42px 0 0;
    padding: 26px 0 0;
    border-top: 1px solid rgba(255, 255, 255, .12);
}

.hero-stats dt {
    color: var(--gold-light);
    font-family: var(--title);
    font-size: clamp(25px, 3vw, 32px);
    font-weight: 700;
}

.hero-stats dd {
    margin: 0;
    color: rgba(255, 255, 255, .5);
    font-size: 11px;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.hero-visual {
    position: relative;
    width: min(100%, 420px);
    min-height: 320px;
    border: 1px solid rgba(212, 176, 74, .35);
    border-radius: 8px;
    background:
        linear-gradient(155deg, rgba(249, 246, 238, .1), rgba(255, 255, 255, .02)),
        linear-gradient(180deg, rgba(184, 150, 46, .14), transparent);
    box-shadow: var(--shadow);
}

.crest {
    position: absolute;
    inset: 34px 50% auto auto;
    transform: translateX(50%);
    display: grid;
    place-items: center;
    width: min(190px, 54vw);
    aspect-ratio: 1 / 1.14;
    color: var(--gold-light);
    border: 2px solid var(--gold);
    clip-path: polygon(50% 0, 100% 18%, 100% 70%, 50% 100%, 0 70%, 0 18%);
    background: linear-gradient(150deg, var(--navy), var(--navy-dark));
    font-family: var(--title);
    font-size: 118px;
    font-weight: 700;
}

.crest img {
    width: 68%;
    height: auto;
    max-height: 78%;
    object-fit: contain;
}

.fortress-lines {
    position: absolute;
    inset: auto 34px 78px;
    display: grid;
    gap: 10px;
}

.fortress-lines span {
    display: block;
    height: 10px;
    border: 1px solid rgba(212, 176, 74, .28);
    background: rgba(17, 29, 51, .38);
}

.visual-card {
    position: absolute;
    right: 18px;
    bottom: 16px;
    left: 18px;
    padding: 18px;
    border-radius: 6px;
    background: var(--cream);
    color: var(--navy-dark);
}

.visual-card strong,
.visual-card span {
    display: block;
}

.visual-card strong {
    font-family: var(--title);
    font-size: 18px;
}

.visual-card span {
    color: var(--muted);
}

.section {
    padding: clamp(74px, 9vw, 118px) clamp(20px, 5vw, 72px);
}

.cream {
    background: var(--cream);
}

.navy {
    background: var(--navy-dark);
    color: var(--white);
}

.section-heading {
    max-width: 760px;
    margin: 0 auto 48px;
    text-align: center;
}

.section-heading p,
.split p {
    color: var(--muted);
    font-size: 17px;
}

.navy .section-heading p,
.navy .split p {
    color: rgba(255, 255, 255, .65);
}

.cards-grid {
    display: grid;
    gap: 24px;
}

.cards-grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cards-grid.four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.info-card,
.service-card,
.doc-card,
.plan-card,
.simulator-card,
.contact-form,
.contact-panel {
    border: 1px solid rgba(184, 150, 46, .22);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.info-card,
.service-card,
.doc-card {
    padding: 30px;
}

.card-icon,
.doc-card span,
.plan-badge {
    color: var(--gold);
    font-family: var(--title);
    font-weight: 700;
    letter-spacing: .12em;
}

.info-card p,
.service-card p,
.doc-card p {
    color: var(--muted);
}

.timeline {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
}

.timeline article {
    padding: 34px;
    border-right: 1px solid var(--line);
}

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

.timeline span,
.simulator-notes span,
.values-grid strong {
    color: var(--gold);
    font-family: var(--title);
    font-size: 34px;
    font-weight: 700;
}

.editorial-brief,
.method-report {
    width: min(100%, 1180px);
    margin: 0 auto;
}

.editorial-brief {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
    gap: clamp(34px, 6vw, 82px);
    align-items: start;
}

.brief-lead {
    padding-top: 8px;
}

.brief-lead h2,
.method-heading h2 {
    max-width: 780px;
    color: var(--navy-dark);
    font-size: clamp(36px, 5vw, 68px);
    line-height: .98;
}

.brief-lead p,
.method-heading p {
    max-width: 650px;
    margin: 28px 0 0;
    color: var(--muted);
    font-size: clamp(17px, 1.7vw, 21px);
    line-height: 1.7;
}

.brief-notes {
    display: grid;
    gap: 0;
    border-top: 2px solid var(--navy-dark);
}

.brief-notes article {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 18px;
    padding: 24px 0;
    border-bottom: 1px solid rgba(27, 42, 74, .16);
}

.brief-notes span,
.method-primary span,
.method-secondary span {
    color: var(--gold);
    font-family: var(--title);
    font-weight: 700;
    line-height: 1;
}

.brief-notes span {
    font-size: 30px;
}

.brief-notes h3,
.method-primary h3,
.method-secondary h3 {
    color: var(--navy-dark);
}

.brief-notes p {
    grid-column: 2;
    margin: -4px 0 0;
    color: var(--muted);
}

.method-heading {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(260px, .55fr);
    gap: clamp(28px, 5vw, 70px);
    align-items: end;
    margin-bottom: 48px;
}

.method-heading p {
    margin: 0;
}

.method-layout {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(320px, 1.05fr);
    gap: clamp(28px, 5vw, 70px);
    align-items: stretch;
}

.method-primary {
    display: grid;
    align-content: end;
    min-height: 420px;
    padding: clamp(28px, 5vw, 52px);
    border-left: 6px solid var(--gold);
    background: linear-gradient(180deg, rgba(249, 246, 238, .72), var(--white));
    box-shadow: 0 18px 46px rgba(17, 29, 51, .08);
}

.method-primary span {
    margin-bottom: auto;
    font-size: clamp(60px, 9vw, 122px);
}

.method-primary h3 {
    margin-top: 42px;
    font-size: clamp(30px, 4vw, 52px);
    line-height: 1;
}

.method-primary p {
    max-width: 520px;
    margin: 22px 0 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.65;
}

.method-secondary {
    display: grid;
    align-content: stretch;
    border-top: 2px solid var(--navy-dark);
}

.method-secondary article {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    padding: 30px 0;
    border-bottom: 1px solid rgba(27, 42, 74, .16);
}

.method-secondary span {
    font-size: 42px;
}

.method-secondary h3 {
    font-size: clamp(22px, 2.4vw, 34px);
}

.method-secondary p {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.6;
}

.split,
.simulator-layout,
.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, .9fr);
    gap: clamp(30px, 5vw, 72px);
    align-items: start;
}

.simulator-layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, .82fr);
    gap: clamp(28px, 4vw, 54px);
    align-items: stretch;
    max-width: 1180px;
    margin: 0 auto;
}

.check-list {
    display: grid;
    gap: 14px;
}

.check-list p {
    margin: 0;
    padding: 18px 20px;
    border-left: 4px solid var(--gold);
    border-radius: 6px;
    background: rgba(255, 255, 255, .08);
    color: rgba(255, 255, 255, .78);
}

.check-list.light p {
    background: var(--white);
    color: var(--text);
}

.faq-list {
    max-width: 820px;
    margin: 0 auto;
    border-top: 1px solid var(--line);
}

.faq-item {
    border-bottom: 1px solid var(--line);
}

.faq-item button {
    width: 100%;
    padding: 24px 0;
    border: 0;
    background: none;
    color: var(--navy);
    cursor: pointer;
    font-family: var(--title);
    font-size: 17px;
    text-align: left;
}

.faq-item p {
    display: none;
    margin: 0 0 24px;
    color: var(--muted);
}

.faq-item.is-open p {
    display: block;
}

.simulator-card,
.contact-form,
.contact-panel {
    padding: clamp(24px, 4vw, 42px);
}

.simulator-card {
    display: grid;
    align-content: stretch;
    padding: clamp(34px, 4vw, 52px);
}

.simulator-card label,
.contact-form label {
    display: grid;
    gap: 14px;
    margin-bottom: 30px;
    color: var(--navy);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: clamp(13px, 1.1vw, 15px);
}

.simulator-card label span {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid rgba(27, 42, 74, .18);
    border-radius: 6px;
    background: var(--white);
    padding: 14px 15px;
    color: var(--text);
    font: inherit;
}

input[type="range"] {
    --range-fill: 0px;
    --range-thumb-half: 10px;
    -webkit-appearance: none;
    appearance: none;
    padding: 0;
    height: 6px;
    border: 0;
    border-radius: 999px;
    background:
        linear-gradient(90deg, var(--gold) 0 var(--range-fill), transparent var(--range-fill)),
        rgba(27, 42, 74, .12);
    cursor: pointer;
    transition: background .04s linear;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border: 1px solid rgba(27, 42, 74, .12);
    border-radius: 50%;
    background: var(--white);
    box-shadow: 0 2px 8px rgba(17, 29, 51, .18);
    cursor: grab;
    transition: transform .16s ease, box-shadow .16s ease;
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border: 1px solid rgba(27, 42, 74, .12);
    border-radius: 50%;
    background: var(--white);
    box-shadow: 0 2px 8px rgba(17, 29, 51, .18);
    cursor: grab;
    transition: transform .16s ease, box-shadow .16s ease;
}

input[type="range"]:active::-webkit-slider-thumb {
    transform: scale(1.18);
    box-shadow: 0 4px 14px rgba(184, 150, 46, .36);
    cursor: grabbing;
}

input[type="range"]:active::-moz-range-thumb {
    transform: scale(1.18);
    box-shadow: 0 4px 14px rgba(184, 150, 46, .36);
    cursor: grabbing;
}

.result-panel {
    display: grid;
    gap: 16px;
    margin-top: 42px;
    padding: clamp(26px, 3vw, 34px);
    border-radius: 6px;
    background: linear-gradient(135deg, var(--navy-dark), var(--navy));
    color: var(--white);
}

.result-panel div {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    padding-bottom: 16px;
}

.result-panel div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.result-panel span {
    color: rgba(255, 255, 255, .58);
    font-size: clamp(16px, 1.5vw, 20px);
}

.result-panel strong {
    color: var(--gold-light);
    font-family: var(--title);
    font-size: clamp(26px, 2.5vw, 34px);
    text-align: right;
}

.simulator-notes {
    display: grid;
    grid-template-rows: repeat(3, 1fr);
    gap: 16px;
    height: 100%;
}

.simulator-notes article,
.values-grid article {
    padding: 22px 24px;
    border-radius: 8px;
    background: var(--white);
    border: 1px solid rgba(184, 150, 46, .22);
}

.simulator-notes article {
    display: grid;
    align-content: center;
}

.simulator-notes span {
    font-size: clamp(28px, 3vw, 36px);
}

.simulator-notes h2 {
    font-size: clamp(26px, 3.2vw, 38px);
}

.simulator-notes p {
    margin: 14px 0 0;
}

.doc-card a {
    display: inline-flex;
    margin-top: 10px;
    color: var(--gold);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .1em;
    font-size: 12px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: center;
    gap: 26px;
    max-width: 920px;
    margin: 0 auto;
}

.plan-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 36px;
    background: rgba(255, 255, 255, .06);
    color: var(--white);
    text-align: center;
}

.plan-card > p {
    min-height: 48px;
    margin-inline: auto;
}

.plan-card.featured {
    border-color: var(--gold);
    background: rgba(184, 150, 46, .12);
}

.plan-card.one-shot {
    background: rgba(249, 246, 238, .11);
    border-color: rgba(212, 176, 74, .45);
}

.plan-name {
    color: var(--gold-light);
    font-family: var(--title);
    font-size: clamp(19px, 1.8vw, 25px);
}

.price {
    margin: 24px 0;
    color: var(--white);
    font-family: var(--title);
    font-size: clamp(44px, 4vw, 58px);
    line-height: 1;
}

.price span,
.price small {
    color: var(--gold-light);
    font-size: 22px;
}

.pricing-tiers {
    display: grid;
    gap: 8px;
    margin: -6px 0 26px;
    padding: 14px;
    border: 1px solid rgba(212, 176, 74, .28);
    border-radius: 8px;
    background: rgba(17, 29, 51, .24);
}

.pricing-tiers p {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 0;
    color: rgba(255, 255, 255, .82);
    font-size: 13px;
    font-weight: 900;
    text-align: left;
}

.pricing-tiers span {
    color: var(--gold-light);
    white-space: nowrap;
}

.plan-card ul {
    display: grid;
    gap: 10px;
    width: 100%;
    padding: 0;
    margin: 0 0 30px;
    list-style: none;
}

.plan-card li {
    color: rgba(255, 255, 255, .78);
    text-align: left;
}

.plan-card li::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 10px;
    border-radius: 50%;
    background: var(--gold);
}

.plan-badge {
    position: absolute;
    top: -14px;
    left: 28px;
    padding: 5px 14px;
    border-radius: 999px;
    background: var(--gold);
    color: var(--navy-dark);
    font-size: 10px;
}

.plan-card .btn {
    margin-top: auto;
    width: 100%;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.values-grid span {
    display: block;
    color: var(--muted);
    font-weight: 900;
}

.contact-panel {
    background: var(--navy-dark);
    color: var(--white);
}

.contact-panel p {
    color: rgba(255, 255, 255, .68);
}

.auth-link {
    display: inline-flex;
    margin-top: 18px;
    color: var(--gold);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.dashboard-hero {
    min-height: clamp(300px, 38vh, 440px);
}

.dashboard-workspace {
    display: grid;
    gap: 26px;
    padding-top: 28px;
    background:
        linear-gradient(180deg, rgba(249, 246, 238, .82), var(--cream) 220px),
        radial-gradient(circle at top right, rgba(212, 176, 74, .12), transparent 360px);
}

.dashboard-actionbar,
.workspace-control-panel,
.workspace-board,
.workspace-tools {
    width: min(100%, 1280px);
    margin: 0 auto;
}

.dashboard-actionbar {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.dashboard-actionbar .btn {
    min-height: 52px;
    min-width: 230px;
    box-shadow: 0 14px 28px rgba(184, 150, 46, .18);
}

.workspace-control-panel,
.workspace-board,
.tool-panel {
    border: 1px solid rgba(184, 150, 46, .2);
    border-radius: 8px;
    background: rgba(255, 255, 255, .84);
    box-shadow: 0 22px 60px rgba(17, 29, 51, .1);
}

.workspace-control-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px;
    gap: 24px;
    align-items: stretch;
    padding: 24px;
}

.workspace-goal {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 26px;
    align-items: center;
}

.workspace-goal h2,
.board-heading h2,
.tool-panel h2,
.tool-panel h3 {
    margin: 0;
    color: var(--navy-dark);
    font-family: var(--title);
    line-height: 1.05;
}

.workspace-goal h2,
.board-heading h2 {
    font-size: clamp(26px, 2.8vw, 40px);
}

.goal-editor {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 14px;
    align-items: end;
}

.goal-editor label {
    display: grid;
    gap: 8px;
}

.goal-editor label span {
    color: var(--gold);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.goal-editor strong {
    align-self: center;
    justify-self: center;
    display: inline-grid;
    place-items: center;
    min-height: 52px;
    color: var(--navy-dark);
    font-size: 18px;
    font-weight: 900;
    text-align: center;
}

.goal-editor input,
.month-entry-form input,
.month-entry-form select,
.tool-panel form input,
.tool-panel form select {
    width: 100%;
    min-height: 52px;
    border: 1px solid rgba(27, 42, 74, .1);
    border-radius: 6px;
    background: var(--white);
    color: var(--navy);
    font-size: 15px;
    font-weight: 800;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.goal-editor input {
    padding: 0 16px;
}

.goal-editor input:focus,
.month-entry-form input:focus,
.month-entry-form select:focus,
.tool-panel form input:focus,
.tool-panel form select:focus {
    border-color: rgba(184, 150, 46, .72);
    box-shadow: 0 0 0 4px rgba(184, 150, 46, .12);
}

.goal-editor input::placeholder,
.tool-panel input::placeholder {
    color: rgba(27, 42, 74, .36);
}

.workspace-stat {
    display: grid;
    place-items: center;
    gap: 12px;
    min-height: 150px;
    border: 0;
    border-radius: 8px;
    background: var(--white);
    color: var(--navy-dark);
}

.workspace-stat span,
.workspace-summary span,
.month-card-head strong {
    display: block;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.workspace-stat span {
    color: var(--gold);
}

.goal-ring {
    --progress: 0deg;
    --ring-color: var(--gold);
    --ring-track: rgba(27, 42, 74, .08);
    position: relative;
    display: grid;
    place-items: center;
    width: 124px;
    height: 124px;
    border-radius: 50%;
    background:
        conic-gradient(var(--ring-color) var(--progress), var(--ring-track) 0),
        var(--white);
    text-align: center;
    transition: background .35s ease, transform .25s ease;
}

.goal-ring.is-over-target {
    --ring-color: #33B77A;
    --ring-track: rgba(51, 183, 122, .14);
    transform: scale(1.02);
}

.goal-ring.is-negative {
    --ring-color: #B3261E;
    --ring-track: rgba(179, 38, 30, .12);
}

.goal-ring::before {
    content: "";
    position: absolute;
    inset: 9px;
    border-radius: 50%;
    background: var(--white);
    box-shadow: inset 0 0 0 1px rgba(212, 176, 74, .18);
}

.goal-ring-content {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 2px;
    width: 82px;
    max-width: calc(100% - 24px);
    min-height: 54px;
    text-align: center;
}

.goal-ring strong {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    color: var(--navy-dark);
    font-family: var(--title);
    font-size: clamp(21px, 1.9vw, 28px);
    font-weight: 900;
    line-height: 1;
    text-align: center;
}

.goal-ring small {
    display: block;
    width: 100%;
    color: rgba(27, 42, 74, .62);
    font-size: 8px;
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: .05em;
    text-align: center;
    text-transform: uppercase;
}

.workspace-board {
    display: grid;
    gap: 22px;
    padding: 24px;
}

.board-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(27, 42, 74, .08);
}

.board-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.board-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border: 1px solid rgba(184, 150, 46, .42);
    border-radius: 999px;
    padding: 0 18px;
    background: var(--white);
    color: var(--navy-dark);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}

.board-actions a:hover,
.board-actions a.is-active {
    transform: translateY(-2px);
    border-color: var(--gold);
    background: var(--gold);
    color: var(--white);
}

.tracking-page {
    padding-top: 56px;
}

.tracking-shell {
    display: grid;
    gap: 24px;
    width: min(100%, 1280px);
    margin: 0 auto;
}

.tracking-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.tracking-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.tracking-grid.annual {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tracking-card {
    display: grid;
    gap: 14px;
    min-height: 220px;
    padding: 20px;
    border: 1px solid rgba(184, 150, 46, .2);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 16px 34px rgba(17, 29, 51, .08);
}

.tracking-card h2 {
    margin: 0;
    color: var(--navy-dark);
    font-family: var(--title);
    font-size: clamp(20px, 2vw, 30px);
    line-height: 1.08;
}

.tracking-card > strong {
    color: var(--gold);
    font-family: var(--title);
    font-size: clamp(26px, 2.5vw, 38px);
    line-height: 1;
}

.tracking-card div {
    display: grid;
    gap: 8px;
    align-content: start;
}

.tracking-card p {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 0;
    padding-top: 8px;
    border-top: 1px solid rgba(27, 42, 74, .08);
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.tracking-card b {
    color: var(--navy-dark);
}

.workspace-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.workspace-summary article {
    min-height: 126px;
    padding: 18px;
    border: 1px solid rgba(184, 150, 46, .24);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 18px 36px rgba(17, 29, 51, .08);
    position: relative;
    overflow: hidden;
}

.workspace-summary article::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: var(--gold);
}

.workspace-summary span,
.month-card-head strong {
    color: var(--gold);
}

.workspace-summary strong {
    display: block;
    margin-top: 12px;
    color: var(--navy-dark);
    font-family: var(--title);
    font-size: clamp(24px, 2.3vw, 34px);
    line-height: 1;
}

.workspace-summary p {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.workspace-summary .benefit-card {
    border-color: rgba(184, 150, 46, .24);
    background: var(--white);
}

.workspace-summary .benefit-card.is-positive {
    border-color: rgba(184, 150, 46, .24);
    background: var(--white);
}

.workspace-summary .benefit-card.is-positive::before {
    background: var(--gold);
}

.workspace-summary .benefit-card.is-negative {
    border-color: rgba(179, 38, 30, .26);
    background: var(--white);
}

.workspace-summary .benefit-card.is-negative::before {
    background: #B3261E;
}

.workspace-summary .benefit-card strong,
.benefit-details span,
.month-entry span:last-child {
    color: #169851;
}

.workspace-summary .benefit-card.is-negative strong,
.benefit-details p.negative span {
    color: #B3261E;
}

.month-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.month-card {
    min-height: 180px;
    padding: 14px;
    border: 1px solid rgba(27, 42, 74, .08);
    border-radius: 8px;
    background: rgba(249, 246, 238, .58);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.month-card:hover {
    transform: translateY(-2px);
    border-color: rgba(184, 150, 46, .36);
    box-shadow: 0 18px 34px rgba(17, 29, 51, .1);
}

.month-card.has-entries {
    background: var(--white);
}

.month-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.month-entry-form button,
.tool-panel form button {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 50%;
    background: var(--gold);
    color: var(--white);
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
    transition: transform .18s ease, background .18s ease;
}

.month-entry-form button:hover,
.tool-panel form button:hover {
    transform: scale(1.06);
    background: var(--gold-light);
}

.month-entry-form,
.month-entry {
    display: grid;
    gap: 8px;
    align-items: center;
}

.month-entry-form {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    margin-top: 14px;
}

.month-entry-form input,
.month-entry-form select {
    min-height: 38px;
    padding: 0 10px;
    font-size: 12px;
}

.month-entries {
    display: grid;
    gap: 8px;
    margin-top: 10px;
}

.month-entry {
    grid-template-columns: 1fr auto;
    position: relative;
    min-height: 28px;
    padding: 6px 34px 6px 8px;
    border-radius: 5px;
    background: rgba(27, 42, 74, .04);
    color: var(--navy-dark);
    font-size: 11px;
    font-weight: 900;
    cursor: pointer;
    overflow: hidden;
    transition: background .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.month-entry:hover,
.month-entry:focus-within {
    transform: translateX(3px);
    background: rgba(179, 38, 30, .1);
    color: #B3261E;
    box-shadow: inset 0 0 0 1px rgba(179, 38, 30, .24);
}

.month-entry:hover span:last-of-type,
.month-entry:focus-within span:last-of-type {
    color: #B3261E;
}

.month-entry.is-deleting {
    opacity: .58;
    pointer-events: none;
}

.month-entry button[data-delete-entry] {
    position: absolute;
    top: 50%;
    right: 7px;
    display: inline-grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border: 0;
    border-radius: 50%;
    background: rgba(179, 38, 30, .12);
    color: #B3261E;
    opacity: 0;
    transform: translate(16px, -50%) rotate(-8deg);
    cursor: pointer;
    transition: opacity .2s ease, transform .2s ease, background .2s ease;
}

.month-entry:hover button[data-delete-entry],
.month-entry:focus-within button[data-delete-entry] {
    opacity: 1;
    transform: translate(0, -50%) rotate(0);
    animation: trash-wiggle .72s ease-in-out infinite;
}

.month-entry button[data-delete-entry]:hover {
    background: rgba(179, 38, 30, .2);
}

.month-entry button[data-delete-entry] svg {
    width: 13px;
    height: 13px;
    fill: currentColor;
}

@keyframes trash-wiggle {
    0%,
    100% {
        transform: translate(0, -50%) rotate(0);
    }

    35% {
        transform: translate(-1px, -50%) rotate(-10deg);
    }

    70% {
        transform: translate(1px, -50%) rotate(8deg);
    }
}

.workspace-tools {
    display: grid;
    grid-template-columns: 1fr 1fr 1.15fr;
    gap: 18px;
    width: min(100%, 1280px);
    margin: 0 auto;
}

.tool-panel {
    padding: 22px;
}

.tool-panel h2 {
    margin-bottom: 16px;
    font-size: 22px;
}

.tool-panel h3 {
    margin-top: 26px;
    margin-bottom: 12px;
    font-family: var(--body);
    font-size: 15px;
    font-weight: 900;
}

.tool-panel form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(110px, auto) auto;
    gap: 10px;
    align-items: center;
}

.tool-panel form input,
.tool-panel form select {
    min-height: 46px;
    padding: 0 12px;
}

.tool-hint {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.label-history,
.current-history,
.benefit-details > div {
    min-height: 220px;
    padding: 14px;
    border: 1px solid rgba(27, 42, 74, .08);
    border-radius: 8px;
    background: var(--white);
}

.label-history p,
.current-history p,
.benefit-details p {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 10px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(27, 42, 74, .07);
    color: var(--navy-dark);
    font-weight: 900;
    transition: background .2s ease, border-color .2s ease, color .2s ease, padding .2s ease;
}

.label-history p:last-child,
.current-history p:last-child,
.benefit-details p:last-child {
    border-bottom: 0;
}

.label-history button {
    border: 0;
    border-radius: 999px;
    padding: 6px 10px;
    background: rgba(179, 38, 30, .1);
    color: #B3261E;
    font-size: 9px;
    font-weight: 900;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}

.label-history p.is-confirming-delete {
    margin-inline: -8px;
    padding-inline: 8px;
    border-color: rgba(179, 38, 30, .28);
    border-radius: 6px;
    background: rgba(179, 38, 30, .1);
    color: #B3261E;
}

.label-history p.is-confirming-delete button {
    background: #B3261E;
    color: var(--white);
    transform: scale(1.03);
}

.admin-shell {
    display: grid;
    gap: 24px;
    max-width: 1240px;
    margin: 0 auto;
}

.admin-panel-page .admin-shell {
    width: 100%;
    max-width: none;
    margin: 0;
}

.admin-locked {
    display: none;
    max-width: 760px;
    margin: 0 auto;
    padding: 36px;
    border: 1px solid rgba(184, 150, 46, .24);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.admin-locked p {
    color: var(--muted);
}

.admin-access-denied .admin-shell {
    display: none;
}

.admin-access-denied .admin-locked {
    display: grid;
    gap: 18px;
}

.admin-locked.is-visible {
    display: grid;
    gap: 18px;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.admin-stats article,
.admin-card {
    border: 1px solid rgba(184, 150, 46, .22);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.admin-stats article {
    padding: 18px 20px;
    transition: border-color .32s ease, box-shadow .32s ease, background .32s ease;
}

.admin-stats article:hover,
.admin-card:hover {
    border-color: rgba(184, 150, 46, .3);
    box-shadow: 0 18px 48px rgba(17, 29, 51, .11);
}

.admin-stats span,
.admin-row-head {
    color: var(--gold);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.admin-stats strong {
    display: block;
    margin-top: 4px;
    color: var(--navy);
    font-family: var(--title);
    font-size: clamp(26px, 3vw, 38px);
}

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

.admin-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(290px, 340px);
    gap: 14px;
    order: 1;
}

.admin-card {
    padding: 22px;
    transition: border-color .32s ease, box-shadow .32s ease, background .32s ease;
}

.clients-card {
    grid-row: auto;
}

.admin-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 14px;
}

.admin-card-head.compact {
    margin-bottom: 14px;
}

.admin-table,
.holding-list {
    display: grid;
    gap: 6px;
}

.admin-row {
    display: grid;
    grid-template-columns: 1.1fr 1fr .8fr 1fr;
    gap: 10px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(27, 42, 74, .1);
    transition: background .32s ease, border-color .32s ease, box-shadow .32s ease;
}

.admin-row:not(.admin-row-head):hover {
    border-color: rgba(184, 150, 46, .22);
    border-radius: 8px;
    background: rgba(249, 246, 238, .46);
    box-shadow: inset 3px 0 0 rgba(184, 150, 46, .22);
}

.admin-client-row {
    cursor: pointer;
}

.admin-row strong,
.holding-list strong {
    color: var(--navy);
    font-family: var(--title);
}

.admin-card label {
    display: grid;
    gap: 9px;
    margin-bottom: 16px;
    color: var(--navy);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.admin-card .btn {
    width: 100%;
}

.admin-card-head .btn {
    width: auto;
    flex-shrink: 0;
}

.holding-list p {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin: 0;
    padding: 10px 0;
    border-bottom: 1px solid rgba(27, 42, 74, .1);
}

.admin-panel-page {
    background: var(--cream);
}

.admin-panel-page .site-header,
.admin-panel-page .site-footer {
    display: none;
}

.admin-panel-page .chatbot-float-button,
.admin-panel-page .chatbot-panel {
    display: none;
}

.admin-panel-page main {
    min-height: 100vh;
}

.admin-page {
    min-height: 100vh;
    background: var(--cream);
}

.admin-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 30;
    display: flex;
    flex-direction: column;
    width: 252px;
    background: var(--navy-dark);
    color: var(--white);
    border-right: 1px solid rgba(184, 150, 46, .22);
}

.admin-sidebar-brand {
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 12px;
    align-items: center;
    padding: 22px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    color: var(--gold-light);
    font-family: var(--title);
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.admin-sidebar-brand img {
    grid-row: span 2;
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.admin-sidebar-brand small {
    color: rgba(255, 255, 255, .46);
    font-family: var(--body);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .14em;
}

.admin-sidebar nav {
    display: grid;
    gap: 5px;
    padding: 14px 10px;
}

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    border: 0;
    border-left: 2px solid transparent;
    border-radius: 8px;
    background: transparent;
    padding: 11px 14px;
    color: rgba(255, 255, 255, .62);
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .06em;
    text-align: left;
    text-transform: uppercase;
    transition: background .32s ease, color .32s ease, border-color .32s ease;
}

.admin-nav-mark {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 24px;
    border: 1px solid rgba(184, 150, 46, .22);
    border-radius: 6px;
    color: rgba(212, 176, 74, .72);
    font-family: var(--title);
    font-size: 11px;
}

.admin-nav-item:hover,
.admin-nav-item.is-active {
    border-color: var(--gold);
    background: rgba(184, 150, 46, .14);
    color: var(--gold-light);
}

.admin-nav-item.is-active .admin-nav-mark {
    border-color: rgba(212, 176, 74, .62);
    background: rgba(184, 150, 46, .13);
    color: var(--gold-light);
}

.admin-sidebar-footer {
    display: grid;
    gap: 3px;
    margin-top: auto;
    padding: 18px;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.admin-sidebar-footer strong {
    color: rgba(255, 255, 255, .74);
    font-size: 12px;
}

.admin-sidebar-footer span {
    color: rgba(255, 255, 255, .38);
    font-size: 11px;
}

.admin-return-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    border: 1px solid rgba(184, 150, 46, .34);
    border-radius: 8px;
    padding: 10px 12px;
    color: var(--gold-light);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    transition: background .32s ease, color .32s ease, border-color .32s ease;
}

.admin-return-link:hover {
    border-color: rgba(212, 176, 74, .58);
    background: rgba(184, 150, 46, .14);
    color: var(--white);
}

.admin-main {
    margin-left: 252px;
    min-height: 100vh;
}

.admin-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    min-height: 68px;
    padding: 12px clamp(18px, 2.4vw, 28px);
    border-bottom: 1px solid rgba(27, 42, 74, .1);
    background: rgba(249, 246, 238, .94);
    backdrop-filter: blur(14px);
}

.admin-topbar h1 {
    margin: 3px 0 0;
    color: var(--navy-dark);
    font-size: clamp(24px, 3vw, 34px);
}

.admin-topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--muted);
    font-size: 13px;
}

.admin-shell {
    padding: clamp(14px, 2.2vw, 24px);
}

.admin-view {
    display: none;
    gap: 14px;
}

.admin-view.is-active {
    display: grid;
}

.admin-ops-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(260px, .85fr);
    gap: 14px;
    align-items: stretch;
    order: 2;
}

.admin-activity-card {
    grid-row: span 2;
    padding-bottom: 18px;
    align-self: stretch;
}

.admin-activity-list,
.admin-notification-list,
.admin-waiting-list {
    display: grid;
    gap: 6px;
}

.admin-activity-item {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 8px 0;
    border-bottom: 1px solid rgba(27, 42, 74, .08);
}

.admin-activity-item:last-child {
    border-bottom: 0;
}

.admin-activity-item time {
    color: var(--gold);
    font-family: var(--title);
    font-size: 13px;
    font-weight: 700;
}

.admin-activity-item span,
.admin-waiting-list p > span {
    display: grid;
    gap: 2px;
}

.admin-activity-item strong,
.admin-notification strong,
.admin-waiting-list strong {
    color: var(--navy-dark);
    line-height: 1.35;
}

.admin-activity-item small,
.admin-notification span,
.admin-waiting-list small {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

.admin-notification {
    display: grid;
    gap: 4px;
    border-left: 3px solid rgba(27, 42, 74, .14);
    border-radius: 0 8px 8px 0;
    background: rgba(249, 246, 238, .5);
    padding: 10px 12px;
}

.admin-notification-critique {
    border-color: rgba(179, 38, 30, .54);
}

.admin-notification-haute {
    border-color: rgba(184, 150, 46, .62);
}

.admin-notification-normale {
    border-color: rgba(27, 42, 74, .24);
}

.admin-waiting-card {
    padding-top: 18px;
}

.admin-notification-card,
.admin-waiting-card {
    padding-block: 18px;
}

.admin-notification-card h2,
.admin-waiting-card h2 {
    font-size: clamp(24px, 2.5vw, 34px);
    line-height: 1.05;
}

.admin-waiting-list p {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin: 0;
    padding: 8px 0;
    border-bottom: 1px solid rgba(27, 42, 74, .08);
}

.admin-waiting-list p:last-child {
    border-bottom: 0;
}

.admin-waiting-list em {
    color: var(--gold);
    font-family: var(--title);
    font-style: normal;
    font-weight: 700;
}

.admin-finance-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
    gap: 14px;
    align-items: start;
}

.admin-finance-column {
    display: grid;
    gap: 14px;
    align-content: start;
}

.admin-finance-lead .admin-card-head > strong {
    color: var(--gold);
    font-family: var(--title);
    font-size: clamp(28px, 3vw, 42px);
    white-space: nowrap;
}

.admin-finance-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.admin-finance-metric {
    display: grid;
    gap: 5px;
    border: 1px solid rgba(27, 42, 74, .08);
    border-radius: 8px;
    background: rgba(249, 246, 238, .45);
    padding: 14px;
}

.admin-finance-metric span,
.admin-finance-row-head {
    color: var(--gold);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.admin-finance-metric strong {
    color: var(--navy-dark);
    font-family: var(--title);
    font-size: clamp(22px, 2.1vw, 31px);
    line-height: 1.05;
}

.admin-finance-metric small,
.admin-finance-checks span {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
}

.admin-finance-metric-gold {
    border-color: rgba(184, 150, 46, .24);
    background: rgba(184, 150, 46, .08);
}

.admin-finance-goal {
    display: grid;
    gap: 13px;
    align-self: start;
}

.admin-finance-goal h2 {
    font-size: clamp(26px, 2.6vw, 36px);
    line-height: 1.04;
}

.admin-finance-checks {
    display: grid;
    gap: 8px;
    margin-top: 4px;
}

.admin-finance-checks p {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    border-bottom: 1px solid rgba(27, 42, 74, .08);
    padding-bottom: 8px;
}

.admin-finance-checks p:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.admin-finance-checks strong,
.admin-finance-row em {
    color: var(--gold);
    font-family: var(--title);
    font-style: normal;
    font-weight: 700;
}

.admin-finance-table-card {
    align-self: start;
}

.admin-finance-table {
    display: grid;
    gap: 4px;
}

.admin-finance-row {
    display: grid;
    grid-template-columns: minmax(120px, .8fr) minmax(160px, 1fr) minmax(92px, .45fr) minmax(86px, auto);
    gap: 12px;
    align-items: center;
    border-bottom: 1px solid rgba(27, 42, 74, .08);
    padding: 8px 0;
}

.admin-finance-row:last-child {
    border-bottom: 0;
}

.admin-finance-row strong {
    color: var(--navy-dark);
    font-family: var(--title);
}

.admin-finance-row span {
    color: var(--muted);
}

.admin-finance-notes {
    align-self: start;
}

.admin-card-wide {
    width: 100%;
}

.admin-card > h2,
.admin-card-head h2 {
    font-size: clamp(28px, 3.2vw, 46px);
    line-height: 1.04;
}

.admin-client-row,
.admin-table > .admin-row-head {
    grid-template-columns: minmax(160px, 1.2fr) minmax(120px, .8fr) minmax(120px, .8fr) minmax(95px, .65fr) minmax(84px, auto);
}

.admin-client-row-detailed,
.admin-table > .admin-row-head:has(+ .admin-client-row-detailed),
.admin-table .admin-row-head {
    grid-template-columns: minmax(170px, 1.15fr) minmax(92px, .62fr) minmax(150px, 1fr) minmax(150px, .95fr) minmax(92px, .62fr) minmax(78px, auto);
}

.admin-client-row-ops,
.admin-row-head-ops {
    grid-template-columns: minmax(128px, 1fr) minmax(76px, .48fr) minmax(118px, .78fr) minmax(128px, .82fr) minmax(112px, .72fr) minmax(76px, .48fr) minmax(68px, auto);
}

.admin-row-head-ops {
    font-size: 10px;
    letter-spacing: .12em;
}

.admin-client-row small,
.holding-list small {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

.btn-sm {
    min-height: 0;
    padding: 10px 14px;
    font-size: 12px;
}

.admin-badge {
    display: inline-flex;
    justify-content: center;
    width: fit-content;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
}

.admin-badge-actif {
    background: rgba(22, 152, 81, .1);
    color: #169851;
}

.admin-badge-bilan {
    background: rgba(184, 150, 46, .14);
    color: var(--gold);
}

.admin-badge-prospect {
    background: rgba(27, 42, 74, .08);
    color: var(--navy);
}

.admin-badge-pause {
    background: rgba(110, 116, 128, .12);
    color: var(--muted);
}

.admin-priority-critique,
.admin-priority-haute,
.admin-priority-normale {
    border: 1px solid transparent;
}

.admin-priority-critique {
    background: rgba(179, 38, 30, .11);
    color: #B3261E;
    border-color: rgba(179, 38, 30, .18);
}

.admin-priority-haute {
    background: rgba(184, 150, 46, .14);
    color: var(--gold);
    border-color: rgba(184, 150, 46, .22);
}

.admin-priority-normale {
    background: rgba(27, 42, 74, .07);
    color: var(--navy);
    border-color: rgba(27, 42, 74, .1);
}

.admin-risk {
    display: inline-flex;
    width: fit-content;
    border-radius: 999px;
    padding: 5px 10px;
    background: rgba(27, 42, 74, .07);
    color: var(--navy);
    font-size: 11px;
    font-weight: 900;
}

.admin-risk-eleve,
.admin-risk-surveillance {
    background: rgba(179, 38, 30, .1);
    color: #B3261E;
}

.admin-risk-modere,
.admin-risk-a-qualifier {
    background: rgba(184, 150, 46, .14);
    color: var(--gold);
}

.admin-reply-badge {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    border: 1px solid rgba(179, 38, 30, .26);
    border-radius: 999px;
    background: rgba(179, 38, 30, .1);
    padding: 6px 10px;
    color: #B3261E;
    cursor: pointer;
    font: inherit;
    font-size: 11px;
    font-weight: 900;
    line-height: 1.1;
    text-align: left;
    white-space: normal;
    transition: background .32s ease, border-color .32s ease;
}

.admin-reply-badge:hover {
    border-color: rgba(179, 38, 30, .42);
    background: rgba(179, 38, 30, .15);
}

.admin-reply-clear {
    display: inline-flex;
    border-radius: 999px;
    background: rgba(22, 152, 81, .08);
    padding: 6px 10px;
    color: #169851;
    font-size: 11px;
    font-weight: 900;
}

.admin-link-button,
.admin-message-stack button {
    border: 0;
    background: transparent;
    color: var(--gold);
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.admin-link-button {
    white-space: nowrap;
}

.admin-message-stack {
    display: grid;
    gap: 8px;
}

.admin-message-stack button {
    display: grid;
    gap: 4px;
    width: 100%;
    border: 1px solid rgba(27, 42, 74, .08);
    border-radius: 8px;
    background: rgba(249, 246, 238, .6);
    padding: 11px 12px;
    color: var(--text);
    text-align: left;
    text-transform: none;
    transition: border-color .32s ease, background .32s ease, box-shadow .32s ease;
}

.admin-message-stack button:hover {
    border-color: rgba(184, 150, 46, .28);
    background: var(--white);
    box-shadow: inset 3px 0 0 rgba(184, 150, 46, .2);
}

.admin-message-stack span,
.admin-message-stack small,
.admin-muted,
.admin-empty {
    color: var(--muted);
}

.admin-message-stack small {
    font-size: 11px;
    line-height: 1.45;
}

.admin-message-stack b {
    color: var(--gold);
}

.admin-task-list {
    display: grid;
    gap: 8px;
}

.admin-task-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid rgba(27, 42, 74, .08);
    border-radius: 8px;
    background: rgba(249, 246, 238, .55);
    color: var(--text);
    letter-spacing: 0;
    text-transform: none;
    transition: border-color .32s ease, background .32s ease, box-shadow .32s ease;
}

.admin-task-item:hover {
    border-color: rgba(184, 150, 46, .26);
    background: var(--white);
    box-shadow: inset 3px 0 0 rgba(184, 150, 46, .18);
}

.admin-task-item input {
    width: 18px;
    margin-top: 4px;
    accent-color: var(--gold);
}

.admin-task-item span {
    display: grid;
    gap: 2px;
}

.admin-task-item small {
    color: var(--muted);
}

.admin-task-item.is-done strong {
    color: rgba(17, 29, 51, .58);
    text-decoration: line-through;
}

.admin-task-item.is-done {
    border-color: rgba(22, 152, 81, .28);
    background: linear-gradient(90deg, rgba(22, 152, 81, .1), rgba(249, 246, 238, .68));
    box-shadow: inset 4px 0 0 rgba(22, 152, 81, .52);
}

.admin-task-item.is-done small {
    color: rgba(38, 49, 69, .5);
}

.admin-task-item.is-done .admin-progress {
    background: rgba(22, 152, 81, .14);
}

.admin-task-item.is-done .admin-progress span {
    background: #169851;
}

.admin-task-item.is-done input {
    accent-color: #169851;
}

.admin-filters {
    display: grid;
    gap: 10px;
    margin-bottom: 16px;
}

.admin-filters > div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-filter {
    border: 1px solid rgba(27, 42, 74, .12);
    border-radius: 999px;
    background: var(--white);
    padding: 8px 12px;
    color: var(--muted);
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 900;
    transition: background .32s ease, border-color .32s ease, color .32s ease;
}

.admin-filter:hover,
.admin-filter.is-active {
    border-color: var(--gold);
    background: rgba(184, 150, 46, .12);
    color: var(--gold);
}

.admin-empty {
    display: none;
    margin: 18px 0 0;
    text-align: center;
}

.admin-empty.is-visible {
    display: block;
}

.admin-progress {
    height: 9px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(27, 42, 74, .1);
}

.admin-progress.compact {
    display: block;
    height: 6px;
    min-width: 96px;
    margin-bottom: 6px;
}

.admin-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--gold);
}

.admin-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(17, 29, 51, .62);
}

.admin-modal.is-open {
    display: flex;
}

.admin-modal-panel {
    width: min(100%, 820px);
    max-height: min(760px, calc(100vh - 48px));
    overflow: hidden;
    border: 1px solid rgba(184, 150, 46, .26);
    border-radius: 10px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.admin-modal-panel-small {
    width: min(100%, 560px);
}

.admin-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 24px;
    background: var(--navy-dark);
    color: var(--white);
}

.admin-modal-head h2 {
    color: var(--white);
}

.admin-modal-head p {
    margin: 4px 0 0;
    color: rgba(255, 255, 255, .58);
}

.admin-modal-head button {
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 50%;
    background: transparent;
    width: 38px;
    height: 38px;
    color: var(--white);
    cursor: pointer;
    font-size: 24px;
}

.admin-tabs {
    display: flex;
    overflow-x: auto;
    border-bottom: 1px solid rgba(27, 42, 74, .1);
    background: rgba(249, 246, 238, .55);
}

.admin-tabs button {
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    padding: 14px 18px;
    color: var(--muted);
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 900;
}

.admin-tabs button.is-active {
    border-color: var(--gold);
    background: var(--white);
    color: var(--navy);
}

.admin-modal-body {
    max-height: 540px;
    overflow: auto;
    padding: 24px;
}

.admin-tab-panel {
    display: none;
}

.admin-tab-panel.is-active {
    display: grid;
    gap: 18px;
}

.admin-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.admin-detail-grid article,
.admin-reco-list article {
    border: 1px solid rgba(27, 42, 74, .08);
    border-radius: 8px;
    background: rgba(249, 246, 238, .45);
    padding: 16px;
}

.admin-detail-grid h3,
.admin-reco-list h3 {
    font-size: 14px;
}

.admin-detail-grid p {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin: 10px 0 0;
    border-bottom: 1px solid rgba(27, 42, 74, .08);
    padding-bottom: 8px;
}

.admin-note {
    display: grid;
    gap: 8px;
    color: var(--navy);
    font-weight: 900;
}

.admin-chat-log,
.admin-reco-list {
    display: grid;
    gap: 10px;
}

.admin-chat-message {
    max-width: 78%;
    border-radius: 10px;
    padding: 12px 14px;
    background: rgba(27, 42, 74, .06);
}

.admin-chat-message.from-me {
    justify-self: end;
    background: var(--navy);
    color: var(--white);
}

.admin-chat-message p {
    margin: 0;
}

.admin-chat-message small {
    display: block;
    margin-top: 4px;
    opacity: .58;
}

.admin-inline-form {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 4px;
}

.admin-inline-form input {
    min-height: 42px;
}

.admin-inline-form-stacked,
.admin-form-grid {
    display: grid;
    gap: 12px;
}

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

.admin-form-grid label {
    display: grid;
    gap: 8px;
    color: var(--navy);
    font-weight: 900;
}

.admin-form-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.chatbot-float-button {
    position: fixed;
    right: clamp(18px, 3vw, 34px);
    bottom: clamp(18px, 3vw, 34px);
    z-index: 44;
    display: inline-grid;
    place-items: center;
    width: 70px;
    height: 70px;
    border: 1px solid rgba(212, 176, 74, .7);
    border-radius: 50%;
    background: linear-gradient(145deg, var(--gold-light), var(--gold));
    color: var(--navy-dark);
    box-shadow: 0 18px 44px rgba(17, 29, 51, .28);
    cursor: pointer;
    transition: opacity .2s ease, transform .2s ease, box-shadow .2s ease;
}

.chatbot-float-button svg {
    width: 31px;
    height: 31px;
    fill: currentColor;
}

.chatbot-float-button:hover {
    box-shadow: 0 22px 54px rgba(17, 29, 51, .34);
}

.chatbot-float-button.is-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px) scale(.92);
}

.chatbot-panel {
    position: fixed;
    right: clamp(18px, 3vw, 34px);
    bottom: clamp(18px, 3vw, 34px);
    z-index: 45;
    display: grid;
    grid-template-rows: auto 1fr auto;
    width: min(calc(100vw - 36px), 420px);
    height: min(620px, calc(100vh - 110px));
    border: 1px solid rgba(184, 150, 46, .32);
    border-radius: 10px;
    background: var(--cream);
    box-shadow: 0 24px 70px rgba(17, 29, 51, .26);
    opacity: 0;
    pointer-events: none;
    transform: translateY(18px) scale(.98);
    transition: opacity .22s ease, transform .22s ease;
}

.chatbot-panel.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.chatbot-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 22px 16px;
    border-bottom: 1px solid rgba(27, 42, 74, .1);
}

.chatbot-header .eyebrow {
    margin-bottom: 6px;
}

.chatbot-messages {
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    padding: 20px 22px;
}

.chat-message {
    max-width: 88%;
    padding: 13px 15px;
    border-radius: 8px;
    font-size: 15px;
    line-height: 1.55;
    white-space: pre-line;
}

.chat-message.bot {
    align-self: flex-start;
    background: var(--white);
    color: var(--text);
    border: 1px solid rgba(184, 150, 46, .18);
}

.chat-message.user {
    align-self: flex-end;
    background: var(--navy);
    color: var(--white);
}

.chat-message.loading {
    color: var(--muted);
    font-style: italic;
}

.chatbot-form {
    padding: 16px 18px 18px;
    border-top: 1px solid rgba(27, 42, 74, .1);
    background: rgba(255, 255, 255, .55);
}

.chatbot-form label {
    display: block;
    margin-bottom: 8px;
    color: var(--navy);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.chatbot-form > div {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}

.chatbot-form input {
    min-height: 48px;
}

.chatbot-form .btn {
    min-height: 48px;
}

.site-footer {
    padding: 64px clamp(20px, 5vw, 72px) 28px;
    background: var(--navy-dark);
    color: var(--white);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 36px;
}

.footer-grid h3 {
    margin-bottom: 16px;
    color: var(--gold-light);
    font-size: 13px;
}

.footer-grid a,
.footer-grid p {
    display: block;
    color: rgba(255, 255, 255, .52);
}

.footer-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-badges span {
    padding: 4px 9px;
    border: 1px solid rgba(184, 150, 46, .35);
    border-radius: 4px;
    color: var(--gold-light);
    font-size: 10px;
    letter-spacing: .12em;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 46px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    color: rgba(255, 255, 255, .38);
    font-size: 13px;
}

@media (max-width: 1060px) {
    .cards-grid.three,
    .cards-grid.four,
    .pricing-grid,
    .timeline,
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero,
    .split,
    .simulator-layout,
    .contact-layout,
    .editorial-brief,
    .method-heading,
    .method-layout {
        grid-template-columns: 1fr;
    }

    .method-heading {
        align-items: start;
    }

    .method-primary {
        min-height: 340px;
    }

    .admin-stats,
    .admin-grid,
    .admin-ops-grid,
    .admin-finance-layout,
    .admin-detail-grid,
    .admin-form-grid {
        grid-template-columns: 1fr;
    }

    .admin-finance-table-card,
    .admin-finance-notes {
        grid-column: auto;
    }

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

    .admin-sidebar {
        position: static;
        width: 100%;
        min-height: auto;
    }

    .admin-main {
        margin-left: 0;
    }

    .admin-sidebar nav {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .workspace-control-panel,
    .workspace-summary,
    .workspace-tools {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .workspace-goal {
        grid-template-columns: 1fr;
    }

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

}

@media (max-width: 760px) {
    .nav-toggle {
        display: block;
    }

    .main-nav {
        position: absolute;
        top: 76px;
        right: 0;
        left: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px 20px 22px;
        background: var(--navy-dark);
        border-bottom: 1px solid rgba(184, 150, 46, .35);
    }

    .main-nav.is-open {
        display: flex;
    }

    .main-nav a {
        padding: 15px 14px;
    }

    .main-nav a.motion-button:hover {
        transform: translate3d(4px, 0, 0);
    }

    .nav-cta {
        margin-top: 8px;
        text-align: center;
    }

    .profile-link {
        margin-top: 12px;
        align-self: center;
    }

    .hero {
        min-height: auto;
        padding-block: 54px;
    }

    .hero h1 {
        font-size: clamp(32px, 10vw, 44px);
    }

    .page-hero {
        min-height: auto;
        padding-block: 58px;
    }

    .page-hero h1 {
        font-size: clamp(30px, 10vw, 42px);
    }

    .brief-lead h2,
    .method-heading h2 {
        font-size: clamp(34px, 11vw, 46px);
    }

    .brief-notes article,
    .method-secondary article {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .brief-notes p {
        grid-column: auto;
        margin-top: 0;
    }

    .method-primary {
        min-height: auto;
        padding: 28px;
    }

    .method-primary span {
        margin-bottom: 0;
        font-size: clamp(54px, 20vw, 82px);
    }

    .method-primary h3 {
        margin-top: 28px;
    }

    .hero-stats,
    .hero-actions,
    .footer-bottom {
        flex-direction: column;
    }

    .cards-grid.three,
    .cards-grid.four,
    .timeline,
    .pricing-grid,
    .values-grid,
    .workspace-control-panel,
    .workspace-summary,
    .workspace-tools,
    .tracking-grid,
    .tracking-grid.annual,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-actionbar {
        display: grid;
    }

    .dashboard-actionbar .btn {
        width: 100%;
        min-width: 0;
    }

    .workspace-goal {
        grid-template-columns: 1fr;
    }

    .goal-editor {
        grid-template-columns: 1fr;
    }

    .goal-editor input {
        min-height: 54px;
    }

    .board-heading {
        display: grid;
    }

    .tool-panel form {
        grid-template-columns: 1fr auto;
    }

    .tool-panel form select {
        grid-column: 1 / -1;
    }

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

    .month-card {
        min-height: 170px;
    }

    .workspace-stat {
        justify-items: start;
    }

    .timeline article {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

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

    .result-panel div {
        display: grid;
    }

    .result-panel strong {
        text-align: left;
    }

    .admin-row {
        grid-template-columns: 1fr;
    }

    .admin-client-row,
    .admin-table > .admin-row-head,
    .admin-finance-metrics,
    .admin-finance-row {
        grid-template-columns: 1fr;
    }

    .admin-topbar,
    .admin-topbar-actions,
    .admin-inline-form {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-sidebar nav {
        grid-template-columns: 1fr;
    }

    .admin-modal {
        padding: 12px;
    }

    .admin-modal-panel {
        max-height: calc(100vh - 24px);
    }

    .admin-tabs button {
        min-width: max-content;
    }

    .admin-chat-message {
        max-width: 100%;
    }

    .chatbot-panel {
        right: 12px;
        bottom: 12px;
        width: calc(100vw - 24px);
        height: min(640px, calc(100vh - 24px));
    }

    .chatbot-form > div {
        grid-template-columns: 1fr;
    }
}
