/* Homepage layout restoration: match the stable second-image version. */
body.studio-home .hero-immersive .studio-hero-grid {
    grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.62fr);
    min-height: min(700px, calc(100vh - 10rem));
    padding-top: clamp(2rem, 4.2vh, 3.4rem);
}

body.studio-home .hero-immersive .hero h1,
body.studio-home .hero-immersive h1 {
    font-family: "Manrope", "IBM Plex Sans", "Inter", sans-serif;
    font-size: clamp(1.75rem, 3.1vw, 2.65rem);
    line-height: 1.07;
    letter-spacing: -0.01em;
    text-shadow: 0 16px 38px rgba(0, 0, 0, 0.28);
}

body.studio-home .hero-immersive .hero-title .title-line {
    max-width: 15ch;
}

body.studio-home .hero-immersive .hero-role {
    max-width: 31rem;
    font-size: clamp(0.95rem, 1.15vw, 1.02rem);
    line-height: 1.42;
}

body.studio-home .hero-immersive .hero-text {
    max-width: 28rem;
    font-size: 0.86rem;
}

body.studio-home .hero-immersive .hero-actions {
    margin-top: 0.92rem;
}

body.studio-home .hero-immersive .studio-signal-card {
    display: grid;
    justify-self: end;
    align-self: end;
    min-height: min(760px, 84vh);
    transform: translate(4%, 8%);
}

body.studio-home .hero-immersive .button-primary {
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.08);
    color: #f8f6ee;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(12px);
}

body.studio-home .hero-immersive .button-primary:hover,
body.studio-home .hero-immersive .button-primary:focus-visible {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.14);
    color: #f8f6ee;
}

body.studio-home[data-theme="day"] .hero-immersive .button-primary {
    border-color: rgba(42, 45, 58, 0.18);
    background: rgba(255, 255, 255, 0.62);
    color: #171923;
}

body.studio-home[data-theme="day"] .hero-immersive .button-primary:hover,
body.studio-home[data-theme="day"] .hero-immersive .button-primary:focus-visible {
    border-color: rgba(42, 45, 58, 0.26);
    background: rgba(255, 255, 255, 0.84);
    color: #171923;
}

body.studio-home .generator-heading-minimal {
    max-width: 40rem;
    margin-bottom: 0.35rem;
}

body.studio-home .generator-heading-minimal h2 {
    font-size: clamp(1.86rem, 3vw, 2.85rem);
    line-height: 1.04;
    letter-spacing: -0.018em;
    background: linear-gradient(90deg, #fffdf8 0%, #fff8e8 18%, #f8e7ba 38%, #edd087 56%, #fbf0cf 78%, #ffffff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 18px rgba(255, 229, 174, 0.16);
}

body.studio-home .platform-tools-section .section-intro {
    max-width: 40rem;
    font-size: 0.84rem;
}

body.studio-home .platform-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 0;
}

body.studio-home .platform-product-card {
    align-content: start;
    gap: 0.35rem;
    min-height: 6.25rem;
    padding: 1.1rem 1rem;
    border-radius: 12px;
    text-align: center;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.05)),
        rgba(255, 255, 255, 0.05);
}

body.studio-home .platform-product-card:hover,
body.studio-home .platform-product-card:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(239, 214, 163, 0.26);
}

body.studio-home .platform-product-card strong {
    font-size: clamp(1.06rem, 1.3vw, 1.18rem);
    line-height: 1.2;
}

body.studio-home .platform-product-card p {
    display: none;
}

body.studio-home .product-icon {
    display: none;
}

body.studio-home[data-theme="day"] .platform-product-card {
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(255, 249, 239, 0.6)),
        rgba(255, 255, 255, 0.72);
}

body.studio-home .platform-flow-band {
    display: none;
}

body.studio-home .creator-focus-section .section-heading {
    max-width: 48rem;
}

body.studio-home .ai-brief-panel {
    display: grid;
    gap: clamp(0.9rem, 1.7vw, 1.15rem);
    border-radius: 20px;
}

body.studio-home .kirby-ia-clean .generator-heading-minimal h2 {
    font-size: clamp(2.16rem, 3.8vw, 3.5rem);
    line-height: 1.04;
    letter-spacing: -0.018em;
    background: linear-gradient(90deg, #ffffff 0%, #fffef8 20%, #f8edd0 42%, #efddb0 58%, #fdf4de 80%, #ffffff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 22px rgba(255, 241, 214, 0.2);
}

body.studio-home .kirby-ia-clean .section-intro {
    max-width: 22rem;
    font-size: 0.82rem;
}

body.studio-home .kirby-ia-clean .ai-brief-panel {
    grid-template-columns: 1fr;
    max-width: 46rem;
    min-height: 27rem;
    padding: 1.3rem;
    border-color: rgba(255, 220, 92, 0.24);
    box-shadow: 0 22px 48px rgba(255, 196, 61, 0.08), 0 18px 44px rgba(0, 0, 0, 0.18);
}

body.studio-home .kirby-ia-clean .ai-brief-form {
    padding: 1.2rem;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 236, 156, 0.08), rgba(255, 255, 255, 0.03));
}

body.studio-home .kirby-ia-clean .field-message textarea {
    min-height: 15rem;
}

body.studio-home .kirby-ia-clean .advisor-composer-actions {
    grid-template-columns: 1fr;
}

body.studio-home .kirby-ia-clean .advisor-composer-actions .button {
    width: fit-content;
    min-width: 18rem;
    min-height: 3.6rem;
    padding-inline: 1.8rem;
    font-size: 1.02rem;
}

body.studio-home .kirby-ia-clean .ai-brief-output:empty {
    display: none;
}

@media (max-width: 1180px) {
    body.studio-home .hero-immersive .studio-hero-grid {
        grid-template-columns: 1fr;
        min-height: auto;
        gap: 1.4rem;
    }

    body.studio-home .hero-immersive .studio-signal-card {
        order: -1;
        min-height: 420px;
        margin-top: 0.2rem;
        transform: none;
    }

    body.studio-home .platform-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 840px) {
    body.studio-home .hero-immersive .hero h1,
    body.studio-home .hero-immersive h1 {
        font-size: clamp(2rem, 10.5vw, 3.25rem);
        line-height: 1.04;
        letter-spacing: -0.015em;
    }

    body.studio-home .hero-immersive .hero-role {
        font-size: 0.98rem;
    }

    body.studio-home .platform-product-grid {
        grid-template-columns: 1fr;
    }

    body.studio-home .platform-flow-band {
        border-radius: 18px;
    }
}

:root {
    --bg: #f6f7fb;
    --surface: rgba(255, 255, 255, 0.82);
    --surface-strong: #ffffff;
    --surface-muted: #eef1f8;
    --text: #171923;
    --text-soft: #5b6277;
    --line: rgba(58, 73, 110, 0.12);
    --line-strong: rgba(58, 73, 110, 0.24);
    --shadow: 0 24px 44px rgba(39, 52, 89, 0.08);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --space-xs: 0.75rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3.5rem;
    --space-2xl: 5rem;
    --max-width: 1120px;
    --assistant-width: min(380px, calc(100vw - 2rem));
    --cv-page-width: 210mm;
    --cv-page-height: 297mm;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    min-width: 320px;
    overflow-x: hidden;
    font-family: "Manrope", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(118, 154, 255, 0.12), transparent 34%),
        radial-gradient(circle at top right, rgba(173, 125, 255, 0.11), transparent 30%),
        linear-gradient(180deg, #fbfcff 0%, var(--bg) 100%);
    color: var(--text);
    line-height: 1.6;
}

@supports (overflow: clip) {
    html,
    body {
        overflow-x: clip;
    }
}

body.print-cv .page-shell > *:not(main),
body.print-cv main > *:not(#cv-intelligent) {
    display: none !important;
}

body.print-cv {
    background: #ffffff;
}

body.is-preload {
    overflow-x: hidden;
}

.is-hidden {
    display: none !important;
}

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

p,
h1,
h2,
h3,
ul {
    margin: 0;
}

img {
    max-width: 100%;
}

.page-shell {
    width: min(calc(100% - 2rem), var(--max-width));
    margin: 0 auto;
    padding: 1rem 0 2rem;
}

.hero {
    padding: 1rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.topbar {
    position: relative;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(14px);
    box-shadow: 0 10px 30px rgba(54, 74, 122, 0.07);
}

.brand {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    gap: 0.62rem;
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.1;
    text-transform: none;
}

.brand::before {
    content: "";
    flex: 0 0 auto;
    width: 2.35rem;
    height: 2.35rem;
    border: 0;
    border-radius: 14px;
    background: url("assets/favicon.svg") center / cover no-repeat;
    box-shadow:
        0 0 22px rgba(114, 150, 255, 0.18),
        0 10px 24px rgba(0, 0, 0, 0.2);
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 1rem;
}

.nav-links a {
    color: var(--text-soft);
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.nav-links a.is-active {
    color: var(--text);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.couture-menu-toggle {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 3.35rem;
    height: 3.35rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.045)),
        rgba(9, 10, 13, 0.56);
    color: inherit;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.16),
        0 18px 45px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(16px);
    cursor: pointer;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.couture-menu-toggle:hover,
.couture-menu-toggle:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(239, 214, 163, 0.34);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 22px 56px rgba(0, 0, 0, 0.28),
        0 0 34px rgba(239, 214, 163, 0.12);
}

.menu-glyph {
    position: relative;
    width: 1.28rem;
    height: 1.28rem;
    transform: rotate(-18deg);
}

.menu-glyph::before,
.menu-glyph::after,
.menu-glyph i {
    content: "";
    position: absolute;
    border-radius: 999px;
    background: currentColor;
    opacity: 0.88;
    transition: transform 0.28s ease, opacity 0.28s ease;
}

.menu-glyph::before {
    top: 0.1rem;
    left: 0.42rem;
    width: 0.34rem;
    height: 1.08rem;
}

.menu-glyph::after {
    top: 0.42rem;
    left: 0.1rem;
    width: 1.08rem;
    height: 0.34rem;
}

.menu-glyph i:first-child {
    right: 0;
    top: 0;
    width: 0.38rem;
    height: 0.38rem;
    background: #efd6a3;
}

.menu-glyph i:last-child {
    left: 0;
    bottom: 0;
    width: 0.38rem;
    height: 0.38rem;
    background: rgba(114, 150, 255, 0.95);
}

.couture-menu-toggle[aria-expanded="true"] .menu-glyph::before {
    transform: rotate(45deg) scaleY(0.92);
}

.couture-menu-toggle[aria-expanded="true"] .menu-glyph::after {
    transform: rotate(45deg) scaleX(0.92);
}

.couture-menu-toggle[aria-expanded="true"] .menu-glyph i {
    opacity: 0.38;
    transform: scale(0.72);
}

.site-menu-panel {
    position: absolute;
    top: calc(100% + 0.7rem);
    right: 0;
    display: grid;
    gap: 1rem;
    width: min(24rem, calc(100vw - 2rem));
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 28px;
    background:
        radial-gradient(circle at 82% 0%, rgba(239, 214, 163, 0.14), transparent 13rem),
        linear-gradient(145deg, rgba(27, 29, 38, 0.88), rgba(7, 8, 12, 0.78));
    color: #f8f6ee;
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(22px);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-0.55rem) scale(0.98);
    transform-origin: top right;
    transition: opacity 0.24s ease, transform 0.24s ease;
}

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

.site-menu-links,
.site-menu-actions {
    display: grid;
    gap: 0.45rem;
}

.site-menu-links a,
.site-menu-actions a,
.site-menu-actions button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 2.85rem;
    width: 100%;
    padding: 0.78rem 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.045);
    color: inherit;
    font: inherit;
    font-size: 0.94rem;
    font-weight: 750;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.site-menu-links a:hover,
.site-menu-links a:focus-visible,
.site-menu-links a.is-active,
.site-menu-actions a:hover,
.site-menu-actions a:focus-visible,
.site-menu-actions button:hover,
.site-menu-actions button:focus-visible {
    transform: translateX(2px);
    border-color: rgba(239, 214, 163, 0.22);
    background: rgba(239, 214, 163, 0.09);
}

.site-menu-actions {
    padding-top: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.site-menu-actions button:disabled {
    opacity: 0.45;
    cursor: default;
}

.site-menu-actions button:disabled:hover {
    transform: none;
    border-color: rgba(255, 255, 255, 0.09);
    background: rgba(255, 255, 255, 0.045);
}

.auth-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.auth-badge {
    display: inline-flex;
    align-items: center;
    min-height: 2.35rem;
    padding: 0.45rem 0.9rem;
    border: 1px solid rgba(47, 63, 127, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    color: #2f3f7f;
    font-size: 0.88rem;
    font-weight: 700;
}

.auth-button {
    width: auto;
    min-height: 2.35rem;
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    font-size: 0.9rem;
}

.hero-content {
    margin: auto 0;
    padding: 4rem 0 3rem;
    max-width: 760px;
}

.hero-title {
    overflow: hidden;
}

.title-line {
    display: inline-block;
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: var(--text-soft);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.eyebrow::before,
.section-kicker::before {
    content: "";
    width: 2.5rem;
    height: 1px;
    background: var(--line-strong);
}

.hero h1 {
    font-size: clamp(2.5rem, 7vw, 4.8rem);
    line-height: 0.98;
    letter-spacing: -0.05em;
    opacity: 0;
    transform: translateY(20px);
}

.hero-role {
    margin-top: 1rem;
    font-size: clamp(1.05rem, 2.4vw, 1.45rem);
    font-weight: 600;
    color: var(--text-soft);
}

.hero-text {
    margin-top: 1.5rem;
    max-width: 38rem;
    font-size: 1.02rem;
    color: var(--text-soft);
}

.hero-note {
    margin-top: 1rem;
    color: #2f3f7f;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 3.1rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.25rem;
    padding: 0.85rem 1.4rem;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    font-weight: 700;
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.button:hover,
.button:focus-visible {
    transform: translateY(-1px);
}

.button-primary {
    background: #2f3f7f;
    color: #ffffff;
    border-color: #2f3f7f;
}

.button-secondary {
    background: rgba(255, 255, 255, 0.75);
}

.section {
    padding: var(--space-2xl) 0;
}

.reveal-section {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

#cv-intelligent.reveal-section {
    opacity: 1;
    transform: none;
}

.section-heading {
    max-width: 44rem;
    margin-bottom: var(--space-lg);
}

.section-intro {
    max-width: 42rem;
    margin-bottom: 1.4rem;
    color: var(--text-soft);
    font-size: 1.02rem;
}

.section h2 {
    font-size: clamp(2.1rem, 4.2vw, 3.25rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.section-profile,
.section-contact,
.section-demo,
.section-cv,
.section-assistant {
    position: relative;
}

.profile-panel,
.contact-panel {
    padding: clamp(1.5rem, 3vw, 2.4rem);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.75));
    box-shadow: var(--shadow);
}

.profile-panel {
    display: grid;
    gap: 1rem;
    font-size: 1.02rem;
    color: var(--text-soft);
}

.skills-grid,
.cards-grid,
.demo-grid {
    display: grid;
    gap: 1rem;
}

.skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.skill-card {
    padding: 1rem 1.1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface);
    text-align: center;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(58, 73, 110, 0.06);
}

.cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.demo-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.section-cards {
    padding-top: 0;
}

.card {
    transform: translateY(30px);
    opacity: 0;
    transition: transform 0.6s ease, opacity 0.6s ease, box-shadow 0.2s ease;
}

.card.show {
    transform: translateY(0);
    opacity: 1;
}

.content-card {
    padding: 1.4rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface-strong);
    box-shadow: 0 16px 28px rgba(58, 73, 110, 0.06);
}

.content-card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    line-height: 1.2;
}

.content-card p {
    color: var(--text-soft);
}

.content-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 35px rgba(58, 73, 110, 0.12);
}

.demo-card {
    padding: 1.4rem;
    min-height: 210px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(241, 244, 255, 0.9));
    box-shadow: 0 16px 28px rgba(58, 73, 110, 0.06);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
}

.demo-card p {
    color: var(--text-soft);
}

.interactive-card {
    cursor: pointer;
}

.demo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 35px rgba(58, 73, 110, 0.12);
}

.inline-link {
    width: fit-content;
    margin-top: auto;
    padding: 0;
    border: 0;
    background: transparent;
    color: #2f3f7f;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.expandable-card {
    overflow: hidden;
}

.expand-trigger {
    margin-top: 0.65rem;
}

.expandable-content {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s ease, margin-top 0.35s ease;
    margin-top: 0;
}

.expandable-inner {
    overflow: hidden;
}

.expandable-inner p,
.expandable-inner a {
    color: var(--text-soft);
}

.expandable-card.is-open .expandable-content {
    grid-template-rows: 1fr;
    margin-top: 0.95rem;
}

.cv-layout {
    display: grid;
    gap: 1.25rem;
    position: relative;
}

.cv-editor-panel,
.cv-form,
.cv-preview-shell,
.assistant-panel {
    padding: clamp(1.5rem, 3vw, 2.4rem);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(246, 248, 255, 0.82));
    box-shadow: var(--shadow);
}

.cv-editor-panel {
    display: grid;
    gap: 1.25rem;
}

.cv-form {
    display: grid;
    gap: 1rem;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.cv-quick-presets {
    display: grid;
    gap: 1rem;
    padding: 1.25rem;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(250, 251, 255, 0.96), rgba(241, 245, 255, 0.9));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.preset-actions {
    display: grid;
    gap: 0.7rem;
}

.preset-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 3.2rem;
    border: 1px solid rgba(47, 63, 127, 0.12);
    background: rgba(255, 255, 255, 0.9);
    color: var(--text);
    border-radius: 999px;
    padding: 0.7rem 0.95rem;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.preset-chip:hover,
.preset-chip:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(47, 63, 127, 0.28);
    box-shadow: 0 12px 22px rgba(47, 63, 127, 0.08);
}

.cv-focus-toggle {
    position: sticky;
    top: 6.5rem;
    z-index: 4;
    width: 2.6rem;
    height: 4.8rem;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: linear-gradient(180deg, #2f3f7f, #3d52a0);
    color: #ffffff;
    font: inherit;
    cursor: pointer;
    box-shadow: 0 18px 28px rgba(31, 38, 72, 0.16);
    align-self: start;
    justify-self: center;
}

.cv-focus-toggle-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    font-size: 1.35rem;
    font-weight: 700;
}

.cv-toolbar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.8rem;
    align-items: end;
}

.template-presets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 0.8rem;
}

.design-panel {
    display: grid;
    gap: 0.9rem;
    padding: 1rem 1.05rem;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(252, 253, 255, 0.98), rgba(244, 247, 255, 0.92));
}

.template-chip {
    display: grid;
    gap: 0.28rem;
    padding: 0.95rem 1rem;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.9);
    text-align: left;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.template-chip strong {
    font-size: 0.96rem;
}

.template-chip span {
    color: var(--text-soft);
    font-size: 0.84rem;
    line-height: 1.4;
}

.template-chip:hover,
.template-chip:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(47, 63, 127, 0.24);
    box-shadow: 0 14px 24px rgba(47, 63, 127, 0.08);
}

.cv-ribbon-presets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
    padding: 0.85rem;
    border: 1px solid var(--line);
    border-radius: 22px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(255, 249, 239, 0.5)),
        rgba(255, 255, 255, 0.78);
}

.tool-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 3.2rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.88);
    font-weight: 600;
    color: var(--text);
    justify-content: center;
}

.tool-toggle input {
    margin: 0;
    accent-color: #2f3f7f;
}

.form-split {
    display: grid;
    gap: 1rem;
}

.field select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 0.95rem 1rem;
    font: inherit;
    color: var(--text);
    background: rgba(255, 255, 255, 0.9);
}

.field-color input {
    width: 100%;
    min-height: 3.2rem;
    padding: 0.4rem;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.9);
}

.field-hint-toolbar {
    margin-top: -0.15rem;
    padding: 0.85rem 1rem 0;
    border-top: 1px dashed var(--line);
}

.cv-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.cv-action-groups {
    display: grid;
    gap: 1rem;
}

.cv-action-group {
    display: grid;
    gap: 0.7rem;
    padding: 1rem 1rem 1.05rem;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.76);
}

.cv-action-group h4 {
    margin: 0;
    font-size: 0.92rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-soft);
}

.cv-action-group-single .cv-actions {
    justify-content: flex-start;
}

.cv-preview-shell {
    display: grid;
    gap: 1rem;
    align-self: start;
}

.cv-analysis-panel {
    display: grid;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.78);
}

.cv-ai-panel {
    margin-top: 0.4rem;
    background: linear-gradient(180deg, rgba(248, 250, 255, 0.98), rgba(241, 245, 255, 0.92));
}

.experience-workbench {
    display: grid;
    gap: 0.9rem;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.78);
}

.language-workbench {
    display: grid;
    gap: 0.9rem;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.78);
}

.experience-workbench-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.field-label {
    display: block;
    font-weight: 800;
    color: var(--text);
}

.experience-workbench-head p,
.cv-assist-panel .analysis-block-header p {
    margin: 0.18rem 0 0;
    color: var(--text-soft);
    font-size: 0.95rem;
    line-height: 1.45;
}

.experience-cards {
    display: grid;
    gap: 0.85rem;
}

.experience-card {
    display: grid;
    gap: 0.78rem;
    padding: 0.9rem;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 14px 34px rgba(31, 38, 72, 0.06);
}

.experience-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

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

.experience-card label {
    display: grid;
    gap: 0.35rem;
    font-weight: 800;
    color: var(--text);
}

.experience-card label span {
    font-size: 0.86rem;
}

.experience-card input,
.experience-card textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0.78rem 0.9rem;
    background: rgba(255, 255, 255, 0.94);
    color: var(--text);
    font: inherit;
}

.experience-card textarea {
    min-height: 5.4rem;
    resize: vertical;
}

.experience-card-actions {
    display: flex;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.experience-card-actions .button {
    min-height: 2.55rem;
    padding: 0.62rem 0.9rem;
    font-size: 0.88rem;
}

.language-cards {
    display: grid;
    gap: 0.65rem;
}

.language-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(11rem, 0.8fr) auto;
    gap: 0.65rem;
    align-items: end;
    padding: 0.78rem;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.92);
}

.language-card label {
    display: grid;
    gap: 0.32rem;
    font-size: 0.86rem;
    font-weight: 800;
    color: var(--text);
}

.language-card input,
.language-card select {
    width: 100%;
    min-height: 2.8rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0.64rem 0.72rem;
    background: rgba(255, 255, 255, 0.94);
    color: var(--text);
    font: inherit;
}

.language-card .button {
    min-height: 2.8rem;
    padding: 0.6rem 0.78rem;
    white-space: nowrap;
}

.cv-export-hint {
    margin: 0.45rem 0 0;
    color: var(--text-soft);
    font-size: 0.78rem;
    line-height: 1.35;
}

.raw-cv-details {
    border-top: 1px dashed var(--line);
    padding-top: 0.75rem;
}

.raw-cv-details summary {
    cursor: pointer;
    font-weight: 800;
    color: var(--text-soft);
}

.raw-cv-details .field {
    margin-top: 0.8rem;
}

.job-match {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.job-match strong {
    font-size: 1.15rem;
    color: #2f3f7f;
}

.ats-score {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 16px;
    background: rgba(47, 63, 127, 0.08);
    color: #2f3f7f;
    font-weight: 700;
}

.ats-score strong {
    font-size: 1.25rem;
}

.analysis-block {
    display: grid;
    gap: 0.55rem;
}

.analysis-block-header {
    padding-bottom: 0.2rem;
    border-bottom: 1px dashed var(--line);
}

.analysis-block h4 {
    margin: 0;
    font-size: 0.88rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text);
}

.analysis-block ul {
    margin: 0;
    padding-left: 1rem;
    display: grid;
    gap: 0.45rem;
    color: var(--text-soft);
}

.cv-preview-toolbar {
    display: grid;
    gap: 1rem;
    padding: 1.2rem 1.25rem;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 247, 255, 0.9));
    box-shadow: 0 14px 28px rgba(58, 73, 110, 0.06);
    color: var(--text-soft);
    font-size: 0.92rem;
}

.preview-toolbar-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.preview-toolbar-group-tools {
    display: grid;
    gap: 0.85rem;
    padding: 0;
}

.preview-quick-control {
    display: grid;
    gap: 0.35rem;
    min-width: 0;
    color: var(--text-soft);
    font-size: 0.84rem;
    font-weight: 700;
}

.preview-quick-control select {
    min-height: 42px;
    padding: 0.68rem 0.9rem;
    border-radius: 15px;
    border: 1px solid var(--line);
    background: #ffffff;
    color: var(--text);
    font: inherit;
}

.preview-quick-control input[type="color"] {
    width: 100%;
    min-height: 42px;
    padding: 0.35rem;
    border-radius: 15px;
    border: 1px solid var(--line);
    background: #ffffff;
}

.preview-color-control {
    min-width: 5.8rem;
}

.preview-toolbar-group-mode {
    align-items: flex-start;
    justify-content: space-between;
}

.preview-mode-tabs {
    display: inline-flex;
    padding: 0.2rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
}

.preview-mode-tab {
    min-height: 2.2rem;
    padding: 0.45rem 0.9rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--text-soft);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.preview-mode-tab.is-active {
    background: #2f3f7f;
    color: #ffffff;
}

.cv-word-toolbar-shell {
    position: sticky;
    top: 1rem;
    z-index: 7;
    width: min(100%, calc(var(--cv-page-width) + 10rem));
    margin: 0 auto;
    padding-bottom: 0.35rem;
}

.cv-word-toolbar {
    display: grid;
    gap: 0.55rem;
    padding: 0.62rem 0.72rem;
    border: 1px solid rgba(47, 63, 127, 0.12);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 16px 28px rgba(31, 38, 72, 0.08);
    backdrop-filter: blur(10px);
}

.word-toolbar-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    align-items: stretch;
    gap: 0.48rem;
}

.word-toolbar-row-actions {
    padding-top: 0.15rem;
    border-top: 1px solid rgba(47, 63, 127, 0.08);
}

.word-ribbon-group {
    display: grid;
    gap: 0.36rem;
    padding: 0.45rem 0.52rem;
    border: 1px solid rgba(47, 63, 127, 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.7);
}

.word-ribbon-title {
    margin: 0;
    color: #405174;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.word-ribbon-controls {
    display: flex;
    align-items: end;
    flex-wrap: wrap;
    gap: 0.36rem;
}

.word-ribbon-group-typography .word-ribbon-controls {
    display: grid;
    grid-template-columns: minmax(8rem, 1fr) minmax(5.5rem, 0.6fr) minmax(5.7rem, 0.7fr) auto;
    align-items: end;
}

.word-ribbon-group-layout .word-ribbon-controls,
.word-ribbon-group-document .word-ribbon-controls {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: end;
}

.word-ribbon-group-paragraph .word-ribbon-controls {
    display: grid;
    grid-template-columns: auto minmax(5rem, 0.8fr) minmax(5.7rem, 0.9fr) minmax(2.6rem, 0.5fr) minmax(2.6rem, 0.5fr);
    align-items: center;
}

@media (max-width: 760px) {
    .cv-word-toolbar-shell {
        width: 100%;
    }

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

    .word-ribbon-group-typography .word-ribbon-controls,
    .word-ribbon-group-layout .word-ribbon-controls,
    .word-ribbon-group-paragraph .word-ribbon-controls,
    .word-ribbon-group-document .word-ribbon-controls {
        display: flex;
        align-items: end;
        flex-wrap: wrap;
    }
}

.word-toolbar-field {
    display: grid;
    gap: 0.18rem;
    min-width: 78px;
    color: var(--text-soft);
    font-size: 0.64rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.word-toolbar-field-size {
    min-width: 62px;
}

.word-toolbar-field-line-height {
    min-width: 74px;
}

.word-toolbar-field-frame {
    min-width: 88px;
}

.word-toolbar-field-borders {
    min-width: 102px;
}

.word-toolbar-field select {
    min-height: 2rem;
    padding: 0.34rem 0.52rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #ffffff;
    font: inherit;
    color: var(--text);
}

.word-toolbar-segment {
    display: inline-flex;
    align-items: center;
    gap: 0.1rem;
    padding: 0.08rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(248, 250, 255, 0.92);
}

.word-toolbar-button {
    min-width: 1.52rem;
    min-height: 1.52rem;
    padding: 0.16rem 0.28rem;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.word-toolbar-button:hover,
.word-toolbar-button:focus-visible,
.word-toolbar-button.is-active {
    background: rgba(47, 63, 127, 0.12);
    color: #2f3f7f;
    transform: translateY(-1px);
}

.word-toolbar-button-list {
    min-width: 3.5rem;
    justify-content: center;
}

.word-ribbon-group-document .word-toolbar-button {
    width: 100%;
}

.preview-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: rgba(47, 63, 127, 0.08);
    color: #2f3f7f;
    font-weight: 700;
}

.cv-preview {
    --cv-accent: #2f3f7f;
    --cv-soft: rgba(47, 63, 127, 0.08);
    --cv-paper: #ffffff;
    --cv-frame: rgba(19, 22, 32, 0.08);
    width: min(100%, var(--cv-page-width));
    min-height: var(--cv-page-height);
    margin: 0 auto;
    padding: 2rem;
    border-radius: 22px;
    background: var(--cv-paper);
    border: 1px solid var(--cv-frame);
    box-shadow: 0 18px 34px rgba(31, 38, 72, 0.08);
    font-size: 0.97rem;
    transform-origin: top center;
    position: relative;
}

.cv-preview[data-page-frame="none"] {
    border-color: transparent;
    box-shadow: 0 10px 20px rgba(31, 38, 72, 0.06);
}

.cv-preview[data-page-frame="strong"] {
    border-width: 2px;
}

.cv-preview[data-page-frame="double"] {
    border-style: double;
    border-width: 3px;
    border-radius: 18px;
}

.cv-preview[data-section-borders="none"] .cv-body section {
    border: 0 !important;
}

.cv-preview[data-section-borders="line"] .cv-body section {
    padding-bottom: 0.7rem;
    border-bottom: 1px solid var(--cv-frame);
}

.cv-preview[data-section-borders="line"] .cv-body section:last-child {
    border-bottom: 0;
}

.cv-preview[data-section-borders="box"] .cv-body section {
    padding: 0.68rem 0.78rem;
    border: 1px solid var(--cv-frame);
    border-radius: 10px;
}

.cv-page-guide {
    position: absolute;
    inset: 14mm 12mm;
    border: 1px dashed rgba(47, 63, 127, 0.14);
    border-radius: 8px;
    pointer-events: none;
}

.cv-preview-viewport {
    height: min(74vh, 860px);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0.5rem;
    border: 1px solid var(--line);
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(241, 244, 255, 0.85), rgba(255, 255, 255, 0.96));
}

.cv-preview-stage {
    display: grid;
    justify-items: center;
    align-content: start;
    gap: 18mm;
    min-height: 0;
}

.preview-page-thumbnails {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding-top: 0.9rem;
    flex-wrap: wrap;
}

.page-thumb {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.92);
    color: var(--text-soft);
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.page-thumb:hover,
.page-thumb:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(47, 63, 127, 0.22);
    box-shadow: 0 10px 20px rgba(47, 63, 127, 0.08);
}

.page-thumb.is-active {
    background: #2f3f7f;
    border-color: #2f3f7f;
    color: #ffffff;
}

.is-hidden-preview {
    display: none !important;
}

.cv-layout.is-preview-focus {
    grid-template-columns: 0 2.6rem minmax(0, 1fr) !important;
}

.cv-layout.is-preview-focus .cv-editor-panel {
    overflow: hidden;
    padding: 0;
    border: 0;
    box-shadow: none;
    opacity: 0;
    pointer-events: none;
}

.cv-layout.is-preview-focus .cv-focus-toggle-arrow {
    transform: rotate(180deg);
}

body.cv-workspace-page {
    --max-width: 1720px;
    --bg: #f5f1e8;
    --surface: rgba(255, 255, 255, 0.82);
    --surface-strong: rgba(255, 255, 255, 0.92);
    --surface-muted: rgba(245, 241, 232, 0.78);
    --line: rgba(42, 45, 58, 0.12);
    --line-strong: rgba(42, 45, 58, 0.22);
    --shadow: 0 26px 58px rgba(74, 65, 45, 0.12);
    background:
        radial-gradient(circle at 18% 2%, rgba(213, 173, 98, 0.18), transparent 23rem),
        radial-gradient(circle at 84% 8%, rgba(120, 151, 220, 0.22), transparent 30rem),
        radial-gradient(circle at 72% 42%, rgba(114, 150, 255, 0.09), transparent 28rem),
        linear-gradient(180deg, #f7f2e8 0%, #f5f1e8 48%, #f5f1e8 100%);
}

body.cv-workspace-page .page-shell {
    padding-bottom: 1rem;
}

body.cv-workspace-page .hero {
    min-height: auto;
    justify-content: flex-start;
    gap: clamp(1.2rem, 3vw, 2.4rem);
    padding: 1rem 1rem clamp(1rem, 2.5vw, 1.8rem);
}

body.cv-workspace-page .hero-content {
    max-width: 1160px;
    margin: 0;
    padding: clamp(1.2rem, 3vw, 2.4rem) 0 0;
}

body.cv-workspace-page .hero h1 {
    max-width: 1140px;
    font-size: clamp(2.55rem, 4.8vw, 4.9rem);
    line-height: 0.98;
    color: #171923;
}

body.cv-workspace-page .hero-role {
    max-width: 58rem;
    font-size: clamp(1.12rem, 2.2vw, 1.5rem);
    color: rgba(42, 45, 58, 0.76);
}

body.cv-workspace-page .hero-text {
    max-width: 48rem;
    font-size: 1rem;
    color: rgba(42, 45, 58, 0.7);
}

body.cv-workspace-page .section-cv {
    padding-top: clamp(0.7rem, 1.5vw, 1.4rem);
    padding-bottom: clamp(2rem, 4vw, 3.5rem);
}

body.cv-workspace-page .section-cv > .section-heading {
    margin-bottom: 1rem;
}

body.cv-workspace-page .section-cv > .section-heading h2 {
    max-width: 52rem;
    font-size: clamp(2rem, 3.4vw, 3.25rem);
    line-height: 1;
}

body.cv-workspace-page .cv-layout {
    grid-template-columns: 1fr;
    gap: clamp(1rem, 2vw, 1.35rem);
}

body.cv-workspace-page .cv-editor-panel {
    order: 2;
}

body.cv-workspace-page .cv-preview-shell {
    order: 1;
}

body.cv-workspace-page .cv-focus-toggle {
    display: none !important;
}

body.cv-workspace-page .cv-editor-panel,
body.cv-workspace-page .cv-preview-shell {
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.84), rgba(255, 249, 239, 0.58)),
        rgba(255, 255, 255, 0.74);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

body.cv-workspace-page .cv-editor-panel {
    padding: clamp(1rem, 2vw, 1.35rem);
}

body.cv-workspace-page .cv-preview-shell {
    gap: 0.75rem;
    padding: clamp(0.9rem, 1.8vw, 1.15rem);
}

body.cv-workspace-page .design-panel,
body.cv-workspace-page .cv-action-group,
body.cv-workspace-page .cv-analysis-panel,
body.cv-workspace-page .cv-ribbon-presets,
body.cv-workspace-page .cv-preview-toolbar,
body.cv-workspace-page .cv-word-toolbar,
body.cv-workspace-page .cover-letter-panel {
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(255, 249, 239, 0.46)),
        rgba(255, 255, 255, 0.7);
}

body.cv-workspace-page .cv-import-strip {
    display: grid;
    grid-template-columns: minmax(0, 0.55fr) minmax(320px, 1fr);
    gap: clamp(0.8rem, 2vw, 1.3rem);
    align-items: center;
    margin-bottom: clamp(1rem, 2vw, 1.35rem);
    padding: clamp(1rem, 2vw, 1.35rem);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(255, 249, 239, 0.52)),
        rgba(255, 255, 255, 0.76);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

body.cv-workspace-page .cv-import-copy {
    display: grid;
    gap: 0.35rem;
}

body.cv-workspace-page .cv-import-copy .section-kicker {
    margin: 0;
}

body.cv-workspace-page .cv-import-copy h3 {
    margin: 0;
    font-size: clamp(1.35rem, 2.1vw, 2rem);
    line-height: 1.05;
    letter-spacing: 0;
}

body.cv-workspace-page .cv-import-field {
    display: grid;
    gap: 0.45rem;
    padding: 0.8rem;
    border: 1px dashed rgba(42, 45, 58, 0.18);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.76);
}

body.cv-workspace-page .cv-import-field > span {
    font-weight: 800;
    color: var(--text);
}

body.cv-workspace-page .cv-import-field input[type="file"] {
    width: 100%;
    padding: 0.72rem;
    border: 1px solid rgba(42, 45, 58, 0.12);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.86);
    color: var(--text);
}

body.cv-workspace-page .template-presets {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

body.cv-workspace-page .cv-ribbon-presets {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

body.cv-workspace-page .template-chip {
    grid-template-columns: 4rem minmax(0, 1fr);
    align-items: center;
    min-height: 5.6rem;
    padding: 0.72rem;
    background: rgba(255, 255, 255, 0.78);
}

body.cv-workspace-page .template-chip > strong,
body.cv-workspace-page .template-chip > span:not(.template-mini) {
    grid-column: 2;
}

body.cv-workspace-page .template-mini {
    grid-row: 1 / span 2;
    display: grid;
    gap: 0.2rem;
    align-content: start;
    width: 3.2rem;
    min-height: 4.3rem;
    padding: 0.45rem;
    border: 1px solid rgba(42, 45, 58, 0.12);
    border-radius: 10px;
    background: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

body.cv-workspace-page .template-mini i {
    display: block;
    height: 0.34rem;
    border-radius: 999px;
    background: rgba(42, 45, 58, 0.22);
}

body.cv-workspace-page .template-mini i:first-child {
    width: 78%;
    height: 0.5rem;
    background: var(--cv-mini-accent, #2f3f7f);
}

body.cv-workspace-page .template-mini i:nth-child(2) {
    width: 92%;
}

body.cv-workspace-page .template-mini i:nth-child(3) {
    width: 62%;
}

body.cv-workspace-page .template-mini-classic {
    --cv-mini-accent: #334155;
}

body.cv-workspace-page .template-mini-professional {
    --cv-mini-accent: #2f3f7f;
}

body.cv-workspace-page .template-mini-design {
    --cv-mini-accent: #b83280;
    background: #fff8fb;
}

body.cv-workspace-page .template-mini-premium {
    --cv-mini-accent: #9a7b43;
    background: #fffaf0;
    border-color: rgba(154, 123, 67, 0.28);
}

body.cv-workspace-page .template-mini-digital {
    --cv-mini-accent: #3f5fb6;
    background: linear-gradient(180deg, rgba(243, 247, 255, 0.96), rgba(232, 238, 250, 0.9));
    border-color: rgba(63, 95, 182, 0.18);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.78),
        0 10px 22px rgba(40, 62, 112, 0.08);
}

body.cv-workspace-page .template-mini-digital i:first-child {
    width: 88%;
}

body.cv-workspace-page .template-mini-digital i:nth-child(2) {
    width: 76%;
    height: 0.72rem;
    border-radius: 8px;
    background: rgba(63, 95, 182, 0.14);
}

body.cv-workspace-page .template-mini-digital i:nth-child(3) {
    width: 94%;
    height: 0.82rem;
    border-radius: 10px;
    background: rgba(24, 37, 63, 0.08);
}

body.cv-workspace-page .template-mini-holographic {
    --cv-mini-accent: #6b7dff;
    background:
        linear-gradient(180deg, rgba(245, 248, 255, 0.98), rgba(233, 239, 255, 0.9)),
        linear-gradient(135deg, rgba(187, 214, 255, 0.28), rgba(224, 199, 255, 0.18));
    border-color: rgba(107, 125, 255, 0.16);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.86),
        0 12px 24px rgba(76, 99, 172, 0.08);
}

body.cv-workspace-page .template-mini-holographic i:first-child {
    width: 88%;
}

body.cv-workspace-page .template-mini-holographic i:nth-child(2) {
    width: 84%;
    height: 0.74rem;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(107, 125, 255, 0.16), rgba(168, 220, 255, 0.14));
}

body.cv-workspace-page .template-mini-holographic i:nth-child(3) {
    width: 96%;
    height: 0.84rem;
    border-radius: 10px;
    background: linear-gradient(90deg, rgba(190, 214, 255, 0.18), rgba(221, 202, 255, 0.16));
}

body.cv-workspace-page .cv-toolbar {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.cv-workspace-page .cv-preview-toolbar {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
}

body.cv-workspace-page .preview-toolbar-group-tools {
    grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
    align-items: end;
}

body.cv-workspace-page .preview-toolbar-group-mode {
    min-width: 11rem;
}

body.cv-workspace-page .preview-quick-control {
    gap: 0.28rem;
}

body.cv-workspace-page .preview-quick-control select,
body.cv-workspace-page .preview-quick-control input[type="color"] {
    min-height: 2.65rem;
    border-radius: 14px;
}

body.cv-workspace-page .cv-action-groups {
    order: -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.cv-workspace-page .cv-actions .button {
    min-height: 2.75rem;
    padding: 0.72rem 1rem;
}

body.cv-workspace-page .cv-preview-viewport {
    background:
        radial-gradient(circle at 50% 0%, rgba(120, 151, 220, 0.16), transparent 22rem),
        linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(245, 241, 232, 0.7));
    height: auto;
    max-height: none;
    overflow: visible;
    padding-block: clamp(0.8rem, 2vw, 1.2rem);
}

body.cv-workspace-page .cv-preview-stage {
    height: auto !important;
}

body.cv-workspace-page .assistant-toggle {
    box-shadow: 0 18px 42px rgba(47, 63, 127, 0.2);
}

@media (min-width: 1100px) {
    body.cv-workspace-page .cv-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    body.cv-workspace-page .cv-preview-shell {
        position: relative;
        top: auto;
        max-height: none;
    }

    body.cv-workspace-page .cv-preview-toolbar {
        padding: 0.82rem 0.9rem;
    }

    body.cv-workspace-page .cv-word-toolbar-shell {
        top: 0;
        padding-bottom: 0.2rem;
    }

    body.cv-workspace-page .cv-preview-viewport {
        height: auto;
        padding: 0.75rem;
    }

    body.cv-workspace-page .cv-editor-panel {
        max-width: 100%;
    }

    body.cv-workspace-page .assistant-toggle {
        top: 8.4rem;
        right: 1rem;
        bottom: auto;
    }

    body.cv-workspace-page .assistant-chat {
        top: 12.6rem;
        bottom: auto;
        max-height: calc(100dvh - 15rem);
        overflow: hidden;
    }
}

@media (min-width: 1400px) {
    body.cv-workspace-page .cv-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1099px) {
    body.cv-workspace-page .cv-layout {
        grid-template-columns: 1fr;
    }

    body.cv-workspace-page .cv-import-strip {
        grid-template-columns: 1fr;
    }

    body.cv-workspace-page .cv-focus-toggle {
        display: none;
    }

    body.cv-workspace-page .cv-preview-shell {
        position: static;
    }

    body.cv-workspace-page .template-presets,
    body.cv-workspace-page .cv-ribbon-presets,
    body.cv-workspace-page .cv-toolbar,
    body.cv-workspace-page .cv-action-groups {
        grid-template-columns: 1fr;
    }

    body.cv-workspace-page .hero h1 {
        font-size: clamp(2.45rem, 10vw, 4.2rem);
    }

    .cv-preview.template-digital .cv-body section[data-section-key="summary"],
    .cv-preview.template-digital .cv-body section[data-section-key="skills"],
    .cv-preview.template-digital .cv-body section[data-section-key="education"],
    .cv-preview.template-digital .cv-body section[data-section-key="languages"],
    .cv-preview.template-digital .cv-body section[data-section-key="activities"] {
        grid-column: span 6;
    }
}

.cover-letter-panel {
    display: grid;
    gap: 1rem;
    padding: clamp(1.5rem, 3vw, 2rem);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 249, 255, 0.9));
    box-shadow: var(--shadow);
}

.cover-letter-panel.is-hidden-panel {
    display: none;
}

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

.section-heading-compact h3 {
    margin: 0;
    font-size: 1.5rem;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.letter-preview {
    display: grid;
    gap: 1rem;
    padding: 1.4rem;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #ffffff;
    color: var(--text);
    white-space: pre-line;
}

.letter-subject {
    font-weight: 700;
    color: #2f3f7f;
}

.letter-body {
    color: var(--text-soft);
    line-height: 1.8;
}

.cv-letter-page {
    position: relative;
}

.cv-preview.size-large {
    font-size: 1rem;
}

.cv-preview.size-compact {
    font-size: 0.88rem;
}

.cv-preview.palette-indigo {
    --cv-accent: #2f3f7f;
    --cv-soft: rgba(47, 63, 127, 0.08);
}

.cv-preview.palette-emerald {
    --cv-accent: #0f766e;
    --cv-soft: rgba(15, 118, 110, 0.1);
}

.cv-preview.palette-rose {
    --cv-accent: #be185d;
    --cv-soft: rgba(190, 24, 93, 0.08);
}

.cv-preview.palette-graphite {
    --cv-accent: #1f2937;
    --cv-soft: rgba(31, 41, 55, 0.08);
}

.cv-preview.font-serif {
    font-family: "Libre Baskerville", serif;
}

.cv-preview.font-inter {
    font-family: "Inter", sans-serif;
}

.cv-preview.font-manrope {
    font-family: "Manrope", sans-serif;
}

.cv-preview.font-roboto {
    font-family: "Roboto", sans-serif;
}

.cv-preview.font-lato {
    font-family: "Lato", sans-serif;
}

.cv-preview.font-playfair .cv-header h3,
.cv-preview.font-playfair .cv-body h4 {
    font-family: "Playfair Display", serif;
}

.cv-preview.mood-editorial {
    border-top: 6px solid var(--cv-accent);
}

.cv-preview.mood-startup {
    background: linear-gradient(180deg, var(--cv-paper), var(--cv-soft));
}

.cv-preview.mood-luxury {
    background: linear-gradient(180deg, var(--cv-paper), #fcfaf5);
    border: 1px solid var(--cv-frame);
    box-shadow: 0 24px 48px rgba(36, 33, 28, 0.1);
}

.cv-preview.mood-luxury::before {
    content: "";
    position: absolute;
    inset: 14px;
    border: 1px solid rgba(180, 146, 79, 0.28);
    border-radius: 14px;
    pointer-events: none;
}

.cv-preview.font-mono {
    font-family: "IBM Plex Sans", sans-serif;
}

.cv-preview.theme-creative {
    background: linear-gradient(180deg, var(--cv-paper), #f6f8ff);
    border-left: 6px solid #2f3f7f;
}

.cv-preview.theme-ats {
    border-left: 6px solid #111827;
    box-shadow: none;
}

.cv-preview.theme-web {
    background: linear-gradient(180deg, #f9fbff, var(--cv-paper));
    border: 1px solid var(--cv-frame);
}

.cv-preview.template-wordpro {
    border-top: 0;
    box-shadow: 0 18px 34px rgba(31, 38, 72, 0.08);
}

.cv-preview.template-wordpro .cv-header {
    text-align: center;
    justify-items: center;
    gap: 0.5rem;
    border-bottom: 0;
}

.cv-preview.template-wordpro #preview-name {
    display: inline-block;
    min-width: min(100%, 76%);
    padding: 0.3rem 1rem;
    background: rgba(148, 163, 184, 0.16);
    font-style: italic;
    text-transform: uppercase;
}

.cv-preview.template-wordpro .cv-meta {
    display: inline-block;
    min-width: min(100%, 76%);
    padding: 0.24rem 0.85rem;
    background: rgba(148, 163, 184, 0.12);
    font-weight: 700;
    color: var(--cv-accent);
}

.cv-preview.template-wordpro #preview-headline {
    display: inline-block;
    min-width: min(100%, 76%);
    padding: 0.2rem 0.8rem;
    background: rgba(148, 163, 184, 0.12);
    text-decoration: underline;
    text-underline-offset: 0.12em;
    font-style: italic;
    color: var(--text);
}

.cv-preview.template-wordpro .cv-body {
    gap: 0.82rem;
}

.cv-preview.template-wordpro .cv-body h4 {
    display: block;
    text-align: center;
    padding: 0.28rem 0.8rem;
    background: rgba(148, 163, 184, 0.14);
    color: var(--text);
    border-left: 4px solid var(--cv-accent);
}

.cv-preview.template-wordpro .cv-body section {
    gap: 0.38rem;
}

.cv-preview.template-classic {
    border-top: 0;
    box-shadow: 0 16px 30px rgba(31, 38, 72, 0.08);
}

.cv-preview.template-modern {
    background: linear-gradient(180deg, var(--cv-paper), #f8faff);
    border-left: 8px solid var(--cv-accent);
}

.cv-preview.template-executive {
    box-shadow: 0 24px 48px rgba(17, 24, 39, 0.09);
    border-top: 5px solid var(--cv-accent);
}

.cv-preview.template-minimal {
    border-color: var(--cv-frame);
    box-shadow: 0 10px 22px rgba(31, 38, 72, 0.05);
}

.cv-preview.template-classic .cv-header {
    text-align: center;
    justify-items: center;
    gap: 0.5rem;
    border-bottom: 0;
}

.cv-preview.template-classic .cv-meta,
.cv-preview.template-classic #preview-headline,
.cv-preview.template-classic #preview-permit {
    justify-self: center;
}

.cv-preview.template-classic .cv-label {
    justify-self: start;
}

.cv-preview.template-classic #preview-name {
    display: inline-block;
    min-width: min(100%, 74%);
    padding: 0.35rem 1rem;
    background: rgba(148, 163, 184, 0.16);
    font-style: italic;
    text-transform: uppercase;
}

.cv-preview.template-classic #preview-headline,
.cv-preview.template-classic #preview-meta,
.cv-preview.template-classic #preview-permit {
    display: inline-block;
    min-width: min(100%, 74%);
    padding: 0.26rem 0.85rem;
    background: rgba(148, 163, 184, 0.12);
}

.cv-preview.template-classic #preview-headline {
    text-decoration: underline;
    text-underline-offset: 0.12em;
    font-style: italic;
}

.cv-preview.template-classic #preview-summary {
    margin-top: 0.35rem;
    padding: 0 1rem 0.8rem;
    border-bottom: 2px solid rgba(19, 22, 32, 0.8);
    color: var(--text);
    font-weight: 700;
}

.cv-preview.template-classic .cv-body {
    gap: 1.05rem;
}

.cv-preview.template-classic .cv-body h4 {
    display: block;
    text-align: center;
    padding: 0.28rem 0.8rem;
    background: rgba(148, 163, 184, 0.14);
    color: var(--text);
    text-decoration: underline;
    text-underline-offset: 0.1em;
}

.cv-preview.template-classic .cv-body section {
    gap: 0.55rem;
}

.cv-preview.template-wordpro,
.cv-preview.template-classic,
.cv-preview.template-modern,
.cv-preview.template-executive,
.cv-preview.template-minimal {
    color: var(--text);
}

.cv-preview.template-wordpro {
    padding: 1.8rem;
    border: 1px solid var(--cv-frame);
    border-radius: 18px;
    background: var(--cv-paper);
}

.cv-preview.template-wordpro .cv-header {
    justify-items: stretch;
    gap: 0.38rem;
    text-align: left;
    border-bottom: 2px solid var(--cv-frame);
}

.cv-preview.template-wordpro #preview-name,
.cv-preview.template-wordpro .cv-meta,
.cv-preview.template-wordpro #preview-headline {
    display: block;
    min-width: 0;
    padding: 0;
    background: transparent;
    text-transform: none;
}

.cv-preview.template-wordpro #preview-name {
    font-size: 1.72rem;
    font-style: normal;
    font-weight: 850;
}

.cv-preview.template-wordpro .cv-meta {
    color: var(--text-soft);
    font-weight: 500;
}

.cv-preview.template-wordpro #preview-headline {
    color: var(--cv-accent);
    font-style: normal;
    text-decoration: none;
}

.cv-preview.template-wordpro .cv-body {
    gap: 0.72rem;
}

.cv-preview.template-wordpro .cv-body h4 {
    display: block;
    padding: 0 0 0 0.58rem;
    border-left: 4px solid var(--cv-accent);
    background: transparent;
    color: var(--cv-accent);
    text-align: left;
}

.cv-preview.template-wordpro .cv-body section {
    gap: 0.32rem;
}

.cv-preview.template-classic .cv-header {
    justify-items: stretch;
    gap: 0.42rem;
    text-align: left;
    border-bottom: 1px solid var(--cv-frame);
}

.cv-preview.template-classic .cv-meta,
.cv-preview.template-classic #preview-headline,
.cv-preview.template-classic #preview-name {
    display: block;
    justify-self: stretch;
    min-width: 0;
    padding: 0;
    background: transparent;
    text-transform: none;
}

.cv-preview.template-classic #preview-name {
    font-style: normal;
}

.cv-preview.template-classic #preview-headline {
    color: var(--cv-accent);
    font-style: normal;
    text-decoration: none;
}

.cv-preview.template-classic #preview-summary {
    margin-top: 0;
    padding: 0;
    border-bottom: 0;
    color: var(--text-soft);
    font-weight: 400;
}

.cv-preview.template-classic .cv-body {
    gap: 0.8rem;
}

.cv-preview.template-classic .cv-body h4 {
    padding: 0 0 0.25rem;
    border-bottom: 1px solid var(--cv-frame);
    background: transparent;
    color: var(--cv-accent);
    text-align: left;
    text-decoration: none;
}

.cv-preview.template-modern {
    border-left: 6px solid var(--cv-accent);
    background:
        linear-gradient(90deg, var(--cv-soft), transparent 18%),
        var(--cv-paper);
}

.cv-preview.template-modern .cv-header {
    padding-left: 0.25rem;
    border-bottom-color: var(--cv-soft);
}

.cv-preview.template-modern .cv-body section {
    padding-left: 0.75rem;
    border-left: 2px solid var(--cv-soft);
}

.cv-preview.template-modern .cv-body h4 {
    color: var(--cv-accent);
}

.cv-preview.template-executive {
    border: 1px solid var(--cv-frame);
    border-top: 5px solid var(--cv-accent);
    background:
        radial-gradient(circle at top right, var(--cv-soft), transparent 34%),
        var(--cv-paper);
}

.cv-preview.template-executive .cv-header {
    border-bottom-color: var(--cv-frame);
}

.cv-preview.template-executive .cv-body h4 {
    display: block;
    padding-bottom: 0.28rem;
    border-bottom: 1px solid var(--cv-frame);
    color: var(--cv-accent);
}

.cv-preview.template-minimal {
    padding: 1.75rem;
    border-radius: 14px;
    box-shadow: 0 10px 22px rgba(31, 38, 72, 0.05);
}

.cv-preview.template-minimal .cv-header {
    border-bottom: 0;
    padding-bottom: 0.65rem;
}

.cv-preview.template-minimal .cv-body {
    gap: 0.68rem;
}

.cv-preview.template-minimal .cv-body h4 {
    color: var(--text);
}

.cv-preview.mood-editorial {
    border-top: 4px solid var(--cv-accent);
}

.cv-preview.mood-startup {
    background:
        radial-gradient(circle at top right, var(--cv-soft), transparent 30%),
        var(--cv-paper);
}

.cv-preview.spacing-airy {
    line-height: 1.56;
}

.cv-preview.spacing-tight {
    line-height: 1.26;
}

.cv-hidden-copy {
    display: none !important;
}

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

.cv-section-actions {
    display: flex;
    gap: 0.35rem;
    opacity: 0.22;
    pointer-events: auto;
    transition: opacity 0.2s ease;
}

.cv-body section:hover .cv-section-actions,
.cv-body section:focus-within .cv-section-actions {
    opacity: 1;
    pointer-events: auto;
}

.cv-section-action {
    width: 1.95rem;
    height: 1.95rem;
    border-radius: 999px;
    border: 1px solid rgba(47, 63, 127, 0.14);
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-soft);
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.cv-section-action:hover,
.cv-section-action:focus-visible {
    transform: translateY(-1px);
    background: rgba(47, 63, 127, 0.1);
    color: #2f3f7f;
}

body.is-exporting-pdf .cv-section-actions,
body.is-exporting-pdf .cv-page-guide,
body.is-exporting-pdf .cv-label {
    display: none !important;
}

body.is-exporting-pdf .cv-preview.template-digital,
body.is-exporting-pdf .cv-preview.template-holographic {
    width: 210mm !important;
    min-height: 297mm !important;
    aspect-ratio: auto !important;
    border-radius: 0 !important;
    padding: 8.5mm 8.8mm 8mm !important;
    box-shadow: none !important;
}

/* Le PDF canvas garde les libellés texte : aucun pictogramme ne peut devenir # ou %. */
body.is-exporting-pdf .cv-contact-icon {
    display: none !important;
}

body.is-exporting-pdf .cv-contact-export-label {
    display: inline-block !important;
    color: var(--cv-accent);
    font-size: 0.78em;
    font-weight: 800;
    letter-spacing: 0.03em;
}

body.is-exporting-pdf .cv-modern-contact-line {
    grid-template-columns: 3.15rem minmax(0, 1fr) !important;
}

body.is-exporting-pdf .cv-preview.template-digital .cv-header,
body.is-exporting-pdf .cv-preview.template-holographic .cv-header {
    min-height: 33mm !important;
    padding: 5.6mm 6mm 4.5mm !important;
    gap: 0.12rem !important;
}

body.is-exporting-pdf .cv-preview.template-digital #preview-name,
body.is-exporting-pdf .cv-preview.template-holographic #preview-name {
    font-size: clamp(1.32rem, 2vw, 1.7rem) !important;
    line-height: 0.96 !important;
    margin-bottom: 0.8mm !important;
}

body.is-exporting-pdf .cv-preview.template-digital #preview-headline,
body.is-exporting-pdf .cv-preview.template-holographic #preview-headline {
    margin-top: 1.4mm !important;
    padding: 0.2rem 0.5rem !important;
    font-size: 0.82em !important;
}

body.is-exporting-pdf .cv-preview.template-digital .cv-meta,
body.is-exporting-pdf .cv-preview.template-holographic .cv-meta {
    gap: 0.18rem 0.24rem !important;
}

body.is-exporting-pdf .cv-preview.template-digital .cv-meta-item,
body.is-exporting-pdf .cv-preview.template-holographic .cv-meta-item {
    padding: 0.08rem 0.26rem !important;
    font-size: 0.76em !important;
}

body.is-exporting-pdf .cv-preview.template-digital .cv-body,
body.is-exporting-pdf .cv-preview.template-holographic .cv-body {
    gap: 0.34rem !important;
    padding-top: 1.5mm !important;
}

body.is-exporting-pdf .cv-preview.template-digital .cv-body section,
body.is-exporting-pdf .cv-preview.template-holographic .cv-body section {
    padding: 0.34rem 0.42rem 0.36rem !important;
    border-radius: 14px !important;
}

body.is-exporting-pdf .cv-preview.template-digital .cv-body section::before,
body.is-exporting-pdf .cv-preview.template-holographic .cv-body section::before {
    border-radius: 14px !important;
}

body.is-exporting-pdf .cv-preview.template-digital .cv-section-head,
body.is-exporting-pdf .cv-preview.template-holographic .cv-section-head {
    margin-bottom: 0.08rem !important;
    padding: 0 0.08rem !important;
}

body.is-exporting-pdf .cv-preview.template-digital .cv-body h4,
body.is-exporting-pdf .cv-preview.template-holographic .cv-body h4 {
    padding: 0.08rem 0.32rem !important;
    font-size: 0.7rem !important;
}

body.is-exporting-pdf .cv-preview.template-digital .cv-list-compact,
body.is-exporting-pdf .cv-preview.template-holographic .cv-list-compact {
    gap: 0.02rem 0.45rem !important;
    padding: 0.01rem 0.02rem 0 0.14rem !important;
}

body.is-exporting-pdf .cv-preview.template-digital section[data-section-key="skills"] .cv-list-compact,
body.is-exporting-pdf .cv-preview.template-holographic section[data-section-key="skills"] .cv-list-compact {
    grid-template-columns: 1fr !important;
    gap: 0.04rem !important;
}

body.is-exporting-pdf .cv-preview.template-digital .cv-list-compact li,
body.is-exporting-pdf .cv-preview.template-holographic .cv-list-compact li,
body.is-exporting-pdf .cv-preview.template-digital .cv-experience-bullets li,
body.is-exporting-pdf .cv-preview.template-holographic .cv-experience-bullets li {
    line-height: 1.08 !important;
}

body.is-exporting-pdf .cv-preview.template-digital .cv-experience-list > .cv-experience-item,
body.is-exporting-pdf .cv-preview.template-holographic .cv-experience-list > .cv-experience-item {
    padding: 0.24rem 0.3rem 0.26rem !important;
    border-radius: 12px !important;
}

body.is-exporting-pdf .cv-preview.template-digital .cv-experience-list > .cv-experience-item + .cv-experience-item,
body.is-exporting-pdf .cv-preview.template-holographic .cv-experience-list > .cv-experience-item + .cv-experience-item {
    margin-top: 0.06rem !important;
}

body.is-exporting-pdf .cv-preview.template-digital .cv-experience-title,
body.is-exporting-pdf .cv-preview.template-holographic .cv-experience-title {
    font-size: 0.9em !important;
    line-height: 1.14 !important;
}

body.is-exporting-pdf .cv-preview.template-digital .cv-experience-date,
body.is-exporting-pdf .cv-preview.template-holographic .cv-experience-date {
    padding: 0.02rem 0.18rem !important;
    font-size: 0.52em !important;
}

body.is-exporting-pdf .cv-preview.template-digital .cv-experience-meta,
body.is-exporting-pdf .cv-preview.template-holographic .cv-experience-meta {
    font-size: 0.7em !important;
    line-height: 1.14 !important;
}

body.is-exporting-pdf .cv-preview.template-holographic::before,
body.is-exporting-pdf .cv-preview.template-holographic::after {
    opacity: 0.72 !important;
    filter: saturate(0.92) !important;
}

body.is-exporting-pdf .cv-preview.template-holographic .cv-modern-layout {
    grid-template-columns: minmax(9.6rem, 0.56fr) minmax(0, 0.94fr) !important;
    min-height: auto !important;
}

body.is-exporting-pdf .cv-preview.template-holographic .cv-modern-sidebar {
    gap: 0.24rem !important;
    padding: 0.2rem 0.42rem 0.2rem 0 !important;
    border-right: 1px solid rgba(193, 210, 248, 0.28) !important;
}

body.is-exporting-pdf .cv-preview.template-holographic .cv-modern-main {
    gap: 0.24rem !important;
    padding: 0.02rem 0 0.02rem 0.32rem !important;
}

body.is-exporting-pdf .cv-preview.template-holographic .cv-modern-sidebar section,
body.is-exporting-pdf .cv-preview.template-holographic .cv-modern-main section {
    padding: 0.24rem 0.3rem 0.26rem !important;
    border-radius: 12px !important;
}

body.is-exporting-pdf .cv-preview.template-holographic .cv-modern-sidebar section::before,
body.is-exporting-pdf .cv-preview.template-holographic .cv-modern-main section::before {
    border-radius: 12px !important;
    backdrop-filter: blur(24px) saturate(1.2) !important;
    -webkit-backdrop-filter: blur(24px) saturate(1.2) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34) !important;
}

body.is-exporting-pdf .cv-preview.template-holographic #preview-meta {
    gap: 0.16rem !important;
}

body.is-exporting-pdf .cv-preview.template-holographic .cv-modern-contact-line {
    padding: 0.04rem 0.08rem !important;
    border-radius: 10px !important;
}

body.is-exporting-pdf .cv-preview.template-holographic .cv-modern-sidebar .cv-list-compact {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.08rem !important;
    padding-left: 0.16rem !important;
}

body.is-exporting-pdf .cv-preview.template-holographic .cv-modern-sidebar .cv-list-compact li {
    display: block !important;
    width: 100% !important;
    line-height: 1.16 !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
}

.cv-preview.template-modern .cv-body {
    gap: 1.2rem;
}

.cv-preview.template-modern .cv-body section {
    padding-left: 1rem;
    border-left: 3px solid var(--cv-soft);
}

.cv-preview.template-executive .cv-body h4 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 0.45rem;
    border-bottom: 1px solid rgba(19, 22, 32, 0.12);
}

.cv-preview.template-minimal .cv-header {
    gap: 0.45rem;
    padding-bottom: 1.1rem;
}

.cv-preview.template-minimal .cv-body h4 {
    font-size: 0.8rem;
    color: var(--text);
}

.cv-preview.template-executive.mood-luxury,
.cv-letter-page.template-executive.mood-luxury {
    background:
        radial-gradient(circle at top right, rgba(212, 178, 106, 0.12), transparent 28%),
        linear-gradient(180deg, var(--cv-paper), #fcfaf5);
}

.cv-preview.template-modern .cv-body {
    gap: 0.82rem;
}

.cv-preview.template-modern .cv-body section {
    padding-left: 0.75rem;
    border-left: 2px solid var(--cv-soft);
}

.cv-preview.template-executive .cv-body h4 {
    display: block;
    padding-bottom: 0.28rem;
    border-bottom: 1px solid var(--cv-frame);
}

.cv-preview.template-minimal .cv-header {
    gap: 0.35rem;
    padding-bottom: 0.65rem;
}

.cv-preview.align-center {
    text-align: center;
}

.cv-preview.align-right {
    text-align: right;
}

.cv-preview.spacing-airy {
    line-height: 1.85;
}

.cv-preview.spacing-tight {
    line-height: 1.35;
}

.cv-header {
    display: grid;
    gap: 0.65rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(19, 22, 32, 0.08);
    position: relative;
}

.cv-label {
    display: none;
}

.cv-header h3 {
    font-size: clamp(1.45rem, 2.2vw, 2rem);
    line-height: 1.08;
    overflow-wrap: anywhere;
}

#preview-headline {
    /* Le titre métier forme un bloc distinct des coordonnées. */
    margin-top: 0.42rem;
    margin-bottom: 0.12rem;
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--cv-accent);
}

#preview-summary {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.45;
    color: var(--text-soft);
}

.cv-preview.headline-compact #preview-headline {
    font-size: 0.94rem;
}

.cv-preview.headline-large #preview-headline {
    font-size: 1.2rem;
    line-height: 1.2;
}

.cv-header p {
    color: var(--text-soft);
    overflow-wrap: anywhere;
}

.cv-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, max-content));
    justify-content: start;
    column-gap: 0.95rem;
    row-gap: 0.38rem;
    font-size: 0.88rem;
    line-height: 1.6;
}

.cv-preview.align-center .cv-meta {
    justify-content: center;
}

.cv-contact-line {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    gap: 0.38rem;
    overflow-wrap: anywhere;
}

.cv-contact-icon {
    flex: 0 0 0.95rem;
    width: 0.95rem;
    height: 0.95rem;
    color: var(--cv-accent);
    stroke: currentColor;
}

.cv-contact-export-label {
    display: none;
    flex: 0 0 auto;
    color: var(--cv-accent);
    font-size: 0.78em;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.cv-contact-value {
    min-width: 0;
    overflow-wrap: anywhere;
}

#preview-name,
#preview-meta,
#preview-headline,
#preview-summary,
#preview-skills,
#preview-experience,
#preview-projects,
#preview-education,
#preview-languages,
#preview-activities {
    cursor: text;
    transition: color 0.2s ease;
    outline: none;
}

#preview-meta[contenteditable="false"] {
    cursor: default;
}

#preview-name:hover,
#preview-meta:hover,
#preview-headline:hover,
#preview-summary:hover,
#preview-skills:hover,
#preview-experience:hover,
#preview-projects:hover,
#preview-education:hover,
#preview-languages:hover,
#preview-activities:hover {
    color: var(--cv-accent);
}

#preview-name:focus,
#preview-meta:focus,
#preview-headline:focus,
#preview-summary:focus,
#preview-skills:focus,
#preview-experience:focus,
#preview-projects:focus,
#preview-education:focus,
#preview-languages:focus,
#preview-activities:focus {
    color: var(--text);
    box-shadow: 0 0 0 2px rgba(47, 63, 127, 0.14);
    border-radius: 8px;
}

#preview-name,
#preview-meta,
#preview-headline {
    line-height: 1.2;
}

#preview-summary,
#preview-skills,
#preview-experience,
#preview-projects,
#preview-education,
#preview-languages,
#preview-activities {
    line-height: 1.42;
    min-width: 0;
}

#preview-name *,
#preview-meta *,
#preview-headline *,
#preview-summary *,
#preview-skills *,
#preview-experience *,
#preview-projects *,
#preview-education *,
#preview-languages *,
#preview-activities * {
    margin: 0;
    line-height: inherit;
}

.cv-body {
    display: grid;
    gap: 1rem;
    padding-top: 1.2rem;
}

.cv-body section {
    display: grid;
    gap: 0.5rem;
    break-inside: avoid;
    page-break-inside: avoid;
}

.cv-preview.is-two-page .cv-body section:last-child {
    break-before: auto;
    page-break-before: auto;
    margin-top: 0;
}

.cv-body h4 {
    margin: 0;
    font-size: 0.88rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #2f3f7f;
}

.cv-body ul {
    margin: 0;
    padding-left: 1.1rem;
    color: var(--text-soft);
    display: grid;
    gap: 0.35rem;
}

.cv-list-compact {
    display: flex !important;
    flex-wrap: wrap;
    gap: 0.35rem 1rem !important;
    padding-left: 0 !important;
    list-style: none !important;
}

.cv-list-compact li {
    position: relative;
    padding-left: 0.75rem;
    margin: 0;
}

.cv-preview:not(.template-modern) .cv-list-compact {
    display: block !important;
    column-count: 2;
    column-gap: 1.25rem;
    column-fill: balance;
}

.cv-preview:not(.template-modern) .cv-list-compact li {
    break-inside: avoid;
    margin: 0 0 0.24rem;
}

.cv-body section[data-section-key="skills"] .cv-list-compact {
    gap: 0.38rem 1.1rem !important;
}

.cv-body section[data-section-key="skills"] .cv-list-compact li {
    line-height: 1.32;
}

.cv-body section[data-section-key="activities"] .cv-list-compact {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.46rem 1.25rem !important;
    padding-left: 0 !important;
    list-style: none !important;
    column-count: unset !important;
}

.cv-body section[data-section-key="activities"] .cv-list-compact li {
    min-width: 0;
    padding-left: 0.82rem;
    line-height: 1.36;
    margin: 0;
    break-inside: avoid;
}

.cv-list-compact[contenteditable="true"] > li:empty,
.cv-list-compact[contenteditable="true"] > li:has(> br:only-child) {
    display: none !important;
}

#preview-name[contenteditable="true"],
#preview-meta[contenteditable="true"],
#preview-headline[contenteditable="true"],
#preview-summary[contenteditable="true"] {
    white-space: pre-wrap;
}

.cv-list-compact li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--cv-accent);
}

.cv-body p[contenteditable="true"] {
    min-height: 1.6rem;
}

.cv-experience-list {
    padding-left: 0;
    list-style: none;
    gap: 0.48rem;
}

.cv-body section[hidden] {
    display: none !important;
}

.cv-experience-item {
    display: grid;
    gap: 0.18rem;
    padding-bottom: 0.46rem;
    border-bottom: 1px solid rgba(19, 22, 32, 0.08);
}

.cv-experience-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.cv-experience-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    column-gap: 1rem;
    row-gap: 0.12rem;
    align-items: baseline;
}

.cv-experience-title {
    flex: 1 1 16rem;
    min-width: 0;
    font-weight: 700;
    color: var(--text);
}

.cv-experience-date {
    flex: 0 0 auto;
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--cv-accent);
    white-space: nowrap;
}

.cv-experience-meta {
    margin-top: -0.04rem;
    font-size: 0.92rem;
    color: var(--text-soft);
}

.cv-experience-bullets {
    margin: 0.08rem 0 0;
    padding-left: 1.1rem;
    display: grid;
    list-style: disc;
    gap: 0.12rem;
}

.cv-preview.align-center .cv-body ul,
.cv-preview.align-right .cv-body ul {
    padding-left: 0;
    list-style-position: inside;
}

.cv-page-guide {
    display: none;
}

.cv-preview {
    padding: 1.55rem;
}

.cv-preview.size-compact {
    font-size: 0.84rem;
}

.cv-preview.size-compact .cv-experience-list .cv-experience-head {
    grid-template-columns: minmax(0, 1fr);
}

.cv-preview.size-compact .cv-experience-list .cv-experience-date {
    justify-self: start;
    text-align: left;
    white-space: normal;
}

.cv-preview.spacing-tight {
    line-height: 1.28;
}

.cv-preview.spacing-airy {
    line-height: 1.5;
}

.cv-header {
    gap: 0.36rem;
    padding-bottom: 0.82rem;
}

.cv-header h3 {
    font-size: clamp(1.34rem, 2vw, 1.76rem);
}

.cv-meta {
    line-height: 1.35;
}

#preview-summary {
    line-height: 1.34;
}

.cv-body {
    gap: 0.66rem;
    padding-top: 0.72rem;
}

.cv-body section {
    gap: 0.3rem;
    min-width: 0;
}

.cv-body h4 {
    font-size: 0.76rem;
    line-height: 1.15;
    letter-spacing: 0.08em;
}

.cv-body ul {
    padding-left: 0;
    gap: 0.22rem;
}

.cv-list-compact {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.22rem 0.72rem !important;
    padding-left: 0 !important;
    list-style: none !important;
}

.cv-list-compact li {
    min-width: 0;
    padding-left: 0.76rem;
    line-height: 1.26;
    overflow-wrap: break-word;
    break-inside: avoid;
}

.cv-list-compact li::before {
    top: 0.02rem;
    color: var(--cv-accent);
    font-weight: 900;
}

.cv-experience-list {
    display: grid !important;
    gap: 0.42rem !important;
    padding-left: 0 !important;
    list-style: none !important;
}

.cv-experience-list > li,
.cv-experience-list > li::marker {
    list-style: none !important;
}

.cv-experience-list > li::marker {
    content: "";
}

#preview-experience.cv-experience-list,
#preview-projects.cv-experience-list,
#preview-education.cv-experience-list {
    list-style-type: none !important;
}

#preview-experience .cv-experience-item::before,
#preview-projects .cv-experience-item::before,
#preview-education .cv-experience-item::before {
    content: none !important;
    display: none !important;
}

.cv-experience-item {
    gap: 0.12rem;
    padding-bottom: 0.34rem;
    border-bottom: 1px solid var(--cv-frame);
}

.cv-experience-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    column-gap: 0.85rem;
    align-items: baseline;
}

.cv-experience-title {
    min-width: 0;
    font-size: 0.94em;
    line-height: 1.18;
    font-weight: 800;
}

.cv-experience-date {
    justify-self: end;
    font-size: 0.78em;
    line-height: 1.15;
    text-align: right;
    white-space: nowrap;
}

.cv-experience-meta {
    margin-top: 0;
    font-size: 0.9em;
    line-height: 1.24;
}

.cv-experience-bullets {
    margin: 0.1rem 0 0;
    padding-left: 0 !important;
    display: grid;
    gap: 0.08rem;
    list-style: none !important;
}

.cv-experience-bullets li {
    position: relative;
    padding-left: 0.78rem;
    line-height: 1.26;
}

.cv-experience-bullets li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--cv-accent);
    font-weight: 900;
}

.cv-experience-list > .cv-experience-item {
    position: relative;
    display: grid !important;
    margin: 0 !important;
    padding: 0.42rem 0.48rem 0.44rem 0.68rem !important;
    border: 1px solid var(--cv-frame);
    border-left: 4px solid var(--cv-accent);
    border-radius: 8px;
    background:
        linear-gradient(90deg, var(--cv-soft), transparent 44%),
        var(--cv-paper);
    list-style: none !important;
    break-inside: avoid;
    page-break-inside: avoid;
}

.cv-experience-list > .cv-experience-item::marker {
    content: "" !important;
    font-size: 0 !important;
}

.cv-experience-list > .cv-experience-item + .cv-experience-item {
    margin-top: 0.12rem !important;
}

.cv-experience-list .cv-experience-head {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) max-content;
    gap: 0.28rem 0.65rem;
    align-items: baseline;
}

.cv-experience-list .cv-experience-title {
    color: var(--text);
    font-size: 0.96em;
    font-weight: 850;
    line-height: 1.18;
}

.cv-experience-list .cv-experience-date {
    justify-self: end;
    padding: 0.08rem 0.32rem;
    border-radius: 999px;
    background: var(--cv-soft);
    color: var(--cv-accent);
    font-size: 0.72em;
    font-weight: 850;
    line-height: 1.2;
    white-space: nowrap;
}

.cv-experience-list .cv-experience-meta {
    color: var(--text-soft);
    font-size: 0.86em;
    font-weight: 600;
}

.cv-experience-list .cv-experience-bullets {
    margin-top: 0.16rem;
    gap: 0.08rem;
}

.cv-experience-list .cv-experience-bullets li {
    color: var(--text-soft);
    font-size: 0.9em;
    line-height: 1.24;
}

.cv-experience-list .cv-experience-bullets li::before {
    top: 0;
    color: var(--cv-accent);
}

.cv-preview.template-minimal {
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    box-shadow: 0 10px 22px rgba(31, 38, 72, 0.04);
}

.cv-preview.template-minimal .cv-header {
    border-bottom: 1px solid #d9dee8;
}

.cv-preview.template-minimal .cv-body h4 {
    padding-bottom: 0.16rem;
    border-bottom: 1px solid #e5e7eb;
    color: #111827;
}

.cv-preview .cv-body h4[data-section-title] {
    font-size: 1.08rem;
    line-height: 1.28;
    font-weight: 800;
    letter-spacing: 0.09em;
    cursor: text;
    user-select: text;
}

.cv-preview.template-wordpro {
    border-radius: 16px;
    border: 1px solid var(--cv-frame);
    border-top: 5px solid var(--cv-accent);
    background: #ffffff;
}

.cv-preview.template-wordpro .cv-header {
    border-bottom: 2px solid var(--cv-soft);
}

.cv-preview.template-wordpro .cv-body h4 {
    padding: 0.12rem 0 0.12rem 0.52rem;
    border-left: 4px solid var(--cv-accent);
    background: linear-gradient(90deg, var(--cv-soft), transparent 68%);
    color: var(--cv-accent);
}

.cv-preview.template-wordpro .cv-experience-item {
    padding-left: 0.48rem;
    border-left: 2px solid var(--cv-soft);
}

.cv-preview.template-modern {
    padding: 1.35rem;
    border: 1px solid var(--cv-frame);
    background: #ffffff;
}

.cv-preview.template-modern .cv-header {
    padding-bottom: 0.72rem;
    border-bottom: 0;
}

.cv-preview.template-modern .cv-body {
    display: grid;
    grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
    grid-auto-flow: dense;
    column-gap: 1.5rem;
    row-gap: 0.7rem;
    align-items: start;
    position: relative;
}

.cv-preview.template-modern .cv-body::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 35.5%;
    width: 1px;
    background: var(--cv-frame);
}

.cv-preview.template-modern .cv-body section {
    padding-left: 0;
    border-left: 0;
}

.cv-preview.template-modern .cv-body section[data-section-key="summary"],
.cv-preview.template-modern .cv-body section[data-section-key="experience"],
.cv-preview.template-modern .cv-body section[data-section-key="projects"] {
    grid-column: 2;
}

.cv-preview.template-modern .cv-body section[data-section-key="skills"],
.cv-preview.template-modern .cv-body section[data-section-key="education"],
.cv-preview.template-modern .cv-body section[data-section-key="activities"],
.cv-preview.template-modern .cv-body section[data-section-key="languages"] {
    grid-column: 1;
}

.cv-preview.template-modern .cv-body h4 {
    padding-bottom: 0.18rem;
    border-bottom: 1px solid var(--cv-soft);
    color: var(--cv-accent);
}

.cv-preview.template-modern .cv-list-compact {
    grid-template-columns: 1fr;
}

.cv-preview.template-modern .cv-experience-head {
    grid-template-columns: minmax(0, 1fr) max-content;
    gap: 0.45rem;
}

.cv-preview.template-modern .cv-experience-date {
    justify-self: end;
}

.cv-preview.template-modern .cv-experience-meta {
    margin-top: 0.04rem;
}

.cv-preview.template-modern .cv-experience-bullets {
    margin-top: 0.08rem;
}

.cv-preview.template-digital,
.cv-preview.template-holographic {
    width: var(--cv-page-width);
    min-height: var(--cv-page-height);
    padding: 11.5mm 11.5mm 10.5mm;
    border-radius: 13mm;
    overflow: hidden;
    isolation: isolate;
}

.cv-preview.template-digital {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.42);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.045)),
        linear-gradient(135deg, rgba(226, 233, 255, 0.62), rgba(236, 248, 255, 0.5) 48%, rgba(248, 249, 255, 0.38));
    box-shadow:
        0 34px 80px rgba(33, 52, 90, 0.12),
        0 12px 30px rgba(96, 122, 184, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(34px) saturate(1.5);
    -webkit-backdrop-filter: blur(34px) saturate(1.5);
    animation: cv-digital-fade 0.45s ease;
}

.cv-preview.template-digital::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 8% 10%, rgba(117, 136, 255, 0.36), transparent 20%),
        radial-gradient(circle at 92% 14%, rgba(154, 234, 255, 0.26), transparent 24%),
        radial-gradient(circle at 18% 84%, rgba(198, 179, 255, 0.22), transparent 18%),
        radial-gradient(circle at 76% 76%, rgba(255, 255, 255, 0.24), transparent 18%),
        linear-gradient(120deg, rgba(255, 255, 255, 0.14) 0%, transparent 26%, transparent 64%, rgba(206, 235, 255, 0.16) 100%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 40%);
    filter: blur(2px);
    pointer-events: none;
    z-index: -1;
}

.cv-preview.template-digital::after {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: calc(13mm - 1px);
    border: 1px solid rgba(255, 255, 255, 0.24);
    background:
        linear-gradient(118deg, rgba(255, 255, 255, 0.22), transparent 14%, transparent 76%, rgba(255, 255, 255, 0.06)),
        linear-gradient(102deg, transparent 0 32%, rgba(255, 255, 255, 0.18) 44%, transparent 58%),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.032) 0 1px, transparent 1px 18px);
    pointer-events: none;
    opacity: 0.96;
}

.cv-preview.template-digital .cv-header,
.cv-preview.template-holographic .cv-header {
    gap: 0.28rem;
    min-height: 44mm;
    padding: 8.2mm 8.6mm 6.2mm;
    align-content: start;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 7.5mm;
}

.cv-preview.template-digital .cv-header {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.035)),
        linear-gradient(112deg, rgba(188, 207, 255, 0.12), rgba(255, 255, 255, 0.03) 54%, rgba(210, 238, 255, 0.12));
    backdrop-filter: blur(30px) saturate(1.5);
    -webkit-backdrop-filter: blur(30px) saturate(1.5);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.62),
        0 18px 34px rgba(48, 73, 130, 0.05);
}

.cv-preview.template-digital .cv-label,
.cv-preview.template-holographic .cv-label {
    color: rgba(56, 86, 166, 0.84);
    letter-spacing: 0.16em;
}

.cv-preview.template-digital #preview-name,
.cv-preview.template-holographic #preview-name {
    color: #16233c;
    font-size: clamp(1.62rem, 2.55vw, 2.08rem);
    line-height: 0.94;
    letter-spacing: -0.03em;
    margin-top: 0;
    margin-bottom: 1.4mm;
    max-width: 100%;
}

.cv-preview.template-digital .cv-meta,
.cv-preview.template-holographic .cv-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.34rem 0.46rem;
    color: #4e5d7d;
    margin-top: 0.1mm;
}

.cv-preview.template-digital .cv-meta-item,
.cv-preview.template-holographic .cv-meta-item {
    padding: 0.18rem 0.42rem;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.025));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.46);
    font-size: 0.9em;
}

.cv-preview.template-digital #preview-headline,
.cv-preview.template-holographic #preview-headline {
    display: inline-flex;
    align-self: flex-start;
    margin-top: 2.2mm;
    padding: 0.34rem 0.72rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    color: #22418d;
    font-weight: 800;
    letter-spacing: 0.01em;
    font-size: 0.94em;
}

.cv-preview.template-digital #preview-headline {
    background:
        linear-gradient(135deg, rgba(82, 113, 208, 0.16), rgba(82, 113, 208, 0.03)),
        rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.44);
}

.cv-preview.template-digital .cv-body,
.cv-preview.template-holographic .cv-body {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.56rem;
    padding-top: 2.4mm;
    align-items: start;
    align-content: start;
}

.cv-preview.template-digital .cv-body section,
.cv-preview.template-holographic .cv-body section {
    position: relative;
    isolation: isolate;
    min-width: 0;
    align-self: start;
    padding: 0.56rem 0.68rem 0.62rem;
    border: 0;
    border-radius: 22px;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    transition: transform 0.22s ease, opacity 0.22s ease;
}

.cv-preview.template-digital .cv-body section::before,
.cv-preview.template-holographic .cv-body section::before {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 22px;
    pointer-events: none;
    z-index: -1;
}

.cv-preview.template-digital .cv-body section::before {
    background:
        radial-gradient(circle at 0% 0%, rgba(255, 255, 255, 0.12), transparent 28%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.014)),
        linear-gradient(115deg, rgba(173, 198, 255, 0.08), rgba(255, 255, 255, 0.01) 54%, rgba(198, 231, 255, 0.08));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        0 10px 28px rgba(48, 73, 130, 0.018);
    backdrop-filter: blur(54px) saturate(1.55);
    -webkit-backdrop-filter: blur(54px) saturate(1.55);
    opacity: 0.92;
}

.cv-preview.template-digital .cv-body section:hover,
.cv-preview.template-holographic .cv-body section:hover {
    transform: translateY(-1px);
    opacity: 0.98;
}

.cv-preview.template-digital .cv-body section[data-section-key="summary"] {
    grid-column: 1;
}

.cv-preview.template-digital .cv-body section[data-section-key="skills"] {
    grid-column: 1;
}

.cv-preview.template-digital .cv-body section[data-section-key="experience"],
.cv-preview.template-digital .cv-body section[data-section-key="projects"] {
    grid-column: 1 / -1;
}

.cv-preview.template-digital .cv-body section[data-section-key="education"] {
    grid-column: 1;
}

.cv-preview.template-digital .cv-body section[data-section-key="languages"] {
    grid-column: 1;
}

.cv-preview.template-digital .cv-body section[data-section-key="activities"] {
    grid-column: 1;
}

.cv-preview.template-digital .cv-body section[data-section-key="summary"],
.cv-preview.template-holographic .cv-body section[data-section-key="summary"],
.cv-preview.template-digital .cv-body section[data-section-key="skills"],
.cv-preview.template-holographic .cv-body section[data-section-key="skills"],
.cv-preview.template-digital .cv-body section[data-section-key="experience"],
.cv-preview.template-holographic .cv-body section[data-section-key="experience"],
.cv-preview.template-digital .cv-body section[data-section-key="projects"],
.cv-preview.template-holographic .cv-body section[data-section-key="projects"],
.cv-preview.template-digital .cv-body section[data-section-key="languages"],
.cv-preview.template-holographic .cv-body section[data-section-key="languages"],
.cv-preview.template-digital .cv-body section[data-section-key="activities"],
.cv-preview.template-holographic .cv-body section[data-section-key="activities"],
.cv-preview.template-digital .cv-body section[data-section-key="education"],
.cv-preview.template-holographic .cv-body section[data-section-key="education"] {
    padding: 0.56rem 0.68rem 0.62rem;
}

.cv-preview.template-digital .cv-body section[data-section-key="summary"],
.cv-preview.template-holographic .cv-body section[data-section-key="summary"] {
    padding-top: 0.62rem;
}

.cv-preview.template-digital .cv-section-head,
.cv-preview.template-holographic .cv-section-head {
    margin-bottom: 0.18rem;
    padding: 0 0.2rem;
}

.cv-preview.template-digital .cv-body h4,
.cv-preview.template-holographic .cv-body h4 {
    display: inline-flex;
    align-items: center;
    padding: 0.16rem 0.56rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.015)),
        rgba(240, 246, 255, 0.008);
    color: #213b7e;
    font-size: 0.85rem;
    font-weight: 850;
    letter-spacing: 0.13em;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.cv-preview.template-digital #preview-summary,
.cv-preview.template-holographic #preview-summary {
    max-width: 68ch;
    padding: 0.08rem 0.18rem 0.02rem;
    color: #3f4f71;
    line-height: 1.42;
    background: transparent;
    border-left: 0;
    border-radius: 0;
}

.cv-preview.template-digital .cv-list-compact,
.cv-preview.template-holographic .cv-list-compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.12rem 0.72rem !important;
    padding: 0.02rem 0.08rem 0 0.28rem !important;
    background: transparent;
    border-radius: 0;
}

.cv-preview.template-digital .cv-list-compact li,
.cv-preview.template-holographic .cv-list-compact li,
.cv-preview.template-digital .cv-experience-bullets li,
.cv-preview.template-holographic .cv-experience-bullets li {
    border-radius: 14px;
}

.cv-preview.template-digital .cv-experience-list > .cv-experience-item,
.cv-preview.template-holographic .cv-experience-list > .cv-experience-item {
    padding: 0.52rem 0.62rem 0.56rem !important;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-left: 1px solid rgba(145, 174, 244, 0.18);
    border-radius: 18px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.008)),
        rgba(241, 246, 255, 0.006);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.24),
        0 10px 22px rgba(48, 73, 130, 0.018);
}

.cv-preview.template-digital .cv-experience-list > .cv-experience-item + .cv-experience-item,
.cv-preview.template-holographic .cv-experience-list > .cv-experience-item + .cv-experience-item {
    margin-top: 0.22rem !important;
}

.cv-preview.template-digital .cv-experience-head,
.cv-preview.template-holographic .cv-experience-head {
    grid-template-columns: minmax(0, 1fr) max-content;
    gap: 0.16rem 0.52rem;
}

.cv-preview.template-digital .cv-experience-title,
.cv-preview.template-holographic .cv-experience-title {
    color: #18253f;
    font-size: 0.95em;
    font-weight: 820;
}

.cv-preview.template-digital .cv-experience-date,
.cv-preview.template-holographic .cv-experience-date {
    padding: 0.08rem 0.34rem;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04));
    color: #3856a6;
    font-size: 0.64em;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.56);
}

.cv-preview.template-digital .cv-experience-meta,
.cv-preview.template-holographic .cv-experience-meta {
    color: #5a6784;
    font-weight: 700;
    font-size: 0.93em;
}

.cv-preview.template-digital .cv-experience-bullets,
.cv-preview.template-holographic .cv-experience-bullets {
    margin-top: 0.08rem;
    gap: 0.05rem;
}

.cv-preview.template-digital .cv-experience-bullets li::before,
.cv-preview.template-digital .cv-list-compact li::before,
.cv-preview.template-holographic .cv-experience-bullets li::before,
.cv-preview.template-holographic .cv-list-compact li::before {
    color: #3856a6;
}

.cv-preview.template-digital section[data-section-key="skills"] .cv-list-compact,
.cv-preview.template-holographic section[data-section-key="skills"] .cv-list-compact {
    grid-template-columns: 1fr !important;
    gap: 0.06rem !important;
    padding: 0.01rem 0.04rem 0 0.16rem !important;
}

.cv-preview.template-digital section[data-section-key="skills"] .cv-list-compact li,
.cv-preview.template-holographic section[data-section-key="skills"] .cv-list-compact li {
    padding-left: 0.66rem;
    font-size: 0.9em;
    line-height: 1.08;
}

.cv-preview.template-digital section[data-section-key="skills"],
.cv-preview.template-holographic section[data-section-key="skills"] {
    align-self: start;
}

.cv-preview.template-holographic {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.38);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.045)),
        linear-gradient(135deg, rgba(229, 234, 255, 0.6), rgba(228, 250, 255, 0.48) 42%, rgba(245, 241, 255, 0.44));
    box-shadow:
        0 40px 96px rgba(38, 58, 110, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(38px) saturate(1.9);
    -webkit-backdrop-filter: blur(38px) saturate(1.9);
    animation: cv-digital-fade 0.45s ease;
}

.cv-preview.template-holographic::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 11% 10%, rgba(103, 126, 255, 0.42), transparent 18%),
        radial-gradient(circle at 84% 12%, rgba(149, 239, 255, 0.3), transparent 22%),
        radial-gradient(circle at 16% 82%, rgba(207, 179, 255, 0.25), transparent 18%),
        radial-gradient(circle at 82% 72%, rgba(255, 255, 255, 0.26), transparent 17%),
        linear-gradient(115deg, transparent 0 28%, rgba(255, 255, 255, 0.2) 42%, transparent 58%, rgba(201, 234, 255, 0.18) 100%);
    filter: blur(3px);
    pointer-events: none;
    z-index: -1;
}

.cv-preview.template-holographic::after {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: calc(13mm - 1px);
    border: 1px solid rgba(255, 255, 255, 0.28);
    background:
        linear-gradient(102deg, transparent 0 26%, rgba(255, 255, 255, 0.22) 40%, transparent 54%),
        linear-gradient(142deg, transparent 0 60%, rgba(208, 232, 255, 0.18) 74%, transparent 86%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 20%, transparent 84%, rgba(206, 222, 255, 0.08));
    pointer-events: none;
}

.cv-preview.template-holographic .cv-header {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04)),
        linear-gradient(115deg, rgba(183, 207, 255, 0.14), rgba(255, 255, 255, 0.03) 48%, rgba(206, 237, 255, 0.14));
    backdrop-filter: blur(34px) saturate(1.78);
    -webkit-backdrop-filter: blur(34px) saturate(1.78);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.66),
        0 20px 38px rgba(63, 84, 155, 0.06);
}

.cv-preview.template-holographic > .cv-header,
.cv-preview.template-holographic > .cv-body {
    display: none;
}

.cv-preview.template-holographic .cv-modern-layout {
    display: grid;
    grid-template-columns: minmax(12.9rem, 0.63fr) minmax(0, 1.02fr);
    align-items: start;
    min-height: calc(var(--cv-page-height) - 2px);
    background: transparent;
}

.cv-preview.template-holographic .cv-modern-sidebar,
.cv-preview.template-holographic .cv-modern-main {
    display: grid;
    align-content: start;
    min-width: 0;
}

.cv-preview.template-holographic .cv-modern-sidebar {
    gap: 0.28rem;
    padding: 0.34rem 0.38rem 0.22rem 0;
    border-right: 1px solid rgba(193, 210, 248, 0.42);
}

.cv-preview.template-holographic .cv-modern-main {
    gap: 0.22rem;
    padding: 0.02rem 0 0.08rem 0.28rem;
}

.cv-preview.template-holographic #preview-name {
    margin: 0;
    color: #16233c;
    font-size: clamp(1.3rem, 1.92vw, 1.58rem);
    line-height: 0.96;
    margin-bottom: 0.12rem;
}

.cv-preview.template-holographic #preview-headline {
    margin: 0 0 0.2rem;
    padding: 0.12rem 0.34rem;
    justify-self: start;
    font-size: 0.76em;
    background:
        linear-gradient(135deg, rgba(110, 128, 255, 0.18), rgba(110, 128, 255, 0.03)),
        linear-gradient(90deg, rgba(255, 255, 255, 0.08), rgba(204, 232, 255, 0.12));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.48),
        0 8px 18px rgba(108, 130, 208, 0.08);
}

.cv-preview.template-holographic #preview-meta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.14rem;
    margin: 0.08rem 0 0.34rem;
}

.cv-preview.template-holographic .cv-modern-contact-line {
    display: grid;
    grid-template-columns: 0.88rem minmax(0, 1fr);
    gap: 0.24rem;
    align-items: start;
    padding: 0.04rem 0.1rem;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
}

.cv-preview.template-holographic .cv-contact-icon {
    width: 0.88rem;
    height: 0.88rem;
    margin-top: 0.06rem;
}

.cv-preview.template-holographic .cv-modern-sidebar section,
.cv-preview.template-holographic .cv-modern-main section {
    position: relative;
    display: grid;
    gap: 0.1rem;
    min-width: 0;
    padding: 0.24rem 0.28rem 0.24rem;
    border: 0;
    border-radius: 14px;
    background: transparent;
}

.cv-preview.template-holographic .cv-modern-sidebar section::before,
.cv-preview.template-holographic .cv-modern-main section::before {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    background:
        radial-gradient(circle at 0% 0%, rgba(255, 255, 255, 0.14), transparent 28%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.018)),
        linear-gradient(115deg, rgba(170, 195, 255, 0.12), rgba(255, 255, 255, 0.015) 54%, rgba(206, 226, 255, 0.11));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.46),
        0 12px 30px rgba(63, 84, 155, 0.024);
    backdrop-filter: blur(58px) saturate(1.78);
    -webkit-backdrop-filter: blur(58px) saturate(1.78);
    opacity: 0.96;
    pointer-events: none;
    z-index: -1;
}

.cv-preview.template-holographic .cv-modern-sidebar section[hidden],
.cv-preview.template-holographic .cv-modern-main section[hidden] {
    display: none !important;
}

.cv-preview.template-holographic .cv-modern-sidebar .cv-section-actions,
.cv-preview.template-holographic .cv-modern-main .cv-section-actions {
    display: none;
}

.cv-preview.template-holographic .cv-section-head {
    min-height: auto;
    margin-bottom: 0.12rem;
    padding: 0 0.08rem;
}

.cv-preview.template-holographic .cv-modern-sidebar h4,
.cv-preview.template-holographic .cv-modern-main h4 {
    padding: 0.09rem 0.34rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    color: #213b7e;
    font-size: 0.82rem;
    font-weight: 850;
    letter-spacing: 0.085em;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.015)),
        rgba(240, 246, 255, 0.008);
}

.cv-preview.template-holographic #preview-summary {
    padding: 0.02rem 0 0;
    line-height: 1.28;
}

.cv-preview.template-holographic .cv-modern-sidebar .cv-list-compact {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.1rem !important;
    width: 100% !important;
    padding: 0.02rem 0.04rem 0 0.18rem !important;
}

.cv-preview.template-holographic .cv-modern-sidebar .cv-list-compact li {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    font-size: 0.88em;
    line-height: 1.18;
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: auto;
    white-space: normal !important;
}

.cv-preview.template-holographic .cv-modern-sidebar section[data-section-key="languages"] .cv-list-compact,
.cv-preview.template-holographic .cv-modern-sidebar section[data-section-key="skills"] .cv-list-compact,
.cv-preview.template-holographic .cv-modern-sidebar section[data-section-key="activities"] .cv-list-compact {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
}

.cv-preview.template-holographic .cv-modern-sidebar section[data-section-key="languages"] .cv-list-compact li,
.cv-preview.template-holographic .cv-modern-sidebar section[data-section-key="skills"] .cv-list-compact li,
.cv-preview.template-holographic .cv-modern-sidebar section[data-section-key="activities"] .cv-list-compact li {
    padding-left: 0.72rem;
}

.cv-preview.template-holographic .cv-modern-sidebar section[data-section-key="languages"] .cv-list-compact li::before,
.cv-preview.template-holographic .cv-modern-sidebar section[data-section-key="skills"] .cv-list-compact li::before,
.cv-preview.template-holographic .cv-modern-sidebar section[data-section-key="activities"] .cv-list-compact li::before {
    left: 0.08rem;
}

.cv-preview.template-holographic .cv-body section::before {
    background:
        radial-gradient(circle at 0% 0%, rgba(255, 255, 255, 0.14), transparent 28%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.018)),
        linear-gradient(115deg, rgba(170, 195, 255, 0.12), rgba(255, 255, 255, 0.015) 54%, rgba(206, 226, 255, 0.11));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.46),
        0 12px 30px rgba(63, 84, 155, 0.024);
    backdrop-filter: blur(58px) saturate(1.78);
    -webkit-backdrop-filter: blur(58px) saturate(1.78);
    opacity: 0.96;
}

.cv-preview.template-holographic .cv-experience-list > .cv-experience-item {
    padding: 0.34rem 0.42rem 0.36rem !important;
    border-radius: 14px;
}

.cv-preview.template-holographic .cv-experience-list > .cv-experience-item + .cv-experience-item {
    margin-top: 0.1rem !important;
}

.cv-preview.template-holographic .cv-experience-head {
    gap: 0.08rem 0.34rem;
}

.cv-preview.template-holographic .cv-experience-title {
    font-size: 0.91em;
    line-height: 1.18;
    font-weight: 780;
}

.cv-preview.template-holographic .cv-experience-date {
    padding: 0.03rem 0.22rem;
    font-size: 0.54em;
}

.cv-preview.template-holographic .cv-experience-meta {
    font-size: 0.76em;
    line-height: 1.18;
}

.cv-preview.template-holographic .cv-experience-bullets {
    margin-top: 0.02rem;
    gap: 0.01rem;
}

.cv-preview.template-holographic .cv-experience-bullets li {
    line-height: 1.12;
}

.cv-preview.template-digital.size-compact,
.cv-preview.template-holographic.size-compact {
    padding: 9.4mm 9.6mm 8.9mm;
}

.cv-preview.template-digital.size-compact .cv-header,
.cv-preview.template-holographic.size-compact .cv-header {
    min-height: 39mm;
    padding: 6.8mm 7.2mm 5.2mm;
    gap: 0.18rem;
}

.cv-preview.template-digital.headline-compact #preview-name,
.cv-preview.template-holographic.headline-compact #preview-name {
    font-size: clamp(1.42rem, 2.2vw, 1.82rem);
    margin-bottom: 1mm;
}

.cv-preview.template-digital.headline-compact #preview-headline,
.cv-preview.template-holographic.headline-compact #preview-headline {
    margin-top: 1.6mm;
    padding: 0.26rem 0.58rem;
    font-size: 0.88em;
}

.cv-preview.template-digital.size-compact .cv-meta,
.cv-preview.template-holographic.size-compact .cv-meta {
    gap: 0.24rem 0.3rem;
    margin-top: 0;
}

.cv-preview.template-digital.size-compact .cv-meta-item,
.cv-preview.template-holographic.size-compact .cv-meta-item {
    padding: 0.12rem 0.34rem;
    font-size: 0.82em;
}

.cv-preview.template-digital.size-compact .cv-body,
.cv-preview.template-holographic.size-compact .cv-body {
    gap: 0.42rem;
    padding-top: 1.8mm;
}

.cv-preview.template-holographic.size-compact .cv-body {
    column-gap: 0.44rem;
    row-gap: 0.3rem;
}

.cv-preview.template-holographic.size-compact .cv-body::before {
    left: 31%;
}

.cv-preview.template-digital.size-compact .cv-body section,
.cv-preview.template-holographic.size-compact .cv-body section,
.cv-preview.template-digital.size-compact .cv-body section[data-section-key="summary"],
.cv-preview.template-holographic.size-compact .cv-body section[data-section-key="summary"],
.cv-preview.template-digital.size-compact .cv-body section[data-section-key="skills"],
.cv-preview.template-holographic.size-compact .cv-body section[data-section-key="skills"],
.cv-preview.template-digital.size-compact .cv-body section[data-section-key="experience"],
.cv-preview.template-holographic.size-compact .cv-body section[data-section-key="experience"],
.cv-preview.template-digital.size-compact .cv-body section[data-section-key="projects"],
.cv-preview.template-holographic.size-compact .cv-body section[data-section-key="projects"],
.cv-preview.template-digital.size-compact .cv-body section[data-section-key="languages"],
.cv-preview.template-holographic.size-compact .cv-body section[data-section-key="languages"],
.cv-preview.template-digital.size-compact .cv-body section[data-section-key="activities"],
.cv-preview.template-holographic.size-compact .cv-body section[data-section-key="activities"],
.cv-preview.template-digital.size-compact .cv-body section[data-section-key="education"],
.cv-preview.template-holographic.size-compact .cv-body section[data-section-key="education"] {
    padding: 0.42rem 0.52rem 0.46rem;
    border-radius: 18px;
}

.cv-preview.template-holographic.size-compact .cv-body section,
.cv-preview.template-holographic.size-compact .cv-body section[data-section-key="summary"],
.cv-preview.template-holographic.size-compact .cv-body section[data-section-key="skills"],
.cv-preview.template-holographic.size-compact .cv-body section[data-section-key="experience"],
.cv-preview.template-holographic.size-compact .cv-body section[data-section-key="projects"],
.cv-preview.template-holographic.size-compact .cv-body section[data-section-key="languages"],
.cv-preview.template-holographic.size-compact .cv-body section[data-section-key="activities"],
.cv-preview.template-holographic.size-compact .cv-body section[data-section-key="education"] {
    padding: 0.32rem 0.38rem 0.34rem;
    border-radius: 14px;
}

.cv-preview.template-digital.size-compact .cv-body section::before,
.cv-preview.template-holographic.size-compact .cv-body section::before {
    border-radius: 18px;
}

.cv-preview.template-holographic.size-compact .cv-body section::before {
    border-radius: 14px;
}

.cv-preview.template-digital.size-compact .cv-section-head,
.cv-preview.template-holographic.size-compact .cv-section-head {
    margin-bottom: 0.12rem;
    padding: 0 0.16rem;
}

.cv-preview.template-holographic.size-compact .cv-section-head {
    margin-bottom: 0.08rem;
    padding: 0 0.08rem;
}

.cv-preview.template-digital.size-compact .cv-body h4,
.cv-preview.template-holographic.size-compact .cv-body h4 {
    padding: 0.12rem 0.46rem;
    font-size: 0.78rem;
    letter-spacing: 0.11em;
}

.cv-preview.template-holographic.size-compact .cv-body h4 {
    padding: 0.08rem 0.32rem;
    font-size: 0.7rem;
}

.cv-preview.template-digital.size-compact #preview-summary,
.cv-preview.template-holographic.size-compact #preview-summary {
    max-width: 72ch;
    padding: 0.04rem 0.16rem 0;
    line-height: 1.34;
}

.cv-preview.template-digital.size-compact .cv-list-compact,
.cv-preview.template-holographic.size-compact .cv-list-compact {
    gap: 0.06rem 0.56rem !important;
    padding: 0.02rem 0.04rem 0 0.22rem !important;
}

.cv-preview.template-holographic.size-compact .cv-list-compact {
    gap: 0.01rem !important;
    padding: 0.01rem 0.02rem 0 0.14rem !important;
}

.cv-preview.template-digital.size-compact .cv-list-compact li,
.cv-preview.template-holographic.size-compact .cv-list-compact li,
.cv-preview.template-digital.size-compact .cv-experience-bullets li,
.cv-preview.template-holographic.size-compact .cv-experience-bullets li {
    line-height: 1.16;
}

.cv-preview.template-holographic.size-compact .cv-list-compact li,
.cv-preview.template-holographic.size-compact .cv-experience-bullets li {
    line-height: 1.08;
}

.cv-preview.template-digital.size-compact .cv-experience-list > .cv-experience-item,
.cv-preview.template-holographic.size-compact .cv-experience-list > .cv-experience-item {
    padding: 0.4rem 0.5rem 0.42rem !important;
    border-radius: 16px;
}

.cv-preview.template-holographic.size-compact .cv-experience-list > .cv-experience-item {
    padding: 0.24rem 0.28rem 0.26rem !important;
    border-radius: 12px;
}

.cv-preview.template-digital.size-compact .cv-experience-list > .cv-experience-item + .cv-experience-item,
.cv-preview.template-holographic.size-compact .cv-experience-list > .cv-experience-item + .cv-experience-item {
    margin-top: 0.14rem !important;
}

.cv-preview.template-holographic.size-compact .cv-experience-list > .cv-experience-item + .cv-experience-item {
    margin-top: 0.06rem !important;
}

.cv-preview.template-digital.size-compact .cv-experience-head,
.cv-preview.template-holographic.size-compact .cv-experience-head {
    gap: 0.1rem 0.42rem;
}

.cv-preview.template-holographic.size-compact .cv-experience-head {
    gap: 0.04rem 0.22rem;
}

.cv-preview.template-digital.size-compact .cv-experience-title,
.cv-preview.template-holographic.size-compact .cv-experience-title {
    font-size: 0.9em;
}

.cv-preview.template-holographic.size-compact .cv-experience-title {
    font-size: 0.92em;
    line-height: 1.16;
}

.cv-preview.template-digital.size-compact .cv-experience-date,
.cv-preview.template-holographic.size-compact .cv-experience-date {
    padding: 0.04rem 0.26rem;
    font-size: 0.6em;
}

.cv-preview.template-holographic.size-compact .cv-experience-date {
    padding: 0.02rem 0.18rem;
    font-size: 0.52em;
}

.cv-preview.template-digital.size-compact .cv-experience-meta,
.cv-preview.template-holographic.size-compact .cv-experience-meta {
    font-size: 0.86em;
}

.cv-preview.template-holographic.size-compact .cv-experience-meta {
    font-size: 0.7em;
    line-height: 1.16;
}

.cv-preview.template-digital.size-compact .cv-experience-bullets,
.cv-preview.template-holographic.size-compact .cv-experience-bullets {
    margin-top: 0.04rem;
    gap: 0.02rem;
}

.cv-preview.template-holographic.size-compact .cv-experience-bullets {
    margin-top: 0.01rem;
    gap: 0;
}

@keyframes cv-digital-fade {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cv-preview.template-executive {
    padding: 1.5rem 1.55rem 1.5rem 1.85rem;
    border: 1px solid var(--cv-frame);
    border-left: 10px solid var(--cv-accent);
    border-top: 1px solid var(--cv-frame);
    border-radius: 18px;
    background:
        linear-gradient(90deg, var(--cv-soft), transparent 22%),
        var(--cv-paper);
}

.cv-preview.template-executive .cv-header {
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--cv-frame);
}

.cv-preview.template-executive #preview-name {
    font-size: 1.7rem;
}

.cv-preview.template-executive .cv-body h4 {
    display: inline-block;
    justify-self: start;
    padding: 0.18rem 0.52rem;
    border: 1px solid var(--cv-frame);
    border-radius: 999px;
    background: var(--cv-soft);
    color: var(--cv-accent);
}

.cv-preview.template-executive .cv-experience-item {
    padding: 0.34rem 0.46rem;
    border: 1px solid var(--cv-frame);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.62);
}

.cv-preview.align-center .cv-experience-head,
.cv-preview.align-right .cv-experience-head {
    grid-template-columns: 1fr;
}

.cv-preview.align-center .cv-experience-date,
.cv-preview.align-right .cv-experience-date {
    justify-self: inherit;
}

.cv-preview.template-ats,
.cv-preview.template-elegant,
.cv-preview.template-premium,
.cv-preview.template-creative {
    color: var(--text);
}

.cv-preview.template-ats {
    padding: 1.35rem 1.45rem;
    border: 1px solid #d8dee8;
    border-radius: 4px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(31, 38, 72, 0.04);
}

.cv-preview.template-ats .cv-header {
    gap: 0.24rem;
    padding-bottom: 0.52rem;
    border-bottom: 1.5px solid var(--cv-accent);
}

.cv-preview.template-ats #preview-name {
    font-size: 1.56rem;
    letter-spacing: 0;
}

.cv-preview.template-ats .cv-body {
    gap: 0.42rem;
    padding-top: 0.55rem;
}

.cv-preview.template-ats .cv-body h4 {
    padding: 0.06rem 0 0.08rem;
    border-bottom: 1px solid #d8dee8;
    color: #172033;
}

.cv-preview.template-elegant {
    padding: 1.48rem 1.55rem;
    border: 1px solid var(--cv-frame);
    border-radius: 8px;
    background: #ffffff;
}

.cv-preview.template-elegant .cv-header {
    text-align: center;
    justify-items: center;
    gap: 0.28rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid var(--cv-frame);
}

.cv-preview.template-elegant #preview-name {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.74rem;
}

.cv-preview.template-elegant .cv-body h4 {
    display: inline-block;
    justify-self: start;
    padding-bottom: 0.12rem;
    border-bottom: 1px solid var(--cv-accent);
    color: var(--cv-accent);
}

.cv-preview.template-premium {
    padding: 1.42rem 1.5rem 1.42rem 1.68rem;
    border: 1px solid var(--cv-frame);
    border-left: 7px solid var(--cv-accent);
    border-radius: 12px;
    background:
        linear-gradient(90deg, var(--cv-soft), transparent 28%),
        var(--cv-paper);
}

.cv-preview.template-premium .cv-header {
    padding-bottom: 0.66rem;
    border-bottom: 1px solid var(--cv-frame);
}

.cv-preview.template-premium .cv-body h4 {
    display: block;
    padding: 0.12rem 0 0.12rem 0.48rem;
    border-left: 3px solid var(--cv-accent);
    background: var(--cv-soft);
    color: #172033;
}

.cv-preview.template-creative {
    padding: 1.35rem 1.45rem;
    border: 1px solid var(--cv-frame);
    border-top: 6px solid var(--cv-accent);
    border-radius: 10px;
    background:
        radial-gradient(circle at top right, var(--cv-soft), transparent 26%),
        var(--cv-paper);
}

.cv-preview.template-creative .cv-header {
    border-bottom: 0;
}

.cv-preview.template-creative .cv-body {
    gap: 0.55rem;
}

.cv-preview.template-creative .cv-body h4 {
    padding: 0.08rem 0.45rem;
    border-radius: 999px;
    background: var(--cv-soft);
    color: var(--cv-accent);
}

.cv-preview.align-center,
.cv-preview.align-right {
    text-align: left;
}

.cv-preview.align-center .cv-header {
    text-align: center;
    justify-items: center;
}

/* Le choix « En-tête » doit rester prioritaire, même si du texte a été
   aligné individuellement avec la barre d'édition. Le corps du CV reste
   volontairement à gauche, plus facile à parcourir par un recruteur. */
.cv-preview.align-center .cv-header > :not(.cv-label) {
    text-align: center !important;
    justify-self: center;
}

.cv-preview.align-center .cv-header .cv-meta {
    justify-content: center !important;
}

.cv-preview.align-right .cv-header {
    text-align: right;
    justify-items: end;
}

.cv-preview.align-right .cv-header > :not(.cv-label) {
    text-align: right !important;
    justify-self: end;
}

.cv-preview.align-right .cv-header .cv-meta {
    justify-content: end !important;
}

.cv-preview.align-center .cv-body,
.cv-preview.align-right .cv-body,
.cv-preview.align-center .cv-body ul,
.cv-preview.align-right .cv-body ul {
    text-align: left;
    list-style-position: outside;
}

.cv-preview.align-center .cv-experience-head,
.cv-preview.align-right .cv-experience-head {
    grid-template-columns: minmax(0, 1fr) max-content;
}

.cv-preview.align-center .cv-experience-date,
.cv-preview.align-right .cv-experience-date {
    justify-self: end;
}

.cv-experience-list > .cv-experience-item,
.cv-preview.template-executive .cv-experience-item,
.cv-preview.template-wordpro .cv-experience-item,
.cv-preview.template-premium .cv-experience-item,
.cv-preview.template-creative .cv-experience-item {
    padding: 0.28rem 0 0.34rem !important;
    border: 0;
    border-bottom: 1px solid var(--cv-frame);
    border-left: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.cv-experience-list > .cv-experience-item:last-child {
    border-bottom: 0;
}

.cv-experience-list .cv-experience-head {
    grid-template-columns: minmax(0, 1fr) max-content;
    gap: 0.18rem 0.75rem;
}

.cv-experience-list .cv-experience-title {
    color: #172033;
    font-size: 0.94em;
    line-height: 1.2;
}

.cv-experience-list .cv-experience-date {
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: var(--cv-accent);
    font-size: 0.78em;
}

.cv-experience-list .cv-experience-meta {
    margin-top: 0.02rem;
    color: #5a6375;
    font-size: 0.86em;
    font-weight: 650;
}

.cv-experience-list .cv-experience-bullets {
    margin-top: 0.12rem;
    gap: 0.05rem;
}

.cv-experience-list .cv-experience-bullets li {
    padding-left: 0.72rem;
    color: #3d4658;
    font-size: 0.88em;
    line-height: 1.22;
}

.cv-list-compact li {
    text-align: left;
}

.cv-preview.template-ats {
    padding: 1.28rem 1.38rem;
    border-radius: 0;
    border: 1px solid #cfd6e2;
    box-shadow: none;
    font-family: Arial, Helvetica, sans-serif;
}

.cv-preview.template-ats .cv-header {
    text-align: left;
    justify-items: stretch;
    border-bottom: 2px solid #172033;
}

.cv-preview.template-ats .cv-body h4 {
    border-bottom: 1px solid #172033;
    color: #172033;
}

.cv-preview.template-ats .cv-list-compact {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cv-preview.template-modern {
    --modern-side: #f1e9ed;
    --modern-side-deep: #e4d5dc;
    --modern-rule: #ded2d7;
    --modern-ink: #30282d;
    display: block;
    padding: 0;
    border: 1px solid var(--modern-rule);
    border-radius: 4px;
    overflow: hidden;
    background: var(--cv-paper);
    box-shadow: 0 16px 34px rgba(66, 43, 55, 0.1);
}

.cv-preview.template-modern.size-compact {
    font-size: 0.92rem;
}

.cv-preview.template-modern > .cv-header,
.cv-preview.template-modern > .cv-body {
    display: none;
}

.cv-preview.template-modern .cv-modern-layout {
    display: grid;
    grid-template-columns: minmax(11.7rem, 0.68fr) minmax(0, 1.42fr);
    align-items: stretch;
    min-height: calc(var(--cv-page-height) - 2px);
    background: linear-gradient(90deg, var(--modern-side) 0 32.4%, var(--cv-paper) 32.4%);
}

.cv-preview.template-modern .cv-modern-sidebar,
.cv-preview.template-modern .cv-modern-main {
    display: grid;
    align-content: start;
    min-width: 0;
}

.cv-preview.template-modern .cv-modern-sidebar {
    grid-column: 1;
    gap: 0.9rem;
    padding: 1.6rem 1.28rem;
    border-right: 1px solid var(--modern-rule);
    background: var(--modern-side);
}

.cv-preview.template-modern .cv-modern-main {
    grid-column: 2;
    gap: 1rem;
    padding: 1.65rem 1.58rem;
    background: var(--cv-paper);
}

.cv-preview.template-modern #preview-name {
    margin: 0;
    color: var(--modern-ink);
    font-size: 1.72rem;
    line-height: 1.02;
    letter-spacing: -0.05em;
}

.cv-preview.template-modern #preview-headline {
    margin: -0.58rem 0 0.55rem;
    color: var(--cv-accent);
    font-size: 0.84rem;
    font-weight: 850;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.cv-preview.template-modern #preview-meta {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.62rem;
    margin: 0;
    color: #594c53;
    font-size: 0.86em;
    line-height: 1.48;
}

.cv-preview.template-modern .cv-modern-contact-line {
    display: grid;
    grid-template-columns: 1rem minmax(0, 1fr);
    column-gap: 0.55rem;
    width: 100%;
    align-items: start;
    min-width: 0;
    overflow-wrap: anywhere;
}

.cv-preview.template-modern .cv-contact-icon {
    width: 1rem;
    height: 1rem;
    margin-top: 0.08rem;
}

.cv-preview.template-modern #preview-meta:focus {
    box-shadow: none;
}

.cv-preview.template-modern .cv-modern-sidebar section,
.cv-preview.template-modern .cv-modern-main section {
    display: grid;
    gap: 0.38rem;
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

/* Les rubriques facultatives ne prennent aucune place tant qu'elles sont vides. */
.cv-preview.template-modern .cv-modern-sidebar section[hidden],
.cv-preview.template-modern .cv-modern-main section[hidden] {
    display: none !important;
}

.cv-preview.template-modern .cv-modern-sidebar .cv-section-actions,
.cv-preview.template-modern .cv-modern-main .cv-section-actions {
    display: none;
}

.cv-preview.template-modern .cv-section-head {
    min-height: auto;
}

.cv-preview.template-modern .cv-body h4,
.cv-preview.template-modern .cv-modern-sidebar h4,
.cv-preview.template-modern .cv-modern-main h4 {
    padding-bottom: 0.32rem;
    border-bottom: 1px solid var(--modern-rule);
    color: var(--modern-ink);
    font-size: 0.78em;
    font-weight: 900;
    letter-spacing: 0.1em;
}

.cv-preview.template-modern .cv-modern-sidebar .cv-list-compact {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 0.18rem !important;
    color: #594c53;
    font-size: 0.88em;
    line-height: 1.34;
}

.cv-preview.template-modern .cv-modern-sidebar .cv-list-compact li {
    padding-left: 0.62rem;
}

.cv-preview.template-modern .cv-modern-sidebar .cv-list-compact li::before {
    color: var(--cv-accent);
}

.cv-preview.template-modern #preview-summary {
    max-width: 38rem;
    color: #51454b;
    font-size: 0.98em;
    line-height: 1.48;
}

.cv-preview.template-modern #preview-experience,
.cv-preview.template-modern #preview-projects {
    gap: 0.12rem;
}

.cv-preview.template-modern #preview-experience .cv-experience-item {
    position: relative;
    margin-left: 0.14rem !important;
    padding: 0.3rem 0 0.62rem 0.92rem !important;
    border: 0;
    border-left: 1px solid var(--modern-side-deep);
    border-radius: 0;
    background: transparent;
}

.cv-preview.template-modern #preview-experience .cv-experience-item::before {
    content: "" !important;
    position: absolute;
    top: 0.56rem;
    left: -0.28rem;
    display: block !important;
    width: 0.48rem;
    height: 0.48rem;
    border: 2px solid #ffffff;
    border-radius: 50%;
    background: var(--cv-accent);
    box-sizing: border-box;
}

.cv-preview.template-modern #preview-experience .cv-experience-item:last-child {
    padding-bottom: 0.08rem !important;
}

.cv-preview.template-modern .cv-modern-sidebar #preview-education {
    gap: 0.18rem;
}

.cv-preview.template-modern .cv-modern-sidebar #preview-education .cv-experience-item {
    padding: 0.22rem 0 0.38rem !important;
    border: 0;
    border-bottom: 1px solid var(--modern-rule);
    border-radius: 0;
    background: transparent;
}

.cv-preview.template-modern .cv-modern-sidebar #preview-education .cv-experience-item:last-child {
    border-bottom: 0;
}

.cv-preview.template-modern .cv-modern-sidebar .cv-experience-head {
    grid-template-columns: 1fr;
    gap: 0.12rem;
}

.cv-preview.template-modern .cv-modern-sidebar .cv-experience-title {
    color: var(--modern-ink);
    font-size: 0.92em;
}

.cv-preview.template-modern .cv-modern-sidebar .cv-experience-meta,
.cv-preview.template-modern .cv-modern-sidebar .cv-experience-bullets,
.cv-preview.template-modern .cv-modern-sidebar .cv-experience-date {
    color: #62565c;
    font-size: 0.82em;
    text-align: left;
    justify-self: start;
}

.cv-preview.template-modern .cv-modern-main .cv-experience-title {
    color: var(--modern-ink);
    font-size: 0.98em;
}

.cv-preview.template-modern .cv-modern-main .cv-experience-meta,
.cv-preview.template-modern .cv-modern-main .cv-experience-bullets {
    color: #62565c;
    font-size: 0.9em;
}

.cv-preview.template-modern .cv-modern-main .cv-experience-date {
    color: var(--cv-accent);
    font-size: 0.82em;
}

.cv-preview.template-modern .cv-page-guide {
    display: none;
}

@media (max-width: 720px) {
    .cv-preview.template-modern .cv-modern-layout {
        grid-template-columns: 1fr;
        min-height: 0;
        background: #ffffff;
    }

    .cv-preview.template-modern .cv-modern-sidebar,
    .cv-preview.template-modern .cv-modern-main {
        grid-column: auto;
        padding: 1.2rem;
    }

    .cv-preview.template-modern .cv-modern-sidebar {
        border-right: 0;
        border-bottom: 1px solid var(--modern-rule);
    }
}

.cv-preview.template-elegant {
    padding: 1.55rem 1.7rem;
    border-radius: 2px;
    background: #fffdf8;
    border: 1px solid #ded6c7;
}

.cv-preview.template-elegant .cv-header {
    text-align: center;
    justify-items: center;
    border-bottom: 1px solid #d8cbb7;
}

.cv-preview.template-elegant #preview-name {
    font-size: 1.94rem;
    letter-spacing: 0;
}

.cv-preview.template-elegant .cv-body h4 {
    justify-self: center;
    padding: 0 1rem 0.2rem;
    border-bottom: 1px solid var(--cv-accent);
    font-family: "Playfair Display", Georgia, serif;
}

.cv-preview.template-premium {
    padding: 1.45rem 1.55rem;
    border: 1px solid #c7b98e;
    border-top: 10px solid var(--cv-accent);
    border-left: 1px solid #c7b98e;
    border-radius: 12px;
    background:
        linear-gradient(180deg, #fffaf0 0, #ffffff 5.8rem),
        #ffffff;
}

.cv-preview.template-premium .cv-header {
    padding-bottom: 0.9rem;
    border-bottom: 1px solid #d9c79b;
}

.cv-preview.template-premium .cv-body h4 {
    padding: 0.18rem 0.55rem;
    border: 1px solid #d9c79b;
    border-left: 4px solid var(--cv-accent);
    background: #fffaf0;
}

.cv-preview.template-premium .cv-experience-item {
    padding: 0.42rem 0.55rem !important;
    border: 1px solid #eadfbe;
    border-radius: 8px;
    background: #fffdf7;
}

.cv-preview.template-creative {
    padding: 0;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid var(--cv-frame);
    background: var(--cv-paper);
}

.cv-preview.template-creative .cv-header {
    padding: 1.25rem 1.45rem;
    border-bottom: 0;
    background:
        linear-gradient(135deg, var(--cv-accent), #0f766e);
}

.cv-preview.template-creative .cv-header h3,
.cv-preview.template-creative .cv-header p,
.cv-preview.template-creative #preview-headline {
    color: #ffffff;
}

.cv-preview.template-creative .cv-body {
    padding: 1.2rem 1.45rem 1.45rem;
}

.cv-preview.template-creative .cv-body h4 {
    display: inline-flex;
    width: fit-content;
    border-radius: 8px;
    background: var(--cv-soft);
}

.cv-preview.template-creative .cv-list-compact li {
    padding: 0.16rem 0.52rem 0.16rem 0.9rem;
    border-radius: 999px;
    background: var(--cv-soft);
}

/* Le réglage « Conception » reste lisible et visible quel que soit le modèle. */
.cv-preview.mood-clean {
    background: var(--cv-paper) !important;
}

.cv-preview.mood-editorial {
    border-top: 5px solid var(--cv-accent) !important;
    background: linear-gradient(160deg, var(--cv-soft), var(--cv-paper) 34%) !important;
}

.cv-preview.mood-startup {
    border-color: var(--cv-accent) !important;
    box-shadow: 0 18px 38px rgba(47, 63, 127, 0.14) !important;
    background: linear-gradient(145deg, var(--cv-soft), var(--cv-paper) 42%) !important;
}

.cv-preview.mood-startup .cv-header {
    border-bottom-color: var(--cv-accent) !important;
}

.cv-preview.mood-startup .cv-body h4 {
    color: var(--cv-accent) !important;
}

.cv-preview.template-modern.mood-startup .cv-modern-main {
    background: linear-gradient(145deg, var(--cv-soft), var(--cv-paper) 42%);
}

.cv-preview.mood-luxury {
    border-color: var(--cv-frame) !important;
    box-shadow: 0 20px 42px rgba(62, 45, 51, 0.14) !important;
    background: linear-gradient(145deg, #fffdf9, var(--cv-paper) 48%) !important;
}

.assistant-suggestions,
.assistant-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.suggestion-chip {
    border: 1px solid rgba(47, 63, 127, 0.16);
    background: rgba(255, 255, 255, 0.92);
    color: #223047;
    border-radius: 12px;
    padding: 0.58rem 0.72rem;
    font: inherit;
    font-size: 0.86rem;
    font-weight: 700;
    cursor: pointer;
}

.assistant-toggle {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 30;
    min-height: 3.2rem;
    padding: 0.85rem 1.2rem;
    border: 0;
    border-radius: 999px;
    background: #2f3f7f;
    color: #ffffff;
    font: inherit;
    font-weight: 700;
    box-shadow: 0 18px 36px rgba(47, 63, 127, 0.28);
    cursor: pointer;
}

.assistant-chat {
    position: fixed;
    right: 1rem;
    bottom: 5.2rem;
    width: var(--assistant-width);
    z-index: 30;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding: 0.8rem;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 24px 60px rgba(31, 38, 72, 0.18);
    backdrop-filter: blur(18px);
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

body.cv-workspace-page .assistant-chat {
    width: min(28rem, calc(100vw - 2rem));
    max-height: min(36rem, calc(100dvh - 6.5rem));
    overflow: hidden;
}

.assistant-chat.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.assistant-chat-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
}

.assistant-chat-header strong {
    font-size: 1.08rem;
}

.assistant-close {
    border: 0;
    background: transparent;
    color: var(--text-soft);
    font-size: 1.4rem;
    cursor: pointer;
}

.assistant-messages {
    margin: 0;
    display: grid;
    gap: 0.7rem;
}

.assistant-activity {
    min-height: 2.3rem;
    display: flex;
    align-items: center;
    padding: 0.56rem 0.72rem;
    border-left: 2px solid var(--accent, #2f3f7f);
    background: rgba(47, 63, 127, 0.055);
    color: var(--text-soft);
    font-size: 0.84rem;
    line-height: 1.35;
}

.assistant-activity.is-working {
    color: #2f3f7f;
    font-weight: 700;
}

.assistant-activity.is-working::before {
    content: "";
    width: 0.72rem;
    height: 0.72rem;
    flex: 0 0 auto;
    margin-right: 0.5rem;
    border: 2px solid rgba(47, 63, 127, 0.22);
    border-top-color: #2f3f7f;
    border-radius: 50%;
    animation: kirby-spin 0.72s linear infinite;
}

.assistant-thread {
    display: grid;
    gap: 0.55rem;
    max-height: 11.5rem;
    overflow: auto;
    padding-right: 0.2rem;
}

.assistant-thread:empty {
    display: none;
}

.assistant-thread-message {
    display: grid;
    gap: 0.3rem;
    padding: 0.72rem 0.8rem;
    border-radius: 16px;
    background: rgba(47, 63, 127, 0.05);
    border: 1px solid rgba(47, 63, 127, 0.08);
}

.assistant-thread-message.is-user {
    background: rgba(47, 63, 127, 0.1);
}

.assistant-thread-label {
    color: var(--text-soft);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.assistant-thread-body {
    margin: 0;
    color: var(--text);
    font-size: 0.9rem;
    line-height: 1.45;
    white-space: pre-wrap;
}

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

.kirby-mode-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid rgba(47, 63, 127, 0.12);
    border-radius: 10px;
}

.kirby-mode {
    min-height: 2.5rem;
    padding: 0.45rem 0.34rem;
    border: 0;
    border-right: 1px solid rgba(47, 63, 127, 0.1);
    background: transparent;
    color: var(--text);
    font: inherit;
    text-align: center;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease;
}

.kirby-mode strong {
    font-size: 0.78rem;
}

.kirby-mode span {
    display: none;
}

.kirby-mode:hover,
.kirby-mode:focus-visible,
.kirby-mode.is-active {
    background: rgba(47, 63, 127, 0.075);
    color: #2f3f7f;
    outline: 0;
}

.kirby-mode.is-active {
    box-shadow: inset 0 -2px 0 #2f3f7f;
}

.kirby-mode:last-child {
    border-right: 0;
}

.assistant-input-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.5rem;
    align-items: end;
    position: sticky;
    bottom: 0;
    z-index: 2;
    flex: 0 0 auto;
    padding-top: 0.35rem;
    background: rgba(255, 255, 255, 0.96);
}

.assistant-input-row textarea {
    width: 100%;
    min-height: 3.65rem;
    max-height: 8rem;
    border: 1px solid rgba(47, 63, 127, 0.18);
    border-radius: 10px;
    padding: 0.76rem 0.85rem;
    font: inherit;
    line-height: 1.45;
    resize: vertical;
}

.assistant-input-row .button {
    min-width: 6.8rem;
    min-height: 3rem;
    align-self: end;
}

.assistant-proposal {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: 0;
    max-height: min(22rem, calc(100dvh - 17rem));
    overflow-y: auto;
    padding: 0.65rem 0.7rem 0.65rem 0.9rem;
    border: 1px solid rgba(47, 63, 127, 0.16);
    border-radius: 10px;
    background: rgba(244, 247, 255, 0.92);
}

.assistant-proposal > div {
    min-width: 0;
}

.assistant-proposal.is-hidden {
    display: none;
}

.assistant-proposal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.6rem;
}

.assistant-proposal-close {
    flex: 0 0 auto;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    color: #2f3f7f;
    font: inherit;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
    padding: 0.44rem 0.58rem;
    cursor: pointer;
}

.assistant-proposal strong {
    display: block;
    font-size: 0.96rem;
    line-height: 1.3;
}

.assistant-proposal span {
    display: block;
    margin-top: 0.18rem;
    color: var(--text-soft);
    font-size: 0.78rem;
    line-height: 1.3;
}

.assistant-proposal-details {
    display: grid;
    gap: 0.48rem;
    margin-top: 0.58rem;
}

.assistant-proposal-details[hidden] {
    display: none;
}

.assistant-proposal-detail-group {
    display: grid;
    gap: 0.28rem;
    padding-top: 0.48rem;
    border-top: 1px solid rgba(47, 63, 127, 0.12);
}

.assistant-proposal-detail-group strong {
    font-size: 0.74rem;
    line-height: 1.25;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-soft);
}

.assistant-proposal-detail-group ul {
    display: grid;
    gap: 0.22rem;
    margin: 0;
    padding-left: 1rem;
}

.assistant-proposal-detail-group li {
    color: var(--text);
    font-size: 0.78rem;
    line-height: 1.32;
}

.assistant-proposal-skill-list {
    display: grid;
    gap: 0.35rem;
}

.assistant-proposal-skill-choice {
    display: grid;
    grid-template-columns: 1rem minmax(0, 1fr);
    gap: 0.45rem;
    align-items: center;
}

.assistant-proposal-skill-choice input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    accent-color: var(--accent);
}

.assistant-proposal-skill-choice input[type="text"] {
    width: 100%;
    min-width: 0;
    padding: 0.38rem 0.48rem;
    border: 1px solid rgba(47, 63, 127, 0.16);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.88);
    color: var(--text);
    font: inherit;
    font-size: 0.78rem;
    line-height: 1.2;
}

.assistant-proposal .button {
    flex: 0 0 auto;
    min-height: 2.8rem;
}

.assistant-details {
    color: var(--text-soft);
    font-size: 0.88rem;
}

.assistant-details summary {
    width: fit-content;
    cursor: pointer;
    font-weight: 700;
}

.assistant-details .assistant-quick-actions {
    margin-top: 0.65rem;
}

.demo-label {
    display: inline-flex;
    width: fit-content;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: rgba(47, 63, 127, 0.08);
    color: #2f3f7f;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.contact-panel {
    display: grid;
    gap: 1.2rem;
}

.contact-layout {
    display: grid;
    gap: 1rem;
}

.contact-final-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.72fr);
    gap: clamp(1rem, 2vw, 1.4rem);
    align-items: stretch;
}

.contact-project-summary,
.contact-final-form {
    position: relative;
    overflow: hidden;
    padding: clamp(1.2rem, 2.8vw, 2rem);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 28px;
    background:
        radial-gradient(circle at 82% 12%, rgba(239, 214, 163, 0.14), transparent 18rem),
        linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035));
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}

.contact-project-summary {
    display: grid;
    align-content: center;
    gap: 0.85rem;
    min-height: 360px;
}

.contact-project-summary h2,
.contact-final-head h2 {
    color: #f8f6ee;
    font-size: clamp(1.8rem, 4vw, 3.4rem);
    line-height: 0.96;
}

.contact-project-summary p:not(.signal-label),
.contact-final-head p {
    max-width: 46rem;
    color: rgba(248, 246, 238, 0.68);
    font-size: 1rem;
}

.contact-summary-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.4rem;
}

.contact-summary-pills span {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: 0.42rem 0.66rem;
    border: 1px solid rgba(239, 214, 163, 0.16);
    border-radius: 999px;
    background: rgba(239, 214, 163, 0.08);
    color: rgba(248, 246, 238, 0.84);
    font-size: 0.8rem;
    font-weight: 850;
}

.contact-final-form {
    align-content: start;
    gap: 0.85rem;
}

.contact-final-head {
    display: grid;
    gap: 0.45rem;
    margin-bottom: 0.2rem;
}

.contact-panel-info {
    align-content: start;
}

.contact-panel p {
    color: var(--text-soft);
    font-size: 1.02rem;
}

.contact-details {
    display: grid;
    gap: 0.9rem;
    margin-top: 0.4rem;
}

.contact-brief-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 1.2rem;
}

.contact-link {
    width: fit-content;
    padding-bottom: 0.15rem;
    border-bottom: 1px solid var(--text);
    font-weight: 700;
}

.contact-form {
    padding: clamp(1.5rem, 3vw, 2.4rem);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(246, 248, 255, 0.82));
    box-shadow: var(--shadow);
    display: grid;
    gap: 1rem;
}

.contact-form.contact-final-form {
    padding: clamp(1.2rem, 2.8vw, 2rem);
    border-radius: 28px;
    background:
        radial-gradient(circle at 82% 12%, rgba(114, 150, 255, 0.14), transparent 18rem),
        linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035));
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}

.field {
    display: grid;
    gap: 0.45rem;
}

.field span {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text);
}

.field-hint {
    margin: -0.1rem 0 0;
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--text-soft);
}

.field input,
.field textarea,
.field select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 0.95rem 1rem;
    font: inherit;
    color: var(--text);
    background: rgba(255, 255, 255, 0.9);
    resize: vertical;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
    outline: none;
    border-color: rgba(47, 63, 127, 0.45);
    box-shadow: 0 0 0 4px rgba(47, 63, 127, 0.08);
}

.password-field {
    position: relative;
    display: block;
}

.field .password-field input {
    padding-right: 6.2rem;
}

.password-field button {
    position: absolute;
    top: 50%;
    right: 0.48rem;
    min-height: 2.25rem;
    padding: 0.35rem 0.68rem;
    border: 1px solid rgba(47, 63, 127, 0.12);
    border-radius: 999px;
    background: rgba(248, 250, 255, 0.96);
    color: #2f3f7f;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
    transform: translateY(-50%);
}

.password-field button:hover,
.password-field button:focus-visible {
    border-color: rgba(47, 63, 127, 0.28);
    outline: none;
}

.contact-form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.quote-hints {
    display: grid;
    gap: 0.7rem;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.06);
}

.quote-hints p {
    margin: 0;
    font-weight: 800;
}

.quote-hints ul {
    display: grid;
    gap: 0.45rem;
    margin: 0;
    padding-left: 1.1rem;
    color: var(--text-soft);
}

.quote-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem 0.9rem;
    margin: 0;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 18px;
}

.quote-options legend {
    padding: 0 0.35rem;
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--text);
}

.quote-options label {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    color: var(--text-soft);
    font-size: 0.92rem;
    line-height: 1.45;
}

.quote-options input {
    width: 1rem;
    min-width: 1rem;
    height: 1rem;
    margin-top: 0.18rem;
    accent-color: #efd6a3;
}

.contact-button {
    width: fit-content;
}

.contact-form-status {
    color: var(--text-soft);
    font-size: 0.92rem;
    line-height: 1.5;
    min-height: 1.4rem;
}

.contact-form-status a {
    color: #efd6a3;
    font-weight: 800;
}

.site-footer {
    padding: 2rem 0 1rem;
    border-top: 1px solid var(--line);
    color: var(--text-soft);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.95rem;
}

.hero-reveal {
    opacity: 0;
    transform: translateY(28px);
    filter: blur(8px);
}

.skill-reveal {
    opacity: 0;
    transform: translateY(18px);
}

body.is-ready .hero-reveal {
    animation: heroFadeUp 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

body.is-ready .hero h1 {
    animation: fadeUp 1s ease forwards;
}

body.is-ready .skill-reveal {
    animation: skillFadeUp 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

body.is-ready .hero-reveal-delay-1 {
    animation-delay: 0.08s;
}

body.is-ready .hero-reveal-delay-2 {
    animation-delay: 0.18s;
}

body.is-ready .hero-reveal-delay-3 {
    animation-delay: 0.34s;
}

body.is-ready .hero-reveal-delay-4 {
    animation-delay: 0.5s;
}

body.is-ready .hero-reveal-delay-5 {
    animation-delay: 0.66s;
}

body.is-ready .hero-reveal-delay-6 {
    animation-delay: 0.8s;
}

body.is-ready .skill-delay-1 {
    animation-delay: 0.7s;
}

body.is-ready .skill-delay-2 {
    animation-delay: 0.78s;
}

body.is-ready .skill-delay-3 {
    animation-delay: 0.86s;
}

body.is-ready .skill-delay-4 {
    animation-delay: 0.94s;
}

body.is-ready .skill-delay-5 {
    animation-delay: 1.02s;
}

body.is-ready .skill-delay-6 {
    animation-delay: 1.1s;
}

body.is-ready .skill-delay-7 {
    animation-delay: 1.18s;
}

body.is-ready .skill-delay-8 {
    animation-delay: 1.26s;
}

@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(28px);
        filter: blur(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes skillFadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .hero-reveal,
    .skill-reveal,
    .hero h1,
    .card,
    .reveal-section {
        opacity: 1;
        transform: none;
        animation: none;
    }
}

@media (min-width: 700px) {
    .page-shell {
        width: min(calc(100% - 3rem), var(--max-width));
    }

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

    .cv-layout {
        grid-template-columns: minmax(340px, 0.88fr) 2.8rem minmax(0, 1.12fr);
        align-items: start;
    }

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

    .cv-preview-toolbar {
        grid-template-columns: minmax(0, 1.2fr) auto;
        align-items: end;
    }

    .preview-toolbar-group-tools {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .preview-toolbar-group-mode {
        flex-direction: column;
        align-items: flex-end;
    }

    .contact-layout {
        grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
        align-items: start;
    }

}

@media (max-width: 699px) {
    body.cv-workspace-page .cv-ribbon-presets,
    body.cv-workspace-page .template-presets {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .experience-card-grid {
        grid-template-columns: 1fr;
    }

    .experience-workbench {
        padding: 0.85rem;
    }

    .language-workbench {
        padding: 0.85rem;
    }

    .language-card {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

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

    .assistant-input-row .button,
    .assistant-proposal .button {
        width: 100%;
    }

    .assistant-proposal {
        align-items: stretch;
        flex-direction: column;
    }

    .hero {
        min-height: auto;
        padding-inline: 0;
    }

    .cv-preview.template-digital,
    .cv-preview.template-holographic {
        padding: 1rem;
        border-radius: 24px;
    }

    .cv-preview.template-digital .cv-header,
    .cv-preview.template-holographic .cv-header {
        min-height: 0;
        padding: 0.88rem 0.9rem;
        border-radius: 20px;
    }

    .cv-preview.template-digital .cv-meta,
    .cv-preview.template-holographic .cv-meta {
        gap: 0.38rem;
    }

    .cv-preview.template-digital .cv-meta-item,
    .cv-preview.template-holographic .cv-meta-item {
        width: 100%;
        border-radius: 14px;
    }

    .cv-preview.template-digital .cv-body,
    .cv-preview.template-holographic .cv-body {
        grid-template-columns: 1fr;
        gap: 0.72rem;
    }

    .cv-preview.template-digital .cv-body section[data-section-key],
    .cv-preview.template-holographic .cv-body section[data-section-key] {
        grid-column: 1;
        padding: 0.28rem 0 0.08rem;
        border-radius: 0;
    }

    .cv-preview.template-digital .cv-body section[data-section-key="skills"],
    .cv-preview.template-digital .cv-body section[data-section-key="languages"],
    .cv-preview.template-digital .cv-body section[data-section-key="activities"],
    .cv-preview.template-digital .cv-body section[data-section-key="education"],
    .cv-preview.template-holographic .cv-body section[data-section-key="skills"],
    .cv-preview.template-holographic .cv-body section[data-section-key="languages"],
    .cv-preview.template-holographic .cv-body section[data-section-key="activities"],
    .cv-preview.template-holographic .cv-body section[data-section-key="education"] {
        padding: 0.62rem 0.72rem 0.68rem;
        border-radius: 20px;
    }

    .cv-preview.template-digital .cv-list-compact,
    .cv-preview.template-holographic .cv-list-compact {
        grid-template-columns: 1fr;
    }

    .cv-preview.template-digital .cv-experience-head,
    .cv-preview.template-holographic .cv-experience-head {
        grid-template-columns: 1fr;
        gap: 0.28rem;
    }

    .cv-preview.template-digital .cv-experience-date,
    .cv-preview.template-holographic .cv-experience-date {
        justify-self: start;
        text-align: left;
        white-space: normal;
    }

    .page-shell {
        width: min(calc(100% - 1rem), var(--max-width));
    }

    .page-header {
        padding-inline: 0.35rem;
        gap: 1.6rem;
    }

    .page-intro {
        padding-top: 1.8rem;
    }

    .page-intro h1 {
        font-size: clamp(2.3rem, 12vw, 3.4rem);
        letter-spacing: -0.05em;
    }

    .page-intro p:not(.eyebrow) {
        font-size: 1rem;
    }

    .topbar {
        border-radius: 24px;
        align-items: center;
        flex-direction: row;
    }

    .site-menu-panel {
        right: 0;
        left: auto;
        width: min(22rem, calc(100vw - 2rem));
    }

    .hero-content {
        padding-top: 3rem;
    }

    .button {
        width: 100%;
    }

    .qr-service-form .button,
    .custom-quote-panel .button,
    .qr-service-preview .button {
        width: 100%;
    }

    .pack-offer-card {
        width: 100%;
        border-radius: 22px;
    }

    .preview-toolbar-group {
        width: 100%;
        justify-content: flex-start;
    }

    .cv-focus-toggle {
        display: none;
    }

    .cv-preview-viewport {
        height: 72vh;
        padding-inline: 0.35rem;
    }

    .assistant-chat {
        right: 0.75rem;
        left: 0.75rem;
        width: auto;
    }

.assistant-toggle {
    right: 0.75rem;
    left: auto;
}

.auth-actions {
    width: 100%;
    justify-content: flex-start;
}

.auth-actions .button {
    width: auto;
}

.cv-private-gate {
    display: grid;
    gap: 1rem;
    margin-top: 1.25rem;
    padding: 1.5rem;
    border: 1px solid rgba(47, 63, 127, 0.12);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 24px 44px rgba(39, 52, 89, 0.08);
    backdrop-filter: blur(16px);
}

.cv-private-gate h3 {
    font-size: 1.25rem;
    color: #1f2a44;
}

.cv-private-gate p:not(.section-kicker) {
    color: #5b6277;
    max-width: 58ch;
}

.cv-private-gate-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

body.cv-workspace-locked .cv-preview-shell,
body.cv-workspace-locked .cv-editor-panel,
body.cv-workspace-locked #cv-import-block {
    display: none !important;
}

body.cv-workspace-locked .assistant-toggle,
body.cv-workspace-locked .assistant-chat {
    display: none !important;
}

.auth-modal {
    padding: 0.75rem;
}

.auth-modal-dialog {
    width: min(100%, 100%);
    max-height: calc(100dvh - 1.5rem);
    padding: 1rem;
    border-radius: 20px;
    gap: 0.85rem;
}

.auth-modal-dialog h2 {
    font-size: 1.9rem;
    line-height: 1.05;
    padding-right: 2.75rem;
}

.auth-modal-text {
    font-size: 0.98rem;
}

.auth-modal-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
}

.auth-tab {
    width: 100%;
    min-height: 2.5rem;
    padding-inline: 0.75rem;
}

.auth-form {
    gap: 0.8rem;
}

.auth-modal-close {
    top: 0.7rem;
    right: 0.7rem;
}

.preview-toolbar-group-tools,
.preview-toolbar-group-mode,
.cv-word-toolbar {
    width: 100%;
}

body.cv-workspace-page .cv-ribbon-presets,
body.cv-workspace-page .cv-preview-toolbar,
body.cv-workspace-page .preview-toolbar-group-tools {
    grid-template-columns: 1fr;
}

.preview-toolbar-group-mode {
    justify-content: flex-start;
}

.preview-toolbar-group-tools {
    grid-template-columns: 1fr;
}

.word-toolbar-row {
    align-items: stretch;
}

.word-toolbar-row-actions {
    justify-content: flex-start;
}

.cv-word-toolbar-shell {
    top: 0.5rem;
}
}

@media print {
    @page {
        size: A4;
        margin: 12mm;
    }

    body {
        background: #ffffff;
    }

    .assistant-toggle,
    .assistant-chat,
    .auth-modal,
    .topbar,
    .hero,
    #cv-intelligent > .section-heading,
    .section:not(#cv-intelligent),
    .site-footer,
    .cv-focus-toggle,
    .preview-page-thumbnails,
    .cover-letter-panel,
    .cv-section-actions,
    .cv-page-guide,
    #letter-page-preview,
    .cv-letter-page,
    [data-preview-doc="letter"] {
        display: none !important;
    }

    #cv-intelligent,
    .cv-layout,
    .cv-preview-shell,
    .cv-preview,
    .cv-preview-viewport,
    .cv-preview-stage {
        display: block !important;
        box-shadow: none !important;
        border: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        background: #ffffff !important;
    }

    .cv-preview {
        width: auto !important;
        min-height: auto !important;
        transform: none !important;
    }

    .cv-preview.template-modern .cv-modern-layout {
        min-height: 0 !important;
    }

    .cv-preview-viewport {
        height: auto !important;
        overflow: visible !important;
    }

    .cv-preview-stage {
        height: auto !important;
        min-height: 0 !important;
        gap: 0 !important;
    }

    .cv-form,
    .cv-import-strip,
    .template-presets,
    .cv-ribbon-presets,
    .cv-preview-toolbar,
    .cv-word-toolbar-shell,
    .cv-analysis-panel {
        display: none !important;
    }

    .is-hidden-preview,
    [aria-hidden="true"] {
        display: none !important;
    }

    .cv-body section {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

.auth-modal {
    position: fixed;
    inset: 0;
    z-index: 30;
    display: grid;
    place-items: center;
    padding: 1rem;
    overflow-y: auto;
}

.auth-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(6px);
}

.auth-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 480px);
    display: grid;
    gap: 1rem;
    padding: 1.5rem;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 28px 60px rgba(15, 23, 42, 0.18);
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
}

.auth-modal-close {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    width: 2.2rem;
    height: 2.2rem;
    border: 0;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.06);
    color: var(--text);
    font: inherit;
    font-size: 1.15rem;
    cursor: pointer;
}

.auth-modal-text {
    color: var(--text-soft);
}

.auth-modal-tabs {
    display: inline-flex;
    gap: 0.35rem;
    padding: 0.2rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(248, 250, 255, 0.9);
}

.auth-tab {
    min-height: 2.3rem;
    padding: 0.45rem 0.95rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--text-soft);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.auth-tab.is-active {
    background: #2f3f7f;
    color: #ffffff;
}

.auth-form {
    display: grid;
    gap: 0.9rem;
}

.auth-feedback {
    min-height: 1.4rem;
    color: #2f3f7f;
    font-weight: 700;
}

.hero-studio {
    min-height: 92vh;
}

.studio-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.7fr);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
    margin: auto 0;
    padding: 4rem 0 3rem;
}

.hero-studio .hero-content {
    margin: 0;
    padding: 0;
}

.studio-signal-card,
.page-intro,
.price-card,
.method-card,
.feature-link-card,
.project-card {
    position: relative;
    overflow: hidden;
}

.studio-signal-card {
    display: grid;
    gap: 1.2rem;
    padding: clamp(1.5rem, 3vw, 2.4rem);
    border: 1px solid rgba(47, 63, 127, 0.18);
    border-radius: 28px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(238, 242, 255, 0.88)),
        radial-gradient(circle at top right, rgba(47, 63, 127, 0.16), transparent 42%);
    box-shadow: 0 28px 60px rgba(39, 52, 89, 0.13);
}

.studio-signal-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-top: 4px solid #2f3f7f;
    pointer-events: none;
}

.studio-signal-card h2 {
    font-size: clamp(1.7rem, 3vw, 2.6rem);
    line-height: 1;
    letter-spacing: -0.04em;
}

.studio-signal-card p {
    color: var(--text-soft);
}

.signal-label,
.price-label,
.project-type {
    color: #2f3f7f;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.signal-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.signal-list span {
    padding: 0.5rem 0.75rem;
    border: 1px solid rgba(47, 63, 127, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    color: #2f3f7f;
    font-size: 0.84rem;
    font-weight: 800;
}

.page-header {
    display: grid;
    gap: clamp(2.5rem, 5vw, 4.5rem);
    padding: 1rem 1rem 0;
}

.page-intro {
    max-width: 820px;
    padding: clamp(2.2rem, 5vw, 4rem) 0 1rem;
}

.page-intro h1 {
    font-size: clamp(2.4rem, 6vw, 4.8rem);
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.page-intro p:not(.eyebrow) {
    max-width: 44rem;
    margin-top: 1.3rem;
    color: var(--text-soft);
    font-size: 1.06rem;
}

.page-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 1.35rem;
}

.page-pills span,
.contact-brief-list span {
    display: inline-flex;
    align-items: center;
    min-height: 2.25rem;
    padding: 0.55rem 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.055);
    color: var(--studio-muted);
    font-size: 0.86rem;
    font-weight: 800;
    backdrop-filter: blur(12px);
}

.feature-link-grid,
.pricing-grid,
.method-grid {
    display: grid;
    gap: 1rem;
}

.feature-link-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.feature-link-card {
    display: grid;
    gap: 0.8rem;
    min-height: 240px;
    padding: 1.35rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 16px 28px rgba(58, 73, 110, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-link-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 40px rgba(58, 73, 110, 0.12);
}

.feature-link-card span,
.method-card span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 999px;
    background: #eef2ff;
    color: #2f3f7f;
    font-weight: 900;
}

.feature-link-card p,
.price-card p,
.method-card p,
.project-card p {
    color: var(--text-soft);
}

.pricing-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    align-items: stretch;
}

.pricing-orbit {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.pricing-orbit span {
    position: absolute;
    border: 1px solid rgba(239, 214, 163, 0.08);
    border-radius: 50%;
    box-shadow: 0 0 80px rgba(114, 150, 255, 0.08);
}

.pricing-orbit span:nth-child(1) {
    width: 24rem;
    height: 24rem;
    left: -8rem;
    top: 4rem;
}

.pricing-orbit span:nth-child(2) {
    width: 34rem;
    height: 34rem;
    right: 12%;
    top: -10rem;
}

.pricing-orbit span:nth-child(3) {
    width: 18rem;
    height: 18rem;
    right: -6rem;
    bottom: -5rem;
}

.pack-offer-card {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.8rem;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    margin-bottom: 1rem;
    padding: 0.78rem 1rem;
    border: 1px solid rgba(239, 214, 163, 0.18);
    border-radius: 999px;
    background:
        linear-gradient(145deg, rgba(239, 214, 163, 0.12), rgba(255, 255, 255, 0.035)),
        rgba(255, 255, 255, 0.045);
    color: var(--studio-muted);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.16);
    backdrop-filter: blur(14px);
}

.pack-offer-card p,
.pack-offer-card strong,
.pack-offer-card span {
    margin: 0;
}

.pack-offer-card p {
    color: #efd6a3;
    font-weight: 900;
}

.pack-offer-card strong {
    color: var(--studio-text);
}

.pack-offer-card span {
    font-size: 0.9rem;
}

.price-card {
    display: grid;
    gap: 1rem;
    min-height: 540px;
    padding: clamp(1.35rem, 3vw, 2rem);
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
}

.price-card-featured {
    border-color: rgba(47, 63, 127, 0.38);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(240, 244, 255, 0.95));
}

.price-card h2 {
    margin-block: 0.35rem 0.1rem;
    font-size: clamp(2.8rem, 6vw, 4.7rem);
    line-height: 1;
    letter-spacing: -0.05em;
}

.launch-price {
    display: grid;
    gap: 0.35rem;
}

.launch-price span {
    color: var(--text-soft);
    font-size: 0.95rem;
    font-weight: 700;
}

.launch-price s {
    opacity: 0.72;
    text-decoration-thickness: 0.12em;
}

.price-card ul {
    display: grid;
    gap: 0.55rem;
    padding-left: 1.1rem;
    color: var(--text-soft);
}

.price-card .button {
    margin-top: auto;
    border-color: rgba(255, 255, 255, 0.16);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.035)),
        rgba(255, 255, 255, 0.045);
    color: var(--studio-text);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 16px 38px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(14px);
}

.price-card .button:hover,
.price-card .button:focus-visible {
    border-color: rgba(239, 214, 163, 0.34);
    background:
        linear-gradient(145deg, rgba(239, 214, 163, 0.16), rgba(255, 255, 255, 0.045)),
        rgba(255, 255, 255, 0.06);
    color: #fff8e8;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.14),
        0 20px 48px rgba(0, 0, 0, 0.24),
        0 0 28px rgba(239, 214, 163, 0.08);
}

.small-services-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.05rem;
    align-items: stretch;
}

.small-service-card {
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    gap: 0.85rem;
    min-height: 260px;
    padding: 1.35rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 16px 28px rgba(58, 73, 110, 0.06);
}

a.small-service-card {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.pro-tool-card {
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.pro-tool-card:hover,
.pro-tool-card:focus-visible {
    transform: translateY(-4px);
    border-color: rgba(239, 214, 163, 0.28);
    box-shadow:
        0 28px 70px rgba(0, 0, 0, 0.34),
        0 0 0 1px rgba(239, 214, 163, 0.12);
}

.pro-tool-card:focus-visible {
    outline: 2px solid rgba(239, 214, 163, 0.72);
    outline-offset: 4px;
}

.small-service-card h3 {
    font-size: 1rem;
    line-height: 1.25;
}

.small-service-card p {
    color: #2f3f7f;
    font-size: 0.95rem;
    font-weight: 900;
}

.small-service-card ul {
    display: grid;
    align-content: start;
    gap: 0.4rem;
    margin: 0;
    padding-left: 1rem;
    color: var(--text-soft);
    font-size: 0.92rem;
    line-height: 1.45;
}

.service-request-link {
    display: inline-flex;
    width: fit-content;
    color: #efd6a3;
    font-weight: 800;
    text-decoration: none;
}

.service-request-link:hover,
.service-request-link:focus-visible {
    text-decoration: underline;
}

body.studio-home[data-theme="day"] .service-request-link {
    color: #171923;
}

.small-services-support {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.qr-service-panel,
.custom-quote-panel {
    display: grid;
    gap: 0.85rem;
    padding: clamp(1.35rem, 3vw, 2rem);
    border: 1px solid var(--line);
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 248, 255, 0.9));
    box-shadow: var(--shadow);
}

.qr-service-panel h3,
.custom-quote-panel h3 {
    font-size: clamp(1.35rem, 2.6vw, 2rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.qr-service-panel p:not(.signal-label),
.custom-quote-panel p:not(.signal-label) {
    color: var(--text-soft);
}

.qr-service-form {
    display: grid;
    gap: 0.8rem;
    margin-top: 0.2rem;
}

.qr-service-form .button {
    width: fit-content;
}

.qr-service-preview {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.72);
}

.qr-service-preview[hidden] {
    display: none;
}

.qr-service-preview img {
    width: 8rem;
    height: 8rem;
    padding: 0.55rem;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #ffffff;
}

.qr-service-result {
    display: grid;
    gap: 0.75rem;
    min-width: min(100%, 24rem);
}

.qr-service-result p {
    color: var(--text-soft);
    font-weight: 800;
}

.qr-service-result small {
    color: var(--text-soft);
    font-size: 0.86rem;
    line-height: 1.45;
}

.qr-service-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.custom-quote-panel .button {
    width: fit-content;
    margin-top: 0.35rem;
}

@media (max-width: 980px) {
    .small-services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 699px) {
    .small-services-grid {
        grid-template-columns: 1fr;
    }

    .qr-service-form .button,
    .custom-quote-panel .button,
    .qr-service-preview .button {
        width: 100%;
    }

    .contact-form-row,
    .quote-options {
        grid-template-columns: 1fr;
    }
}

.home-services-note {
    margin-top: -0.4rem;
    font-size: 0.96rem;
}

body.studio-home .small-service-card,
body.studio-home .qr-service-panel,
body.studio-home .custom-quote-panel {
    position: relative;
    overflow: hidden;
    border-color: var(--studio-line);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025)),
        var(--studio-panel);
    box-shadow: var(--studio-shadow);
    backdrop-filter: blur(18px);
}

body.studio-home .small-service-card::before,
body.studio-home .qr-service-panel::before,
body.studio-home .custom-quote-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.13), transparent 28%, transparent 72%, rgba(239, 214, 163, 0.08)),
        radial-gradient(circle at 90% 10%, rgba(114, 150, 255, 0.08), transparent 12rem);
    pointer-events: none;
}

body.studio-home .small-service-card::after {
    content: "";
    position: absolute;
    right: -3.5rem;
    bottom: -4rem;
    width: 11rem;
    height: 11rem;
    border: 1px solid rgba(239, 214, 163, 0.11);
    border-radius: 50%;
    box-shadow:
        inset 0 0 0 1.8rem rgba(255, 255, 255, 0.018),
        0 0 44px rgba(239, 214, 163, 0.08);
    pointer-events: none;
}

body.studio-home .small-service-card > *,
body.studio-home .qr-service-panel > *,
body.studio-home .custom-quote-panel > * {
    position: relative;
    z-index: 1;
}

body.studio-home .small-service-card h3,
body.studio-home .qr-service-panel h3,
body.studio-home .custom-quote-panel h3 {
    color: var(--studio-text);
}

body.studio-home .small-service-card p,
body.studio-home .small-service-card ul,
body.studio-home .qr-service-panel p:not(.signal-label),
body.studio-home .custom-quote-panel p:not(.signal-label),
body.studio-home .home-services-note {
    color: var(--studio-muted);
}

body.studio-home .small-service-card p {
    color: #efd6a3;
}

body.studio-home .qr-service-form .button-primary,
body.studio-home .custom-quote-panel .button-secondary,
body.studio-home .qr-service-preview .button-secondary {
    border-color: rgba(255, 255, 255, 0.16);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.035)),
        rgba(255, 255, 255, 0.045);
    color: var(--studio-text);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 16px 38px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(14px);
}

body.studio-home .qr-service-form .button-primary:hover,
body.studio-home .qr-service-form .button-primary:focus-visible,
body.studio-home .custom-quote-panel .button-secondary:hover,
body.studio-home .custom-quote-panel .button-secondary:focus-visible,
body.studio-home .qr-service-preview .button-secondary:hover,
body.studio-home .qr-service-preview .button-secondary:focus-visible {
    border-color: rgba(239, 214, 163, 0.34);
    background:
        linear-gradient(145deg, rgba(239, 214, 163, 0.16), rgba(255, 255, 255, 0.045)),
        rgba(255, 255, 255, 0.06);
    color: #fff8e8;
}

body.studio-home .qr-service-preview {
    border-color: var(--studio-line);
    background: rgba(255, 255, 255, 0.045);
}

body.studio-home .qr-service-result p,
body.studio-home .qr-service-result small {
    color: var(--studio-muted);
}

body.studio-home[data-theme="day"] .small-service-card,
body.studio-home[data-theme="day"] .qr-service-panel,
body.studio-home[data-theme="day"] .custom-quote-panel {
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(255, 249, 239, 0.52)),
        var(--studio-panel);
}

body.studio-home[data-theme="day"] .small-service-card h3,
body.studio-home[data-theme="day"] .qr-service-panel h3,
body.studio-home[data-theme="day"] .custom-quote-panel h3 {
    color: #171923;
}

body.studio-home[data-theme="day"] .small-service-card p {
    color: #2f3f7f;
}

body.studio-home[data-theme="day"] .qr-service-panel p:not(.signal-label),
body.studio-home[data-theme="day"] .custom-quote-panel p:not(.signal-label),
body.studio-home[data-theme="day"] .small-service-card ul,
body.studio-home[data-theme="day"] .home-services-note {
    color: rgba(42, 45, 58, 0.72);
}

body.studio-home[data-theme="day"] .qr-service-form .button-primary,
body.studio-home[data-theme="day"] .custom-quote-panel .button-secondary,
body.studio-home[data-theme="day"] .qr-service-preview .button-secondary {
    border-color: rgba(42, 45, 58, 0.13);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.68), rgba(255, 249, 239, 0.38)),
        rgba(255, 255, 255, 0.46);
    color: #171923;
    box-shadow: 0 16px 34px rgba(74, 65, 45, 0.1);
}

body.studio-home[data-theme="day"] .qr-service-preview {
    background: rgba(255, 255, 255, 0.72);
}

body.studio-home[data-theme="day"] .price-card .button {
    border-color: rgba(42, 45, 58, 0.13);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.68), rgba(255, 249, 239, 0.38)),
        rgba(255, 255, 255, 0.46);
    color: #171923;
    box-shadow: 0 16px 34px rgba(74, 65, 45, 0.1);
}

.method-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.method-card {
    display: grid;
    gap: 1rem;
    min-height: 280px;
    padding: clamp(1.4rem, 3vw, 2rem);
    border: 1px solid var(--line);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(246, 248, 255, 0.88));
    box-shadow: var(--shadow);
}

.flow-panel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1rem;
    padding: clamp(1rem, 2.4vw, 1.35rem);
    border: 1px solid var(--studio-line);
    border-radius: 30px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.024)),
        rgba(12, 14, 20, 0.72);
    box-shadow: var(--studio-shadow);
    backdrop-filter: blur(18px);
}

.flow-step {
    position: relative;
    min-height: 210px;
    padding: 1.35rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    background:
        radial-gradient(circle at 100% 0%, rgba(239, 214, 163, 0.11), transparent 11rem),
        rgba(255, 255, 255, 0.045);
    overflow: hidden;
}

.flow-step::after {
    content: "";
    position: absolute;
    right: -4rem;
    bottom: -4rem;
    width: 10rem;
    height: 10rem;
    border: 1px solid rgba(114, 150, 255, 0.13);
    border-radius: 50%;
}

.flow-step span,
.mini-index {
    color: #efd6a3;
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.flow-step h3 {
    margin-top: 2.8rem;
    font-size: clamp(1.45rem, 3vw, 2rem);
}

.flow-step p {
    margin-top: 0.75rem;
    color: var(--studio-muted);
}

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

.mood-card {
    position: relative;
    display: grid;
    align-content: end;
    gap: 0.45rem;
    min-height: 260px;
    padding: 1.25rem;
    border: 1px solid var(--studio-line);
    border-radius: 26px;
    overflow: hidden;
    box-shadow: var(--studio-shadow);
}

.mood-card span {
    position: absolute;
    inset: 1rem 1rem auto auto;
    width: 3.4rem;
    height: 3.4rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    backdrop-filter: blur(10px);
}

.mood-card h3 {
    position: relative;
    z-index: 1;
    font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.mood-card p {
    position: relative;
    z-index: 1;
    max-width: 13rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.86rem;
    font-weight: 800;
}

.mood-card-premium {
    background:
        radial-gradient(circle at 70% 20%, rgba(239, 214, 163, 0.28), transparent 10rem),
        linear-gradient(145deg, #0a0a0d, #202431);
}

.mood-card-soft {
    background:
        radial-gradient(circle at 24% 16%, rgba(255, 244, 220, 0.9), transparent 9rem),
        linear-gradient(145deg, #8d7b62, #f1e7d4);
}

.mood-card-local {
    background:
        radial-gradient(circle at 74% 22%, rgba(120, 151, 220, 0.36), transparent 9rem),
        linear-gradient(145deg, #1b2630, #7b5539);
}

.mood-card-cv {
    background:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.72), transparent 8rem),
        linear-gradient(145deg, #25314c, #dfe6f4);
}

.method-card span {
    width: 3.5rem;
    height: 3.5rem;
    font-size: 1.4rem;
}

.method-card h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    line-height: 1;
    letter-spacing: -0.04em;
}

.project-card {
    min-height: 260px;
}

@media (max-width: 840px) {
    .studio-hero-grid {
        grid-template-columns: 1fr;
        padding: 3rem 0 2rem;
    }

    .hero-studio {
        min-height: auto;
    }
}

body.studio-home {
    position: relative;
    overflow-x: hidden;
    --max-width: 1320px;
    --studio-page-bg: #090a0d;
    --studio-panel: rgba(18, 20, 27, 0.84);
    --studio-panel-strong: rgba(23, 25, 34, 0.92);
    --studio-text: #f7f3ea;
    --studio-muted: rgba(247, 243, 234, 0.68);
    --studio-line: rgba(255, 255, 255, 0.12);
    --studio-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
    background:
        radial-gradient(circle at 18% 4%, rgba(114, 150, 255, 0.18), transparent 26rem),
        radial-gradient(circle at 78% 0%, rgba(239, 214, 163, 0.14), transparent 30rem),
        linear-gradient(180deg, #010102 0%, #05060a 42%, #07080c 72%, var(--studio-page-bg) 100%);
}

body.studio-home::before,
body.studio-home::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
}

body.studio-home::before {
    z-index: 0;
    background:
        radial-gradient(circle at 12% 14%, rgba(255, 255, 255, 0.72) 0 1px, transparent 1.4px),
        radial-gradient(circle at 24% 42%, rgba(239, 214, 163, 0.58) 0 1px, transparent 1.6px),
        radial-gradient(circle at 74% 18%, rgba(255, 255, 255, 0.6) 0 1px, transparent 1.4px),
        radial-gradient(circle at 86% 66%, rgba(114, 150, 255, 0.55) 0 1px, transparent 1.5px);
    background-size: 180px 180px, 260px 260px, 220px 220px, 310px 310px;
    opacity: 0.42;
    animation: pageStarDrift 44s linear infinite;
}

body.studio-home::after {
    z-index: 0;
    background:
        radial-gradient(ellipse at 72% 20%, rgba(114, 150, 255, 0.15), transparent 36rem),
        radial-gradient(ellipse at 16% 44%, rgba(239, 214, 163, 0.1), transparent 30rem),
        linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 22%, rgba(239, 214, 163, 0.025) 62%, transparent);
    opacity: 0.86;
    animation: pageGlowBreathe 14s ease-in-out infinite alternate;
}

.cosmic-page-field,
.cosmic-page-glow {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
}

.cosmic-page-field {
    z-index: 0;
    opacity: 0.72;
    mix-blend-mode: screen;
}

.cosmic-page-glow {
    z-index: 0;
    background:
        radial-gradient(circle at 68% 18%, rgba(239, 214, 163, 0.12), transparent 22rem),
        radial-gradient(circle at 22% 76%, rgba(114, 150, 255, 0.1), transparent 26rem);
    filter: blur(0.4px);
    opacity: 0.74;
    animation: pageGlowFloat 18s ease-in-out infinite alternate;
}

body.studio-home .page-shell {
    position: relative;
    z-index: 2;
}

body.studio-home[data-theme="day"] {
    --studio-page-bg: #f5f1e8;
    --studio-panel: rgba(255, 252, 244, 0.88);
    --studio-panel-strong: rgba(255, 255, 255, 0.95);
    --studio-text: #171923;
    --studio-muted: rgba(42, 45, 58, 0.72);
    --studio-line: rgba(42, 45, 58, 0.12);
    --studio-shadow: 0 26px 58px rgba(74, 65, 45, 0.12);
    background:
        radial-gradient(circle at 50% 0%, rgba(213, 173, 98, 0.2), transparent 22rem),
        radial-gradient(circle at 82% 10%, rgba(120, 151, 220, 0.24), transparent 28rem),
        linear-gradient(180deg, #f7f2e8 0%, #efe8dc 54%, var(--studio-page-bg) 100%);
}

body.studio-home[data-theme="day"] .cosmic-page-field,
body.studio-home[data-theme="day"] .cosmic-page-glow,
body.studio-home[data-theme="day"]::before,
body.studio-home[data-theme="day"]::after {
    opacity: 0.24;
}

body[data-theme="day"] .couture-menu-toggle {
    border-color: rgba(32, 34, 44, 0.14);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(255, 249, 239, 0.52)),
        rgba(255, 255, 255, 0.56);
    color: #171923;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.72),
        0 18px 45px rgba(74, 65, 45, 0.12);
}

body[data-theme="day"] .site-menu-panel {
    border-color: rgba(42, 45, 58, 0.12);
    background:
        radial-gradient(circle at 82% 0%, rgba(213, 173, 98, 0.16), transparent 13rem),
        linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(247, 241, 230, 0.78));
    color: #171923;
    box-shadow: 0 34px 80px rgba(74, 65, 45, 0.16);
}

body[data-theme="day"] .site-menu-links a,
body[data-theme="day"] .site-menu-actions a,
body[data-theme="day"] .site-menu-actions button {
    border-color: rgba(42, 45, 58, 0.1);
    background: rgba(255, 255, 255, 0.52);
}

body[data-theme="day"] .site-menu-actions {
    border-top-color: rgba(42, 45, 58, 0.1);
}

.hero-immersive {
    position: relative;
    isolation: isolate;
    min-height: calc(100vh - 2rem);
    padding: 1rem;
    overflow: hidden;
    border-radius: 0 0 34px 34px;
    color: #f8f6ee;
}

.hero-immersive::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -3;
    background:
        radial-gradient(circle at 72% 35%, rgba(255, 255, 255, 0.035), transparent 32rem),
        linear-gradient(180deg, rgba(2, 2, 4, 0.9), rgba(2, 3, 8, 0.68));
    opacity: 1;
    mask-image: linear-gradient(180deg, #000 0%, #000 70%, transparent 100%);
}

body.studio-home[data-theme="day"] .hero-immersive {
    color: #171923;
}

body.studio-home[data-theme="day"] .hero-immersive::before {
    background: linear-gradient(180deg, #f4eddf, #e8dfcf);
}

body.studio-home[data-theme="day"] .hero-immersive::after {
    background: linear-gradient(180deg, transparent, rgba(245, 241, 232, 0.96) 82%);
}

.hero-immersive::after {
    content: "";
    position: absolute;
    inset: auto -10% -28% -10%;
    z-index: -2;
    height: 42%;
    background: linear-gradient(180deg, transparent, rgba(9, 10, 13, 0.96) 82%);
    pointer-events: none;
}

.hero-particles,
.hero-ambient {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-particles {
    z-index: -1;
    opacity: 1.08;
}

.hero-ambient {
    z-index: -2;
    background:
        radial-gradient(ellipse at 74% 34%, rgba(239, 214, 163, 0.18), transparent 25rem),
        radial-gradient(ellipse at 24% 18%, rgba(114, 150, 255, 0.17), transparent 27rem),
        radial-gradient(ellipse at 78% 72%, rgba(98, 60, 28, 0.17), transparent 25rem),
        linear-gradient(120deg, transparent 18%, rgba(255, 255, 255, 0.026) 48%, transparent 78%);
    filter: blur(0.5px);
    animation: ambientDrift 9s ease-in-out infinite alternate;
}

body.studio-home[data-theme="day"] .hero-ambient {
    background:
        radial-gradient(ellipse at 72% 26%, rgba(213, 173, 98, 0.24), transparent 19rem),
        radial-gradient(ellipse at 24% 18%, rgba(114, 150, 255, 0.2), transparent 24rem),
        radial-gradient(ellipse at 78% 72%, rgba(177, 119, 58, 0.18), transparent 20rem);
}

.hero-immersive .topbar {
    position: relative;
    z-index: 2;
    margin-top: 0.8rem;
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(0, 0, 0, 0.34);
    color: #f8f6ee;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

body.studio-home .topbar {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(2, 3, 8, 0.36);
    color: #f8f6ee;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(18px);
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 2.4rem;
    padding: 0.35rem 0.75rem 0.35rem 0.38rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: #f8f6ee;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 800;
    cursor: pointer;
}

.theme-toggle-dot {
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #f3dfb4, #7e879d);
    box-shadow: 0 0 20px rgba(239, 214, 163, 0.28);
}

body.studio-home[data-theme="day"] .theme-toggle {
    border-color: rgba(32, 34, 44, 0.14);
    background: rgba(255, 255, 255, 0.52);
    color: #171923;
}

.hero-immersive .brand,
.hero-immersive .nav-links a {
    color: #f8f6ee;
}

.hero-immersive .nav-links a {
    opacity: 0.76;
}

.hero-immersive .nav-links a:hover,
.hero-immersive .nav-links a:focus-visible {
    opacity: 1;
    color: #efd6a3;
}

body.studio-home[data-theme="day"] .hero-immersive .topbar {
    border-color: rgba(32, 34, 44, 0.12);
    background: rgba(255, 255, 255, 0.58);
    color: #171923;
}

body.studio-home[data-theme="day"] .topbar {
    border-color: rgba(32, 34, 44, 0.12);
    background: rgba(255, 255, 255, 0.58);
    color: #171923;
}

body.studio-home[data-theme="day"] .hero-immersive .brand,
body.studio-home[data-theme="day"] .hero-immersive .nav-links a,
body.studio-home[data-theme="day"] .hero-immersive h1 {
    color: #171923;
}

body.studio-home[data-theme="day"] .hero-immersive .hero-role {
    color: rgba(23, 25, 35, 0.82);
}

body.studio-home[data-theme="day"] .hero-immersive .hero-text,
body.studio-home[data-theme="day"] .hero-immersive .eyebrow {
    color: rgba(23, 25, 35, 0.64);
}

.hero-immersive .studio-hero-grid {
    position: relative;
    z-index: 1;
    grid-template-columns: minmax(0, 0.98fr) minmax(360px, 0.76fr);
    min-height: min(780px, calc(100vh - 9.5rem));
    padding-top: clamp(2.6rem, 6vh, 5.5rem);
}

.hero-immersive .eyebrow,
.hero-immersive .section-kicker {
    color: rgba(248, 246, 238, 0.72);
}

.hero-immersive .eyebrow::before,
.hero-immersive .section-kicker::before {
    background: rgba(239, 214, 163, 0.58);
}

.hero-immersive .hero h1,
.hero-immersive h1 {
    color: #ffffff;
    font-family: "Playfair Display", "Manrope", serif;
    font-size: clamp(3.2rem, 6.8vw, 7.2rem);
    line-height: 0.92;
    letter-spacing: 0;
    text-shadow:
        0 28px 80px rgba(0, 0, 0, 0.46),
        0 0 42px rgba(114, 150, 255, 0.14);
}

.hero-immersive .hero-title .title-line {
    max-width: 760px;
    text-wrap: balance;
}

.hero-immersive .hero-role {
    max-width: 680px;
    color: rgba(248, 246, 238, 0.88);
    font-size: clamp(1.12rem, 2vw, 1.5rem);
    line-height: 1.42;
}

.hero-immersive .hero-text {
    max-width: 610px;
    color: rgba(248, 246, 238, 0.66);
    font-size: 1rem;
}

.hero-immersive .button-primary {
    border-color: rgba(239, 214, 163, 0.9);
    background: linear-gradient(135deg, #f3dfb4, #d5ad62);
    color: #101015;
    box-shadow: 0 18px 40px rgba(213, 173, 98, 0.22);
}

.hero-immersive .button-primary:hover,
.hero-immersive .button-primary:focus-visible {
    background: linear-gradient(135deg, #ffe9b8, #c99b4d);
    border-color: rgba(239, 214, 163, 0.95);
    color: #101015;
}

.hero-immersive .button-secondary {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.07);
    color: #f8f6ee;
    backdrop-filter: blur(12px);
}

.hero-immersive .button-secondary:hover,
.hero-immersive .button-secondary:focus-visible {
    border-color: rgba(239, 214, 163, 0.34);
    background: rgba(239, 214, 163, 0.12);
    color: #fff8e8;
}

body.studio-home[data-theme="day"] .hero-immersive .button-secondary {
    border-color: rgba(42, 45, 58, 0.13);
    background: rgba(255, 255, 255, 0.84);
    color: #171923;
    box-shadow: 0 14px 30px rgba(74, 65, 45, 0.08);
}

body.studio-home[data-theme="day"] .hero-immersive .button-secondary:hover,
body.studio-home[data-theme="day"] .hero-immersive .button-secondary:focus-visible {
    border-color: rgba(42, 45, 58, 0.2);
    background: rgba(255, 255, 255, 0.94);
    color: #171923;
}

.hero-immersive .studio-signal-card {
    isolation: isolate;
    min-height: min(650px, 72vh);
    border: 0;
    border-radius: 50%;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    overflow: visible;
}

body.studio-home[data-theme="day"] .hero-immersive .studio-signal-card {
    background: transparent;
    box-shadow: none;
}

.hero-immersive .studio-signal-card::before {
    display: none;
}

.hero-immersive .studio-signal-card::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 3%;
    z-index: 0;
    width: min(31rem, 78vw);
    height: min(4.2rem, 12vw);
    border-radius: 50%;
    background:
        radial-gradient(ellipse at 50% 48%, rgba(255, 255, 255, 0.52), transparent 4%),
        radial-gradient(ellipse at 34% 48%, rgba(114, 174, 255, 0.34), transparent 34%),
        radial-gradient(ellipse at 68% 52%, rgba(239, 196, 103, 0.34), transparent 34%),
        repeating-radial-gradient(ellipse at 50% 50%, rgba(255, 255, 255, 0.2) 0 1px, transparent 1px 12px);
    filter: blur(0.4px);
    opacity: 0.72;
    transform: translateX(-50%);
    pointer-events: none;
}

.digital-core {
    position: absolute;
    inset: 2% -10% -8% 2%;
    display: grid;
    place-items: center;
    isolation: isolate;
}

.digital-core::before,
.digital-core::after,
.digital-core > * {
    grid-area: 1 / 1;
}

.digital-core::before {
    content: "";
    position: relative;
    z-index: 0;
    width: min(35rem, 78vw);
    aspect-ratio: 1;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    background:
        radial-gradient(circle at 37% 24%, rgba(255, 255, 255, 0.18), transparent 14rem),
        radial-gradient(circle at 20% 38%, rgba(94, 169, 255, 0.28), transparent 16rem),
        radial-gradient(circle at 82% 54%, rgba(239, 196, 103, 0.3), transparent 12rem),
        radial-gradient(circle at 50% 50%, transparent 42%, rgba(255, 255, 255, 0.11) 43%, transparent 46%),
        repeating-radial-gradient(circle at 54% 44%, rgba(255, 255, 255, 0.34) 0 1px, transparent 1px 11px),
        conic-gradient(from 140deg, rgba(114, 174, 255, 0.34), rgba(255, 255, 255, 0.1), rgba(239, 196, 103, 0.42), rgba(255, 255, 255, 0.08), rgba(114, 174, 255, 0.34));
    box-shadow:
        inset 22px -8px 28px rgba(104, 175, 255, 0.18),
        inset -24px 0 30px rgba(239, 196, 103, 0.16),
        inset 0 0 60px rgba(255, 255, 255, 0.05);
    opacity: 0.62;
    filter:
        drop-shadow(0 0 34px rgba(114, 174, 255, 0.2))
        drop-shadow(0 0 46px rgba(239, 196, 103, 0.14));
    animation: corePulse 7s ease-in-out infinite;
}

.digital-core::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 1;
    width: min(15rem, 38vw);
    aspect-ratio: 1;
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(255, 255, 255, 0.32), transparent 10%),
        radial-gradient(circle, rgba(114, 174, 255, 0.28), transparent 44%),
        radial-gradient(circle, rgba(239, 196, 103, 0.22), transparent 68%);
    filter: blur(2px);
    transform: translate(-50%, -50%);
}

.sa-logo-stage-mark {
    position: relative;
    z-index: 3;
    display: block;
    width: clamp(10.4rem, 24vw, 16.4rem);
    height: auto;
    opacity: 0.42;
    filter:
        drop-shadow(0 30px 46px rgba(0, 0, 0, 0.46))
        drop-shadow(0 0 28px rgba(114, 174, 255, 0.34))
        drop-shadow(0 0 42px rgba(239, 196, 103, 0.22));
    animation: logoFloat 8s ease-in-out infinite;
}

.digital-core span {
    position: relative;
    z-index: 2;
    width: 58%;
    aspect-ratio: 1;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    --orbit-tilt: rotateX(64deg) rotateZ(-10deg);
    transform: var(--orbit-tilt);
    animation: coreRotate 18s linear infinite;
}

.digital-core span::before,
.digital-core span::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 18px rgba(255, 255, 255, 0.72);
}

.digital-core span::before {
    top: 11%;
    left: 50%;
    width: 0.48rem;
    height: 0.48rem;
}

.digital-core span::after {
    right: 14%;
    bottom: 20%;
    width: 0.34rem;
    height: 0.34rem;
    background: #efd6a3;
    box-shadow: 0 0 16px rgba(239, 214, 163, 0.72);
}

.digital-core .sa-orbit-middle {
    width: 76%;
    border-color: rgba(255, 242, 194, 0.24);
    --orbit-tilt: rotateX(66deg) rotateZ(24deg);
    animation-duration: 24s;
    animation-direction: reverse;
}

.digital-core .sa-orbit-outer {
    width: 96%;
    border-style: dashed;
    border-color: rgba(255, 255, 255, 0.22);
    --orbit-tilt: rotateX(69deg) rotateZ(-36deg);
    animation-duration: 31s;
}

.digital-core i {
    position: absolute;
    z-index: 4;
    width: 1rem;
    height: 1rem;
    border-radius: 0;
    background:
        conic-gradient(
            from 42deg,
            #ffffff 0deg 42deg,
            #dce7ff 42deg 90deg,
            #6f84b7 90deg 138deg,
            #f3dfb4 138deg 190deg,
            #6b5128 190deg 236deg,
            #243459 236deg 286deg,
            #ffffff 286deg 360deg
        );
    clip-path: polygon(50% 0%, 62% 36%, 100% 50%, 62% 64%, 50% 100%, 38% 64%, 0% 50%, 38% 36%);
    filter:
        drop-shadow(0 3px 3px rgba(0, 0, 0, 0.45))
        drop-shadow(0 0 8px rgba(255, 255, 255, 0.36))
        drop-shadow(0 0 12px rgba(114, 150, 255, 0.22));
    opacity: 0.72;
    --star-tilt: rotate(18deg);
    --star-drift-x: 0.8rem;
    --star-drift-y: -0.6rem;
    --star-return-x: -0.34rem;
    --star-return-y: 0.3rem;
    transform: var(--star-tilt) scale(0.88);
    animation: starTwinkle 7.8s ease-in-out infinite;
}

.digital-core i::before,
.digital-core i::after {
    content: "";
    position: absolute;
    inset: 0;
    clip-path: inherit;
    pointer-events: none;
}

.digital-core i::before {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.92), transparent 36%),
        linear-gradient(315deg, rgba(255, 255, 255, 0.24), transparent 50%);
    mix-blend-mode: screen;
}

.digital-core i::after {
    inset: 28%;
    background: rgba(255, 255, 255, 0.72);
    filter: blur(0.5px);
}

.digital-core .sa-star-a {
    top: 18%;
    left: 27%;
    width: 1.1rem;
    height: 1.1rem;
    --star-tilt: rotate(16deg);
    --star-drift-x: 0.9rem;
    --star-drift-y: -0.7rem;
    --star-return-x: -0.38rem;
    --star-return-y: 0.34rem;
    animation-delay: -0.8s;
}

.digital-core .sa-star-b {
    top: 28%;
    right: 18%;
    width: 0.86rem;
    height: 0.86rem;
    background:
        conic-gradient(
            from 48deg,
            #ffffff 0deg 46deg,
            #cfe0ff 46deg 96deg,
            #4d68ad 96deg 160deg,
            #9fbaff 160deg 222deg,
            #25365f 222deg 294deg,
            #ffffff 294deg 360deg
        );
    --star-tilt: rotate(-18deg);
    --star-drift-x: -0.7rem;
    --star-drift-y: 0.55rem;
    --star-return-x: 0.32rem;
    --star-return-y: -0.28rem;
    animation-delay: -2.1s;
}

.digital-core .sa-star-c {
    right: 28%;
    bottom: 15%;
    width: 0.98rem;
    height: 0.98rem;
    background:
        conic-gradient(
            from 36deg,
            #fff8db 0deg 48deg,
            #f3dfb4 48deg 116deg,
            #946f32 116deg 184deg,
            #efd6a3 184deg 246deg,
            #5c421e 246deg 306deg,
            #ffffff 306deg 360deg
        );
    --star-tilt: rotate(24deg);
    --star-drift-x: -1rem;
    --star-drift-y: -0.45rem;
    --star-return-x: 0.42rem;
    --star-return-y: 0.22rem;
    animation-delay: -3.4s;
}

.digital-core .sa-star-d {
    left: 18%;
    bottom: 31%;
    width: 0.72rem;
    height: 0.72rem;
    --star-tilt: rotate(-24deg);
    --star-drift-x: 0.72rem;
    --star-drift-y: 0.64rem;
    --star-return-x: -0.3rem;
    --star-return-y: -0.32rem;
    animation-delay: -1.6s;
}

.studio-offer {
    position: relative;
    z-index: 3;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    align-items: center;
    padding: 0.35rem 1.1rem 0.1rem;
    color: rgba(248, 246, 238, 0.78);
    font-size: 0.9rem;
}

.studio-offer span {
    color: #efd6a3;
    font-weight: 800;
}

.studio-offer strong {
    font-weight: 600;
}

.design-tile {
    position: absolute;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.045);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(8px);
    opacity: 0.34;
}

.design-tile-a {
    right: 5%;
    top: 6%;
    width: 7.4rem;
    height: 4.8rem;
    transform: rotate(12deg) perspective(700px) rotateX(18deg);
}

.design-tile-a span {
    position: absolute;
    left: 0.82rem;
    bottom: 0.82rem;
    color: #ffffff;
    font-family: "Libre Baskerville", serif;
    font-size: 1.58rem;
}

.design-tile-a i {
    position: absolute;
    right: 0.82rem;
    bottom: 0.95rem;
    width: 2.45rem;
    height: 0.72rem;
    border-radius: 999px;
    background: linear-gradient(90deg, #f4e9d2, #8f8a80, #1f1f23);
}

.design-tile-b {
    left: 9%;
    bottom: 3%;
    width: 8.6rem;
    height: 6.5rem;
    transform: rotate(-13deg) perspective(700px) rotateY(18deg);
    background:
        radial-gradient(circle at 52% 40%, rgba(180, 94, 30, 0.94), transparent 34%),
        linear-gradient(135deg, rgba(249, 240, 222, 0.94), rgba(255, 255, 255, 0.2));
}

.design-tile-b span {
    position: absolute;
    inset: 1.05rem;
    border: 1px solid rgba(255, 255, 255, 0.52);
    border-radius: 50%;
}

body.studio-home main {
    position: relative;
    z-index: 1;
}

body.studio-home main,
body.studio-home .site-footer {
    color: var(--studio-text);
}

body.studio-home main {
    background:
        linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.012) 32%, transparent 100%);
}

body.studio-home .section {
    position: relative;
    isolation: isolate;
    padding: clamp(5.5rem, 10vw, 8.5rem) 0;
}

body.studio-home .section::before {
    content: "";
    position: absolute;
    inset: 3rem auto auto -7%;
    width: 20rem;
    height: 20rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(239, 214, 163, 0.1), transparent 68%);
    pointer-events: none;
    z-index: -1;
}

body.studio-home .section::after {
    content: "";
    position: absolute;
    inset: auto -10% 10% auto;
    width: 26rem;
    height: 26rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(114, 150, 255, 0.09), transparent 70%);
    pointer-events: none;
    z-index: -1;
}

body.studio-home .section h2,
body.studio-home .section h3,
body.studio-home .page-intro h1,
body.studio-home .brand,
body.studio-home .site-footer p {
    color: var(--studio-text);
}

body.studio-home .section-intro,
body.studio-home .page-intro p:not(.eyebrow),
body.studio-home .content-card p,
body.studio-home .feature-link-card p,
body.studio-home .journey-card p,
body.studio-home .platform-product-card p,
body.studio-home .journey-card ul,
body.studio-home .price-card p,
body.studio-home .price-card ul,
body.studio-home .method-card p,
body.studio-home .project-card p,
body.studio-home .profile-panel,
body.studio-home .contact-panel p {
    color: var(--studio-muted);
}

body.studio-home .content-card,
body.studio-home .feature-link-card,
body.studio-home .journey-card,
body.studio-home .platform-product-card,
body.studio-home .service-pill-card,
body.studio-home .ai-brief-form,
body.studio-home .ai-brief-panel,
body.studio-home .ai-brief-output,
body.studio-home .price-card,
body.studio-home .method-card,
body.studio-home .project-card,
body.studio-home .profile-panel,
body.studio-home .contact-panel,
body.studio-home .contact-form {
    position: relative;
    overflow: hidden;
    border-color: var(--studio-line);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.086), rgba(255, 255, 255, 0.024)),
        rgba(14, 16, 24, 0.62);
    box-shadow:
        0 34px 90px rgba(0, 0, 0, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(22px) saturate(1.12);
}

body.studio-home .content-card::before,
body.studio-home .feature-link-card::before,
body.studio-home .journey-card::before,
body.studio-home .platform-product-card::before,
body.studio-home .service-pill-card::before,
body.studio-home .ai-brief-form::before,
body.studio-home .ai-brief-panel::before,
body.studio-home .ai-brief-output::before,
body.studio-home .price-card::before,
body.studio-home .method-card::before,
body.studio-home .project-card::before,
body.studio-home .profile-panel::before,
body.studio-home .contact-panel::before,
body.studio-home .contact-form::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.16), transparent 24%, transparent 72%, rgba(239, 214, 163, 0.1)),
        radial-gradient(circle at 90% 10%, rgba(114, 150, 255, 0.08), transparent 12rem);
    pointer-events: none;
}

body.studio-home .content-card::after,
body.studio-home .feature-link-card::after,
body.studio-home .journey-card::after,
body.studio-home .platform-product-card::after,
body.studio-home .service-pill-card::after,
body.studio-home .price-card::after,
body.studio-home .method-card::after,
body.studio-home .project-card::after {
    content: "";
    position: absolute;
    right: -5rem;
    bottom: -5.5rem;
    width: 14rem;
    height: 14rem;
    border: 1px solid rgba(239, 214, 163, 0.08);
    border-radius: 50%;
    box-shadow:
        inset 0 0 0 1.8rem rgba(255, 255, 255, 0.018),
        0 0 44px rgba(239, 214, 163, 0.08);
    pointer-events: none;
}

body.studio-home .content-card > *,
body.studio-home .feature-link-card > *,
body.studio-home .journey-card > *,
body.studio-home .platform-product-card > *,
body.studio-home .service-pill-card > *,
body.studio-home .ai-brief-form > *,
body.studio-home .ai-brief-panel > *,
body.studio-home .ai-brief-output > *,
body.studio-home .price-card > *,
body.studio-home .method-card > *,
body.studio-home .project-card > *,
body.studio-home .profile-panel > *,
body.studio-home .contact-panel > *,
body.studio-home .contact-form > * {
    position: relative;
    z-index: 1;
}

body.studio-home .ai-brief-output {
    background:
        linear-gradient(145deg, rgba(8, 10, 18, 0.94), rgba(27, 31, 46, 0.92)),
        radial-gradient(circle at top right, rgba(239, 214, 163, 0.18), transparent 18rem);
}

body.studio-home[data-theme="day"] .ai-brief-output {
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(242, 236, 225, 0.94)),
        radial-gradient(circle at top right, rgba(213, 173, 98, 0.18), transparent 18rem);
    color: #171923;
    border-color: var(--studio-line);
}

body.studio-home[data-theme="day"] .ai-brief-output ul {
    color: rgba(42, 45, 58, 0.74);
}

body.studio-home[data-theme="day"] main {
    background:
        radial-gradient(circle at 16% 8%, rgba(114, 150, 255, 0.14), transparent 24rem),
        radial-gradient(circle at 88% 22%, rgba(213, 173, 98, 0.16), transparent 22rem);
}

body.studio-home[data-theme="day"] .content-card,
body.studio-home[data-theme="day"] .feature-link-card,
body.studio-home[data-theme="day"] .journey-card,
body.studio-home[data-theme="day"] .platform-product-card,
body.studio-home[data-theme="day"] .service-pill-card,
body.studio-home[data-theme="day"] .ai-brief-form,
body.studio-home[data-theme="day"] .ai-brief-panel,
body.studio-home[data-theme="day"] .ai-brief-output,
body.studio-home[data-theme="day"] .price-card,
body.studio-home[data-theme="day"] .method-card,
body.studio-home[data-theme="day"] .project-card,
body.studio-home[data-theme="day"] .profile-panel,
body.studio-home[data-theme="day"] .contact-panel,
body.studio-home[data-theme="day"] .contact-form {
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(255, 249, 239, 0.52)),
        var(--studio-panel);
}

body.studio-home[data-theme="day"] .page-pills span,
body.studio-home[data-theme="day"] .contact-brief-list span,
body.studio-home[data-theme="day"] .pack-offer-card {
    border-color: rgba(42, 45, 58, 0.1);
    background: rgba(255, 255, 255, 0.54);
    color: rgba(42, 45, 58, 0.72);
}

body.studio-home[data-theme="day"] .flow-panel {
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.76), rgba(255, 249, 239, 0.42)),
        var(--studio-panel);
}

body.studio-home[data-theme="day"] .flow-step {
    border-color: rgba(42, 45, 58, 0.1);
    background:
        radial-gradient(circle at 100% 0%, rgba(213, 173, 98, 0.14), transparent 11rem),
        rgba(255, 255, 255, 0.48);
}

body.studio-home .content-card:hover,
body.studio-home .feature-link-card:hover,
body.studio-home .journey-card:hover,
body.studio-home .journey-card:focus-visible,
body.studio-home .platform-product-card:hover,
body.studio-home .platform-product-card:focus-visible,
body.studio-home .service-pill-card:hover,
body.studio-home .service-pill-card:focus-visible {
    box-shadow:
        0 42px 110px rgba(0, 0, 0, 0.42),
        0 0 0 1px rgba(239, 214, 163, 0.12),
        0 0 52px rgba(114, 150, 255, 0.08);
}

body.studio-home .journey-card {
    cursor: pointer;
}

body.studio-home .journey-card:focus-visible {
    outline: 2px solid rgba(239, 214, 163, 0.72);
    outline-offset: 4px;
}

body.studio-home .signal-label,
body.studio-home .price-label,
body.studio-home .project-type {
    color: #efd6a3;
}

body.studio-home .feature-link-card span,
body.studio-home .method-card span {
    border: 1px solid rgba(239, 214, 163, 0.14);
    background: rgba(239, 214, 163, 0.12);
    color: #f3dfb4;
}

body.studio-home .field span {
    color: var(--studio-muted);
}

body.studio-home .field textarea,
body.studio-home .field input,
body.studio-home .field select {
    border-color: var(--studio-line);
    background: rgba(255, 255, 255, 0.055);
    color: var(--studio-text);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body.studio-home .field textarea::placeholder {
    color: rgba(247, 243, 234, 0.42);
}

body.studio-home .field textarea:focus,
body.studio-home .field input:focus,
body.studio-home .field select:focus {
    border-color: rgba(239, 214, 163, 0.46);
    box-shadow: 0 0 0 4px rgba(239, 214, 163, 0.08);
}

body.studio-home .ai-brief-form .button-primary,
body.studio-home .ai-brief-output .button-primary,
body.studio-home .contact-button {
    border-color: rgba(255, 255, 255, 0.16);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.035)),
        rgba(255, 255, 255, 0.045);
    color: var(--studio-text);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 16px 38px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(14px);
}

body.studio-home .ai-brief-form .button-primary:hover,
body.studio-home .ai-brief-form .button-primary:focus-visible,
body.studio-home .ai-brief-output .button-primary:hover,
body.studio-home .ai-brief-output .button-primary:focus-visible,
body.studio-home .contact-button:hover,
body.studio-home .contact-button:focus-visible {
    border-color: rgba(239, 214, 163, 0.34);
    background:
        linear-gradient(145deg, rgba(239, 214, 163, 0.16), rgba(255, 255, 255, 0.045)),
        rgba(255, 255, 255, 0.06);
    color: #fff8e8;
}

body.studio-home .quote-hints,
body.studio-home .quote-options {
    border-color: var(--studio-line);
    background: rgba(255, 255, 255, 0.04);
}

body.studio-home .quote-options legend,
body.studio-home .quote-hints p {
    color: var(--studio-text);
}

body.studio-home .quote-options label,
body.studio-home .quote-hints ul {
    color: var(--studio-muted);
}

body.studio-home[data-theme="day"] .field textarea,
body.studio-home[data-theme="day"] .field input,
body.studio-home[data-theme="day"] .field select {
    background: rgba(255, 255, 255, 0.76);
    color: #171923;
}

body.studio-home .page-header .page-intro h1 {
    color: rgba(248, 246, 238, 0.9);
    font-size: clamp(2.4rem, 5vw, 4.4rem);
}

body.studio-home[data-theme="day"] .page-header .page-intro h1 {
    color: #171923;
}

body.studio-home[data-theme="day"] .page-header ~ main .button-primary {
    border: 1px solid rgba(42, 45, 58, 0.13);
    background-color: rgba(255, 255, 255, 0.82);
    background-image: linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(255, 249, 239, 0.62));
    color: #171923;
    box-shadow: 0 16px 34px rgba(74, 65, 45, 0.1);
}

body.studio-home[data-theme="day"] .page-header ~ main .button-primary:hover,
body.studio-home[data-theme="day"] .page-header ~ main .button-primary:focus-visible {
    border-color: rgba(42, 45, 58, 0.2);
    background-color: rgba(255, 255, 255, 0.9);
    background-image: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(255, 249, 239, 0.72));
    color: #171923;
}

body.studio-home[data-theme="day"] .quote-hints,
body.studio-home[data-theme="day"] .quote-options {
    border-color: rgba(42, 45, 58, 0.1);
    background: rgba(255, 255, 255, 0.5);
}

body.studio-home[data-theme="day"] .field textarea::placeholder,
body.studio-home[data-theme="day"] .field input::placeholder {
    color: rgba(42, 45, 58, 0.42);
}

body.studio-home .site-footer {
    margin-top: 3rem;
    padding: 2rem 1.25rem 1.5rem;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent);
    box-shadow: none;
    backdrop-filter: blur(18px);
}

body.studio-home .section:first-child {
    padding-top: clamp(5rem, 9vw, 7rem);
}

.ai-brief-section {
    position: relative;
}

.generator-heading-minimal {
    max-width: 980px;
    margin-bottom: clamp(1rem, 2vw, 1.4rem);
}

.generator-heading-minimal h2 {
    font-size: clamp(2rem, 4.6vw, 4.4rem);
    line-height: 0.96;
}

.generator-heading-minimal .section-kicker {
    color: rgba(239, 214, 163, 0.72);
}

.journey-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.journey-card {
    display: grid;
    gap: 1rem;
    min-height: 330px;
    padding: clamp(1.35rem, 3vw, 2rem);
    border: 1px solid var(--line);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
}

.journey-card h3 {
    position: relative;
    padding-right: 2rem;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.journey-card h3::after {
    content: "";
    position: absolute;
    top: 0.14em;
    right: 0;
    width: 0.7rem;
    height: 0.7rem;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    opacity: 0.38;
    transform: rotate(45deg);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.journey-card:hover h3::after,
.journey-card:focus-visible h3::after {
    opacity: 0.86;
    transform: translate(0.16rem, -0.16rem) rotate(45deg);
}

.journey-card p,
.journey-card ul {
    color: var(--text-soft);
}

.journey-card ul {
    display: grid;
    gap: 0.5rem;
    margin: 0;
    padding-left: 1.1rem;
}

.journey-card-ai {
    background:
        radial-gradient(circle at 80% 10%, rgba(114, 150, 255, 0.18), transparent 18rem),
        var(--studio-panel);
}

.journey-card-human {
    background:
        radial-gradient(circle at 15% 85%, rgba(239, 214, 163, 0.22), transparent 18rem),
        var(--studio-panel);
}

.platform-tools-section {
    padding-top: clamp(5rem, 9vw, 7.5rem);
}

body.studio-home .platform-tools-section {
    padding-top: clamp(3rem, 6vw, 4.5rem);
}

body.studio-home .platform-tools-section .section-heading {
    max-width: 48rem;
}

body.studio-home .platform-tools-section .section-heading h2 {
    font-size: clamp(1.8rem, 3.2vw, 3.2rem);
}

body.studio-home .platform-tools-section .section-intro {
    font-size: 0.95rem;
}

.platform-product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(0.9rem, 1.5vw, 1.2rem);
}

.platform-product-card {
    display: grid;
    align-content: start;
    gap: 0.75rem;
    min-height: 12.6rem;
    padding: clamp(1.05rem, 2vw, 1.45rem);
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease, background 0.28s ease;
}

body.studio-home .platform-product-card {
    min-height: 8.8rem;
    padding: 0.95rem;
    border-radius: 16px;
}

.platform-product-card:hover,
.platform-product-card:focus-visible {
    transform: translateY(-7px) scale(1.01);
    border-color: rgba(239, 214, 163, 0.32);
    outline: none;
}

.platform-product-card.is-featured {
    border-color: rgba(239, 214, 163, 0.28);
    background:
        radial-gradient(circle at 82% 10%, rgba(239, 214, 163, 0.2), transparent 13rem),
        radial-gradient(circle at 10% 100%, rgba(114, 150, 255, 0.14), transparent 12rem),
        var(--studio-panel);
}

.product-icon {
    display: inline-grid;
    place-items: center;
    width: 3.05rem;
    height: 3.05rem;
    border: 1px solid rgba(239, 214, 163, 0.18);
    border-radius: 17px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.035)),
        rgba(239, 214, 163, 0.08);
    color: #f3dfb4;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

body.studio-home .product-icon {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 13px;
    font-size: 0.68rem;
}

.platform-product-card strong {
    color: var(--studio-text);
    font-size: clamp(1.15rem, 1.7vw, 1.42rem);
    line-height: 1.08;
    letter-spacing: 0;
}

body.studio-home .platform-product-card strong {
    font-size: clamp(0.98rem, 1.35vw, 1.15rem);
}

.platform-product-card p {
    color: var(--studio-muted);
    font-size: 0.92rem;
    line-height: 1.45;
}

body.studio-home .platform-product-card p {
    font-size: 0.8rem;
    line-height: 1.35;
}

.platform-flow-band {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.35rem;
    padding: 0.95rem 1.1rem;
    border: 1px solid rgba(239, 214, 163, 0.16);
    border-radius: 999px;
    background:
        linear-gradient(90deg, rgba(239, 214, 163, 0.12), rgba(114, 150, 255, 0.09)),
        rgba(255, 255, 255, 0.05);
    color: var(--studio-text);
    font-size: 0.9rem;
    font-weight: 850;
}

.platform-flow-band i {
    width: 1.8rem;
    height: 1px;
    background: linear-gradient(90deg, rgba(239, 214, 163, 0.12), rgba(239, 214, 163, 0.7));
}

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

.service-pill-card {
    display: grid;
    gap: 0.35rem;
    min-height: 7.2rem;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
}

.service-pill-card span {
    color: #efd6a3;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.service-pill-card strong {
    color: var(--studio-text);
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.12;
}

.ai-brief-panel {
    display: grid;
    grid-template-columns: minmax(280px, 0.42fr) minmax(0, 1fr);
    align-items: start;
    gap: clamp(1rem, 2vw, 1.35rem);
    padding: clamp(1rem, 2.5vw, 1.6rem);
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 34px;
    background:
        radial-gradient(circle at 82% 18%, rgba(114, 150, 255, 0.14), transparent 24rem),
        rgba(14, 16, 24, 0.5);
    box-shadow: var(--studio-shadow);
}

.ai-brief-panel.has-proposal {
    grid-template-columns: minmax(250px, 0.26fr) minmax(0, 1fr);
}

.creator-focus-section .section-heading {
    max-width: 62rem;
}

.creator-studio {
    grid-template-columns: minmax(270px, 0.3fr) minmax(0, 1fr);
}

.ai-brief-form {
    display: grid;
    gap: 1rem;
    padding: clamp(1.15rem, 2vw, 1.55rem);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 26px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
}

.creator-prompt-console {
    align-self: stretch;
    align-content: start;
    border-color: rgba(239, 214, 163, 0.12);
    background:
        radial-gradient(circle at 18% 8%, rgba(239, 214, 163, 0.12), transparent 16rem),
        linear-gradient(155deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.025));
}

.creator-prompt-console .field-message textarea {
    min-height: 13rem;
    border-radius: 24px;
    border-color: rgba(255, 255, 255, 0.12);
    background:
        linear-gradient(145deg, rgba(5, 7, 13, 0.52), rgba(27, 31, 46, 0.5)),
        rgba(255, 255, 255, 0.045);
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    line-height: 1.55;
}

.creator-prompt-console .button-primary {
    min-height: 3.45rem;
    justify-content: center;
    border-radius: 999px;
    font-size: 1rem;
}

.creator-prompt-console .advisor-composer-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.62rem;
}

.creator-prompt-console .advisor-composer-actions .button-secondary {
    min-height: 3.45rem;
    justify-content: center;
    border-radius: 999px;
}

.creator-output-note {
    margin: 0;
    color: rgba(248, 246, 238, 0.62);
    font-size: 0.82rem;
    line-height: 1.45;
}

.kirby-pilot-panel {
    display: grid;
    grid-template-columns: minmax(12rem, 0.46fr) minmax(0, 1fr);
    gap: 0.9rem 1.15rem;
    align-items: center;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(239, 214, 163, 0.2);
    border-radius: 18px;
    background:
        radial-gradient(circle at top right, rgba(167, 139, 250, 0.18), transparent 16rem),
        rgba(255, 255, 255, 0.055);
}

.kirby-pilot-panel strong {
    color: #f8f6ee;
    font-size: 1rem;
}

.kirby-pilot-panel ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.38rem 0.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.kirby-pilot-panel li {
    color: rgba(248, 246, 238, 0.76);
    font-size: 0.8rem;
    line-height: 1.35;
}

.kirby-pilot-panel li::before {
    content: "✓";
    margin-right: 0.42rem;
    color: #efd6a3;
    font-weight: 900;
}

.kirby-pilot-actions {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.kirby-pilot-actions .button {
    min-height: 2.5rem;
    font-size: 0.84rem;
}

@media (max-width: 680px) {
    .creator-prompt-console .advisor-composer-actions,
    .kirby-pilot-panel,
    .kirby-pilot-panel ul {
        grid-template-columns: 1fr;
    }

    .kirby-pilot-actions {
        grid-column: auto;
    }

    .kirby-pilot-actions .button {
        width: 100%;
    }
}

.creator-form-head {
    display: grid;
    gap: 0.4rem;
}

.creator-form-head h3 {
    font-size: clamp(1.25rem, 1.7vw, 1.55rem);
    line-height: 1.08;
}

.creator-form-head p:not(.signal-label) {
    color: var(--studio-muted);
    font-size: 0.9rem;
    line-height: 1.42;
}

.copilot-status-strip,
.copilot-guardrails {
    display: grid;
    gap: 0.5rem;
}

.copilot-status-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.copilot-status-strip span,
.copilot-guardrails span {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 2.3rem;
    padding: 0.52rem 0.68rem;
    border: 1px solid rgba(239, 214, 163, 0.13);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.045);
    color: rgba(248, 246, 238, 0.78);
    font-size: 0.78rem;
    font-weight: 850;
    line-height: 1.25;
}

.copilot-status-strip span::before,
.copilot-guardrails span::before {
    content: "";
    flex: 0 0 auto;
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 999px;
    background: #efd6a3;
    box-shadow: 0 0 0 0.28rem rgba(239, 214, 163, 0.1);
}

.copilot-guardrails {
    grid-template-columns: 1fr;
}

.copilot-guardrails span {
    min-height: 2.05rem;
    border-radius: 12px;
    color: rgba(248, 246, 238, 0.64);
    font-size: 0.76rem;
}

.creator-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.project-option-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
    margin: 0;
    padding: 0;
    border: 0;
}

.creator-options-compact,
.project-option-grid {
    opacity: 0.72;
}

.creator-options-compact:focus-within,
.project-option-grid:focus-within,
.creator-options-compact:hover,
.project-option-grid:hover {
    opacity: 1;
}

.project-option-grid legend {
    grid-column: 1 / -1;
    margin-bottom: 0.15rem;
    color: var(--studio-muted);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.project-option-grid label {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 2.45rem;
    padding: 0.55rem 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--studio-text);
    font-size: 0.86rem;
    font-weight: 800;
}

.project-option-grid input {
    accent-color: #efd6a3;
}

.kirby-examples {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.kirby-examples button {
    min-height: 2.35rem;
    padding: 0.55rem 0.8rem;
    border: 1px solid rgba(239, 214, 163, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.055);
    color: var(--studio-text);
    font: inherit;
    font-size: 0.86rem;
    font-weight: 800;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.kirby-examples button:hover,
.kirby-examples button:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(239, 214, 163, 0.35);
    background: rgba(239, 214, 163, 0.1);
    outline: none;
}

.ai-brief-output {
    display: grid;
    align-content: start;
    gap: 1rem;
    min-height: 100%;
    padding: clamp(0.85rem, 1.8vw, 1.2rem);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 26px;
    background:
        linear-gradient(145deg, rgba(8, 10, 18, 0.94), rgba(27, 31, 46, 0.92)),
        radial-gradient(circle at top right, rgba(239, 214, 163, 0.18), transparent 18rem);
    color: #f8f6ee;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.starter-preview {
    display: grid;
    grid-template-columns: minmax(0, 0.86fr) minmax(280px, 1fr);
    gap: 1rem;
    align-items: stretch;
}

.starter-preview-empty {
    grid-template-columns: 1fr;
    min-height: 330px;
    place-items: center;
    text-align: center;
}

.starter-preview-copy {
    display: grid;
    align-content: center;
    gap: 0.65rem;
}

.starter-preview-copy p:not(.signal-label) {
    color: rgba(248, 246, 238, 0.75);
    font-size: 0.96rem;
    line-height: 1.45;
}

.copilot-empty-state {
    grid-template-columns: minmax(0, 0.88fr) minmax(220px, 0.72fr);
    align-items: center;
    place-items: stretch;
    min-height: 360px;
    text-align: left;
}

.copilot-empty-grid {
    display: grid;
    gap: 0.75rem;
}

.copilot-dialog {
    display: grid;
    gap: 0.35rem;
    padding: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.055);
}

.copilot-dialog span {
    color: #efd6a3;
    font-size: 0.72rem;
    font-weight: 950;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.copilot-dialog strong {
    color: rgba(248, 246, 238, 0.9);
    font-size: 0.98rem;
    line-height: 1.25;
}

.copilot-dialog.is-ai {
    margin-left: 1.35rem;
    border-color: rgba(114, 150, 255, 0.18);
    background: rgba(114, 150, 255, 0.09);
}

.copilot-flow {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.5rem;
}

.copilot-flow i {
    min-height: 4.6rem;
    border: 1px solid rgba(239, 214, 163, 0.1);
    border-radius: 16px;
    background:
        linear-gradient(180deg, rgba(239, 214, 163, 0.2), rgba(114, 150, 255, 0.12)),
        rgba(255, 255, 255, 0.045);
}

.preview-mini-site {
    display: grid;
    gap: 0.72rem;
    min-height: 330px;
    padding: 0.85rem;
    border: 1px solid rgba(239, 214, 163, 0.16);
    border-radius: 22px;
    background:
        radial-gradient(circle at 84% 10%, rgba(239, 214, 163, 0.18), transparent 12rem),
        linear-gradient(150deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 22px 60px rgba(0, 0, 0, 0.22);
    overflow: hidden;
}

.preview-mini-topbar,
.preview-mini-grid,
.preview-mini-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.42rem;
}

.preview-mini-topbar {
    align-items: center;
}

.preview-mini-topbar span {
    margin-right: auto;
    color: #f8f6ee;
    font-size: 0.86rem;
    font-weight: 900;
}

.preview-mini-topbar i,
.preview-mini-grid span,
.preview-mini-options span {
    display: inline-flex;
    align-items: center;
    min-height: 1.85rem;
    padding: 0.35rem 0.55rem;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.055);
    color: rgba(248, 246, 238, 0.74);
    font-size: 0.72rem;
    font-style: normal;
    font-weight: 800;
}

.preview-mini-hero {
    display: grid;
    align-content: center;
    gap: 0.65rem;
    min-height: 165px;
    padding: clamp(1rem, 2vw, 1.25rem);
    border-radius: 18px;
    background:
        radial-gradient(circle at 92% 0%, rgba(114, 150, 255, 0.18), transparent 12rem),
        rgba(255, 255, 255, 0.06);
}

.preview-mini-hero strong {
    max-width: 10ch;
    color: #f8f6ee;
    font-size: clamp(1.65rem, 4vw, 2.55rem);
    line-height: 0.98;
    letter-spacing: 0;
}

.preview-mini-hero p {
    margin: 0;
    color: rgba(248, 246, 238, 0.72);
    font-size: 0.9rem;
    line-height: 1.4;
}

.preview-mini-hero em {
    display: inline-flex;
    width: fit-content;
    min-height: 2.25rem;
    align-items: center;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: rgba(239, 214, 163, 0.14);
    color: #f3dfb4;
    font-size: 0.78rem;
    font-style: normal;
    font-weight: 900;
}

.preview-mini-grid span {
    flex: 1 1 5.8rem;
    justify-content: center;
    min-height: 3rem;
    border-radius: 14px;
    text-align: center;
}

.preview-mini-options {
    margin-top: auto;
}

.starter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.starter-chips span,
.kirby-model-chips span {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: 0.45rem 0.68rem;
    border: 1px solid rgba(239, 214, 163, 0.16);
    border-radius: 999px;
    background: rgba(239, 214, 163, 0.08);
    color: rgba(248, 246, 238, 0.86);
    font-size: 0.82rem;
    font-weight: 850;
}

.ai-brief-output h3 {
    font-size: clamp(1.25rem, 2.4vw, 1.8rem);
    line-height: 1.1;
}

.ai-brief-output h4 {
    font-size: 0.9rem;
    letter-spacing: 0;
}

.ai-brief-output ul {
    display: grid;
    gap: 0.65rem;
    margin: 0;
    padding-left: 1.1rem;
    color: rgba(248, 246, 238, 0.76);
}

.ai-brief-output .signal-label {
    color: #efd6a3;
}

.ai-brief-output.is-loading {
    min-height: 320px;
}

.kirby-generation-stage {
    position: relative;
    display: grid;
    place-items: center;
    min-height: clamp(380px, 48vw, 620px);
    overflow: hidden;
    border: 1px solid rgba(239, 214, 163, 0.12);
    border-radius: 28px;
    background:
        radial-gradient(circle at 74% 18%, rgba(114, 150, 255, 0.18), transparent 19rem),
        radial-gradient(circle at 12% 82%, rgba(239, 214, 163, 0.14), transparent 17rem),
        rgba(255, 255, 255, 0.04);
}

.kirby-generation-preview {
    position: absolute;
    inset: 1.15rem;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 0.9rem;
    padding: 1rem;
    border-radius: 22px;
    background:
        linear-gradient(135deg, rgba(248, 246, 238, 0.16), rgba(255, 255, 255, 0.035)),
        rgba(8, 10, 18, 0.58);
    filter: blur(4px);
    opacity: 0.54;
    transform: scale(1.02);
}

.kirby-generation-stage::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(3, 5, 10, 0.55);
}

.kirby-generation-topbar {
    display: flex;
    gap: 0.45rem;
}

.kirby-generation-topbar span {
    width: 0.62rem;
    height: 0.62rem;
    border-radius: 999px;
    background: rgba(239, 214, 163, 0.7);
}

.kirby-generation-hero {
    display: grid;
    align-content: center;
    gap: 0.8rem;
    min-height: 230px;
    padding: clamp(1rem, 3vw, 2rem);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.075);
}

.kirby-generation-hero i,
.kirby-generation-hero strong,
.kirby-generation-hero em,
.kirby-generation-grid span {
    display: block;
    border-radius: 999px;
    background: rgba(248, 246, 238, 0.42);
}

.kirby-generation-hero i {
    width: 22%;
    height: 0.7rem;
}

.kirby-generation-hero strong {
    width: min(70%, 34rem);
    height: clamp(2.1rem, 5vw, 4.6rem);
}

.kirby-generation-hero em {
    width: 38%;
    height: 1rem;
}

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

.kirby-generation-grid span {
    min-height: 6.4rem;
    border-radius: 18px;
    background: rgba(248, 246, 238, 0.24);
}

.kirby-generation-overlay {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    gap: 1rem;
    text-align: center;
}

.kirby-loader-ring {
    width: 5.8rem;
    aspect-ratio: 1;
    border: 0.55rem solid rgba(248, 246, 238, 0.25);
    border-top-color: #a78bfa;
    border-right-color: rgba(239, 214, 163, 0.85);
    border-radius: 999px;
    animation: kirby-spin 1s linear infinite;
}

.kirby-generation-overlay h3 {
    color: #c4a9ff;
    font-size: clamp(1.35rem, 3vw, 2.1rem);
}

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

.builder-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.builder-steps-compact {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-bottom: 0.85rem;
}

.builder-step {
    display: grid;
    gap: 0.35rem;
    min-height: 7rem;
    padding: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.045);
}

.builder-steps-compact .builder-step {
    display: inline-flex;
    align-items: center;
    min-height: 2.45rem;
    padding: 0.55rem 0.82rem;
    border-radius: 999px;
    color: var(--studio-text);
    font-size: 0.88rem;
    font-weight: 900;
}

.builder-step span {
    color: #efd6a3;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.builder-step strong {
    color: var(--studio-text);
    font-size: 1rem;
}

.builder-step p {
    color: var(--studio-muted);
    font-size: 0.88rem;
    line-height: 1.4;
}

.builder-step.is-active {
    border-color: rgba(239, 214, 163, 0.24);
    background: rgba(239, 214, 163, 0.07);
}

.site-wireframe,
.kirby-preview-browser {
    display: grid;
    gap: 0.85rem;
    padding: 1rem;
    border: 1px solid rgba(239, 214, 163, 0.12);
    border-radius: 20px;
    background:
        radial-gradient(circle at 78% 18%, rgba(114, 150, 255, 0.14), transparent 16rem),
        rgba(255, 255, 255, 0.05);
}

.wireframe-topbar,
.kirby-preview-chrome {
    display: flex;
    gap: 0.35rem;
}

.wireframe-topbar span,
.kirby-preview-chrome span {
    width: 0.56rem;
    height: 0.56rem;
    border-radius: 999px;
    background: rgba(239, 214, 163, 0.5);
}

.wireframe-hero {
    display: grid;
    gap: 0.65rem;
    padding: 1rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
}

.wireframe-hero span,
.wireframe-hero strong,
.wireframe-hero i,
.wireframe-grid span {
    display: block;
    border-radius: 999px;
    background: rgba(248, 246, 238, 0.24);
}

.starter-browser .wireframe-hero span,
.starter-browser .wireframe-hero strong,
.starter-browser .wireframe-hero i,
.starter-browser .wireframe-grid span {
    width: auto;
    height: auto;
    padding: 0.45rem 0.65rem;
    color: rgba(248, 246, 238, 0.84);
    font-style: normal;
    font-size: 0.78rem;
    font-weight: 850;
}

.starter-browser .wireframe-hero strong {
    border-radius: 14px;
    font-size: clamp(1.25rem, 2.2vw, 2rem);
    line-height: 1.05;
}

.wireframe-hero span {
    width: 28%;
    height: 0.55rem;
}

.wireframe-hero strong {
    width: 74%;
    height: 1.6rem;
}

.wireframe-hero i {
    width: 42%;
    height: 0.75rem;
}

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

.wireframe-grid span {
    min-height: 4.4rem;
    border-radius: 14px;
}

.starter-browser .wireframe-grid span {
    display: inline-grid;
    place-items: center;
    min-height: 3.4rem;
    border-radius: 14px;
    text-align: center;
}

.creator-output-list {
    padding-left: 0 !important;
    list-style: none;
}

.creator-output-list li {
    padding-left: 1.15rem;
    position: relative;
}

.creator-output-list li::before {
    content: "";
    position: absolute;
    top: 0.62em;
    left: 0;
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 999px;
    background: #efd6a3;
}

.kirby-proposal-head,
.kirby-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.kirby-builder-result {
    display: grid;
    gap: 1rem;
}

.kirby-editor-result {
    gap: 0.85rem;
}

.kirby-editor-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem;
    padding: 0.75rem 0.85rem;
    border: 1px solid rgba(239, 214, 163, 0.12);
    border-radius: 20px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.03)),
        rgba(8, 10, 18, 0.42);
}

.kirby-editor-bar h3 {
    margin-top: 0.12rem;
    color: #f8f6ee;
    font-size: clamp(1.25rem, 2vw, 1.75rem);
}

.kirby-editor-bar .button {
    width: fit-content;
    min-width: 7.5rem;
}

.kirby-editor-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.55rem;
}

.kirby-result-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.kirby-result-top .button {
    white-space: nowrap;
}

.kirby-proposal-head span,
.kirby-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: 0.45rem 0.7rem;
    border: 1px solid rgba(239, 214, 163, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(248, 246, 238, 0.84);
    font-size: 0.82rem;
    font-weight: 800;
}

.kirby-slogan {
    color: #f3dfb4;
    font-weight: 800;
}

.kirby-value {
    padding: 0.85rem 0.95rem;
    border: 1px solid rgba(239, 214, 163, 0.12);
    border-radius: 14px;
    background: rgba(239, 214, 163, 0.07);
    color: rgba(248, 246, 238, 0.84);
    font-weight: 700;
}

.kirby-site-preview {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.8fr);
    gap: 0.85rem;
}

.kirby-preview-browser {
    min-height: 360px;
}

.kirby-preview-nav,
.kirby-preview-actions,
.kirby-preview-blocks {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.kirby-preview-nav span,
.kirby-preview-actions span,
.kirby-preview-blocks span {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: 0.45rem 0.68rem;
    border: 1px solid rgba(16, 19, 29, 0.1);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    color: rgba(16, 19, 29, 0.72);
    font-size: 0.8rem;
    font-weight: 800;
}

.kirby-preview-main {
    display: grid;
    gap: 0.65rem;
    align-content: center;
    min-height: 190px;
    padding: clamp(1rem, 2.4vw, 1.5rem);
    border-radius: 18px;
    background:
        radial-gradient(circle at 100% 0%, rgba(239, 214, 163, 0.15), transparent 16rem),
        rgba(255, 255, 255, 0.055);
}

.kirby-preview-main h3 {
    max-width: 11ch;
    font-size: clamp(2rem, 5vw, 3.8rem);
    letter-spacing: 0;
}

.kirby-preview-main p:not(.signal-label):not(.kirby-slogan) {
    max-width: 48rem;
    color: rgba(248, 246, 238, 0.76);
}

.kirby-preview-actions span:first-child {
    border-color: rgba(26, 98, 204, 0.2);
    background: #0b63ce;
    color: #ffffff;
}

.kirby-preview-blocks span {
    flex: 1 1 9rem;
    min-height: 4.2rem;
    justify-content: center;
    border-radius: 16px;
    text-align: center;
}

.kirby-result-top-minimal {
    align-items: center;
}

.kirby-generated-website {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.9rem;
}

.kirby-live-browser {
    min-height: clamp(520px, 52vw, 760px);
    padding: clamp(0.85rem, 1.8vw, 1.25rem);
    border-radius: 28px;
    background: linear-gradient(145deg, #fbfbfd, #eef1f6);
    overflow: hidden;
}

.kirby-site-canvas {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 28px 90px rgba(0, 0, 0, 0.28);
}

.kirby-live-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.2rem 0.1rem 0.55rem;
}

.kirby-live-nav strong {
    color: #10131d;
    font-size: 0.96rem;
    font-weight: 950;
}

.kirby-live-nav div {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.35rem;
}

.kirby-live-nav span {
    color: rgba(16, 19, 29, 0.62);
    font-size: 0.76rem;
    font-weight: 850;
}

.kirby-live-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(210px, 0.42fr);
    align-items: stretch;
    gap: clamp(0.9rem, 2vw, 1.35rem);
    min-height: clamp(300px, 38vw, 430px);
    padding: clamp(1.2rem, 3vw, 2rem);
    border-radius: 25px;
    background: linear-gradient(120deg, #ffffff, #eef2f8);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 18px 52px rgba(21, 27, 42, 0.12);
    overflow: hidden;
}

.kirby-live-hero-copy {
    display: grid;
    align-content: center;
    gap: 0.75rem;
    position: relative;
    z-index: 1;
}

.kirby-live-hero h3 {
    max-width: 10ch;
    color: #10131d;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(2.7rem, 7vw, 5.8rem);
    line-height: 0.86;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

body.studio-home .section .kirby-live-hero h3 {
    color: #10131d;
}

.kirby-live-browser.is-tech .kirby-live-nav strong {
    color: #0b63ce;
}

.kirby-live-browser.is-tech .kirby-live-hero {
    min-height: clamp(320px, 36vw, 460px);
}

.kirby-live-browser.is-tech .kirby-live-hero h3 {
    max-width: 12ch;
    font-family: "Manrope", sans-serif;
    font-size: clamp(3rem, 6.4vw, 6rem);
    font-weight: 950;
    line-height: 0.92;
}

body.studio-home .section .kirby-live-browser.is-tech .kirby-live-hero h3 {
    color: #10131d;
}

.kirby-live-browser.is-tech .kirby-slogan {
    max-width: 34rem;
    font-size: clamp(1.05rem, 1.8vw, 1.5rem);
}

.kirby-live-browser.is-tech .kirby-hero-image {
    border-radius: 28px;
    box-shadow:
        inset 0 -7rem 8rem rgba(6, 11, 24, 0.18),
        0 18px 48px rgba(11, 99, 206, 0.12);
}

.kirby-live-browser.is-tech .kirby-live-sections article,
.kirby-live-browser.is-tech .kirby-live-summary {
    box-shadow: 0 14px 34px rgba(16, 28, 48, 0.08);
}

.kirby-live-browser.is-beauty {
    background:
        radial-gradient(circle at 15% 10%, rgba(222, 178, 162, 0.22), transparent 15rem),
        linear-gradient(145deg, #fff9f5, #f2e8df);
}

.kirby-live-browser.is-beauty .kirby-live-nav strong {
    color: #8d5f55;
}

.kirby-live-browser.is-beauty .kirby-live-nav span {
    color: rgba(117, 84, 76, 0.66);
}

.kirby-live-browser.is-beauty .signal-label {
    color: #c99a73;
}

.kirby-live-browser.is-beauty .kirby-live-hero {
    border-radius: 34px 34px 58px 34px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        0 22px 60px rgba(126, 84, 74, 0.13);
}

.kirby-live-browser.is-beauty .kirby-live-hero h3 {
    color: #241b1f;
    max-width: 11ch;
}

body.studio-home .section .kirby-live-browser.is-beauty .kirby-live-hero h3 {
    color: #241b1f;
}

.kirby-live-browser.is-beauty .kirby-slogan {
    color: #6e5960;
}

.kirby-live-browser.is-beauty .kirby-preview-actions span:first-child {
    border-color: rgba(190, 122, 106, 0.22);
    background: #bd7568;
    color: #fffaf6;
}

.kirby-live-browser.is-beauty .kirby-preview-actions span:nth-child(2) {
    border-color: rgba(141, 95, 85, 0.18);
    background: rgba(255, 255, 255, 0.82);
    color: #74564f;
}

.kirby-live-browser.is-beauty .kirby-hero-image {
    border-radius: 52% 48% 46% 54% / 40% 44% 56% 60%;
    box-shadow:
        inset 0 -6rem 7rem rgba(65, 44, 40, 0.2),
        0 22px 58px rgba(166, 116, 98, 0.18);
}

.kirby-live-browser.is-beauty .kirby-live-sections article,
.kirby-live-browser.is-beauty .kirby-live-summary {
    border-color: rgba(179, 126, 112, 0.12);
    background: rgba(255, 252, 248, 0.88);
    box-shadow: 0 14px 34px rgba(126, 84, 74, 0.08);
}

.kirby-live-browser.is-beauty .kirby-live-sections strong,
.kirby-live-browser.is-beauty .kirby-live-summary strong {
    color: #2b2023;
}

.kirby-live-browser.is-beauty .kirby-live-sections span {
    color: rgba(70, 52, 56, 0.62);
}

.kirby-live-browser.is-beauty .kirby-live-summary span {
    border-color: rgba(190, 122, 106, 0.16);
    background: rgba(226, 190, 178, 0.18);
    color: rgba(69, 50, 54, 0.76);
}

.kirby-live-browser.is-beauty .kirby-live-summary span::before {
    background: #bd7568;
}

.kirby-live-browser.is-beauty .kirby-live-gallery span {
    border-radius: 26px;
    box-shadow:
        inset 0 -4rem 5rem rgba(65, 44, 40, 0.12),
        0 14px 34px rgba(126, 84, 74, 0.1);
}

.kirby-live-browser.is-beauty .kirby-live-gallery span:nth-child(2) {
    border-radius: 42px 22px 42px 22px;
}

.kirby-live-browser.is-beauty .kirby-live-footer {
    color: rgba(112, 79, 72, 0.62);
}

.kirby-live-hero .kirby-slogan {
    max-width: 30rem;
    color: #2a2f3d;
    font-size: clamp(1rem, 1.6vw, 1.35rem);
    line-height: 1.28;
}

.kirby-hero-visual {
    position: relative;
    min-height: 100%;
    border-radius: 24px;
    background:
        radial-gradient(circle at 50% 35%, rgba(70, 88, 128, 0.18), transparent 0.6rem),
        radial-gradient(circle at 72% 58%, rgba(190, 153, 86, 0.24), transparent 0.7rem),
        linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(223, 228, 238, 0.82));
    border: 1px solid rgba(20, 25, 38, 0.1);
    overflow: hidden;
}

.kirby-hero-image {
    background-size: cover;
    background-position: center;
    box-shadow: inset 0 -6rem 7rem rgba(10, 12, 18, 0.24);
}

.kirby-hero-image::before,
.kirby-hero-image::after,
.kirby-hero-image span {
    display: none;
}

.kirby-hero-visual::before,
.kirby-hero-visual::after {
    content: "";
    position: absolute;
    border-radius: 999px 999px 2.6rem 2.6rem;
    border: 1px solid rgba(239, 214, 163, 0.18);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(220, 224, 234, 0.72)),
        rgba(239, 214, 163, 0.18);
}

.kirby-hero-visual::before {
    right: 12%;
    bottom: -10%;
    width: 42%;
    height: 80%;
}

.kirby-hero-visual::after {
    left: 12%;
    bottom: -15%;
    width: 34%;
    height: 64%;
    opacity: 0.72;
}

.kirby-hero-visual span {
    position: absolute;
    border-radius: 999px;
    background: rgba(178, 151, 99, 0.36);
}

.kirby-hero-visual span:nth-child(1) {
    inset: 12% auto auto 14%;
    width: 4.2rem;
    height: 4.2rem;
}

.kirby-hero-visual span:nth-child(2) {
    right: 15%;
    top: 17%;
    width: 1.1rem;
    height: 1.1rem;
}

.kirby-hero-visual span:nth-child(3) {
    right: 32%;
    bottom: 16%;
    width: 6rem;
    height: 0.18rem;
}

.kirby-live-sections {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
    margin-top: 0.7rem;
}

.kirby-live-summary {
    display: grid;
    gap: 0.65rem;
    margin-top: 0.7rem;
    padding: 0.9rem;
    border: 1px solid rgba(20, 25, 38, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.86);
}

.kirby-live-summary strong {
    color: #10131d;
    font-size: 0.98rem;
}

.kirby-live-summary div {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.kirby-live-summary span {
    display: inline-flex;
    align-items: center;
    min-height: 1.8rem;
    padding: 0.34rem 0.55rem;
    border: 1px solid rgba(11, 99, 206, 0.12);
    border-radius: 999px;
    background: rgba(11, 99, 206, 0.07);
    color: rgba(16, 19, 29, 0.72);
    font-size: 0.76rem;
    font-weight: 850;
}

.kirby-live-summary span::before {
    content: "";
    width: 0.42rem;
    height: 0.42rem;
    margin-right: 0.38rem;
    border-radius: 999px;
    background: #0b63ce;
}

.kirby-production-summary {
    display: grid;
    gap: 0.65rem;
    margin-top: 0.85rem;
    padding: 0.85rem 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background:
        radial-gradient(circle at 8% 12%, rgba(239, 214, 163, 0.08), transparent 12rem),
        rgba(255, 255, 255, 0.045);
}

.kirby-production-summary strong {
    color: rgba(248, 246, 238, 0.92);
    font-size: 0.95rem;
}

.kirby-production-summary div {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.kirby-production-summary span {
    display: inline-flex;
    align-items: center;
    min-height: 1.75rem;
    padding: 0.32rem 0.52rem;
    border: 1px solid rgba(239, 214, 163, 0.13);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.055);
    color: rgba(248, 246, 238, 0.7);
    font-size: 0.74rem;
    font-weight: 850;
}

body.studio-home[data-theme="day"] .kirby-production-summary {
    border-color: rgba(16, 19, 29, 0.08);
    background: rgba(255, 255, 255, 0.72);
}

body.studio-home[data-theme="day"] .kirby-production-summary strong {
    color: rgba(16, 19, 29, 0.86);
}

body.studio-home[data-theme="day"] .kirby-production-summary span {
    border-color: rgba(16, 19, 29, 0.1);
    background: rgba(16, 19, 29, 0.04);
    color: rgba(16, 19, 29, 0.66);
}

.kirby-live-gallery {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr 0.9fr;
    gap: 0.65rem;
    margin-top: 0.7rem;
}

.kirby-live-gallery span {
    min-height: 7.8rem;
    border-radius: 18px;
    background-size: cover;
    background-position: center;
    box-shadow: inset 0 -4rem 5rem rgba(10, 12, 18, 0.14);
}

.kirby-live-gallery span:nth-child(1) {
    background-image: url("https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=700&q=80");
}

.kirby-live-gallery span:nth-child(2) {
    background-image: url("https://images.unsplash.com/photo-1445205170230-053b83016050?auto=format&fit=crop&w=700&q=80");
}

.kirby-live-gallery span:nth-child(3) {
    background-image: url("https://images.unsplash.com/photo-1517248135467-4c7edcad34c4?auto=format&fit=crop&w=700&q=80");
}

.kirby-live-sections article {
    display: grid;
    align-content: end;
    gap: 0.35rem;
    min-height: 7.3rem;
    padding: 0.9rem;
    border: 1px solid rgba(20, 25, 38, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.78);
}

.kirby-live-sections strong {
    color: #10131d;
    font-size: 0.98rem;
}

.kirby-live-sections span {
    color: rgba(16, 19, 29, 0.58);
    font-size: 0.8rem;
    line-height: 1.35;
}

.kirby-live-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.7rem;
    margin-top: 0.8rem;
    padding: 0.8rem 0.1rem 0.15rem;
    color: rgba(16, 19, 29, 0.56);
    font-size: 0.78rem;
    font-weight: 850;
}

.kirby-live-browser.layout-cinematic-video {
    background: #090b12;
}

.kirby-live-browser.layout-cinematic-video .kirby-live-nav strong,
.kirby-live-browser.layout-cinematic-video .kirby-live-nav span,
.kirby-live-browser.layout-cinematic-video .kirby-live-footer {
    color: rgba(255, 255, 255, 0.82);
}

.kirby-live-video-hero {
    position: relative;
    display: grid;
    align-items: end;
    min-height: clamp(430px, 48vw, 650px);
    padding: clamp(1.25rem, 4vw, 3rem);
    border-radius: 28px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    box-shadow: inset 0 -18rem 18rem rgba(3, 5, 12, 0.64);
}

.kirby-live-video-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(100deg, rgba(4, 7, 16, 0.76), rgba(4, 7, 16, 0.1) 58%),
        radial-gradient(circle at 72% 20%, rgba(239, 214, 163, 0.2), transparent 18rem);
}

.kirby-video-copy {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 0.75rem;
    max-width: 44rem;
}

.kirby-video-copy h3,
.kirby-gallery-lead h3,
.kirby-asym-copy h3,
.kirby-warm-copy h3 {
    color: #ffffff;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(3rem, 7vw, 6.8rem);
    line-height: 0.88;
    letter-spacing: 0;
}

body.studio-home .section .kirby-video-copy h3,
body.studio-home .section .kirby-gallery-lead h3,
body.studio-home .section .kirby-asym-copy h3,
body.studio-home .section .kirby-warm-copy h3 {
    color: #ffffff;
}

.kirby-video-copy p:not(.signal-label),
.kirby-gallery-lead p:not(.signal-label),
.kirby-asym-copy p:not(.signal-label),
.kirby-warm-copy p:not(.signal-label) {
    max-width: 33rem;
    color: rgba(255, 255, 255, 0.78);
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    line-height: 1.35;
}

.kirby-play-mark {
    position: absolute;
    right: clamp(1.2rem, 4vw, 3rem);
    top: clamp(1.2rem, 4vw, 3rem);
    display: grid;
    place-items: center;
    width: clamp(4rem, 7vw, 6rem);
    aspect-ratio: 1;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
}

.kirby-play-mark::before {
    content: "";
    width: 0;
    height: 0;
    margin-left: 0.2rem;
    border-top: 0.58rem solid transparent;
    border-bottom: 0.58rem solid transparent;
    border-left: 0.86rem solid #ffffff;
}

.kirby-live-rail {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
    margin-top: 0.75rem;
}

.kirby-live-rail article {
    display: grid;
    gap: 0.35rem;
    min-height: 8rem;
    padding: 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
}

.kirby-live-rail em {
    color: rgba(239, 214, 163, 0.86);
    font-size: 0.7rem;
    font-style: normal;
    font-weight: 950;
    letter-spacing: 0.08em;
}

.kirby-live-rail strong {
    color: #ffffff;
}

.kirby-live-rail span {
    color: rgba(255, 255, 255, 0.64);
    font-size: 0.78rem;
    line-height: 1.35;
}

.kirby-gallery-focus {
    display: grid;
    grid-template-columns: minmax(240px, 0.62fr) minmax(0, 1fr);
    gap: clamp(0.85rem, 2vw, 1.2rem);
    align-items: stretch;
    min-height: clamp(390px, 42vw, 560px);
}

.kirby-gallery-lead {
    display: grid;
    align-content: end;
    gap: 0.75rem;
    padding: clamp(1rem, 3vw, 2rem);
    border-radius: 28px;
    background: linear-gradient(145deg, #10131d, #273142);
}

.kirby-gallery-mosaic {
    display: grid;
    grid-template-columns: 1fr 0.72fr;
    grid-template-rows: 1fr 1fr;
    gap: 0.65rem;
}

.kirby-gallery-mosaic span {
    border-radius: 24px;
    background-size: cover;
    background-position: center;
    box-shadow: inset 0 -6rem 7rem rgba(6, 8, 14, 0.22);
}

.kirby-gallery-mosaic span:first-child {
    grid-row: 1 / 3;
}

.kirby-minimal-editorial {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.36fr);
    gap: clamp(1rem, 4vw, 3rem);
    align-items: end;
    min-height: clamp(380px, 40vw, 560px);
    padding: clamp(1.2rem, 4vw, 3rem) 0.25rem;
    border-bottom: 1px solid rgba(16, 19, 29, 0.12);
}

.kirby-minimal-editorial > .signal-label {
    grid-column: 1 / -1;
    margin: 0;
}

.kirby-minimal-editorial h3 {
    max-width: 13ch;
    color: #10131d;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(3.6rem, 8vw, 7.4rem);
    line-height: 0.88;
}

body.studio-home .section .kirby-minimal-editorial h3 {
    color: #10131d;
}

.kirby-minimal-editorial div,
.kirby-minimal-list article {
    display: grid;
    gap: 0.55rem;
}

.kirby-minimal-editorial strong,
.kirby-minimal-list strong {
    color: #10131d;
}

.kirby-minimal-editorial p:not(.signal-label),
.kirby-minimal-list span {
    color: rgba(16, 19, 29, 0.62);
    line-height: 1.45;
}

.kirby-minimal-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 0.8rem;
}

.kirby-minimal-list article {
    min-height: 7.2rem;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(16, 19, 29, 0.12);
}

.kirby-asymmetric-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(220px, 0.6fr);
    grid-template-rows: auto auto;
    gap: 0.75rem;
    min-height: clamp(440px, 46vw, 650px);
}

.kirby-asym-copy {
    display: grid;
    align-content: end;
    gap: 0.75rem;
    min-height: 18rem;
    padding: clamp(1.1rem, 3vw, 2.2rem);
    border-radius: 28px;
    background:
        radial-gradient(circle at 10% 12%, rgba(239, 214, 163, 0.16), transparent 16rem),
        linear-gradient(145deg, #111520, #252b3a);
}

.kirby-asym-image {
    grid-row: span 2;
    min-height: 100%;
    border-radius: 28px;
    background-size: cover;
    background-position: center;
    box-shadow: inset 0 -8rem 9rem rgba(8, 10, 16, 0.3);
}

.kirby-asym-stack {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.kirby-asym-stack article {
    display: grid;
    align-content: end;
    gap: 0.4rem;
    min-height: 11rem;
    padding: 0.95rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 16px 40px rgba(16, 19, 29, 0.08);
}

.kirby-asym-stack strong {
    color: #10131d;
}

.kirby-asym-stack span {
    color: rgba(16, 19, 29, 0.6);
    font-size: 0.78rem;
    line-height: 1.35;
}

.kirby-warm-editorial {
    display: grid;
    grid-template-columns: minmax(230px, 0.48fr) minmax(0, 1fr);
    gap: clamp(0.9rem, 2.5vw, 1.5rem);
    align-items: stretch;
    min-height: clamp(400px, 42vw, 590px);
    padding: clamp(0.85rem, 2vw, 1.1rem);
    border-radius: 30px;
    background: linear-gradient(135deg, #2a1610, #7a3d22 58%, #d3a265);
}

.kirby-warm-image {
    border-radius: 24px;
    background-size: cover;
    background-position: center;
    box-shadow: inset 0 -8rem 8rem rgba(42, 22, 16, 0.28);
}

.kirby-warm-copy {
    display: grid;
    align-content: center;
    gap: 0.75rem;
    padding: clamp(1rem, 3vw, 2rem);
}

.kirby-live-services,
.kirby-live-contact {
    display: grid;
    gap: 0.75rem;
    padding: clamp(1rem, 2vw, 1.25rem);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03)),
        rgba(255, 255, 255, 0.035);
}

.kirby-live-section-title {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
}

.kirby-live-section-title span,
.kirby-live-contact-copy span {
    color: #efd6a3;
    font-size: 0.78rem;
    font-weight: 950;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.kirby-live-section-title strong,
.kirby-live-contact-copy strong {
    color: #f8f6ee;
    font-size: clamp(1.15rem, 2.4vw, 1.65rem);
}

.kirby-live-service-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.65rem;
}

.kirby-live-service-grid span {
    display: grid;
    min-height: 4.8rem;
    place-items: center;
    padding: 0.75rem;
    border: 1px solid rgba(239, 214, 163, 0.12);
    border-radius: 18px;
    background: rgba(239, 214, 163, 0.075);
    color: rgba(248, 246, 238, 0.86);
    font-size: 0.86rem;
    font-weight: 900;
    line-height: 1.2;
    text-align: center;
}

.kirby-live-contact {
    grid-template-columns: minmax(0, 0.9fr) minmax(260px, 1.1fr);
    align-items: stretch;
}

.kirby-live-contact-copy {
    display: grid;
    align-content: center;
    gap: 0.55rem;
}

.kirby-live-contact-copy p {
    color: rgba(248, 246, 238, 0.62);
    font-size: 0.9rem;
    font-weight: 850;
}

.kirby-map-preview {
    position: relative;
    min-height: 12rem;
    overflow: hidden;
    border-radius: 20px;
    background:
        linear-gradient(90deg, transparent 49%, rgba(255, 255, 255, 0.08) 50%, transparent 51%),
        linear-gradient(0deg, transparent 49%, rgba(255, 255, 255, 0.08) 50%, transparent 51%),
        radial-gradient(circle at 50% 48%, rgba(239, 214, 163, 0.28), transparent 0.6rem),
        rgba(255, 255, 255, 0.055);
    background-size: 4.5rem 4.5rem, 4.5rem 4.5rem, auto, auto;
}

.kirby-map-preview::before {
    content: "";
    position: absolute;
    inset: 18% 12%;
    border: 2px solid rgba(239, 214, 163, 0.24);
    border-right: 0;
    border-radius: 999px 0 0 999px;
    transform: rotate(-10deg);
}

.kirby-map-preview i {
    position: absolute;
    width: 0.78rem;
    height: 0.78rem;
    border-radius: 999px;
    background: #efd6a3;
    box-shadow: 0 0 0 0.4rem rgba(239, 214, 163, 0.14);
}

.kirby-map-preview i:nth-child(1) {
    left: 22%;
    top: 34%;
}

.kirby-map-preview i:nth-child(2) {
    right: 28%;
    top: 48%;
}

.kirby-map-preview i:nth-child(3) {
    left: 48%;
    bottom: 26%;
}

.kirby-map-preview span {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 2rem;
    height: 2rem;
    border-radius: 999px 999px 999px 0;
    background: #f8f6ee;
    transform: translate(-50%, -50%) rotate(-45deg);
}

.kirby-mini-lines,
.kirby-option-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.kirby-mini-lines span,
.kirby-option-pills span {
    display: inline-flex;
    width: fit-content;
    min-height: 1.8rem;
    align-items: center;
    padding: 0.34rem 0.55rem;
    border: 1px solid rgba(239, 214, 163, 0.13);
    border-radius: 999px;
    background: rgba(239, 214, 163, 0.075);
    color: rgba(248, 246, 238, 0.76);
    font-size: 0.76rem;
    font-weight: 850;
}

.kirby-seo-pills span {
    border-color: rgba(114, 150, 255, 0.16);
    background: rgba(114, 150, 255, 0.08);
}

.kirby-style-note {
    margin: 0;
    color: rgba(248, 246, 238, 0.58);
    font-size: 0.84rem;
    line-height: 1.35;
}

.kirby-site-brief,
.kirby-blueprint-grid section,
.kirby-detail-grid section {
    display: grid;
    gap: 0.55rem;
    padding: 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.045);
}

.kirby-model-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.kirby-site-brief p,
.kirby-site-brief li,
.kirby-detail-grid li {
    color: rgba(248, 246, 238, 0.72);
    font-size: 0.88rem;
    line-height: 1.45;
}

.kirby-site-brief ul,
.kirby-detail-grid ul {
    padding-left: 0;
    list-style: none;
}

.kirby-style-ribbon {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.kirby-style-ribbon span {
    display: inline-flex;
    align-items: center;
    min-height: 2.15rem;
    padding: 0.48rem 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.045);
    color: rgba(248, 246, 238, 0.78);
    font-size: 0.82rem;
    font-weight: 800;
}

.kirby-blueprint-grid,
.kirby-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.kirby-blueprint-grid ul {
    display: grid;
    gap: 0.65rem;
    margin: 0;
    padding-left: 0;
    list-style: none;
}

.kirby-blueprint-grid li,
.kirby-detail-grid li {
    display: grid;
    gap: 0.2rem;
}

.kirby-blueprint-grid strong,
.kirby-detail-grid strong {
    color: #f8f6ee;
    font-size: 0.92rem;
}

.kirby-blueprint-grid span,
.kirby-detail-grid span {
    color: rgba(248, 246, 238, 0.72);
    font-size: 0.88rem;
    line-height: 1.45;
}

.kirby-detail-block {
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.035);
}

.kirby-detail-block summary {
    cursor: pointer;
    padding: 0.95rem;
    color: #f8f6ee;
    font-weight: 900;
}

.kirby-detail-block[open] summary {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.kirby-detail-grid {
    padding: 0.95rem;
}

.kirby-positioning {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
}

.kirby-positioning section {
    display: grid;
    gap: 0.35rem;
    padding: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
}

.kirby-positioning p {
    color: rgba(248, 246, 238, 0.72);
    font-size: 0.88rem;
    line-height: 1.45;
}

.kirby-result-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.kirby-result-grid section,
.kirby-explanation {
    display: grid;
    gap: 0.55rem;
    padding: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.045);
}

.kirby-result-grid ul,
.kirby-explanation ul {
    padding-left: 0;
    list-style: none;
}

.kirby-result-grid li {
    display: grid;
    gap: 0.2rem;
}

.kirby-result-grid strong {
    color: #f8f6ee;
    font-size: 0.92rem;
}

.kirby-result-grid span {
    color: rgba(248, 246, 238, 0.72);
    font-size: 0.88rem;
    line-height: 1.45;
}

.kirby-tags-seo span {
    border-color: rgba(114, 150, 255, 0.18);
    color: rgba(223, 230, 255, 0.9);
}

.kirby-revision-form {
    display: grid;
    gap: 0.75rem;
    margin-top: 0.2rem;
    padding: 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
}

.kirby-generated-clean {
    display: grid;
    gap: clamp(0.9rem, 1.8vw, 1.2rem);
}

.kirby-generated-clean .kirby-generated-website {
    display: grid;
}

.kirby-generated-clean .kirby-revision-form {
    margin-top: 0;
}

.kirby-generated-actions {
    display: flex;
    align-items: end;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.kirby-generated-actions .button {
    width: fit-content;
    min-width: 9.8rem;
    justify-content: center;
}

.kirby-revision-compact {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    margin-top: 0;
    padding: 0.75rem;
}

.kirby-revision-compact textarea {
    min-height: 4rem;
}

.kirby-revision-form .button {
    width: fit-content;
}

.kirby-copy-link {
    grid-column: 1 / -1;
    width: fit-content;
    padding: 0;
    border: 0;
    background: transparent;
    color: rgba(248, 246, 238, 0.56);
    cursor: pointer;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 850;
    text-decoration: underline;
    text-underline-offset: 0.24em;
}

.kirby-copy-link:hover,
.kirby-copy-link:focus-visible {
    color: #efd6a3;
}

.kirby-revision-history {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
}

.kirby-revision-history span {
    display: inline-flex;
    max-width: 100%;
    min-height: 1.85rem;
    align-items: center;
    padding: 0.35rem 0.55rem;
    border: 1px solid rgba(239, 214, 163, 0.13);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.045);
    color: rgba(248, 246, 238, 0.76);
    font-size: 0.76rem;
    font-weight: 850;
}

.kirby-next-step {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 0.85rem;
    border: 1px solid rgba(239, 214, 163, 0.14);
    border-radius: 18px;
    background:
        radial-gradient(circle at 88% 12%, rgba(239, 214, 163, 0.12), transparent 14rem),
        rgba(255, 255, 255, 0.045);
}

.kirby-next-step h4 {
    color: #f8f6ee;
    font-size: 1rem;
}

.kirby-next-step p:not(.signal-label) {
    color: rgba(248, 246, 238, 0.72);
    font-size: 0.9rem;
}

.kirby-next-step .button {
    width: fit-content;
}

.kirby-copilot-shell {
    display: grid;
    gap: 1rem;
}

.kirby-copilot-steps {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.55rem;
}

.kirby-copilot-step {
    display: grid;
    gap: 0.26rem;
    min-height: 5.45rem;
    padding: 0.72rem;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.04);
}

.kirby-copilot-step span {
    display: inline-grid;
    place-items: center;
    width: 1.45rem;
    height: 1.45rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(248, 246, 238, 0.8);
    font-size: 0.72rem;
    font-weight: 950;
}

.kirby-copilot-step strong {
    color: rgba(248, 246, 238, 0.9);
    font-size: 0.82rem;
    line-height: 1.1;
}

.kirby-copilot-step p {
    color: rgba(248, 246, 238, 0.54);
    font-size: 0.72rem;
    line-height: 1.25;
}

.kirby-copilot-step.is-done span {
    background: rgba(78, 216, 154, 0.18);
    color: #7bf0bd;
}

.kirby-copilot-step.is-active {
    border-color: rgba(239, 214, 163, 0.26);
    background: rgba(239, 214, 163, 0.075);
}

.kirby-copilot-step.is-active span {
    background: #efd6a3;
    color: #171923;
}

.kirby-copilot-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.36fr);
    gap: 0.85rem;
    align-items: stretch;
    padding: 0.9rem;
    border: 1px solid rgba(239, 214, 163, 0.12);
    border-radius: 20px;
    background:
        radial-gradient(circle at 92% 10%, rgba(239, 214, 163, 0.1), transparent 13rem),
        rgba(255, 255, 255, 0.045);
}

.kirby-copilot-head h3 {
    margin-top: 0.12rem;
    color: #f8f6ee;
    font-size: clamp(1.35rem, 2.5vw, 2rem);
    line-height: 1.05;
}

.kirby-copilot-head p:not(.signal-label),
.kirby-copilot-state p,
.kirby-validation-card p {
    color: rgba(248, 246, 238, 0.68);
    font-size: 0.88rem;
    line-height: 1.42;
}

.kirby-copilot-state {
    display: grid;
    align-content: center;
    gap: 0.32rem;
    padding: 0.8rem;
    border: 1px solid rgba(239, 214, 163, 0.15);
    border-radius: 16px;
    background: rgba(239, 214, 163, 0.07);
}

.kirby-copilot-state span,
.kirby-control-badge {
    color: #efd6a3;
    font-size: 0.72rem;
    font-weight: 950;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.kirby-copilot-state strong {
    color: #f8f6ee;
    font-size: 1rem;
}

.kirby-control-badge {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: 0.36rem 0.62rem;
    border: 1px solid rgba(239, 214, 163, 0.15);
    border-radius: 999px;
    background: rgba(239, 214, 163, 0.08);
    white-space: nowrap;
}

.kirby-copilot-control-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.kirby-copilot-panel {
    display: grid;
    gap: 0.65rem;
    min-width: 0;
    padding: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.045);
}

.kirby-copilot-panel ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.kirby-action-log li,
.kirby-validation-reasons li {
    position: relative;
    padding-left: 1.1rem;
    color: rgba(248, 246, 238, 0.72);
    font-size: 0.86rem;
    line-height: 1.42;
}

.kirby-action-log li::before,
.kirby-validation-reasons li::before {
    content: "";
    position: absolute;
    top: 0.58em;
    left: 0;
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 999px;
    background: #efd6a3;
}

.kirby-blueprint-review li {
    display: grid;
    gap: 0.22rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.kirby-blueprint-review li:last-child {
    border-bottom: 0;
}

.kirby-blueprint-review strong,
.kirby-validation-card h4 {
    color: #f8f6ee;
    font-size: 0.95rem;
}

.kirby-blueprint-review span {
    color: rgba(248, 246, 238, 0.62);
    font-size: 0.8rem;
    line-height: 1.35;
}

.kirby-settings-review div {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.kirby-settings-review span {
    display: inline-flex;
    max-width: 100%;
    min-height: 1.9rem;
    align-items: center;
    padding: 0.36rem 0.55rem;
    border: 1px solid rgba(114, 150, 255, 0.15);
    border-radius: 999px;
    background: rgba(114, 150, 255, 0.08);
    color: rgba(226, 233, 255, 0.82);
    font-size: 0.74rem;
    font-weight: 850;
}

.kirby-validation-card {
    grid-column: 1 / -1;
}

.kirby-validation-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.kirby-validation-card.is-validated {
    border-color: rgba(78, 216, 154, 0.28);
    background:
        radial-gradient(circle at 90% 12%, rgba(78, 216, 154, 0.12), transparent 13rem),
        rgba(255, 255, 255, 0.045);
}

.kirby-validation-card.is-validated .kirby-validation-actions {
    opacity: 0.72;
}

.kirby-next-step-locked {
    opacity: 0.62;
}

.kirby-next-step-locked .button.is-disabled,
.button.is-disabled {
    pointer-events: none;
    opacity: 0.48;
    filter: grayscale(0.45);
}

.kirby-next-step.is-unlocked {
    border-color: rgba(78, 216, 154, 0.28);
    background:
        radial-gradient(circle at 88% 12%, rgba(78, 216, 154, 0.12), transparent 14rem),
        rgba(255, 255, 255, 0.045);
}

body.studio-home .copilot-workspace.ai-brief-panel {
    gap: clamp(0.9rem, 1.8vw, 1.25rem);
    padding: clamp(0.85rem, 2.2vw, 1.35rem);
    border-color: rgba(209, 222, 255, 0.2);
    background:
        linear-gradient(130deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.022) 44%, rgba(114, 150, 255, 0.055)),
        radial-gradient(ellipse at 72% 2%, rgba(114, 150, 255, 0.16), transparent 28rem),
        radial-gradient(ellipse at 8% 88%, rgba(239, 214, 163, 0.11), transparent 22rem),
        rgba(3, 6, 18, 0.28);
    box-shadow:
        0 34px 120px rgba(0, 0, 0, 0.42),
        0 0 0 1px rgba(255, 255, 255, 0.035),
        inset 0 1px 0 rgba(255, 255, 255, 0.13);
    backdrop-filter: blur(30px) saturate(1.24);
}

body.studio-home .copilot-workspace.ai-brief-panel::before {
    background:
        linear-gradient(115deg, rgba(255, 255, 255, 0.18), transparent 18%, transparent 72%, rgba(114, 150, 255, 0.12)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 38%);
    opacity: 0.92;
}

body.studio-home .copilot-workspace.ai-brief-panel::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    pointer-events: none;
    background:
        linear-gradient(90deg, transparent, rgba(239, 214, 163, 0.12), transparent),
        linear-gradient(180deg, rgba(114, 150, 255, 0.08), transparent 28%, transparent 72%, rgba(239, 214, 163, 0.07));
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    padding: 1px;
}

body.studio-home .copilot-workspace .creator-prompt-console,
body.studio-home .copilot-workspace .ai-brief-output {
    border-color: rgba(212, 224, 255, 0.16);
    background:
        linear-gradient(150deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.018)),
        rgba(6, 10, 26, 0.24);
    box-shadow:
        0 20px 70px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(26px) saturate(1.2);
}

body.studio-home .copilot-workspace .creator-prompt-console {
    align-self: stretch;
}

body.studio-home .copilot-workspace .creator-prompt-console .field-message textarea {
    border-color: rgba(213, 228, 255, 0.16);
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
        rgba(2, 6, 18, 0.3);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.07),
        0 16px 42px rgba(0, 0, 0, 0.16);
}

body.studio-home .copilot-workspace .copilot-status-strip span,
body.studio-home .copilot-workspace .copilot-guardrails span,
body.studio-home .copilot-workspace .kirby-examples button,
body.studio-home .copilot-workspace .project-option-grid label {
    border-color: rgba(213, 228, 255, 0.13);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025)),
        rgba(255, 255, 255, 0.025);
}

body.studio-home .copilot-workspace .button-primary {
    border-color: rgba(239, 214, 163, 0.42);
    background:
        linear-gradient(135deg, rgba(255, 234, 190, 0.2), rgba(114, 150, 255, 0.13)),
        rgba(255, 255, 255, 0.065);
    color: #fff8e8;
    box-shadow:
        0 14px 42px rgba(0, 0, 0, 0.2),
        0 0 34px rgba(239, 214, 163, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

body.studio-home .copilot-workspace .button-secondary {
    border-color: rgba(213, 228, 255, 0.14);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(248, 246, 238, 0.86);
}

body.studio-home .copilot-workspace .ai-brief-output {
    padding: clamp(0.8rem, 1.8vw, 1.15rem);
    background:
        linear-gradient(145deg, rgba(8, 13, 32, 0.34), rgba(13, 18, 38, 0.18)),
        radial-gradient(ellipse at 80% 6%, rgba(114, 150, 255, 0.14), transparent 22rem),
        rgba(3, 6, 18, 0.2);
}

body.studio-home .copilot-workspace .kirby-copilot-shell {
    gap: clamp(0.85rem, 1.8vw, 1.2rem);
}

body.studio-home .copilot-workspace .kirby-copilot-steps {
    gap: 0.45rem;
}

body.studio-home .copilot-workspace .kirby-copilot-step,
body.studio-home .copilot-workspace .kirby-copilot-head,
body.studio-home .copilot-workspace .kirby-copilot-state,
body.studio-home .copilot-workspace .kirby-copilot-panel,
body.studio-home .copilot-workspace .kirby-editor-bar,
body.studio-home .copilot-workspace .kirby-production-summary,
body.studio-home .copilot-workspace .kirby-revision-form,
body.studio-home .copilot-workspace .kirby-next-step {
    border-color: rgba(213, 228, 255, 0.13);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.018)),
        rgba(255, 255, 255, 0.026);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 16px 42px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(20px) saturate(1.12);
}

body.studio-home .copilot-workspace .kirby-copilot-step {
    min-height: 5.05rem;
}

body.studio-home .copilot-workspace .kirby-copilot-step.is-active {
    border-color: rgba(239, 214, 163, 0.34);
    background:
        linear-gradient(145deg, rgba(239, 214, 163, 0.13), rgba(114, 150, 255, 0.05)),
        rgba(255, 255, 255, 0.035);
    box-shadow:
        0 14px 42px rgba(0, 0, 0, 0.22),
        0 0 28px rgba(239, 214, 163, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

body.studio-home .copilot-workspace .kirby-copilot-head {
    align-items: center;
    padding: clamp(0.9rem, 1.8vw, 1.15rem);
}

body.studio-home .copilot-workspace .kirby-copilot-head h3,
body.studio-home .copilot-workspace .kirby-editor-bar h3 {
    text-shadow: 0 16px 45px rgba(0, 0, 0, 0.42);
}

body.studio-home .copilot-workspace .kirby-preview-browser {
    border-color: rgba(213, 228, 255, 0.16);
    background-color: rgba(251, 251, 253, 0.96);
    box-shadow:
        0 34px 110px rgba(0, 0, 0, 0.36),
        0 0 0 1px rgba(255, 255, 255, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);
    transform: translateZ(0);
}

body.studio-home .copilot-workspace .kirby-live-browser:not(.is-dashboard) {
    min-height: clamp(560px, 54vw, 790px);
}

body.studio-home .copilot-workspace .kirby-live-hero {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.92),
        0 22px 70px rgba(21, 27, 42, 0.14);
}

body.studio-home .copilot-workspace .kirby-hero-image {
    box-shadow:
        inset 0 -7rem 8rem rgba(6, 11, 24, 0.24),
        0 22px 58px rgba(11, 99, 206, 0.13);
}

body.studio-home .copilot-workspace .kirby-live-sections article,
body.studio-home .copilot-workspace .kirby-live-summary {
    border-color: rgba(20, 25, 38, 0.07);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

body.studio-home .copilot-workspace .kirby-copilot-panel {
    align-content: start;
}

body.studio-home .copilot-workspace .kirby-validation-card {
    border-color: rgba(239, 214, 163, 0.2);
    background:
        linear-gradient(145deg, rgba(239, 214, 163, 0.08), rgba(114, 150, 255, 0.035)),
        rgba(255, 255, 255, 0.03);
}

body.studio-home .copilot-workspace .kirby-validation-card.is-validated,
body.studio-home .copilot-workspace .kirby-next-step.is-unlocked {
    border-color: rgba(78, 216, 154, 0.28);
    background:
        linear-gradient(145deg, rgba(78, 216, 154, 0.11), rgba(114, 150, 255, 0.035)),
        rgba(255, 255, 255, 0.032);
}

body.studio-home .copilot-workspace .kirby-control-badge,
body.studio-home .copilot-workspace .kirby-settings-review span,
body.studio-home .copilot-workspace .kirby-production-summary span,
body.studio-home .copilot-workspace .kirby-revision-history span {
    border-color: rgba(213, 228, 255, 0.14);
    background: rgba(255, 255, 255, 0.045);
}

body.studio-home .copilot-workspace.ai-brief-panel {
    grid-template-columns: 1fr;
    max-width: 980px;
    min-height: auto;
    margin-inline: auto;
}

body.studio-home .copilot-workspace.ai-brief-panel.has-proposal {
    grid-template-columns: 1fr;
}

body.studio-home .copilot-workspace .ai-brief-output {
    order: 1;
    display: none;
    min-height: 0;
}

body.studio-home .copilot-workspace .creator-prompt-console {
    order: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: clamp(1rem, 3vw, 1.55rem);
    border-radius: 30px;
}

body.studio-home .copilot-workspace.has-proposal .creator-prompt-console {
    display: none;
}

body.studio-home .copilot-workspace.has-proposal .ai-brief-output,
body.studio-home .copilot-workspace .ai-brief-output.is-loading {
    display: grid;
    order: 1;
    min-height: clamp(320px, 48vh, 560px);
}

body.studio-home .copilot-workspace .creator-prompt-console .field-message textarea {
    min-height: clamp(13rem, 24vw, 18rem);
    max-height: 24rem;
    padding: clamp(1.1rem, 2.4vw, 1.6rem);
    border-radius: 26px;
    font-size: clamp(1.08rem, 1.8vw, 1.45rem);
    line-height: 1.5;
    resize: vertical;
}

body.studio-home .copilot-workspace .creator-prompt-console .field-message textarea::placeholder {
    color: rgba(248, 246, 238, 0.42);
}

body.studio-home .advisor-composer-actions {
    display: grid;
    justify-items: center;
}

body.studio-home .advisor-composer-actions .button {
    width: min(100%, 22rem);
    min-height: 3.65rem;
    justify-content: center;
    border-radius: 999px;
    font-size: clamp(1rem, 1.5vw, 1.12rem);
}

body.studio-home .advisor-empty-state {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.48fr);
    gap: clamp(1.2rem, 3vw, 2.4rem);
    align-items: center;
    min-height: clamp(390px, 54vh, 640px);
    padding: clamp(1rem, 3vw, 2.5rem);
}

body.studio-home .advisor-empty-copy {
    max-width: 42rem;
    text-align: left;
}

body.studio-home .advisor-empty-copy h3 {
    max-width: 14ch;
    font-size: clamp(2.3rem, 5vw, 5rem);
    line-height: 0.96;
    letter-spacing: 0;
}

body.studio-home .advisor-empty-copy p:not(.signal-label) {
    max-width: 38rem;
    color: rgba(248, 246, 238, 0.68);
    font-size: clamp(1rem, 1.6vw, 1.22rem);
}

body.studio-home .advisor-chat-thread {
    display: grid;
    gap: 1rem;
    align-content: center;
}

body.studio-home .advisor-message {
    display: grid;
    gap: 0.55rem;
    padding: 0 0 0 1rem;
    border-left: 2px solid rgba(239, 214, 163, 0.35);
}

body.studio-home .advisor-message span {
    color: #efd6a3;
    font-size: 0.72rem;
    font-weight: 950;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

body.studio-home .advisor-message strong {
    color: rgba(248, 246, 238, 0.88);
    font-size: clamp(1.2rem, 2vw, 1.7rem);
    line-height: 1.12;
}

body.studio-home .advisor-message.is-kirby {
    margin-left: clamp(1rem, 4vw, 3rem);
    border-left-color: rgba(114, 150, 255, 0.45);
}

body.studio-home .copilot-workspace .kirby-copilot-steps {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem 0.75rem;
    padding: 0.15rem 0.25rem;
}

body.studio-home .copilot-workspace .kirby-copilot-step {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

body.studio-home .copilot-workspace .kirby-copilot-step:not(:last-child)::after {
    content: "";
    width: clamp(0.9rem, 2vw, 2rem);
    height: 1px;
    margin-left: 0.15rem;
    background: linear-gradient(90deg, rgba(239, 214, 163, 0.34), rgba(114, 150, 255, 0.18));
}

body.studio-home .copilot-workspace .kirby-copilot-step span {
    width: 1.32rem;
    height: 1.32rem;
    font-size: 0.66rem;
}

body.studio-home .copilot-workspace .kirby-copilot-step strong {
    color: rgba(248, 246, 238, 0.76);
    font-size: 0.76rem;
}

body.studio-home .copilot-workspace .kirby-copilot-step p {
    display: none;
}

body.studio-home .copilot-workspace .kirby-copilot-head,
body.studio-home .copilot-workspace .kirby-editor-bar {
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    padding-inline: 0.2rem;
}

body.studio-home .copilot-workspace .kirby-copilot-state {
    max-width: 18rem;
}

body.studio-home .copilot-workspace .kirby-editor-bar {
    padding-block: 0.15rem 0.4rem;
}

body.studio-home .copilot-workspace .kirby-production-summary {
    margin-top: 0.15rem;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    padding: 0.2rem;
}

body.studio-home .copilot-workspace .kirby-advisor-followup {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
    gap: 0.9rem;
    align-items: start;
}

body.studio-home .copilot-workspace .kirby-advisor-thread-card {
    display: grid;
    gap: 0.65rem;
    padding: clamp(0.85rem, 1.7vw, 1.05rem) 0.25rem;
}

body.studio-home .copilot-workspace .kirby-advisor-thread-card h4 {
    color: #f8f6ee;
    font-size: clamp(1.25rem, 2vw, 1.6rem);
    line-height: 1.08;
}

body.studio-home .copilot-workspace .kirby-advisor-thread-card p:not(.signal-label) {
    max-width: 48rem;
    color: rgba(248, 246, 238, 0.7);
    font-size: 0.92rem;
    line-height: 1.45;
}

body.studio-home .copilot-workspace .kirby-advisor-inline,
body.studio-home .copilot-workspace .kirby-advisor-details div {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

body.studio-home .copilot-workspace .kirby-advisor-inline span,
body.studio-home .copilot-workspace .kirby-advisor-details span {
    display: inline-flex;
    align-items: center;
    min-height: 1.85rem;
    padding: 0.34rem 0.56rem;
    border: 1px solid rgba(213, 228, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(248, 246, 238, 0.72);
    font-size: 0.76rem;
    font-weight: 800;
}

body.studio-home .copilot-workspace .kirby-advisor-details {
    margin-top: 0.25rem;
}

body.studio-home .copilot-workspace .kirby-advisor-details summary {
    width: fit-content;
    cursor: pointer;
    color: rgba(239, 214, 163, 0.86);
    font-size: 0.8rem;
    font-weight: 850;
}

body.studio-home .copilot-workspace .kirby-advisor-details div {
    margin-top: 0.55rem;
}

body.studio-home .copilot-workspace .advisor-validation-card {
    position: sticky;
    top: 1rem;
}

body.studio-home .copilot-workspace .kirby-revision-form {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    border-radius: 24px;
}

body.studio-home .copilot-workspace .kirby-generated-clean {
    gap: clamp(0.85rem, 1.5vw, 1.1rem);
}

body.studio-home .copilot-workspace .kirby-generated-clean .kirby-preview-browser {
    min-height: clamp(620px, 64vw, 880px);
}

body.studio-home .copilot-workspace .kirby-generated-clean .kirby-revision-form {
    border-color: rgba(213, 228, 255, 0.12);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.018)),
        rgba(255, 255, 255, 0.028);
}

body.studio-home .copilot-workspace .kirby-revision-form textarea {
    min-height: 3.4rem;
    border-radius: 18px;
}

body.studio-home .copilot-workspace .kirby-generated-clean .kirby-revision-form textarea {
    min-height: 4rem;
    padding: 0.9rem 1rem;
}

body.studio-home[data-theme="day"] .kirby-examples button {
    border-color: rgba(42, 45, 58, 0.1);
    background: rgba(255, 255, 255, 0.6);
    color: #171923;
}

body.studio-home[data-theme="day"] .kirby-generation-stage,
body.studio-home[data-theme="day"] .kirby-editor-bar {
    border-color: rgba(42, 45, 58, 0.1);
    background: rgba(255, 255, 255, 0.62);
    color: #171923;
}

body.studio-home[data-theme="day"] .builder-step,
body.studio-home[data-theme="day"] .project-option-grid label,
body.studio-home[data-theme="day"] .product-icon,
body.studio-home[data-theme="day"] .platform-flow-band,
body.studio-home[data-theme="day"] .site-wireframe,
body.studio-home[data-theme="day"] .preview-mini-site,
body.studio-home[data-theme="day"] .preview-mini-hero,
body.studio-home[data-theme="day"] .preview-mini-topbar i,
body.studio-home[data-theme="day"] .preview-mini-grid span,
body.studio-home[data-theme="day"] .preview-mini-options span,
body.studio-home[data-theme="day"] .kirby-preview-browser,
body.studio-home[data-theme="day"] .kirby-preview-main,
body.studio-home[data-theme="day"] .kirby-preview-nav span,
body.studio-home[data-theme="day"] .kirby-preview-actions span,
body.studio-home[data-theme="day"] .kirby-preview-blocks span,
body.studio-home[data-theme="day"] .kirby-live-browser,
body.studio-home[data-theme="day"] .kirby-live-hero,
body.studio-home[data-theme="day"] .kirby-hero-visual,
body.studio-home[data-theme="day"] .kirby-live-sections article,
body.studio-home[data-theme="day"] .kirby-live-services,
body.studio-home[data-theme="day"] .kirby-live-contact,
body.studio-home[data-theme="day"] .kirby-live-service-grid span,
body.studio-home[data-theme="day"] .kirby-map-preview,
body.studio-home[data-theme="day"] .kirby-mini-lines span,
body.studio-home[data-theme="day"] .kirby-option-pills span,
body.studio-home[data-theme="day"] .kirby-site-brief,
body.studio-home[data-theme="day"] .kirby-blueprint-grid section,
body.studio-home[data-theme="day"] .kirby-detail-block,
body.studio-home[data-theme="day"] .kirby-detail-grid section,
body.studio-home[data-theme="day"] .kirby-style-ribbon span,
body.studio-home[data-theme="day"] .starter-chips span,
body.studio-home[data-theme="day"] .kirby-model-chips span,
body.studio-home[data-theme="day"] .kirby-next-step {
    border-color: rgba(42, 45, 58, 0.1);
    background: rgba(255, 255, 255, 0.48);
    color: #171923;
}

body.studio-home[data-theme="day"] .kirby-proposal-head span,
body.studio-home[data-theme="day"] .kirby-tags span,
body.studio-home[data-theme="day"] .kirby-result-grid section,
body.studio-home[data-theme="day"] .kirby-positioning section,
body.studio-home[data-theme="day"] .kirby-revision-form,
body.studio-home[data-theme="day"] .kirby-explanation {
    border-color: rgba(42, 45, 58, 0.1);
    background: rgba(255, 255, 255, 0.45);
    color: #171923;
}

body.studio-home[data-theme="day"] .kirby-slogan,
body.studio-home[data-theme="day"] .kirby-value,
body.studio-home[data-theme="day"] .preview-mini-topbar span,
body.studio-home[data-theme="day"] .preview-mini-hero strong,
body.studio-home[data-theme="day"] .kirby-live-nav strong,
body.studio-home[data-theme="day"] .kirby-live-hero h3,
body.studio-home[data-theme="day"] .kirby-live-sections strong,
body.studio-home[data-theme="day"] .kirby-live-section-title strong,
body.studio-home[data-theme="day"] .kirby-live-contact-copy strong,
body.studio-home[data-theme="day"] .kirby-editor-bar h3,
body.studio-home[data-theme="day"] .kirby-result-grid strong,
body.studio-home[data-theme="day"] .kirby-blueprint-grid strong,
body.studio-home[data-theme="day"] .kirby-detail-grid strong,
body.studio-home[data-theme="day"] .kirby-detail-block summary,
body.studio-home[data-theme="day"] .service-pill-card strong,
body.studio-home[data-theme="day"] .platform-product-card strong,
body.studio-home[data-theme="day"] .kirby-next-step h4,
body.studio-home[data-theme="day"] .builder-step strong {
    color: #171923;
}

body.studio-home[data-theme="day"] .kirby-result-grid span,
body.studio-home[data-theme="day"] .kirby-positioning p,
body.studio-home[data-theme="day"] .kirby-site-brief p,
body.studio-home[data-theme="day"] .kirby-site-brief li,
body.studio-home[data-theme="day"] .kirby-blueprint-grid span,
body.studio-home[data-theme="day"] .kirby-detail-grid span,
body.studio-home[data-theme="day"] .kirby-detail-grid li,
body.studio-home[data-theme="day"] .preview-mini-hero p,
body.studio-home[data-theme="day"] .preview-mini-topbar i,
body.studio-home[data-theme="day"] .preview-mini-grid span,
body.studio-home[data-theme="day"] .preview-mini-options span,
body.studio-home[data-theme="day"] .kirby-live-nav span,
body.studio-home[data-theme="day"] .kirby-live-sections span,
body.studio-home[data-theme="day"] .kirby-live-service-grid span,
body.studio-home[data-theme="day"] .kirby-live-contact-copy p,
body.studio-home[data-theme="day"] .kirby-mini-lines span,
body.studio-home[data-theme="day"] .kirby-option-pills span,
body.studio-home[data-theme="day"] .kirby-style-note,
body.studio-home[data-theme="day"] .builder-step p,
body.studio-home[data-theme="day"] .platform-product-card p,
body.studio-home[data-theme="day"] .kirby-next-step p:not(.signal-label),
body.studio-home[data-theme="day"] .creator-form-head p:not(.signal-label),
body.studio-home[data-theme="day"] .kirby-proposal-head span,
body.studio-home[data-theme="day"] .kirby-tags span {
    color: rgba(42, 45, 58, 0.74);
}

body.studio-home[data-theme="day"] .copilot-status-strip span,
body.studio-home[data-theme="day"] .copilot-guardrails span,
body.studio-home[data-theme="day"] .copilot-dialog,
body.studio-home[data-theme="day"] .copilot-flow i,
body.studio-home[data-theme="day"] .kirby-copilot-step,
body.studio-home[data-theme="day"] .kirby-copilot-head,
body.studio-home[data-theme="day"] .kirby-copilot-state,
body.studio-home[data-theme="day"] .kirby-copilot-panel,
body.studio-home[data-theme="day"] .kirby-control-badge {
    border-color: rgba(42, 45, 58, 0.1);
    background: rgba(255, 255, 255, 0.5);
    color: #171923;
}

body.studio-home[data-theme="day"] .copilot-dialog.is-ai {
    border-color: rgba(11, 99, 206, 0.14);
    background: rgba(11, 99, 206, 0.06);
}

body.studio-home[data-theme="day"] .copilot-dialog strong,
body.studio-home[data-theme="day"] .kirby-copilot-step strong,
body.studio-home[data-theme="day"] .kirby-copilot-head h3,
body.studio-home[data-theme="day"] .kirby-copilot-state strong,
body.studio-home[data-theme="day"] .kirby-blueprint-review strong,
body.studio-home[data-theme="day"] .kirby-validation-card h4 {
    color: #171923;
}

body.studio-home[data-theme="day"] .copilot-status-strip span,
body.studio-home[data-theme="day"] .copilot-guardrails span,
body.studio-home[data-theme="day"] .kirby-copilot-step p,
body.studio-home[data-theme="day"] .kirby-copilot-head p:not(.signal-label),
body.studio-home[data-theme="day"] .kirby-copilot-state p,
body.studio-home[data-theme="day"] .kirby-validation-card p,
body.studio-home[data-theme="day"] .kirby-action-log li,
body.studio-home[data-theme="day"] .kirby-validation-reasons li,
body.studio-home[data-theme="day"] .kirby-blueprint-review span,
body.studio-home[data-theme="day"] .kirby-settings-review span {
    color: rgba(42, 45, 58, 0.72);
}

body.studio-home[data-theme="day"] .kirby-settings-review span {
    border-color: rgba(11, 99, 206, 0.12);
    background: rgba(11, 99, 206, 0.06);
}

body.studio-home[data-theme="day"] .kirby-validation-card.is-validated,
body.studio-home[data-theme="day"] .kirby-next-step.is-unlocked {
    border-color: rgba(15, 150, 94, 0.22);
    background: rgba(236, 253, 245, 0.68);
}

.kirby-live-browser.is-dashboard {
    gap: 0.6rem;
    min-height: clamp(600px, 58vw, 780px);
    padding: 0.7rem;
    border-color: rgba(31, 45, 81, 0.08);
    background: #f5f7fc !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 28px 90px rgba(15, 23, 42, 0.18);
}

.kirby-live-browser.is-dashboard .kirby-preview-chrome {
    padding: 0 0.35rem;
}

.kirby-live-browser.is-dashboard .kirby-preview-chrome span {
    background: #c8d1e4;
}

.kirby-dashboard-app {
    display: grid;
    grid-template-columns: minmax(148px, 0.2fr) minmax(0, 1fr);
    min-height: clamp(560px, 53vw, 720px);
    overflow: hidden;
    border: 1px solid rgba(31, 45, 81, 0.08);
    border-radius: 22px;
    background: #f7f9fd;
    color: #0f172a;
    font-family: "Inter", "Manrope", sans-serif;
}

.kirby-dashboard-sidebar {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto auto;
    gap: 0.75rem;
    padding: 1rem 0.85rem;
    background:
        radial-gradient(circle at 0% 0%, rgba(55, 100, 255, 0.24), transparent 12rem),
        linear-gradient(180deg, #061a3f 0%, #020b1f 100%);
    color: #ffffff;
}

.kirby-dashboard-brand {
    display: flex;
    align-items: center;
    gap: 0.52rem;
    min-width: 0;
    font-weight: 950;
}

.kirby-dashboard-brand span,
.kirby-dashboard-user > span,
.dash-avatar {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #2f5bff, #5c79ff);
    color: #ffffff;
    font-size: 0.66rem;
    font-weight: 950;
}

.kirby-dashboard-brand strong {
    min-width: 0;
    overflow: hidden;
    font-size: 0.92rem;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kirby-dashboard-brand b {
    color: #3478ff;
}

.kirby-dashboard-menu {
    display: grid;
    align-content: start;
    gap: 0.35rem;
}

.kirby-dashboard-menu span {
    display: flex;
    align-items: center;
    gap: 0.48rem;
    min-height: 2.35rem;
    padding: 0.48rem 0.55rem;
    border-radius: 0.55rem;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.74rem;
    font-weight: 800;
}

.kirby-dashboard-menu span.is-active {
    background: linear-gradient(135deg, #2f5bff, #2448f5);
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(47, 91, 255, 0.26);
}

.kirby-dashboard-menu i {
    display: inline-grid;
    place-items: center;
    width: 1.35rem;
    height: 1.35rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 0.42rem;
    font-style: normal;
    font-size: 0.55rem;
    font-weight: 950;
}

.kirby-dashboard-user {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.kirby-dashboard-user div {
    min-width: 0;
}

.kirby-dashboard-user strong,
.kirby-dashboard-user small,
.kirby-dashboard-plan strong,
.kirby-dashboard-plan small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kirby-dashboard-user strong,
.kirby-dashboard-plan strong {
    font-size: 0.72rem;
    line-height: 1.2;
}

.kirby-dashboard-user small,
.kirby-dashboard-plan small {
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.64rem;
}

.kirby-dashboard-plan {
    display: grid;
    gap: 0.16rem;
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.75rem;
    background: linear-gradient(135deg, rgba(47, 91, 255, 0.78), rgba(104, 58, 183, 0.62));
}

.kirby-dashboard-main {
    display: grid;
    grid-template-rows: auto auto auto minmax(0, 1fr);
    gap: 0.75rem;
    min-width: 0;
    padding: 0.9rem;
    background:
        radial-gradient(circle at 94% 7%, rgba(47, 91, 255, 0.08), transparent 14rem),
        #f8faff;
}

.kirby-dashboard-topbar,
.kirby-dashboard-title,
.dash-panel-head,
.kirby-dashboard-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
}

.kirby-dashboard-search {
    min-width: 0;
}

.kirby-dashboard-search input {
    width: min(100%, 18rem);
    min-height: 2.15rem;
    padding: 0.45rem 0.7rem;
    border: 1px solid rgba(31, 45, 81, 0.1);
    border-radius: 0.58rem;
    background: #ffffff;
    color: #64748b;
    font: inherit;
    font-size: 0.74rem;
}

.kirby-dashboard-actions span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2rem;
    border-radius: 0.55rem;
    font-size: 0.72rem;
    font-weight: 850;
}

.kirby-dashboard-actions .dash-new {
    padding: 0.42rem 0.7rem;
    background: #ffffff;
    color: #0f172a;
    border: 1px solid rgba(31, 45, 81, 0.1);
}

.kirby-dashboard-actions .dash-icon {
    width: 2rem;
    background: #ffffff;
    color: #ef4444;
    border: 1px solid rgba(31, 45, 81, 0.1);
}

.kirby-dashboard-title h3 {
    color: #0f172a;
    font-family: "Inter", "Manrope", sans-serif;
    font-size: clamp(1.2rem, 2vw, 1.55rem);
    line-height: 1.05;
}

body.studio-home .section .kirby-dashboard-title h3 {
    color: #0f172a;
}

.kirby-dashboard-title p,
.kirby-dashboard-title > span {
    color: #52617a;
    font-size: 0.76rem;
    font-weight: 650;
}

.kirby-dashboard-title > span {
    flex: 0 0 auto;
    padding: 0.48rem 0.7rem;
    border: 1px solid rgba(31, 45, 81, 0.1);
    border-radius: 0.58rem;
    background: #ffffff;
}

.kirby-dashboard-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.65rem;
}

.kirby-dashboard-kpis article,
.dash-panel {
    min-width: 0;
    border: 1px solid rgba(31, 45, 81, 0.09);
    border-radius: 0.8rem;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.kirby-dashboard-kpis article {
    display: grid;
    gap: 0.25rem;
    min-height: 6.8rem;
    padding: 0.78rem;
}

.kirby-dashboard-kpis small,
.dash-panel-head span,
.dash-bank span,
.dash-list-panel span {
    color: #52617a;
    font-size: 0.68rem;
    font-weight: 800;
}

.kirby-dashboard-kpis strong {
    color: #0f172a;
    font-size: clamp(1rem, 1.6vw, 1.24rem);
    line-height: 1.05;
}

.kirby-dashboard-kpis em {
    color: #02a65a;
    font-size: 0.66rem;
    font-style: normal;
    font-weight: 850;
}

.kirby-dashboard-kpis em.is-warning {
    color: #f97316;
}

.spark,
.dash-progress {
    display: block;
    height: 1.2rem;
    margin-top: auto;
    border-radius: 999px;
}

.spark-blue {
    background: linear-gradient(105deg, transparent 0 14%, #2f5bff 14% 18%, transparent 18% 31%, #2f5bff 31% 38%, transparent 38% 53%, #2f5bff 53% 60%, transparent 60% 74%, #2f5bff 74% 80%, transparent 80%);
}

.spark-red {
    background: linear-gradient(105deg, transparent 0 10%, #ff4d5d 10% 17%, transparent 17% 33%, #ff4d5d 33% 40%, transparent 40% 59%, #ff4d5d 59% 67%, transparent 67%);
}

.spark-green {
    background: linear-gradient(105deg, transparent 0 12%, #0bb36b 12% 18%, transparent 18% 36%, #0bb36b 36% 45%, transparent 45% 63%, #0bb36b 63% 70%, transparent 70%);
}

.dash-progress {
    position: relative;
    height: 0.38rem;
    background: #edf1f8;
}

.dash-progress::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 62%;
    border-radius: inherit;
    background: #fb923c;
}

.kirby-dashboard-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(220px, 0.72fr);
    gap: 0.65rem;
    min-width: 0;
}

.dash-panel {
    padding: 0.75rem;
}

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

.dash-panel-head strong,
.dash-ai-panel strong {
    color: #0f172a;
    font-size: 0.84rem;
}

.dash-panel-head span {
    padding: 0.28rem 0.45rem;
    border: 1px solid rgba(31, 45, 81, 0.09);
    border-radius: 0.45rem;
    background: #f7f9fd;
}

.dash-bars {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    align-items: end;
    gap: 0.45rem;
    min-height: 8.5rem;
    padding: 0.6rem 0.25rem 0.2rem;
    border-bottom: 1px solid rgba(31, 45, 81, 0.08);
    background:
        linear-gradient(rgba(31, 45, 81, 0.06) 1px, transparent 1px) 0 25% / 100% 33.33%;
}

.dash-bars i {
    height: var(--h);
    min-height: 2rem;
    border-radius: 0.35rem 0.35rem 0 0;
    background: linear-gradient(180deg, #4268ff, #d8e0ff);
}

.dash-donut-wrap {
    display: grid;
    grid-template-columns: minmax(110px, 0.82fr) minmax(0, 1fr);
    gap: 0.7rem;
    align-items: center;
}

.dash-donut {
    display: grid;
    place-items: center;
    align-content: center;
    width: min(100%, 8rem);
    aspect-ratio: 1;
    border-radius: 999px;
    background:
        radial-gradient(circle, #ffffff 0 48%, transparent 49%),
        conic-gradient(#4268ff 0 34%, #ff5766 34% 59%, #ffc95b 59% 79%, #54d397 79% 100%);
}

.dash-donut strong {
    color: #0f172a;
    font-size: 0.82rem;
}

.dash-donut small {
    color: #52617a;
    font-size: 0.62rem;
    font-weight: 800;
}

.dash-donut-wrap ul {
    display: grid;
    gap: 0.48rem;
    margin: 0;
    padding: 0;
    color: #0f172a;
    list-style: none;
    font-size: 0.68rem;
    font-weight: 750;
}

.dash-donut-wrap li {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.dash-donut-wrap li i,
.dash-tasks p i {
    width: 0.48rem;
    height: 0.48rem;
    border-radius: 999px;
    background: #4268ff;
}

.dash-donut-wrap li:nth-child(2) i {
    background: #ffc95b;
}

.dash-donut-wrap li:nth-child(3) i {
    background: #54d397;
}

.dash-donut-wrap li:nth-child(4) i {
    background: #2db9a3;
}

.dash-side-stack {
    display: grid;
    gap: 0.65rem;
}

.dash-tasks p,
.dash-bank p,
.dash-list-panel p {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.45rem;
    margin: 0;
    padding: 0.34rem 0;
    color: #0f172a;
    font-size: 0.68rem;
    font-weight: 750;
}

.dash-tasks p b,
.dash-bank b,
.dash-list-panel b {
    color: #02a65a;
    font-size: 0.68rem;
    white-space: nowrap;
}

.dash-tasks p .badge {
    display: inline-grid;
    place-items: center;
    width: 1rem;
    height: 1rem;
    border-radius: 999px;
    background: #ff4d5d;
    color: #ffffff;
}

.dash-tasks a {
    display: inline-flex;
    margin-top: 0.2rem;
    color: #2450ff;
    font-size: 0.68rem;
    font-weight: 850;
}

.dash-list-panel {
    grid-column: span 1;
}

.dash-list-panel b.is-negative {
    color: #ff4d5d;
}

.dash-ai-panel {
    display: grid;
    gap: 0.35rem;
    grid-column: span 2;
}

.dash-ai-panel p {
    margin: 0;
    color: #52617a;
    font-size: 0.7rem;
}

.dash-ai-panel span {
    display: inline-flex;
    width: fit-content;
    min-height: 1.55rem;
    align-items: center;
    padding: 0.3rem 0.5rem;
    border: 1px solid rgba(47, 91, 255, 0.14);
    border-radius: 0.4rem;
    color: #2450ff;
    font-size: 0.66rem;
    font-weight: 800;
}

.dash-ai-panel div {
    min-height: 2rem;
    margin-top: 0.1rem;
    padding: 0.5rem 0.62rem;
    border: 1px solid rgba(31, 45, 81, 0.1);
    border-radius: 0.55rem;
    color: #8a97ad;
    font-size: 0.68rem;
}

@media (max-width: 1120px) {
    .platform-product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 840px) {
    .flow-panel,
    .mood-grid {
        grid-template-columns: 1fr;
    }

    .mood-card {
        min-height: 180px;
    }

    .price-card {
        min-height: auto;
    }

    .flow-step {
        min-height: 180px;
    }

    .ai-brief-panel {
        grid-template-columns: 1fr;
    }

    .ai-brief-panel.has-proposal,
    .creator-form-grid,
    .builder-steps,
    .platform-product-grid,
    .service-pill-grid,
    .kirby-site-preview,
    .kirby-generated-website,
    .kirby-live-hero,
    .kirby-live-sections,
    .kirby-blueprint-grid,
    .kirby-detail-grid,
    .kirby-copilot-head,
    .kirby-copilot-control-grid,
    .kirby-advisor-followup,
    body.studio-home .copilot-workspace .creator-prompt-console,
    body.studio-home .advisor-empty-state,
    .kirby-revision-compact,
    .starter-preview,
    .copilot-empty-state {
        grid-template-columns: 1fr;
    }

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

    body.studio-home .copilot-workspace .kirby-copilot-steps {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.studio-home .copilot-workspace .kirby-copilot-step::after {
        display: none;
    }

    body.studio-home .advisor-composer-actions {
        justify-items: stretch;
        min-width: 0;
    }

    .kirby-generated-actions {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .kirby-generated-actions .button {
        width: 100%;
    }

    body.studio-home .advisor-composer-actions p {
        text-align: left;
    }

    body.studio-home .advisor-empty-copy h3 {
        max-width: 12ch;
    }

    body.studio-home .copilot-workspace .advisor-validation-card {
        position: static;
    }

    .project-option-grid {
        grid-template-columns: 1fr;
    }

    .kirby-result-top {
        display: grid;
    }

    .kirby-editor-bar {
        display: grid;
    }

    .kirby-result-top .button,
    .kirby-editor-bar .button,
    .kirby-revision-form .button,
    .kirby-next-step .button {
        width: 100%;
    }

    .kirby-live-browser {
        min-height: auto;
    }

    .kirby-live-hero {
        min-height: 360px;
    }

    .kirby-live-service-grid,
    .kirby-live-contact {
        grid-template-columns: 1fr;
    }

    .kirby-generation-grid {
        grid-template-columns: 1fr;
    }

    .kirby-dashboard-app,
    .kirby-dashboard-kpis,
    .kirby-dashboard-content,
    .dash-donut-wrap,
    .kirby-gallery-focus,
    .kirby-minimal-editorial,
    .kirby-minimal-list,
    .kirby-asymmetric-layout,
    .kirby-asym-stack,
    .kirby-warm-editorial,
    .kirby-live-rail {
        grid-template-columns: 1fr;
    }

    .kirby-gallery-mosaic {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(3, minmax(9rem, 1fr));
    }

    .kirby-gallery-mosaic span:first-child {
        grid-row: auto;
    }

    .kirby-asym-image,
    .kirby-warm-image {
        min-height: 16rem;
    }

    .kirby-dashboard-app {
        min-height: auto;
    }

    .kirby-dashboard-sidebar {
        grid-template-rows: auto auto auto;
    }

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

    .kirby-dashboard-plan {
        display: none;
    }

    .kirby-dashboard-topbar,
    .kirby-dashboard-title {
        align-items: stretch;
        flex-direction: column;
    }

    .kirby-dashboard-search input {
        width: 100%;
    }

    .dash-ai-panel {
        grid-column: auto;
    }

    .kirby-next-step {
        display: grid;
    }

    .kirby-result-grid {
        grid-template-columns: 1fr;
    }

    .kirby-positioning {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .copilot-status-strip,
    .kirby-copilot-steps {
        grid-template-columns: 1fr;
    }

    body.studio-home .copilot-workspace .kirby-copilot-steps {
        grid-template-columns: 1fr;
    }

    body.studio-home .advisor-empty-state {
        padding: 0.85rem;
    }

    body.studio-home .advisor-empty-copy h3 {
        font-size: clamp(2rem, 12vw, 3.1rem);
    }

    body.studio-home .advisor-message.is-kirby {
        margin-left: 0.65rem;
    }

    .kirby-video-copy h3,
    .kirby-gallery-lead h3,
    .kirby-asym-copy h3,
    .kirby-warm-copy h3,
    .kirby-minimal-editorial h3 {
        font-size: clamp(2.6rem, 16vw, 4.4rem);
        overflow-wrap: anywhere;
    }

    .kirby-live-video-hero,
    .kirby-gallery-lead,
    .kirby-asym-copy,
    .kirby-warm-editorial {
        border-radius: 22px;
    }

    .kirby-validation-actions {
        display: grid;
    }

    .kirby-validation-actions .button {
        width: 100%;
    }

    .platform-product-grid {
        grid-template-columns: 1fr;
    }

    .platform-product-card {
        min-height: 9rem;
    }

    .platform-flow-band {
        border-radius: 20px;
    }

    .platform-flow-band i {
        display: none;
    }
}

@keyframes pageStarDrift {
    from {
        background-position: 0 0, 0 0, 0 0, 0 0;
    }

    to {
        background-position: 180px 360px, -260px 260px, 220px -220px, -310px 310px;
    }
}

@keyframes pageGlowBreathe {
    from {
        opacity: 0.64;
        transform: scale(1);
    }

    to {
        opacity: 0.94;
        transform: scale(1.03);
    }
}

@keyframes pageGlowFloat {
    from {
        transform: translate3d(-1.2%, -0.8%, 0) scale(1);
    }

    to {
        transform: translate3d(1.4%, 1.1%, 0) scale(1.04);
    }
}

@keyframes ambientDrift {
    from {
        transform: translate3d(-1%, -1%, 0) scale(1);
    }
    to {
        transform: translate3d(1.4%, 1.2%, 0) scale(1.03);
    }
}

@keyframes corePulse {
    0%,
    100% {
        transform: scale(0.96) rotate(0deg);
        opacity: 0.72;
    }
    50% {
        transform: scale(1.04) rotate(8deg);
        opacity: 1;
    }
}

@keyframes coreRotate {
    0% {
        transform: var(--orbit-tilt) rotateZ(0deg);
    }

    to {
        transform: var(--orbit-tilt) rotateZ(360deg);
    }
}

@keyframes logoFloat {
    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-0.42rem) scale(1.018);
    }
}

@keyframes starTwinkle {
    0% {
        opacity: 0.38;
        transform: translate3d(0, 0, 0) var(--star-tilt) scale(0.76);
    }

    28% {
        opacity: 0.92;
        transform: translate3d(var(--star-drift-x), var(--star-drift-y), 0) var(--star-tilt) scale(1.08);
    }

    58% {
        opacity: 0.58;
        transform: translate3d(var(--star-return-x), var(--star-return-y), 0) var(--star-tilt) scale(0.88);
    }

    100% {
        opacity: 0.38;
        transform: translate3d(0, 0, 0) var(--star-tilt) scale(0.76);
    }
}

@media (max-width: 840px) {
    .brand {
        gap: 0.48rem;
        font-size: 0.78rem;
    }

    .brand::before {
        width: 2.05rem;
        height: 2.05rem;
        border-radius: 12px;
    }

    .hero-immersive {
        min-height: 100vh;
        padding: 0.75rem;
    }

    .hero-immersive .studio-hero-grid {
        min-height: auto;
        grid-template-columns: 1fr;
        gap: 1.2rem;
        padding-top: 1.3rem;
    }

    .hero-immersive .studio-signal-card {
        order: -1;
        min-height: 360px;
        margin-top: 0.4rem;
        border: 0;
        background: transparent;
        box-shadow: none;
        backdrop-filter: none;
    }

    .hero-immersive .hero-content {
        text-align: center;
    }

    .hero-immersive .hero h1,
    .hero-immersive h1 {
        font-size: clamp(3rem, 17vw, 5.5rem);
        letter-spacing: 0;
    }

    .hero-immersive .hero-role {
        margin-inline: auto;
        font-size: 1.06rem;
    }

    .hero-immersive .hero-text {
        display: none;
    }

    .hero-immersive .hero-actions {
        justify-content: center;
        margin-top: 1.6rem;
    }

    .studio-offer {
        padding: 0.3rem 0.4rem 0;
        font-size: 0.82rem;
    }

    .digital-core::before {
        width: min(28rem, 92vw);
        opacity: 0.46;
    }

    .digital-core::after {
        width: min(12rem, 46vw);
    }

    .sa-logo-stage-mark {
        width: clamp(7.4rem, 34vw, 10rem);
    }

    .hero-immersive .topbar {
        border-radius: 24px;
        padding: 0.85rem 1rem;
    }

    .design-tile-a {
        right: -2%;
        top: 13%;
        width: 8.4rem;
        height: 5.3rem;
    }

    .design-tile-b {
        left: -4%;
        bottom: 4%;
        width: 9.8rem;
        height: 7.3rem;
    }

}

@media (prefers-reduced-motion: reduce) {
    body.studio-home::before,
    body.studio-home::after,
    .cosmic-page-glow,
    .hero-ambient,
    .digital-core::before,
    .digital-core span,
    .digital-core i,
    .sa-logo-stage-mark,
    .design-tile {
        animation: none;
    }

    .cosmic-page-field {
        display: none;
    }
}

/* CV workspace UI refresh: visual only, no JS logic changes. */
body.cv-workspace-page .section.section-cv {
    padding-top: clamp(1rem, 1.8vw, 1.4rem);
}

body.cv-workspace-page .cv-hero-shortcopy {
    margin: 0.35rem 0 0;
    max-width: 58rem;
    font-size: clamp(1rem, 1.55vw, 1.12rem);
    font-weight: 600;
    color: var(--text-soft);
}

body.cv-workspace-page .section.section-cv .section-heading {
    margin-bottom: 0.65rem;
}

body.cv-workspace-page .section.section-cv .section-heading h2 {
    margin: 0.2rem 0 0;
    font-size: clamp(1.35rem, 2.2vw, 1.9rem);
    line-height: 1.1;
}

body.cv-workspace-page .cv-import-strip {
    margin-bottom: 0.65rem;
    padding: 0.8rem;
}

body.cv-workspace-page .cv-mobile-title {
    display: none;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text);
}

.cv-ui-mode-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    margin: 0.15rem 0 0.7rem;
    padding: 0.26rem;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

.cv-ui-mode-input {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    clip: rect(0 0 0 0);
    overflow: hidden;
}

.cv-ui-mode-pill {
    padding: 0.44rem 0.9rem;
    border-radius: 999px;
    color: var(--text-soft);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

#cv-ui-simple:checked + .cv-ui-mode-pill,
#cv-ui-expert:checked + .cv-ui-mode-pill {
    background:
        linear-gradient(180deg, rgba(188, 214, 255, 0.2), rgba(255, 255, 255, 0.1)),
        rgba(255, 255, 255, 0.14);
    border-color: rgba(166, 200, 255, 0.52);
    box-shadow:
        0 0 0 1px rgba(172, 206, 255, 0.18),
        0 8px 18px rgba(83, 118, 191, 0.12);
    color: #1f325f;
}

body.cv-workspace-page .cv-layout {
    gap: 0.75rem;
    grid-template-columns: 1fr;
    align-items: start;
}

body.cv-workspace-page .cv-top-actions {
    grid-column: 1 / -1;
    position: sticky;
    top: 0.65rem;
    z-index: 9;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.5rem;
    padding: 0.55rem;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.14);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 22px rgba(31, 38, 72, 0.08);
}

body.cv-workspace-page .cv-top-actions .button {
    min-height: 2.45rem;
    padding: 0.55rem 0.7rem;
    font-size: 0.84rem;
    font-weight: 700;
}

body.cv-workspace-page .cv-editor-panel,
body.cv-workspace-page .cv-preview-shell {
    padding: clamp(0.85rem, 1.6vw, 1.1rem);
}

body.cv-workspace-page .cv-preview-shell {
    order: 1;
    position: static;
    top: auto;
    align-self: start;
    max-height: none;
    overflow: visible;
    width: 100%;
    max-width: 100%;
    margin-inline: auto;
}

body.cv-workspace-page .cv-editor-panel {
    order: 2;
    width: 100%;
    max-width: min(100%, 78rem);
    margin-inline: auto;
}

body.cv-workspace-page .cv-section-accordion {
    margin: 0;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.8);
    overflow: clip;
}

body.cv-workspace-page .cv-section-accordion > summary {
    list-style: none;
    cursor: pointer;
    padding: 0.78rem 0.92rem;
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-soft);
}

body.cv-workspace-page .cv-section-accordion > summary::-webkit-details-marker {
    display: none;
}

body.cv-workspace-page .cv-section-accordion > .cv-section-accordion-content {
    padding: 0.2rem 0.8rem 0.85rem;
    border-top: 1px solid var(--line);
    display: grid;
    gap: 0.72rem;
}

body.cv-workspace-page .cv-section-accordion.cv-action-group > .cv-section-accordion-content {
    padding-top: 0.65rem;
}

body.cv-workspace-page .cv-collapsible {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.86);
    overflow: clip;
}

body.cv-workspace-page .cv-collapsible > summary {
    list-style: none;
    cursor: pointer;
    padding: 0.72rem 0.9rem;
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-soft);
    border-bottom: 1px solid transparent;
}

body.cv-workspace-page .cv-collapsible > summary::-webkit-details-marker {
    display: none;
}

body.cv-workspace-page .cv-collapsible[open] > summary {
    border-bottom-color: var(--line);
    background: rgba(247, 250, 255, 0.9);
}

body.cv-workspace-page .cv-models-panel .cv-ribbon-presets,
body.cv-workspace-page .cv-personalization-panel .cv-preview-toolbar {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    margin: 0;
}

body.cv-workspace-page .cv-assist-panel {
    display: grid;
    gap: 0.65rem;
}

body.cv-workspace-page .cv-assist-panel .analysis-block-header h4 {
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

body.cv-workspace-page .cv-assist-panel .analysis-block-header p {
    margin: 0;
    font-size: 0.82rem;
}

body.cv-workspace-page .cv-assist-panel .cv-actions {
    gap: 0.45rem;
}

body.cv-workspace-page .cv-assist-panel .cv-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.cv-workspace-page .cv-assist-panel .cv-actions .button {
    min-height: 2.3rem;
    padding: 0.45rem 0.55rem;
    font-size: 0.78rem;
}

body.cv-workspace-page .cv-form {
    gap: 0.72rem;
}

body.cv-workspace-page .cv-form .field textarea,
body.cv-workspace-page .cv-form .field input,
body.cv-workspace-page .cv-form .field select {
    padding-block: 0.72rem;
}

body.cv-workspace-page .cv-word-toolbar-shell {
    top: 0.25rem;
}

body.cv-workspace-page .cv-preview-viewport {
    height: auto;
    max-height: none;
    overflow: visible;
}

body.cv-workspace-page .cv-preview-stage {
    height: auto !important;
}

body.cv-workspace-page .cv-preview {
    margin-inline: auto;
}

@media (min-width: 1100px) {
    body.cv-workspace-page .cv-layout {
        grid-template-columns: 1fr;
        gap: 0.9rem;
    }

    body.cv-workspace-page .cv-editor-panel {
        order: 2;
        max-width: min(100%, 84rem);
    }

    body.cv-workspace-page .cv-preview-shell {
        order: 1;
        max-width: min(100%, 92rem);
    }

    body.cv-workspace-page .cv-top-actions {
        max-width: min(100%, 92rem);
        margin-inline: auto;
    }

    body.cv-workspace-page .assistant-toggle {
        right: 1.2rem;
        bottom: 1.2rem;
        top: auto;
        width: auto;
        min-width: 8.7rem;
        min-height: 3.25rem;
        padding: 0.82rem 1.15rem;
        border-radius: 999px;
        font-size: 0.9rem;
        font-weight: 800;
        box-shadow: 0 20px 42px rgba(47, 63, 127, 0.28);
    }

    body.cv-workspace-page .assistant-chat {
        right: 1.2rem;
        bottom: 5rem;
        top: auto;
        max-height: min(40rem, calc(100dvh - 7rem));
        overflow: hidden;
    }
}

@media (max-width: 1099px) {
    body.cv-workspace-page .cv-top-actions {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.cv-workspace-page .hero-content,
    body.cv-workspace-page .section.section-cv .section-heading,
    body.cv-workspace-page .cv-ui-mode-switch,
    body.cv-workspace-page .cv-import-hint {
        display: none;
    }

    body.cv-workspace-page .cv-import-strip {
        margin-top: 0;
        margin-bottom: 0.55rem;
        padding: 0.68rem;
        border-radius: 14px;
    }

    body.cv-workspace-page .cv-mobile-title {
        display: block;
    }

    body.cv-workspace-page .cv-import-copy h3 {
        margin: 0;
        font-size: 0.9rem;
        font-weight: 700;
        color: var(--text-soft);
    }

    body.cv-workspace-page .cv-import-field {
        gap: 0.2rem;
        padding: 0.58rem;
        border-radius: 12px;
    }

    body.cv-workspace-page .cv-top-actions .button {
        min-height: 2.25rem;
        font-size: 0.76rem;
        padding: 0.46rem 0.54rem;
    }

    body.cv-workspace-page .cv-top-actions #cv-download-pdf,
    body.cv-workspace-page .cv-top-actions #cv-export-word {
        grid-column: span 1;
    }

    body.cv-workspace-page .cv-editor-panel {
        order: 2;
        padding: 0.72rem;
        max-width: 100%;
    }

    body.cv-workspace-page .cv-preview-shell {
        order: 1;
    }

    body.cv-workspace-page .cv-section-accordion > summary {
        padding: 0.72rem 0.8rem;
        font-size: 0.8rem;
    }

    body.cv-workspace-page .cv-section-accordion > .cv-section-accordion-content {
        padding: 0.15rem 0.62rem 0.72rem;
    }

    body.cv-workspace-page .cv-preview-shell {
        position: static;
        max-height: none;
        overflow: visible;
    }

    body.cv-workspace-page .cv-assist-panel .cv-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.cv-workspace-page .assistant-toggle {
        right: 0.72rem;
        bottom: calc(env(safe-area-inset-bottom, 0px) + 0.72rem);
        width: 2.65rem;
        min-width: 2.65rem;
        height: 2.65rem;
        min-height: 2.65rem;
        padding: 0;
        border-radius: 999px;
        font-size: 0.66rem;
        line-height: 1.05;
        box-shadow: 0 8px 18px rgba(47, 63, 127, 0.2);
    }
}

body.cv-workspace-page .assistant-chat .kirby-mode-tabs,
body.cv-workspace-page .assistant-chat .assistant-activity,
body.cv-workspace-page .assistant-chat .assistant-proposal-close {
    display: none;
}

body.cv-workspace-page .assistant-newcv-tip {
    display: none;
    margin: 0;
    padding: 0.56rem 0.65rem;
    border-radius: 10px;
    background: rgba(47, 63, 127, 0.08);
    color: #2f3f7f;
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1.35;
}

body.cv-workspace-page:has(#cv-autofill:focus) .assistant-chat {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

body.cv-workspace-page:has(#cv-autofill:focus) .assistant-newcv-tip {
    display: block;
}

body.cv-workspace-page .assistant-thread > :not(:last-child) {
    display: none !important;
}

body.cv-workspace-page .assistant-thread {
    max-height: 16.5rem;
    overflow: auto;
}

/* Premium glass finish for CV workspace (structure unchanged). */
body.cv-workspace-page .button {
    border: 1px solid rgba(255, 255, 255, 0.22);
    background:
        linear-gradient(180deg, rgba(201, 221, 255, 0.15), rgba(255, 255, 255, 0.12)),
        rgba(255, 255, 255, 0.14);
    color: #223047;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.34),
        0 6px 14px rgba(17, 24, 39, 0.07);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease,
        color 0.2s ease;
}

body.cv-workspace-page .button:hover,
body.cv-workspace-page .button:focus-visible {
    border-color: rgba(177, 205, 255, 0.5);
    background:
        linear-gradient(180deg, rgba(206, 227, 255, 0.2), rgba(255, 255, 255, 0.14)),
        rgba(255, 255, 255, 0.18);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.46),
        0 10px 20px rgba(71, 104, 173, 0.14);
}

body.cv-workspace-page .button-primary,
body.cv-workspace-page .button-secondary {
    color: #223047;
    border-color: rgba(255, 255, 255, 0.22);
    background:
        linear-gradient(180deg, rgba(210, 229, 255, 0.15), rgba(255, 255, 255, 0.12)),
        rgba(255, 255, 255, 0.14);
}

body.cv-workspace-page .button[aria-pressed="true"],
body.cv-workspace-page .button.is-active,
body.cv-workspace-page .preview-mode-tab.is-active {
    color: #1f325f;
    border-color: rgba(166, 200, 255, 0.52);
    background:
        linear-gradient(180deg, rgba(189, 216, 255, 0.2), rgba(255, 255, 255, 0.1)),
        rgba(205, 226, 255, 0.14);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        0 0 0 1px rgba(172, 206, 255, 0.18),
        0 10px 20px rgba(83, 118, 191, 0.12);
}

body.cv-workspace-page .assistant-toggle {
    border: 1px solid rgba(255, 255, 255, 0.22);
    background:
        linear-gradient(180deg, rgba(198, 219, 255, 0.18), rgba(255, 255, 255, 0.12)),
        rgba(255, 255, 255, 0.14);
    color: transparent;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.42),
        0 12px 24px rgba(49, 75, 134, 0.16);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    width: 3rem;
    min-width: 3rem;
    height: 3rem;
    min-height: 3rem;
    padding: 0;
    border-radius: 999px;
    font-size: 0;
    line-height: 1;
}

@keyframes assistant-icon-idle-float {
    0%,
    100% {
        transform: translate(-50%, -50%) translateY(0) scale(1);
        opacity: 0.92;
        filter: saturate(1);
    }
    50% {
        transform: translate(-50%, -50%) translateY(-1.2px) scale(1.03);
        opacity: 1;
        filter: saturate(1.08);
    }
}

@keyframes assistant-icon-hover-shimmer {
    0%,
    100% {
        opacity: 0.96;
        filter: saturate(1.08) brightness(1);
    }
    50% {
        opacity: 1;
        filter: saturate(1.2) brightness(1.08);
    }
}

@keyframes assistant-constellation-drift {
    0%,
    100% {
        transform: translate(0, 0);
        opacity: 0.82;
    }
    50% {
        transform: translate(0.4px, -0.6px);
        opacity: 1;
    }
}

body.cv-workspace-page .assistant-toggle {
    position: relative;
    overflow: visible;
}

body.cv-workspace-page .assistant-toggle::before,
body.cv-workspace-page .assistant-toggle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

body.cv-workspace-page .assistant-toggle::before {
    width: 1.04rem;
    height: 1.04rem;
    opacity: 0.96;
    transition: transform 0.22s ease, opacity 0.22s ease, filter 0.22s ease;
    animation: assistant-icon-idle-float 4.4s ease-in-out infinite;
}

body.cv-workspace-page .assistant-toggle::after {
    display: none;
}

body.cv-workspace-page .assistant-toggle.assistant-icon-4point::before {
    background:
        linear-gradient(180deg, transparent 0%, rgba(219, 234, 255, 0.92) 20%, rgba(84, 147, 255, 0.9) 50%, rgba(219, 234, 255, 0.92) 80%, transparent 100%),
        linear-gradient(90deg, transparent 0%, rgba(219, 234, 255, 0.9) 20%, rgba(84, 147, 255, 0.88) 50%, rgba(219, 234, 255, 0.9) 80%, transparent 100%);
    background-size: 24% 100%, 100% 24%;
    background-position: center;
    background-repeat: no-repeat;
    filter: drop-shadow(0 0 0.38rem rgba(125, 182, 255, 0.58));
}

body.cv-workspace-page .assistant-toggle.assistant-icon-diamond::before {
    width: 0.88rem;
    height: 0.88rem;
    border: 1px solid rgba(186, 219, 255, 0.94);
    border-radius: 0.14rem;
    transform: translate(-50%, -50%) rotate(45deg);
    background:
        linear-gradient(145deg, rgba(230, 240, 255, 0.18), rgba(80, 144, 255, 0.16));
    box-shadow:
        inset 0 0 0 0.5px rgba(235, 244, 255, 0.8),
        0 0 0.48rem rgba(119, 178, 255, 0.54);
}

body.cv-workspace-page .assistant-toggle.assistant-icon-futurist::before {
    width: 1.16rem;
    height: 1.16rem;
    background:
        linear-gradient(180deg, transparent 0%, rgba(235, 246, 255, 0.9) 28%, rgba(145, 193, 255, 0.74) 50%, rgba(235, 246, 255, 0.9) 72%, transparent 100%),
        linear-gradient(90deg, transparent 0%, rgba(235, 246, 255, 0.9) 28%, rgba(145, 193, 255, 0.74) 50%, rgba(235, 246, 255, 0.9) 72%, transparent 100%),
        radial-gradient(circle at center, rgba(250, 253, 255, 0.88) 0 8%, rgba(180, 216, 255, 0.26) 16%, transparent 34%);
    background-size: 12% 100%, 100% 12%, 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    filter: drop-shadow(0 0 0.3rem rgba(172, 212, 255, 0.54));
}

body.cv-workspace-page .assistant-toggle.assistant-icon-constellation::before {
    background:
        linear-gradient(180deg, transparent 0%, rgba(236, 245, 255, 0.92) 20%, rgba(94, 158, 255, 0.9) 50%, rgba(236, 245, 255, 0.92) 80%, transparent 100%),
        linear-gradient(90deg, transparent 0%, rgba(236, 245, 255, 0.92) 20%, rgba(94, 158, 255, 0.9) 50%, rgba(236, 245, 255, 0.92) 80%, transparent 100%);
    background-size: 22% 100%, 100% 22%;
    background-position: center;
    background-repeat: no-repeat;
    filter: drop-shadow(0 0 0.42rem rgba(137, 194, 255, 0.6));
}

body.cv-workspace-page .assistant-toggle.assistant-icon-constellation::after {
    display: block;
    width: 1.55rem;
    height: 1.55rem;
    background:
        radial-gradient(circle, rgba(233, 244, 255, 0.92) 0 18%, transparent 21%) 14% 26% / 0.3rem 0.3rem no-repeat,
        radial-gradient(circle, rgba(198, 226, 255, 0.84) 0 16%, transparent 21%) 82% 20% / 0.24rem 0.24rem no-repeat,
        radial-gradient(circle, rgba(214, 236, 255, 0.88) 0 17%, transparent 21%) 76% 76% / 0.26rem 0.26rem no-repeat;
    filter: drop-shadow(0 0 0.3rem rgba(141, 195, 255, 0.42));
    animation: assistant-constellation-drift 5.2s ease-in-out infinite;
}

body.cv-workspace-page .assistant-toggle:hover,
body.cv-workspace-page .assistant-toggle:focus-visible {
    transform: translateY(-1px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        0 16px 34px rgba(58, 89, 163, 0.24);
}

body.cv-workspace-page .assistant-toggle:hover::before,
body.cv-workspace-page .assistant-toggle:focus-visible::before {
    transform: translate(-50%, -50%) scale(1.06);
    animation: assistant-icon-hover-shimmer 1.5s ease-in-out infinite;
    filter: saturate(1.18) brightness(1.06);
}

body.cv-workspace-page .assistant-toggle.assistant-icon-diamond:hover::before,
body.cv-workspace-page .assistant-toggle.assistant-icon-diamond:focus-visible::before {
    transform: translate(-50%, -50%) rotate(45deg) scale(1.06);
}

body.cv-workspace-page .assistant-toggle.assistant-icon-futurist:hover::before,
body.cv-workspace-page .assistant-toggle.assistant-icon-futurist:focus-visible::before {
    transform: translate(-50%, -50%) translateY(-1.4px) scale(1.05);
    animation-duration: 1.7s;
    filter: saturate(1.14) brightness(1.07);
}

body.cv-workspace-page .assistant-toggle.assistant-icon-constellation:hover::after,
body.cv-workspace-page .assistant-toggle.assistant-icon-constellation:focus-visible::after {
    animation-duration: 2.8s;
}

@keyframes kirbyFloat {
    0%,
    100% {
        transform: translateY(-50%);
    }
    50% {
        transform: translateY(calc(-50% - 1.5px));
    }
}

@keyframes kirbyPearlTwinkle {
    0%,
    100% {
        opacity: 0.9;
        text-shadow:
            0 0 8px rgba(255, 255, 255, 0.92),
            0 0 16px rgba(162, 180, 255, 0.5);
    }
    50% {
        opacity: 1;
        text-shadow:
            0 0 10px rgba(255, 255, 255, 0.98),
            0 0 20px rgba(170, 188, 255, 0.64);
    }
}

@keyframes kirbySparkle {
    0%,
    100% {
        opacity: 0.45;
        transform: scale(0.9) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(1.15) rotate(18deg);
    }
}

/* Kirby assistant — bulle cristal diamant */
body.cv-workspace-page .assistant-toggle,
body.cv-workspace-page .assistant-fab,
body.cv-workspace-page #assistant-toggle {
    position: fixed !important;
    right: max(24px, env(safe-area-inset-right, 0px)) !important;
    top: 54% !important;
    left: auto !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
    width: 86px !important;
    min-width: 86px !important;
    height: 86px !important;
    min-height: 86px !important;
    border-radius: 999px !important;
    z-index: 9999 !important;
    background:
        radial-gradient(circle at 34% 26%, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.3) 30%, rgba(196, 213, 255, 0.18) 58%, rgba(152, 176, 245, 0.1) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.48) !important;
    box-shadow:
        0 16px 40px rgba(118, 138, 222, 0.2),
        0 0 0 1px rgba(208, 224, 255, 0.26),
        inset 0 1px 1px rgba(255, 255, 255, 0.78),
        inset 0 -14px 28px rgba(132, 156, 244, 0.14) !important;
    backdrop-filter: blur(22px) saturate(140%) !important;
    -webkit-backdrop-filter: blur(22px) saturate(140%) !important;
    animation: kirbyFloat 4.2s ease-in-out infinite;
}

/* supprimer croix / +, étoile nacrée visible */
body.cv-workspace-page .assistant-toggle::before,
body.cv-workspace-page .assistant-fab::before,
body.cv-workspace-page #assistant-toggle::before {
    content: '✦' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: auto !important;
    height: auto !important;
    background: none !important;
    font-size: 44px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    color: rgba(255, 255, 255, 0.96) !important;
    text-shadow:
        0 0 10px rgba(255, 255, 255, 0.98),
        0 0 22px rgba(165, 184, 255, 0.72) !important;
    filter: none !important;
    animation: kirbyPearlTwinkle 4.8s ease-in-out infinite !important;
}

/* éclats diamant autour */
body.cv-workspace-page .assistant-toggle::after,
body.cv-workspace-page .assistant-fab::after,
body.cv-workspace-page #assistant-toggle::after {
    content: '✧' !important;
    position: absolute !important;
    right: 14px !important;
    top: 14px !important;
    width: auto !important;
    height: auto !important;
    background: none !important;
    font-size: 14px !important;
    line-height: 1 !important;
    color: rgba(190, 210, 255, 0.9) !important;
    text-shadow:
        0 0 10px rgba(170, 190, 255, 0.8),
        -18px 20px 0 rgba(214, 230, 255, 0.88) !important;
    filter: none !important;
    animation: kirbySparkle 3.8s ease-in-out infinite !important;
}

body.cv-workspace-page .assistant-toggle:hover,
body.cv-workspace-page .assistant-toggle:focus-visible,
body.cv-workspace-page #assistant-toggle:hover,
body.cv-workspace-page #assistant-toggle:focus-visible {
    transform: translateY(-50%) !important;
}

@media (max-width: 1099px) {
    body.cv-workspace-page .assistant-toggle,
    body.cv-workspace-page .assistant-fab,
    body.cv-workspace-page #assistant-toggle {
        right: max(16px, env(safe-area-inset-right, 0px)) !important;
        width: 58px !important;
        min-width: 58px !important;
        height: 58px !important;
        min-height: 58px !important;
    }

    body.cv-workspace-page .assistant-toggle::before,
    body.cv-workspace-page .assistant-fab::before,
    body.cv-workspace-page #assistant-toggle::before {
        font-size: 30px !important;
    }

    body.cv-workspace-page .assistant-toggle::after,
    body.cv-workspace-page .assistant-fab::after,
    body.cv-workspace-page #assistant-toggle::after {
        right: 9px !important;
        top: 9px !important;
        font-size: 12px !important;
    }
}

body.cv-workspace-page .cv-editor-panel,
body.cv-workspace-page .cv-preview-shell,
body.cv-workspace-page .cv-section-accordion,
body.cv-workspace-page .cv-collapsible,
body.cv-workspace-page .cv-analysis-panel,
body.cv-workspace-page .cv-preview-toolbar,
body.cv-workspace-page .cv-word-toolbar,
body.cv-workspace-page .cv-action-group,
body.cv-workspace-page .experience-workbench,
body.cv-workspace-page .language-workbench,
body.cv-workspace-page .experience-card,
body.cv-workspace-page .language-card,
body.cv-workspace-page .assistant-chat {
    border: 1px solid rgba(255, 255, 255, 0.22);
    background:
        linear-gradient(165deg, rgba(213, 230, 255, 0.15), rgba(255, 255, 255, 0.12)),
        rgba(255, 255, 255, 0.14);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.36),
        0 10px 24px rgba(15, 23, 42, 0.07);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

body.cv-workspace-page .cv-preview {
    background: #ffffff;
    box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.96),
    0 12px 26px rgba(20, 26, 42, 0.05),
    0 24px 44px rgba(20, 26, 42, 0.07);
}

/* SA Creation Web - premium workspace skin (structure preserved) */
@keyframes saGlowBreathe {
    0%,
    100% {
        opacity: 0.55;
    }
    50% {
        opacity: 0.9;
    }
}

@keyframes saStarTwinkle {
    0%,
    100% {
        opacity: 0.38;
        transform: scale(0.96);
    }
    50% {
        opacity: 0.9;
        transform: scale(1.06);
    }
}

body.cv-workspace-page .page-shell {
    position: relative;
    isolation: isolate;
}

body.cv-workspace-page .page-shell::before,
body.cv-workspace-page .page-shell::after {
    content: '';
    position: fixed;
    pointer-events: none;
    z-index: 0;
    border-radius: 999px;
    filter: blur(42px);
    animation: saGlowBreathe 8.5s ease-in-out infinite;
}

body.cv-workspace-page .page-shell::before {
    width: 28rem;
    height: 28rem;
    right: -8rem;
    top: 14rem;
    background: radial-gradient(circle, rgba(154, 184, 255, 0.24), rgba(154, 184, 255, 0));
}

body.cv-workspace-page .page-shell::after {
    width: 24rem;
    height: 24rem;
    left: -7rem;
    top: 7rem;
    background: radial-gradient(circle, rgba(171, 196, 255, 0.2), rgba(171, 196, 255, 0));
    animation-delay: 1.4s;
}

body.cv-workspace-page .topbar {
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.76), rgba(239, 245, 255, 0.5)),
        rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.78),
        0 14px 34px rgba(31, 41, 74, 0.1);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

body.cv-workspace-page .cv-top-actions {
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 22px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.76), rgba(238, 244, 255, 0.48)),
        rgba(255, 255, 255, 0.5);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.76),
        0 12px 30px rgba(28, 38, 70, 0.08);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
}

body.cv-workspace-page .cv-editor-panel {
    border: 1px solid rgba(255, 255, 255, 0.34);
    background:
        linear-gradient(170deg, rgba(255, 255, 255, 0.78), rgba(236, 243, 255, 0.4)),
        rgba(255, 255, 255, 0.56);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.78),
        0 18px 38px rgba(27, 37, 68, 0.1);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
}

body.cv-workspace-page .cv-section-accordion {
    border: 1px solid rgba(255, 255, 255, 0.3);
    background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.82), rgba(236, 244, 255, 0.42)),
        rgba(255, 255, 255, 0.54);
}

body.cv-workspace-page .cv-preview-shell {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.36);
    background:
        linear-gradient(165deg, rgba(255, 255, 255, 0.8), rgba(238, 245, 255, 0.5)),
        rgba(255, 255, 255, 0.58);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.82),
        0 22px 46px rgba(26, 35, 66, 0.1);
}

body.cv-workspace-page .cv-preview-shell::after {
    content: '✦  ✧';
    position: absolute;
    right: 1rem;
    top: 0.7rem;
    color: rgba(164, 192, 255, 0.56);
    letter-spacing: 0.35rem;
    font-size: 0.78rem;
    pointer-events: none;
    animation: saStarTwinkle 4.8s ease-in-out infinite;
}

body.cv-workspace-page .cv-preview-toolbar,
body.cv-workspace-page .cv-word-toolbar {
    border: 1px solid rgba(255, 255, 255, 0.34);
    background:
        linear-gradient(150deg, rgba(255, 255, 255, 0.84), rgba(236, 244, 255, 0.52)),
        rgba(255, 255, 255, 0.56);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        0 12px 28px rgba(34, 43, 74, 0.08);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
}

body.cv-workspace-page .cv-preview-viewport {
    display: grid;
    justify-items: center;
    background:
    radial-gradient(circle at 50% 0%, rgba(168, 196, 255, 0.18), transparent 28rem),
    radial-gradient(circle at 90% 30%, rgba(188, 214, 255, 0.16), transparent 24rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(238, 245, 255, 0.7));
}

body.cv-workspace-page .cv-preview-stage {
    width: 100%;
    justify-items: center;
}

body.cv-workspace-page .cv-preview {
    width: min(100%, var(--cv-page-width));
    border: 1px solid rgba(17, 20, 30, 0.08);
    border-radius: 18px;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.95),
        0 18px 40px rgba(20, 26, 42, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.5);
}

body.cv-workspace-page .assistant-chat {
    border: 1px solid rgba(255, 255, 255, 0.34);
    background:
        linear-gradient(150deg, rgba(255, 255, 255, 0.86), rgba(236, 244, 255, 0.54)),
        rgba(255, 255, 255, 0.56);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.78),
        0 18px 40px rgba(34, 44, 74, 0.1);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

@media (min-width: 1200px) {
    body.cv-workspace-page .cv-layout {
        grid-template-columns: 1fr !important;
        gap: 1rem;
        align-items: start;
    }

    body.cv-workspace-page .cv-top-actions {
        grid-column: 1 / -1;
        position: sticky;
        top: 0.8rem;
        z-index: 6;
    }

    body.cv-workspace-page .cv-editor-panel {
        grid-column: 1 / -1 !important;
        order: 2 !important;
    }

    body.cv-workspace-page .cv-preview-shell {
        grid-column: 1 / -1 !important;
        order: 1 !important;
    }
}

/* UI ticket: harmonize panel widths + make Simple/Expert immediately distinct */
body.cv-workspace-page .cv-models-panel,
body.cv-workspace-page .cv-personalization-panel,
body.cv-workspace-page .cv-assist-panel,
body.cv-workspace-page .cv-models-panel > .cv-ribbon-presets,
body.cv-workspace-page .cv-personalization-panel > .cv-preview-toolbar {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

body.cv-workspace-page .cv-personalization-panel > .cv-preview-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
}

body.cv-workspace-page .cv-personalization-panel .preview-toolbar-group-tools {
    width: 100%;
    grid-template-columns: repeat(auto-fit, minmax(136px, 1fr));
}

/* Different visual identity for each mode pill */
#cv-ui-simple:checked + .cv-ui-mode-pill {
    color: #21406f;
    border-color: rgba(151, 198, 255, 0.56);
    background:
        linear-gradient(180deg, rgba(203, 228, 255, 0.24), rgba(255, 255, 255, 0.1)),
        rgba(222, 238, 255, 0.14);
    box-shadow:
        0 0 0 1px rgba(164, 205, 255, 0.2),
        0 8px 18px rgba(92, 140, 212, 0.12);
}

#cv-ui-expert:checked + .cv-ui-mode-pill {
    color: #4a3b14;
    border-color: rgba(223, 196, 136, 0.62);
    background:
        linear-gradient(180deg, rgba(246, 226, 181, 0.25), rgba(255, 255, 255, 0.1)),
        rgba(250, 235, 202, 0.16);
    box-shadow:
        0 0 0 1px rgba(226, 200, 143, 0.22),
        0 8px 18px rgba(170, 132, 63, 0.14);
}

/* Simple mode: only essential tools visible */
body.cv-workspace-page:has(#cv-ui-simple:checked) .cv-personalization-panel,
body.cv-workspace-page:has(#cv-ui-simple:checked) .cv-assist-panel,
body.cv-workspace-page:has(#cv-ui-simple:checked) .cv-word-toolbar-shell {
    display: none !important;
}

body.cv-workspace-page:has(#cv-ui-simple:checked) .cv-models-panel,
body.cv-workspace-page:has(#cv-ui-simple:checked) .cv-word-toolbar-shell {
    display: block !important;
}

body.cv-workspace-page:has(#cv-ui-simple:checked) .cv-word-toolbar-shell {
    display: grid !important;
}

body.cv-workspace-page:has(#cv-ui-simple:checked) .cv-section-projects,
body.cv-workspace-page:has(#cv-ui-simple:checked) .cv-section-languages,
body.cv-workspace-page:has(#cv-ui-simple:checked) .cv-section-activities,
body.cv-workspace-page:has(#cv-ui-simple:checked) .cv-section-accordion.cv-action-group {
    display: none !important;
}

/* Expert mode: advanced options restored */
body.cv-workspace-page:has(#cv-ui-expert:checked) .cv-personalization-panel,
body.cv-workspace-page:has(#cv-ui-expert:checked) .cv-models-panel,
body.cv-workspace-page:has(#cv-ui-expert:checked) .cv-assist-panel,
body.cv-workspace-page:has(#cv-ui-expert:checked) .cv-word-toolbar-shell {
    display: block;
}

body.cv-workspace-page:has(#cv-ui-expert:checked) .cv-word-toolbar-shell {
    display: grid;
}

/* Final CV ticket: targeted spacing, selection and alignment */
body.cv-workspace-page .cv-ribbon-presets {
    gap: 0.9rem;
    padding: 0.55rem;
    align-items: stretch;
}

body.cv-workspace-page .template-chip {
    grid-template-columns: 4rem minmax(0, 1fr);
    align-items: center;
    min-height: 6rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background:
        linear-gradient(165deg, rgba(255, 255, 255, 0.84), rgba(240, 247, 255, 0.52)),
        rgba(255, 255, 255, 0.62);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.74),
        0 10px 24px rgba(24, 34, 66, 0.08);
}

body.cv-workspace-page .template-chip > strong,
body.cv-workspace-page .template-chip > span:not(.template-mini) {
    grid-column: 2;
    overflow-wrap: anywhere;
}

body.cv-workspace-page .template-chip.is-active,
body.cv-workspace-page .template-chip[aria-pressed="true"] {
    border-color: rgba(120, 170, 255, 0.75);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 0 0 2px rgba(161, 202, 255, 0.24),
        0 16px 32px rgba(84, 123, 194, 0.2);
    transform: translateY(-1px);
}

body.cv-workspace-page:has(#preview-layout-theme option[value="ats"]:checked) .template-chip[data-template-preset="ats"],
body.cv-workspace-page:has(#preview-layout-theme option[value="modern"]:checked) .template-chip[data-template-preset="modern"],
body.cv-workspace-page:has(#preview-layout-theme option[value="digital"]:checked) .template-chip[data-template-preset="digital"],
body.cv-workspace-page:has(#preview-layout-theme option[value="holographic"]:checked) .template-chip[data-template-preset="holographic"],
body.cv-workspace-page:has(#preview-layout-theme option[value="elegant"]:checked) .template-chip[data-template-preset="elegant"],
body.cv-workspace-page:has(#preview-layout-theme option[value="premium"]:checked) .template-chip[data-template-preset="premium"],
body.cv-workspace-page:has(#preview-layout-theme option[value="creative"]:checked) .template-chip[data-template-preset="creative"] {
    border-color: rgba(156, 195, 255, 0.64);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.86),
        0 0 0 1px rgba(162, 204, 255, 0.22),
        0 14px 30px rgba(78, 120, 196, 0.15);
    transform: translateY(-1px);
}

body.cv-workspace-page .cv-personalization-panel,
body.cv-workspace-page .cv-personalization-panel > .cv-preview-toolbar,
body.cv-workspace-page .cv-personalization-panel .preview-toolbar-group-tools,
body.cv-workspace-page .cv-personalization-panel .preview-quick-control,
body.cv-workspace-page .cv-personalization-panel .preview-quick-control select,
body.cv-workspace-page .cv-personalization-panel .preview-quick-control input[type="color"] {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

body.cv-workspace-page .cv-personalization-panel .preview-toolbar-group-tools {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

body.cv-workspace-page .assistant-toggle::before,
body.cv-workspace-page #assistant-toggle::before {
    content: '✦' !important;
    font-size: 48px !important;
    line-height: 1 !important;
    opacity: 1 !important;
    color: rgba(255, 255, 255, 0.98) !important;
    text-shadow:
        0 0 14px rgba(255, 255, 255, 0.98),
        0 0 26px rgba(165, 188, 255, 0.74) !important;
}

body.cv-workspace-page .assistant-toggle,
body.cv-workspace-page #assistant-toggle {
    background: rgba(255, 255, 255, 0.12) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    box-shadow:
        0 14px 36px rgba(108, 129, 208, 0.18),
        inset 0 1px 1px rgba(255, 255, 255, 0.64),
        inset 0 -8px 20px rgba(128, 151, 235, 0.1) !important;
}

/* Auth modal: transparent but readable */
.auth-modal-backdrop {
    background: rgba(17, 24, 38, 0.32);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.auth-modal-dialog {
    border: 1px solid rgba(255, 255, 255, 0.5);
    background:
        linear-gradient(158deg, rgba(255, 255, 255, 0.84), rgba(236, 244, 255, 0.56)),
        rgba(255, 255, 255, 0.72);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.84),
        0 24px 60px rgba(22, 34, 64, 0.22);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

.auth-modal-dialog h2,
.auth-modal-dialog .auth-modal-text,
.auth-modal-dialog .field span {
    color: #1f2d4c;
}

.auth-modal-dialog .field input,
.auth-modal-dialog .field textarea,
.auth-modal-dialog .field select {
    border-color: rgba(91, 127, 192, 0.2);
    background: rgba(255, 255, 255, 0.78);
}

.auth-tab.is-active {
    border: 1px solid rgba(126, 169, 244, 0.5);
    background:
        linear-gradient(180deg, rgba(197, 223, 255, 0.44), rgba(255, 255, 255, 0.18)),
        rgba(215, 233, 255, 0.28);
    color: #21406f;
}

@media (max-width: 1099px) {
    body.cv-workspace-page .cv-ribbon-presets {
        gap: 0.62rem;
        padding: 0.3rem;
    }

    body.cv-workspace-page .template-chip {
        min-height: 5.1rem;
    }
}

@media (min-width: 1400px) {
    body.studio-home {
        --max-width: 1560px;
    }

    body.studio-home .page-shell {
        width: min(calc(100% - 3rem), var(--max-width));
    }

    body.studio-home .hero,
    body.studio-home #services,
    body.studio-home #kirby-assistant {
        width: 100%;
    }

    body.studio-home .copilot-workspace.ai-brief-panel,
    body.studio-home .kirby-ia-clean .ai-brief-panel {
        max-width: min(1120px, 100%);
    }
}
