:root {
    --accent: #ec2d83;
    --accent-dark: #c71668;
    --accent-rgb: 236, 45, 131;
    --accent-soft: #ffe5f0;
    --accent-very-soft: #fff6fb;
    --accent-gradient: linear-gradient(135deg, #ff0f75, #ec2d83);
    --accent-gradient-hover: linear-gradient(135deg, #ec2d83, #c71668);
    --pink: var(--accent);
    --pink-dark: var(--accent-dark);
    --lime: #b9f20d;
    --green: #55c53b;
    --yellow: #ffd447;
    --cyan: #36c7d4;
    --ink: #111116;
    --muted: #6b6570;
    --line: #ece5ec;
    --paper: #ffffff;
    --soft: #fff5fa;
    --shadow: 0 18px 50px rgba(17, 17, 22, .10);
}

body.theme-female {
    --accent: #ec2d83;
    --accent-dark: #c71668;
    --pink: #ec2d83;
    --pink-dark: #c71668;
    --accent-rgb: 236, 45, 131;
    --accent-soft: #ffe5f0;
    --accent-very-soft: #fff6fb;
    --accent-gradient: linear-gradient(135deg, #ff0f75, #ec2d83);
    --accent-gradient-hover: linear-gradient(135deg, #ec2d83, #c71668);
    --lime: #b9f20d;
    --cyan: #36c7d4;
}

body.theme-neutral {
    --accent: #111116;
    --accent-dark: #000000;
    --pink: #111116;
    --pink-dark: #000000;
    --accent-rgb: 17, 17, 22;
    --accent-soft: #f1f1f3;
    --accent-very-soft: #f8f8fa;
    --accent-gradient: linear-gradient(135deg, #2a2a31, #111116);
    --accent-gradient-hover: linear-gradient(135deg, #111116, #000000);
    --lime: #8f949b;
    --cyan: #626b75;
}

body.theme-male {
    --accent: #4d55f5;
    --accent-dark: #2632c8;
    --pink: #4d55f5;
    --pink-dark: #2632c8;
    --accent-rgb: 77, 85, 245;
    --accent-soft: #e8ebff;
    --accent-very-soft: #f5f7ff;
    --accent-gradient: linear-gradient(135deg, #2797ff, #4d55f5);
    --accent-gradient-hover: linear-gradient(135deg, #4d55f5, #2632c8);
    --lime: #37d2ff;
    --cyan: #46c8ff;
}

body.theme-other {
    --accent: #ff7a18;
    --accent-dark: #7a4df5;
    --pink: #ff7a18;
    --pink-dark: #7a4df5;
    --accent-rgb: 255, 122, 24;
    --accent-soft: #fff0d8;
    --accent-very-soft: #fffaf2;
    --accent-gradient: linear-gradient(120deg, #ff2d83 0%, #ff8a17 28%, #ffe100 50%, #26d66f 70%, #2697ff 86%, #7a4df5 100%);
    --accent-gradient-hover: linear-gradient(120deg, #7a4df5 0%, #2697ff 25%, #26d66f 45%, #ffe100 62%, #ff8a17 80%, #ff2d83 100%);
    --lime: #26d66f;
    --cyan: #2697ff;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    overflow-x: hidden;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    overflow-x: hidden;
    background-color: #fff8fc;
    background-image:
        linear-gradient(90deg, rgba(var(--accent-rgb), .07) 1px, transparent 1px),
        linear-gradient(0deg, rgba(54, 199, 212, .06) 1px, transparent 1px);
    background-size: 34px 34px;
    letter-spacing: 0;
}

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

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

img {
    max-width: 100%;
    display: block;
}

main {
    flex: 1 0 auto;
    width: min(1180px, calc(100% - 28px));
    margin: 0 auto;
    padding: 22px 0 56px;
}

.site-footer {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 18px 14px 24px;
    color: var(--muted);
    font-size: .9rem;
    font-weight: 800;
    text-align: center;
    background: rgba(255, 255, 255, .78);
    border-top: 1px solid rgba(236, 45, 131, .10);
}

.site-footer a {
    color: var(--pink);
    font-weight: 950;
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 16px;
    align-items: center;
    min-height: 76px;
    padding: 12px max(14px, calc((100vw - 1180px) / 2));
    background: rgba(255, 255, 255, .92);
    border-bottom: 1px solid rgba(236, 45, 131, .14);
    backdrop-filter: blur(16px);
}

.brand {
    display: inline-flex;
    align-items: center;
    width: 152px;
}

.brand img {
    width: 100%;
    height: 40px;
    object-fit: contain;
}

.auth-shell .topbar {
    position: relative;
    min-height: 64px;
    background: rgba(255, 255, 255, .96);
    border-bottom: 0;
    box-shadow: none;
}

.auth-shell.page-login .topbar {
    display: none;
}

.auth-shell main {
    width: min(1320px, calc(100% - 28px));
    padding-top: 0;
}

.auth-shell.page-login .auth-page {
    min-height: 100vh;
}

.page-home {
    background: #fff;
    background-image: none;
}

.page-home main {
    width: 100%;
    padding: 0;
}

.page-home .topbar {
    position: relative;
    z-index: 5;
    grid-template-columns: auto 1fr;
    min-height: 126px;
    padding: 34px clamp(50px, 5.2vw, 82px) 16px;
    background: #fff;
}

.page-home .brand {
    width: clamp(220px, 20vw, 292px);
}

.page-home .brand img {
    height: auto;
}

.landing-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(34px, 4vw, 60px);
    color: #111116;
    font-size: 1.14rem;
    font-weight: 650;
}

.landing-nav a {
    white-space: nowrap;
}

.landing-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 174px;
    min-height: 52px;
    padding: 0 24px;
    border-radius: 12px;
    background: var(--accent-gradient);
    color: #fff;
    font-weight: 850;
    box-shadow: 0 12px 26px rgba(var(--accent-rgb), .20);
}

.landing-burger {
    display: none;
    width: 54px;
    height: 54px;
    border: 0;
    background: transparent;
    padding: 8px;
}

.landing-burger span {
    display: block;
    height: 5px;
    margin: 7px 0;
    border-radius: 999px;
    background: #111116;
}

.landing-page {
    --landing-pad: clamp(50px, 5.2vw, 82px);
    position: relative;
    overflow: hidden;
    background: #fff;
}

.landing-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 65%) minmax(420px, 1fr);
    min-height: calc(100vh - 126px);
    padding: 82px var(--landing-pad) 52px;
    overflow: hidden;
}

.landing-copy {
    position: relative;
    z-index: 3;
    display: grid;
    align-content: start;
    justify-items: start;
}

.landing-copy h1 {
    margin: 0;
    max-width: 980px;
    font-size: clamp(4.7rem, 6.4vw, 7.4rem);
    line-height: .94;
    font-weight: 950;
    letter-spacing: 0;
}

.landing-copy h1 span,
.landing-copy h1 strong {
    display: block;
}

.landing-copy h1 span {
    white-space: nowrap;
}

.landing-copy h1 strong {
    color: var(--pink);
}

body.theme-neutral .landing-copy h1 strong {
    color: var(--ink);
}

.landing-copy > p {
    max-width: 690px;
    margin: 42px 0 0;
    color: #4c4d54;
    font-size: clamp(1.45rem, 1.75vw, 2rem);
    line-height: 1.45;
}

.landing-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    min-width: min(520px, 100%);
    min-height: 86px;
    margin-top: 34px;
    padding: 0 34px;
    border-radius: 14px;
    background: var(--accent-gradient);
    color: #fff;
    font-size: clamp(1.45rem, 1.8vw, 1.85rem);
    font-weight: 900;
    box-shadow: 0 18px 32px rgba(var(--accent-rgb), .22);
}

.landing-primary b {
    margin-left: auto;
    font-size: 2.1rem;
    font-weight: 500;
}

.landing-trust {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    max-width: 620px;
    margin-top: 24px;
    color: #50515a;
    font-size: clamp(1.05rem, 1.3vw, 1.35rem);
    line-height: 1.45;
}

.landing-trust span {
    color: var(--pink);
    font-size: 1.8rem;
    line-height: 1;
}

.landing-visual {
    position: absolute;
    z-index: 2;
    right: 0;
    top: 10px;
    bottom: 0;
    width: min(58vw, 860px);
    pointer-events: none;
}

.landing-blob {
    position: absolute;
    right: -10%;
    top: 190px;
    bottom: auto;
    width: 82%;
    height: 70%;
    border-radius: 44% 56% 34% 66% / 46% 42% 58% 54%;
    background:
        linear-gradient(135deg, rgba(var(--accent-rgb), .28), rgba(var(--accent-rgb), .10)),
        var(--accent-soft);
}

.landing-blob::before,
.landing-blob::after {
    content: "";
    position: absolute;
    border: 2px solid rgba(255, 255, 255, .72);
    border-radius: 999px;
    transform: rotate(-64deg);
}

.landing-blob::before {
    inset: 12% 28% 6% 45%;
}

.landing-blob::after {
    inset: 20% 42% 15% 56%;
}

.landing-visual img {
    position: absolute;
    right: -12px;
    top: -18px;
    bottom: auto;
    height: min(96vh, 930px);
    max-height: 930px;
    object-fit: contain;
    object-position: bottom right;
    transform: scale(1.58);
    transform-origin: top right;
    filter: drop-shadow(0 24px 26px rgba(17, 17, 22, .13));
}

.landing-features {
    position: relative;
    z-index: 4;
    grid-column: 1 / 2;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    width: min(730px, 100%);
    margin-top: clamp(54px, 6vh, 92px);
}

.landing-feature {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 8px;
    padding: 0 24px;
    text-align: center;
}

.landing-feature + .landing-feature::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 8px;
    width: 1px;
    background: #ffc1dc;
}

.landing-feature span {
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    margin-bottom: 16px;
    border-radius: 20px;
    background: #ffe5f0;
    color: var(--pink);
}

.landing-feature svg {
    width: 42px;
    height: 42px;
    fill: none;
    stroke: currentColor;
    stroke-width: 5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.landing-feature h3 {
    margin: 0;
    color: #101015;
    font-size: clamp(1.25rem, 1.35vw, 1.6rem);
    line-height: 1.1;
}

.landing-feature p {
    margin: 0;
    color: #585963;
    font-size: clamp(1.05rem, 1.25vw, 1.36rem);
}

.landing-coach-card,
.landing-final-card {
    display: none;
}

.auth-page {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 14px;
    min-height: calc(100vh - 120px);
    padding: 24px;
}

.auth-page .auth-card {
    width: min(430px, 100%);
}

.page-login .auth-page {
    align-content: start;
    padding-top: clamp(22px, 5vh, 52px);
}

.auth-tania {
    display: flex;
    justify-content: center;
    width: min(430px, 100%);
    height: 205px;
    margin-bottom: -28px;
    overflow: hidden;
    pointer-events: none;
}

.auth-tania img {
    width: auto;
    height: 370px;
    object-fit: contain;
    object-position: center top;
    filter: drop-shadow(0 16px 22px rgba(17, 17, 22, .14));
}

.main-nav {
    display: flex;
    justify-content: center;
    gap: 8px;
    min-width: 0;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 42px;
    padding: 0 13px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--muted);
    font-weight: 800;
    white-space: nowrap;
}

.nav-link span {
    font-size: 1.1rem;
}

.nav-link.is-active,
.nav-link:hover {
    color: var(--ink);
    background: var(--soft);
    border-color: rgba(236, 45, 131, .24);
}

.account-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
}

.account-chip a {
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 900;
}

.logout-form {
    margin: 0;
}

.logout-form button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: auto;
    min-width: 38px;
    height: 34px;
    padding: 0 10px;
    border: 0;
    border-radius: 8px;
    background: var(--accent-soft);
    color: var(--pink);
    font-weight: 950;
}

.logout-form button span {
    font-size: 1rem;
    line-height: 1;
}

.logout-form button em {
    font-size: .82rem;
    font-style: normal;
    line-height: 1;
}

.avatar {
    display: inline-grid;
    place-items: center;
    flex: none;
    border-radius: 999px;
    object-fit: cover;
    background: var(--ink);
    color: #fff;
    font-weight: 950;
}

.avatar-mini {
    width: 34px;
    height: 34px;
}

.avatar-normal {
    width: 52px;
    height: 52px;
}

.avatar-large {
    width: 110px;
    height: 110px;
    border: 4px solid #fff;
    box-shadow: var(--shadow);
}

.flash-stack {
    position: fixed;
    top: 86px;
    right: 18px;
    z-index: 20;
    display: grid;
    gap: 8px;
    max-width: min(420px, calc(100vw - 28px));
}

.flash {
    padding: 13px 15px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: var(--shadow);
    font-weight: 800;
    animation: pop-in .22s ease-out;
}

.flash-success {
    border-color: rgba(85, 197, 59, .35);
    background: #f4ffe7;
}

.flash-danger {
    border-color: rgba(236, 45, 131, .35);
    background: #fff0f6;
}

.flash-warning {
    border-color: rgba(255, 212, 71, .65);
    background: #fff9df;
}

.tania-toast {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 30;
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr) 34px;
    align-items: end;
    gap: 12px;
    width: min(460px, calc(100vw - 28px));
    padding: 12px;
    border: 1px solid rgba(236, 45, 131, .18);
    border-radius: 8px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 22px 60px rgba(17, 17, 22, .18);
    animation: pop-in .22s ease-out;
}

.tania-toast img {
    align-self: end;
    width: 96px;
    height: 118px;
    object-fit: contain;
    object-position: center top;
    filter: drop-shadow(0 12px 18px rgba(17, 17, 22, .16));
}

.tania-toast div {
    align-self: center;
    display: grid;
    gap: 4px;
    min-width: 0;
}

.tania-toast strong {
    color: var(--pink);
    font-size: 1.05rem;
    font-weight: 950;
}

.tania-toast p {
    margin: 0;
    color: #43444d;
    font-weight: 750;
    line-height: 1.38;
}

.tania-toast button {
    align-self: start;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 8px;
    background: var(--accent-soft);
    color: var(--pink);
    font-size: 1.35rem;
    font-weight: 950;
    line-height: 1;
}

.home-page {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(350px, 430px);
    align-items: stretch;
    min-height: calc(100vh - 98px);
    border: 1px solid rgba(17, 17, 22, .10);
    border-radius: 8px;
    overflow: hidden;
    background:
        linear-gradient(110deg, #ffffff 0%, #ffffff 52%, #f7fff0 52%, #f7fff0 100%);
    box-shadow: 0 24px 70px rgba(17, 17, 22, .12);
}

.home-page::before {
    content: "";
    position: absolute;
    inset: auto -80px -110px 22%;
    height: 260px;
    background: linear-gradient(90deg, var(--pink), var(--lime), var(--cyan));
    transform: rotate(-5deg);
    opacity: .90;
}

.home-page::after {
    content: "";
    position: absolute;
    inset: 28px 430px auto auto;
    width: 120px;
    height: 120px;
    border: 18px solid rgba(236, 45, 131, .16);
    border-radius: 999px;
}

.auth-card,
.panel,
.metric-card,
.calorie-budget-panel,
.action-tile,
.badges-panel,
.progress-band,
.history-panel,
.coach-card,
.chat-panel,
.entry-card,
.photo-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    box-shadow: var(--shadow);
}

.home-hero {
    grid-column: 1 / 2;
    grid-row: 1;
    position: relative;
    z-index: 1;
    display: grid;
    align-content: center;
    gap: 20px;
    min-height: 650px;
    padding: clamp(28px, 5vw, 66px);
    padding-right: min(36vw, 430px);
    color: var(--ink);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .98), rgba(255, 255, 255, .86)),
        radial-gradient(circle at 12% 14%, rgba(236, 45, 131, .14), transparent 28%),
        radial-gradient(circle at 70% 72%, rgba(185, 242, 13, .22), transparent 30%);
}

.home-kicker {
    display: inline-flex;
    width: fit-content;
    padding: 8px 11px;
    border-radius: 8px;
    background: #111116;
    color: #fff;
    font-weight: 950;
    text-transform: uppercase;
    font-size: .82rem;
}

.home-hero h1 {
    max-width: 650px;
    margin: 0;
    font-size: clamp(2.85rem, 5.2vw, 5.65rem);
    line-height: .90;
    font-weight: 950;
}

.home-hero p {
    max-width: 590px;
    margin: 0;
    color: #4d4851;
    font-size: 1.12rem;
    line-height: 1.5;
}

.home-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}

.home-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 18px;
    border-radius: 8px;
    font-weight: 950;
    transition: transform .18s ease, box-shadow .18s ease;
}

.home-cta:hover {
    transform: translateY(-2px);
}

.home-cta.primary {
    background: var(--accent-gradient);
    color: #fff;
    box-shadow: 0 16px 28px rgba(var(--accent-rgb), .22);
}

.home-cta.ghost {
    border: 1px solid rgba(17, 17, 22, .16);
    background: #fff;
    color: var(--ink);
}

.home-action-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    max-width: 680px;
    margin-top: 8px;
}

.home-action-strip span {
    display: grid;
    gap: 5px;
    min-height: 92px;
    align-content: center;
    padding: 12px;
    border: 1px solid rgba(17, 17, 22, .10);
    border-radius: 8px;
    background: rgba(255, 255, 255, .92);
    color: var(--ink);
    font-weight: 950;
    box-shadow: 0 10px 24px rgba(17, 17, 22, .08);
}

.home-action-strip strong {
    font-size: 1.8rem;
}

.home-coach {
    grid-column: 1 / 2;
    grid-row: 1;
    position: relative;
    z-index: 2;
    display: grid;
    align-items: end;
    justify-self: end;
    width: min(38vw, 390px);
    min-width: 0;
    pointer-events: none;
    padding: 34px 24px 32px 0;
}

.tania-stage {
    position: relative;
    display: grid;
    justify-items: center;
    align-self: center;
    width: 100%;
}

.tania-stage img {
    width: 100%;
    aspect-ratio: 3 / 4.35;
    border: 1px solid rgba(17, 17, 22, .10);
    border-radius: 8px;
    object-fit: cover;
    object-position: center top;
    box-shadow: 0 24px 60px rgba(17, 17, 22, .20);
}

.tania-bubble {
    position: absolute;
    left: -18px;
    right: -10px;
    bottom: 18px;
    display: grid;
    gap: 4px;
    padding: 13px 14px;
    border: 2px solid rgba(185, 242, 13, .82);
    border-radius: 8px;
    background: rgba(255, 255, 255, .96);
    color: var(--ink);
    box-shadow: 0 14px 36px rgba(0, 0, 0, .22);
}

.tania-bubble strong {
    color: var(--pink);
    font-size: 1.05rem;
}

.tania-bubble span {
    color: var(--muted);
    line-height: 1.3;
    font-weight: 850;
}

.auth-card p,
.page-intro p,
.section-heading p,
.coach-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.auth-card,
.form-panel {
    display: grid;
    gap: 14px;
    align-content: start;
    padding: 24px;
}

.home-auth-card {
    grid-column: 2 / 3;
    grid-row: 1;
    z-index: 3;
    align-self: center;
    margin: 28px;
    border-color: rgba(17, 17, 22, .10);
    box-shadow: 0 24px 70px rgba(17, 17, 22, .14);
}

.auth-card h1,
.page-intro h1,
.coach-card h1 {
    margin: 0;
    font-size: 2rem;
    line-height: 1.05;
}

label {
    display: grid;
    gap: 7px;
    color: var(--ink);
    font-weight: 900;
}

input,
select,
textarea {
    width: 100%;
    min-height: 46px;
    padding: 11px 12px;
    border: 1px solid #ddd4de;
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    outline: none;
}

textarea {
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--pink);
    box-shadow: 0 0 0 4px rgba(236, 45, 131, .14);
}

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

.sex-theme-picker {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
    border: 0;
}

.sex-theme-picker legend {
    grid-column: 1 / -1;
    margin: 0 0 2px;
    color: var(--ink);
    font-size: .95rem;
    font-weight: 900;
}

.sex-theme-option {
    position: relative;
    min-width: 0;
    cursor: pointer;
}

.sex-theme-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.sex-theme-option span {
    display: grid;
    justify-items: center;
    gap: 6px;
    min-height: 112px;
    padding: 14px 10px;
    border: 2px solid rgba(17, 17, 22, .08);
    border-radius: 8px;
    background: #fff;
    text-align: center;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.sex-theme-option i {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 1.45rem;
    font-style: normal;
    font-weight: 950;
}

.sex-theme-option strong {
    color: var(--ink);
    font-size: .92rem;
    line-height: 1.1;
}

.sex-theme-option small {
    color: var(--muted);
    font-weight: 850;
}

.sex-theme-option input:checked + span {
    transform: translateY(-2px);
    border-color: var(--accent);
    background:
        linear-gradient(135deg, rgba(var(--accent-rgb), .13), rgba(255, 255, 255, .98)),
        #fff;
    box-shadow: 0 16px 34px rgba(var(--accent-rgb), .16);
}

.sex-theme-female i {
    background: #ffe5f0;
    color: #ec2d83;
}

.sex-theme-female input:checked + span {
    border-color: #ec2d83;
    box-shadow: 0 16px 34px rgba(236, 45, 131, .16);
}

.sex-theme-male i {
    background: #e8ebff;
    color: #4d55f5;
}

.sex-theme-male input:checked + span {
    border-color: #4d55f5;
    box-shadow: 0 16px 34px rgba(77, 85, 245, .16);
}

.sex-theme-other i {
    background: linear-gradient(135deg, #ff2d83, #ff8a17, #ffe100, #26d66f, #2697ff, #7a4df5);
    color: #fff;
}

.sex-theme-other input:checked + span {
    border-color: transparent;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(135deg, #ff2d83, #ff8a17, #ffe100, #26d66f, #2697ff, #7a4df5) border-box;
    box-shadow: 0 16px 34px rgba(122, 77, 245, .16);
}

.primary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 18px;
    border: 0;
    border-radius: 8px;
    background: var(--accent-gradient);
    color: #fff;
    font-weight: 950;
    box-shadow: 0 12px 24px rgba(var(--accent-rgb), .24);
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.primary-action:hover {
    transform: translateY(-2px);
    background: var(--accent-gradient-hover);
    box-shadow: 0 16px 28px rgba(var(--accent-rgb), .30);
}

.switch-link {
    justify-self: center;
    color: var(--pink-dark);
    font-weight: 900;
}

.switch-link-highlight {
    justify-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    padding: 0 18px;
    border: 2px solid rgba(236, 45, 131, .22);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(236, 45, 131, .12), rgba(255, 255, 255, .96)),
        #fff;
    color: var(--pink);
    box-shadow: 0 14px 30px rgba(236, 45, 131, .10);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.switch-link-highlight:hover {
    transform: translateY(-2px);
    border-color: rgba(236, 45, 131, .42);
    box-shadow: 0 18px 38px rgba(236, 45, 131, .16);
}

.photo-picker {
    position: relative;
    display: grid;
    gap: 8px;
    font-weight: 900;
}

.photo-picker input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.photo-picker-box {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 98px;
    padding: 16px;
    border: 2px dashed rgba(236, 45, 131, .34);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(236, 45, 131, .10), rgba(255, 255, 255, .92)),
        #fff;
    box-shadow: 0 14px 32px rgba(236, 45, 131, .09);
    cursor: pointer;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background .18s ease;
}

.photo-picker:hover .photo-picker-box,
.photo-picker input:focus + .photo-picker-box {
    border-color: var(--pink);
    background:
        linear-gradient(135deg, rgba(236, 45, 131, .16), rgba(255, 255, 255, .96)),
        #fff;
    box-shadow: 0 18px 38px rgba(236, 45, 131, .16);
    transform: translateY(-2px);
}

.photo-picker.has-file .photo-picker-box {
    border-style: solid;
    border-color: rgba(85, 197, 59, .55);
}

.photo-picker-icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 58px;
    height: 58px;
    border-radius: 8px;
    background: var(--accent-soft);
    color: var(--pink);
    font-size: 1.85rem;
}

.photo-picker strong,
.photo-picker small,
.photo-picker em {
    display: block;
}

.photo-picker strong {
    color: var(--ink);
    font-size: 1.02rem;
}

.photo-picker small {
    margin-top: 4px;
    color: var(--muted);
    font-weight: 750;
    line-height: 1.35;
}

.photo-picker em {
    margin-top: 8px;
    color: var(--pink);
    font-size: .86rem;
    font-style: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.meal-photo-picker {
    justify-items: center;
    gap: 10px;
    padding: 4px 0 2px;
}

.meal-photo-picker input:focus + .meal-photo-button,
.meal-photo-picker:hover .meal-photo-button {
    transform: translateY(-2px);
    border-color: var(--pink);
    box-shadow: 0 18px 38px rgba(236, 45, 131, .18);
}

.meal-photo-picker.has-file .meal-photo-button {
    border-color: rgba(85, 197, 59, .75);
    background: #f8fff0;
}

.meal-photo-button {
    display: grid;
    place-items: center;
    width: 86px;
    height: 86px;
    border: 2px solid rgba(236, 45, 131, .24);
    border-radius: 999px;
    background: #fff;
    color: var(--pink);
    box-shadow: 0 14px 32px rgba(17, 17, 22, .08);
    cursor: pointer;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.meal-photo-button svg {
    width: 36px;
    height: 36px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.meal-photo-picker em {
    min-height: 18px;
    max-width: 220px;
    margin-top: 0;
    text-align: center;
    color: var(--muted);
    font-size: .78rem;
}

.meal-photo-picker em:empty {
    display: none;
}

.avatar-upload {
    display: grid;
    justify-items: center;
    gap: 10px;
    padding: 2px 0;
}

.avatar-photo-picker {
    justify-items: center;
    gap: 0;
}

.avatar-photo-picker input:focus + .avatar-photo-button,
.avatar-photo-picker:hover .avatar-photo-button {
    transform: translateY(-2px);
    border-color: var(--pink);
    box-shadow: 0 16px 34px rgba(236, 45, 131, .18);
}

.avatar-photo-picker.has-file .avatar-photo-button {
    border-color: rgba(85, 197, 59, .72);
    background: #f8fff0;
}

.avatar-photo-button {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    border: 2px solid rgba(236, 45, 131, .24);
    border-radius: 999px;
    background: #fff;
    color: var(--pink);
    box-shadow: 0 12px 28px rgba(17, 17, 22, .08);
    cursor: pointer;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.avatar-photo-button svg {
    width: 30px;
    height: 30px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.avatar-photo-picker em {
    display: none;
}

.upload-preview {
    display: none;
    width: 100%;
    max-height: 320px;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(236, 45, 131, .18);
    box-shadow: 0 18px 38px rgba(17, 17, 22, .10);
}

.upload-preview.is-visible {
    display: block;
}

.avatar-upload-preview.upload-preview {
    width: 78px;
    height: 78px;
    max-height: none;
    aspect-ratio: 1;
    border-radius: 999px;
    border: 3px solid #fff;
    box-shadow: 0 14px 32px rgba(17, 17, 22, .13);
}

.meal-loading {
    display: none;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 4px 12px;
    align-items: center;
    padding: 13px 14px;
    border: 1px solid rgba(236, 45, 131, .18);
    border-radius: 8px;
    background: var(--accent-very-soft);
}

.meal-loading span {
    grid-row: span 2;
    width: 34px;
    height: 34px;
    border: 4px solid rgba(236, 45, 131, .18);
    border-top-color: var(--pink);
    border-radius: 999px;
    animation: spin .8s linear infinite;
}

.meal-loading strong {
    color: var(--ink);
}

.meal-loading small {
    color: var(--muted);
    font-weight: 800;
}

.meal-form > button.primary-action:not([name]) {
    display: none;
}

.meal-form.is-analyzing .meal-loading {
    display: grid;
}

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

.meal-draft-result {
    display: grid;
    gap: 4px;
    padding: 12px 14px;
    border: 1px solid rgba(85, 197, 59, .30);
    border-radius: 8px;
    background: #f8fff0;
}

.meal-draft-result strong {
    color: var(--ink);
}

.meal-draft-result span {
    color: var(--muted);
    font-weight: 850;
}

.primary-action.is-loading,
.secondary-action.is-loading,
.primary-action:disabled,
.secondary-action:disabled {
    cursor: wait;
    opacity: .78;
    transform: none;
    box-shadow: 0 10px 20px rgba(236, 45, 131, .18);
}

.dashboard {
    display: grid;
    gap: 20px;
}

.dashboard-section {
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 1px solid rgba(236, 45, 131, .12);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 44px rgba(17, 17, 22, .08);
}

.dashboard-section .section-heading {
    margin-bottom: 0;
}

.dashboard-actions-section {
    background:
        linear-gradient(135deg, #111116, #262029),
        #111116;
}

.dashboard-actions-section .section-heading h2 {
    color: #fff;
}

.dashboard-actions-section .section-heading p {
    color: rgba(255, 255, 255, .72);
}

.dashboard-actions-section .action-tile {
    position: relative;
    border-color: rgba(255, 255, 255, .14);
    background: #fff;
    box-shadow: none;
}

.dashboard-actions-section .action-tile::after {
    content: "+";
    position: absolute;
    top: 10px;
    right: 10px;
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: var(--pink);
    color: #fff;
    font-weight: 950;
}

.dashboard-stats-section {
    background:
        linear-gradient(135deg, rgba(236, 45, 131, .05), rgba(255, 255, 255, .96)),
        #fff;
}

.dashboard-stats-section .metric-card {
    box-shadow: none;
    background: rgba(255, 255, 255, .92);
}

.app-shell {
    background:
        linear-gradient(180deg, #ffffff 0%, var(--accent-very-soft) 48%, #ffffff 100%);
    background-attachment: fixed;
}

.app-shell main {
    width: min(1320px, calc(100% - 40px));
    padding-top: 28px;
}

.app-shell .topbar {
    min-height: 82px;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid rgba(236, 45, 131, .12);
    box-shadow: 0 14px 34px rgba(17, 17, 22, .06);
}

.app-shell .brand {
    width: 166px;
}

.app-shell .brand img {
    height: auto;
}

.app-shell .auth-card,
.app-shell .panel,
.app-shell .metric-card,
.app-shell .calorie-budget-panel,
.app-shell .action-tile,
.app-shell .badges-panel,
.app-shell .progress-band,
.app-shell .history-panel,
.app-shell .coach-card,
.app-shell .chat-panel,
.app-shell .entry-card,
.app-shell .photo-card,
.app-shell .hero-panel {
    border-color: rgba(236, 45, 131, .12);
    box-shadow: 0 18px 44px rgba(17, 17, 22, .08);
}

.hero-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(210px, 280px);
    gap: 22px;
    align-items: center;
    min-height: 330px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
        linear-gradient(120deg, rgba(var(--accent-rgb), .16), transparent 58%),
        linear-gradient(30deg, rgba(185, 242, 13, .28), transparent 48%),
        #fff;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.eyebrow {
    display: inline-flex;
    width: fit-content;
    padding: 7px 10px;
    border-radius: 8px;
    background: var(--accent-soft);
    color: var(--pink);
    font-weight: 950;
}

.hero-copy h1 {
    max-width: 720px;
    margin: 14px 0 12px;
    font-size: 2.45rem;
    line-height: 1.05;
    font-weight: 950;
}

.hero-copy p {
    max-width: 680px;
    margin: 0;
    color: var(--muted);
    font-size: 1.06rem;
    line-height: 1.55;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.hero-stats strong,
.hero-stats span {
    padding: 10px 12px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid var(--line);
    font-weight: 950;
}

.hero-stats strong {
    background: var(--yellow);
}

.hero-tania {
    display: grid;
    justify-items: center;
    gap: 12px;
}

.hero-tania img {
    height: 260px;
    object-fit: contain;
    animation: floaty 3.2s ease-in-out infinite;
}

.hero-tania a {
    padding: 10px 12px;
    border-radius: 8px;
    background: var(--accent-gradient);
    color: #fff;
    font-weight: 950;
    box-shadow: 0 12px 24px rgba(var(--accent-rgb), .22);
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}

.action-tile {
    display: grid;
    gap: 6px;
    min-height: 132px;
    padding: 16px;
    align-content: center;
    text-align: center;
    background:
        linear-gradient(180deg, #ffffff, var(--accent-very-soft));
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.action-tile:hover {
    transform: translateY(-4px);
    border-color: rgba(236, 45, 131, .38);
    box-shadow: 0 20px 42px rgba(236, 45, 131, .13);
}

.action-tile span {
    display: grid;
    place-items: center;
    justify-self: center;
    width: 58px;
    height: 58px;
    border-radius: 8px;
    background: var(--accent-soft);
    font-size: 2rem;
}

.action-tile strong {
    font-size: 1.02rem;
}

.action-tile small {
    color: var(--muted);
    line-height: 1.25;
}

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

.metric-card {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    min-height: 126px;
    padding: 16px;
}

.metric-card > span {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 8px;
    background: var(--accent-soft);
    color: var(--pink);
    font-size: 1.45rem;
}

.metric-card small,
.metric-card em {
    display: block;
    color: var(--muted);
    font-style: normal;
}

.metric-card strong {
    display: block;
    margin: 4px 0;
    font-size: 1.55rem;
    line-height: 1.05;
    overflow-wrap: anywhere;
}

.calorie-budget-panel {
    display: grid;
    gap: 16px;
    padding: 18px;
    background:
        linear-gradient(135deg, rgba(var(--accent-rgb), .08), rgba(255, 255, 255, .96)),
        #fff;
}

.calorie-budget-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
}

.calorie-budget-head span,
.calorie-budget-line span,
.calorie-balance-grid small {
    color: var(--muted);
    font-weight: 900;
}

.calorie-budget-head h2 {
    margin: 4px 0 0;
    font-size: 1.25rem;
    line-height: 1.05;
}

.calorie-budget-head > strong {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--pink);
    font-weight: 950;
    white-space: nowrap;
}

.calorie-balance-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.calorie-balance-grid > div {
    padding: 12px;
    border: 1px solid rgba(236, 45, 131, .12);
    border-radius: 8px;
    background: rgba(255, 255, 255, .84);
}

.calorie-balance-grid strong {
    display: block;
    margin-top: 4px;
    font-size: 1.12rem;
    line-height: 1.05;
}

.calorie-budget-line {
    display: grid;
    gap: 8px;
}

.calorie-budget-line > div:first-child {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: baseline;
    font-weight: 950;
}

.calorie-budget-track {
    height: 13px;
    overflow: hidden;
    border-radius: 999px;
    background: #eeeef2;
}

.calorie-budget-track span {
    display: block;
    height: 100%;
    min-width: 6px;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--pink), var(--lime));
    transition: width .35s ease;
}

.calorie-budget-track.is-over span {
    background: linear-gradient(90deg, #c82157, var(--pink));
}

.calorie-budget-line small {
    color: var(--muted);
    font-weight: 850;
}

.progress-band {
    display: grid;
    gap: 12px;
    padding: 18px;
}

.progress-band > div:first-child {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-weight: 950;
}

.progress-track {
    height: 14px;
    border-radius: 999px;
    overflow: hidden;
    background: #f0edf0;
}

.progress-track span {
    display: block;
    height: 100%;
    min-width: 8px;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--pink), var(--lime));
    transition: width .4s ease;
}

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

.weight-evolution-panel {
    grid-column: 1 / -1;
    padding: 24px 26px 18px;
    overflow: hidden;
}

.panel {
    padding: 18px;
}

.panel-title {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
    font-weight: 950;
}

.panel-title strong {
    color: var(--muted);
    font-size: .9rem;
}

.fit-chart {
    display: block;
    width: 100%;
    height: 240px;
}

.weight-chart {
    display: grid;
    gap: 12px;
}

.weight-chart-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.weight-chart-head h3 {
    margin: 0 0 12px;
    color: var(--ink);
    font-size: 1.34rem;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0;
}

.weight-chart-legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
    color: #5f5a68;
    font-size: .95rem;
    font-weight: 850;
}

.weight-chart-legend span {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.legend-line {
    display: inline-block;
    width: 34px;
    height: 0;
    border-top: 3px solid var(--lime);
    border-radius: 999px;
}

.legend-goal {
    border-top-color: var(--pink);
    border-top-style: dashed;
}

.weight-range-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 94px;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    background: #f7f7f8;
    color: var(--ink);
    font-size: .94rem;
    font-weight: 950;
    box-shadow: inset 0 0 0 1px rgba(17, 17, 22, .04);
}

.weight-chart-stage {
    width: 100%;
    overflow: hidden;
}

.weight-chart-svg {
    display: block;
    width: 100%;
    height: auto;
    overflow: hidden;
}

.weight-chart-svg text {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.weight-grid-line {
    stroke: rgba(17, 17, 22, .07);
    stroke-width: 1.2;
}

.weight-axis-label,
.weight-month-label {
    fill: #5f5a68;
    font-size: 16px;
    font-weight: 850;
}

.weight-axis-label {
    text-anchor: start;
}

.weight-month-label {
    text-anchor: middle;
    fill: #15151a;
    font-size: 18px;
    font-weight: 900;
}

.weight-area {
    fill: url(#weight-area-gradient);
}

.weight-line {
    fill: none;
    stroke: var(--lime);
    stroke-width: 5;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 7px 8px rgba(133, 215, 47, .18));
}

.weight-goal-line,
.weight-goal-drop {
    stroke: var(--pink);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 10 10;
}

.weight-goal-drop {
    stroke-width: 2.5;
}

.weight-milestone-link,
.weight-current-link {
    stroke: var(--lime);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-dasharray: 8 8;
    opacity: .72;
}

.weight-current-link {
    stroke-dasharray: none;
    opacity: .58;
}

.weight-marker-halo,
.weight-current-halo {
    fill: #fff;
    stroke: rgba(133, 215, 47, .40);
    stroke-width: 6;
}

.weight-marker,
.weight-current-marker {
    fill: var(--lime);
    stroke: #fff;
    stroke-width: 4;
}

.weight-callout rect {
    fill: #fff;
    stroke-width: 2.4;
    filter: drop-shadow(0 12px 18px rgba(17, 17, 22, .10));
}

.weight-callout text {
    text-anchor: middle;
}

.weight-callout-good rect,
.weight-callout-current rect {
    stroke: rgba(133, 215, 47, .55);
}

.weight-callout-goal rect {
    stroke: rgba(236, 45, 131, .72);
}

.weight-callout-value,
.weight-current-value {
    fill: var(--lime);
    font-size: 21px;
    font-weight: 950;
}

.weight-callout-note,
.weight-current-note {
    fill: #15151a;
    font-size: 15px;
    font-weight: 900;
}

.weight-goal-title,
.weight-goal-value {
    fill: var(--pink);
    font-weight: 950;
}

.weight-goal-title {
    font-size: 18px;
}

.weight-goal-value {
    font-size: 22px;
}

.weight-chart-empty {
    display: grid;
    place-items: center;
    min-height: 260px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(133, 215, 47, .12), rgba(236, 45, 131, .08));
    color: var(--muted);
    font-weight: 900;
    text-align: center;
}

.badges-panel {
    padding: 20px;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.section-heading h2,
.history-panel h2 {
    margin: 0;
    font-size: 1.35rem;
}

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

.badge-card {
    display: grid;
    gap: 6px;
    min-height: 116px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.badge-card span {
    font-size: 1.8rem;
}

.badge-card strong {
    font-size: 1rem;
}

.badge-card small {
    color: var(--muted);
    line-height: 1.3;
}

.badge-card.is-locked {
    opacity: .5;
    filter: grayscale(.6);
}

.badge-card.is-unlocked {
    border-color: rgba(185, 242, 13, .8);
    background: #fbfff0;
}

.page-grid {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(320px, 520px);
    gap: 18px;
    align-items: start;
}

.page-intro {
    display: grid;
    gap: 14px;
    align-content: start;
    min-height: 320px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
}

.page-icon {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 8px;
    background: var(--lime);
    font-size: 2rem;
}

.goal-summary {
    display: grid;
    gap: 6px;
    padding: 15px;
    border-radius: 8px;
    background: #111116;
    color: #fff;
}

.goal-summary strong {
    font-size: 2rem;
}

.goal-summary em {
    color: var(--lime);
    font-style: normal;
    font-weight: 950;
}

.inline-info {
    padding: 12px;
    border-radius: 8px;
    background: #f5f6fa;
    color: var(--muted);
}

.history-panel {
    margin-top: 18px;
    padding: 18px;
}

.compact-list {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.compact-list article {
    display: grid;
    grid-template-columns: minmax(120px, .28fr) minmax(110px, .20fr) minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.compact-list em {
    color: var(--muted);
    font-style: normal;
}

.entry-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.meal-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.meal-card-actions form {
    margin: 0;
}

.inline-delete-form {
    margin: 0;
    justify-self: end;
}

.mini-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid rgba(236, 45, 131, .20);
    border-radius: 8px;
    background: #fff;
    color: var(--pink);
    font-size: .86rem;
    font-weight: 950;
}

.mini-action-danger {
    color: #c82157;
    border-color: rgba(200, 33, 87, .22);
}

.workout-history-list {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.workout-history-row {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.workout-inline-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: var(--accent-very-soft);
    color: var(--pink);
    font-size: 1.35rem;
}

.workout-history-main {
    min-width: 0;
}

.workout-history-main strong,
.workout-history-main p {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.workout-history-main p {
    margin: 4px 0 0;
    color: var(--muted);
    font-weight: 800;
}

.workout-history-meta {
    display: grid;
    justify-items: end;
    gap: 2px;
    min-width: 104px;
}

.workout-history-meta .inline-delete-form {
    margin-top: 4px;
}

.workout-history-meta span,
.workout-history-meta small {
    color: var(--muted);
    font-weight: 850;
}

.entry-card {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    min-height: 150px;
    overflow: hidden;
}

.entry-card img {
    width: 100%;
    height: 100%;
    min-height: 150px;
    object-fit: cover;
}

.entry-card > div:not(.entry-icon) {
    display: grid;
    gap: 7px;
    align-content: center;
    padding: 14px;
}

.entry-card strong {
    font-size: 1.08rem;
}

.entry-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.35;
}

.entry-card small {
    color: var(--muted);
}

.entry-icon {
    display: grid;
    place-items: center;
    min-height: 150px;
    background: var(--lime);
    font-size: 2.4rem;
}

.tag {
    display: inline-flex;
    width: fit-content;
    padding: 5px 8px;
    border-radius: 8px;
    background: #f2f3f7;
    color: var(--muted);
    font-weight: 900;
    font-size: .82rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.photo-card {
    overflow: hidden;
}

.photo-card img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.photo-card div {
    display: grid;
    gap: 4px;
    padding: 12px;
}

.photo-card .inline-delete-form {
    justify-self: start;
    margin-top: 6px;
}

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

.empty-state {
    grid-column: 1 / -1;
    padding: 20px;
    border: 1px dashed #d9cfdb;
    border-radius: 8px;
    background: #fff;
    color: var(--muted);
    font-weight: 850;
    text-align: center;
}

.coach-layout {
    display: grid;
    grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.coach-card {
    display: grid;
    gap: 12px;
    justify-items: center;
    padding: 22px;
    text-align: center;
    position: sticky;
    top: 96px;
}

.coach-card img {
    height: 260px;
    object-fit: contain;
    animation: floaty 3.2s ease-in-out infinite;
}

.coach-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    width: 100%;
}

.coach-stats span {
    padding: 10px 8px;
    border-radius: 8px;
    background: #f6f7fb;
    font-weight: 950;
}

.chat-panel {
    display: grid;
    gap: 12px;
    padding: 18px;
}

.chat-history {
    display: grid;
    gap: 12px;
    min-height: 420px;
    align-content: start;
}

.chat-message {
    max-width: 82%;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #fff;
}

.chat-message p {
    margin: 6px 0 0;
    color: var(--muted);
    line-height: 1.45;
}

.chat-message.user {
    justify-self: end;
    background: #111116;
    color: #fff;
}

.chat-message.user p {
    color: rgba(255, 255, 255, .82);
}

.chat-message.assistant {
    border-color: rgba(236, 45, 131, .24);
    background: #fff6fb;
}

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

.workout-start {
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(360px, 560px);
    gap: 18px;
    align-items: stretch;
}

.workout-start-hero {
    display: grid;
    align-content: center;
    gap: 16px;
    min-height: 360px;
    padding: 28px;
    overflow: hidden;
    background:
        radial-gradient(circle at 85% 18%, rgba(var(--accent-rgb), .18), transparent 30%),
        linear-gradient(135deg, #fff, var(--accent-very-soft));
}

.workout-start-hero h1 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    max-width: 620px;
    font-size: clamp(2.3rem, 5vw, 4.4rem);
    line-height: .95;
}

.workout-title-picto {
    flex: 0 0 auto;
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    font-size: 2rem;
    line-height: 1;
}

.workout-start-hero p {
    max-width: 560px;
    margin: 0;
    color: var(--muted);
    font-size: 1.1rem;
    line-height: 1.55;
}

.workout-start-mini {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.workout-start-mini span,
.workout-volume {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 8px;
    background: rgba(236, 45, 131, .10);
    color: var(--pink-dark);
    font-weight: 950;
}

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

.workout-type-option {
    position: relative;
    min-height: 138px;
    cursor: pointer;
}

.workout-type-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.workout-type-option span {
    display: grid;
    gap: 8px;
    height: 100%;
    padding: 16px;
    border: 2px solid rgba(17, 17, 22, .08);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(17, 17, 22, .07);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.workout-type-option i {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 8px;
    background: #ffe5f1;
    font-style: normal;
    font-size: 1.7rem;
}

.workout-type-option strong {
    font-size: 1.05rem;
}

.workout-type-option small {
    color: var(--muted);
    line-height: 1.35;
}

.workout-type-option input:checked + span {
    border-color: var(--pink);
    background:
        linear-gradient(135deg, rgba(236, 45, 131, .14), rgba(255, 255, 255, .96)),
        #fff;
    box-shadow: 0 18px 38px rgba(236, 45, 131, .16);
    transform: translateY(-2px);
}

.workout-live {
    display: grid;
    gap: 18px;
}

.workout-live-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 18px;
    align-items: center;
    padding: 22px;
}

.workout-live-title {
    display: flex;
    align-items: center;
    gap: 16px;
}

.workout-live-icon,
.workout-simple-icon {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    border-radius: 8px;
    background: linear-gradient(135deg, #ffe5f1, #fff);
    font-size: 2.2rem;
    box-shadow: 0 14px 32px rgba(236, 45, 131, .12);
}

.workout-live-title small {
    color: var(--pink);
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0;
}

.workout-live-title h1 {
    margin: 2px 0;
    font-size: clamp(1.8rem, 3vw, 2.7rem);
    line-height: 1;
}

.workout-live-title p,
.workout-simple-card p {
    margin: 0;
    color: var(--muted);
}

.workout-live-stats {
    display: flex;
    gap: 10px;
}

.workout-live-stats span {
    display: grid;
    min-width: 78px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #fff6fb;
    text-align: center;
}

.workout-live-stats strong {
    font-size: 1.5rem;
}

.workout-live-stats small {
    color: var(--muted);
    font-weight: 900;
}

.secondary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 16px;
    border: 1px solid rgba(17, 17, 22, .12);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    font-weight: 950;
    box-shadow: 0 10px 24px rgba(17, 17, 22, .07);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.secondary-action:hover {
    transform: translateY(-1px);
    border-color: rgba(236, 45, 131, .34);
    box-shadow: 0 14px 28px rgba(236, 45, 131, .12);
}

.danger-action {
    color: #d12b65;
}

.workout-live-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
    gap: 18px;
    align-items: start;
}

.workout-builder,
.workout-finish-card,
.workout-simple-card {
    display: grid;
    gap: 16px;
    padding: 20px;
}

.workout-exercise-form {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(150px, .75fr) auto;
    gap: 12px;
    align-items: end;
    padding: 14px;
    border-radius: 8px;
    background: #f8f8fb;
}

.workout-exercise-list {
    display: grid;
    gap: 12px;
}

.workout-empty {
    padding: 18px;
    border: 1px dashed rgba(236, 45, 131, .38);
    border-radius: 8px;
    background: #fff7fb;
    color: var(--muted);
    font-weight: 900;
}

.workout-exercise-card {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(17, 17, 22, .06);
}

.workout-exercise-card header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.workout-exercise-card header > span {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: #111116;
    color: #fff;
    font-weight: 950;
}

.workout-exercise-card header strong {
    display: block;
    font-size: 1.15rem;
}

.workout-exercise-card header small {
    color: var(--muted);
    font-weight: 800;
}

.workout-set-list {
    display: grid;
    gap: 8px;
}

.workout-set-list em {
    padding: 10px 12px;
    border-radius: 8px;
    background: #f6f7fb;
    color: var(--muted);
    font-style: normal;
    font-weight: 850;
}

.workout-set-row {
    display: grid;
    grid-template-columns: 90px 110px 90px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 8px;
    background: #fff6fb;
}

.workout-set-row span,
.workout-set-row small {
    color: var(--muted);
    font-weight: 850;
}

.workout-set-row strong,
.workout-set-row b {
    color: var(--ink);
}

.workout-set-form {
    display: grid;
    grid-template-columns: minmax(90px, .7fr) minmax(110px, .8fr) minmax(120px, 1fr) auto;
    gap: 10px;
    align-items: end;
}

.workout-finish-card {
    position: sticky;
    top: 18px;
}

.workout-finish-card .primary-action:disabled {
    cursor: not-allowed;
    opacity: .55;
    transform: none;
    box-shadow: none;
}

.workout-finish-help {
    color: var(--muted);
    font-weight: 850;
}

.workout-simple {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
    gap: 18px;
    align-items: start;
}

.workout-simple-card {
    min-height: 280px;
    align-content: center;
    background:
        radial-gradient(circle at 80% 20%, rgba(185, 242, 13, .22), transparent 34%),
        linear-gradient(135deg, #fff, var(--accent-very-soft));
}

.workout-simple-card h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.3rem);
    line-height: 1;
}

@keyframes floaty {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes pop-in {
    from { opacity: 0; transform: translateY(-8px) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 980px) {
    .topbar {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .main-nav {
        width: 100%;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 2px;
    }

    .account-chip {
        width: 100%;
        justify-content: center;
    }

    .home-page,
    .hero-panel,
    .page-grid,
    .coach-layout {
        grid-template-columns: 1fr;
    }

    .home-page::after {
        inset: 20px -40px auto auto;
        opacity: .55;
    }

    .home-hero,
    .home-coach,
    .home-auth-card {
        grid-column: 1;
        grid-row: auto;
    }

    .home-hero {
        min-height: auto;
        padding: 34px 28px 22px;
        padding-right: 28px;
    }

    .home-coach {
        display: grid;
        width: min(420px, calc(100% - 40px));
        justify-self: center;
        padding: 0 0 18px;
    }

    .home-auth-card {
        margin: 0;
        border-radius: 0;
        box-shadow: none;
    }

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

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

    .charts-grid,
    .entry-grid {
        grid-template-columns: 1fr;
    }

    .coach-card {
        position: static;
    }

    .workout-start,
    .workout-live-grid,
    .workout-simple {
        grid-template-columns: 1fr;
    }

    .workout-live-head {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .workout-live-stats {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .workout-cancel-form {
        justify-self: start;
    }

    .workout-finish-card {
        position: static;
    }
}

@media (max-width: 640px) {
    main {
        width: min(100% - 18px, 1180px);
        padding-top: 12px;
    }

    .brand {
        width: 150px;
    }

    .auth-card,
    .hero-panel,
    .page-intro,
    .form-panel,
    .panel,
    .badges-panel,
    .history-panel,
    .chat-panel,
    .coach-card {
        padding: 14px;
    }

    .auth-page {
        gap: 10px;
        padding: 16px 18px 24px;
    }

    .page-login .auth-page {
        padding-top: 18px;
    }

    .auth-tania {
        height: 176px;
        margin-bottom: -26px;
    }

    .auth-tania img {
        width: auto;
        height: 320px;
    }

    .tania-toast {
        left: 12px;
        right: 12px;
        bottom: 12px;
        grid-template-columns: 76px minmax(0, 1fr) 32px;
        width: auto;
        gap: 9px;
        padding: 10px;
    }

    .tania-toast img {
        width: 76px;
        height: 94px;
    }

    .tania-toast strong {
        font-size: .98rem;
    }

    .tania-toast p {
        font-size: .88rem;
    }

    .home-page {
        width: 100%;
    }

    .home-page::before {
        inset: auto -70px -130px 6%;
        height: 220px;
    }

    .home-page::after {
        display: none;
    }

    .home-hero {
        padding: 22px 14px 18px;
    }

    .home-hero h1 {
        font-size: 2.7rem;
        line-height: .94;
    }

    .home-hero p {
        font-size: 1rem;
    }

    .home-cta-row {
        display: grid;
        grid-template-columns: 1fr;
    }

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

    .home-action-strip span {
        min-height: 78px;
    }

    .home-coach {
        width: min(360px, calc(100% - 28px));
    }

    .tania-bubble {
        left: 10px;
        right: 10px;
        bottom: 10px;
    }

    .hero-tania img,
    .coach-card img {
        height: 210px;
        justify-self: center;
    }

    .hero-copy h1,
    .auth-card h1,
    .page-intro h1 {
        font-size: 1.65rem;
    }

    .quick-actions,
    .metric-grid,
    .calorie-balance-grid,
    .badges-grid,
    .gallery-grid,
    .field-row,
    .coach-stats {
        grid-template-columns: 1fr;
    }

    .sex-theme-picker {
        grid-template-columns: 1fr;
    }

    .sex-theme-option span {
        grid-template-columns: 44px minmax(0, 1fr) auto;
        justify-items: start;
        align-items: center;
        min-height: 68px;
        text-align: left;
    }

    .sex-theme-option i {
        grid-row: span 2;
    }

    .sex-theme-option small {
        align-self: start;
    }

    .weight-chart-head {
        flex-direction: column;
        align-items: stretch;
    }

    .weight-chart-head h3 {
        font-size: 1.05rem;
    }

    .weight-range-pill {
        align-self: flex-start;
        min-height: 38px;
    }

    .action-tile {
        grid-template-columns: 54px minmax(0, 1fr);
        text-align: left;
        min-height: 86px;
        align-items: center;
    }

    .action-tile span {
        grid-row: span 2;
        text-align: center;
    }

    .compact-list article,
    .entry-card {
        grid-template-columns: 1fr;
    }

    .inline-delete-form {
        justify-self: start;
    }

    .calorie-budget-head,
    .calorie-budget-line > div:first-child {
        flex-direction: column;
        align-items: flex-start;
    }

    .workout-history-row {
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .workout-history-meta {
        grid-column: 2;
        justify-items: start;
        grid-template-columns: repeat(3, auto);
        gap: 8px;
        min-width: 0;
    }

    .workout-history-meta .inline-delete-form {
        grid-column: 1 / -1;
    }

    .entry-card img,
    .entry-icon {
        height: 190px;
    }

    .chat-form {
        grid-template-columns: 1fr;
    }

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

    .workout-start-hero {
        min-height: auto;
        padding: 18px;
    }

    .workout-start-hero h1 {
        font-size: 2.3rem;
    }

    .workout-type-grid,
    .workout-exercise-form,
    .workout-set-form,
    .meal-actions {
        grid-template-columns: 1fr;
    }

    .workout-live-title {
        align-items: flex-start;
    }

    .workout-live-icon,
    .workout-simple-icon {
        width: 58px;
        height: 58px;
        font-size: 1.8rem;
    }

    .workout-live-stats span {
        min-width: 0;
        padding: 9px 8px;
    }

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

    .workout-set-row small {
        grid-column: 1 / -1;
    }
}

@media (max-width: 980px) {
    .page-home .topbar {
        grid-template-columns: auto auto;
        justify-content: space-between;
        justify-items: stretch;
        min-height: 112px;
        padding: 30px 50px 10px;
    }

    .page-home .brand {
        width: 220px;
    }

    .landing-nav {
        display: flex;
        justify-self: end;
        justify-content: flex-end;
        gap: 0;
    }

    .landing-login {
        min-width: 162px;
        min-height: 48px;
        padding: 0 20px;
        border-radius: 11px;
        font-size: 1.05rem;
    }

    .landing-hero {
        display: block;
        min-height: 1000px;
        padding: 94px 50px 0;
    }

    .landing-copy {
        width: min(520px, 58vw);
        margin-left: 10px;
    }

    .landing-copy h1 {
        font-size: clamp(4rem, 8.9vw, 5.45rem);
        line-height: .98;
    }

    .landing-copy > p {
        margin-top: 38px;
        font-size: clamp(1.5rem, 3.1vw, 1.9rem);
    }

    .landing-primary {
        min-width: min(410px, 100%);
        min-height: 74px;
        margin-top: 34px;
        font-size: 1.72rem;
    }

    .landing-copy .landing-primary {
        width: min(410px, 100%);
        min-width: 0;
        min-height: 92px;
        margin-top: 42px;
    }

    .landing-copy .landing-primary b {
        display: none;
    }

    .landing-trust {
        max-width: 430px;
        margin-top: 24px;
        font-size: 1.22rem;
    }

    .landing-visual {
        right: -18px;
        top: 0;
        bottom: 58px;
        width: min(62vw, 560px);
    }

    .landing-blob {
        right: -10%;
        top: 142px;
        bottom: auto;
        width: 86%;
        height: 70%;
    }

    .landing-visual img {
        right: -8px;
        top: 0;
        bottom: auto;
        height: min(118vh, 1360px);
        transform: scale(1.18);
        transform-origin: top right;
    }

    .landing-features {
        position: absolute;
        left: 50px;
        right: 50px;
        bottom: -16px;
        width: auto;
        margin: 0;
        padding: 55px 18px;
        border-radius: 26px;
        background: rgba(255, 255, 255, .94);
        box-shadow: 0 20px 55px rgba(17, 17, 22, .11);
        backdrop-filter: blur(12px);
    }

    .landing-feature span {
        width: 78px;
        height: 78px;
    }

    .landing-feature h3 {
        font-size: 1.42rem;
        max-width: 100%;
    }

    .landing-feature p {
        font-size: 1.22rem;
    }

    .landing-coach-card {
        display: grid;
        grid-template-columns: 170px minmax(0, 1fr) 64px;
        gap: 24px;
        align-items: center;
        margin: 24px 50px 0;
        padding: 24px 28px;
        border-radius: 26px;
        background: #fff;
        box-shadow: 0 18px 50px rgba(17, 17, 22, .09);
    }

    .landing-coach-card img {
        width: 150px;
        height: 150px;
        border-radius: 999px;
        object-fit: cover;
        object-position: center top;
        background: #ffdceb;
    }

    .landing-coach-card h2,
    .landing-final-card h2 {
        margin: 0;
        font-size: 2.1rem;
        line-height: 1.15;
        max-width: 100%;
        overflow-wrap: break-word;
    }

    .landing-coach-card h2 span {
        color: var(--pink);
    }

    .landing-coach-card p,
    .landing-final-card p {
        margin: 16px 0 0;
        color: #55565f;
        font-size: 1.55rem;
        line-height: 1.28;
    }

    .landing-coach-card > strong {
        color: var(--pink);
        font-size: 4.8rem;
        line-height: 1;
        font-weight: 950;
    }

    .landing-final-card {
        display: grid;
        justify-items: center;
        margin: 30px 50px 0;
        padding: 34px 48px 24px;
        border-radius: 24px 24px 0 0;
        background: linear-gradient(180deg, #ffe8f2 0%, #fff 100%);
        text-align: center;
    }

    .landing-final-card .landing-primary {
        width: 100%;
        max-width: none;
        margin-top: 26px;
    }

    .landing-final-card .landing-trust {
        max-width: none;
        justify-content: center;
        margin-top: 20px;
    }
}

@media (max-width: 640px) {
    .page-home main {
        width: 100%;
        padding-top: 0;
    }

    .page-home .topbar,
    .landing-page {
        width: 100vw;
        max-width: 100vw;
    }

    .page-home .topbar {
        min-height: 72px;
        padding: 18px 24px 4px;
        overflow: hidden;
    }

    .page-home .brand {
        width: 116px;
    }

    .landing-login {
        min-width: 122px;
        min-height: 40px;
        padding: 0 12px;
        border-radius: 10px;
        font-size: .86rem;
        box-shadow: 0 10px 20px rgba(236, 45, 131, .16);
    }

    .page-home .landing-nav {
        position: absolute;
        top: 18px;
        right: 24px;
        transform: translateX(-54px);
    }

    .landing-burger {
        width: 42px;
        height: 42px;
        padding: 6px;
        justify-self: end;
        transform: translateX(-54px);
    }

    .landing-burger span {
        height: 3px;
        margin: 5px 0;
    }

    .landing-hero {
        min-height: 560px;
        padding: 34px 24px 0;
    }

    .landing-copy {
        width: min(285px, 70vw);
        margin-left: 0;
    }

    .landing-copy h1 {
        font-size: clamp(2.35rem, 9.8vw, 3rem);
        line-height: .98;
    }

    .landing-copy > p {
        max-width: min(265px, 68vw);
        margin-top: 20px;
        font-size: .92rem;
        line-height: 1.42;
    }

    .landing-primary {
        width: min(300px, 72vw);
        min-width: 0;
        min-height: 60px;
        margin-top: 22px;
        padding: 0 16px;
        border-radius: 10px;
        font-size: 1.14rem;
        font-weight: 950;
        white-space: nowrap;
    }

    .landing-copy .landing-primary b {
        display: none;
    }

    .landing-primary b {
        font-size: 1.25rem;
    }

    .landing-trust {
        width: min(280px, 68vw);
        margin-top: 18px;
        gap: 8px;
        font-size: .82rem;
        line-height: 1.48;
    }

    .landing-trust span {
        font-size: 1.25rem;
    }

    .landing-visual {
        right: -18px;
        top: 0;
        bottom: 18px;
        width: min(62vw, 310px);
    }

    .landing-visual img {
        right: 0;
        top: 0;
        bottom: auto;
        height: min(72vh, 620px);
        transform: scale(1.08);
        transform-origin: top right;
    }

    .landing-blob {
        right: -10%;
        top: 72px;
        bottom: auto;
        width: 88%;
        height: 68%;
    }

    .landing-features {
        left: 24px;
        right: 24px;
        bottom: -1px;
        padding: 22px 8px;
        border-radius: 20px;
        overflow: hidden;
    }

    .landing-feature {
        padding: 0 8px;
        min-width: 0;
    }

    .landing-feature span {
        width: 54px;
        height: 54px;
        border-radius: 16px;
        margin-bottom: 10px;
    }

    .landing-feature svg {
        width: 32px;
        height: 32px;
    }

    .landing-feature h3 {
        font-size: .66rem;
        line-height: 1.12;
        overflow-wrap: break-word;
    }

    .landing-feature p {
        font-size: .66rem;
        line-height: 1.18;
    }

    .landing-coach-card {
        grid-template-columns: 98px minmax(0, 1fr) 34px;
        gap: 14px;
        width: calc(100vw - 48px);
        margin: 18px 24px 0;
        padding: 18px;
        border-radius: 20px;
    }

    .landing-coach-card img {
        width: 86px;
        height: 86px;
    }

    .landing-coach-card h2,
    .landing-final-card h2 {
        width: 100%;
        font-size: 1.06rem;
        max-width: 100%;
        overflow-wrap: break-word;
        white-space: normal;
        text-wrap: balance;
    }

    .landing-coach-card p,
    .landing-final-card p {
        margin-top: 8px;
        width: 100%;
        font-size: .82rem;
        overflow-wrap: break-word;
    }

    .landing-coach-card > strong {
        justify-self: center;
        font-size: 2.35rem;
    }

    .landing-final-card {
        width: calc(100vw - 48px);
        margin: 20px 24px 0;
        padding: 24px 16px 18px;
        border-radius: 18px 18px 0 0;
        overflow: hidden;
    }

    .landing-final-card .landing-primary {
        min-width: 0;
        width: calc(100% - 44px);
    }
}

@media (max-width: 980px) {
    .app-shell .topbar {
        grid-template-columns: auto minmax(0, 1fr);
        justify-items: stretch;
        gap: 12px;
        min-height: 68px;
        padding: 10px 16px;
    }

    .app-shell .main-nav {
        display: none;
    }

    .app-shell .brand {
        width: 138px;
    }

    .app-shell .account-chip {
        width: auto;
        max-width: min(270px, 62vw);
        justify-self: end;
        justify-content: flex-end;
        padding: 6px 7px;
        border-color: rgba(236, 45, 131, .14);
        box-shadow: 0 10px 24px rgba(17, 17, 22, .06);
    }

    .app-shell .account-chip a {
        max-width: 112px;
    }
}

@media (max-width: 640px) {
    .app-shell .topbar {
        padding: 9px 12px;
    }

    .app-shell .brand {
        width: 120px;
    }

    .app-shell .account-chip {
        max-width: 64vw;
        gap: 6px;
    }

    .app-shell .avatar-mini {
        width: 30px;
        height: 30px;
    }

    .app-shell .account-chip a {
        max-width: 84px;
        font-size: .88rem;
    }

    .app-shell .logout-form button {
        height: 32px;
        padding: 0 9px;
    }

    .app-shell .logout-form button em {
        font-size: .76rem;
    }
}

.tania-toast {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: grid;
    grid-template-columns: minmax(260px, 420px) minmax(280px, 520px);
    place-content: center;
    align-items: center;
    gap: clamp(18px, 4vw, 42px);
    width: 100vw;
    max-width: none;
    padding: clamp(18px, 5vw, 56px);
    border: 0;
    border-radius: 0;
    background:
        radial-gradient(circle at 35% 20%, rgba(236, 45, 131, .20), transparent 30%),
        rgba(17, 17, 22, .72);
    box-shadow: none;
    backdrop-filter: blur(12px);
    animation: pop-in .24s ease-out;
}

.tania-toast img {
    justify-self: end;
    align-self: end;
    width: min(38vw, 420px);
    height: min(78vh, 620px);
    object-fit: contain;
    object-position: center bottom;
    filter: drop-shadow(0 24px 34px rgba(0, 0, 0, .32));
}

.tania-toast div {
    align-self: center;
    display: grid;
    gap: 10px;
    min-width: 0;
    padding: clamp(20px, 4vw, 34px);
    border-radius: 8px;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 24px 70px rgba(0, 0, 0, .24);
}

.tania-toast strong {
    color: var(--pink);
    font-size: clamp(1.45rem, 3vw, 2.25rem);
    font-weight: 950;
}

.tania-toast p {
    margin: 0;
    color: #24242b;
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    font-weight: 850;
    line-height: 1.45;
}

.tania-toast button {
    position: fixed;
    top: 18px;
    right: 18px;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 999px;
    background: #fff;
    color: var(--pink);
    font-size: 2rem;
    font-weight: 950;
    line-height: 1;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .20);
}

@media (max-width: 640px) {
    .tania-toast {
        grid-template-columns: 1fr;
        place-content: end center;
        gap: 0;
        padding: 20px 16px 24px;
    }

    .tania-toast img {
        justify-self: center;
        width: min(78vw, 320px);
        height: 48vh;
        margin-bottom: -22px;
    }

    .tania-toast div {
        padding: 18px;
    }
}
