/* ============================================================
   Cook Ingénierie, design tokens (source: DESIGN.md)
   ============================================================ */
:root {
    /* Colors, brand (public site) */
    --color-accent-orange: #FF751F;
    --color-accent-orange-hover: #E5650E;
    --color-ink-brun: #5A3428;
    --color-surface-white: #FFFFFF;
    --color-surface-tint: #FAF8F6;
    --color-border-hairline: #EDEAE6;

    /* Colors, palette étendue (client, palette Word), fonds de rupture et accents secondaires */
    --color-brun-950: #2C1617;
    --color-brun-900: #52251E;
    --color-tan-600: #A87A4D;
    --color-gold-600: #BE8A3E;
    --color-tan-400: #BE8E5E;
    --color-sand-200: #D2B799;
    --color-orange-600: #C8633C;
    --color-orange-500: #F77321;
    --color-orange-400: #FF8C44;

    /* Colors, extended (admin interface only, never on public pages) */
    --admin-tint-orange-10: rgba(255, 117, 31, 0.10);
    --admin-tint-orange-20: rgba(255, 117, 31, 0.20);
    --admin-tint-orange-40: rgba(255, 117, 31, 0.40);
    --admin-tint-orange-60: rgba(255, 117, 31, 0.60);
    --admin-tint-brun-10: rgba(90, 52, 40, 0.10);
    --admin-tint-brun-20: rgba(90, 52, 40, 0.20);
    --admin-tint-brun-40: rgba(90, 52, 40, 0.40);
    --admin-tint-brun-60: rgba(90, 52, 40, 0.60);
    --admin-success: #2E7D4F;
    --admin-error: #C0392B;
    --admin-info: #3E6FA8;

    /* Typography */
    --font-display: Aptos, "Segoe UI", Arial, sans-serif;
    --font-body: Arial, Helvetica, sans-serif;

    /* Rounded */
    --rounded-sm: 6px;
    --rounded-md: 8px;
    --rounded-lg: 10px;

    /* Spacing scale, fixed, never improvised */
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 40px;
    --space-xl: 64px;
    --space-xxl: 96px;

    /* Shadows */
    --shadow-ambient-low: 0 8px 24px rgba(90, 52, 40, 0.10);
    --shadow-ambient-medium: 0 14px 34px rgba(90, 52, 40, 0.16);
    --shadow-icon-accent: 0 4px 10px rgba(255, 117, 31, 0.18);

    /* Motion */
    --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
    --duration-fast: 220ms;
    --duration-base: 280ms;

    --container-max: 1160px;
}

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

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--color-surface-white);
    color: var(--color-ink-brun);
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.7;
}

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

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

button {
    font: inherit;
    cursor: pointer;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.2;
    margin: 0 0 var(--space-sm);
    text-wrap: balance;
}

p {
    margin: 0 0 var(--space-sm);
    max-width: 72ch;
}

/* Focus visibility, never removed without replacement */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 117, 31, 0.35);
    border-radius: var(--rounded-sm);
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ============================================================
   Layout
   ============================================================ */
.container {
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--space-md);
}

main {
    display: block;
    flex: 1 1 auto;
}

/* ============================================================
   Header / nav
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
    padding: var(--space-md) var(--space-lg);
    background: var(--color-surface-white);
    border-bottom: 1px solid var(--color-border-hairline);
    box-shadow: var(--shadow-ambient-low);
}

.site-header .logo {
    flex: none;
}

.site-header .logo img {
    height: 116px;
    width: 232px;
    max-width: none;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.main-nav a {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-ink-brun);
    padding: var(--space-xs) 0;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    transition: color var(--duration-fast) var(--ease-out-quint);
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
    color: var(--color-accent-orange);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    padding: var(--space-xs);
    width: 40px;
    height: 40px;
    position: relative;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
    content: "";
    position: absolute;
    left: 8px;
    right: 8px;
    height: 2px;
    background: var(--color-ink-brun);
    transition: transform var(--duration-fast) var(--ease-out-quint), opacity var(--duration-fast) var(--ease-out-quint);
}

.nav-toggle span {
    top: 19px;
}

.nav-toggle span::before {
    top: -8px;
}

.nav-toggle span::after {
    top: 8px;
}

.nav-toggle[aria-expanded="true"] span {
    background: transparent;
}

.nav-toggle[aria-expanded="true"] span::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span::after {
    top: 0;
    transform: rotate(-45deg);
}

@media (max-width: 720px) {
    .site-header {
        padding: var(--space-sm) var(--space-md);
    }

    .site-header .logo img {
        height: 64px;
        width: 128px;
        max-width: none;
    }

    .nav-toggle {
        display: block;
    }

    .main-nav {
        position: fixed;
        inset: 0;
        top: 84px;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        gap: var(--space-md);
        padding: var(--space-lg) var(--space-md);
        background: var(--color-surface-white);
        transform: translateX(100%);
        transition: transform var(--duration-base) var(--ease-out-quint);
    }

    .main-nav[data-open="true"] {
        transform: translateX(0);
    }

    .main-nav a {
        font-size: 18px;
    }
}

/* ============================================================
   Footer / bandeau légal
   ============================================================ */
.site-footer {
    background: var(--color-brun-950);
    color: var(--color-surface-white);
    padding: var(--space-lg) var(--space-md);
    margin-top: var(--space-lg);
}

.site-footer .footer-inner {
    max-width: var(--container-max);
    margin-inline: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-md);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.footer-brand img {
    height: 52px;
    width: 104px;
    max-width: none;
    opacity: 0.9;
}

.site-footer p {
    margin: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
}

.footer-nav {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.footer-nav a {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.75);
    transition: color var(--duration-fast) var(--ease-out-quint);
}

.footer-nav a:hover {
    color: var(--color-surface-white);
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
    display: inline-block;
    border-radius: var(--rounded-sm);
    font-weight: 500;
    font-size: 14px;
    padding: 11px 26px;
    transition: background-color var(--duration-fast) var(--ease-out-quint), border-color var(--duration-fast) var(--ease-out-quint), scale var(--duration-fast) var(--ease-out-quint);
}

.btn:active {
    scale: 0.96;
}

.btn-primary {
    background: var(--color-accent-orange);
    color: var(--color-surface-white);
    border: 1px solid var(--color-accent-orange);
}

.btn-primary:hover {
    background: var(--color-accent-orange-hover);
    border-color: var(--color-accent-orange-hover);
}

.btn-secondary {
    background: transparent;
    color: var(--color-ink-brun);
    border: 1px solid var(--color-ink-brun);
}

.btn-secondary:hover {
    background: var(--color-surface-tint);
}

/* ============================================================
   Brand marks (repris de la plaquette existante)
   ============================================================ */
.chevron {
    display: inline-flex;
    position: relative;
    width: 20px;
    height: 14px;
    flex: 0 0 auto;
}

.chevron span {
    position: absolute;
    top: 1px;
    width: 9px;
    height: 9px;
    border-right: 2px solid;
    border-bottom: 2px solid;
    transform: rotate(-45deg);
}

.chevron span:first-child {
    left: 0;
    border-color: var(--color-ink-brun);
}

.chevron span:last-child {
    left: 7px;
    border-color: var(--color-accent-orange);
}

.check {
    position: relative;
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    margin-top: 3px;
    border-radius: 50%;
    background: var(--color-accent-orange);
}

.check::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 9px;
    width: 9px;
    height: 5px;
    border-left: 2px solid var(--color-surface-white);
    border-bottom: 2px solid var(--color-surface-white);
    transform: rotate(-45deg);
}

.kicker {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 13px;
    font-weight: 500;
    color: var(--color-ink-brun);
    margin: 0 0 var(--space-xs);
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
    position: relative;
}

.hero-media {
    position: relative;
    height: 85vh;
    min-height: 560px;
    max-height: 860px;
    overflow: hidden;
    background: var(--color-brun-950);
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-media .carousel-track {
    height: 100%;
}

.hero-media .carousel-slide {
    aspect-ratio: auto;
    height: 100%;
}

.duotone {
    filter: sepia(0.5) saturate(1.15) hue-rotate(-6deg) brightness(0.82) contrast(1.08);
}

.hero-scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(0deg, rgba(44, 22, 23, 0.78) 0%, rgba(44, 22, 23, 0.32) 42%, rgba(44, 22, 23, 0) 68%);
    pointer-events: none;
}

.hero-copy {
    position: absolute;
    z-index: 2;
    left: 0;
    right: 0;
    bottom: var(--space-xxl);
    padding-left: 88px;
    padding-right: var(--space-lg);
    max-width: 800px;
}

@media (max-width: 720px) {
    .hero-copy {
        padding-left: 64px;
    }
}

.hero-copy h1 {
    color: var(--color-surface-white);
    font-size: clamp(2.25rem, 1.6rem + 3vw, 4rem);
    line-height: 1.08;
    margin-bottom: var(--space-sm);
}

.hero-copy p {
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(1rem, 0.92rem + 0.3vw, 1.15rem);
    line-height: 1.5;
    max-width: 56ch;
    margin-bottom: var(--space-md);
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    background: transparent;
    color: var(--color-surface-white);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 999px;
    padding: 13px 30px;
    font-weight: 500;
    transition: background-color var(--duration-fast) var(--ease-out-quint), border-color var(--duration-fast) var(--ease-out-quint);
}

.btn-hero:hover {
    background: var(--color-surface-white);
    color: var(--color-ink-brun);
    border-color: var(--color-surface-white);
}

.section-quote {
    background: var(--color-brun-950);
    padding-block: var(--space-xxl);
}

.hero-quote {
    margin: 0 auto;
    max-width: 900px;
    color: var(--color-surface-white);
    text-align: center;
}

.hero-quote p {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.6rem, 1.2rem + 2vw, 2.5rem);
    line-height: 1.3;
    text-wrap: balance;
}

.quote-mark {
    color: var(--color-accent-orange);
}

@media (max-width: 720px) {
    .hero-media {
        height: 75vh;
        min-height: 480px;
    }

    .hero-copy {
        bottom: var(--space-xl);
        padding-inline: var(--space-md);
    }

    .section-quote {
        padding-block: var(--space-lg);
    }
}

/* ============================================================
   Sections, homepage
   ============================================================ */
.section {
    padding-block: var(--space-xl);
}

.section-tinted {
    background: linear-gradient(180deg, rgba(210, 183, 153, 0.16), rgba(210, 183, 153, 0.16));
}

.service-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.service-list li {
    display: flex;
    gap: var(--space-sm);
    padding-block: var(--space-md);
    border-top: 1px solid var(--color-border-hairline);
}

.service-list li:last-child {
    border-bottom: 1px solid var(--color-border-hairline);
}

.service-list h3 {
    font-size: 19px;
    margin-bottom: 4px;
}

.service-list p {
    margin-bottom: 0;
}

.split-block {
    display: grid;
    position: relative;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: stretch;
}

.split-block::before {
    content: '';
    position: absolute;
    top: var(--space-lg);
    bottom: var(--space-lg);
    left: 50%;
    width: 1px;
    background: rgba(255, 117, 31, 0.18);
    transform: translateX(-50%);
    z-index: 1;
}

.split-text {
    min-height: 100%;
    padding: var(--space-md);
    background: var(--color-surface-white);
    border-radius: var(--rounded-md);
    box-shadow: var(--shadow-ambient-low);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    z-index: 2;
}

.split-text .kicker {
    position: static;
    margin: 0 0 var(--space-sm);
    padding: 0;
    background: transparent;
}

.kicker-small {
    font-size: 13px;
}

.kicker-medium {
    font-size: 18px;
}

.kicker-large {
    font-size: 22px;
}

.split-text h2 {
    max-width: 20ch;
}

.value-list {
    min-height: 100%;
    list-style: none;
    margin: 0;
    padding: var(--space-md);
    background: var(--color-surface-white);
    border-radius: var(--rounded-md);
    box-shadow: var(--shadow-ambient-low);
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

.value-list li {
    display: flex;
    gap: var(--space-sm);
    padding-block: var(--space-md);
    border-top: 1px solid var(--color-border-hairline);
}

.value-list li:first-child {
    border-top: none;
}

.value-list h3 {
    font-size: 16px;
    margin-bottom: 2px;
}

.value-list p {
    font-size: 14px;
    margin-bottom: 0;
}

@media (max-width: 860px) {
    .split-block {
        grid-template-columns: 1fr;
    }
}

.cta-band {
    padding-block: var(--space-lg);
    text-align: center;
}

.cta-band h2 {
    margin-bottom: var(--space-md);
}

/* ============================================================
   Generic content page
   ============================================================ */
.page-content {
    padding-block: var(--space-xl);
}

.page-text {
    max-width: none;
}

.page-text p {
    max-width: none;
}

.section-intro p {
    max-width: none;
}

.page-text p {
    color: var(--color-ink-brun);
}

/* ============================================================
   Références
   ============================================================ */
.filters-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
    background: var(--color-ink-brun);
    color: var(--color-surface-white);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--rounded-sm);
    margin-top: var(--space-lg);
}

.filters-label {
    font-size: 13px;
    font-weight: 500;
}

.filters-bar select {
    font-family: var(--font-body);
    font-size: 13px;
    padding: 6px 10px;
    border-radius: var(--rounded-sm);
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: var(--color-surface-white);
    color: var(--color-ink-brun);
}

.reference-rows {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-top: var(--space-md);
}

.reference-row {
    display: grid;
    grid-template-columns: 180px 200px 1fr;
    border: 1px solid var(--color-border-hairline);
    border-radius: var(--rounded-md);
    overflow: hidden;
}

.reference-row-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
}

.reference-row-icon-0 { background: var(--color-tan-400); }
.reference-row-icon-1 { background: var(--color-sand-200); }
.reference-row-icon-2 { background: var(--color-gold-600); }

.reference-row-icon-image {
    padding: 0;
}

.reference-row-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chevron-lg {
    width: 40px;
    height: 28px;
}

.chevron-lg span {
    width: 18px;
    height: 18px;
    border-width: 3px;
}

.chevron-lg span:last-child {
    left: 14px;
}

.reference-row-tags {
    background: var(--color-surface-tint);
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.reference-row-tags p {
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-ink-brun);
}

.reference-row-info {
    padding: var(--space-md);
    background: var(--color-surface-white);
}

.reference-row-info-title {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--color-orange-600);
    text-decoration: underline;
    margin: 0 0 var(--space-xs);
}

.reference-row-info p {
    font-size: 13px;
    margin: 0 0 4px;
    color: var(--color-ink-brun);
}

@media (max-width: 720px) {
    .reference-row {
        grid-template-columns: 1fr;
    }

    .reference-row-icon {
        padding: var(--space-md);
    }
}

/* ============================================================
   Contact form
   ============================================================ */
.contact-form {
    max-width: 480px;
    margin-top: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-field label {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.02em;
    overflow-wrap: anywhere;
}

.form-field input,
.form-field textarea {
    font-family: var(--font-body);
    font-size: 14px;
    padding: 10px 12px;
    border: 1px solid var(--color-border-hairline);
    border-radius: var(--rounded-sm);
    background: var(--color-surface-white);
    color: var(--color-ink-brun);
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--color-ink-brun);
}

.form-field-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.contact-form .btn {
    align-self: flex-start;
    border: none;
}

.form-message {
    padding: var(--space-sm);
    border-radius: var(--rounded-sm);
    font-size: 14px;
    margin-top: var(--space-md);
}

.form-message-success {
    background: rgba(46, 125, 79, 0.1);
    color: #1F5A38;
}

.form-message-error {
    background: rgba(192, 57, 43, 0.1);
    color: #C0392B;
}

.form-message-info {
    background: rgba(62, 111, 168, 0.1);
    color: var(--admin-info);
}

/* ============================================================
   Admin (interface produit, palette étendue autorisée)
   ============================================================ */
.admin-body {
    background: var(--color-surface-tint);
    font-family: var(--font-body);
}

.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 320px;
    flex: 0 0 auto;
    background: linear-gradient(180deg, var(--color-brun-950), var(--color-brun-900));
    color: var(--color-surface-white);
    padding: var(--space-lg) var(--space-md);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-ambient-medium);
}

.admin-sidebar-brand {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding-bottom: var(--space-lg);
    margin-bottom: var(--space-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.admin-sidebar-brand img {
    height: 68px;
    width: 136px;
    max-width: none;
    flex: none;
}

.admin-sidebar-brand span {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.01em;
}

.admin-page-list-top {
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.admin-page-list-top a {
    font-weight: 600;
    font-size: 15px;
}

.admin-nav-group {
    flex: 1 1 auto;
}

.admin-sidebar-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-tan-400);
    margin: 0 0 var(--space-sm);
}

.admin-page-list {
    list-style: none;
    margin: 0 0 var(--space-lg);
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.admin-page-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm);
    padding: 12px 14px;
    border-radius: var(--rounded-md);
    transition: background-color var(--duration-fast) var(--ease-out-quint);
}

.admin-page-row:hover {
    background: rgba(255, 255, 255, 0.08);
}

.admin-page-row.is-active {
    background: rgba(255, 117, 31, 0.12);
}

.admin-page-row.is-active a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-orange-400);
    font-weight: 600;
}

.admin-page-row.is-active a::before {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg);
}

.admin-page-row a {
    font-size: 15px;
    color: var(--color-surface-white);
}

.admin-page-row form {
    display: flex;
    align-items: center;
}

.toggle-btn {
    position: relative;
    width: 40px;
    height: 22px;
    border-radius: 999px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    flex: 0 0 auto;
    cursor: pointer;
}

.toggle-btn::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--color-surface-white);
    transition: transform var(--duration-fast) var(--ease-out-quint);
}

.toggle-btn[data-state="visible"] {
    background: var(--admin-success);
}

.toggle-btn[data-state="visible"]::after {
    transform: translateX(18px);
}

.admin-sidebar-footer {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.admin-sidebar-link {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 4px;
    transition: color var(--duration-fast) var(--ease-out-quint);
}

.admin-sidebar-link:hover {
    color: var(--color-surface-white);
}

.admin-sidebar-link.is-active {
    color: var(--color-orange-400);
    font-weight: 600;
}

.admin-content {
    flex: 1 1 auto;
    min-width: 0;
    padding: var(--space-xl) var(--space-lg);
    max-width: 1440px;
}

.admin-page-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.admin-content h1 {
    margin-bottom: 0;
    text-wrap: balance;
}

.admin-link-btn {
    background: none;
    border: none;
    padding: 4px 2px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    color: var(--color-gold-600);
    cursor: pointer;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    transition: color var(--duration-fast) var(--ease-out-quint);
}

.admin-link-btn:hover {
    color: var(--color-accent-orange);
}

.admin-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.admin-summary-card {
    background: var(--color-surface-white);
    border-radius: var(--rounded-lg);
    box-shadow: var(--shadow-ambient-low);
    padding: var(--space-md) var(--space-md) 18px;
}

.admin-summary-number {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 36px;
    color: var(--color-ink-brun);
    margin: 0 0 4px;
    font-variant-numeric: tabular-nums;
}

.admin-summary-card p:last-child {
    font-size: 13px;
    color: #6b6b6b;
    margin: 0;
}

.admin-stats-lists {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.admin-stats-list {
    background: var(--color-surface-white);
    border-radius: var(--rounded-lg);
    box-shadow: var(--shadow-ambient-low);
    padding: var(--space-md);
}

.admin-stats-list h3 {
    margin: 0 0 10px;
    font-size: 14px;
    color: var(--color-ink-brun);
}

.admin-stats-list ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

.admin-stats-list li {
    display: flex;
    justify-content: space-between;
    gap: var(--space-sm);
    padding: 6px 0;
    border-bottom: 1px solid var(--color-border-hairline);
    font-size: 13px;
}

.admin-stats-list li:last-child {
    border-bottom: none;
}

.admin-stats-list-label {
    color: var(--color-ink-brun);
    overflow-wrap: anywhere;
}

.admin-stats-list-count {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    color: #6b6b6b;
    flex-shrink: 0;
}

.admin-summary-split {
    margin: 0 0 4px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 36px;
    font-variant-numeric: tabular-nums;
}

.admin-summary-split .is-visible {
    color: var(--admin-success);
}

.admin-summary-split .is-hidden {
    color: var(--admin-danger, #b3392c);
}

.admin-summary-split-sep {
    color: #b3aaa5;
    margin: 0 4px;
}

.admin-content h2 {
    font-size: 17px;
    margin-bottom: var(--space-sm);
}

.admin-section {
    margin-bottom: var(--space-xl);
    animation: admin-section-in var(--duration-base) var(--ease-out-quint) backwards;
}

.admin-summary,
.admin-stats-panel {
    animation: admin-section-in var(--duration-base) var(--ease-out-quint) backwards;
}

.admin-summary { animation-delay: 0ms; }
.admin-stats-panel { animation-delay: 60ms; }
.admin-grid-2 .admin-section:nth-child(1) { animation-delay: 120ms; }
.admin-grid-2 .admin-section:nth-child(2) { animation-delay: 180ms; }

@keyframes admin-section-in {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .admin-section,
    .admin-summary,
    .admin-stats-panel {
        animation: none;
    }
}

.admin-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: var(--space-md);
    border-bottom: 1px solid var(--admin-tint-brun-20);
}

.admin-tab-btn {
    border: none;
    background: transparent;
    padding: 10px 16px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-ink-brun);
    opacity: 0.6;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: opacity var(--duration-fast) var(--ease-out-quint), border-color var(--duration-fast) var(--ease-out-quint);
}

.admin-tab-btn:hover {
    opacity: 1;
}

.admin-tab-btn.is-active {
    opacity: 1;
    border-bottom-color: var(--color-accent-orange);
    font-weight: 700;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--color-surface-white);
    font-size: 13px;
    border-radius: var(--rounded-md);
    overflow: hidden;
    box-shadow: var(--shadow-ambient-low);
}

.admin-table th {
    text-align: left;
    padding: var(--space-xs) var(--space-sm);
    background: var(--color-surface-tint);
    font-weight: 500;
    font-size: 11px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #6b6b6b;
}

.admin-table td {
    text-align: left;
    padding: var(--space-xs) var(--space-sm);
    border-top: 1px solid var(--color-border-hairline);
}

.badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 999px;
}

.badge-success {
    background: rgba(46, 125, 79, 0.15);
    color: var(--admin-success);
}

.badge-info {
    background: rgba(190, 138, 62, 0.15);
    color: var(--color-gold-600);
}

.badge-muted {
    background: var(--color-surface-tint);
    color: #6b6b6b;
}

.admin-stats-panel {
    border: 1px dashed var(--admin-tint-brun-40);
    border-radius: var(--rounded-md);
    padding: var(--space-md);
    background: var(--color-surface-tint);
}

.admin-stats-panel h2 {
    margin-bottom: 4px;
}

.admin-stats-panel-placeholder {
    margin: 0;
    font-size: 13px;
    color: #6b6b6b;
}

.admin-grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-xl);
}

.admin-category-bars {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.admin-category-bar-label {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 4px;
}

.admin-category-bar-track {
    height: 8px;
    border-radius: 999px;
    background: var(--color-surface-tint);
    overflow: hidden;
}

.admin-category-bar-fill {
    height: 100%;
    border-radius: 999px;
    background: var(--color-gold-600);
    transform-origin: left;
    animation: admin-bar-reveal var(--duration-base) var(--ease-out-quint) backwards;
}

@keyframes admin-bar-reveal {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
    .admin-category-bar-fill {
        animation: none;
    }
}

.admin-audit-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.admin-audit-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 13px;
    padding: 6px 8px;
    margin: 0 -8px;
    border-radius: var(--rounded-sm);
    border-top: 1px solid var(--color-border-hairline);
    transition: background-color var(--duration-fast) var(--ease-out-quint);
}

.admin-audit-item:first-child {
    border-top: none;
}

.admin-audit-item:hover {
    background: var(--color-surface-tint);
}

.admin-audit-date {
    flex: none;
    color: #6b6b6b;
    font-size: 12px;
    white-space: nowrap;
}

.admin-audit-target {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-audit-list-full {
    max-height: 60vh;
    overflow-y: auto;
}

.admin-audit-list-full .admin-audit-target {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
}

.admin-audit-list-full .admin-audit-item {
    align-items: flex-start;
}

.badge-error {
    background: rgba(192, 57, 43, 0.15);
    color: var(--admin-error);
}

.admin-note {
    font-size: 13px;
    color: #6b6b6b;
    margin-top: var(--space-md);
}

.admin-note-success {
    color: var(--admin-success);
}

.admin-note-error {
    color: var(--admin-error);
}

.admin-edit-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: var(--space-md) var(--space-lg);
    background: var(--color-surface-white);
    padding: var(--space-lg);
    border-radius: var(--rounded-lg);
    box-shadow: var(--shadow-ambient-low);
}

.admin-edit-form .form-field-full,
.admin-edit-form > .btn {
    grid-column: 1 / -1;
}

.admin-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    justify-content: center;
}

.admin-edit-form .admin-form-actions {
    grid-column: 1 / -1;
}

.admin-divider {
    grid-column: 1 / -1;
    border: none;
    border-top: 1px solid var(--color-border-hairline);
    margin: var(--space-xl) 0;
}

.admin-edit-form .admin-divider {
    margin: 0;
}

.admin-form-section-title {
    grid-column: 1 / -1;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--color-tan-600);
    text-transform: uppercase;
    margin: var(--space-xs) 0 0;
}

.admin-title-field label {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-tan-600);
}

.admin-title-field input {
    border: none;
    border-bottom: 2px solid var(--admin-tint-brun-20);
    border-radius: 0;
    padding: 8px 0;
    background: transparent;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 28px;
    color: var(--color-ink-brun);
}

.admin-title-field input:focus {
    border-bottom-color: var(--color-accent-orange);
}

.admin-blocks {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.admin-block-item {
    padding: var(--space-md);
    background: var(--color-surface-tint);
    border-radius: var(--rounded-md);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.admin-block-remove {
    align-self: flex-start;
    border: none;
    background: transparent;
    color: #C0392B;
    font-size: 13px;
    padding: 4px 0;
}

.admin-block-remove:hover {
    text-decoration: underline;
}

.admin-ref-thumb-lg {
    width: 120px;
    height: 90px;
    object-fit: cover;
    border-radius: var(--rounded-sm);
    margin-bottom: 8px;
    display: block;
}

.admin-csv-import {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--color-surface-white);
    border-radius: var(--rounded-lg);
    box-shadow: var(--shadow-ambient-low);
    flex-wrap: wrap;
}

.admin-csv-import-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--rounded-sm);
    background: var(--color-surface-tint);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--color-accent-orange);
    flex: none;
}

.admin-csv-import-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-right: auto;
    min-width: 0;
}

.admin-csv-import-text span {
    font-size: 12px;
    color: #6b6b6b;
}

.admin-csv-import-form {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
    background: var(--color-ink-brun);
    color: #fff;
    padding: var(--space-sm) var(--space-md);
    box-shadow: var(--shadow-ambient-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
    transform: translateY(100%);
    transition: transform var(--duration-base) var(--ease-out-quint);
}

.cookie-banner.is-visible {
    transform: translateY(0);
}

.cookie-banner p {
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
    flex: 1 1 280px;
    max-width: 640px;
}

.cookie-banner a {
    color: var(--color-accent-orange);
    text-decoration: underline;
}

.cookie-banner-actions {
    display: flex;
    gap: 8px;
    flex: none;
}

.cookie-banner-actions button {
    padding: 6px 16px;
    font-size: 13px;
}

.cookie-banner-actions .btn-secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff;
}

.cookie-banner-actions .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

@media (prefers-reduced-motion: reduce) {
    .cookie-banner {
        transition: none;
    }
}

/* ============================================================
   Image carousel (homepage)
   ============================================================ */
.carousel {
    position: relative;
    overflow: hidden;
    border-radius: var(--rounded-lg);
    box-shadow: var(--shadow-ambient-low);
}

.carousel-track {
    display: flex;
    transition: transform var(--duration-base) var(--ease-out-quint);
}

.carousel-slide {
    flex: 0 0 100%;
    aspect-ratio: 16 / 9;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carousel-arrow {
    position: absolute;
    z-index: 3;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    color: var(--color-ink-brun);
    border: none;
    font-size: 22px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-ambient-low);
    transition: background-color var(--duration-fast) var(--ease-out-quint), scale var(--duration-fast) var(--ease-out-quint);
}

.carousel-arrow:hover {
    background: #fff;
}

.carousel-arrow:active {
    scale: 0.96;
}

.carousel-arrow-prev {
    left: var(--space-sm);
}

.carousel-arrow-next {
    right: var(--space-sm);
}

.carousel-dots {
    position: absolute;
    z-index: 3;
    bottom: var(--space-sm);
    right: var(--space-lg);
    left: auto;
    transform: none;
    display: flex;
    gap: 8px;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    padding: 6px;
    background-clip: content-box;
    cursor: pointer;
    transition: background-color var(--duration-fast) var(--ease-out-quint), scale var(--duration-fast) var(--ease-out-quint);
}

.carousel-dot.is-active {
    background-color: #fff;
    scale: 1.2;
}

@media (prefers-reduced-motion: reduce) {
    .carousel-track {
        transition: none;
    }
}

.admin-ref-thumb-sm {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: var(--rounded-sm);
    flex: none;
}

.admin-checkbox-field {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #6b6b6b;
}

.btn-danger-outline {
    background: transparent;
    border: 1px solid var(--admin-error);
    color: var(--admin-error);
}

.btn-danger-outline:hover {
    background: rgba(192, 57, 43, 0.08);
}

@media (max-width: 720px) {
    .admin-edit-form {
        grid-template-columns: 1fr;
    }
}

.admin-repeater {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.admin-repeater-row {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: var(--space-sm);
    padding-right: 52px;
    background: var(--color-surface-tint);
    border-radius: var(--rounded-md);
}

.admin-repeater-row input,
.admin-repeater-row textarea {
    font-family: var(--font-body);
    font-size: 14px;
    padding: 10px 12px;
    border: 1px solid var(--color-border-hairline);
    border-radius: var(--rounded-sm);
    background: var(--color-surface-white);
    color: var(--color-ink-brun);
}

.admin-repeater-remove {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    background: none;
    border: none;
    color: var(--admin-error);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: var(--rounded-sm);
    transition: background-color var(--duration-fast) var(--ease-out-quint);
}

.admin-repeater-remove:hover {
    background: rgba(192, 57, 43, 0.12);
}

.rte {
    position: relative;
    border: 1px solid var(--admin-tint-brun-20);
    border-radius: var(--rounded-md);
    overflow: hidden;
}

.rte-toolbar {
    display: flex;
    gap: 4px;
    padding: 6px;
    background: var(--color-surface-tint);
    border-bottom: 1px solid var(--admin-tint-brun-20);
}

.rte-btn {
    min-width: 32px;
    height: 32px;
    padding: 0 10px;
    border: none;
    border-radius: var(--rounded-sm);
    background: transparent;
    color: var(--color-ink-brun);
    font-family: var(--font-body);
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color var(--duration-fast) var(--ease-out-quint);
}

.rte-btn:hover {
    background: var(--admin-tint-orange-10);
}

.rte-btn strong,
.rte-btn em,
.rte-btn u {
    pointer-events: none;
}

.rte-toolbar-sep {
    width: 1px;
    align-self: stretch;
    margin: 4px 2px;
    background: var(--admin-tint-brun-20);
}

.rte-field {
    display: flex;
    align-items: center;
    height: 32px;
    gap: 4px;
    padding: 0 8px;
    border: 1px solid var(--admin-tint-brun-20);
    border-radius: var(--rounded-sm);
    background: var(--color-surface-white);
}

.rte-color-field {
    padding: 4px;
}

.rte-color-input {
    width: 22px;
    height: 22px;
    padding: 0;
    border: none;
    border-radius: 50%;
    cursor: pointer;
}

.rte-color-input::-webkit-color-swatch-wrapper {
    padding: 0;
    border-radius: 50%;
}

.rte-color-input::-webkit-color-swatch {
    border: 1px solid var(--admin-tint-brun-20);
    border-radius: 50%;
}

.rte-size-input {
    width: 42px;
    height: 100%;
    padding: 0;
    border: none;
    text-align: center;
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--color-ink-brun);
    background: transparent;
    -moz-appearance: textfield;
}

.rte-size-input:focus {
    outline: none;
}

.rte-size-input::-webkit-outer-spin-button,
.rte-size-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.rte-field-unit {
    font-size: 11px;
    color: var(--color-tan-600);
}

.rte-editor {
    min-height: 180px;
    padding: var(--space-sm);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    color: var(--color-ink-brun);
    outline: none;
}

.rte-editor p {
    margin: 0 0 12px;
    max-width: none;
}

.rte-editor p:last-child {
    margin-bottom: 0;
}

.rte-editor img {
    max-width: 100%;
    border-radius: var(--rounded-sm);
    margin: 8px 0;
    cursor: grab;
}

.rte-editor img.is-rte-selected {
    outline: 2px solid var(--color-orange-500, #F77321);
    outline-offset: 2px;
    cursor: grabbing;
}

.rte-editor img.is-rte-dragging {
    opacity: 0.5;
}

.rte-image-handle {
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--color-orange-500, #F77321);
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    cursor: nwse-resize;
    z-index: 20;
}

.rte-image-dropline {
    height: 2px;
    background: var(--color-orange-500, #F77321);
    margin: 4px 0;
    border-radius: 1px;
}

.rte-editor ul,
.rte-editor ol {
    margin: 0 0 12px;
    padding-left: 24px;
}

.admin-toast {
    position: fixed;
    right: var(--space-md);
    bottom: var(--space-md);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--color-brun-950);
    color: var(--color-surface-white);
    padding: 14px 20px;
    border-radius: var(--rounded-md);
    box-shadow: var(--shadow-ambient-medium);
    font-size: 14px;
    max-width: 320px;
    animation: admin-toast-in 240ms var(--ease-out-quint), admin-toast-out 240ms var(--ease-out-quint) 3.2s forwards;
}

.admin-toast-mark {
    flex: none;
    display: inline-block;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--admin-success);
    border-bottom: 2px solid var(--admin-success);
    transform: rotate(-45deg);
}

.admin-toast-error .admin-toast-mark {
    border-color: var(--admin-error);
}

.admin-toast-info .admin-toast-mark {
    border-color: var(--admin-info);
}

@keyframes admin-toast-in {
    from { transform: translateY(12px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes admin-toast-out {
    to { transform: translateY(12px); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .admin-toast {
        animation: admin-toast-out 0ms 3.2s forwards;
    }
}

.admin-login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-brun-950);
}

.admin-login {
    width: 100%;
    max-width: 360px;
    margin: 0;
    padding: var(--space-xl) var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    background: var(--color-surface-white);
    border-radius: var(--rounded-lg);
    box-shadow: var(--shadow-ambient-medium);
}

.admin-login-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.admin-login-brand img {
    height: 56px;
    width: 112px;
    max-width: none;
}

.admin-login h1 {
    font-size: 18px;
    text-align: center;
    margin: 0;
}

/* ============================================================
   Admin modals
   ============================================================ */
.admin-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
    background: rgba(44, 22, 23, 0);
    opacity: 0;
    pointer-events: none;
    transition: background-color var(--duration-base) var(--ease-out-quint), opacity var(--duration-base) var(--ease-out-quint);
}

.admin-modal-overlay:not([hidden]) {
    display: flex;
}

.admin-modal-overlay.is-open {
    background: rgba(44, 22, 23, 0.45);
    opacity: 1;
    pointer-events: auto;
}

.admin-modal {
    width: 100%;
    max-width: 560px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    background: var(--color-surface-white);
    border-radius: var(--rounded-lg);
    box-shadow: var(--shadow-ambient-medium);
    transform: translateY(8px) scale(0.98);
    opacity: 0;
    transition: transform var(--duration-base) var(--ease-out-quint), opacity var(--duration-base) var(--ease-out-quint);
}

.admin-modal-overlay.is-open .admin-modal {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.admin-modal-narrow {
    max-width: 400px;
}

.admin-modal-wide {
    max-width: 900px;
}

.admin-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-md) 0;
}

.admin-modal-head h2 {
    font-size: 17px;
    margin: 0;
}

.admin-modal-close {
    background: none;
    border: none;
    font-size: 22px;
    line-height: 1;
    color: #6b6b6b;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--rounded-sm);
    transition: background-color var(--duration-fast) var(--ease-out-quint), color var(--duration-fast) var(--ease-out-quint);
}

.admin-modal-close:hover {
    background: var(--color-surface-tint);
    color: var(--color-ink-brun);
}

.admin-modal-body {
    padding: var(--space-md);
    overflow-y: auto;
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.admin-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
}

.admin-form input {
    font-family: var(--font-body);
    font-size: 14px;
    padding: 10px 12px;
    border: 1px solid var(--color-border-hairline);
    border-radius: var(--rounded-sm);
    background: var(--color-surface-white);
    color: var(--color-ink-brun);
}

.admin-form input:focus {
    outline: none;
    border-color: var(--color-ink-brun);
}

.admin-form .btn {
    align-self: flex-start;
}
