@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Fraunces:opsz,wght@9..144,500;9..144,700&family=Manrope:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap");

:root {
    --bg-base: #f8f3ea;
    --bg-soft: #f1e7d5;
    --ink-900: #1e1f26;
    --ink-700: #41444f;
    --ink-500: #636775;
    --brand: #1f4e5f;
    --brand-alt: #d66a4a;
    --surface: #ffffff;
    --ring: rgba(31, 78, 95, 0.2);
    --shadow: 0 18px 40px rgba(30, 31, 38, 0.12);
}

.cp-status-badge {
    display: inline-block;
    padding: .35em .65em;
    font-size: .75em;
    line-height: 1;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: .25rem;
    background-color: var(--cp-badge-bg-light, rgba(108,117,125,0.15));
    color: var(--cp-badge-fg-light, #5c646b);
    border: 1px solid var(--cp-badge-border-light, rgba(108,117,125,0.40));
}

body.ea-dark-scheme .cp-status-badge,
html[data-bs-theme="dark"] .cp-status-badge,
body[data-ea-dark-scheme-is-enabled="true"][data-ea-color-scheme="dark"] .cp-status-badge {
    background-color: var(--cp-badge-bg-dark, rgba(108,117,125,0.25));
    color: var(--cp-badge-fg-dark, #cbd1d7);
    border-color: var(--cp-badge-border-dark, rgba(108,117,125,0.55));
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
    color: var(--ink-900);
    background:
        radial-gradient(circle at 12% 10%, #f7dcb6 0, rgba(247, 220, 182, 0) 30%),
        radial-gradient(circle at 88% 0, #d5e5ec 0, rgba(213, 229, 236, 0) 33%),
        linear-gradient(180deg, var(--bg-base) 0%, #fdfbf7 42%, #ffffff 100%);
    min-height: 100vh;
}

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

.container {
    width: min(1120px, 92vw);
    margin: 0 auto;
}

.site-header {
    padding: 1.2rem 0;
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(8px);
    background: rgba(248, 243, 234, 0.85);
    border-bottom: 1px solid rgba(65, 68, 79, 0.08);
}

.nav-shell {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    margin-right: auto;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 0.55rem;
    background: linear-gradient(130deg, var(--brand), #3f798f);
    color: #fff;
    font-size: 0.88rem;
}

.brand-mark-icon {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.brand-text {
    font-size: 1.06rem;
}

.main-nav {
    display: flex;
    gap: 1.35rem;
    color: var(--ink-700);
    font-weight: 500;
}

.main-nav a {
    position: relative;
    padding-bottom: 0.25rem;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    transform-origin: left;
    transform: scaleX(0);
    background: var(--brand-alt);
    transition: transform 180ms ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
    transform: scaleX(1);
}

.signin-button {
    padding: 0.6rem 1rem;
    border-radius: 999px;
    border: 1px solid transparent;
    color: #fff;
    background: linear-gradient(120deg, #8c2f1f, #6f2318);
    font-weight: 700;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.signin-button:hover,
.signin-button:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(214, 106, 74, 0.3);
}

.hero {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
    align-items: center;
    padding: 4.2rem 0 3.2rem;
    animation: reveal 500ms ease-out;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.74rem;
    color: var(--brand);
    font-weight: 700;
    margin: 0 0 0.65rem;
}

.hero h1 {
    font-family: "Fraunces", Georgia, serif;
    font-size: clamp(2rem, 3.7vw, 3.45rem);
    line-height: 1.06;
    margin: 0;
    max-width: 16ch;
}

.lead {
    color: var(--ink-700);
    font-size: 1.08rem;
    line-height: 1.65;
    margin: 1rem 0 0;
    max-width: 58ch;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1.6rem;
}

.primary-action,
.secondary-action {
    border-radius: 999px;
    padding: 0.72rem 1.16rem;
    font-weight: 600;
}

.primary-action {
    color: #fff;
    background: var(--brand);
}

.secondary-action {
    color: var(--brand);
    border: 1px solid rgba(31, 78, 95, 0.28);
    background: rgba(255, 255, 255, 0.65);
}

.hero-card {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(31, 78, 95, 0.13);
    border-radius: 1.15rem;
    padding: 1.4rem;
    box-shadow: var(--shadow);
    animation: reveal 640ms ease-out;
}

.hero-card p {
    color: var(--ink-500);
    margin: 0;
    font-size: 0.9rem;
}

.hero-card h2 {
    font-size: 1.4rem;
    margin: 0.5rem 0 0.75rem;
}

.hero-card ul {
    margin: 0;
    padding-left: 1.15rem;
    color: var(--ink-700);
    line-height: 1.75;
}

.info-strip {
    background: linear-gradient(110deg, rgba(31, 78, 95, 0.96), rgba(22, 43, 57, 0.93));
    color: #f6f9fb;
    padding: 2.1rem 0;
}

.info-grid {
    display: grid;
    gap: 1.3rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-grid h3 {
    margin: 0 0 0.45rem;
    font-size: 1.08rem;
}

.info-grid p {
    margin: 0;
    line-height: 1.65;
    color: rgba(246, 249, 251, 0.88);
}

.section-heading h2 {
    margin: 0;
    font-family: "Fraunces", Georgia, serif;
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    line-height: 1.2;
    max-width: 24ch;
}

.portfolio {
    padding: 3.3rem 0;
}

.portfolio-grid {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
    grid-template-columns: 1.1fr 0.9fr;
    grid-template-rows: 220px 220px;
}

.tile {
    border-radius: 1rem;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 1rem;
    color: #fff;
    font-weight: 600;
    box-shadow: var(--shadow);
}

.tile::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20, 22, 30, 0) 28%, rgba(20, 22, 30, 0.7) 100%);
}

.tile span {
    position: relative;
}

.tile-a {
    grid-row: 1 / 3;
    background: linear-gradient(140deg, #56758a, #d2745a);
}

.tile-b {
    background: linear-gradient(130deg, #8aa3ae, #5c706e);
}

.tile-c {
    background: linear-gradient(145deg, #4f5969, #8e8778);
}

.process {
    padding: 1.5rem 0 3.4rem;
}

.steps {
    margin-top: 1.4rem;
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.steps article {
    background: var(--surface);
    border: 1px solid rgba(31, 78, 95, 0.15);
    border-radius: 0.9rem;
    padding: 1rem;
}

.steps strong {
    display: inline-grid;
    place-items: center;
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 50%;
    background: rgba(31, 78, 95, 0.12);
    color: var(--brand);
}

.steps h3 {
    margin: 0.8rem 0 0.35rem;
}

.steps p {
    margin: 0;
    color: var(--ink-700);
    line-height: 1.55;
}

.contact {
    margin-bottom: 3.5rem;
    padding: 1.35rem;
    border-radius: 1.05rem;
    border: 1px solid rgba(214, 106, 74, 0.24);
    background: linear-gradient(115deg, #ffffff, #fff6f2);
    display: flex;
    gap: 1.2rem;
    justify-content: space-between;
    align-items: center;
}

.contact h2 {
    margin: 0;
}

.contact p:last-child {
    margin-bottom: 0;
    color: var(--ink-700);
}

.signin-button.large {
    white-space: nowrap;
    padding: 0.8rem 1.2rem;
}

@keyframes reveal {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 960px) {
    .main-nav {
        display: none;
    }

    .hero {
        grid-template-columns: 1fr;
        gap: 1.2rem;
        padding-top: 2.3rem;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        grid-template-rows: 210px 210px 210px;
    }

    .tile-a {
        grid-row: auto;
    }

    .info-grid,
    .steps {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 620px) {
    .site-header {
        padding: 0.9rem 0;
    }

    .brand-text {
        font-size: 0.98rem;
    }

    .hero h1 {
        font-size: clamp(1.8rem, 11vw, 2.5rem);
    }
}

/* --- Home redesign: editorial photography look -------------------------------- */
.home-page {
    --photo-1: url("/images/home-defaults/home-default-1.jpg");
    --photo-2: url("/images/home-defaults/home-default-2.jpg");
    --photo-3: url("/images/home-defaults/home-default-3.jpg");
    --photo-4: url("/images/home-defaults/home-default-4.jpg");
    --photo-5: url("/images/home-defaults/home-default-5.jpg");
    --photo-6: url("/images/home-defaults/home-default-6.jpg");
    --home-bg: #f6f1e9;
    --home-paper: #fffaf2;
    --home-ink: #1f1d1a;
    --home-muted: #6b6257;
    --home-accent: #bc5b2e;
    --home-accent-2: #8b2e22;
    --home-line: rgba(32, 26, 18, 0.12);
    background:
        radial-gradient(circle at 85% 8%, rgba(188, 91, 46, 0.18), rgba(188, 91, 46, 0) 36%),
        radial-gradient(circle at 14% 0, rgba(76, 127, 145, 0.16), rgba(76, 127, 145, 0) 34%),
        linear-gradient(180deg, #f2ece3 0%, var(--home-bg) 36%, #fff 100%);
    color: var(--home-ink);
    position: relative;
    isolation: isolate;
    overflow-x: clip;
}

.home-page::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.25;
    background-image: radial-gradient(rgba(50, 40, 28, 0.22) 0.5px, transparent 0.5px);
    background-size: 3px 3px;
    z-index: -1;
}

.home-page .site-header {
    background: color-mix(in srgb, var(--home-paper) 78%, transparent);
    border-bottom: 1px solid var(--home-line);
    backdrop-filter: blur(10px);
}

.home-page .brand,
.profile-page .brand {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.home-page .brand-mark,
.profile-page .brand-mark {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 0.7rem;
    background: linear-gradient(140deg, #221b16, #5f3b2d 62%, #b96a44);
    box-shadow: 0 8px 16px rgba(32, 18, 11, 0.25);
}

.home-page .brand-text,
.profile-page .brand-text {
    font-size: 1.18rem;
}

.home-page .main-nav,
.profile-page .main-nav {
    display: inline-flex;
    gap: 0.5rem;
    padding: 0.25rem;
    border-radius: 999px;
    border: 1px solid var(--home-line, rgba(32, 26, 18, 0.12));
    background: rgba(255, 250, 242, 0.85);
    color: #493e31;
}

.home-page .main-nav a,
.profile-page .main-nav a {
    border-radius: 999px;
    padding: 0.5rem 0.9rem;
    font-family: "Manrope", "Plus Jakarta Sans", sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    transition: color 200ms ease, background-color 200ms ease;
}

.home-page .main-nav a::after,
.profile-page .main-nav a::after {
    display: none;
}

.home-page .main-nav a:hover,
.home-page .main-nav a:focus-visible,
.profile-page .main-nav a:hover,
.profile-page .main-nav a:focus-visible {
    color: #fff;
    background: linear-gradient(120deg, #2f2821, #5a3628);
}

.home-page .signin-button,
.profile-page .signin-button {
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: linear-gradient(120deg, var(--home-accent, #bc5b2e), var(--home-accent-2, #8b2e22));
    box-shadow: 0 14px 28px rgba(139, 46, 34, 0.25);
    color: #fff;
}

.home-page .account-menu,
.profile-page .account-menu {
    position: relative;
}

.home-page .account-dropdown,
.profile-page .account-dropdown {
    position: absolute;
    top: calc(100% + 0.55rem);
    right: 0;
    min-width: 12.5rem;
    padding: 0.45rem;
    display: grid;
    gap: 0.2rem;
    border-radius: 0.9rem;
    border: 1px solid rgba(43, 24, 13, 0.15);
    background: rgba(255, 250, 242, 0.98);
    box-shadow: 0 14px 28px rgba(44, 25, 12, 0.2);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 170ms ease, transform 170ms ease;
    z-index: 30;
}

.home-page .account-dropdown a,
.profile-page .account-dropdown a {
    border-radius: 0.62rem;
    padding: 0.52rem 0.7rem;
    color: #3d2d21;
    font-family: "Manrope", "Plus Jakarta Sans", sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
}

.home-page .account-dropdown a:hover,
.home-page .account-dropdown a:focus-visible,
.profile-page .account-dropdown a:hover,
.profile-page .account-dropdown a:focus-visible {
    color: #fff;
    background: linear-gradient(120deg, #2f2821, #5a3628);
}

.home-page .account-menu:hover .account-dropdown,
.home-page .account-menu.is-open .account-dropdown,
.home-page .account-menu:focus-within .account-dropdown,
.profile-page .account-menu:hover .account-dropdown,
.profile-page .account-menu.is-open .account-dropdown,
.profile-page .account-menu:focus-within .account-dropdown {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.home-page main {
    display: grid;
    gap: 2.6rem;
}

.home-page .hero {
    min-height: min(800px, calc(100vh - 6rem));
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: 1.6rem;
    padding: 3.5rem 0 0.6rem;
    align-items: stretch;
}

.home-page .hero-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: clamp(1.2rem, 2.8vw, 2.2rem);
    border-radius: 1.6rem;
    background: color-mix(in srgb, var(--home-paper) 85%, white);
    border: 1px solid var(--home-line);
    box-shadow: 0 16px 40px rgba(40, 31, 20, 0.08);
}

.home-page .eyebrow {
    font-family: "Manrope", sans-serif;
    letter-spacing: 0.17em;
    color: #8a4f33;
}

.home-page .hero h1 {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(2.4rem, 5.2vw, 4.8rem);
    line-height: 0.95;
    letter-spacing: 0.01em;
    max-width: 17ch;
}

.home-page .lead {
    margin-top: clamp(1.2rem, 3vh, 2rem);
    color: var(--home-muted);
    font-family: "Manrope", "Plus Jakarta Sans", sans-serif;
    font-size: 1rem;
    line-height: 1.75;
}

.home-page .hero-actions {
    margin-top: auto;
    padding-top: 1.8rem;
}

.home-page .primary-action,
.home-page .secondary-action {
    font-family: "Manrope", sans-serif;
    font-weight: 700;
    padding: 0.8rem 1.2rem;
}

.home-page .primary-action {
    background: linear-gradient(120deg, #2f2821, #5a3628);
}

.home-page .secondary-action {
    background: rgba(255, 250, 242, 0.8);
    border-color: rgba(78, 52, 38, 0.34);
    color: #4b3324;
}

.home-page .hero-card {
    position: relative;
    border-radius: 1.8rem;
    border: 1px solid rgba(255, 255, 255, 0.45);
    padding: 1.5rem;
    overflow: hidden;
    color: #fff;
    min-height: 520px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: var(--photo-1) center 38% / cover no-repeat;
    box-shadow: 0 22px 48px rgba(34, 17, 9, 0.26);
    animation: reveal 620ms ease-out;
}

.home-page .hero-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(23, 15, 10, 0.1) 20%, rgba(18, 12, 8, 0.76) 85%),
        radial-gradient(circle at 80% 18%, rgba(255, 192, 146, 0.35), transparent 35%);
}

.home-page .hero-card > * {
    position: relative;
    margin-left: 0;
    width: min(330px, 100%);
    border-radius: 1rem;
    backdrop-filter: blur(6px);
    background: rgba(14, 11, 9, 0.46);
    border: 1px solid rgba(255, 255, 255, 0.22);
    padding: 0.9rem 1rem;
}

.home-page .hero-card p {
    margin-bottom: 0.55rem;
    color: rgba(255, 240, 226, 0.92);
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.home-page .hero-card h2 {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 2rem;
    line-height: 1;
    margin: 0.45rem 0 0.7rem;
}

.home-page .hero-card ul {
    line-height: 1.65;
    color: rgba(255, 246, 236, 0.92);
    margin: 0;
    padding-left: 1.3rem;
}

.home-page .info-strip {
    margin-inline: auto;
    width: min(1120px, 92vw);
    border-radius: 1.45rem;
    padding: 1.2rem;
    overflow: hidden;
    background:
        linear-gradient(105deg, #251d17 0%, #34251c 48%, #1d1917 100%);
    border: 1px solid rgba(255, 230, 205, 0.15);
    box-shadow: 0 18px 36px rgba(28, 20, 12, 0.25);
}

.home-page .info-strip .container {
    width: 100%;
    max-width: none;
    margin: 0;
}

.home-page .info-marquee {
    overflow: hidden;
}

.home-page .info-track {
    display: flex;
    width: max-content;
    animation: info-marquee-scroll 28s linear infinite;
}

.home-page .info-strip:hover .info-track {
    animation-play-state: paused;
}

.home-page .info-grid {
    display: flex;
    flex: 0 0 100%;
    min-width: 100%;
    gap: 0.8rem;
    padding-right: 0;
}

.home-page .info-grid article {
    flex: 1 1 0;
    min-width: 0;
    border-radius: 0.9rem;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
    animation: reveal 650ms ease-out both;
    transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
}

.home-page .info-grid article:hover,
.home-page .info-grid article:focus-within {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.32);
    box-shadow: 0 14px 24px rgba(16, 10, 7, 0.26);
}

@keyframes info-marquee-scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

.home-page .portfolio {
    padding: 1rem 0 0.4rem;
}

.home-page .section-heading h2 {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(2rem, 4.4vw, 3.2rem);
    max-width: 18ch;
}

.home-page .portfolio-grid {
    gap: 1rem;
    margin-top: 1.8rem;
    grid-template-columns: 1.3fr 1fr;
    grid-template-rows: 210px 210px 210px;
}

.home-page .tile {
    border-radius: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 16px 34px rgba(43, 21, 8, 0.25);
    transform: translateY(0);
    transition: transform 260ms ease, box-shadow 260ms ease;
}

.home-page .tile:hover,
.home-page .tile:focus-within {
    transform: translateY(-6px);
    box-shadow: 0 26px 42px rgba(43, 21, 8, 0.3);
}

.home-page .tile span {
    font-family: "Manrope", sans-serif;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.home-page .tile-a {
    grid-row: 1 / 4;
    background: var(--photo-2) center / cover no-repeat;
}

.home-page .tile-b {
    background: var(--photo-3) center / cover no-repeat;
}

.home-page .tile-c {
    background: var(--photo-4) center / cover no-repeat;
}

.home-page .tile-d {
    background: var(--photo-5) center / cover no-repeat;
}

.home-page .process {
    padding: 0.4rem 0 0.6rem;
}

.home-page .steps {
    gap: 0.9rem;
}

.home-page .steps article {
    border-radius: 1rem;
    border: 1px solid rgba(48, 35, 24, 0.16);
    background: linear-gradient(135deg, #fffaf2, #fff);
    position: relative;
    overflow: hidden;
}

.home-page .steps article::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 3px;
    background: linear-gradient(90deg, #d48a66, #6f4a37);
}

.home-page .steps strong {
    background: #5a2f1f;
    color: #fff;
}

.home-page .contact {
    margin-top: 0.8rem;
    margin-bottom: 4rem;
    border-radius: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background:
        linear-gradient(100deg, rgba(16, 12, 9, 0.86), rgba(38, 24, 16, 0.78)),
        var(--photo-6) center / cover no-repeat;
    color: #fff3e8;
    box-shadow: 0 20px 40px rgba(36, 19, 9, 0.34);
}

.home-page .site-footer {
    margin: 0 auto 2rem;
    width: min(1120px, 92vw);
    border-radius: 1.35rem;
    border: 1px solid rgba(37, 25, 16, 0.14);
    background:
        radial-gradient(circle at 12% -20%, rgba(188, 91, 46, 0.16), transparent 45%),
        radial-gradient(circle at 88% 0, rgba(76, 127, 145, 0.14), transparent 38%),
        linear-gradient(140deg, #f8eee2, #fff8f1);
    box-shadow: 0 18px 36px rgba(33, 22, 14, 0.14);
    overflow: hidden;
    position: relative;
}

.home-page .site-footer::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, #bc5b2e, #d89567 48%, #6d4b3b);
}

.home-page .footer-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    padding: 1.5rem;
}

.home-page .footer-block {
    border: 1px solid rgba(73, 51, 37, 0.14);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.6);
    padding: 1rem;
    backdrop-filter: blur(4px);
}

.home-page .footer-block h3 {
    margin: 0 0 0.8rem;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.4rem;
    color: #2f241d;
}

.home-page .footer-block ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.5rem;
    color: var(--home-muted);
}

.home-page .footer-block li {
    line-height: 1.45;
}

.home-page .footer-block li + li {
    padding-top: 0.4rem;
    border-top: 1px dashed rgba(73, 51, 37, 0.14);
}

.home-page .footer-block a {
    color: #493325;
    text-decoration: none;
    border-bottom: 1px solid rgba(73, 51, 37, 0.26);
    transition: color 180ms ease, border-color 180ms ease;
}

.home-page .footer-block a:hover,
.home-page .footer-block a:focus-visible {
    color: #8b3f24;
    border-color: #8b3f24;
}

.home-page .footer-meta {
    border-top: 1px solid rgba(37, 25, 16, 0.14);
    padding: 1rem 1.5rem 1.3rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem 1.2rem;
    color: #5c5046;
    font-size: 0.9rem;
}

.home-page .footer-meta p {
    margin: 0;
}

.home-page .contact .eyebrow,
.home-page .contact p {
    color: rgba(255, 237, 221, 0.92);
}

.home-page .contact h2 {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(1.9rem, 3.2vw, 2.8rem);
}

.home-page .signin-button.large {
    background: linear-gradient(120deg, #f1c89f, #d98f5f);
    color: #2f1d12;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.home-page .hero,
.home-page .info-strip,
.home-page .portfolio,
.home-page .process,
.home-page .contact {
    animation: reveal 650ms ease-out;
}

.home-page .info-grid article:nth-child(2),
.home-page .tile-b,
.home-page .steps article:nth-child(2) {
    animation-delay: 80ms;
}

.home-page .info-grid article:nth-child(3),
.home-page .tile-c,
.home-page .steps article:nth-child(3) {
    animation-delay: 150ms;
}

@media (max-width: 1080px) {
    .home-page .hero {
        min-height: initial;
        grid-template-columns: 1fr;
    }

    .home-page .hero-card {
        min-height: 440px;
    }
}

@media (max-width: 960px) {
    .home-page .main-nav,
    .profile-page .main-nav {
        display: inline-flex;
    }

    .home-page .portfolio-grid {
        grid-template-columns: 1fr;
        grid-template-rows: 240px 240px 240px;
    }

    .home-page .tile-a {
        grid-row: auto;
    }

    .home-page .info-grid,
    .home-page .steps {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .home-page .nav-shell,
    .profile-page .nav-shell {
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .home-page .main-nav,
    .profile-page .main-nav {
        width: 100%;
        order: 3;
        justify-content: center;
    }

    .home-page .account-dropdown,
    .profile-page .account-dropdown {
        right: 0;
        left: auto;
        min-width: 11.5rem;
    }

    .home-page .hero-content {
        padding: 1rem;
        border-radius: 1.1rem;
    }

    .home-page .hero-card {
        min-height: 360px;
        border-radius: 1.2rem;
        padding: 0.9rem;
    }

    .home-page .hero-card > * {
        width: 100%;
    }

    .home-page .info-grid {
        flex-direction: column;
        width: 100%;
    }

    .home-page .info-grid article {
        width: 100%;
    }

    .home-page .info-grid h3,
    .home-page .info-grid p {
        overflow-wrap: anywhere;
    }

    .home-page .contact {
        padding: 1rem;
    }

    .home-page .footer-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }

    .home-page .footer-meta {
        padding: 0.85rem 1rem 1rem;
        display: grid;
        justify-content: initial;
    }

    .home-page .signin-button.large {
        width: 100%;
        text-align: center;
    }
}

html[data-theme="dark"] .home-page {
    --home-bg: #11161f;
    --home-paper: #151d29;
    --home-ink: #edf0f7;
    --home-muted: #c0c8d6;
    --home-line: rgba(196, 204, 219, 0.18);
    --home-accent: #cf7f57;
    --home-accent-2: #8f4d35;
    background:
        radial-gradient(circle at 85% 8%, rgba(188, 91, 46, 0.22), rgba(188, 91, 46, 0) 40%),
        radial-gradient(circle at 14% 0, rgba(76, 127, 145, 0.21), rgba(76, 127, 145, 0) 38%),
        linear-gradient(180deg, #0f141d 0%, #111822 44%, #121b28 100%);
}

html[data-theme="dark"] .home-page .site-header {
    background: rgba(13, 19, 28, 0.84);
    border-color: rgba(196, 204, 219, 0.22);
    box-shadow: 0 10px 24px rgba(3, 8, 15, 0.45);
}

html[data-theme="dark"] .home-page .hero-content {
    background: linear-gradient(145deg, rgba(21, 30, 42, 0.9), rgba(15, 23, 35, 0.88));
    border-color: rgba(196, 204, 219, 0.22);
    box-shadow: 0 22px 42px rgba(3, 8, 15, 0.38);
}

html[data-theme="dark"] .home-page .hero-card {
    background: var(--photo-1) center 38% / cover no-repeat;
}

html[data-theme="dark"] .home-page .eyebrow {
    color: #e1a98a;
}

html[data-theme="dark"] .home-page .main-nav,
html[data-theme="dark"] .profile-page .main-nav {
    background: rgba(19, 28, 39, 0.86);
    border-color: rgba(196, 204, 219, 0.2);
}

html[data-theme="dark"] .home-page .account-dropdown,
html[data-theme="dark"] .profile-page .account-dropdown {
    border-color: rgba(214, 224, 241, 0.12);
    background: rgba(19, 17, 16, 0.97);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.4);
}

html[data-theme="dark"] .home-page .account-dropdown a,
html[data-theme="dark"] .profile-page .account-dropdown a {
    color: #efe6dc;
}

html[data-theme="dark"] .home-page .steps article,
html[data-theme="dark"] .home-page .info-grid article {
    background: linear-gradient(150deg, rgba(22, 33, 47, 0.92), rgba(15, 24, 36, 0.9));
    border-color: rgba(196, 204, 219, 0.18);
}

html[data-theme="dark"] .home-page .info-strip {
    background: linear-gradient(110deg, #1a2432 0%, #243446 52%, #162230 100%);
    border-color: rgba(196, 204, 219, 0.2);
    box-shadow: 0 20px 36px rgba(3, 8, 15, 0.42);
}

html[data-theme="dark"] .home-page .tile {
    border-color: rgba(196, 204, 219, 0.34);
    box-shadow: 0 18px 34px rgba(4, 9, 16, 0.45);
}

html[data-theme="dark"] .home-page .contact {
    border-color: rgba(196, 204, 219, 0.26);
    background:
        linear-gradient(100deg, rgba(10, 13, 20, 0.88), rgba(30, 22, 18, 0.78)),
        var(--photo-6) center / cover no-repeat;
}

html[data-theme="dark"] .home-page .contact .eyebrow,
html[data-theme="dark"] .home-page .contact p {
    color: rgba(233, 239, 249, 0.9);
}

html[data-theme="dark"] .home-page .site-footer {
    background: linear-gradient(140deg, #171f2b, #111825);
    border-color: rgba(220, 226, 239, 0.2);
    box-shadow: 0 16px 30px rgba(3, 7, 14, 0.45);
}

html[data-theme="dark"] .home-page .site-footer::before {
    background: linear-gradient(90deg, #b96844, #7e4c35 48%, #49677a);
}

html[data-theme="dark"] .home-page .footer-block {
    background: rgba(20, 30, 42, 0.7);
    border-color: rgba(220, 226, 239, 0.2);
}

html[data-theme="dark"] .home-page .footer-block h3 {
    color: #eff3fa;
}

html[data-theme="dark"] .home-page .footer-block ul,
html[data-theme="dark"] .home-page .footer-meta {
    color: #bec7d6;
}

html[data-theme="dark"] .home-page .footer-block a {
    color: #e4eaf4;
    border-bottom-color: rgba(228, 234, 244, 0.45);
}

html[data-theme="dark"] .home-page .footer-block a:hover,
html[data-theme="dark"] .home-page .footer-block a:focus-visible {
    color: #ffd7bf;
    border-bottom-color: #ffd7bf;
}

html[data-theme="dark"] .home-page .footer-block li + li {
    border-top-color: rgba(220, 226, 239, 0.2);
}

html[data-theme="dark"] .home-page .footer-meta {
    border-top-color: rgba(220, 226, 239, 0.2);
}

html[data-theme="dark"] .home-page .main-nav a:hover,
html[data-theme="dark"] .home-page .main-nav a:focus-visible,
html[data-theme="dark"] .profile-page .main-nav a:hover,
html[data-theme="dark"] .profile-page .main-nav a:focus-visible,
html[data-theme="dark"] .home-page .primary-action {
    background: linear-gradient(120deg, #4d2e22, #78442f);
}

html[data-theme="dark"] .home-page .secondary-action {
    color: #f0d8c4;
    background: rgba(120, 68, 47, 0.2);
    border-color: rgba(240, 216, 196, 0.35);
}

html[data-theme="dark"] .home-page .signin-button.large {
    color: #26160d;
}

.dashboard-page {
    min-height: 100vh;
    padding: 0 0 3rem;
    overflow-x: clip;
    background:
        radial-gradient(circle at 95% 5%, rgba(100, 145, 164, 0.15), transparent 32%),
        radial-gradient(circle at 8% 92%, rgba(214, 106, 74, 0.14), transparent 30%);
}

.dash-nav-wrap {
    position: sticky;
    top: 0;
    z-index: 45;
    backdrop-filter: blur(10px);
    background: rgba(248, 243, 234, 0.85);
    border-bottom: 1px solid rgba(31, 78, 95, 0.14);
}

.dash-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.92rem 0;
}

.dash-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    font-weight: 700;
    white-space: nowrap;
}

.dash-brand-mark {
    display: inline-grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.62rem;
    overflow: hidden;
    border: 1px solid rgba(31, 78, 95, 0.22);
    background: #fff;
}

.dash-brand-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dash-nav-links {
    display: inline-flex;
    gap: 0.25rem;
    padding: 0.2rem;
    border-radius: 999px;
    border: 1px solid rgba(31, 78, 95, 0.2);
    background: rgba(255, 255, 255, 0.7);
}

.dash-nav-links a {
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    color: var(--ink-700);
    font-size: 0.86rem;
    font-weight: 700;
}

.dash-nav-links a.is-active,
.dash-nav-links a:hover,
.dash-nav-links a:focus-visible {
    background: var(--brand);
    color: #fff;
}

.dash-nav-actions {
    display: inline-flex;
    gap: 0.45rem;
}

.dash-eyebrow {
    margin: 0 0 0.45rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--brand);
    font-size: 0.75rem;
    font-weight: 700;
}

.dash-hero {
    margin-top: 1.2rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
}

.dash-hero h1 {
    margin: 0;
    font-family: "Fraunces", Georgia, serif;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.dash-subtitle {
    margin: 0.45rem 0 0;
    color: var(--ink-700);
}

.dash-copy {
    margin: 0.85rem 0 0;
    color: var(--ink-700);
    max-width: 52ch;
    line-height: 1.55;
}

.dash-button {
    border-radius: 999px;
    border: 1px solid rgba(31, 78, 95, 0.25);
    padding: 0.62rem 0.95rem;
    background: #fff;
    color: var(--brand);
    font-weight: 600;
}

.dash-button.primary {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(120deg, var(--brand), #285f73);
}

.dash-button.ghost {
    background: transparent;
}

.dashboard-content {
    display: grid;
    gap: 1rem;
}

.dashboard-content > *,
.dash-grid-two > *,
.dash-metrics > * {
    min-width: 0;
}

.dash-chip-grid {
    display: grid;
    gap: 0.7rem;
    width: min(360px, 100%);
}

.dash-chip {
    border-radius: 0.9rem;
    border: 1px solid rgba(31, 78, 95, 0.17);
    background: #f7fbfd;
    padding: 0.8rem 0.9rem;
}

.dash-chip span {
    color: var(--ink-700);
    font-size: 0.82rem;
}

.dash-chip strong {
    display: block;
    margin-top: 0.28rem;
    font-size: 1.35rem;
}

.dash-chip small {
    color: var(--ink-500);
}

.dash-metrics {
    display: grid;
    gap: 0.9rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric-card {
    border-radius: 1rem;
    padding: 1rem;
    background: #fff;
    border: 1px solid rgba(31, 78, 95, 0.14);
    box-shadow: 0 10px 25px rgba(30, 31, 38, 0.06);
}

.metric-card p {
    margin: 0;
    color: var(--ink-700);
}

.metric-card h2 {
    margin: 0.45rem 0;
    font-size: 2rem;
}

.metric-card small {
    color: var(--ink-500);
}

.metric-card.featured {
    background: linear-gradient(145deg, #1f4e5f, #163646);
    color: #fff;
    border-color: transparent;
}

.metric-card.featured p,
.metric-card.featured small {
    color: rgba(255, 255, 255, 0.88);
}

.metric-ratio {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-top: 1rem;
}

.ratio-item {
    flex: 1;
    text-align: center;
    padding: 0.75rem;
}

.ratio-item.paid {
    background: rgba(34, 197, 94, 0.1);
    border-radius: 0.5rem 0 0 0.5rem;
}

.ratio-item.not-paid {
    background: rgba(239, 68, 68, 0.1);
    border-radius: 0 0.5rem 0.5rem 0;
}

.ratio-item h2 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--ink-700);
}

.ratio-item.paid h2 {
    color: #22c55e;
}

.ratio-item.not-paid h2 {
    color: #ef4444;
}

.ratio-item small {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.25rem;
}

.ratio-item .ratio-count {
    display: block;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    color: var(--ink-600);
}

.ratio-divider {
    width: 1px;
    height: 60px;
    background: rgba(31, 78, 95, 0.2);
    margin: 0 -0.5px;
}

.dash-grid-two {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1.1fr 0.9fr;
}

.panel {
    border-radius: 1rem;
    padding: 1rem;
    background: #fff;
    border: 1px solid rgba(31, 78, 95, 0.14);
}

.panel h3 {
    margin-top: 0;
    margin-bottom: 0.9rem;
}

.panel-head {
    margin-bottom: 0.8rem;
}

.panel-head p {
    margin: 0.4rem 0 0;
    color: var(--ink-700);
    font-size: 0.88rem;
}

.trend-chart {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.55rem;
    align-items: end;
}

.trend-col {
    display: grid;
    justify-items: center;
    gap: 0.4rem;
}

.trend-value {
    font-size: 0.78rem;
    color: var(--ink-700);
    font-weight: 700;
}

.trend-bar-wrap {
    width: 100%;
    height: 150px;
    border-radius: 999px;
    background: #eef5f8;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(31, 78, 95, 0.1);
}

.trend-bar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: var(--value);
    min-height: 6px;
    border-radius: inherit;
    background: linear-gradient(180deg, #3f798f, #1f4e5f);
}

.trend-label {
    font-size: 0.72rem;
    color: var(--ink-500);
    letter-spacing: 0.03em;
}

.trend-mix-block {
    margin-top: 1.1rem;
    border-top: 1px solid rgba(31, 78, 95, 0.12);
    padding-top: 0.9rem;
}

.trend-clients-block {
    margin-top: 1.1rem;
    border-top: 1px solid rgba(31, 78, 95, 0.12);
    padding-top: 0.9rem;
}

.panel-head-compact {
    margin-bottom: 0.55rem;
}

.panel-head-compact h4 {
    margin: 0;
    font-size: 0.98rem;
}

.trend-mix-legend {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    color: var(--ink-700);
    font-size: 0.8rem;
    font-weight: 700;
}

.trend-mix-legend > span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.trend-mix-legend .dot {
    width: 0.62rem;
    height: 0.62rem;
    border-radius: 50%;
}

.trend-mix-legend .dot.draft,
.mix-bar.draft {
    background: #5c646b;
}

.trend-mix-legend .dot.in-progress,
.mix-bar.in-progress {
    background: #f09c10;
}

.trend-mix-legend .dot.finalized,
.mix-bar.finalized {
    background: #d0235b;
}

.trend-mix-chart {
    margin-top: 0.6rem;
    display: grid;
    gap: 0.55rem;
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.mix-col {
    display: grid;
    gap: 0.32rem;
    justify-items: center;
}

.mix-values {
    display: grid;
    grid-template-columns: repeat(3, auto);
    gap: 0.18rem;
    color: var(--ink-700);
}

.mix-values small {
    min-width: 1.1rem;
    text-align: center;
    font-size: 0.68rem;
    font-weight: 700;
}

.mix-bars {
    width: 100%;
    height: 110px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: end;
    gap: 0.22rem;
    padding: 0.28rem;
    border-radius: 0.62rem;
    background: #f2f7fa;
    border: 1px solid rgba(31, 78, 95, 0.1);
}

.mix-bar {
    display: block;
    width: 100%;
    height: var(--value);
    min-height: 4px;
    border-radius: 0.38rem;
}

.clients-chart {
    margin-top: 0.6rem;
    display: grid;
    gap: 0.55rem;
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.clients-col {
    display: grid;
    justify-items: center;
    gap: 0.35rem;
}

.clients-bar-wrap {
    width: 100%;
    height: 96px;
    border-radius: 0.62rem;
    background: #f1f7fa;
    border: 1px solid rgba(31, 78, 95, 0.1);
    position: relative;
    overflow: hidden;
}

.clients-bar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: var(--value);
    min-height: 4px;
    border-radius: 0.52rem;
    background: linear-gradient(180deg, #3f798f, #1f4e5f);
}

.status-graph {
    display: grid;
    gap: 0.7rem;
}

.status-row {
    display: grid;
    gap: 0.45rem;
    padding: 0.58rem 0.68rem;
    border-radius: 0.72rem;
    border: 1px solid var(--status-border, rgba(31, 78, 95, 0.14));
    background: var(--status-bg, #f6f9fb);
}

.status-label-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--status-fg, var(--ink-700));
    font-weight: 600;
}

.status-label-line strong {
    font-size: 0.92rem;
}

.status-label-line small {
    color: var(--status-fg, var(--ink-500));
    opacity: 0.85;
    font-weight: 600;
}

.status-meter {
    height: 0.62rem;
    border-radius: 999px;
    background: var(--status-meter-bg, #ebf3f7);
    overflow: hidden;
}

.status-meter i {
    display: block;
    height: 100%;
    width: var(--value);
    border-radius: inherit;
    background: linear-gradient(120deg, #d66a4a, #bb4f30);
}

.status-row[data-status="CREATED"] .status-meter i {
    background: #5c646b;
}

.status-row[data-status="CREATED"] {
    --status-bg: rgba(108,117,125,0.15);
    --status-fg: #5c646b;
    --status-border: rgba(108,117,125,0.40);
    --status-meter-bg: rgba(108,117,125,0.22);
}

.status-row[data-status="SELECTION_OPEN"] .status-meter i {
    background: #f09c10;
}

.status-row[data-status="SELECTION_OPEN"] {
    --status-bg: rgba(240,156,16,0.10);
    --status-fg: #f09c10;
    --status-border: rgba(240,156,16,0.30);
    --status-meter-bg: rgba(240,156,16,0.18);
}

.status-row[data-status="SELECTION_DONE"] .status-meter i {
    background: #01bcd6;
}

.status-row[data-status="SELECTION_DONE"] {
    --status-bg: rgba(1,188,214,0.15);
    --status-fg: #01bcd6;
    --status-border: rgba(1,188,214,0.40);
    --status-meter-bg: rgba(1,188,214,0.22);
}

.status-row[data-status="EDITING"] .status-meter i {
    background: #fcc617;
}

.status-row[data-status="EDITING"] {
    --status-bg: rgba(252,198,23,0.15);
    --status-fg: #fcc617;
    --status-border: rgba(252,198,23,0.40);
    --status-meter-bg: rgba(252,198,23,0.22);
}

.status-row[data-status="READY"] .status-meter i {
    background: #a157b2;
}

.status-row[data-status="READY"] {
    --status-bg: rgba(161,87,178,0.15);
    --status-fg: #a157b2;
    --status-border: rgba(161,87,178,0.40);
    --status-meter-bg: rgba(161,87,178,0.22);
}

.status-row[data-status="DELIVERED"] .status-meter i {
    background: #2d9a6b;
}

.status-row[data-status="DELIVERED"] {
    --status-bg: rgba(141,234,180,0.15);
    --status-fg: #2d9a6b;
    --status-border: rgba(141,234,180,0.40);
    --status-meter-bg: rgba(141,234,180,0.22);
}

.status-row[data-status="CANCELLED"] .status-meter i {
    background: #d0235b;
}

.status-row[data-status="CANCELLED"] {
    --status-bg: rgba(208,35,91,0.15);
    --status-fg: #d0235b;
    --status-border: rgba(208,35,91,0.40);
    --status-meter-bg: rgba(208,35,91,0.22);
}

.delivery-ring {
    margin-top: 1rem;
    width: 138px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background: conic-gradient(var(--ring-color, var(--brand)) calc(var(--rate) * 1%), rgba(31, 78, 95, 0.12) 0);
    display: grid;
    place-items: center;
}

.delivery-ring > div {
    width: 77%;
    height: 77%;
    border-radius: inherit;
    background: #fff;
    display: grid;
    place-items: center;
    text-align: center;
}

.delivery-ring strong {
    font-size: 1.32rem;
}

.delivery-ring small {
    color: var(--ink-500);
}

.delivery-ring .rate-count {
    font-size: 0.72rem;
    margin-top: 0.18rem;
}

.rates-ring-grid {
    margin-top: 0.9rem;
    display: grid;
    gap: 0.8rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rates-ring-grid .delivery-ring {
    width: 100%;
    max-width: 150px;
    margin: 0 auto;
}

.table-wrap {
    overflow-x: auto;
    min-width: 0;
}

.recent-orders table {
    width: 100%;
    border-collapse: collapse;
}

.recent-orders th,
.recent-orders td {
    text-align: left;
    padding: 0.62rem;
    border-bottom: 1px solid rgba(31, 78, 95, 0.12);
    white-space: nowrap;
}

.recent-orders th {
    color: var(--ink-700);
    font-size: 0.84rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.status-pill {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    background: rgba(31, 78, 95, 0.12);
    color: var(--brand);
}

@media (max-width: 980px) {
    .dash-nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .dash-hero {
        flex-direction: column;
    }

    .dash-chip-grid {
        width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .trend-mix-chart {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

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

    .dash-grid-two {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .dash-nav-links,
    .dash-nav-actions {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .dash-nav-links {
        width: 100%;
    }

    .dash-chip-grid {
        grid-template-columns: 1fr;
    }

    .trend-bar-wrap {
        height: 120px;
    }

    .delivery-ring {
        margin-inline: auto;
    }

    .rates-ring-grid {
        grid-template-columns: 1fr;
    }

    .dash-metrics {
        grid-template-columns: 1fr;
    }
}

html[data-theme="dark"] {
    --bg-base: #10141b;
    --bg-soft: #161c26;
    --ink-900: #edf0f7;
    --ink-700: #c4ccdb;
    --ink-500: #8e99b0;
    --brand: #67aec4;
    --brand-alt: #f09172;
    --surface: #171e29;
    --ring: rgba(103, 174, 196, 0.25);
    --shadow: 0 22px 44px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] body {
    background:
        radial-gradient(circle at 12% 10%, rgba(140, 90, 56, 0.2) 0, rgba(140, 90, 56, 0) 34%),
        radial-gradient(circle at 88% 0, rgba(86, 128, 146, 0.2) 0, rgba(86, 128, 146, 0) 36%),
        linear-gradient(180deg, #10141b 0%, #111821 46%, #141d29 100%);
}

html[data-theme="dark"] .site-header {
    background: rgba(17, 24, 33, 0.84);
    border-bottom-color: rgba(196, 204, 219, 0.12);
}

html[data-theme="dark"] .hero-card,
html[data-theme="dark"] .metric-card,
html[data-theme="dark"] .panel,
html[data-theme="dark"] .steps article,
html[data-theme="dark"] .contact,
html[data-theme="dark"] .dash-button,
html[data-theme="dark"] .dash-chip,
html[data-theme="dark"] .delivery-ring > div,
html[data-theme="dark"] .trend-bar-wrap {
    background: #171e29;
    border-color: rgba(196, 204, 219, 0.16);
}

html[data-theme="dark"] .metric-card.featured {
    background: linear-gradient(145deg, #2b6f86, #204d62);
}

html[data-theme="dark"] .ratio-item.paid {
    background: rgba(34, 197, 94, 0.15);
}

html[data-theme="dark"] .ratio-item.not-paid {
    background: rgba(239, 68, 68, 0.15);
}

html[data-theme="dark"] .ratio-item h2 {
    color: var(--ink-700);
}

html[data-theme="dark"] .ratio-item .ratio-count {
    color: var(--ink-500);
}

html[data-theme="dark"] .ratio-divider {
    background: rgba(196, 204, 219, 0.12);
}

html[data-theme="dark"] .dash-button.primary {
    background: linear-gradient(120deg, #2b6f86, #204d62);
}

html[data-theme="dark"] .dash-button.ghost,
html[data-theme="dark"] .main-nav,
html[data-theme="dark"] .lead,
html[data-theme="dark"] .dash-subtitle,
html[data-theme="dark"] .dash-copy,
html[data-theme="dark"] .recent-orders th,
html[data-theme="dark"] .info-grid p,
html[data-theme="dark"] .steps p,
html[data-theme="dark"] .contact p:last-child {
    color: var(--ink-700);
}

html[data-theme="dark"] .dash-nav-wrap {
    background: rgba(17, 24, 33, 0.84);
    border-bottom-color: rgba(196, 204, 219, 0.16);
}

html[data-theme="dark"] .dash-nav-links {
    background: rgba(23, 30, 41, 0.86);
    border-color: rgba(196, 204, 219, 0.2);
}

html[data-theme="dark"] .status-meter {
    background: var(--status-meter-bg, rgba(196, 204, 219, 0.14));
}

html[data-theme="dark"] .status-row[data-status="CREATED"] .status-meter i {
    background: #cbd1d7;
}

html[data-theme="dark"] .status-row[data-status="CREATED"] {
    --status-bg: rgba(108,117,125,0.25);
    --status-fg: #cbd1d7;
    --status-border: rgba(108,117,125,0.55);
    --status-meter-bg: rgba(108,117,125,0.34);
}

html[data-theme="dark"] .status-row[data-status="SELECTION_OPEN"] .status-meter i {
    background: #ffd08a;
}

html[data-theme="dark"] .status-row[data-status="SELECTION_OPEN"] {
    --status-bg: rgba(240,156,16,0.22);
    --status-fg: #ffd08a;
    --status-border: rgba(240,156,16,0.48);
    --status-meter-bg: rgba(240,156,16,0.30);
}

html[data-theme="dark"] .status-row[data-status="SELECTION_DONE"] .status-meter i {
    background: #8be9f6;
}

html[data-theme="dark"] .status-row[data-status="SELECTION_DONE"] {
    --status-bg: rgba(1,188,214,0.25);
    --status-fg: #8be9f6;
    --status-border: rgba(1,188,214,0.55);
    --status-meter-bg: rgba(1,188,214,0.33);
}

html[data-theme="dark"] .status-row[data-status="EDITING"] .status-meter i {
    background: #ffe08a;
}

html[data-theme="dark"] .status-row[data-status="EDITING"] {
    --status-bg: rgba(252,198,23,0.25);
    --status-fg: #ffe08a;
    --status-border: rgba(252,198,23,0.55);
    --status-meter-bg: rgba(252,198,23,0.33);
}

html[data-theme="dark"] .status-row[data-status="READY"] .status-meter i {
    background: #e7b6f0;
}

html[data-theme="dark"] .status-row[data-status="READY"] {
    --status-bg: rgba(161,87,178,0.25);
    --status-fg: #e7b6f0;
    --status-border: rgba(161,87,178,0.55);
    --status-meter-bg: rgba(161,87,178,0.33);
}

html[data-theme="dark"] .status-row[data-status="DELIVERED"] .status-meter i {
    background: #bff6da;
}

html[data-theme="dark"] .status-row[data-status="DELIVERED"] {
    --status-bg: rgba(141,234,180,0.25);
    --status-fg: #bff6da;
    --status-border: rgba(141,234,180,0.55);
    --status-meter-bg: rgba(141,234,180,0.33);
}

html[data-theme="dark"] .status-row[data-status="CANCELLED"] .status-meter i {
    background: #ff9bbb;
}

html[data-theme="dark"] .status-row[data-status="CANCELLED"] {
    --status-bg: rgba(208,35,91,0.25);
    --status-fg: #ff9bbb;
    --status-border: rgba(208,35,91,0.55);
    --status-meter-bg: rgba(208,35,91,0.33);
}

html[data-theme="dark"] .trend-mix-block {
    border-top-color: rgba(196, 204, 219, 0.14);
}

html[data-theme="dark"] .trend-clients-block {
    border-top-color: rgba(196, 204, 219, 0.14);
}

html[data-theme="dark"] .mix-bars {
    background: #171e29;
    border-color: rgba(196, 204, 219, 0.16);
}

html[data-theme="dark"] .clients-bar-wrap {
    background: #171e29;
    border-color: rgba(196, 204, 219, 0.16);
}

html[data-theme="dark"] .clients-bar {
    background: linear-gradient(180deg, #5a9cb2, #366d82);
}

html[data-theme="dark"] .trend-mix-legend .dot.draft,
html[data-theme="dark"] .mix-bar.draft {
    background: #cbd1d7;
}

html[data-theme="dark"] .trend-mix-legend .dot.in-progress,
html[data-theme="dark"] .mix-bar.in-progress {
    background: #ffd08a;
}

html[data-theme="dark"] .trend-mix-legend .dot.finalized,
html[data-theme="dark"] .mix-bar.finalized {
    background: #ff9bbb;
}

html[data-theme="dark"] .trend-bar {
    background: linear-gradient(180deg, #5a9cb2, #366d82);
}

html[data-theme="dark"] .secondary-action {
    background: rgba(103, 174, 196, 0.15);
    border-color: rgba(103, 174, 196, 0.38);
}

html[data-theme="dark"] .status-pill {
    background: rgba(103, 174, 196, 0.25);
}

/* ── Settings trigger (fixed bottom-left button) ──────────────────────────── */
#cp-settings-trigger {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    z-index: 900;
    width: 2.9rem;
    height: 2.9rem;
    border-radius: 50%;
    border: 1px solid rgba(31, 78, 95, 0.22);
    background: var(--surface, #fff);
    color: var(--brand, #1f4e5f);
    box-shadow: 0 6px 20px rgba(30, 31, 38, 0.15);
    display: inline-grid;
    place-items: center;
    cursor: pointer;
    transition: transform 200ms ease, box-shadow 200ms ease;
}

#cp-settings-trigger:hover,
#cp-settings-trigger:focus-visible {
    transform: scale(1.1) rotate(20deg);
    box-shadow: 0 10px 28px rgba(30, 31, 38, 0.22);
}

/* ── Settings panel overlay ───────────────────────────────────────────────── */
.cp-settings-panel {
    display: contents;
}

.cp-settings-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 910;
    background: rgba(10, 12, 18, 0.45);
    backdrop-filter: blur(2px);
}

.cp-settings-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 920;
    width: 288px;
    max-width: 90vw;
    height: auto;
    max-height: none;
    margin: 0;
    padding: 0;
    border: none;
    background: var(--surface, #fff);
    border-right: 1px solid rgba(31, 78, 95, 0.14);
    box-shadow: 8px 0 40px rgba(30, 31, 38, 0.18);
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 280ms cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.cp-settings-drawer[open] {
    display: flex;
}

.cp-settings-panel.is-open .cp-settings-backdrop {
    display: block;
}

.cp-settings-panel.is-open .cp-settings-drawer {
    transform: translateX(0);
}

.cp-settings-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.1rem 1rem 1rem;
    border-bottom: 1px solid rgba(31, 78, 95, 0.12);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--ink-900, #1e1f26);
}

#cp-settings-close {
    border: 0;
    background: transparent;
    color: var(--ink-700, #41444f);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 0.4rem;
    display: grid;
    place-items: center;
}

#cp-settings-close:hover {
    background: rgba(31, 78, 95, 0.1);
}

.cp-settings-body {
    padding: 1rem;
    flex: 1;
    overflow-y: auto;
}

.cp-settings-section {
    margin: 0 0 0.5rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ink-500, #636775);
}

.cp-settings-body .cp-settings-section + .cp-settings-group + .cp-settings-section {
    margin-top: 1.2rem;
}

.cp-settings-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.cp-settings-group--three {
    grid-template-columns: 1fr 1fr 1fr;
}

.cp-settings-opt {
    border: 1px solid rgba(31, 78, 95, 0.2);
    border-radius: 0.65rem;
    padding: 0.65rem 0.5rem;
    background: rgba(31, 78, 95, 0.04);
    color: var(--ink-700, #41444f);
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    transition: background 150ms, border-color 150ms;
    text-align: center;
}

.cp-settings-opt[aria-pressed="true"] {
    background: var(--brand, #1f4e5f);
    border-color: transparent;
    color: #fff;
}

.cp-settings-opt:not([aria-pressed="true"]):hover {
    background: rgba(31, 78, 95, 0.1);
}

/* dark mode for panel */
html[data-theme="dark"] #cp-settings-trigger {
    background: #171e29;
    border-color: rgba(196, 204, 219, 0.2);
    color: var(--brand);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

html[data-theme="dark"] .cp-settings-drawer {
    background: #171e29;
    border-right-color: rgba(196, 204, 219, 0.14);
}

html[data-theme="dark"] .cp-settings-head {
    border-bottom-color: rgba(196, 204, 219, 0.14);
    color: var(--ink-900);
}

html[data-theme="dark"] .cp-settings-opt {
    background: rgba(103, 174, 196, 0.08);
    border-color: rgba(196, 204, 219, 0.2);
    color: var(--ink-700);
}

html[data-theme="dark"] .cp-settings-opt[aria-pressed="true"] {
    background: #2b6f86;
    border-color: transparent;
    color: #fff;
}

html[data-theme="dark"] .cp-settings-backdrop {
    background: rgba(0, 0, 0, 0.55);
}

.auth-page {
    min-height: 100vh;
    padding: 2rem 0 3rem;
    display: grid;
    place-items: center;
}

.auth-shell {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: 1.15rem;
    align-items: stretch;
}

.auth-panel,
.auth-card {
    border-radius: 1rem;
    border: 1px solid rgba(31, 78, 95, 0.14);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 16px 36px rgba(30, 31, 38, 0.08);
}

/* ═══════════════════════════════════════════════
   ERROR PAGES  (403 / 404 / 500 / generic)
   ═══════════════════════════════════════════════ */

body.error-page {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background: var(--bg-base, #f8f3ea);
    color: var(--ink-900, #1e1f26);
    font-family: "Manrope", "Plus Jakarta Sans", system-ui, sans-serif;
}

/* ── Header ── */
.err-header {
    padding: 1.25rem 2rem;
    border-bottom: 1px solid rgba(31, 78, 95, 0.1);
    background: rgba(248, 243, 234, 0.9);
    backdrop-filter: blur(8px);
}

/* ── Layout ── */
.err-main {
    flex: 1;
    display: grid;
    place-items: center;
    padding: 4rem 1.5rem;
    position: relative;
    overflow: hidden;
}

/* ── Card ── */
.err-card {
    position: relative;
    z-index: 1;
    max-width: 560px;
    width: 100%;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(31, 78, 95, 0.12);
    border-radius: 1.5rem;
    padding: 3rem 2.5rem;
    box-shadow: 0 24px 56px rgba(30, 31, 38, 0.09);
    text-align: center;
}

/* ── Error code ── */
.err-code {
    font-family: "Cormorant Garamond", "Fraunces", Georgia, serif;
    font-size: clamp(4rem, 14vw, 8rem);
    font-weight: 700;
    line-height: 1;
    margin: 0 0 0.25rem;
    color: var(--brand, #1f4e5f);
    letter-spacing: -0.03em;
}

.err-code--amber { color: #c47a2e; }
.err-code--red   { color: #b84040; }

/* ── Title ── */
.err-title {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 600;
    margin: 0 0 1rem;
    color: var(--ink-900, #1e1f26);
}

/* ── Lead text ── */
.err-lead {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--ink-700, #41444f);
    margin: 0 0 2rem;
}

.err-lead span[lang] {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--ink-500, #636775);
    font-style: italic;
}

/* ── Actions ── */
.err-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.err-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    padding: 0.7rem 1.5rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.err-btn--primary {
    background: var(--brand, #1f4e5f);
    color: #fff;
    box-shadow: 0 6px 18px rgba(31, 78, 95, 0.28);
}

.err-btn--primary:hover,
.err-btn--primary:focus-visible {
    background: #174050;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(31, 78, 95, 0.36);
}

.err-btn--secondary {
    background: transparent;
    color: var(--ink-700, #41444f);
    border: 1.5px solid rgba(31, 78, 95, 0.25);
}

.err-btn--secondary:hover,
.err-btn--secondary:focus-visible {
    background: rgba(31, 78, 95, 0.06);
    border-color: var(--brand, #1f4e5f);
    color: var(--brand, #1f4e5f);
    transform: translateY(-2px);
}

/* ── Decorative SVG ── */
.err-deco {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.err-deco svg {
    width: min(60vw, 480px);
    height: min(60vw, 480px);
    color: var(--brand, #1f4e5f);
    opacity: 0.55;
}

/* ── Responsive ── */
@media (max-width: 480px) {
    .err-card {
        padding: 2rem 1.5rem;
    }
    .err-actions {
        flex-direction: column;
    }
    .err-btn {
        justify-content: center;
    }
}

/* ── Dark theme ── */
html[data-theme="dark"] body.error-page {
    background: #0d1117;
    color: #e6edf3;
}

html[data-theme="dark"] .err-header {
    background: rgba(13, 17, 23, 0.9);
    border-color: rgba(196, 204, 219, 0.12);
}

html[data-theme="dark"] .err-card {
    background: rgba(21, 30, 42, 0.92);
    border-color: rgba(196, 204, 219, 0.14);
    box-shadow: 0 24px 56px rgba(3, 8, 15, 0.38);
}

html[data-theme="dark"] .err-title {
    color: #e6edf3;
}

html[data-theme="dark"] .err-lead {
    color: #8b949e;
}

html[data-theme="dark"] .err-lead span[lang] {
    color: #6e7681;
}

html[data-theme="dark"] .err-btn--secondary {
    color: #8b949e;
    border-color: rgba(196, 204, 219, 0.22);
}

html[data-theme="dark"] .err-btn--secondary:hover,
html[data-theme="dark"] .err-btn--secondary:focus-visible {
    border-color: rgba(196, 204, 219, 0.6);
    color: #ccd6df;
}

/* ═══════════════════════════════════════════════
   LEGAL PAGES  (CGU / Privacy / etc.)
   ═══════════════════════════════════════════════ */

.legal-page {
    min-height: 100dvh;
    background: var(--bg-base, #f8f3ea);
    color: var(--ink-900, #1e1f26);
}

.legal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(31, 78, 95, 0.1);
    background: rgba(248, 243, 234, 0.9);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 99;
}

.legal-header .brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--ink-900, #1e1f26);
    font-weight: 600;
    font-size: 0.95rem;
}

.legal-header .brand-mark {
    display: flex;
    align-items: center;
    justify-content: center;
}

.legal-header .brand-mark-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.legal-main {
    padding: 3rem 1.5rem;
}

.legal-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    max-width: 1100px;
}

/* ── Navigation sidebar ── */
.legal-nav {
    position: sticky;
    top: calc(var(--legal-header-height, 80px) + 1rem);
    height: fit-content;
}

.legal-menu {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.legal-menu-item {
    padding: 0.75rem 1.25rem;
    border-radius: 0.75rem;
    background: transparent;
    color: var(--ink-700, #41444f);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.legal-menu-item:hover {
    background: rgba(31, 78, 95, 0.06);
    color: var(--brand, #1f4e5f);
}

.legal-menu-item.is-active {
    background: rgba(31, 78, 95, 0.1);
    color: var(--brand, #1f4e5f);
    border-left-color: var(--brand, #1f4e5f);
    font-weight: 600;
}

/* ── Content area ── */
.legal-content {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(31, 78, 95, 0.12);
    border-radius: 1.25rem;
    padding: 3rem;
}

.legal-content h1 {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 2.25rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    color: var(--ink-900, #1e1f26);
}

.legal-updated {
    font-size: 0.85rem;
    color: var(--ink-500, #636775);
    margin: 0 0 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(31, 78, 95, 0.1);
}

.legal-content h2 {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.35rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
    color: var(--ink-900, #1e1f26);
}

.legal-content p {
    line-height: 1.8;
    margin: 0 0 1.25rem;
    color: var(--ink-700, #41444f);
}

.legal-content a {
    color: var(--brand, #1f4e5f);
    text-decoration: underline;
    transition: opacity 0.2s;
}

.legal-content a:hover {
    opacity: 0.8;
}

.legal-content ul {
    margin: 0 0 1.5rem;
    padding-left: 1.75rem;
    list-style: none;
}

.legal-content li {
    padding-left: 1rem;
    margin-bottom: 0.75rem;
    line-height: 1.7;
    color: var(--ink-700, #41444f);
    position: relative;
}

.legal-content li::before {
    content: "▸";
    position: absolute;
    left: -0.5rem;
    color: var(--brand, #1f4e5f);
    font-weight: bold;
}

.legal-divider {
    margin: 2.5rem 0;
    border: none;
    border-top: 1px solid rgba(31, 78, 95, 0.1);
}

.legal-footer {
    font-size: 0.85rem;
    color: var(--ink-500, #636775);
    text-align: center;
    margin: 0;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .legal-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .legal-nav {
        position: static;
    }
    
    .legal-menu {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    
    .legal-menu-item {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
        border-left: none;
        border-bottom: 2px solid transparent;
    }
    
    .legal-menu-item.is-active {
        border-left: none;
        border-bottom-color: var(--brand, #1f4e5f);
    }
    
    .legal-content {
        padding: 2rem 1.5rem;
    }
    
    .legal-content h1 {
        font-size: 1.75rem;
    }
    
    .legal-content h2 {
        font-size: 1.15rem;
    }
}

/* ── Dark theme ── */
html[data-theme="dark"] .legal-page {
    background: #0d1117;
    color: #e6edf3;
}

html[data-theme="dark"] .legal-header {
    background: rgba(13, 17, 23, 0.9);
    border-color: rgba(196, 204, 219, 0.12);
}

html[data-theme="dark"] .legal-menu-item {
    color: #8b949e;
}

html[data-theme="dark"] .legal-menu-item:hover {
    color: #79c0ff;
}

html[data-theme="dark"] .legal-menu-item.is-active {
    color: #79c0ff;
    border-left-color: #79c0ff;
}

html[data-theme="dark"] .legal-content {
    background: rgba(21, 30, 42, 0.92);
    border-color: rgba(196, 204, 219, 0.14);
}

html[data-theme="dark"] .legal-content h1,
html[data-theme="dark"] .legal-content h2 {
    color: #e6edf3;
}

html[data-theme="dark"] .legal-content p {
    color: #8b949e;
}

html[data-theme="dark"] .legal-content a {
    color: #58a6ff;
}

html[data-theme="dark"] .legal-content li {
    color: #8b949e;
}

html[data-theme="dark"] .legal-content li::before {
    color: #58a6ff;
}

html[data-theme="dark"] .legal-updated {
    color: #6e7681;
    border-color: rgba(196, 204, 219, 0.12);
}

html[data-theme="dark"] .legal-divider {
    border-color: rgba(196, 204, 219, 0.12);
}

html[data-theme="dark"] .legal-footer {
    color: #6e7681;
}

.auth-panel {
    padding: 2rem;
    background:
        radial-gradient(circle at 85% 12%, rgba(214, 106, 74, 0.24), rgba(214, 106, 74, 0) 32%),
        radial-gradient(circle at 8% 88%, rgba(31, 78, 95, 0.22), rgba(31, 78, 95, 0) 35%),
        linear-gradient(145deg, #ffffff 0%, #f7f2e8 100%);
    position: relative;
    overflow: hidden;
}

.auth-panel::after {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    right: -120px;
    bottom: -120px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(31, 78, 95, 0.15) 0%, rgba(31, 78, 95, 0) 70%);
}

.auth-kicker {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.74rem;
    color: var(--brand);
    font-weight: 700;
}

.auth-panel h1 {
    margin: 0.75rem 0 0;
    font-family: "Fraunces", Georgia, serif;
    line-height: 1.2;
    font-size: clamp(1.7rem, 3vw, 2.5rem);
}

.auth-copy {
    margin-top: 1rem;
    color: var(--ink-700);
    line-height: 1.65;
    max-width: 48ch;
}

.auth-panel-points {
    margin: 1.2rem 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.48rem;
}

.auth-panel-points li {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--ink-700);
    font-weight: 500;
}

.auth-panel-points li::before {
    content: "";
    width: 0.46rem;
    height: 0.46rem;
    border-radius: 999px;
    background: linear-gradient(145deg, var(--brand), #4b879d);
    flex-shrink: 0;
}

.auth-panel-links {
    margin-top: 1.5rem;
    display: grid;
    gap: 0.5rem;
}

.auth-panel-links a {
    color: var(--brand);
    font-weight: 600;
}

.auth-card-wrap {
    display: grid;
}

.auth-shell-single {
    grid-template-columns: 1fr;
    max-width: 560px;
}

.auth-card {
    padding: 1.65rem;
    align-self: center;
    background: linear-gradient(180deg, #ffffff 0%, #fdfaf6 100%);
}

.auth-card-narrow {
    width: min(100%, 560px);
    margin: 0 auto;
}

.auth-title {
    margin: 0;
    font-family: "Fraunces", Georgia, serif;
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    line-height: 1.2;
}

.auth-card-head {
    margin-bottom: 0.5rem;
}

.auth-chip {
    display: inline-flex;
    margin-bottom: 0.7rem;
    padding: 0.24rem 0.56rem;
    border-radius: 999px;
    background: rgba(31, 78, 95, 0.11);
    color: var(--brand);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.auth-card h2 {
    margin: 0;
    font-size: 1.55rem;
}

.auth-card-head > p {
    margin-top: 0.45rem;
    color: var(--ink-700);
}

.auth-alert {
    border: 1px solid #d29b9b;
    background: #fdecec;
    color: #2b0b0b;
    border-radius: 0.7rem;
    padding: 0.6rem 0.75rem;
    margin: 0.9rem 0;
}

.auth-alert-info {
    border-color: rgba(31, 78, 95, 0.2);
    background: rgba(31, 78, 95, 0.08);
    color: var(--ink-900);
}

.auth-alert-info a {
    font-weight: 700;
    color: var(--brand);
}

.auth-field {
    display: grid;
    gap: 0.32rem;
    margin-bottom: 0.85rem;
}

.auth-field-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
}

.auth-field label {
    font-size: 0.92rem;
    font-weight: 600;
}

.auth-forgot-link {
    color: var(--brand);
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.auth-forgot-link:hover,
.auth-forgot-link:focus-visible {
    color: #163f4d;
}

.auth-field input {
    border: 1px solid rgba(31, 78, 95, 0.26);
    border-radius: 0.68rem;
    padding: 0.68rem 0.76rem;
    font: inherit;
    background: #fff;
}

.auth-field input:focus {
    outline: 2px solid rgba(31, 78, 95, 0.22);
    outline-offset: 1px;
}

.auth-submit {
    width: 100%;
    border: 0;
    margin-top: 0.35rem;
    border-radius: 0.72rem;
    padding: 0.72rem 0.9rem;
    color: #fff;
    font: inherit;
    font-weight: 700;
    background: linear-gradient(125deg, var(--brand), #285f73);
    cursor: pointer;
}

.auth-submit:hover,
.auth-submit:focus-visible {
    filter: brightness(1.05);
}

.auth-submit-secondary {
    margin-top: 0;
    background: linear-gradient(125deg, #254f5e, #153846);
}

.auth-submit:disabled {
    cursor: not-allowed;
    opacity: 0.64;
    filter: none;
}

.auth-footnote {
    margin: 0.75rem 0 0;
    color: var(--ink-500);
    font-size: 0.84rem;
    line-height: 1.5;
}

.auth-resend-form {
    display: grid;
    gap: 0.45rem;
    margin-top: 0.4rem;
}

.auth-inline-links {
    margin-top: 0.95rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem 1.2rem;
}

.auth-inline-links a {
    color: var(--brand);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

html[data-theme="dark"] .auth-panel,
html[data-theme="dark"] .auth-card,
html[data-theme="dark"] .auth-field input {
    background: #171e29;
    border-color: rgba(196, 204, 219, 0.16);
}

html[data-theme="dark"] .auth-field input {
    color: #e8edf7;
    caret-color: #e8edf7;
}

html[data-theme="dark"] .auth-field input::placeholder {
    color: #99a8c0;
}

html[data-theme="dark"] .auth-field input:-webkit-autofill,
html[data-theme="dark"] .auth-field input:-webkit-autofill:hover,
html[data-theme="dark"] .auth-field input:-webkit-autofill:focus {
    -webkit-text-fill-color: #e8edf7;
    box-shadow: 0 0 0 1000px #171e29 inset;
}

html[data-theme="dark"] .auth-panel {
    background:
        radial-gradient(circle at 85% 12%, rgba(214, 106, 74, 0.24), rgba(214, 106, 74, 0) 32%),
        radial-gradient(circle at 8% 88%, rgba(31, 78, 95, 0.22), rgba(31, 78, 95, 0) 35%),
        #171e29;
}

html[data-theme="dark"] .auth-alert {
    color: #ffd3d3;
    background: rgba(176, 45, 45, 0.18);
}

html[data-theme="dark"] .auth-chip {
    background: #2b6f86;
    color: #ffffff;
}

html[data-theme="dark"] .auth-forgot-link {
    color: #c2e6f2;
}

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

    .auth-panel,
    .auth-card {
        padding: 1.2rem;
    }
}
