/* Mládí v přírodě – jednotný vizuální systém; MudBlazor zůstává základem UI. */
:root {
    --nature-forest: #194f39;
    --nature-forest-dark: #113c2b;
    --nature-leaf: #39775a;
    --nature-accent: #a9632d;
    --nature-bg: #f7f8f4;
    --nature-surface: #fffefa;
    --nature-border: #e2e9df;
    --nature-text: #263d31;
    --nature-muted: #64766c;
    --nature-shadow: 0 10px 32px rgba(28, 63, 42, .07);
}
html { scroll-behavior: smooth; }
body { background: var(--nature-bg); color: var(--nature-text); font-family: 'Nunito', sans-serif; }
a { text-underline-offset: 3px; }
:focus-visible { outline: 3px solid #c38a49; outline-offset: 3px; }
::selection { background: #d7e8d6; color: #173b2b; }

/* Sdílené prvky celé aplikace */
.mud-card { border: 1px solid var(--nature-border); border-radius: 17px !important; box-shadow: var(--nature-shadow) !important; }
.mud-paper { background-clip: padding-box; }
.mud-button-root { border-radius: 11px; font-weight: 750; letter-spacing: .005em; }
.mud-button-filled { box-shadow: none; }
.mud-button-filled:hover { box-shadow: 0 6px 20px rgba(24, 74, 49, .16); }
.mud-input-outlined .mud-input-outlined-border { border-color: #cfdbd0; }
.mud-input-control:focus-within .mud-input-outlined-border { border-width: 2px; }
.mud-input-control > .mud-input-control-input-container > .mud-input-label { font-weight: 650; }
.mud-chip { border-radius: 9px; font-weight: 700; }
.mud-table-container { border-radius: 12px; }
.mud-table-head { background: #f0f5ef; }
.mud-tabs-tabbar { border-bottom: 1px solid var(--nature-border); }
.mud-dialog { border-radius: 18px !important; }
.mud-dialog-title { font-weight: 800; }
.mud-alert { border-radius: 13px; }
.mud-expand-panel { border-radius: 10px !important; }
.mud-progress-circular { flex-shrink: 0; }

/* Navigace a struktura */
.site-shell { min-height: 100vh; }
.site-appbar { background: var(--nature-forest-dark) !important; border-bottom: 1px solid rgba(255,255,255,.12); color: white; }
.site-appbar .mud-toolbar { min-height: 68px; gap: 8px; }
.site-brand { display: inline-flex; align-items: center; flex-shrink: 0; border-radius: 7px; overflow: hidden; }
.site-brand img { display: block; height: 43px; width: 145px; object-fit: contain; object-position: left center; }
.site-brand-caption { color: #d8e4d6; font-weight: 600; letter-spacing: .01em; padding-left: 20px; border-left: 1px solid rgba(255,255,255,.22); margin-left: 6px; }
.site-login-button { color: white !important; }
.site-register-button { border-radius: 10px; white-space: nowrap; }
.site-account-menu .mud-button-label { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Dekorace je ukotvena k panelu, ne k obsahu navigace. Nepřidává výšku. */
/* MudBlazor řídí pozici Draweru (fixed/absolute dle breakpointu).
   Nikdy zde nepřepisovat position; jinak se rozpadne MudLayout. */
.site-drawer {
    border-right: 1px solid var(--nature-border);
    background: #fdfdf9;
}
.site-drawer::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: min(222px, 42%);
    background: url('../images/sidebar-bg.png') center bottom / 100% auto no-repeat;
    opacity: .65;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 40%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 40%);
    pointer-events: none;
    z-index: 0;
}
.site-drawer .mud-drawer-content {
    position: relative;
    z-index: 1;
    height: 100%;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    background: transparent;
    display: flex;
    flex-direction: column;
}

.site-drawer-intro { display: flex; gap: 12px; align-items: center; margin: 24px 16px 22px; padding: 15px 14px; border: 1px solid #e0e9df; background: #f3f7f0; border-radius: 13px; }
.site-drawer-intro .mud-typography { line-height: 1.4; }
.site-nav-label { display: block; color: #819086; font-weight: 800; text-transform: uppercase; letter-spacing: .11em; margin: 8px 26px 10px; }
.modern-navmenu .mud-nav-link { margin: 2px 12px; border-radius: 10px; padding: 11px 15px; color: #4b6356; font-weight: 700; transition: background .18s ease, color .18s ease; }
.modern-navmenu .mud-nav-link:hover { background: #eff5ed; color: var(--nature-forest); }
.modern-navmenu .mud-nav-link.active { background: #e7f1e5 !important; color: var(--nature-forest) !important; font-weight: 800; }
.modern-navmenu .mud-nav-link.active .mud-nav-link-icon { color: var(--nature-forest); }
.nav-action-btn .mud-nav-link { border: 1px solid #cfe3d1; background: #f2f8ef; color: var(--nature-forest); }
/* Původní element zůstává v Razor šabloně, ale neúčastní se layoutu. */
.site-drawer-bottom { display: none; }
.site-main { background: var(--nature-bg); }
.site-page-frame { display: flex; flex-direction: column; min-height: calc(100vh - var(--mud-appbar-height)); }
.site-page-content { flex: 1; padding: 24px clamp(14px, 2.6vw, 34px) 58px; }
.site-page-content > .mud-container { padding-left: 0; padding-right: 0; }
.site-page-content .mud-typography-h3, .site-page-content .mud-typography-h4 { letter-spacing: -.025em; font-weight: 850; }
.site-footer { background: var(--nature-forest-dark); color: #edf5ed; padding: 46px clamp(12px, 2vw, 26px) 20px; }
.site-footer-logo { width: 208px; max-width: 100%; height: auto; margin-bottom: 15px; }
.site-footer-description { max-width: 510px; line-height: 1.75; color: #c5d8c8; font-size: .92rem; }
.site-footer-title { font-weight: 800; margin: 10px 0 17px; color: white; }
.site-footer-link { display: flex !important; align-items: center; text-decoration: none !important; margin-bottom: 12px; color: #d7e4d7 !important; font-size: .9rem; }
.site-footer-link:hover { color: white !important; text-decoration: underline !important; }
.site-footer-divider { margin: 28px 0 16px; background: rgba(255,255,255,.16); }
.site-footer-copyright { color: #b6cbb9; }

/* Katalog a hlavní stránka */
.directory-page { max-width: 1490px; margin: auto; }
.directory-hero { position: relative; min-height: 258px; border-radius: 21px; padding: clamp(26px, 5vw, 60px); overflow: hidden; display: flex; align-items: center; color: white;
    background: linear-gradient(90deg, rgba(10, 47, 33, .94) 0%, rgba(10, 47, 33, .83) 40%, rgba(10, 47, 33, .2) 100%), url('../images/hero-banner.png') center center / cover no-repeat;
    box-shadow: 0 15px 34px rgba(18, 61, 39, .13); }
.directory-hero-content { position: relative; max-width: 700px; z-index: 1; }
.directory-eyebrow { font-size: .76rem; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; color: #e2c38f; margin-bottom: 12px; }
.directory-hero h1 { font-size: clamp(1.85rem, 3.25vw, 3.1rem); font-weight: 900; line-height: 1.16; letter-spacing: -.035em; margin: 0 0 14px; }
.directory-hero p { font-size: clamp(.97rem, 1.3vw, 1.12rem); max-width: 580px; color: #eff7eb; line-height: 1.65; margin: 0; }
.directory-features { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.directory-feature { display: inline-flex; align-items: center; border: 1px solid rgba(255,255,255,.32); border-radius: 20px; padding: 6px 11px; background: rgba(8, 46, 30, .35); font-size: .78rem; font-weight: 800; color: #f5f8f1; }
.directory-intro { margin: 31px 0 15px; }
.section-eyebrow { font-size: .75rem; font-weight: 850; color: var(--nature-leaf); letter-spacing: .13em; text-transform: uppercase; margin-bottom: 5px; }
.section-heading { color: var(--nature-text); font-size: clamp(1.4rem, 2.2vw, 1.85rem); font-weight: 850; letter-spacing: -.02em; }
.section-lead { color: var(--nature-muted); margin-top: 5px; font-size: .95rem; }
.directory-toolbar { padding: 14px 18px; background: white; border-radius: 17px; border: 1px solid var(--nature-border); box-shadow: var(--nature-shadow); }
.directory-toolbar .mud-input-control { margin-bottom: 0; }
.directory-toolbar .mud-input-root { font-size: .96rem; }
.directory-toolbar .mud-input-adornment { color: var(--nature-leaf); }
.directory-toolbar .mud-grid-item:not(:first-child) { border-left: 1px solid #e8eee7; }
.directory-reset { margin-top: 10px; }
.directory-map-wrap { background: white; padding: 7px; border: 1px solid var(--nature-border); box-shadow: var(--nature-shadow); border-radius: 18px; overflow: hidden; margin: 22px 0 28px; }
.directory-map { border-radius: 12px; overflow: hidden; min-height: 360px; }
.directory-results { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 22px; flex-wrap: wrap; }
.directory-results-count { border-radius: 100px; padding: 7px 13px; background: #e8f2e6; color: var(--nature-forest); font-weight: 800; font-size: .84rem; }
.directory-empty { display: flex; align-items: center; flex-direction: column; text-align: center; padding: 54px 20px; border: 1px dashed #bacdbf; background: white; border-radius: 17px; }
.directory-empty-icon { padding: 15px; background: #eaf3e6; border-radius: 50%; margin-bottom: 12px; }
.club-card { height: 100%; overflow: hidden; display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease; }
.club-card:hover, .material-card:hover { transform: translateY(-3px); box-shadow: 0 15px 33px rgba(22, 66, 42, .12) !important; }
.club-card .mud-card-media { background-size: cover; background-position: center; }
.club-card__placeholder { min-height: 180px; position: relative; background: linear-gradient(140deg, #dcece2, #d6dfc5); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.club-card__placeholder::before, .club-card__placeholder::after { content: ''; position: absolute; width: 120%; height: 95px; border-radius: 50%; bottom: -50px; background: #8fae86; left: -10%; }
.club-card__placeholder::after { bottom: -73px; left: 3%; background: #517d60; }
.club-detail-fallback { height: 350px; background: linear-gradient(125deg, #244d3a 0%, #668c64 52%, #c7d6a5 100%); display: flex; align-items: center; justify-content: center; }
.club-detail-fallback .mud-icon-root { color: rgba(255,255,255,.4); font-size: 125px; }
.club-card__placeholder .mud-icon-root { position: relative; z-index: 1; color: #476f56; opacity: .8; font-size: 65px; }
.club-card .mud-card-content { padding: 20px; }
.club-card__name { font-size: 1.13rem; line-height: 1.35; font-weight: 850; color: #183d2b; overflow-wrap: anywhere; }
.club-card__location { display: flex; align-items: flex-start; gap: 3px; margin-top: 6px; }
.club-card__location .mud-icon-root { margin-top: 1px; }
.club-card__description { color: #53665b; min-height: 38px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; line-height: 1.5; }
.club-card__meta { margin: 11px 0 9px; }
.club-card__groups { margin-top: 13px; }
.club-card .mud-expand-panel { background: #f8faf6; border: 1px solid #e3ebe1; margin-bottom: 6px; }
.club-card .mud-expand-panel-header { padding: 9px 12px; }
.club-card .mud-card-actions { padding: 15px 20px; border-top: 1px solid var(--nature-border); background: #fbfdf9; }
.club-card__schedule { background: #edf4eb; border: 1px solid #d8e7d5; border-radius: 11px; padding: 12px; }
.material-card { transition: transform .2s ease, box-shadow .2s ease; }
.materials-info { border: 1px solid #eadcc0 !important; background: #fff8ec !important; color: #60472a !important; }
.auth-shell { max-width: 560px !important; }
.auth-card { border-radius: 20px !important; overflow: hidden; }
.auth-card .mud-card-header { padding: 29px 28px 9px; }
.auth-card .mud-card-content { padding: 20px 28px 15px; }
.auth-card .mud-card-actions { padding: 4px 20px 21px; }
.auth-card .mud-typography-h5 { font-weight: 850; color: var(--nature-forest); letter-spacing: -.02em; }
.auth-card .mud-button-filled { min-height: 45px; }
.page-heading-group { margin-bottom: 27px; }
.page-heading-group .mud-typography-h3, .page-heading-group .mud-typography-h4 { color: var(--nature-forest); }
.page-heading-group .mud-typography-subtitle1 { color: var(--nature-muted); }
.maplibregl-popup-content { background: var(--nature-forest-dark) !important; color: white !important; font-family: 'Nunito', sans-serif !important; font-weight: 800 !important; border-radius: 9px !important; padding: 8px 12px !important; box-shadow: 0 4px 12px rgba(0,0,0,.2) !important; }
.maplibregl-popup-tip { border-top-color: var(--nature-forest-dark) !important; border-bottom-color: var(--nature-forest-dark) !important; }

@media (min-width: 960px) { .site-menu-toggle { display: none !important; } }
@media (max-width: 959.98px) {
    .site-page-content { padding: 20px 15px 45px; }
    .site-appbar .mud-toolbar { min-height: 62px; }
    .directory-hero { min-height: 225px; }
    .directory-toolbar .mud-grid-item:not(:first-child) { border-left: 0; border-top: 1px solid #e9efe7; }
    .directory-map { min-height: 300px; }
}
@media (max-width: 599.98px) {
    .site-brand img { width: 123px; height: 37px; }
    .site-register-button { padding: 6px 11px; font-size: .78rem; }
    .site-login-button { padding: 6px 4px; font-size: .78rem; }
    .site-appbar .mud-toolbar { gap: 2px; padding-inline: 6px; }
    .directory-hero { padding: 25px 21px; min-height: 245px; border-radius: 15px; background-position: 60% center; }
    .directory-hero h1 { font-size: 1.85rem; }
    .directory-feature { font-size: .73rem; }
    .directory-toolbar { padding: 9px 13px; }
    .directory-results-count { margin-top: 7px; }
    .site-footer { padding-top: 35px; }
    .auth-card .mud-card-content { padding-inline: 18px; }
    .auth-card .mud-card-header { padding-inline: 18px; }
}
/* Jednotné tempo indikátorů načítání na všech stránkách.
   MudBlazor 9.11 má pro kruhový spinner výchozích 1,4 s a pro lineární 2,1 s.
   Měníme jen délku animací — bez zásahu do jejich keyframes a funkčnosti. */
@media (prefers-reduced-motion: no-preference) {
    .mud-progress-circular.mud-progress-indeterminate,
    .mud-progress-circular-indeterminate-child,
    .mud-progress-circular-circle.mud-progress-indeterminate {
        animation-duration: 2s;
    }

    .mud-progress-linear.mud-progress-indeterminate .mud-progress-linear-bar,
    .mud-progress-linear .mud-progress-linear-bar.mud-progress-linear-1-indeterminate,
    .mud-progress-linear .mud-progress-linear-bar.mud-progress-linear-2-indeterminate {
        animation-duration: 2.8s;
    }

    /* Druhý pruh má pozdější start, aby oba pruhy plynule navazovaly. */
    .mud-progress-linear.mud-progress-indeterminate .mud-progress-linear-bar:last-child,
    .mud-progress-linear .mud-progress-linear-bar.mud-progress-linear-2-indeterminate {
        animation-delay: 1.5s;
    }
}

/* Omezení pohybu: animace zastavit, nikoli zrychlit na 0,01 ms.
   Platí také pro nekonečné spinnery MudBlazor a Bootstrap. */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto !important; }
    *, *::before, *::after {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }
    /* Při omezení pohybu ponecháme viditelný statický indikátor.
       U indeterminate lineárního progressu by bez animace mohl zmizet. */
    .mud-progress-linear.mud-progress-indeterminate.horizontal .mud-progress-linear-bar:first-child {
        display: block;
        left: 31%;
        width: 38% !important;
        transform: none !important;
        opacity: .75;
    }
    .mud-progress-linear.mud-progress-indeterminate.vertical .mud-progress-linear-bar:first-child {
        display: block;
        top: 31%;
        height: 38% !important;
        transform: none !important;
        opacity: .75;
    }
    .mud-progress-linear.mud-progress-indeterminate .mud-progress-linear-bar:last-child {
        display: none;
    }
}

@media (max-width: 380px) {
    .site-brand img { width: 101px; height: 35px; }
    .site-register-button { padding: 5px 7px; font-size: .73rem; }
    .site-login-button { font-size: .73rem; }
}

/* ======================================================================
   SPRÁVA KROUŽKŮ | rozšíření jednotného stylu pro vedoucí a administrátory
   Vše je scoped na .club-admin-page, veřejný katalog zůstává nedotčený.
   ====================================================================== */
.club-admin-page { max-width: 1500px; margin-inline: auto; }
.club-admin-page .mud-typography-h4, .club-admin-page .mud-typography-h5,
.club-admin-page .mud-typography-h6 { letter-spacing: -.025em; }
.club-admin-page .mud-typography-h6 { font-weight: 850; }
.admin-page-hero { position: relative; display: flex; justify-content: space-between; align-items: center;
    gap: 28px; padding: clamp(27px, 4vw, 46px); margin-bottom: 24px; border-radius: 20px;
    background: linear-gradient(110deg, #123e2d 0%, #225a3b 68%, #3d7552 100%); color: #fff;
    overflow: hidden; box-shadow: 0 17px 35px rgba(27, 71, 43, .12); }
.admin-page-hero::after { content: ''; position: absolute; height: 310px; width: 360px; border-radius: 50%;
    right: -150px; bottom: -200px; border: 55px solid rgba(225, 243, 212, .07); pointer-events: none; }
.admin-page-hero__content, .admin-page-hero > .mud-button-root { position: relative; z-index: 1; }
.admin-page-hero__content { max-width: 650px; }
.admin-eyebrow { display: flex; align-items: center; gap: 7px; font-size: .73rem; font-weight: 900;
    letter-spacing: .16em; color: #d4e9bf; margin-bottom: 11px; }
.club-admin-page .admin-page-hero .admin-page-title { color: #fff !important; font-weight: 900;
    letter-spacing: -.04em; font-size: clamp(1.85rem, 3vw, 2.7rem); line-height: 1.12; }
.admin-page-subtitle { color: #e2f0e4 !important; margin-top: 12px; line-height: 1.65;
    font-size: 1.01rem; max-width: 620px; }
.admin-hero-action { flex-shrink: 0; min-height: 46px; }
.admin-loading { display: flex; align-items: center; justify-content: center; flex-direction: column;
    gap: 16px; padding: 90px 15px; }
.admin-empty-state { text-align: center; display: flex; flex-direction: column; align-items: center;
    gap: 13px; max-width: 100%; padding: 60px 24px; background: white;
    border: 1px dashed #bfd2c1; border-radius: 18px; }
.admin-empty-state .mud-typography { max-width: 540px; }
.admin-empty-state--small { padding: 45px 18px; }
.admin-summary-grid .mud-grid-item { min-width: 0; }
.admin-summary-tile { position: relative; height: 100%; padding: 21px 23px; border-radius: 15px;
    background: #fffefa; border: 1px solid var(--nature-border); box-shadow: 0 5px 15px rgba(28,63,42,.04); }
.admin-summary-tile__icon { color: #4b835c; background: #eaf4e9; width: 34px; height: 34px;
    border-radius: 11px; display: grid; place-items: center; margin-bottom: 12px; }
.admin-summary-tile .mud-typography-h4 { font-size: 2rem; color: var(--nature-forest); font-weight: 900; line-height: 1; }
.admin-summary-tile .mud-typography-body2 { margin-top: 7px; font-size: .87rem; color: var(--nature-muted); font-weight: 750; }
.admin-filter-bar { background: #fff; border: 1px solid var(--nature-border); border-radius: 17px;
    padding: 19px 22px; display: flex; align-items: center; justify-content: space-between; gap: 18px;
    margin-bottom: 20px; box-shadow: 0 5px 15px rgba(28,63,42,.035); }
.admin-filter-bar__heading .mud-typography-h6 { color: var(--nature-forest); }
.admin-filter-bar__controls { display: flex; align-items: center; gap: 11px; width: min(100%, 520px); }
.admin-filter-bar__controls .mud-input-control { margin: 0; }
.admin-filter-search { flex: 1 1 auto; min-width: 150px; }
.admin-filter-select { flex: 0 0 190px; }
.admin-club-grid .mud-grid-item { display: flex; min-width: 0; }
.admin-club-card { width: 100%; height: 100%; display: flex; flex-direction: column; overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease; }
.admin-club-card:hover { transform: translateY(-3px); box-shadow: 0 15px 30px rgba(22,66,42,.11) !important; }
.admin-club-card__content { flex: 1; padding: 22px 23px !important; }
.admin-club-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 9px; margin-bottom: 13px; }
.admin-club-card__avatar { width: 50px; height: 50px; border-radius: 15px; background: #e5f0e5; color: #2d6244;
    display: grid; place-items: center; flex-shrink: 0; }
.admin-club-card__badges { display: flex; justify-content: end; flex-wrap: wrap; }
.admin-club-card__title { font-size: 1.14rem; line-height: 1.35; color: #193e2c; overflow-wrap: anywhere; }
.admin-club-card__location { display: flex; align-items: center; gap: 3px; color: var(--nature-muted);
    font-size: .86rem; margin: 6px 0 13px; }
.admin-club-card__description { color: #586d5e; font-size: .89rem; line-height: 1.55; min-height: 42px;
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.admin-club-card__meta { display: flex; flex-wrap: wrap; align-items: center; column-gap: 19px; row-gap: 8px;
    margin-top: 18px; color: #47604f; font-size: .8rem; font-weight: 750; }
.admin-club-card__meta span { display: inline-flex; align-items: center; gap: 5px; }
.admin-club-card__meta .mud-icon-root { font-size: 18px; }
.admin-visibility-row { margin-top: 19px; padding: 12px 11px 12px 15px; border-radius: 12px;
    border: 1px solid #dceadb; background: #f2f8f0; display: flex; align-items: center;
    justify-content: space-between; gap: 12px; }
.admin-visibility-row__title { color: #235139; font-weight: 800; }
.admin-visibility-row .mud-switch { flex-shrink: 0; }
.admin-club-card__note { color: #74643a; border-radius: 10px; padding: 12px; margin-top: 18px;
    background: #fff9ea; border: 1px solid #eee2bc; font-size: .81rem; line-height: 1.5; }
.admin-club-card__actions { border-top: 1px solid var(--nature-border); background: #fbfdf9;
    display: flex; flex-wrap: wrap; gap: 4px; padding: 13px 15px !important; }
.admin-club-card__actions .mud-button-root { font-size: .8rem; }
.admin-club-card__actions .mud-icon-button { margin-left: auto; }
.admin-club-card__actions .mud-icon-button + .mud-tooltip-root .mud-icon-button { margin-left: 0; }
/* Editace profilu a formuláře */
.admin-form-hero { display: flex; align-items: center; justify-content: space-between; gap: 20px;
    margin-bottom: 24px; }
.admin-form-hero > div { max-width: 690px; }
.admin-form-hero .admin-page-title { color: var(--nature-forest); font-size: clamp(1.7rem, 2.5vw, 2.4rem); }
.admin-form-eyebrow { color: var(--nature-leaf); font-weight: 900; letter-spacing: .13em; }
.admin-form-card { overflow: visible; }
.admin-form-card > .mud-card-header { background: #f5f9f2; border-bottom: 1px solid var(--nature-border); padding: 22px 28px; border-radius: 16px 16px 0 0; }
.admin-form-card > .mud-card-content { padding: 0; }
.admin-form-tabs > .mud-tabs-tabbar { background: #fdfefb; border-bottom: 1px solid var(--nature-border); }
.admin-form-tabs .mud-tab { min-height: 60px; font-weight: 750; }
.admin-form-tabs .mud-tab.mud-tab-active { color: var(--nature-forest); }
.admin-form-panel { padding: clamp(16px, 3vw, 30px); }
.admin-form-section-heading { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px; }
.admin-form-section-heading .mud-typography-h6 { color: #254b34; margin-bottom: 3px; }
.admin-form-section-heading--compact { margin-top: 18px; }
.admin-form-step { display: grid; place-items: center; flex-shrink: 0; width: 37px; height: 37px;
    border-radius: 11px; background: #e7f2e4; color: #285a3b; font-weight: 900; font-size: .88rem; }
.admin-form-subpanel { background: #f8faf6; border: 1px solid #dde8db; border-radius: 14px; }
.admin-form-group { background: #f8faf6; border: 1px solid #dbe6dc; border-radius: 15px;
    box-shadow: none !important; }
.admin-form-schedule { background: white; border: 1px solid #e4ebe1; border-radius: 12px; box-shadow: none !important; }
.admin-schedule-section { border-left: 3px solid #c7dec8; padding-left: clamp(10px, 2vw, 20px); }
.admin-map-picker { width: 100%; height: 350px; border: 1px solid #d4e2d1; border-radius: 14px;
    overflow: hidden; background: #edf4eb; }
.admin-form-actions { background: #fbfdf9; border-top: 1px solid var(--nature-border); border-radius: 0 0 16px 16px; }
.admin-form-actions .mud-button-filled { min-height: 44px; }
/* Nástěnka vedoucích, přihlášky, docházka, akce a komunikace */
.leader-dashboard > .mud-typography-h5 { color: var(--nature-forest); }
.admin-tabs { background: #fff; border: 1px solid var(--nature-border); border-radius: 16px;
    overflow: hidden; box-shadow: 0 7px 18px rgba(28,63,42,.035); }
.admin-tabs .mud-tabs-tabbar { background: #f9fbf7; }
.admin-tabs .mud-tab { font-weight: 800; }

/* Záložky administrace: tmavý text na světlém pozadí ve všech stavech.
   MudTabs Color.Primary barví celý panel a používá bílé písmo; to se
   nesmí kombinovat se světlou barvou našeho admin-tabbaru. */
:is(.admin-tabs, .admin-form-tabs) .mud-tabs-tabbar {
    background-color: #f7faf5;
    color: var(--nature-text);
    border-bottom: 1px solid var(--nature-border);
}
:is(.admin-tabs, .admin-form-tabs) .mud-tabs-tabbar .mud-tab:not(.mud-disabled) {
    color: #345242;
    background-color: transparent;
    transition: background-color .18s ease, color .18s ease;
}
:is(.admin-tabs, .admin-form-tabs) .mud-tabs-tabbar .mud-tab:not(.mud-disabled):hover {
    color: var(--nature-forest-dark);
    background-color: #e7f1e6;
}
:is(.admin-tabs, .admin-form-tabs) .mud-tabs-tabbar .mud-tab.mud-tab-active:not(.mud-disabled) {
    color: var(--nature-forest-dark);
    background-color: #dfede1;
    font-weight: 850;
}
:is(.admin-tabs, .admin-form-tabs) .mud-tabs-tabbar .mud-tab.mud-tab-active:not(.mud-disabled):hover {
    background-color: #d5e8d8;
}
:is(.admin-tabs, .admin-form-tabs) .mud-tabs-tabbar .mud-tab:focus-visible {
    outline: 3px solid #a9632d;
    outline-offset: -3px;
    position: relative;
    z-index: 1;
}
:is(.admin-tabs, .admin-form-tabs) .mud-tabs-tabbar .mud-tab .mud-tab-icon-text {
    color: inherit;
}
:is(.admin-tabs, .admin-form-tabs) .mud-tabs-tabbar .mud-tab-slider {
    background-color: var(--nature-forest);
    height: 3px;
}
.admin-tab-panel { padding: clamp(15px, 2.5vw, 25px); }
.admin-dashboard-card { border: 1px solid var(--nature-border); border-top: 4px solid #32634b; }
.admin-dashboard-card--archived { border-top-color: #aab8a9; background: #f9faf8; }
.admin-dashboard-card > .mud-card-header { background: #f9fcf7; padding: 16px 19px; border-bottom: 1px solid #e6ede2; }
.admin-dashboard-card > .mud-card-content { padding: 18px; }
.admin-dashboard-group { background: #f6f9f4; border: 1px solid #dfebdf; border-radius: 12px; }
.admin-dashboard-group__name { color: var(--nature-text); }
.admin-dashboard-group__divider { border-top: 1px dashed #ccddce; }
.admin-page-description { margin: -17px 0 25px; line-height: 1.6; max-width: 760px; }
.admin-table { border: 1px solid var(--nature-border); border-radius: 12px; overflow: hidden; }
.admin-table .mud-table-head { background: #edf4ec; }
.admin-table .mud-table-head th { font-weight: 850; color: #2d4f37; }
.admin-table .mud-table-body tr:nth-child(even) { background: #fafcf9; }
.admin-date-panel { background: #f0f6ee; border: 1px solid #d8e7d4; border-radius: 15px; }
.admin-date-panel .mud-input-control { max-width: 350px; }
.admin-attendance-row { background: white; border: 1px solid #dde8dc; border-radius: 14px; }
.admin-attendance-row .mud-typography-subtitle1 { color: #234b35; font-weight: 800; }
.admin-attendance-row .mud-toggle-group { max-width: 100%; }
.admin-trip-card { border-top: 4px solid #bc9251; }
.admin-trip-card--past { border-top-color: #bdc7bb; background: #fafbf8; }
.admin-message-panels .mud-expand-panel { border: 1px solid #e1e9df; border-radius: 13px !important; box-shadow: none; }
.admin-system-event { color: #526b57 !important; background: #edf4e9 !important; max-width: 90%; }
@media (max-width: 959.98px) {
    .admin-page-hero { align-items: flex-start; }
    .admin-filter-bar { flex-direction: column; align-items: stretch; }
    .admin-filter-bar__controls { width: 100%; }
}
@media (max-width: 599.98px) {
    .admin-page-hero, .admin-form-hero { flex-direction: column; align-items: stretch; }
    .admin-page-hero { padding: 24px 20px; gap: 20px; }
    .admin-page-hero > .mud-button-root { width: 100%; }
    .admin-summary-tile { padding: 15px 13px; }
    .admin-summary-tile .mud-typography-h4 { font-size: 1.62rem; }
    .admin-summary-tile .mud-typography-body2 { font-size: .77rem; }
    .admin-filter-bar { padding: 15px; }
    .admin-filter-bar__controls { flex-direction: column; }
    .admin-filter-search, .admin-filter-select { flex: 1 1 auto; width: 100%; }
    .admin-club-card__content { padding: 19px !important; }
    .admin-form-card > .mud-card-header { padding: 18px; }
    .admin-form-panel, .admin-tab-panel { padding: 15px; }
    .admin-form-tabs .mud-tab { font-size: .83rem; min-width: 130px; }
    .admin-map-picker { height: 260px; }
    .admin-form-actions { flex-direction: column-reverse; align-items: stretch; }
    .admin-form-actions > div { width: 100%; justify-content: stretch; }
    .admin-form-actions > div .mud-button-root { width: 100%; }
    .admin-date-panel .mud-input-control { width: 100%; }
    .admin-attendance-row .mud-toggle-group { flex-wrap: wrap; }
}

/* ======================================================================
   NÁSTĚNKA VEDOUCÍHO | třetí etapa: pracovní přehled bez nového backendu
   ====================================================================== */
.leader-dashboard .admin-page-hero--dashboard { margin-bottom: 28px; }
.leader-hero-actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.leader-hero-actions .mud-button-outlined { border-color: rgba(255,255,255,.65); color: #fff; }
.leader-hero-actions .mud-button-outlined:hover { background: rgba(255,255,255,.13); }
.leader-section-heading { display: flex; gap: 16px; align-items: end; justify-content: space-between; margin-bottom: 19px; }
.leader-section-heading h5 { color: var(--nature-forest); margin: 2px 0 4px; font-weight: 850; }
.leader-section-heading--groups { margin-top: 6px; }
.leader-metric { position: relative; min-height: 162px; padding: 21px 21px 19px; height: 100%; background: #fff; border: 1px solid var(--nature-border); border-radius: 17px; overflow: hidden; }
.leader-metric--urgent { background: linear-gradient(135deg,#fffaf0,#fffefb 80%); border-color: #ecdcc0; }
.leader-metric__icon { position: absolute; top: 20px; right: 19px; color: #9fbba3; opacity: .8; font-size: 29px !important; }
.leader-metric--urgent .leader-metric__icon { color: #b58a50; }
.leader-metric__number { margin-bottom: 6px; color: #1f5139; font-size: clamp(1.95rem,3vw,2.35rem); font-weight: 900; line-height: 1.1; font-variant-numeric: tabular-nums; }
.leader-metric__label { font-size: .91rem; font-weight: 850; line-height: 1.3; color: #284535; }
.leader-metric__detail { margin-top: 8px; font-size: .77rem; line-height: 1.4; color: var(--nature-muted); }
.leader-panel { border: 1px solid var(--nature-border); border-radius: 18px; background: #fff; overflow: hidden; }
.leader-panel__heading { min-height: 69px; padding: 20px 23px 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 1px solid #eaf0e7; }
.leader-panel__title { display: flex; gap: 10px; align-items: center; color: #204b34; }
.leader-panel__title .mud-typography-h6 { margin: 0; }
.leader-task-row, .leader-agenda-row { display: flex; align-items: center; gap: 13px; padding: 14px 23px; border-bottom: 1px solid #edf2eb; }
.leader-task-row:last-child, .leader-agenda-row:last-child { border-bottom: 0; }
.leader-task-icon { width: 42px; height: 42px; border-radius: 13px; flex: 0 0 auto; display: grid; place-items: center; background: #eaf3ea; color: #34684a; }
.leader-task-icon--application { background: #fff0da; color: #976427; }
.leader-task-icon--attendance { background: #e8f0ee; color: #2c6c62; }
.leader-task-copy { flex: 1 1 0; min-width: 0; }
.leader-task-copy strong, .leader-agenda-copy strong { display: block; color: #234632; font-size: .9rem; line-height: 1.35; overflow-wrap: anywhere; }
.leader-task-copy span, .leader-agenda-copy span { display: block; color: var(--nature-muted); font-size: .8rem; margin-top: 4px; line-height: 1.4; overflow-wrap: anywhere; }
.leader-task-row .mud-button-root { flex-shrink: 0; }
.leader-agenda-date { width: 51px; height: 53px; flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; border: 1px solid #dce8d7; border-radius: 12px; background: #f0f6ed; color: #26533c; }
.leader-agenda-date strong { font-size: 1.22rem; font-weight: 900; line-height: 1.1; }
.leader-agenda-date small { font-size: .68rem; text-transform: uppercase; font-weight: 850; letter-spacing: .04em; }
.leader-agenda-copy { flex: 1 1 0; min-width: 0; }
.leader-agenda-copy small { display: block; color: #4c7057; font-size: .75rem; margin-top: 5px; font-weight: 750; }
.leader-panel__loading { padding: 13px 23px; display: flex; flex-direction: column; gap: 9px; }
.leader-panel__footnote { padding: 12px 23px; color: #6b7b6e; background: #fbfcf9; font-size: .77rem; line-height: 1.5; }
.leader-empty-state { display: flex; align-items: center; gap: 13px; padding: 26px 23px; }
.leader-empty-state strong { display: block; color: #2c543e; font-size: .91rem; }
.leader-muted { font-size: .83rem; color: var(--nature-muted); line-height: 1.5; margin-top: 4px; }
.leader-state-panel { border: 1px solid var(--nature-border); border-radius: 18px; }
.leader-club-card { border: 1px solid var(--nature-border); border-radius: 17px; background: #fff; overflow: hidden; }
.leader-club-card__header { display: flex; align-items: center; justify-content: space-between; padding: 17px 21px; background: #eff6ed; border-bottom: 1px solid #dce9d9; }
.leader-club-card__header span { color: #69836d; font-size: .68rem; font-weight: 900; letter-spacing: .13em; }
.leader-club-card__header .mud-typography-h6 { color: #234e37; font-size: 1.08rem; margin-top: 3px; }
.leader-group-card { padding: 17px 20px; border-bottom: 1px solid #e9f0e8; }
.leader-group-card:last-child { border-bottom: 0; }
.leader-group-card__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.leader-group-card__top strong { display: block; font-size: .97rem; font-weight: 850; color: #263f30; }
.leader-group-card__top span { display: flex; align-items: center; gap: 4px; color: #758274; font-size: .79rem; margin-top: 4px; }
.leader-group-card__next { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 13px; color: #547261; font-size: .81rem; font-weight: 650; }
.leader-group-card__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 14px; }
.leader-group-card__actions .mud-button-root { white-space: nowrap; }
.leader-group-card__switch { display: flex; align-items: center; justify-content: space-between; margin-top: 15px; padding-top: 12px; border-top: 1px dashed #e1e9df; color: #5b7063; font-size: .78rem; }
.leader-archived-card { border: 1px solid #e1e9dd; border-radius: 13px; background: #f9fbf8; }
.leader-archive .mud-expand-panel { border: 1px solid var(--nature-border); box-shadow: none !important; background: #fff; }
@media (max-width: 959.98px) {
    .leader-hero-actions { width: 100%; }
    .leader-metric { min-height: 151px; }
}
@media (max-width: 599.98px) {
    .leader-dashboard .admin-page-hero--dashboard { padding: 24px 20px; }
    .leader-hero-actions .mud-button-root { flex: 1 1 auto; }
    .leader-metric { padding: 16px 13px; min-height: 140px; }
    .leader-metric__icon { right: 12px; top: 11px; font-size: 23px !important; }
    .leader-metric__number { font-size: 1.85rem; }
    .leader-metric__label { font-size: .83rem; }
    .leader-metric__detail { font-size: .71rem; }
    .leader-section-heading { align-items: flex-start; flex-direction: column; }
    .leader-panel__heading { padding: 16px; }
    .leader-task-row, .leader-agenda-row { padding: 13px 14px; gap: 9px; }
    .leader-task-icon { width: 36px; height: 36px; }
    .leader-task-row .mud-button-root { min-width: 0; padding-inline: 8px; }
    .leader-task-row .mud-button-label { font-size: .76rem; }
    .leader-task-copy strong { font-size: .83rem; }
    .leader-task-copy span, .leader-agenda-copy span { font-size: .74rem; }
    .leader-group-card { padding: 15px; }
    .leader-club-card__header { padding: 15px; }
}

/* Formuláře – třetí etapa sjednocení UI */
.nature-editor .mud-card-header { background: #f5f9f2; border-bottom: 1px solid var(--nature-border); }
.nature-editor .mud-card-content { padding: clamp(17px, 3vw, 30px); }
.nature-editor .mud-paper.admin-form-subpanel { background: #fbfdf8; }
.nature-editor .mud-input-control { margin-top: 5px; }
.nature-form-dialog .mud-dialog-content { padding: clamp(16px, 2.8vw, 28px) !important; }
.nature-form-dialog .mud-dialog-actions { background: #f8fbf5; border-top: 1px solid #e2eadd; }
.nature-form-dialog .mud-input-control { margin-bottom: 3px; }
.nature-form-dialog .mud-typography-subtitle2 { font-weight: 800; color: #24583a; }
@media (max-width: 599.98px) {
    .nature-editor .admin-form-subpanel { padding: 17px !important; }
    .nature-form-dialog .mud-dialog-actions { flex-wrap: wrap; }
    .nature-form-dialog .mud-dialog-actions > .mud-button-root { min-height: 42px; }
}

/* Soukromé zprávy – oddělené od hromadných oznámení. */
.private-thread { min-width:0; }
.private-thread-history { max-height:420px; overflow-y:auto; padding:12px 8px; background:#f8faf7; border:1px solid #e3ebe2; border-radius:14px; }
.private-thread-row { display:flex; justify-content:flex-start; margin:9px 0; }
.private-thread-row-mine { justify-content:flex-end; }
.private-thread-bubble { background:#fff; border:1px solid #dee8de; border-radius:15px 15px 15px 4px; padding:12px 15px; max-width:90%; min-width:90px; box-shadow:0 2px 5px rgba(22,54,30,.04); }
.private-thread-bubble-mine { border-color:#c2ddcc; background:#e7f3e9; border-radius:15px 15px 4px 15px; }
.private-thread-sender { font-weight:700; color:#1d563a; margin-bottom:4px; }
.private-thread-time { display:flex; gap:5px; justify-content:flex-end; align-items:center; color:#53685b; margin-top:6px; font-size:.72rem; }
.private-thread-compose { margin-top:16px; }
@media (max-width:600px) { .private-thread-bubble { max-width:96%; } .private-thread-history { max-height:360px; } }
