:root {
    --sidebar-width: 240px;
    --sidebar-bg: #1e293b;
    --sidebar-text: #cbd5e1;
    --sidebar-text-active: #ffffff;
    --sidebar-hover: #334155;
    --sidebar-active: #3b82f6;
    --main-bg: #f8fafc;
    --main-text: #0f172a;
    --border: #e2e8f0;
    --radius: 8px;
}

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

body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: var(--main-text);
    background: var(--main-bg);
    line-height: 1.5;
}

body.sidebar-open {
    overflow: hidden;
}

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

.layout__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.mobile-header {
    display: none;
}

.sidebar-overlay {
    display: none;
}

.sidebar__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar__close {
    display: none;
}

.sidebar__close-icon {
    display: block;
    width: 1.25rem;
    height: 1.25rem;
    background: currentColor;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M18 6L6 18M6 6l12 12'/%3E%3C/svg%3E") center / contain no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M18 6L6 18M6 6l12 12'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    min-height: 100vh;
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100vh;
}

.sidebar__brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 1rem;
}

.sidebar__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background: var(--sidebar-active);
    color: #fff;
    font-weight: 700;
    border-radius: var(--radius);
    font-size: 0.875rem;
}

.sidebar__title {
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--sidebar-text-active);
}

.sidebar__nav {
    flex: 1;
    padding: 1rem 0.75rem;
    overflow-y: auto;
}

.sidebar__menu {
    list-style: none;
}

.sidebar__item + .sidebar__item {
    margin-top: 0.25rem;
}

.sidebar__link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    border-radius: var(--radius);
    color: var(--sidebar-text);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: background 0.15s, color 0.15s;
}

.sidebar__link:hover {
    background: var(--sidebar-hover);
    color: var(--sidebar-text-active);
}

.sidebar__link--active {
    background: var(--sidebar-active);
    color: var(--sidebar-text-active);
}

.sidebar__icon {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    opacity: 0.85;
}

.sidebar__icon[data-icon="home"] {
    background: currentColor;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M3 9.5L12 3l9 6.5V20a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V9.5z'/%3E%3Cpath d='M9 21V12h6v9'/%3E%3C/svg%3E") center / contain no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M3 9.5L12 3l9 6.5V20a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V9.5z'/%3E%3Cpath d='M9 21V12h6v9'/%3E%3C/svg%3E") center / contain no-repeat;
}

.sidebar__icon[data-icon="dashboard"] {
    background: currentColor;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Crect x='3' y='3' width='7' height='9' rx='1'/%3E%3Crect x='14' y='3' width='7' height='5' rx='1'/%3E%3Crect x='14' y='12' width='7' height='9' rx='1'/%3E%3Crect x='3' y='16' width='7' height='5' rx='1'/%3E%3C/svg%3E") center / contain no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Crect x='3' y='3' width='7' height='9' rx='1'/%3E%3Crect x='14' y='3' width='7' height='5' rx='1'/%3E%3Crect x='14' y='12' width='7' height='9' rx='1'/%3E%3Crect x='3' y='16' width='7' height='5' rx='1'/%3E%3C/svg%3E") center / contain no-repeat;
}

.sidebar__icon[data-icon="settings"] {
    background: currentColor;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M12 1v2M12 21v2M4.22 4.22l1.42 1.42M18.36 18.36l1.42 1.42M1 12h2M21 12h2M4.22 19.78l1.42-1.42M18.36 5.64l1.42-1.42'/%3E%3C/svg%3E") center / contain no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M12 1v2M12 21v2M4.22 4.22l1.42 1.42M18.36 18.36l1.42 1.42M1 12h2M21 12h2M4.22 19.78l1.42-1.42M18.36 5.64l1.42-1.42'/%3E%3C/svg%3E") center / contain no-repeat;
}

.sidebar__icon[data-icon="admin"] {
    background: currentColor;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3C/svg%3E") center / contain no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.sidebar__icon[data-icon="participants"] {
    background: currentColor;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M23 21v-2a4 4 0 0 0-3-3.87M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E") center / contain no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M23 21v-2a4 4 0 0 0-3-3.87M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E") center / contain no-repeat;
}

.sidebar__icon[data-icon="courses"] {
    background: currentColor;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M6 2L3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4z'/%3E%3Cpath d='M3 6h18M16 10a4 4 0 0 1-8 0'/%3E%3C/svg%3E") center / contain no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M6 2L3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4z'/%3E%3Cpath d='M3 6h18M16 10a4 4 0 0 1-8 0'/%3E%3C/svg%3E") center / contain no-repeat;
}

.sidebar__icon[data-icon="valise"] {
    background: currentColor;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Crect x='4' y='8' width='16' height='12' rx='2'/%3E%3Cpath d='M9 8V6a3 3 0 0 1 6 0v2'/%3E%3Cpath d='M4 13h16'/%3E%3C/svg%3E") center / contain no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Crect x='4' y='8' width='16' height='12' rx='2'/%3E%3Cpath d='M9 8V6a3 3 0 0 1 6 0v2'/%3E%3Cpath d='M4 13h16'/%3E%3C/svg%3E") center / contain no-repeat;
}

.sidebar__icon[data-icon="depenses"] {
    background: currentColor;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M12 1v22M17 5H9.5a3.5 3.5 0 0 0 0 7H14a3.5 3.5 0 0 1 0 7H6'/%3E%3C/svg%3E") center / contain no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M12 1v22M17 5H9.5a3.5 3.5 0 0 0 0 7H14a3.5 3.5 0 0 1 0 7H6'/%3E%3C/svg%3E") center / contain no-repeat;
}

.sidebar__icon[data-icon="lodgings"] {
    background: currentColor;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M3 21h18M5 21V7l8-4v18M19 21V11l-6-4'/%3E%3Cpath d='M9 9v.01M9 12v.01M9 15v.01M9 18v.01'/%3E%3C/svg%3E") center / contain no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M3 21h18M5 21V7l8-4v18M19 21V11l-6-4'/%3E%3Cpath d='M9 9v.01M9 12v.01M9 15v.01M9 18v.01'/%3E%3C/svg%3E") center / contain no-repeat;
}

.sidebar__icon[data-icon="todolist"] {
    background: currentColor;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M9 11l3 3L22 4'/%3E%3Cpath d='M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11'/%3E%3C/svg%3E") center / contain no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M9 11l3 3L22 4'/%3E%3Cpath d='M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11'/%3E%3C/svg%3E") center / contain no-repeat;
}

.sidebar__icon[data-icon="galerie"] {
    background: currentColor;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpath d='M21 15l-5-5L5 21'/%3E%3C/svg%3E") center / contain no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpath d='M21 15l-5-5L5 21'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Main content */
.main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.main__header {
    padding: 1.5rem 2rem;
    background: #fff;
    border-bottom: 1px solid var(--border);
}

.main__header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.main__title {
    font-size: 1.5rem;
    font-weight: 600;
}

.theme-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #f8fafc;
    flex-shrink: 0;
}

.theme-switch__btn {
    padding: 0.35rem 0.75rem;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    color: #64748b;
    font-size: 0.8125rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.theme-switch__btn:hover {
    color: var(--main-text);
}

.theme-switch__btn--active {
    background: #fff;
    border-color: var(--border);
    color: var(--main-text);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.main__content {
    flex: 1;
    padding: 2rem;
}

.main__content p {
    color: #475569;
}

.home-intro {
    color: #475569;
    white-space: pre-wrap;
}

.depenses-intro {
    color: #475569;
    margin-bottom: 1.25rem;
}

.depenses-link__btn {
    text-decoration: none;
}

.home-audio {
    margin-top: 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.home-audio__btn {
    border: none;
    border-radius: var(--radius);
    padding: 0.6rem 1rem;
    background: var(--sidebar-active);
    color: #fff;
    cursor: pointer;
    font-weight: 700;
    transition: transform 0.15s, background 0.15s;
}

.home-audio__btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
}

.home-audio__player {
    display: none;
}

.home-audio__preview {
    width: 100%;
    max-width: 42rem;
    margin: 0.5rem 0 0.75rem;
}

.home-image {
    margin-top: 1.5rem;
    max-width: 42rem;
}

.home-links-section {
    margin-top: 1.5rem;
    max-width: 42rem;
}

.home-media-list,
.home-links-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.home-media-list__item,
.home-links-list__item {
    padding: 1rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.home-media-list__item {
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.home-media-list__title,
.home-links-list__name {
    display: block;
    color: var(--main-text);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.home-media-list__player {
    width: 100%;
}

.home-links-list__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.home-links-list__content {
    min-width: 0;
}

.home-links-list__meta {
    display: block;
    margin-top: 0.25rem;
    color: #64748b;
    font-size: 0.875rem;
}

.home-links-list__item--whatsapp {
    border-left: 4px solid #25d366;
    background: linear-gradient(90deg, rgba(37, 211, 102, 0.08) 0%, #fff 24%);
}

.home-links-list__btn {
    flex-shrink: 0;
    text-decoration: none;
}

.home-links-list__btn--whatsapp {
    background: #25d366;
    color: #fff;
}

.home-links-list__btn--whatsapp:hover {
    background: #1faa52;
}

.home-image__media,
.home-image__preview {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 28rem;
    height: auto;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.home-image__preview {
    max-width: 24rem;
    margin-bottom: 1rem;
}

/* Alerts */
.alert {
    padding: 0.875rem 1rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
}

.alert--success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert--error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert code {
    font-size: 0.875em;
    background: rgba(0, 0, 0, 0.06);
    padding: 0.1em 0.35em;
    border-radius: 4px;
}

/* Settings form */
.settings-form {
    max-width: 32rem;
}

.settings-form__fieldset {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    background: #fff;
}

.settings-form__legend {
    font-weight: 600;
    padding: 0 0.5rem;
}

.form-group + .form-group {
    margin-top: 1.25rem;
}

.form-group__label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.375rem;
    font-size: 0.9375rem;
}

.form-group__input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.9375rem;
    color: var(--main-text);
    background: #fff;
}

.form-group__input:focus {
    outline: 2px solid var(--sidebar-active);
    outline-offset: 1px;
    border-color: var(--sidebar-active);
}

.form-group__textarea {
    resize: vertical;
    min-height: 5rem;
    font-family: inherit;
}

.form-group__help {
    margin-top: 0.375rem;
    font-size: 0.8125rem;
    color: #64748b;
}

.form-group__error {
    margin-top: 0.375rem;
    font-size: 0.8125rem;
    color: #dc2626;
}

.settings-form__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin-top: 1.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.25rem;
    border: none;
    border-radius: var(--radius);
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s;
}

.btn--primary {
    background: var(--sidebar-active);
    color: #fff;
}

.btn--primary:hover {
    background: #2563eb;
}

.btn--danger {
    background: #dc2626;
    color: #fff;
}

.btn--danger:hover {
    background: #b91c1c;
}

.btn--secondary {
    background: #fff;
    color: var(--main-text);
    border: 1px solid var(--border);
    text-decoration: none;
}

.btn--secondary:hover {
    background: #f1f5f9;
}

.btn--small {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
}

.admin-intro {
    margin-bottom: 1.5rem;
    color: #475569;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.admin-card {
    padding: 1.25rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.admin-card__title {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.admin-card__text {
    color: #64748b;
    font-size: 0.9375rem;
}

.admin-card--placeholder {
    border-style: dashed;
}

.admin-card--link {
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.admin-card--link:hover {
    border-color: var(--sidebar-active);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.12);
}

.admin-nav {
    margin-bottom: 1.5rem;
}

.admin-nav a {
    color: var(--sidebar-active);
    text-decoration: none;
    font-size: 0.9375rem;
}

.admin-nav a:hover {
    text-decoration: underline;
}

.admin-section + .admin-section {
    margin-top: 2rem;
}

.admin-section__title {
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.admin-empty,
.programme-empty {
    color: #64748b;
    font-size: 0.9375rem;
}

.admin-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.admin-list__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.admin-list__info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.admin-list__link {
    font-weight: 500;
    color: var(--main-text);
    text-decoration: none;
}

.admin-list__link:hover {
    color: var(--sidebar-active);
}

.admin-list__link--done {
    text-decoration: line-through;
    color: #94a3b8;
}

.admin-list__meta {
    font-size: 0.8125rem;
    color: #64748b;
}

.settings-form--wide {
    max-width: 40rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.25rem;
}

.form-row:first-of-type {
    margin-top: 0;
}

.form-group__optional {
    font-weight: 400;
    color: #64748b;
    font-size: 0.8125rem;
}

.activity-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.activity-list__item {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.activity-list__main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
}

.activity-list__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.activity-list__content {
    display: grid;
    grid-template-columns: 6rem 1fr auto;
    gap: 1rem;
    align-items: start;
    flex: 1;
    min-width: 0;
}

.activity-list__details {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    min-width: 0;
}

.activity-list__time {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--sidebar-active);
    font-size: 0.9375rem;
}

.activity-list__name {
    font-weight: 500;
}

.activity-list__location {
    color: #64748b;
    font-size: 0.9375rem;
}

.activity-list__place {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
    text-align: right;
}

.activity-list__address {
    color: var(--sidebar-active);
    font-size: 0.875rem;
    text-decoration: none;
}

.activity-list__address:hover {
    text-decoration: underline;
}

.activity-list--admin .activity-list__address {
    color: #64748b;
    font-size: 0.8125rem;
}

.activity-list__notes {
    color: #64748b;
    font-size: 0.875rem;
    white-space: pre-wrap;
    line-height: 1.5;
}

.activity-list--admin .activity-list__notes {
    margin: 0;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

.programme-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.programme-tabs__tab {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    color: var(--main-text);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.programme-tabs__tab:hover {
    border-color: var(--sidebar-active);
    color: var(--sidebar-active);
}

.programme-tabs__tab--active {
    background: var(--sidebar-active);
    border-color: var(--sidebar-active);
    color: #fff;
}

.programme-panel--hidden {
    display: none;
}

.admin-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.admin-intro--compact {
    margin-bottom: 0;
}

.participant-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.participant-list__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.participant-list__profile {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
    flex: 1;
}

.participant-list__photo {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 999px;
    object-fit: cover;
    flex-shrink: 0;
}

.participant-list__photo--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e2e8f0;
    color: #475569;
    font-weight: 700;
    font-size: 1.125rem;
}

.participant-list__info {
    min-width: 0;
}

.participant-list__pseudo {
    font-weight: 600;
    font-size: 1rem;
}

.participant-list__name {
    color: #475569;
    font-size: 0.9375rem;
    margin-top: 0.125rem;
}

.participant-list__status,
.participants-grid__status {
    display: inline-block;
    margin-top: 0.375rem;
    padding: 0.2rem 0.625rem;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 0.8125rem;
    font-weight: 500;
}

.participant-list__meta {
    color: #64748b;
    font-size: 0.875rem;
    margin-top: 0.125rem;
    word-break: break-word;
}

.participant-list__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.participant-current-photo__image {
    display: block;
    width: 6rem;
    height: 6rem;
    border-radius: var(--radius);
    object-fit: cover;
    margin-bottom: 0.75rem;
    border: 1px solid var(--border);
}

.form-group__checkbox {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    color: #475569;
}

.participants-grid {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}

.participants-grid__item {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.participants-grid__photo {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.participants-grid__photo--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e2e8f0;
    color: #475569;
    font-weight: 700;
    font-size: 2.5rem;
}

.participants-grid__body {
    padding: 1rem 1.125rem 1.25rem;
}

.participants-grid__pseudo {
    font-size: 1.125rem;
    font-weight: 600;
}

.participants-grid__name {
    margin-top: 0.25rem;
    color: #475569;
    font-size: 0.9375rem;
}

.participants-grid__meta {
    margin-top: 0.375rem;
    font-size: 0.875rem;
}

.participants-grid__meta a {
    color: var(--sidebar-active);
    text-decoration: none;
    word-break: break-word;
}

.participants-grid__meta a:hover {
    text-decoration: underline;
}

.lodgings-grid {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
    gap: 1rem;
}

.lodgings-grid__item {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
}

.lodgings-grid__name {
    font-size: 1.125rem;
    font-weight: 600;
}

.lodgings-grid__dates {
    color: var(--accent);
    font-size: 0.9375rem;
    font-weight: 500;
    margin-top: 0.375rem;
}

.lodgings-grid__meta {
    color: #64748b;
    font-size: 0.875rem;
    margin-top: 0.625rem;
    word-break: break-word;
}

.lodgings-grid__meta-label {
    display: block;
    color: #94a3b8;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.125rem;
}

.lodgings-grid__meta a {
    color: var(--sidebar-active);
    text-decoration: none;
}

.lodgings-grid__meta a:hover {
    text-decoration: underline;
}

.lodgings-grid__notes {
    margin-top: 0.875rem;
    padding-top: 0.875rem;
    border-top: 1px solid var(--border);
    color: #475569;
    font-size: 0.9375rem;
    white-space: pre-wrap;
}

.shopping-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.shopping-list__header {
    margin-bottom: 1rem;
    padding: 0.875rem 1rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.courses-create {
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.courses-create--hidden {
    display: none;
}

.courses-tabs {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.courses-tabs .programme-tabs {
    flex: 1;
    min-width: 0;
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.programme-tabs--with-action {
    flex-wrap: wrap;
}

.courses-tabs__add {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    flex-shrink: 0;
    border: 1px solid var(--sidebar-active);
    border-radius: var(--radius);
    background: #fff;
    color: var(--sidebar-active);
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.courses-tabs__add:hover,
.courses-tabs__add[aria-expanded="true"] {
    background: var(--sidebar-active);
    color: #fff;
}

.courses-tabs__add--solo {
    margin-bottom: 0.5rem;
}

.courses-create__title {
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.courses-create .settings-form {
    max-width: none;
}

.shopping-list__meta-line {
    color: #475569;
    font-size: 0.9375rem;
}

.shopping-list__meta-line + .shopping-list__meta-line {
    margin-top: 0.375rem;
}

.shopping-list__meta-label {
    font-weight: 600;
    color: var(--main-text);
    margin-right: 0.5rem;
}

.shopping-list__item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.shopping-list__item--checked .shopping-list__label {
    text-decoration: line-through;
    color: #94a3b8;
}

.todo-list__item {
    align-items: flex-start;
}

.todo-list__check {
    align-items: flex-start;
}

.todo-list__content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.todo-list__name {
    font-weight: 500;
}

.todo-list__description {
    color: #64748b;
    font-size: 0.875rem;
    white-space: pre-wrap;
    word-break: break-word;
}

.shopping-list__item--checked .todo-list__description {
    color: #94a3b8;
}

.todo-list__assignees {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-top: 0.125rem;
}

.todo-list__assignee {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 0.8125rem;
    font-weight: 500;
}

.todo-form__assignees {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.valise-list__check {
    flex: 1;
    min-width: 0;
}

.shopping-list__check-form {
    flex: 1;
    min-width: 0;
}

.shopping-list__check {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.9375rem;
}

.shopping-list__check input[type="checkbox"] {
    width: 1.125rem;
    height: 1.125rem;
    flex-shrink: 0;
    accent-color: var(--sidebar-active);
    cursor: pointer;
}

.shopping-list__label {
    word-break: break-word;
}

.shopping-list__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s, border-color 0.15s;
}

.shopping-list__btn--add {
    color: var(--sidebar-active);
    border-color: var(--sidebar-active);
}

.shopping-list__btn--add:hover {
    background: #eff6ff;
}

.shopping-list__btn--remove {
    color: #dc2626;
}

.shopping-list__btn--remove:hover {
    background: #fef2f2;
    border-color: #fecaca;
}

.shopping-list__add {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
    margin-bottom: 1rem;
}

.shopping-list__input {
    flex: 1;
    min-width: 0;
}

@media (max-width: 768px) {
    .mobile-header {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        position: sticky;
        top: 0;
        z-index: 90;
        padding: 0.75rem 1rem;
        padding-top: max(0.75rem, env(safe-area-inset-top));
        background: var(--sidebar-bg);
        color: var(--sidebar-text-active);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .mobile-header__toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 2.75rem;
        height: 2.75rem;
        border: none;
        border-radius: var(--radius);
        background: rgba(255, 255, 255, 0.08);
        color: inherit;
        cursor: pointer;
        flex-shrink: 0;
    }

    .mobile-header__toggle-icon {
        display: block;
        width: 1.25rem;
        height: 1.25rem;
        background: currentColor;
        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M4 6h16M4 12h16M4 18h16'/%3E%3C/svg%3E") center / contain no-repeat;
        -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M4 6h16M4 12h16M4 18h16'/%3E%3C/svg%3E") center / contain no-repeat;
    }

    .mobile-header__title {
        flex: 1;
        min-width: 0;
        font-weight: 600;
        font-size: 1rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .mobile-header .theme-switch {
        margin-left: auto;
    }

    .mobile-header .theme-switch__btn {
        padding: 0.3rem 0.45rem;
        font-size: 0.6875rem;
    }

    .sidebar-overlay {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 150;
        background: rgba(15, 23, 42, 0.55);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease;
    }

    .sidebar-overlay--visible {
        opacity: 1;
        pointer-events: auto;
    }

    .layout {
        flex-direction: row;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: min(18rem, 88vw);
        height: 100vh;
        height: 100dvh;
        z-index: 200;
        transform: translateX(-100%);
        transition: transform 0.2s ease;
        box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    }

    .sidebar--open {
        transform: translateX(0);
        box-shadow: 0 12px 40px rgba(15, 23, 42, 0.28);
    }

    .sidebar__close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 2.5rem;
        height: 2.5rem;
        margin-right: 0.75rem;
        border: none;
        border-radius: var(--radius);
        background: rgba(255, 255, 255, 0.08);
        color: var(--sidebar-text-active);
        cursor: pointer;
        flex-shrink: 0;
    }

    .layout__body {
        width: 100%;
    }

    .main__header {
        display: none;
    }

    .main__content {
        padding: 1rem;
        padding-bottom: max(1rem, env(safe-area-inset-bottom));
    }

    .main__title {
        font-size: 1.25rem;
    }

    .settings-form,
    .settings-form--wide {
        max-width: none;
    }

    .settings-form__fieldset {
        padding: 1rem;
    }

    .settings-form__actions .btn {
        flex: 1 1 auto;
        min-height: 2.75rem;
    }

    .admin-grid {
        grid-template-columns: 1fr;
    }

    .admin-list__item {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-list__item .btn {
        width: 100%;
        min-height: 2.75rem;
    }

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

    .activity-list__content {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .activity-list__place {
        align-items: flex-start;
        text-align: left;
    }

    .activity-list__main {
        flex-direction: column;
        align-items: stretch;
    }

    .activity-list__actions {
        justify-content: stretch;
        width: 100%;
    }

    .activity-list__actions .btn,
    .activity-list__actions form {
        flex: 1;
    }

    .activity-list__actions form .btn {
        width: 100%;
        min-height: 2.75rem;
    }

    .activity-list__actions .btn--secondary {
        flex: 1;
        min-height: 2.75rem;
    }

    .programme-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .courses-tabs .programme-tabs {
        margin-left: -1rem;
        padding-left: 1rem;
    }

    .programme-tabs:not(.courses-tabs .programme-tabs) {
        margin-left: -1rem;
        margin-right: -1rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .programme-tabs::-webkit-scrollbar {
        display: none;
    }

    .programme-tabs__tab {
        flex-shrink: 0;
        white-space: nowrap;
    }

    .programme-panel .activity-list__item {
        padding: 0.875rem 1rem;
    }

    .admin-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-toolbar .btn {
        width: 100%;
        min-height: 2.75rem;
    }

    .participant-list__item {
        flex-direction: column;
        align-items: stretch;
    }

    .participant-list__actions {
        width: 100%;
    }

    .participant-list__actions .btn,
    .participant-list__actions form {
        flex: 1;
    }

    .participant-list__actions form .btn,
    .participant-list__actions .btn--secondary {
        width: 100%;
        min-height: 2.75rem;
    }

    .participants-grid {
        grid-template-columns: 1fr;
    }
}

.galerie-album__header {
    margin-bottom: 1rem;
    padding: 0.875rem 1rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.galerie-album__description {
    color: #475569;
    white-space: pre-wrap;
}

.galerie-grid {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.galerie-grid__item {
    position: relative;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.galerie-grid__open {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    cursor: zoom-in;
    position: relative;
}

.galerie-grid__open:focus-visible {
    outline: 2px solid var(--sidebar-active);
    outline-offset: 2px;
}

.galerie-grid__media {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    background: #f1f5f9;
    pointer-events: none;
}

.galerie-grid__badge {
    position: absolute;
    right: 0.5rem;
    bottom: 0.5rem;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    pointer-events: none;
}

.galerie-grid--admin .galerie-grid__item {
    padding-bottom: 2.75rem;
}

.galerie-grid__delete {
    position: absolute;
    left: 0.5rem;
    right: 0.5rem;
    bottom: 0.5rem;
}

.galerie-grid__delete .btn {
    width: 100%;
}

.galerie-album__upload {
    padding: 1rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.galerie-album__upload-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.galerie-upload__row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.galerie-upload__input {
    flex: 1;
    min-width: 12rem;
}

.galerie-empty {
    margin-bottom: 1.5rem;
}

.galerie-lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.galerie-lightbox[hidden] {
    display: none;
}

.galerie-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.82);
}

.galerie-lightbox__dialog {
    position: relative;
    z-index: 1;
    width: min(96vw, 72rem);
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.35);
}

.galerie-lightbox__close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 2;
    width: 2.5rem;
    height: 2.5rem;
    border: 0;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.08);
    color: #0f172a;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.galerie-lightbox__close:hover {
    background: rgba(15, 23, 42, 0.14);
}

.galerie-lightbox__content {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 12rem;
    max-height: calc(92vh - 8rem);
    overflow: auto;
    padding-top: 2rem;
}

.galerie-lightbox__content img,
.galerie-lightbox__content video {
    display: block;
    max-width: 100%;
    max-height: calc(92vh - 8rem);
    width: auto;
    height: auto;
    margin: 0 auto;
    border-radius: calc(var(--radius) - 2px);
    background: #000;
}

.galerie-lightbox__actions {
    display: flex;
    justify-content: center;
}

.galerie-lightbox__download {
    text-decoration: none;
}

body.galerie-lightbox-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    .galerie-grid {
        grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
    }

    .galerie-upload__row {
        flex-direction: column;
        align-items: stretch;
    }

    .galerie-upload__row .btn {
        width: 100%;
    }
}
