:root {
    color-scheme: dark;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #080d18;
    color: #edf2f7;
    --bg: #080d18;
    --surface: rgba(18, 28, 48, .78);
    --surface-solid: #121c30;
    --surface-soft: #17243c;
    --border: rgba(148, 163, 184, .18);
    --muted: #9aa9bf;
    --accent: #72a7ff;
    --accent-strong: #4f8df7;
    --accent-soft: rgba(114, 167, 255, .12);
    --success: #6ee7b7;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at 15% 0%, rgba(55, 105, 190, .18), transparent 34rem),
        radial-gradient(circle at 90% 20%, rgba(106, 65, 190, .12), transparent 30rem),
        var(--bg);
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image: linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
    background-size: 4rem 4rem;
    content: "";
    mask-image: linear-gradient(to bottom, black, transparent 80%);
    pointer-events: none;
}

a { color: inherit; }

.site-nav,
.admin-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .35rem .5rem;
    width: min(90%, 1180px);
    margin: 1.25rem auto 0;
    padding: .45rem;
    border: 1px solid var(--border);
    border-radius: 1rem;
    background: rgba(12, 20, 35, .72);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, .16);
    backdrop-filter: blur(1rem);
}

.site-nav a,
.admin-nav a {
    padding: .65rem .9rem;
    border-radius: .7rem;
    color: var(--muted);
    font-size: .92rem;
    text-decoration: none;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}

.nav-brand { margin-right: auto; color: #f8fafc !important; font-weight: 750; letter-spacing: .04em; }
.nav-links,
.admin-links { display: flex; align-items: center; gap: .35rem .5rem; }
.menu-toggle {
    display: none;
    align-items: center;
    gap: .65rem;
    padding: .55rem .7rem;
    border: 1px solid var(--border);
    border-radius: .65rem;
    background: transparent;
    color: #e5e7eb;
    font: inherit;
    cursor: pointer;
}
.menu-toggle-icon { display: grid; gap: .22rem; }
.menu-toggle-icon i { display: block; width: 1.15rem; height: 2px; background: currentColor; transition: transform .2s ease; }
.site-nav.is-open .menu-toggle-icon i:nth-child(1),
.admin-nav.is-open .menu-toggle-icon i:nth-child(1) { transform: translateY(.31rem) rotate(45deg); }
.site-nav.is-open .menu-toggle-icon i:nth-child(2),
.admin-nav.is-open .menu-toggle-icon i:nth-child(2) { opacity: 0; }
.site-nav.is-open .menu-toggle-icon i:nth-child(3),
.admin-nav.is-open .menu-toggle-icon i:nth-child(3) { transform: translateY(-.31rem) rotate(-45deg); }
.site-nav a:hover,
.site-nav a:focus-visible,
.admin-nav a:hover,
.admin-nav a:focus-visible { background: var(--accent-soft); color: #fff; }
.admin-nav a, .admin-nav button { font-family: inherit; }
.admin-nav a { display: inline-flex; align-items: center; gap: .4rem; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.menu-icon { flex: 0 0 auto; width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }

.admin-nav { padding: .85rem 1rem; }
.admin-nav strong { margin-right: auto; color: var(--accent); font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; }
.profile-menu, .nav-dropdown { position: relative; margin-left: .25rem; }
.nav-dropdown-toggle { display: inline-flex; align-items: center; gap: .4rem; padding: .65rem .9rem; border: 0; border-radius: .7rem; background: transparent; color: var(--muted); font: inherit; font-size: .92rem; cursor: pointer; transition: background .2s ease, color .2s ease, transform .2s ease; }
.nav-dropdown-toggle:hover, .nav-dropdown-toggle:focus-visible, .nav-dropdown.is-open .nav-dropdown-toggle { background: var(--accent-soft); color: #fff; }
.nav-dropdown-panel { position: absolute; top: calc(100% + .5rem); left: 0; z-index: 30; min-width: 11rem; padding: .4rem; border: 1px solid var(--border); border-radius: .75rem; background: #101b2f; box-shadow: 0 .8rem 2rem rgba(0, 0, 0, .28); }
.nav-dropdown-panel[hidden] { display: none; }
.nav-dropdown-panel a { display: block; white-space: nowrap; }
.profile-menu-toggle { display: flex; align-items: center; gap: .5rem; padding: .35rem .65rem .35rem .4rem; border: 1px solid var(--border); border-radius: 2rem; background: rgba(24, 38, 65, .7); color: #e5e7eb; font: inherit; cursor: pointer; }
.profile-menu-toggle:hover, .profile-menu-toggle:focus-visible { border-color: rgba(114, 167, 255, .65); background: var(--accent-soft); }
.profile-menu-toggle img { width: 2rem; height: 2rem; border-radius: 50%; }
.profile-menu-dropdown { position: absolute; top: calc(100% + .5rem); right: 0; z-index: 30; min-width: 10rem; padding: .4rem; border: 1px solid var(--border); border-radius: .75rem; background: #101b2f; box-shadow: 0 .8rem 2rem rgba(0, 0, 0, .28); }
.profile-menu-dropdown[hidden] { display: none; }
.profile-menu:hover > .profile-menu-dropdown,
.profile-menu:focus-within > .profile-menu-dropdown,
.nav-dropdown:hover > .nav-dropdown-panel,
.nav-dropdown:focus-within > .nav-dropdown-panel { display: block; }
.profile-menu-dropdown a { display: block; white-space: nowrap; }


.container {
    flex: 1 0 auto;
    width: min(90%, 1180px);
    margin: 0 auto;
    padding: 4rem 0 5rem;
}

.hero {
    position: relative;
    isolation: isolate;
    max-width: 900px;
    margin: 0 auto;
    padding: clamp(4rem, 10vw, 7rem) 2rem;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 2rem;
    background: linear-gradient(135deg, rgba(31, 58, 103, .72), rgba(19, 29, 51, .76) 58%, rgba(43, 29, 76, .58));
    box-shadow: 0 2rem 6rem rgba(0, 0, 0, .24);
    text-align: center;
}

.hero::before,
.hero::after {
    position: absolute;
    z-index: -1;
    width: 18rem;
    height: 18rem;
    border-radius: 50%;
    background: rgba(114, 167, 255, .16);
    content: "";
    filter: blur(1rem);
}

.hero::before { top: -11rem; left: -6rem; }
.hero::after { right: -8rem; bottom: -12rem; background: rgba(168, 113, 255, .14); }

.eyebrow {
    margin: 0 0 .9rem;
    color: var(--accent);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 760px;
    margin: 0 auto 1.25rem;
    color: #f8fafc;
    font-size: clamp(2.15rem, 4.5vw, 3.8rem);
    line-height: 1.05;
    letter-spacing: -.04em;
}

.hero .intro,
.hero .description {
    max-width: 43rem;
    margin: 0 auto;
    line-height: 1.7;
}

.hero .intro { color: #d6e2f5; font-size: clamp(1.05rem, 2vw, 1.3rem); }
.hero .description { margin-top: .7rem; color: var(--muted); }

.home-section {
    width: 100%;
    margin: 5.5rem auto 0;
}

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

.section-heading h2 { margin: 0; color: #f1f5f9; font-size: clamp(1.45rem, 3vw, 2rem); letter-spacing: -.03em; }
.section-link { color: var(--accent); font-size: .9rem; text-decoration: none; white-space: nowrap; }
.section-link:hover { color: #fff; text-decoration: underline; }

.feature-grid,
.content-list-grid,
.admin-dashboard-grid,
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.feature-card,
.content-item,
.content-card {
    border: 1px solid var(--border);
    border-radius: 1.1rem;
    background: linear-gradient(145deg, rgba(24, 38, 65, .88), rgba(14, 23, 40, .9));
    box-shadow: 0 .8rem 2rem rgba(0, 0, 0, .12);
}

.feature-card {
    display: block;
    min-height: 13rem;
    padding: 1.5rem;
    text-decoration: none;
    transition: border-color .2s ease, transform .2s ease, background .2s ease;
}

.feature-card:hover,
.feature-card:focus-visible { border-color: rgba(114, 167, 255, .65); background: var(--surface-soft); transform: translateY(-.35rem); }
.feature-icon { color: var(--accent); font-size: .72rem; font-weight: 800; letter-spacing: .18em; }
.feature-card h3 { margin: 2.5rem 0 .55rem; color: #f8fafc; font-size: 1.2rem; }
.feature-card p,
.content-item p,
.empty-state { color: var(--muted); line-height: 1.65; }

.content-list { display: grid; gap: 1rem; }
.content-item { min-height: 100%; padding: 1.35rem; }
.content-item h2,
.content-item h3 { margin: 0 0 .65rem; color: #f8fafc; }
.podcast-item__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.podcast-item__header h2 { margin: 0; }
.podcast-listen-button { display: inline-block; flex: 0 0 auto; padding: .55rem .75rem; border: 1px solid var(--accent); border-radius: .5rem; background: var(--accent-strong); color: #fff; font-size: .82rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.podcast-listen-button:hover { background: #6ca3ff; color: #fff; }
.content-title-link { color: inherit; text-decoration: none; }
.content-title-link:hover { color: var(--accent); }
.podcast-card,
.article-card { display: block; text-decoration: none; color: inherit; transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.podcast-card:hover,
.article-card:hover { border-color: rgba(114, 167, 255, .65); background: var(--surface-soft); transform: translateY(-.35rem); }
.content-item-category { margin: 0 0 .55rem; color: var(--accent) !important; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.content-read-link { display: inline-block; margin-top: 1rem; padding: .55rem .8rem; border: 1px solid var(--accent); border-radius: .5rem; background: var(--accent-strong); color: #fff; font-size: .85rem; font-weight: 700; text-decoration: none; }
.content-read-link:hover { background: #6ca3ff; color: #fff; }
.content-item small { color: #8293ad; font-size: .78rem; }
.media-missing { display: block; margin-top: 1rem; color: #fbbf24 !important; }
.content-item audio { display: block; width: 100%; margin-top: 1rem; }

.content-card { width: min(100%, 58rem); margin: 0 auto; padding: clamp(1.4rem, 4vw, 2.5rem); }
.content-card.wide { width: min(100%, 76rem); }
.admin-container > .content-card { width: 80%; max-width: none; }
.content-card h1 { margin-top: 0; color: #f8fafc; letter-spacing: -.04em; }
.content-card .lead { max-width: 48rem; color: #d6e2f5; font-size: 1.1rem; line-height: 1.75; }
.error-card { text-align: center; }
.error-card .error-code { margin: 0; color: var(--accent); font-size: clamp(4rem, 12vw, 8rem); font-weight: 800; line-height: .9; letter-spacing: -.08em; }
.error-card .lead { margin: 0 auto 2rem; }

.values-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 2rem; }
.values-grid article { padding: 1.25rem 0; border-top: 1px solid var(--border); }
.values-grid h2 { margin: 0 0 .5rem; font-size: 1.05rem; }
.values-grid p { margin: 0; color: var(--muted); line-height: 1.6; }

.empty-state { padding: 1.5rem; border: 1px dashed var(--border); border-radius: 1rem; }
.legal-date { color: #8293ad; font-size: .85rem; }
.legal-section { padding-top: 1.25rem; margin-top: 1.25rem; border-top: 1px solid var(--border); }
.legal-section h2 { margin-bottom: .65rem; font-size: 1.15rem; }
.legal-section p { color: var(--muted); line-height: 1.7; }
.form-error { padding: .9rem 1rem; border: 1px solid rgba(248, 113, 113, .4); border-radius: .75rem; background: rgba(127, 29, 29, .35); color: #fecaca; }
.form-success { padding: .9rem 1rem; border: 1px solid rgba(110, 231, 183, .35); border-radius: .75rem; background: rgba(6, 78, 59, .35); color: #a7f3d0; }
.form-warning { padding: .9rem 1rem; border: 1px solid rgba(251, 191, 36, .4); border-radius: .75rem; background: rgba(120, 53, 15, .35); color: #fde68a; }
.auto-dismiss { transition: opacity .4s ease, transform .4s ease, max-height .4s ease, margin .4s ease, padding .4s ease; overflow: hidden; }
.auto-dismiss.is-dismissing { max-height: 0; margin-top: 0; margin-bottom: 0; padding-top: 0; padding-bottom: 0; border-width: 0; opacity: 0; transform: translateY(-.35rem); }
.form-error p { margin: 0; }
.confirmation-card { text-align: center; }
.confirmation-icon { display: grid; place-items: center; width: 3rem; height: 3rem; margin: 0 auto 1rem; border-radius: 50%; background: rgba(110, 231, 183, .14); color: var(--success); font-size: 1.5rem; font-weight: 700; }
.confirmation-details { max-width: 32rem; margin: 2rem auto; text-align: left; }
.confirmation-details div { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--border); }
.confirmation-details dt { color: var(--muted); }
.confirmation-details dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.profile-details { max-width: 48rem; margin: 1.5rem 0 2rem; }
.profile-details div { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--border); }
.profile-details dt { color: var(--muted); }
.profile-details dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.profile-section-title { margin: 2rem 0 .5rem; color: #f8fafc; font-size: 1.15rem; }
.form-help { color: var(--muted); }
.admin-actions, .inline-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.admin-button-danger { border-color: rgba(248, 113, 113, .45); background: rgba(127, 29, 29, .7); color: #fecaca; }
.admin-button-danger:hover, .admin-button-danger:focus-visible { border-color: #f87171; background: rgba(153, 27, 27, .85); }
.table-action { color: var(--accent); white-space: nowrap; }
.inline-form { display: inline; }
.markdown-content { max-width: 70rem; line-height: 1.7; }
.markdown-content h1, .markdown-content h2, .markdown-content h3 { margin: 1.8rem 0 .7rem; }
.markdown-content p, .markdown-content ul, .markdown-content ol { margin: .8rem 0; }
.markdown-content pre { overflow-x: auto; padding: 1rem; border-radius: .5rem; background: #0b1323; color: #e5e7eb; }
.markdown-content code { font-family: ui-monospace, Consolas, monospace; }
.markdown-content table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.markdown-content th, .markdown-content td { padding: .55rem; border: 1px solid var(--border); text-align: left; }
.document-meta { color: var(--muted); font-size: .9rem; }
.inline-actions .admin-button { padding: .45rem .65rem; font-size: .8rem; }


.auth-card form { display: grid; gap: .75rem; }
.auth-card input,
.auth-card button { width: 100%; min-height: 2.8rem; padding: .7rem .8rem; border: 1px solid var(--border); border-radius: .6rem; font: inherit; }
.auth-card input { background: #0b1323; color: #e5e7eb; }
.auth-card button { margin-top: .5rem; border-color: transparent; background: var(--accent-strong); color: #fff; cursor: pointer; }
.auth-card button:hover { background: #6ca3ff; }

.admin-dashboard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 80%; margin: 2rem auto; }
.dashboard-shortcuts { width: 80%; max-width: none; margin: 2rem auto; }
.shortcut-list { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; }
.shortcut-badge { display: inline-flex; align-items: center; min-height: 2.6rem; padding: .65rem 1rem; border: 1px solid rgba(114, 167, 255, .35); border-radius: 999px; background: rgba(40, 72, 125, .35); color: #dbeafe; font-weight: 650; text-decoration: none; transition: background .2s ease, border-color .2s ease, transform .2s ease; }
.shortcut-badge:hover, .shortcut-badge:focus-visible { border-color: var(--accent); background: var(--accent-soft); color: #fff; transform: translateY(-.1rem); }
.account-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2rem; margin: 2rem 0 1.25rem; }
.account-summary div { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-top: 1px solid var(--border); }
.account-summary dt { color: var(--muted); }
.account-summary dd { max-width: 60%; margin: 0; text-align: right; overflow-wrap: anywhere; }
.dashboard-panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; width: 80%; margin: 2rem auto; }
.dashboard-panels .content-card { width: 100%; max-width: none; margin: 0; }
.dashboard-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.dashboard-stats div { padding: .85rem; border: 1px solid var(--border); border-radius: .6rem; background: rgba(11, 19, 35, .45); }
.dashboard-stats dt { color: var(--muted); font-size: .85rem; }
.dashboard-stats dd { margin: .25rem 0 0; color: #f8fafc; font-size: 1.35rem; font-weight: 750; }
.dashboard-list { display: grid; gap: .65rem; padding-left: 1.2rem; color: var(--muted); line-height: 1.5; }
.dashboard-list time { color: var(--accent); font-size: .82rem; }
.settings-tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin: 2rem 0; padding-bottom: .75rem; border-bottom: 1px solid var(--border); }
.log-filter { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem; margin: 1.5rem 0; }
.log-filter select { min-width: 10rem; }
.logs-table { font-size: .82rem; }
.logs-table td:first-child { white-space: nowrap; }
.logs-table code { display: block; max-width: 24rem; overflow-wrap: anywhere; color: var(--muted); font-size: .75rem; }
.supervision-notifications { display: grid; gap: .75rem; padding: 0; list-style: none; }
.supervision-notifications li { padding: 1rem; border: 1px solid var(--border); border-radius: .65rem; }
.notification-info { background: rgba(40, 72, 125, .35); color: #dbeafe; }
.notification-warning { background: rgba(120, 53, 15, .35); color: #fde68a; }
.notification-error { background: rgba(127, 29, 29, .35); color: #fecaca; }
.settings-tabs a { padding: .6rem .85rem; border-radius: .55rem; color: var(--muted); text-decoration: none; }
.settings-tabs a:hover, .settings-tabs a.is-active { background: var(--accent-soft); color: #fff; }
.settings-form { max-width: 48rem; }
.settings-month-selector { max-width: 20rem; margin-bottom: 1.5rem; }
.settings-category-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.settings-category-header p { margin: 0; color: var(--muted); }
.category-create-form { margin: 1.5rem 0 2rem; padding: 1.25rem; border: 1px solid var(--border); border-radius: .75rem; background: rgba(11, 19, 35, .35); }
.category-create-form h2 { margin-top: 0; font-size: 1.1rem; }
form.admin-form.category-form textarea,
form.admin-form.category-create-form textarea,
form.admin-form.category-edit-form textarea { min-height: 8rem; }
.category-edit-toggle { padding: 0; border: 0; background: transparent; color: var(--accent); font: inherit; cursor: pointer; }
.category-edit-toggle:hover, .category-edit-toggle:focus-visible { color: #fff; text-decoration: underline; }
.category-edit-row td { padding: 1.25rem; background: rgba(11, 19, 35, .35); }
.category-edit-row .admin-form { margin: 0; }

.ephemeride-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.ephemeride-day { padding: 1rem; border: 1px solid var(--border); border-radius: .65rem; background: rgba(11, 19, 35, .45); }
.day-saint { display: grid; grid-template-columns: 2.5rem 1fr; gap: .75rem; align-items: center; }
.day-number { color: var(--accent); font-weight: 700; }
.ephemeride-day .form-control { width: 100%; padding: .65rem; border: 1px solid var(--border); border-radius: .45rem; background: #0b1323; color: #e5e7eb; font: inherit; }
.ephemeride-day .commentaire { margin-top: .75rem; }
.ephemeride-day .options { display: flex; flex-wrap: wrap; gap: .5rem 1rem; margin-top: .75rem; color: var(--muted); font-size: .85rem; }
.month-controls { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 1rem 0; }
.month-selected { color: var(--accent); font-weight: 700; }
.save-button { padding: .6rem .85rem; border: 0; border-radius: .5rem; background: var(--accent-strong); color: #fff; cursor: pointer; }
.table-wrapper { overflow-x: auto; }
.admin-table { width: 100%; min-width: 38rem; border-collapse: collapse; }
.admin-table th,
.admin-table td { padding: .8rem; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.admin-table th { color: #a9c9ff; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; }
.table-meta { display: block; margin-top: .35rem; color: #8293ad; font-size: .75rem; }
.visibility { display: inline-block; padding: .3rem .65rem; border-radius: 999px; font-size: .8rem; }
.visibility-public { background: rgba(6, 78, 59, .7); color: var(--success); }
.visibility-private { background: rgba(71, 85, 105, .7); color: #cbd5e1; }
.article-meta { color: #8293ad; font-size: .85rem; }
.article-content { margin: 2rem 0; color: #dbe5f4; line-height: 1.8; white-space: normal; }
.admin-section-heading,
.editor-header { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.5rem; }
.admin-section-heading h1,
.editor-header h1 { margin-bottom: 0; }
.admin-button { display: inline-block; padding: .6rem .85rem; border: 0; border-radius: .5rem; background: var(--accent-strong); color: #fff; font: inherit; text-decoration: none; cursor: pointer; }
.admin-button:hover { background: #6ca3ff; }
.admin-button-small { padding: .45rem .6rem; font-size: .8rem; }
.admin-button-muted { background: #334155; }
.editor-subtitle { margin: .65rem 0 0; color: var(--muted); }
.invitation-notice { margin-bottom: 1.25rem; padding: 1rem; border: 1px solid rgba(114, 167, 255, .25); border-radius: .7rem; background: var(--accent-soft); color: #cfe0fb; line-height: 1.6; }
.editor-step { align-self: flex-start; padding: .4rem .65rem; border: 1px solid rgba(114, 167, 255, .25); border-radius: 999px; color: var(--accent); font-size: .75rem; white-space: nowrap; }
.admin-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-field { display: flex; flex-direction: column; gap: .45rem; }
.form-field label { color: #dbe5f4; font-weight: 650; }
.form-field label span { color: #93c5fd; }
.form-field small { color: #8293ad; font-size: .78rem; line-height: 1.45; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.admin-form input,
.admin-form select,
.admin-form textarea { width: 100%; padding: .8rem .9rem; border: 1px solid var(--border); border-radius: .65rem; background: #0b1323; color: #e5e7eb; font: inherit; transition: border-color .2s ease, box-shadow .2s ease; }
.admin-form input::placeholder,
.admin-form textarea::placeholder { color: #52627a; }
.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 .2rem rgba(114, 167, 255, .12); }
.admin-form textarea { min-height: 24rem; resize: vertical; line-height: 1.7; }
.field-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.field-hint { color: #8293ad; font-size: .75rem; }
.form-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .25rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.action-group { display: flex; flex-wrap: wrap; gap: .5rem; }
.action-group form { margin: 0; }
.action-group button { padding: .45rem .65rem; border: 0; border-radius: .45rem; background: var(--accent-strong); color: #fff; cursor: pointer; }
.action-group .button-danger { background: #9f1239; }

.status-list { margin: 0; }
.status-list div { display: flex; justify-content: space-between; gap: 1rem; padding: .9rem 0; border-top: 1px solid var(--border); }
.status-list dt { color: var(--muted); }
.status-list dt code { margin-left: .35rem; color: #8fb8f7; font-size: .82em; }
.status-list dd { margin: 0; text-align: right; }
.badge { padding: .3rem .65rem; border-radius: 999px; font-size: .82rem; }
.badge-ok { background: rgba(6, 78, 59, .7); color: var(--success); }
.badge-error { background: rgba(127, 29, 29, .7); color: #fecaca; }
.status-list dd { max-width: 70%; }
.status-list dd small { display: block; margin-top: .3rem; color: var(--muted); font-size: .78rem; }
.extension-statuses { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .35rem; }
.extension-statuses .badge { font-size: .72rem; }
.badge-pending { background: rgba(120, 53, 15, .7); color: #fde68a; }

footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem 1rem; margin-top: auto; padding: 1.5rem 1rem 2rem; color: #71819a; font-size: .82rem; text-align: center; }
.footer-nav { display: flex; flex-wrap: wrap; gap: .75rem 1rem; }
.footer-nav a { color: #93a4bd; text-decoration: none; }
.footer-nav a:hover { color: #fff; text-decoration: underline; }
.back-to-top { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 30; display: grid; place-items: center; width: 3.25rem; height: 3.25rem; border: 0; border-radius: 50%; padding: 0; background: #2563eb; color: #fff; font: inherit; font-size: 2rem; font-weight: 700; line-height: 1; cursor: pointer; box-shadow: 0 .25rem .8rem rgba(0, 0, 0, .2); }
.back-to-top:hover { background: #1d4ed8; color: #fff; }
.back-to-top[hidden] { display: none; }
@media (max-width: 640px) { .back-to-top { right: .75rem; bottom: .75rem; } }

body.menu-open { overflow: hidden; }

@media (max-width: 760px) {
    .site-nav,
    .admin-nav { position: relative; z-index: 20; justify-content: space-between; }
    .site-nav::after,
    .admin-nav::after { position: fixed; inset: 0; z-index: 1; background: rgba(2, 6, 23, .62); content: ""; opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease; }
    .site-nav.is-open::after,
    .admin-nav.is-open::after { opacity: 1; visibility: visible; }
    .nav-brand { margin-right: 0; }
    .menu-toggle { position: relative; z-index: 3; display: inline-flex; margin-left: auto; }
    .nav-links,
    .admin-links { position: fixed; top: 0; right: 0; z-index: 2; display: flex; flex-direction: column; align-items: stretch; width: min(82vw, 22rem); height: 100dvh; padding: 6rem 1.25rem 2rem; border: 1px solid var(--border); border-top: 0; border-right: 0; border-radius: 1.25rem 0 0 1.25rem; background: #101b2f; box-shadow: -1.5rem 0 3rem rgba(0, 0, 0, .28); transform: translateX(105%); opacity: 0; visibility: hidden; transition: transform .32s cubic-bezier(.22, 1, .36, 1), opacity .25s ease, visibility .32s ease; }
    .site-nav.is-open .nav-links,
    .admin-nav.is-open .admin-links { transform: translateX(0); opacity: 1; visibility: visible; }
    .nav-links a,
    .admin-links a { width: 100%; }
    .site-nav a, .admin-nav a { padding: .55rem .65rem; font-size: .82rem; }
    .admin-nav strong { width: 100%; margin-right: 0; }
    .profile-menu, .nav-dropdown { width: 100%; margin: .5rem 0 0; }
    .profile-menu-toggle, .nav-dropdown-toggle { width: 100%; justify-content: flex-start; }
    .profile-menu-dropdown, .nav-dropdown-panel { position: static; margin-top: .4rem; }
    .nav-dropdown-panel a { width: 100%; }
    .container { width: calc(100% - 2rem); padding-top: 2rem; }
    .admin-container > .content-card,
    .admin-dashboard-grid { width: 100%; }
    .hero { padding: 3.5rem 1.2rem; border-radius: 1.35rem; }
    .hero h1 { font-size: clamp(2rem, 10vw, 3rem); }
    .section-heading,
    .editor-header,
    .settings-category-header { align-items: flex-start; flex-direction: column; gap: .6rem; }
    .form-grid,
    .ephemeride-grid,
    .account-summary,
    .dashboard-panels { grid-template-columns: 1fr; }
    .dashboard-panels { width: 100%; }
    .admin-form textarea { min-height: 18rem; }
    .category-form textarea,
    .category-create-form textarea,
    .category-edit-form textarea { min-height: 8rem; }
    .month-controls { align-items: stretch; flex-direction: column; }
    .month-controls .save-button { width: 100%; }
    .feature-grid,
    .content-list-grid,
    .admin-dashboard-grid,
    .values-grid { grid-template-columns: 1fr; }
    .home-section { margin-top: 3.5rem; }
    .status-list div { flex-direction: column; align-items: flex-start; gap: .4rem; }
    .status-list dd { max-width: 100%; overflow-wrap: anywhere; text-align: left; }
}
