/*
 * CroisSens RH — design system of the training platform.
 * Tokens extracted from www.croissens-rh.ch (Elementor kit 6, December 2026):
 *   primary #FFB503, secondary #B0006D, text #3E3E3E, accent #F7F0E6, background #FCF7F0, white
 *   logo colours #C4047F, #FDC41F, #878787 — typography Inter (400/500/600), card titles Nunito 700
 *   pill buttons (radius 50px, padding 15px 30px), cards radius 16px, 1px borders.
 * Deviation for accessibility: text on yellow is dark (#3E3E3E) instead of white.
 */

@font-face {
    font-family: 'Inter';
    src: url("../fonts/inter-latin-wght-normal-XNcuA7u.woff2") format('woff2-variations'), url("../fonts/inter-latin-wght-normal-XNcuA7u.woff2") format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Nunito';
    src: url("../fonts/nunito-latin-700-normal-Iq2sL9O.woff2") format('woff2');
    font-weight: 700;
    font-display: swap;
}
@font-face {
    font-family: 'Nunito';
    src: url("../fonts/nunito-latin-800-normal-oV2Uaer.woff2") format('woff2');
    font-weight: 800;
    font-display: swap;
}

:root {
    --cr-yellow: #FFB503;
    --cr-yellow-logo: #FDC41F;
    --cr-yellow-soft: #FFB5032E;
    --cr-magenta: #B0006D;
    --cr-magenta-logo: #C4047F;
    --cr-magenta-dark: #8A0056;
    --cr-text: #3E3E3E;
    --cr-grey: #878787;
    --cr-muted: #6B6B6B;
    --cr-beige: #F7F0E6;
    --cr-cream: #FCF7F0;
    --cr-white: #FFFFFF;
    --cr-border: #E9DFD1;
    --cr-success: #2E7D4F;
    --cr-success-bg: #E6F3EB;
    --cr-danger: #B3261E;
    --cr-danger-bg: #FBE9E7;
    --cr-info-bg: #FFF4DA;

    --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-title: 'Nunito', 'Inter', sans-serif;
    --radius-card: 16px;
    --radius-pill: 50px;
    --radius-sm: 10px;
    --shadow: 0 8px 28px rgba(62, 62, 62, .08);
    --shadow-hover: 0 14px 36px rgba(62, 62, 62, .14);
    --container: 1200px;
    --gutter: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.6;
    color: var(--cr-text);
    background: var(--cr-cream);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cr-text); text-decoration-color: rgba(176, 0, 109, .35); text-underline-offset: 3px; transition: color .2s; }
a:hover { color: var(--cr-magenta); }
h1, h2, h3, h4 { font-family: var(--font); font-weight: 600; line-height: 1.25; margin: 0 0 .6em; color: var(--cr-text); }
h1 { font-size: clamp(30px, 4vw, 50px); }
h2 { font-size: clamp(24px, 2.4vw, 28px); }
h3 { font-size: 20px; }
h4 { font-size: 18px; font-weight: 500; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--cr-yellow); outline-offset: 2px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--cr-white); padding: 8px 16px; z-index: 100; border-radius: var(--radius-sm); }
.skip-link:focus { left: 8px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: 760px; }
.section { padding: clamp(48px, 7vw, 90px) 0; }
.section-white { background: var(--cr-white); }
.section-beige { background: var(--cr-beige); }
.section-yellow { background: var(--cr-yellow-soft); }
.eyebrow { font-family: var(--font-title); font-weight: 700; color: var(--cr-magenta); font-size: 16px; letter-spacing: .02em; margin-bottom: .5em; display: block; }
.lead { font-size: 20px; color: var(--cr-text); }
.muted { color: var(--cr-muted); }
.small { font-size: 14px; }
.text-center { text-align: center; }
.stack > * + * { margin-top: 1rem; }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.flex { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.flex-between { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }

/* --- Header ------------------------------------------------------------------------------- */
.topbar { background: var(--cr-beige); font-size: 14px; }
.topbar .container { display: flex; justify-content: space-between; gap: 12px; padding-top: 6px; padding-bottom: 6px; flex-wrap: wrap; }
.topbar a { text-decoration: none; }
.site-header { background: var(--cr-cream); position: sticky; top: 0; z-index: 40; border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.is-scrolled { border-bottom-color: var(--cr-border); box-shadow: 0 2px 18px rgba(62, 62, 62, .06); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; min-height: 100px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand img { width: 150px; }
.brand-tag { font-family: var(--font-title); font-weight: 800; color: var(--cr-magenta); font-size: 15px; border-left: 2px solid var(--cr-yellow); padding-left: 12px; line-height: 1.2; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px 26px; align-items: center; }
.main-nav a { text-decoration: none; font-size: 18px; color: var(--cr-text); }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--cr-magenta); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--cr-text); }
.nav-toggle svg { width: 28px; height: 28px; }
@media (min-width: 1025px) { .brand img { width: 180px; } }
@media (max-width: 1024px) {
    .nav-toggle { display: block; }
    .main-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--cr-cream); box-shadow: 0 18px 30px rgba(62, 62, 62, .1); display: none; }
    .main-nav.is-open { display: block; }
    .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 20px; }
    .main-nav li a { display: block; padding: 12px 0; font-size: 16px; border-bottom: 1px solid var(--cr-border); }
    .main-nav .btn { margin-top: 12px; }
}

/* --- Buttons ------------------------------------------------------------------------------ */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 12px;
    font: 400 16px/1.2 var(--font); padding: 15px 30px; border-radius: var(--radius-pill);
    border: 1px solid transparent; background: var(--cr-magenta); color: var(--cr-white);
    text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .1s;
    white-space: nowrap;
}
.btn:hover, .btn:focus-visible { background: var(--cr-yellow); color: var(--cr-text); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn-yellow { background: var(--cr-yellow); color: var(--cr-text); }
.btn-yellow:hover, .btn-yellow:focus-visible { background: var(--cr-magenta); color: var(--cr-white); }
.btn-outline { background: transparent; color: var(--cr-magenta); border-color: var(--cr-magenta); }
.btn-outline:hover, .btn-outline:focus-visible { background: var(--cr-magenta); color: var(--cr-white); }
.btn-ghost { background: transparent; color: var(--cr-text); border-color: var(--cr-border); }
.btn-ghost:hover { background: var(--cr-beige); color: var(--cr-text); }
.btn-danger { background: var(--cr-danger); color: #fff; }
.btn-danger:hover { background: #8e1d17; color: #fff; }
.btn-sm { padding: 8px 18px; font-size: 14px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .5; pointer-events: none; }
.link-btn { background: none; border: 0; padding: 0; color: var(--cr-magenta); cursor: pointer; font: inherit; text-decoration: underline; }

/* --- Hero --------------------------------------------------------------------------------- */
.hero { padding: clamp(56px, 8vw, 90px) 0 clamp(40px, 6vw, 70px); text-align: center; background: linear-gradient(180deg, var(--cr-cream) 0%, var(--cr-cream) 60%, var(--cr-yellow-soft) 100%); }
.hero h1 { max-width: 920px; margin-left: auto; margin-right: auto; }
.hero .lead { max-width: 720px; margin: 0 auto 28px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.page-head { padding: 48px 0 24px; }
.page-head h1 { font-size: clamp(28px, 3.4vw, 42px); }
.breadcrumb { font-size: 14px; color: var(--cr-muted); margin-bottom: 12px; }
.breadcrumb a { color: var(--cr-muted); }

/* --- Cards -------------------------------------------------------------------------------- */
.card { background: var(--cr-white); border: 1px solid var(--cr-border); border-radius: var(--radius-card); padding: 28px; }
.card-flat { background: var(--cr-beige); border-color: transparent; }
.card-title { font-family: var(--font-title); font-weight: 700; font-size: 20px; color: var(--cr-magenta); margin: 0 0 8px; }
.course-card { display: flex; flex-direction: column; background: var(--cr-white); border: 1px solid var(--cr-border); border-radius: var(--radius-card); overflow: hidden; transition: box-shadow .25s, transform .25s; text-decoration: none; color: inherit; }
.course-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); color: inherit; }
.course-card-media { aspect-ratio: 16/9; background: var(--cr-beige); position: relative; overflow: hidden; }
.course-card-media img { width: 100%; height: 100%; object-fit: cover; }
.course-card-media .placeholder { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(circle at 30% 30%, var(--cr-yellow-soft), var(--cr-beige)); }
.course-card-media .placeholder svg { width: 64px; height: 64px; fill: var(--cr-magenta); opacity: .75; }
.course-card-body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.course-card-body h3 { font-family: var(--font-title); font-weight: 700; color: var(--cr-magenta); font-size: 21px; margin: 0; }
.course-card-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; color: var(--cr-muted); }
.course-card-meta span { display: inline-flex; align-items: center; gap: 6px; }
.course-card-meta svg { width: 16px; height: 16px; fill: var(--cr-yellow); }
.course-card-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding-top: 12px; border-top: 1px solid var(--cr-border); }
.price { font-weight: 600; font-size: 20px; }
.price small { font-size: 13px; font-weight: 400; color: var(--cr-muted); }
.icon-feature { display: flex; gap: 16px; align-items: flex-start; }
.icon-feature .ico { flex: 0 0 52px; height: 52px; border-radius: 50%; background: var(--cr-yellow-soft); display: grid; place-items: center; }
.icon-feature .ico svg { width: 26px; height: 26px; fill: var(--cr-magenta); }

/* --- Badges, progress ------------------------------------------------------------------------ */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; padding: 3px 12px; border-radius: var(--radius-pill); background: var(--cr-beige); color: var(--cr-text); white-space: nowrap; }
.badge-magenta { background: rgba(176, 0, 109, .1); color: var(--cr-magenta); }
.badge-yellow { background: var(--cr-yellow-soft); color: #6b4c00; }
.badge-success { background: var(--cr-success-bg); color: var(--cr-success); }
.badge-danger { background: var(--cr-danger-bg); color: var(--cr-danger); }
.badge-grey { background: #eee; color: var(--cr-muted); }
.progress { height: 10px; background: var(--cr-beige); border-radius: var(--radius-pill); overflow: hidden; }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--cr-yellow), var(--cr-magenta)); border-radius: inherit; transition: width .5s; }
.progress-label { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 6px; }
.ring { --p: 0; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--cr-magenta) calc(var(--p) * 1%), var(--cr-beige) 0); font-weight: 600; font-size: 14px; }
.ring::before { content: ''; grid-area: 1/1; width: 50px; height: 50px; border-radius: 50%; background: var(--cr-white); }
.ring span { grid-area: 1/1; z-index: 1; }

/* --- Forms -------------------------------------------------------------------------------- */
label, .label { display: block; font-weight: 500; margin-bottom: 6px; font-size: 15px; }
input:not([type]), input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=datetime-local], input[type=search], input[type=url], input[type=tel], select, textarea {
    width: 100%; font: inherit; font-size: 16px; color: var(--cr-text); background: var(--cr-white);
    border: 1px solid #D8CCBB; border-radius: var(--radius-sm); padding: 11px 14px; transition: border-color .2s, box-shadow .2s;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--cr-magenta); box-shadow: 0 0 0 3px rgba(176, 0, 109, .15); }
input[type=checkbox], input[type=radio] { accent-color: var(--cr-magenta); width: 18px; height: 18px; vertical-align: -3px; margin-right: 8px; }
.form-row { margin-bottom: 18px; }
.form-grid { display: grid; gap: 0 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.form-help, .help-text { font-size: 13px; color: var(--cr-muted); margin-top: 4px; }
.form-error, ul.form-errors { color: var(--cr-danger); font-size: 14px; margin: 6px 0 0; padding: 0; list-style: none; }
.checkbox-row label { display: inline; font-weight: 400; }
fieldset { border: 1px solid var(--cr-border); border-radius: var(--radius-card); padding: 18px 20px 6px; margin: 0 0 20px; }
legend { font-weight: 600; padding: 0 8px; }
.auth-card { max-width: 480px; margin: 40px auto 80px; }

/* --- Flash / alerts -------------------------------------------------------------------------- */
.alert { border-radius: var(--radius-sm); padding: 14px 18px; margin-bottom: 18px; border-left: 4px solid; background: var(--cr-white); }
.alert-success { border-color: var(--cr-success); background: var(--cr-success-bg); }
.alert-danger, .alert-error { border-color: var(--cr-danger); background: var(--cr-danger-bg); }
.alert-warning, .alert-info { border-color: var(--cr-yellow); background: var(--cr-info-bg); }

/* --- Tables ------------------------------------------------------------------------------- */
.table-wrap { overflow-x: auto; background: var(--cr-white); border: 1px solid var(--cr-border); border-radius: var(--radius-card); }
table.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th, .table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--cr-border); vertical-align: middle; }
.table th { font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .03em; color: var(--cr-muted); background: var(--cr-cream); white-space: nowrap; }
.table th a { color: inherit; text-decoration: none; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #fffcf6; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 20px; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 6px 14px; border-radius: var(--radius-pill); text-decoration: none; background: var(--cr-white); border: 1px solid var(--cr-border); font-size: 14px; }
.pagination .current { background: var(--cr-magenta); color: #fff; border-color: var(--cr-magenta); }
.filters { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 18px; }
.filters > div { min-width: 160px; flex: 1 1 160px; }
.filters .btn { flex: 0 0 auto; }

/* --- Footer ------------------------------------------------------------------------------- */
.site-footer { background: var(--cr-beige); padding: 60px 0 24px; margin-top: 0; font-size: 15px; }
.site-footer .cols { display: grid; gap: 32px; grid-template-columns: 2fr 1fr 1fr; }
.site-footer h4 { font-family: var(--font-title); font-weight: 700; color: var(--cr-magenta); font-size: 17px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { text-decoration: none; }
.site-footer .legal { border-top: 1px solid var(--cr-border); margin-top: 40px; padding-top: 18px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--cr-muted); }
.footer-cta { background: var(--cr-yellow-soft); text-align: center; padding: 56px 0; }
@media (max-width: 800px) { .site-footer .cols { grid-template-columns: 1fr; } }

/* --- Course page ---------------------------------------------------------------------------- */
.course-hero { display: grid; gap: 40px; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: start; padding: 48px 0; }
.course-hero .cover { border-radius: var(--radius-card); overflow: hidden; aspect-ratio: 16/9; background: var(--cr-beige); }
.course-hero .cover img { width: 100%; height: 100%; object-fit: cover; }
.buy-box { position: sticky; top: 120px; }
.buy-box .price { font-size: 30px; }
.objectives { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.objectives li { padding-left: 34px; position: relative; }
.objectives li::before { content: ''; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--cr-yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%233E3E3E' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/14px no-repeat; }
@media (max-width: 900px) { .course-hero { grid-template-columns: 1fr; } .buy-box { position: static; } }
.programme { border: 1px solid var(--cr-border); border-radius: var(--radius-card); background: var(--cr-white); overflow: hidden; }
.programme-module { border-bottom: 1px solid var(--cr-border); }
.programme-module:last-child { border-bottom: 0; }
.programme-module > h3 { margin: 0; padding: 18px 22px; font-size: 17px; background: var(--cr-cream); display: flex; justify-content: space-between; gap: 12px; }
.lesson-list { list-style: none; margin: 0; padding: 0; }
.lesson-list li { display: flex; align-items: center; gap: 14px; padding: 13px 22px; border-top: 1px solid var(--cr-border); }
.lesson-list li:first-child { border-top: 0; }
.lesson-list .state { flex: 0 0 26px; height: 26px; border-radius: 50%; border: 2px solid var(--cr-border); display: grid; place-items: center; }
.lesson-list .state svg { width: 14px; height: 14px; fill: #fff; }
.lesson-list .state.done { background: var(--cr-success); border-color: var(--cr-success); }
.lesson-list .state.started { border-color: var(--cr-yellow); background: conic-gradient(var(--cr-yellow) calc(var(--p, 50) * 1%), transparent 0); }
.lesson-list .title { flex: 1; min-width: 0; }
.lesson-list a.title { text-decoration: none; }
.lesson-list .is-current { background: var(--cr-yellow-soft); }
.lesson-list .dur { color: var(--cr-muted); font-size: 14px; font-variant-numeric: tabular-nums; }

/* --- Player ------------------------------------------------------------------------------- */
.player-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; padding: 28px 0 60px; }
@media (max-width: 1024px) { .player-layout { grid-template-columns: 1fr; } }
.player { position: relative; background: #111; border-radius: var(--radius-card); overflow: hidden; aspect-ratio: 16/9; }
.player video { width: 100%; height: 100%; display: block; background: #000; }
.player-overlay { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; text-align: center; padding: 24px; background: rgba(30, 20, 25, .82); color: #fff; z-index: 5; }
.player-overlay.is-visible { display: flex; }
.player-overlay .box { max-width: 460px; }
.player-overlay h3 { color: #fff; }
.player-overlay .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .5); }
.player-overlay .btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.player-watermark { position: absolute; z-index: 4; pointer-events: none; color: rgba(255, 255, 255, .35); font-size: 13px; text-shadow: 0 0 2px rgba(0, 0, 0, .6); transition: top 2s, left 2s; user-select: none; }
.player-tools { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 12px; font-size: 14px; }
.player-tools select { width: auto; padding: 6px 10px; font-size: 14px; }
.player-tools .spacer { flex: 1; }
.chapters { list-style: none; padding: 0; margin: 0; }
.chapters button { background: none; border: 0; padding: 6px 0; cursor: pointer; font: inherit; color: var(--cr-text); text-align: left; display: flex; gap: 10px; }
.chapters button:hover { color: var(--cr-magenta); }
.chapters .t { color: var(--cr-muted); font-variant-numeric: tabular-nums; min-width: 48px; }

/* --- Learner dashboard ------------------------------------------------------------------------ */
.dash-hero { background: var(--cr-white); border-bottom: 1px solid var(--cr-border); padding: 36px 0; }
.continue-card { display: grid; grid-template-columns: 240px 1fr; gap: 24px; align-items: center; }
.continue-card .thumb { border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 16/9; background: var(--cr-beige); }
.continue-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 640px) { .continue-card { grid-template-columns: 1fr; } }
.enrol-card { display: flex; flex-direction: column; gap: 12px; }
.stat-row { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; color: var(--cr-muted); }

/* --- Admin -------------------------------------------------------------------------------- */
.admin-body { background: #FAF6F0; }
.admin-shell { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: 100vh; }
.admin-side { background: var(--cr-white); border-right: 1px solid var(--cr-border); padding: 20px 16px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.admin-side .brand img { width: 130px; }
.admin-side nav { margin-top: 24px; }
.admin-side h5 { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--cr-grey); margin: 18px 10px 6px; }
.admin-side a { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: var(--radius-sm); text-decoration: none; font-size: 15px; }
.admin-side a:hover { background: var(--cr-cream); color: var(--cr-text); }
.admin-side a.active { background: rgba(176, 0, 109, .08); color: var(--cr-magenta); font-weight: 500; }
.admin-side svg { width: 18px; height: 18px; fill: currentColor; opacity: .8; }
.admin-main { padding: 24px clamp(16px, 3vw, 40px) 60px; min-width: 0; }
.admin-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.admin-top h1 { font-size: 28px; margin: 0; }
.admin-menu-toggle { display: none; }
@media (max-width: 960px) {
    .admin-shell { grid-template-columns: 1fr; }
    .admin-side { position: fixed; z-index: 50; left: 0; width: 280px; transform: translateX(-100%); transition: transform .25s; box-shadow: var(--shadow-hover); }
    .admin-side.is-open { transform: none; }
    .admin-menu-toggle { display: inline-flex; }
}
.kpis { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); margin-bottom: 28px; }
.kpi { background: var(--cr-white); border: 1px solid var(--cr-border); border-radius: var(--radius-card); padding: 18px 20px; }
.kpi .v { font-size: 28px; font-weight: 600; line-height: 1.1; }
.kpi .l { font-size: 13px; color: var(--cr-muted); margin-top: 4px; }
.kpi.accent { border-top: 4px solid var(--cr-magenta); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--cr-border); margin-bottom: 22px; overflow-x: auto; }
.tabs a { padding: 10px 16px; text-decoration: none; border-bottom: 3px solid transparent; white-space: nowrap; }
.tabs a.active { border-bottom-color: var(--cr-magenta); color: var(--cr-magenta); font-weight: 500; }
.dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin: 0; }
.dl dt { color: var(--cr-muted); font-size: 14px; }
.dl dd { margin: 0; }
.dropzone { border: 2px dashed #D8CCBB; border-radius: var(--radius-card); padding: 48px 24px; text-align: center; background: var(--cr-white); transition: border-color .2s, background .2s; cursor: pointer; }
.dropzone.is-over { border-color: var(--cr-magenta); background: rgba(176, 0, 109, .04); }
.dropzone svg { width: 48px; height: 48px; fill: var(--cr-magenta); margin: 0 auto 10px; }
.upload-item { background: var(--cr-white); border: 1px solid var(--cr-border); border-radius: var(--radius-sm); padding: 14px 16px; margin-top: 12px; }
.upload-item .row { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; font-size: 14px; }
.thumb-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.thumb-pick label { position: relative; cursor: pointer; border-radius: var(--radius-sm); overflow: hidden; border: 3px solid transparent; margin: 0; }
.thumb-pick input { position: absolute; opacity: 0; }
.thumb-pick input:checked + img { outline: 3px solid var(--cr-magenta); outline-offset: -3px; }
.sortable-handle { cursor: grab; color: var(--cr-grey); }
.code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; background: var(--cr-beige); padding: 2px 6px; border-radius: 6px; word-break: break-all; }
pre.log { background: #2b2b2b; color: #eee; padding: 14px; border-radius: var(--radius-sm); overflow-x: auto; font-size: 12px; max-height: 320px; }
.bar-chart { display: flex; align-items: flex-end; gap: 4px; height: 160px; padding-top: 10px; }
.bar-chart .bar { flex: 1; background: var(--cr-yellow); border-radius: 4px 4px 0 0; min-height: 2px; position: relative; }
.bar-chart .bar:hover { background: var(--cr-magenta); }
.bar-axis { display: flex; justify-content: space-between; font-size: 12px; color: var(--cr-muted); margin-top: 6px; }
.empty { text-align: center; padding: 40px 20px; color: var(--cr-muted); }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.3em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .3em; }
details.disclosure { background: var(--cr-white); border: 1px solid var(--cr-border); border-radius: var(--radius-sm); padding: 12px 16px; margin-bottom: 10px; }
details.disclosure summary { cursor: pointer; font-weight: 500; }
@media print { .site-header, .site-footer, .topbar, .admin-side { display: none; } }
