/* Reset a základní styly */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4f46e5;
    --primary-hover: #4338ca;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
    
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --bg-gray: #f9fafb;
    --border-color: #e5e7eb;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;

    /* Značka - přepisuje se tématem kroužku (.theme-chess apod.) */
    --brand-a: #4f46e5;
    --brand-b: #6366f1;
    --brand-soft: #eef2ff;
    --app-bg: #f4f5fb;
    --card-bg: #fff;
    --hover-bg: #f9fafb;
}

/* ---------- Téma: šachy ---------- */
.theme-chess {
    --primary-color: #8a5a2b;   /* ořech, kontrast 5,6:1 na bílé */
    --primary-hover: #6f4720;
    --brand-a: #2b2724;         /* tmavé pole šachovnice */
    --brand-b: #4a423b;
    --brand-soft: #f3e7d3;
    --app-bg: #f7f2e9;          /* pergamen */
    --info-color: #769656;      /* zelená turnajová šachovnice */
}

/* Proužek šachovnice pod horní lištou */
.theme-chess .app-bar,
.theme-chess .admin-header-new {
    border-bottom: 6px solid transparent;
    border-image: repeating-linear-gradient(90deg,
        #f0d9b5 0 14px, #b58863 14px 28px) 6;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
}

/* Container */
.container {
    max-width: 680px;   /* čitelný sloupec; bez toho se obsah roztáhl přes celý monitor
                           a nadpisy zůstaly vlevo, zatímco kalendář plaval uprostřed */
    margin: 0 auto;
    padding: 1rem;
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;   /* dál už ne - kalendář i texty mají zůstat v jednom sloupci */
        padding: 1.5rem;
    }
}

/* Public Header */
.public-header {
    text-align: center;
    padding: 2rem 1rem;
    background: linear-gradient(135deg, var(--brand-a) 0%, var(--brand-b) 100%);
    color: white;
    margin: -1rem -1rem 2rem -1rem;
}

.public-header h1 {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* Texty v barevné hlavičce - vždy světlé.
   Selektory musí být svázané s .public-header, jinak je přebijí
   šedé varianty .subtitle / .group-description definované níž pro kartičky. */
.public-header .subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.92);
}

.public-header .breadcrumb {
    font-size: 0.875rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.92);
}

.breadcrumb {
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.public-header .breadcrumb a,
.breadcrumb a {
    color: inherit;
    text-decoration: none;
}

.public-header .breadcrumb a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.public-header .group-description {
    font-size: 1.0625rem;
    margin-top: 0.5rem;
    color: rgba(255, 255, 255, 0.95);
}

.public-header .group-schedule-info {
    font-size: 0.9375rem;
    margin-top: 0.5rem;
    color: rgba(255, 255, 255, 0.92);
}

.group-schedule-info {
    font-size: 0.9rem;
    margin-top: 0.5rem;
    color: var(--text-secondary);
}

/* Teachers Grid */
.teachers-grid {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
}

@media (min-width: 640px) {
    .teachers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.teacher-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s;
    box-shadow: var(--shadow-sm);
}

.teacher-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.teacher-avatar {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, #6366f1 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.teacher-card h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.teacher-email {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Groups List */
.groups-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.group-list-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s;
    box-shadow: var(--shadow-sm);
}

.group-list-item:hover {
    box-shadow: var(--shadow-md);
}

.group-icon {
    width: 3rem;
    height: 3rem;
    min-width: 3rem;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--primary-color) 0%, #6366f1 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    font-weight: 700;
    text-transform: uppercase;
}

.group-info {
    flex: 1;
}

.group-info h2 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.group-info p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0.25rem 0;
}

.group-schedule-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.arrow {
    font-size: 1.5rem;
    color: var(--text-secondary);
}

/* Share Section */
.share-section {
    text-align: center;
    margin-bottom: 2rem;
}

.btn-share {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: white;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-share:hover {
    background: var(--primary-color);
    color: white;
}

/* Section Title */
.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

/* Pinned Section */
.pinned-section {
    margin-bottom: 2rem;
}

/* Messages Grid */
.messages-grid {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
}

.message-card {
    padding: 1.25rem;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all 0.2s;
}

.message-card:hover {
    box-shadow: var(--shadow-md);
}

.message-card-pinned {
    background: #fffbeb;
    border-color: #fbbf24;
}

.message-type-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    margin-bottom: 0.75rem;
}

.message-type-akce .message-type-badge {
    background: #dbeafe;
    color: #1e40af;
}

.message-type-co-vzit .message-type-badge {
    background: #dcfce7;
    color: #166534;
}

.message-type-zmena .message-type-badge {
    background: #fee2e2;
    color: #991b1b;
}

.message-type-info .message-type-badge {
    background: #e0e7ff;
    color: #3730a3;
}

.message-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.message-card p {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.message-date {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.75rem;
}

.message-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.75rem;
}

.message-group {
    font-weight: 500;
}

/* Calendar */
.calendar-section {
    margin-bottom: 2rem;
}

.calendar-container {
    display: grid;
    grid-template-columns: 1fr;   /* měsíce jdou pod sebe, prochází se rolováním */
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.calendar {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1rem;
    box-shadow: var(--shadow-sm);
}

.calendar-header {
    text-align: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
}

.calendar-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.25rem;
}

.calendar-day-name {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 0.5rem 0.25rem;
    text-transform: uppercase;
}

.calendar-day-name.so,
.calendar-day-name.ne {
    color: var(--danger-color);
}

.calendar-day {
    aspect-ratio: 1;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: white;
    position: relative;
    cursor: default;
}

.calendar-day.empty {
    border: none;
    background: transparent;
}

.calendar-day.has-events {
    background: #f0f9ff;
    border-color: var(--primary-color);
    cursor: pointer;
    transition: all 0.2s;
}

.calendar-day.has-events:hover {
    background: #dbeafe;
    transform: scale(1.05);
}

.calendar-day.today {
    background: #fffbeb;
    border-color: #f59e0b;
    font-weight: 700;
}

.calendar-day.today.has-events {
    background: linear-gradient(135deg, #fffbeb 0%, #f0f9ff 100%);
}

.calendar-day.weekend {
    background: #fafafa;
}

.calendar-day.weekend.has-events {
    background: #f0f9ff;
}

.day-number {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

.event-dots {
    display: flex;
    gap: 2px;
    margin-top: 2px;
}

.event-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.event-dot-akce {
    background: #3b82f6;
}

.event-dot-co-vzit {
    background: #10b981;
}

.event-dot-zmena {
    background: #ef4444;
}

.event-dot-info {
    background: #6366f1;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    padding: 1rem;
    overflow-y: auto;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: var(--radius-lg);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: modalFadeIn 0.2s;
}

.modal-content-small {
    max-width: 400px;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    margin-bottom: 1.5rem;
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    margin: 0;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.modal-actions .btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    width: 2rem;
    height: 2rem;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-messages {
    padding: 1.25rem;
}

.modal-messages .message-card {
    margin-bottom: 1rem;
}

.modal-messages .message-card:last-child {
    margin-bottom: 0;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-secondary);
}

.empty-state p {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

/* Footer */
.public-footer {
    text-align: center;
    padding: 2rem 1rem;
    margin-top: 3rem;
    border-top: 1px solid var(--border-color);
}

.public-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.public-footer a:hover {
    text-decoration: underline;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.625rem 1.25rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

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

.btn-danger {
    background: var(--danger-color);
    color: white;
}

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

.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-success:hover {
    background: #059669;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Admin Styles */
.admin-body {
    background: var(--app-bg);
}

.admin-container {
    min-height: 100vh;
}

/* Nový Admin Header s ikonami */
.admin-header-new {
    background: linear-gradient(135deg, var(--brand-a) 0%, var(--brand-b) 100%);
    border-bottom: none;
    padding: 1rem 1.5rem;
}

.admin-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: transparent;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    color: white;
    font-size: 1.5rem;
    transition: all 0.2s;
    cursor: pointer;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.nav-item.active {
    background: rgba(255, 255, 255, 0.2);
}

.nav-item i {
    font-size: 1.5rem;
    color: white;
}

.user-initials {
    font-size: 1.125rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
    grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.dashboard-grid-profile {
    grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 1024px) {
    .dashboard-grid-profile {
        grid-template-columns: repeat(3, 1fr);
    }
}

.dashboard-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s;
}

.dashboard-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.dashboard-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.dashboard-card-link:hover {
    border-color: var(--primary-color);
}

.dashboard-card-link h3 {
    color: var(--text-primary);
}

.dashboard-card-link p {
    color: var(--text-secondary);
}

.dashboard-card-icon {
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--primary-color) 0%, #6366f1 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Jednoduchá dlaždice - ikona uprostřed */
.dashboard-card-simple {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 1rem;
    min-height: 180px;
}

.dashboard-card-icon-center {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: #f3f4f6;
    color: #f59e0b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.dashboard-card-icon-logout {
    color: #f59e0b;
}

.dashboard-card-simple h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.dashboard-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.dashboard-card p {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* Starý admin header (deprecated) */
.admin-header {
    background: white;
    border-bottom: 1px solid var(--border-color);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
}

.admin-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
}

.admin-user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.admin-main {
    padding: 2rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Login */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.login-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow-lg);
}

.login-card h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.login-hint {
    text-align: center;
    margin-top: 1rem;
    color: var(--text-secondary);
}

/* Forms */
.form-container {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-row {
    display: grid;
    gap: 1rem;
}

.form-row-mobile {
    grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
    .form-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-group small {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.page-header h2 {
    font-size: 1.875rem;
    font-weight: 700;
}

.page-header > div {
    display: flex;
    gap: 0.5rem;
}

/* Groups Grid (Admin) */
.groups-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .groups-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.group-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.group-card-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.group-card-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--bg-gray);
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
}

.badge-pinned {
    background: #fffbeb;
    color: #92400e;
}

.group-description {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.group-schedule {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.group-card-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.group-card-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.public-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
}

.public-link:hover {
    text-decoration: underline;
}

/* Messages List (Admin) */
.messages-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message-item {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
}

.message-item-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.message-item-header > div {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.message-item-actions {
    display: flex;
    gap: 0.5rem;
}

.message-type {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
}

.message-type-akce {
    background: #dbeafe;
    color: #1e40af;
}

.message-type-co-vzit {
    background: #dcfce7;
    color: #166534;
}

.message-type-zmena {
    background: #fee2e2;
    color: #991b1b;
}

.message-type-info {
    background: #e0e7ff;
    color: #3730a3;
}

.message-item h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.message-content {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.message-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Alert */
.alert {
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
}

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

/* Profile Page */
.profile-header {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 2rem;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, #10b981 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.profile-info-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.profile-email {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.profile-role {
    font-size: 0.9375rem;
    color: var(--primary-color);
    font-weight: 600;
}

.profile-info {
    margin-top: 1rem;
}

.profile-info p {
    margin-bottom: 0.75rem;
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.profile-info strong {
    color: var(--text-primary);
    font-weight: 600;
}

.profile-details {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.profile-details p {
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.profile-form {
    margin-top: 1rem;
}

.profile-form .form-group {
    margin-bottom: 1rem;
}

.profile-form .btn {
    width: 100%;
}

@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-avatar {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
}

/* Groups List */
.groups-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.group-list-item {
    display: grid;
    grid-template-columns: auto 1fr auto auto auto;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.group-list-item:hover {
    background: var(--hover-bg);
    border-color: var(--primary-color);
    /* Žádný posun: obal řádku má overflow:hidden kvůli swipe mazání,
       takže zvednutí o 2 px uřízlo horní lem rámečku. */
    box-shadow: 0 6px 14px -10px rgba(31, 41, 55, 0.55);
}

.group-icon {
    width: 48px;
    height: 48px;
    background: #f3f4f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.group-icon i {
    font-size: 1.25rem;
    color: var(--primary-color);
}

.group-info {
    min-height: 48px;
    display: flex;
    align-items: center;
}

.group-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.4;
    max-height: 2.8em;
}

.group-meta {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.group-messages-btn {
    padding: 0.75rem;
    background: #f3f4f6;
    border: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 48px;
}

.group-messages-btn:hover {
    background: var(--primary-color);
}

.group-messages-btn i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.group-messages-btn:hover i {
    color: white;
}

.group-actions {
    display: flex;
    gap: 0.5rem;
    margin-left: auto;
}

/* Subjects List */
.subjects-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.subject-list-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.subject-list-item:hover {
    background: var(--hover-bg);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.subject-icon {
    width: 48px;
    height: 48px;
    background: #f3f4f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.subject-icon i {
    font-size: 1.25rem;
    color: var(--primary-color);
}

.subject-info {
    flex: 1;
}

.subject-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
}

.subject-meta {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.subject-actions {
    display: flex;
    gap: 0.5rem;
}

/* Schedule List */
.schedule-list {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.schedule-entry {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
}

.schedule-entry:last-child {
    border-bottom: none;
}

.schedule-entry-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.schedule-entry-info strong {
    font-size: 1rem;
    color: var(--text-primary);
}

.schedule-type {
    font-size: 0.8125rem;
    color: var(--primary-color);
    font-weight: 600;
}

.schedule-location {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.schedule-validity {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.schedule-entry-actions {
    display: flex;
    gap: 0.5rem;
}

/* Calendar Navigation */
.calendar-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    gap: 1rem;
    flex-wrap: wrap;
}

.calendar-nav-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.calendar-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.calendar-nav-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border-radius: 8px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s;
    font-size: 0.875rem;
}

.calendar-nav-btn:hover {
    background: var(--primary-color);
    color: white;
}

/* Calendar Actions */
.calendar-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.calendar-actions .btn {
    padding: 0.4rem 0.75rem;
    font-size: 0.8125rem;
}

.calendar-actions .btn i {
    font-size: 0.8125rem;
}

@media (max-width: 768px) {
    .calendar-actions {
        flex-wrap: wrap;
    }
}

.btn-info {
    background: #3b82f6;
    color: white;
}

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

.btn-warning {
    background: #f59e0b;
    color: white;
}

.btn-warning:hover {
    background: #d97706;
}

.btn-success {
    background: #10b981;
    color: white;
}

.btn-success:hover {
    background: #059669;
}

.btn-danger {
    background: #ef4444;
    color: white;
}

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

.btn-purple {
    background: #9b59b6;
    color: white;
}

.btn-purple:hover {
    background: #8e44ad;
}

.btn-pink {
    background: #e91e63;
    color: white;
}

.btn-pink:hover {
    background: #c2185b;
}

.btn-teal {
    background: #009688;
    color: white;
}

.btn-teal:hover {
    background: #00796b;
}

.btn-secondary {
    background: #6b7280;
    color: white;
}

.btn-secondary:hover {
    background: #4b5563;
}
.btn-success:hover {
    background: #7c3aed;
}

.btn-success.btn-save {
    background: #10b981;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-success.btn-save:hover {
    background: #059669;
}

/* Disabled state for view mode */
.calendar-actions.disabled .btn {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.calendar-hint {
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: -0.5rem 0 1rem 0;
}

/* Month Calendar */
.month-calendar {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.calendar-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.calendar-day-name {
    text-align: center;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.875rem;
    padding: 0.5rem;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
}

.calendar-day {
    min-height: 100px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.5rem;
    background: white;
    position: relative;
    transition: all 0.2s;
}

.calendar-day-clickable {
    cursor: pointer;
}

.calendar-day-clickable:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.calendar-day-empty {
    background: #f9fafb;
    border-color: transparent;
}

.calendar-day-today {
    background: #f0f9ff;
    border-color: var(--primary-color);
}

.calendar-day-has-events {
    background: #fffbeb;
}

.calendar-day-number {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.calendar-events {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.calendar-event {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.5625rem;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    cursor: pointer;
    transition: all 0.2s;
}

.calendar-event:hover {
    background: #059669;
    transform: scale(1.02);
}

.calendar-event-time {
    font-weight: 600;
    font-size: 0.5625rem;
}

.calendar-event-location {
    font-size: 0.6875rem;
    opacity: 0.9;
}

/* Schedule Detail Modal */
.schedule-detail {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.schedule-detail-row {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #f9fafb;
    border-radius: 8px;
}

.schedule-detail-row strong {
    min-width: 80px;
    color: var(--text-secondary);
    font-weight: 600;
}

/* Reminder Dots */
.reminder-dots {
    display: flex;
    gap: 0.25rem;
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
    flex-wrap: wrap;
}

.reminder-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.reminder-dot:hover {
    transform: scale(1.3);
}

.calendar-day-has-reminders {
    border-width: 2px;
}

/* Messages List */
.messages-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message-card {
    background: white;
    border-radius: 8px;
    padding: 1.25rem;
    border-left: 4px solid;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.message-card.message-type-info {
    border-left-color: #10b981;
}

.message-card.message-type-co-vzit {
    border-left-color: #3b82f6;
}

.message-card.message-type-zmena {
    border-left-color: #ef4444;
}

.message-card.message-type-akce {
    border-left-color: #8b5cf6;
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.message-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.delete-confirm {
    display: none;
    gap: 0.25rem;
    align-items: center;
}

.btn-icon-small {
    background: none;
    border: none;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    border-radius: 4px;
    font-size: 0.875rem;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-icon-small.btn-confirm {
    background: #10b981;
    color: white;
}

.btn-icon-small.btn-confirm:hover {
    background: #059669;
}

.btn-icon-small.btn-cancel {
    background: #ef4444;
    color: white;
}

.btn-icon-small.btn-cancel:hover {
    background: #dc2626;
}

.message-header h4 {
    margin: 0.25rem 0 0 0;
    font-size: 1.125rem;
    color: var(--text-primary);
}

.message-type-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #f3f4f6;
    border-radius: 4px;
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.message-card p {
    margin: 0 0 0.75rem 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

.message-meta {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
}

.btn-icon {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color 0.2s;
    font-size: 1rem;
}

.btn-icon:hover {
    color: var(--primary-color);
}

.btn-icon.btn-danger:hover {
    color: #ef4444;
}

.subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
}

@media (max-width: 768px) {
    .month-calendar {
        padding: 0.5rem;
    }
    
    .calendar-header {
        gap: 0.125rem;
    }
    
    .calendar-day-name {
        font-size: 0.625rem;
        padding: 0.25rem 0;
    }
    
    .calendar-grid {
        gap: 0.125rem;
    }
    
    .calendar-day {
        min-height: 50px;
        padding: 0.125rem;
        border-width: 1px;
    }
    
    .calendar-day-number {
        font-size: 0.6875rem;
    }
    
    .calendar-event {
        font-size: 0.5rem;
        padding: 0.125rem 0.25rem;
    }
    
    .reminder-dot {
        width: 6px;
        height: 6px;
    }
    
    .reminder-dots {
        gap: 0.125rem;
        margin-top: 0.125rem;
        margin-bottom: 0.125rem;
    }
    
    .calendar-nav {
        padding: 0.75rem;
        gap: 0.5rem;
    }
    
    .calendar-title {
        font-size: 1rem;
    }
    
    .calendar-nav-btn {
        width: 32px;
        height: 32px;
        font-size: 0.875rem;
    }
    
    .calendar-actions .btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8125rem;
    }
    
    .calendar-actions .btn i {
        font-size: 0.875rem;
    }
}

/* Responsive */
@media (min-width: 768px) {
    .public-header h1 {
        font-size: 2.25rem;
    }
    
}



/* ==========================================================================
   Rodiče, pozvánky a potvrzování účasti
   ========================================================================== */

.parent-container {
    max-width: 720px;
    margin: 0 auto;
    padding: 1rem;
}

.parent-header {
    margin-bottom: 1.25rem;
}

.parent-header h1 {
    font-size: 1.5rem;
    color: var(--text-primary);
}

.parent-header-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.parent-sub {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.parent-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.invite-intro {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

/* Výběr dětí */
.child-picklist {
    display: grid;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.child-pick {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 1.05rem;
}

.child-pick input {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
}

.child-pick-mine {
    border-color: var(--success-color);
    background: #f0fdf4;
}

.child-pick-name small {
    color: var(--text-secondary);
}

.child-list {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
}

.child-list li {
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border-color);
}

.child-group {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-left: 0.5rem;
}

/* Karta akce s potvrzením */
.event-card h3 {
    font-size: 1.15rem;
    margin: 0.35rem 0 0.5rem;
}

.event-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.event-date-badge {
    background: var(--primary-color);
    color: #fff;
    border-radius: var(--radius-sm);
    padding: 0.3rem 0.6rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.event-location,
.event-deadline {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.event-content {
    line-height: 1.55;
    margin-bottom: 1rem;
}

.event-deadline-past {
    color: var(--danger-color);
}

.badge-answered {
    background: #dcfce7;
    color: #166534;
}

.badge-waiting {
    background: #fef3c7;
    color: #92400e;
}

.badge-pending {
    background: #fef3c7;
    color: #92400e;
    margin-left: 0.5rem;
}

/* Přepínač účasti */
.rsvp-row {
    border-top: 1px solid var(--border-color);
    padding: 0.9rem 0;
}

.rsvp-child {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.rsvp-options {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.rsvp-option {
    flex: 1;
    text-align: center;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.7rem 0.35rem;
    cursor: pointer;
    font-size: 0.95rem;
    user-select: none;
}

.rsvp-option input {
    display: none;
}

.rsvp-option:has(input:checked) {
    color: #fff;
    font-weight: 600;
}

.rsvp-option-yes:has(input:checked) {
    background: var(--success-color);
    border-color: var(--success-color);
}

.rsvp-option-no:has(input:checked) {
    background: var(--danger-color);
    border-color: var(--danger-color);
}

.rsvp-option-maybe:has(input:checked) {
    background: var(--warning-color);
    border-color: var(--warning-color);
}

.rsvp-option:has(input:disabled) {
    opacity: 0.55;
    cursor: not-allowed;
}

.rsvp-note {
    width: 100%;
    padding: 0.7rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
}

/* Administrace rodičů a účasti */
.admin-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}

.admin-card h2 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.admin-card .hint,
.parent-table .hint {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.parent-table {
    display: grid;
    gap: 0.5rem;
}

.parent-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-gray);
    flex-wrap: wrap;
    text-decoration: none;
    color: inherit;
}

.parent-row-main {
    flex: 1 1 260px;
    min-width: 0;
}

.parent-row-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.parent-contact {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.parent-contact-empty {
    font-style: italic;
}

.inline-form {
    display: inline;
}

.invite-link {
    width: 260px;
    max-width: 100%;
    font-size: 0.8rem;
    padding: 0.45rem 0.6rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--text-secondary);
}

.attendance-summary {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: 0.75rem 0 1rem;
}

.count {
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    background: var(--bg-gray);
    color: var(--text-secondary);
}

.count-yes { background: #dcfce7; color: #166534; }
.count-no { background: #fee2e2; color: #991b1b; }
.count-maybe { background: #fef3c7; color: #92400e; }
.count-none { background: #f3f4f6; color: #4b5563; }

.status-pill {
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-yes { background: #dcfce7; color: #166534; }
.status-no { background: #fee2e2; color: #991b1b; }
.status-maybe { background: #fef3c7; color: #92400e; }
.status-none { background: #f3f4f6; color: #4b5563; }

.attendance-row.attendance-yes { border-left: 4px solid var(--success-color); }
.attendance-row.attendance-no { border-left: 4px solid var(--danger-color); }
.attendance-row.attendance-maybe { border-left: 4px solid var(--warning-color); }

.attendance-note {
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-top: 0.25rem;
}

.rsvp-box {
    background: #f5f3ff;
    border: 1px solid #ddd6fe;
    border-radius: var(--radius-md);
    padding: 1rem;
}

@media (min-width: 640px) {
    .rsvp-note { max-width: 100%; }
}

.public-parent-cta {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: 0.75rem 0 1rem;
}

/* Telefon u dítěte v administraci */
.phone-form {
    display: flex;
    gap: 0.4rem;
    align-items: center;
    margin-top: 0.5rem;
}

.phone-input {
    width: 170px;
    max-width: 60%;
    padding: 0.4rem 0.6rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
}

.parent-contact-empty {
    font-style: italic;
}

/* ==========================================================================
   Zvoneček, oznámení a přehled přihlášek
   ========================================================================== */

.parent-header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bell {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: #fff;
    color: var(--text-primary);
    text-decoration: none;
}

.bell-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--danger-color);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}

/* Zvoneček v administraci sedí v kruhové navigaci, badge musí ven z ní */
.admin-nav .nav-item {
    position: relative;
    overflow: visible;
}

/* Seznam oznámení */
.notif-actions {
    margin-bottom: 0.75rem;
}

.notif-list {
    display: grid;
    gap: 0.5rem;
}

.notif-row {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    padding: 0.9rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: #fff;
    color: inherit;
    text-decoration: none;
}

.notif-unread {
    border-left: 4px solid var(--primary-color);
    background: #f5f3ff;
}

.notif-icon {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--bg-gray);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.notif-main {
    min-width: 0;
}

.notif-body {
    color: var(--text-secondary);
    font-size: 0.92rem;
    margin-top: 0.15rem;
}

.notif-time {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-top: 0.3rem;
}

/* Kam jsme přihlášení */
.signup-list {
    display: grid;
    gap: 0.5rem;
}

.signup-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--success-color);
    border-radius: var(--radius-md);
    background: var(--bg-gray);
}

.signup-row.signup-maybe {
    border-left-color: var(--warning-color);
}

.signup-main {
    flex: 1 1 240px;
    min-width: 0;
}

.signup-date {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.signup-child {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.2rem;
}

.signup-note {
    font-size: 0.88rem;
    margin-top: 0.3rem;
}

.signup-actions {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.return-hint {
    margin: 1rem 0;
    padding: 0.85rem 1rem;
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ==========================================================================
   Vstupní obrazovka rodiče (přihlášení telefonem, neplatný odkaz)
   Mobil je hlavní zařízení - velké cíle na prst, písmo 17px kvůli iOS,
   které pod 16px stránku při psaní přizoomuje.
   ========================================================================== */

.auth-screen {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
    background:
        radial-gradient(1100px 520px at 50% -10%, var(--brand-soft) 0%, rgba(255, 255, 255, 0) 70%),
        linear-gradient(180deg, #fff 0%, var(--app-bg) 100%);
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border: 1px solid rgba(17, 24, 39, 0.06);
    border-radius: 22px;
    box-shadow: 0 18px 40px -18px rgba(31, 41, 55, 0.28), 0 2px 6px rgba(31, 41, 55, 0.05);
    padding: 2rem 1.5rem 1.5rem;
    text-align: center;
}

.auth-mark {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #fff;
    background: linear-gradient(135deg, var(--brand-a) 0%, var(--brand-b) 100%);
    box-shadow: 0 10px 20px -10px rgba(31, 41, 55, 0.45);
}

.auth-mark-success {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    box-shadow: 0 10px 20px -10px rgba(16, 185, 129, 0.8);
}

.auth-mark-warning {
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
    box-shadow: 0 10px 20px -10px rgba(245, 158, 11, 0.8);
}

.auth-card h1 {
    font-size: 1.4rem;
    line-height: 1.25;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    text-wrap: balance;
}

.auth-lead {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.5;
    margin: 0 auto 1.5rem;
    max-width: 30ch;
    text-wrap: pretty;
}

.auth-form {
    text-align: left;
}

.auth-label {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
    color: var(--text-primary);
}

.auth-input-wrap {
    position: relative;
    display: block;
}

.auth-input-wrap .auth-input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
}

.auth-input {
    width: 100%;
    height: 56px;
    padding: 0 1rem 0 2.9rem;
    font-size: 17px;              /* pod 16px iOS zoomuje */
    letter-spacing: 0.02em;
    color: var(--text-primary);
    background: #fff;
    border: 1.5px solid var(--border-color);
    border-radius: 14px;
    transition: border-color 0.15s, box-shadow 0.15s;
    -webkit-appearance: none;
    appearance: none;
}

.auth-input::placeholder {
    color: #b6bcc7;
    letter-spacing: normal;
}

.auth-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.14);
}

.auth-hint {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 0.45rem;
}

.auth-submit {
    width: 100%;
    min-height: 54px;
    margin-top: 1.25rem;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    box-shadow: 0 12px 22px -14px rgba(79, 70, 229, 0.95);
    transition: transform 0.12s, box-shadow 0.15s, filter 0.15s;
}

.auth-submit:hover {
    filter: brightness(1.05);
}

.auth-submit:active {
    transform: translateY(1px);
    box-shadow: 0 6px 14px -10px rgba(79, 70, 229, 0.95);
}

.auth-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    min-height: 48px;
    margin-top: 0.75rem;
    border-radius: 14px;
    border: 1.5px solid var(--border-color);
    background: #fff;
    color: var(--text-primary);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.auth-alert {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    text-align: left;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    font-size: 0.95rem;
    line-height: 1.45;
    margin-bottom: 1.1rem;
}

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

.auth-alert-info {
    background: var(--bg-gray);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    text-align: left;
}

.auth-steps {
    list-style: none;
    margin: 0 0 1.25rem;
    padding: 0;
    text-align: left;
}

.auth-steps li {
    display: flex;
    gap: 0.7rem;
    align-items: flex-start;
    padding: 0.4rem 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.45;
}

.auth-steps i {
    color: var(--success-color);
    margin-top: 0.2rem;
}

.auth-foot {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.auth-foot a {
    color: var(--text-secondary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

@media (min-width: 480px) {
    .auth-card {
        padding: 2.25rem 2rem 1.75rem;
    }

    .auth-card h1 {
        font-size: 1.55rem;
    }
}

/* ==========================================================================
   Aplikační rám: horní lišta + dlaždice (stejný vzor jako MES)
   ========================================================================== */

.app-body {
    background: var(--app-bg);
    min-height: 100vh;
}

.app-bar {
    position: sticky;
    top: 0;
    z-index: 40;
    background: linear-gradient(135deg, var(--brand-a) 0%, var(--brand-b) 100%);
    color: #fff;
    padding-top: env(safe-area-inset-top);
    box-shadow: 0 2px 12px rgba(31, 41, 55, 0.18);
}

.app-bar-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 0.9rem;
}

.app-bar-btn {
    position: relative;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
}

.app-bar-btn:active {
    transform: scale(0.96);
}

.app-bar-logo {
    background: rgba(255, 255, 255, 0.24);
}

.app-bar-title {
    flex: 1 1 auto;
    min-width: 0;
    line-height: 1.2;
}

.app-bar-title strong {
    display: block;
    font-size: 1.05rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-bar-title span {
    display: block;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.85);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-bar-actions {
    display: flex;
    gap: 0.4rem;
}

.app-main {
    max-width: 900px;
    margin: 0 auto;
    padding: 1rem 0.9rem 2.5rem;
}

/* Dlaždice */
.tiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.tile {
    background: #fff;
    border: 1px solid rgba(17, 24, 39, 0.06);
    border-radius: 16px;
    box-shadow: 0 4px 14px -8px rgba(31, 41, 55, 0.3);
    padding: 1.1rem 0.85rem;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.55rem;
    text-decoration: none;
    color: var(--text-primary);
    transition: transform 0.12s, box-shadow 0.15s;
}

.tile:active {
    transform: scale(0.97);
}

.tile-icon {
    position: relative;
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
}

.tile-icon-indigo { background: linear-gradient(135deg, #4f46e5, #6366f1); }
.tile-icon-green  { background: linear-gradient(135deg, #059669, #10b981); }
.tile-icon-amber  { background: linear-gradient(135deg, #d97706, #f59e0b); }
.tile-icon-blue   { background: linear-gradient(135deg, #2563eb, #3b82f6); }
.tile-icon-pink   { background: linear-gradient(135deg, #db2777, #ec4899); }
.tile-icon-slate  { background: linear-gradient(135deg, #475569, #64748b); }

/* Šachy: dřevo, grafit a turnajová zelená místo pastelek */
.theme-chess .tile-icon-indigo { background: linear-gradient(135deg, #2b2724, #4a423b); }
.theme-chess .tile-icon-green  { background: linear-gradient(135deg, #5d7c43, #769656); }
.theme-chess .tile-icon-amber  { background: linear-gradient(135deg, #a9743f, #c99b63); }
.theme-chess .tile-icon-blue   { background: linear-gradient(135deg, #6f4720, #8a5a2b); }
.theme-chess .tile-icon-pink   { background: linear-gradient(135deg, #7c5a3a, #a07850); }
.theme-chess .tile-icon-slate  { background: linear-gradient(135deg, #3a3632, #57514a); }

/* Vlastní zpráva v konverzaci nese barvu tématu */
.theme-chess .chat-mine {
    background: linear-gradient(135deg, #6f4720, #8a5a2b);
}

.theme-chess .thread-unread,
.theme-chess .notif-unread {
    background: var(--brand-soft);
}

.tile-badge {
    position: absolute;
    top: -7px;
    right: -7px;
    min-width: 22px;
    height: 22px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--danger-color);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 22px;
    box-shadow: 0 0 0 2px #fff;
}

.tile-name {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.25;
}

.tile-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.3;
}

/* Sekce uvnitř stránek */
.app-section {
    background: #fff;
    border: 1px solid rgba(17, 24, 39, 0.06);
    border-radius: 16px;
    box-shadow: 0 4px 14px -10px rgba(31, 41, 55, 0.3);
    padding: 1.1rem;
    margin-bottom: 1rem;
}

.app-section > h2 {
    font-size: 1.05rem;
    margin-bottom: 0.75rem;
}

/* Kalendářový a seznamový řádek */
.cal-list {
    display: grid;
    gap: 0.5rem;
}

.cal-row {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem 0.85rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-gray);
    color: inherit;
    text-decoration: none;
}

.cal-date {
    flex: 0 0 auto;
    width: 48px;
    text-align: center;
    line-height: 1.1;
}

.cal-day {
    display: block;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-color);
}

.cal-dow {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.cal-main {
    flex: 1 1 auto;
    min-width: 0;
}

.cal-meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.15rem;
}

.cal-status {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.4rem;
}

.cal-status .status-pill {
    font-size: 0.78rem;
}

.cal-go {
    flex: 0 0 auto;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.4rem;
}

/* Kroužky */
.club-meta {
    display: grid;
    gap: 0.3rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.6rem;
}

.club-desc {
    font-size: 0.92rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.club-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.75rem;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.section-head h2 {
    margin: 0;
}

/* Zprávy */
.thread-list {
    display: grid;
    gap: 0.5rem;
}

.thread-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: #fff;
    color: inherit;
    text-decoration: none;
}

.thread-unread {
    border-left: 4px solid var(--primary-color);
    background: #f5f3ff;
}

.thread-main {
    flex: 1 1 auto;
    min-width: 0;
}

.thread-meta {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-top: 0.1rem;
}

.thread-preview {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.thread-badge {
    flex: 0 0 auto;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--danger-color);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 24px;
    text-align: center;
}

.thread-context {
    background: #eef2ff;
    border: 1px solid #ddd6fe;
    color: #3730a3;
    border-radius: 12px;
    padding: 0.7rem 0.9rem;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

/* Konverzace */
.chat {
    display: grid;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.chat-msg {
    max-width: 85%;
    padding: 0.75rem 0.9rem;
    border-radius: 16px;
    background: #fff;
    border: 1px solid var(--border-color);
}

.chat-mine {
    margin-left: auto;
    background: linear-gradient(135deg, var(--brand-a), var(--brand-b));
    border-color: transparent;
    color: #fff;
}

.chat-author {
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    opacity: 0.9;
}

.chat-author span {
    font-weight: 400;
    opacity: 0.8;
    margin-left: 0.4rem;
}

.chat-body {
    line-height: 1.5;
    font-size: 0.95rem;
}

.chat-form {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 0.85rem;
}

.chat-form textarea {
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.7rem;
    font-size: 16px;
    font-family: inherit;
    margin-bottom: 0.6rem;
    resize: vertical;
}

.event-ask {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.85rem;
    font-size: 0.9rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

/* ==========================================================================
   Úvodní katalog kroužků - neutrální, ne fialový; barvu nese až karta kroužku
   ========================================================================== */

.land-body {
    background: #fff;
    color: #1f2328;
}

.land-bar {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid #e8e8ec;
    padding-top: env(safe-area-inset-top);
}

.land-bar-inner {
    max-width: 1040px;
    margin: 0 auto;
    padding: 0.7rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.land-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-weight: 800;
    font-size: 1.05rem;
    color: #1f2328;
    text-decoration: none;
}

.land-logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #1f2328;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.land-bar-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Tlačítka s dostatečným kontrastem, ne drobné odkazy */
.btn-solid {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 42px;
    padding: 0 1rem;
    border: 1px solid #1f2328;
    border-radius: 10px;
    background: #1f2328;
    color: #fff;
    font-weight: 650;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
}

.btn-solid:hover {
    background: #34383f;
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 42px;
    padding: 0 1rem;
    border: 1px solid #d6d7dc;
    border-radius: 10px;
    background: #fff;
    color: #1f2328;
    font-weight: 650;
    font-size: 0.95rem;
    text-decoration: none;
}

.btn-ghost:hover {
    border-color: #b9bac1;
    background: #fafafb;
}

.land-main {
    max-width: 1040px;
    margin: 0 auto;
    padding: 1.5rem 1rem 3rem;
}

.land-hero {
    padding: 1.5rem 0 1.75rem;
    max-width: 640px;
}

.land-hero h1 {
    font-size: clamp(1.7rem, 5vw, 2.4rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 0.6rem;
    text-wrap: balance;
}

.land-hero p {
    color: #5b616e;
    font-size: 1.03rem;
    line-height: 1.55;
    text-wrap: pretty;
}

/* Filtry */
.land-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.85rem;
    border: 1px solid #e8e8ec;
    border-radius: 14px;
    background: #fafafb;
    margin-bottom: 1rem;
}

.land-search {
    position: relative;
    flex: 1 1 240px;
    min-width: 0;
}

.land-search i {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9aa0ab;
}

.land-search input {
    width: 100%;
    height: 44px;
    padding: 0 0.9rem 0 2.4rem;
    font-size: 16px;
    border: 1px solid #d6d7dc;
    border-radius: 10px;
    background: #fff;
    -webkit-appearance: none;
}

.land-filters select {
    height: 44px;
    padding: 0 2rem 0 0.8rem;
    font-size: 0.95rem;
    border: 1px solid #d6d7dc;
    border-radius: 10px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%235b616e' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 0.7rem center/12px 8px;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.land-search input:focus,
.land-filters select:focus {
    outline: none;
    border-color: #1f2328;
    box-shadow: 0 0 0 3px rgba(31, 35, 40, 0.12);
}

.land-count {
    color: #5b616e;
    font-size: 0.9rem;
    margin-bottom: 0.85rem;
}

/* Karty kroužků - barvu si nese kroužek podle svého tématu */
.land-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 0.75rem;
}

.land-card {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 1rem;
    border: 1px solid #e8e8ec;
    border-radius: 16px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.12s;
}

.land-card:hover {
    border-color: #d0d1d7;
    box-shadow: 0 10px 24px -18px rgba(31, 35, 40, 0.5);
}

.land-card:active {
    transform: scale(0.995);
}

.land-card-icon {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    border-radius: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: #fff;
    background: linear-gradient(135deg, var(--brand-a), var(--brand-b));
}

.land-card-body {
    flex: 1 1 auto;
    min-width: 0;
    display: block;
}

.land-card-body strong {
    display: block;
    font-size: 1.02rem;
    margin-bottom: 0.3rem;
}

.land-card-meta {
    display: block;
    color: #5b616e;
    font-size: 0.88rem;
    line-height: 1.45;
}

.land-card-meta i {
    width: 14px;
    color: #9aa0ab;
}

.land-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.5rem;
}

.land-tag {
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: #f1f1f4;
    color: #5b616e;
    font-size: 0.78rem;
    font-weight: 600;
}

.land-tag-active {
    background: var(--brand-soft);
    color: var(--primary-color);
}

.land-card-go {
    flex: 0 0 auto;
    color: #b9bac1;
    align-self: center;
}

.land-empty {
    text-align: center;
    padding: 2.5rem 1rem;
    color: #5b616e;
    border: 1px dashed #d6d7dc;
    border-radius: 16px;
}

.land-empty i {
    font-size: 1.6rem;
    color: #b9bac1;
    margin-bottom: 0.6rem;
}

.land-foot {
    border-top: 1px solid #e8e8ec;
    padding: 1.5rem 1rem calc(1.5rem + env(safe-area-inset-bottom));
    color: #5b616e;
    font-size: 0.9rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    justify-content: space-between;
    max-width: 1040px;
    margin: 0 auto;
}

.land-foot-links {
    display: flex;
    gap: 1rem;
}

.land-foot a {
    color: #1f2328;
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 560px) {
    .land-bar-actions .btn-ghost {
        display: none;
    }

    .land-filters select {
        flex: 1 1 45%;
    }
}


/* Veřejná nástěnka kroužku: kompaktnější měsíc, ať se vejde celý na obrazovku */
.public-board .calendar-grid {
    gap: 0.35rem;
}

.public-board .calendar-day {
    min-height: 56px;
    aspect-ratio: auto;
    padding: 0.3rem;
}

.public-board .day-number {
    font-size: 0.9rem;
}

.public-board .calendar-day-name {
    font-size: 0.78rem;
}

/* Hlavička měsíce na veřejné nástěnce: pozdější pravidlo pro admin kalendář
   ji dělá sedmisloupcovým gridem, takže se název měsíce lámal na dva řádky. */
.public-board .calendar-header {
    display: block;
    text-align: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--border-color);
}

.public-board .calendar-header h3 {
    white-space: nowrap;
}

/* Volba termínu kroužku */
.term-choice {
    display: grid;
    gap: 0.5rem;
}

.term-option {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 0.8rem 0.9rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
}

.term-option:has(input:checked) {
    border-color: var(--primary-color);
    background: var(--brand-soft);
}

.term-option input {
    width: 20px;
    height: 20px;
    margin-top: 0.15rem;
    flex: 0 0 auto;
}

.term-option strong {
    display: block;
    font-size: 0.98rem;
}

.term-option small {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.4;
}

/* ==========================================================================
   Tlačítkové filtry (štítky zpráv)
   ========================================================================== */

.chip-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 38px;
    padding: 0 0.8rem;
    border: 1.5px solid var(--border-color);
    border-radius: 999px;
    background: #fff;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

/* Jen neaktivní tlačítko - aktivní má bílý text, takže by na světlém
   pozadí při najetí zmizel. */
.chip:not(.chip-active):hover {
    border-color: #b9bac1;
    background: var(--hover-bg);
}

.chip-active:hover {
    background: #34383f;
    border-color: #34383f;
    color: #fff;
}

.chip i {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.chip-count {
    display: inline-block;
    min-width: 20px;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: var(--bg-gray);
    color: var(--text-secondary);
    font-size: 0.78rem;
    text-align: center;
}

.chip-active {
    border-color: var(--text-primary);
    background: var(--text-primary);
    color: #fff;
}

.chip-active i,
.chip-active .chip-count {
    color: #fff;
}

.chip-active .chip-count {
    background: rgba(255, 255, 255, 0.22);
}

/* Barva štítku se propíše do puntíku ikony */
.chip-blue i { color: #2563eb; }
.chip-green i { color: #16a34a; }
.chip-orange i { color: #d97706; }
.chip-red i { color: #dc2626; }
.chip-purple i { color: #7c3aed; }
.chip-pink i { color: #db2777; }
.chip-teal i { color: #0d9488; }
.chip-gray i { color: #6b7280; }

.chip-manage {
    margin-left: auto;
    border-style: dashed;
    color: var(--text-secondary);
}

/* Kulaté „+" vedle nadpisu sekce */
.title-with-add {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.btn-add {
    /* Bývá to i odkaz - podtržení pod ikonou vypadá jako minus pod plusem */
    text-decoration: none;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    border: none;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    font-size: 0.9rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 14px -8px rgba(31, 41, 55, 0.6);
    transition: filter 0.15s, transform 0.12s;
}

.btn-add:hover {
    filter: brightness(1.08);
}

.btn-add:active {
    transform: scale(0.94);
}

/* Štítek s křížkem v rohu (správa štítků) */
.label-chip {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
    overflow: visible;
}

.label-chip-x {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 22px;
    height: 22px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--danger-color);
    color: #fff;
    font-size: 0.65rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    box-shadow: 0 2px 6px rgba(31, 41, 55, 0.35);
}

.label-chip-x:hover {
    filter: brightness(1.1);
    transform: scale(1.08);
}

.label-usage {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Potvrzovací okénko (mazání štítku) */
.modal-narrow {
    max-width: 420px;
}

.confirm-text {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.confirm-note {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    padding: 0.75rem 0.9rem;
    border-radius: 12px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
    font-size: 0.92rem;
    line-height: 1.45;
    margin-bottom: 0.5rem;
}

/* Kompaktní štítek ve správě */
.message-type-item .label-usage {
    font-size: 0.8rem;
    white-space: nowrap;
}

.message-type-item .label-chip {
    font-size: 0.85rem;
    padding: 0.4rem 0.65rem;
}

/* Počet použití patří pod štítek, ne vedle něj */
.message-type-item .label-usage {
    display: block;
    text-align: center;
    font-size: 0.78rem;
}

/* ==========================================================================
   Kompaktní formuláře: plovoucí popisky, segmenty, přepínací štítky
   ========================================================================== */

.tight-form {
    display: grid;
    gap: 0.6rem;
    max-width: 640px;
}

/* Pole s plovoucím popiskem - dokud je prázdné, popisek je uvnitř */
.field {
    position: relative;
    display: block;
}

.field > input,
.field > select,
.field > textarea {
    width: 100%;
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    background: #fff;
    font-size: 16px;              /* pod 16px iOS zoomuje */
    font-family: inherit;
    color: var(--text-primary);
    padding: 1.4rem 0.9rem 0.45rem;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.field > input,
.field > select {
    height: 58px;
}

.field > textarea {
    min-height: 76px;
    resize: vertical;
    line-height: 1.45;
}

.field > span {
    position: absolute;
    left: 0.95rem;
    top: 50%;
    transform: translateY(-50%);
    color: #8b90a0;
    font-size: 15px;
    pointer-events: none;
    transition: all 0.14s ease-out;
    max-width: calc(100% - 2rem);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.field > input:focus,
.field > select:focus,
.field > textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3.5px rgba(31, 41, 55, 0.09);
}

/* Vyplněné nebo aktivní pole vytáhne popisek nahoru */
.field > input:focus + span,
.field > input:not(:placeholder-shown) + span,
.field > textarea:focus + span,
.field > textarea:not(:placeholder-shown) + span,
.field-select > select + span {
    top: 0.5rem;
    transform: none;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.field-area > span {
    top: 1.1rem;
    transform: none;
}

.field-select > select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%235b616e' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.9rem center;
    background-size: 12px 8px;
    padding-right: 2.2rem;
    cursor: pointer;
}

/* Dvojice polí vedle sebe, jakmile je místo */
.field-row {
    display: grid;
    gap: 0.6rem;
}

@media (min-width: 520px) {
    .field-row {
        grid-template-columns: 1fr 1fr;
    }
}

/* Segmentovaný přepínač */
.segmented {
    display: flex;
    gap: 0.25rem;
    padding: 0.25rem;
    background: #f1f1f4;
    border-radius: 14px;
}

.segmented label {
    flex: 1;
    cursor: pointer;
}

.segmented input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.segmented span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 44px;
    padding: 0 0.5rem;
    border-radius: 11px;
    font-size: 0.92rem;
    font-weight: 650;
    color: var(--text-secondary);
    text-align: center;
    transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}

.segmented input:checked + span {
    background: #fff;
    color: var(--text-primary);
    box-shadow: 0 2px 6px rgba(31, 41, 55, 0.14);
}

.segmented i {
    font-size: 0.85rem;
}

/* Bloky bez klasického popisku pole */
.field-block {
    padding: 0.75rem 0.9rem;
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    background: #fff;
}

.field-block-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 0.6rem;
}

/* Přepínací štítky (města) */
.chip-toggles {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.chip-toggle input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.chip-toggle span {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 0.85rem;
    border: 1.5px solid var(--border-color);
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
}

.chip-toggle input:checked + span {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

/* Řádkové odkazy místo tlačítek na půl obrazovky */
.link-rows {
    display: grid;
    gap: 0.35rem;
}

.link-row {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    width: 100%;
    min-height: 46px;
    padding: 0 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-gray);
    color: var(--text-primary);
    font-size: 0.93rem;
    font-family: inherit;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.link-row span {
    flex: 1;
    min-width: 0;
}

.link-row i:last-child {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.link-row:hover {
    border-color: #b9bac1;
    background: #fff;
}

/* Uložit zůstane po ruce */
.form-sticky {
    position: sticky;
    bottom: 0;
    padding: 0.7rem 0 calc(0.7rem + env(safe-area-inset-bottom));
    background: linear-gradient(180deg, rgba(247, 242, 233, 0) 0%, var(--app-bg) 45%);
}

.btn-add-sm {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
    text-decoration: none;
}

/* Hlavička nastavení kroužku */
.edit-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.edit-head-icon {
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.05rem;
    background: linear-gradient(135deg, var(--brand-a), var(--brand-b));
}

.edit-head-text strong {
    display: block;
    font-size: 1.2rem;
    line-height: 1.2;
}

.edit-head-text span {
    display: block;
    font-size: 0.82rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-weight: 600;
}

/* Termíny kroužku */
.term-summary {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.7rem;
    margin-bottom: 0.6rem;
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--primary-color);
    font-size: 0.88rem;
    font-weight: 650;
}

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

.term-card {
    display: block;
    padding: 0.6rem 0.7rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-gray);
    color: inherit;
    text-decoration: none;
}

.term-card:hover {
    border-color: var(--primary-color);
    background: #fff;
}

.term-day {
    display: block;
    font-weight: 700;
    font-size: 0.95rem;
}

.term-time {
    display: block;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
}

.term-meta {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.15rem;
}

.term-capacity {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.4rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
}

.term-capacity-empty {
    color: var(--text-secondary);
    font-weight: 400;
}

/* Města s křížkem */
.chip-city {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 38px;
    padding: 0 0.5rem 0 0.85rem;
    border-radius: 999px;
    background: var(--primary-color);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
}

.chip-city-x {
    width: 22px;
    height: 22px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
    font-size: 0.7rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}

.chip-city-x:hover {
    background: rgba(255, 255, 255, 0.4);
}

.city-add {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.6rem;
}

.city-add .field {
    flex: 1;
    min-width: 0;
}

/* Segmenty ve dvou řadách (víc než dvě volby) */
.segmented-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.25rem;
}

@media (min-width: 560px) {
    .segmented-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.segmented-grid span {
    font-size: 0.85rem;
    flex-direction: row;
}

/* Výběr dne v týdnu */
.day-picker {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.3rem;
}

.day-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.day-option span {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 46px;
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    background: #fff;
    font-size: 0.92rem;
    font-weight: 650;
    color: var(--text-primary);
    cursor: pointer;
    transition: background 0.12s, border-color 0.12s, transform 0.1s;
}

.day-option input:checked + span {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.day-option span:active {
    transform: scale(0.95);
}

/* Rozbalovací blok pro to, co se mění zřídka */
.more-block {
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    background: #fff;
    padding: 0 0.9rem;
}

.more-block > summary {
    list-style: none;
    cursor: pointer;
    padding: 0.9rem 0;
    font-size: 0.92rem;
    font-weight: 650;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.more-block > summary::-webkit-details-marker {
    display: none;
}

.more-block > summary::after {
    content: "\f078";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.75rem;
    color: var(--text-secondary);
    transition: transform 0.15s;
}

.more-block[open] > summary::after {
    transform: rotate(180deg);
}

.more-block > *:not(summary) {
    margin-bottom: 0.9rem;
}

/* Nenápadné, ale dosažitelné mazání */
.btn-text-danger {
    display: block;
    text-align: center;
    padding: 0.7rem;
    margin-top: 0.35rem;
    color: var(--danger-color);
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
}

.btn-text-danger:hover {
    text-decoration: underline;
}

/* Čas a datum: popisek nechat nahoře, hodnota je vždy vidět */
.field > input[type="time"],
.field > input[type="date"] {
    padding-top: 1.5rem;
}

/* Krátké hodnoty (čas) se vedle sebe vejdou i na mobilu */
.field-row-tight {
    grid-template-columns: 1fr 1fr;
}

/* Hlavička podstránky: ikona sekce + název kroužku, akce vpravo */
/*
 * Ikony akcí musí zůstat na řádku s názvem i na mobilu - když se sem vejde
 * ještě odznáček filtru, ukrojí se z názvu kroužku, ne z tlačítek.
 */
.page-head-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    flex-wrap: nowrap;
    margin-bottom: 1rem;
}

.page-head-row .edit-head {
    min-width: 0;
    gap: 0.6rem;
}

.page-head-row .edit-head-text {
    min-width: 0;
}

.page-head-row .edit-head-text strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Vybraných štítků může být víc - odznáčky se řadí za název a klidně zalomí */
.page-head-row .head-name-row {
    flex-wrap: wrap;
    row-gap: 0.25rem;
    min-width: 0;
}

.page-head-row .filter-badge {
    flex: 0 0 auto;
}

/* Tlačítka se nikdy nesmí zlomit pod sebe ani zúžit */
.page-head-row .page-head-actions {
    flex: 0 0 auto;
    flex-wrap: nowrap;
}

.edit-head-compact {
    margin-bottom: 0;
    min-width: 0;
    flex: 1 1 auto;
}

.edit-head-compact .edit-head-text strong {
    font-size: 1.05rem;
    font-weight: 650;
    line-height: 1.25;
    color: var(--text-primary);
}

.page-head-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Hlídání změn u akce */
.event-tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-top: 0.85rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
}

.event-tools .event-ask {
    margin-top: 0;
}

.watch-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 38px;
    padding: 0 0.85rem;
    border: 1.5px solid var(--border-color);
    border-radius: 999px;
    background: #fff;
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
}

.watch-btn:hover {
    border-color: #b9bac1;
}

.watch-on {
    border-color: var(--primary-color);
    background: var(--brand-soft);
    color: var(--primary-color);
}

/* ==========================================================================
   Karta zprávy: štítek na horní hraně, křížek v rohu, jasné „Upravit"
   ========================================================================== */

.msg-card {
    position: relative;
    display: block;
    margin-top: 0.85rem;
    padding: 1.15rem 1rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.msg-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 22px -18px rgba(31, 41, 55, 0.6);
}

/* Štítek sedí na horní hraně, takže nezabírá vlastní řádek */
.msg-label {
    position: absolute;
    top: -11px;
    left: 14px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
    line-height: 1.25;
}

.msg-x {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #b9bac1;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.12s, color 0.12s;
}

.msg-x:hover {
    background: #fee2e2;
    color: var(--danger-color);
}

.msg-card h3 {
    font-size: 1.02rem;
    line-height: 1.3;
    margin: 0.1rem 2rem 0.35rem 0;
}

.msg-text {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.5;
    margin-bottom: 0.6rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.msg-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    flex-wrap: wrap;
    padding-top: 0.55rem;
    border-top: 1px solid var(--border-color);
}

.msg-meta {
    color: var(--text-secondary);
    font-size: 0.82rem;
}

.msg-meta i {
    margin-right: 0.15rem;
}

/* Ať je jasné, že klepnutí edituje */
.msg-edit {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 650;
}

.msg-card:hover .msg-edit {
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Přepínač zapnuto/vypnuto místo zaškrtávátka */
.switch-row {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    cursor: pointer;
}

.switch-text {
    flex: 1;
    min-width: 0;
}

.switch-text strong {
    display: block;
    font-size: 0.98rem;
    line-height: 1.25;
}

.switch-text small {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.35;
}

.switch-row input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.switch {
    flex: 0 0 auto;
    width: 52px;
    height: 31px;
    border-radius: 999px;
    background: #d6d7dc;
    position: relative;
    transition: background 0.18s;
}

.switch::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 27px;
    height: 27px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 5px rgba(31, 41, 55, 0.28);
    transition: transform 0.18s;
}

.switch-row input:checked ~ .switch {
    background: var(--primary-color);
}

.switch-row input:checked ~ .switch::after {
    transform: translateX(21px);
}

/* Štítek zprávy jako přepínatelná dlaždice s ikonou */
.chip-toggle span i {
    margin-right: 0.35rem;
    font-size: 0.85rem;
}

/* Kulaté ikonové tlačítko v barvě tématu (doplněk k plnému .btn-add) */
.btn-round {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    border: 1.5px solid var(--primary-color);
    border-radius: 50%;
    background: #fff;
    color: var(--primary-color);
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s, transform 0.12s;
}

.btn-round:hover {
    background: var(--brand-soft);
}

/*
 * Uložit = disketka vedle tužky v řádku štítku. Každý štítek se upravuje sám
 * za sebe, takže tlačítko patří k jeho řádku, ne do hlavičky okénka.
 * 🚨 .label-icon-btn má display: inline-flex, což přebíjí [hidden] - schování
 * se musí napsat výslovně.
 */
/* vyšší specifičnost, .label-icon-btn se definuje níž a přebilo by to */
.label-manage-row .label-save-btn,
.title-with-add .label-save-btn {
    background: var(--primary-color);
    color: #fff;
}

.label-manage-row .label-save-btn:hover,
.title-with-add .label-save-btn:hover {
    background: var(--brand-b, var(--primary-color));
    color: #fff;
}

.label-save-btn[hidden] {
    display: none;
}

/* Zapnutý stav (filtr) potřebuje vlastní hover, jinak mu zbělá ikona */
.btn-round-active:hover {
    background: var(--brand-b, var(--primary-color));
    color: #fff;
}

.btn-round:active {
    transform: scale(0.94);
}

/* Tužka na kartě: bez textu, ale ať je poznat, že jde o akci */
.msg-edit {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--brand-soft);
    justify-content: center;
    font-size: 0.8rem;
}

.msg-card:hover .msg-edit {
    background: var(--primary-color);
    color: #fff;
    text-decoration: none;
}

/* Okno dne v kalendáři: malé, s jasným zavřením */
.modal-day {
    max-width: 440px;
    width: 100%;
    padding: 1.1rem 1.1rem 1.25rem;
    /* dlouhý přehled potvrzování se musí dát vyrolovat, ne utéct pod okraj */
    max-height: 88vh;
    overflow-y: auto;
}

.day-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding-bottom: 0.75rem;
    margin-bottom: 0.85rem;
    border-bottom: 1px solid var(--border-color);
}

.day-modal-head h3 {
    font-size: 1.05rem;
    line-height: 1.25;
    margin: 0;
    color: var(--text-primary);
}

/* Velké písmeno jen na začátku - "sobota 19. září", ne "Sobota 19. Září" */
.day-modal-head h3::first-letter {
    text-transform: uppercase;
}

.day-modal-actions {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.day-modal-list {
    display: grid;
    gap: 0.4rem;
    max-height: 60vh;
    overflow-y: auto;
}

.day-row {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.6rem 0.7rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-gray);
    color: inherit;
    text-decoration: none;
}

a.day-row:hover {
    border-color: var(--primary-color);
    background: #fff;
}

.day-row-icon {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--brand-soft);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.day-row-lesson .day-row-icon {
    background: #e8f0e4;
    color: #4d6b3a;
}

.day-row-main {
    flex: 1;
    min-width: 0;
}

.day-row-main strong {
    display: block;
    font-size: 0.95rem;
    line-height: 1.3;
}

.day-row-meta {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.day-row-go {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.day-empty {
    color: var(--text-secondary);
    font-size: 0.92rem;
    text-align: center;
    padding: 1.25rem 0.5rem;
}

/* Štítek si nese barvu, kterou mu nastavil vedoucí - i ve výběru u zprávy.
   Nevybraný má barevnou ikonu a rámeček, vybraný je barvou vyplněný. */
.chip-color-blue   { --label-color: #2563eb; }
.chip-color-green  { --label-color: #16a34a; }
.chip-color-orange { --label-color: #d97706; }
.chip-color-red    { --label-color: #dc2626; }
.chip-color-purple { --label-color: #7c3aed; }
.chip-color-pink   { --label-color: #db2777; }
.chip-color-teal   { --label-color: #0d9488; }
.chip-color-gray   { --label-color: #6b7280; }

.chip-toggle[class*="chip-color-"] span i {
    color: var(--label-color);
}

.chip-toggle[class*="chip-color-"] span {
    border-color: color-mix(in srgb, var(--label-color) 35%, #fff);
}

.chip-toggle[class*="chip-color-"] input:checked + span {
    background: var(--label-color);
    border-color: var(--label-color);
    color: #fff;
}

.chip-toggle[class*="chip-color-"] input:checked + span i {
    color: #fff;
}

/* ==========================================================================
   Dashboard: menší dlaždice sdružené do skupin (vzor MES)
   ========================================================================== */

.tile-group {
    margin-bottom: 1.5rem;
}

.tile-group-title {
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    padding-left: 0.15rem;
}

.tiles-sm {
    grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
    gap: 0.5rem;
    margin-bottom: 0;
}

.tiles-sm .tile {
    min-height: 96px;
    padding: 0.75rem 0.5rem;
    gap: 0.4rem;
    border-radius: 14px;
}

.tiles-sm .tile-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    font-size: 1rem;
}

.tiles-sm .tile-name {
    font-size: 0.82rem;
    font-weight: 700;
}

.tiles-sm .tile-desc {
    font-size: 0.7rem;
    line-height: 1.25;
}

.tiles-sm .tile-badge {
    min-width: 19px;
    height: 19px;
    font-size: 0.68rem;
    line-height: 19px;
    top: -6px;
    right: -6px;
}

/* Chystaná funkce: vidět, kam to poroste, ale nikam to nevede */
.tile-soon {
    opacity: 0.5;
    cursor: default;
    box-shadow: none;
}

.tile-soon:active {
    transform: none;
}

.tile-soon .tile-icon {
    filter: grayscale(1);
}

/* Nastavení nemá soupeřit s provozem */
.tile-group-muted .tile-icon {
    background: var(--bg-gray);
    color: var(--text-secondary);
    width: 34px;
    height: 34px;
    font-size: 0.9rem;
}

.tile-group-muted .tile {
    min-height: 84px;
}

@media (max-width: 359px) {
    .tiles-sm .tile-desc {
        display: none;
    }
}

/* Okénko se správou štítků nad přehledem zpráv */
.label-manage-list {
    display: grid;
    gap: 0.4rem;
    margin-bottom: 1rem;
    max-height: 40vh;
    overflow-y: auto;
}

.label-manage-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding: 0.4rem 0.5rem;
    border-radius: 10px;
    background: var(--bg-gray);
}

.label-row-confirming {
    background: #fff7ed;
}

.label-manage-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 650;
}

.label-manage-count {
    flex: 1;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.label-manage-note {
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-style: italic;
}

.label-manage-row .msg-x {
    position: static;
    width: 26px;
    height: 26px;
}

.label-confirm {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    width: 100%;
    font-size: 0.8rem;
    color: #9a3412;
}

.label-confirm[hidden] {
    display: none;
}

.label-new-form {
    border-top: 1px solid var(--border-color);
    padding-top: 0.9rem;
    display: grid;
    gap: 0.6rem;
}

/* Bez tohohle přebije display:grid atribut hidden a formulář je pořád vidět */
.label-new-form[hidden] {
    display: none;
}

.label-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.color-dot input,
.icon-dot input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.color-dot span {
    display: block;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 3px solid transparent;
    cursor: pointer;
}

.color-dot input:checked + span {
    border-color: var(--text-primary);
    transform: scale(1.08);
}

.icon-dot span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    background: #fff;
    color: var(--text-secondary);
    font-size: 0.8rem;
    cursor: pointer;
}

.icon-dot input:checked + span {
    border-color: var(--primary-color);
    background: var(--brand-soft);
    color: var(--primary-color);
}

/* Karta kroužku na rozcestníku: hlavička + jeho vlastní dlaždice */
.group-card {
    background: #fff;
    border: 1px solid rgba(17, 24, 39, 0.07);
    border-radius: 16px;
    box-shadow: 0 4px 14px -12px rgba(31, 41, 55, 0.5);
    padding: 0.85rem;
    margin-bottom: 1rem;
}

.group-card-head {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    color: inherit;
    text-decoration: none;
}

.group-card-icon {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
    background: linear-gradient(135deg, var(--brand-a), var(--brand-b));
}

.group-card-text {
    flex: 1;
    min-width: 0;
}

.group-card-text strong {
    display: block;
    font-size: 1.05rem;
    line-height: 1.25;
}

.group-card-text > span {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.35;
}

.group-card-go {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-gray);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.group-card-head:hover .group-card-go {
    background: var(--brand-soft);
    color: var(--primary-color);
}

/* Dlaždice uvnitř karty nemají vlastní stín, kartu už mají */
.group-card .tile {
    box-shadow: none;
    background: var(--bg-gray);
}

.group-card .tile:hover {
    background: #fff;
    border-color: var(--primary-color);
}

/* Drobečková navigace */
.crumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.85rem;
    font-size: 0.82rem;
    color: var(--text-secondary);
    min-height: 24px;
}

.crumbs a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    padding: 0.15rem 0;
}

.crumbs a:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.crumbs span[aria-current] {
    color: var(--text-primary);
    font-weight: 600;
    max-width: 60vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.crumbs-sep {
    font-size: 0.6rem;
    color: #b9bac1;
}

/* Odsazení pod lištou řeší horní padding obsahu - okraj tady by se projevil
   jen tam, kde lišta stojí uvnitř kontejneru, a pohledy by nezačínaly stejně. */

/*
 * Lišta se musí srovnat s obsahem stránky. Dřív to viselo na tom, že je
 * uvnitř .admin-container - jenže na parents.php, attendance.php a
 * notifikace.php stojí nad ním a lišta pak byla úzká a odsazená proti obsahu.
 * Rozhoduje tedy třída <body>, ne zanoření.
 */
.admin-body .app-bar-inner {
    max-width: 1200px;
    padding-left: 1rem;
    padding-right: 1rem;
}

/*
 * Štítek v okénku je ODKAZ - klepnutím se výpis zpráv zúží na ten štítek.
 * Úprava má vlastní tužku vedle, aby se filtrování a editace nepraly o klik.
 */
a.label-manage-chip {
    text-decoration: none;
    cursor: pointer;
}

/*
 * Terčem filtru je CELÝ řádek, ne jen barevný štítek - na mobilu se do chipu
 * o výšce 24 px trefí málokdo a vypadá to, že filtr nefunguje.
 */
.label-manage-row {
    position: relative;
    cursor: pointer;
}

.label-filter-link::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 10px;
}

.label-manage-row > button,
.label-manage-row > form,
.label-manage-row > .label-manage-note {
    position: relative;
    z-index: 2;
}

.label-manage-row:hover {
    background: var(--brand-soft, #eef2ff);
}

a.label-manage-chip:hover {
    filter: brightness(1.1);
}

.label-chip-all {
    background: var(--text-secondary);
}

.label-row-all {
    text-decoration: none;
}

/* Řádek, podle kterého se právě filtruje */
.label-row-active {
    background: var(--brand-soft, #eef2ff);
    box-shadow: inset 0 0 0 2px var(--primary-color);
}

/* Tužka u štítku - nenápadná, dokud na ni člověk nenajede */
.label-icon-btn {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.78rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.15s, color 0.15s;
}

.label-icon-btn:hover {
    background: #fff;
    color: var(--primary-color);
}

/* Zapnutý filtr: tlačítko štítků v hlavičce svítí a pod hlavičkou je jeden řádek */
.btn-round-active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/*
 * Zapnutý filtr visí jako odznáček u názvu kroužku - je hned vidět, že výpis
 * není celý, a křížkem se zruší. Vybírat se filtr dá jen pod ikonou štítků,
 * odznáček nic neotevírá.
 */
.head-name-row {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    flex-wrap: wrap;
}

.filter-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.08rem 0.12rem 0.08rem 0.42rem;
    border-radius: 999px;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.6;
    text-transform: none;
    letter-spacing: 0;
    white-space: nowrap;
}

.filter-badge i {
    font-size: 0.66rem;
}

.filter-badge-count {
    display: inline;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.7rem;
    text-transform: none;
    letter-spacing: 0;
}

.filter-badge-x {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(0, 0, 0, 0.15);
    text-decoration: none;
    font-size: 0.65rem;
}

.filter-badge-x:hover {
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
}

.label-edit-form {
    display: grid;
    gap: 0.5rem;
    width: 100%;
    padding: 0.6rem 0 0.2rem;
}

.label-edit-form[hidden] {
    display: none;
}

.label-edit-form .field > input {
    height: 48px;
    padding-top: 1.2rem;
}

.label-manage-list .label-picker-icons .icon-dot span {
    width: 30px;
    height: 30px;
    font-size: 0.72rem;
}

/* Drobeček uvnitř rozbaleného formuláře - krok zpět bez uložení */
.crumbs-inline {
    margin-bottom: 0.15rem;
}

.crumbs-inline button {
    border: none;
    background: none;
    padding: 0;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
}

.crumbs-inline button:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Průběh potvrzování: tlačítko na kartě a report v okénku */
.msg-foot-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rsvp-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 32px;
    padding: 0 0.7rem;
    border: 1.5px solid var(--primary-color);
    border-radius: 999px;
    background: #fff;
    color: var(--primary-color);
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 650;
    cursor: pointer;
}

.rsvp-pill:hover {
    background: var(--brand-soft);
}

.rsvp-pill-sub {
    font-weight: 600;
    opacity: 0.7;
}

.rsvp-when,
.rsvp-deadline {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
}

.rsvp-deadline-past {
    color: var(--danger-color);
}

.rsvp-progress {
    height: 10px;
    border-radius: 999px;
    background: var(--bg-gray);
    overflow: hidden;
    margin: 0.75rem 0 0.4rem;
}

.rsvp-progress-bar {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--brand-a), var(--brand-b));
    transition: width 0.3s;
}

.rsvp-progress-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.rsvp-block {
    margin-bottom: 0.85rem;
}

.rsvp-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.2rem;
}

.rsvp-list li {
    font-size: 0.92rem;
    padding: 0.3rem 0.6rem;
    border-radius: 8px;
    background: var(--bg-gray);
}

.rsvp-list-pending li {
    color: var(--text-secondary);
}

.rsvp-note {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.rsvp-timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.3rem;
}

.rsvp-timeline li {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.88rem;
    flex-wrap: wrap;
}

.rsvp-time {
    color: var(--text-secondary);
    font-size: 0.78rem;
    margin-left: auto;
}

/* ==========================================================================
   Nápověda ke stránce (otazník v horní liště)
   ========================================================================== */

/*
 * Okénko visí uvnitř horní lišty, která má bílý text - barvu písma si tedy
 * musí nastavit samo, jinak je nadpis bílý na bílém.
 */
#helpModal {
    color: var(--text-primary);
}

.help-head-icon {
    color: var(--primary-color);
    margin-right: 0.25rem;
}

.help-what {
    margin: 0 0 0.8rem;
    font-size: 0.92rem;
    line-height: 1.5;
    color: var(--text-primary);
}

.help-steps {
    margin: 0 0 0.9rem;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.5rem;
}

.help-steps li {
    position: relative;
    padding-left: 1.3rem;
    font-size: 0.86rem;
    line-height: 1.45;
    color: var(--text-secondary);
}

.help-steps li::before {
    content: '';
    position: absolute;
    left: 0.35rem;
    top: 0.5rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary-color);
}

.help-steps strong {
    color: var(--text-primary);
}

/* Demo příklad - ať je vidět, jak to vypadá doopravdy */
.help-example {
    background: var(--brand-soft, #eef2ff);
    border-radius: 12px;
    padding: 0.7rem 0.8rem;
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-primary);
}

.help-example-label {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.help-tip {
    margin: 0.7rem 0 0;
    font-size: 0.8rem;
    line-height: 1.45;
    color: var(--text-secondary);
}

.help-tip i {
    color: #d97706;
    margin-right: 0.2rem;
}

/* Potvrzení hromadné SMS přímo v kartě */
.bulk-sms .confirm-note {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.bulk-sms [hidden] {
    display: none;
}

/* ==========================================================================
   Nastavení pod ozubeným kolečkem v liště
   ========================================================================== */

.bar-menu {
    position: relative;
    display: inline-flex;
}

.bar-menu-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 0.5rem);
    z-index: 60;
    min-width: 240px;
    max-width: calc(100vw - 2rem);
    padding: 0.35rem;
    background: #fff;
    color: var(--text-primary);
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(31, 41, 55, 0.22);
}

/* display: flex u položek by přebilo [hidden], schování musí být výslovné */
.bar-menu-panel[hidden] {
    display: none;
}

.bar-menu-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.6rem;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-primary);
}

.bar-menu-item:hover {
    background: var(--brand-soft, #eef2ff);
}

.bar-menu-item i {
    width: 20px;
    text-align: center;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.bar-menu-item strong {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.25;
}

.bar-menu-item small {
    display: block;
    font-size: 0.72rem;
    color: var(--text-secondary);
    line-height: 1.3;
}

/* Odhlášení je poslední a tlumené - není to běžná cesta */
.bar-menu-item-out {
    margin-top: 0.15rem;
    border-top: 1px solid var(--border-color);
    border-radius: 0 0 12px 12px;
}

.bar-menu-item-out i,
.bar-menu-item-out strong {
    color: var(--text-secondary);
}

/* ==========================================================================
   Přepínač pohledů na kroužek (taby)
   ========================================================================== */

/*
 * Ikony, co odskakovaly na jinou stránku, braly orientaci. Taby říkají:
 * pořád jeden kroužek, jen jiný pohled. Na mobilu se posouvají do strany.
 */
.view-tabs {
    display: flex;
    gap: 0.3rem;
    margin-bottom: 1rem;
    padding-bottom: 0.2rem;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

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

.view-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex: 0 0 auto;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.view-tab i {
    font-size: 0.8rem;
}

.view-tab:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.view-tab-active,
.view-tab-active:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.view-tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 0.3rem;
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    font-size: 0.66rem;
}

/* Okénko s formulářem - nová zpráva se zakládá rovnou nad výpisem */
.modal-form {
    max-height: 88vh;
    overflow-y: auto;
}

.modal-form .form-sticky {
    position: sticky;
    bottom: 0;
    background: #fff;
    padding-top: 0.6rem;
    margin-top: 0.4rem;
}

/* Jedna neměnná řada pod lištou: taby vlevo, akce pohledu vpravo */
.view-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.view-bar .view-tabs {
    flex: 1 1 auto;
    min-width: 0;
    margin-bottom: 0;
}

.view-bar-actions {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex: 0 0 auto;
}

.view-bar-actions:empty {
    display: none;
}

/* Dlouhý předmět nebo náhled nesmí roztáhnout řádek konverzace přes šířku mobilu */
.thread-row > * {
    min-width: 0;
}

.thread-main strong,
.thread-main .thread-meta,
.thread-main .thread-preview {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/*
 * Stejný začátek stránky ve všech pohledech.
 * Lišta měla spodní okraj, který se podle zanoření jednou projevil a jednou ne,
 * a dva druhy obsahu měly jiný horní odsazení - drobečky a taby pak startovaly
 * na každé stránce o kus jinde a při přepínání to "skákalo".
 */
.app-bar {
    margin-bottom: 0;
}

.admin-main,
.app-main {
    padding-top: 1.5rem;
}

/* Drobeček v liště: "Přehled › Šachy děti" na jednom řádku s názvem kroužku */
.bar-crumb {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
}

.bar-crumb:hover {
    color: #fff;
    text-decoration: underline;
}

.bar-crumb-sep {
    font-size: 0.55rem;
    color: rgba(255, 255, 255, 0.55);
    margin: 0 0.15rem 0 0.05rem;
    vertical-align: middle;
}

/*
 * 🚨 Past: položka gridu má min-width: auto, tedy šířku nejdelšího nezalomitelného
 * textu - předmět konverzace pak roztáhl celou stránku přes šířku mobilu.
 */
.thread-list {
    grid-template-columns: minmax(0, 1fr);
}

.thread-row {
    min-width: 0;
}

/*
 * V liště platí obecné `.app-bar-title span { display: block }`, které by
 * odznáček roztáhlo přes celý řádek - potřebuje vlastní, konkrétnější pravidlo.
 */
.app-bar-title .filter-badge {
    display: inline-flex;
    width: auto;
    vertical-align: middle;
    margin-left: 0.3rem;
}

.app-bar-title .filter-badge-x {
    display: inline-flex;
    width: 18px;
}

/* Vybrané štítky pod taby - patří k obsahu, který filtrují */
.view-filters {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
    margin: -0.5rem 0 1rem;
}

/* Akce v okénku potvrzování: připomínka SMS a export, bez odskakování jinam */
.rsvp-actions {
    display: grid;
    gap: 0.5rem;
    margin-top: 0.9rem;
}

.rsvp-actions .confirm-note {
    flex-wrap: wrap;
    align-items: center;
}

.rsvp-actions [hidden] {
    display: none;
}

.rsvp-phone {
    margin-left: 0.35rem;
    font-size: 0.78rem;
    color: var(--primary-color);
    text-decoration: none;
    white-space: nowrap;
}

.rsvp-phone:hover {
    text-decoration: underline;
}

/* Pruh, že vedoucí kouká na appku očima rodiče */
.preview-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.5rem 0.9rem;
    background: #1f2937;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
}

.preview-bar a {
    color: #fff;
    text-decoration: underline;
    white-space: nowrap;
}

/* ==========================================================================
   Chování jako appka, ne jako webová stránka
   ========================================================================== */

/*
 * Dvojklik na kartu nebo tlačítko nesmí zoomovat (touch-action: manipulation),
 * tapnutí nesmí bliknout modrým obdélníkem a text v ovládání se nevybírá.
 * Psaný obsah (zprávy, poznámky, pole) vybírat jde - kopírovat texty dává smysl.
 */
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    overscroll-behavior-y: contain;
}

a,
button,
label,
summary,
.tile,
.view-tab,
.chip,
.msg-card,
.group-card,
.link-row,
.calendar-day,
.segmented label,
.chip-toggle,
.day-picker label {
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
}

input,
textarea,
select,
.msg-card p,
.msg-content,
.thread-preview,
.rsvp-note,
.attendance-note,
.help-what,
.help-steps,
.help-example {
    -webkit-user-select: text;
    user-select: text;
}

/* Na dotykových zařízeních nepodsouvat stavy z myši */
@media (hover: none) {
    .tile:hover,
    .msg-card:hover,
    .group-card:hover {
        transform: none;
    }
}

/* Přihlašovací karta: hlavička a poznámka ke zkušebnímu režimu */
.login-head {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 1.1rem;
}

.login-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--brand-a) 0%, var(--brand-b) 100%);
    color: #fff;
    font-size: 1.1rem;
}

.login-head strong {
    display: block;
    font-size: 1.15rem;
    line-height: 1.2;
}

.login-head small {
    display: block;
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.login-card .label-manage-list {
    max-height: none;
    margin-bottom: 0.9rem;
}

.login-card .link-row small {
    display: block;
    font-size: 0.74rem;
    color: var(--text-secondary);
    line-height: 1.3;
}

.login-note {
    margin: 0.9rem 0 0;
    font-size: 0.74rem;
    color: var(--text-secondary);
    text-align: center;
}

/*
 * Jedna šířka pro celou administraci - lišta i obsah. Rozcestník měl 900 px,
 * ostatní stránky 1200 px, takže na počítači při přepínání uskakovala lišta
 * i okraje obsahu. 960 px drží appku čitelnou i na širokém monitoru.
 */
.admin-main {
    max-width: 960px;
}

.admin-body .app-bar-inner {
    max-width: 960px;
}

/* ==========================================================================
   Souhrnná karta kroužku na rozcestníku
   ========================================================================== */

/*
 * Karta je jeden klikací celek (do kroužku), žádné poddlaždice - funkce jsou
 * v tabech uvnitř kroužku. Tužka nahoře vede zvlášť do nastavení.
 */
.group-summary {
    position: relative;
    transition: box-shadow 0.15s, transform 0.15s;
}

.group-summary:hover {
    box-shadow: 0 8px 24px -12px rgba(31, 41, 55, 0.35);
}

.group-summary-link {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
}

.group-summary .group-card-go {
    position: relative;
    z-index: 2;
    text-decoration: none;
}

.group-summary .group-card-go:hover {
    background: var(--brand-soft);
    color: var(--primary-color);
}

.group-summary .field-block-label {
    display: block;
    margin: 0.9rem 0 0.4rem;
}

.summary-events {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.35rem;
}

.summary-events li {
    display: grid;
    grid-template-columns: 3.4rem minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.6rem;
    border-radius: 10px;
    background: var(--bg-gray);
    font-size: 0.85rem;
}

.summary-date {
    font-weight: 700;
    color: var(--primary-color);
    white-space: nowrap;
}

.summary-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-primary);
}

.summary-title i {
    font-size: 0.75rem;
    margin-right: 0.2rem;
}

/* jeden řádek "3 přijde · 4/6" a pod ním proužek, jak kdo odpověděl */
.summary-rsvp {
    display: block;
    min-width: 5.5rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
    white-space: nowrap;
    text-align: right;
}

.summary-rsvp strong {
    color: #15803d;
    font-size: 0.85rem;
}

.summary-rsvp small {
    font-size: 0.7rem;
    margin-left: 0.2rem;
}

.summary-rsvp small::before {
    content: '· ';
}

.summary-bar {
    display: block;
    height: 4px;
    margin-top: 0.2rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.summary-bar span {
    display: block;
    height: 100%;
    background: var(--primary-color);
    border-radius: 999px;
}

.summary-empty {
    margin: 0.8rem 0 0;
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.summary-flags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.75rem;
}

.summary-flag {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: #fff7ed;
    color: #9a3412;
    font-size: 0.72rem;
    font-weight: 600;
}

.summary-flag-hot {
    background: #fef2f2;
    color: #b91c1c;
}

/* Odpověď rodiče se ukládá sama - malé potvrzení místo tlačítka Uložit */
.rsvp-saved {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    margin-left: 0.4rem;
    padding: 0.05rem 0.45rem;
    border-radius: 999px;
    background: #dcfce7;
    color: #15803d;
    font-size: 0.7rem;
    font-weight: 700;
    vertical-align: middle;
}

.rsvp-saved::before {
    content: '\f00c';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.6rem;
}

.rsvp-saved-error {
    background: #fef2f2;
    color: #b91c1c;
}

.rsvp-saved-error::before {
    content: '\f071';
}

.rsvp-saved[hidden],
.rsvp-note-ok[hidden] {
    display: none;
}

.rsvp-note-wrap {
    position: relative;
    display: block;
}

.rsvp-note-wrap .rsvp-note {
    width: 100%;
    padding-right: 2rem;
}

/* fajfka uvnitř pole poznámky, vpravo */
.rsvp-note-ok {
    position: absolute;
    right: 0.65rem;
    top: 50%;
    transform: translateY(-50%);
    color: #16a34a;
    font-size: 0.95rem;
    pointer-events: none;
}

.is-fresh {
    animation: rsvp-pop 0.35s ease-out;
}

@keyframes rsvp-pop {
    0% { opacity: 0; transform: translateY(-50%) scale(0.6); }
    100% { opacity: 1; transform: translateY(-50%) scale(1); }
}

.rsvp-saved.is-fresh {
    animation: rsvp-pop-chip 0.35s ease-out;
}

@keyframes rsvp-pop-chip {
    0% { opacity: 0; transform: scale(0.7); }
    100% { opacity: 1; transform: scale(1); }
}

/* ==========================================================================
   Veřejný katalog kroužků - modernější a barevnější vzhled
   ========================================================================== */

/*
 * Dřív čistě černobílé a špatně čitelné. Teď: tónované pozadí, barevný hero
 * (tmavě modrá → tyrkys, žádná fialová), filtr jako plovoucí karta přes spodek
 * heroa a karty kroužků v barvách svého tématu.
 */
.land-body {
    --land-ink: #0f172a;
    --land-muted: #475569;
    --land-a: #0f3b4c;
    --land-b: #0d9488;
    --land-accent: #f59e0b;
    background:
        radial-gradient(1200px 500px at 10% -10%, rgba(13, 148, 136, 0.10), transparent 60%),
        radial-gradient(900px 400px at 100% 0%, rgba(245, 158, 11, 0.10), transparent 60%),
        #f6f8fb;
    color: var(--land-ink);
}

.land-body .land-bar {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: saturate(160%) blur(12px);
    -webkit-backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.land-body .land-logo-mark {
    background: linear-gradient(135deg, var(--land-a), var(--land-b));
    color: #fff;
    box-shadow: 0 6px 16px -6px rgba(13, 148, 136, 0.6);
}

.land-body .btn-solid {
    background: var(--land-a);
    border-color: var(--land-a);
}

.land-body .btn-solid:hover {
    background: var(--land-b);
    border-color: var(--land-b);
}

/* --- hero --- */
.land-body .land-hero {
    position: relative;
    overflow: hidden;
    margin-top: 1.25rem;
    padding: 2rem 1.5rem 4.5rem;
    border-radius: 24px;
    background: linear-gradient(135deg, var(--land-a) 0%, #11606b 55%, var(--land-b) 100%);
    color: #fff;
    box-shadow: 0 24px 48px -28px rgba(15, 59, 76, 0.7);
}

/* měkké barevné skvrny v pozadí, ať hero není placka */
.land-body .land-hero::before,
.land-body .land-hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
    pointer-events: none;
}

.land-body .land-hero::before {
    width: 280px;
    height: 280px;
    right: -80px;
    top: -110px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.45), transparent 70%);
}

.land-body .land-hero::after {
    width: 220px;
    height: 220px;
    left: -70px;
    bottom: -120px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 70%);
}

.land-body .land-hero > * {
    position: relative;
    z-index: 1;
}

.land-hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #fde68a;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.land-body .land-hero h1 {
    color: #fff;
    margin: 0.7rem 0 0.5rem;
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.land-body .land-hero p {
    color: rgba(255, 255, 255, 0.88);
    max-width: 40rem;
    font-size: 1rem;
    line-height: 1.55;
}

.land-hero-points {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.land-hero-points li {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 0.82rem;
    font-weight: 600;
}

.land-hero-points i {
    color: #fcd34d;
}

.land-hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.4rem;
}

.land-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.75rem 1.15rem;
    border-radius: 14px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.land-cta-main {
    background: #fff;
    color: var(--land-a);
    box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.5);
}

.land-cta-main:hover {
    transform: translateY(-1px);
}

.land-cta-soft {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.land-cta-soft:hover {
    background: rgba(255, 255, 255, 0.22);
}

/* --- filtr jako plovoucí karta přes spodek heroa --- */
.land-body .land-filters {
    position: relative;
    z-index: 2;
    margin: -2.75rem 0.75rem 0;
    padding: 0.75rem;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 18px;
    box-shadow: 0 18px 40px -24px rgba(15, 23, 42, 0.45);
}

.land-body .land-search input,
.land-body .land-filters select {
    background-color: #f1f5f9;
    border: 1px solid transparent;
    border-radius: 12px;
    color: var(--land-ink);
}

.land-body .land-search input:focus,
.land-body .land-filters select:focus {
    background-color: #fff;
    border-color: var(--land-b);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.18);
    outline: none;
}

.land-body .land-filters .btn-solid {
    background: linear-gradient(135deg, var(--land-a), var(--land-b));
    border: none;
    border-radius: 12px;
}

.land-body .land-count {
    margin-top: 1.4rem;
    color: var(--land-muted);
    font-weight: 600;
}

/* --- karty kroužků --- */
.land-body .land-card {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 18px;
    box-shadow: 0 10px 30px -22px rgba(15, 23, 42, 0.45);
    overflow: hidden;
    position: relative;
}

/* barevný proužek nahoře v barvách tématu kroužku */
.land-body .land-card::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-a), var(--brand-b));
}

.land-body .land-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px -22px rgba(15, 23, 42, 0.5);
    border-color: rgba(15, 23, 42, 0.1);
}

.land-body .land-card-icon {
    background: linear-gradient(135deg, var(--brand-a), var(--brand-b));
    color: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 18px -10px var(--brand-b);
}

.land-body .land-card-body strong {
    color: var(--land-ink);
}

.land-body .land-card-meta {
    color: var(--land-muted);
}

.land-body .land-card-meta i {
    color: var(--brand-b);
}

.land-body .land-tag {
    background: #eef2f7;
    color: #334155;
}

.land-body .land-tag-active {
    background: #fef3c7;
    color: #92400e;
}

.land-body .land-card-go {
    color: var(--brand-b);
}

/* obecné kroužky bez vlastního tématu nesmí být fialové - dostanou barvy katalogu */
.land-body .land-card.theme-default {
    --brand-a: #0f3b4c;
    --brand-b: #0d9488;
}

.land-body .land-foot {
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    color: var(--land-muted);
}

.land-body .land-foot a {
    color: var(--land-a);
}

@media (min-width: 760px) {
    .land-body .land-hero {
        padding: 2.75rem 2.5rem 5rem;
    }

    .land-body .land-filters {
        margin: -3rem 2rem 0;
    }
}

/* hero přes celou šířku obsahu, ať lícuje s filtrem i kartami */
.land-body .land-hero {
    max-width: none;
}

.land-demo-note {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0 0 0.75rem;
    padding: 0.55rem 0.8rem;
    border-radius: 12px;
    background: #fef3c7;
    color: #92400e;
    font-size: 0.82rem;
    font-weight: 600;
}

/* bez tlačítek v heroi stačí menší spodek - filtr pořád přesahuje přes okraj */
.land-body .land-hero {
    padding-bottom: 4rem;
}

/* ==========================================================================
   Rodič: stejná kostra jako vedoucí (Moje kroužky, taby v kroužku)
   ========================================================================== */

/* stav mých dětí u akce na souhrnné kartě */
.summary-state {
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
}

.summary-state-wait {
    background: #fef3c7;
    color: #92400e;
}

.summary-state-yes {
    background: #dcfce7;
    color: #15803d;
}

.summary-state-no {
    background: #fee2e2;
    color: #b91c1c;
}

.summary-state-maybe {
    background: #e0e7ff;
    color: #3730a3;
}

/* zprávy od vedoucího pod akcemi s potvrzováním */
.parent-section-label {
    display: block;
    margin: 1.4rem 0 0.6rem;
}

.parent-news {
    display: grid;
    gap: 0.75rem;
}

.parent-news-item {
    position: relative;
    padding-top: 1.35rem;
}

.parent-news-item .msg-label {
    position: absolute;
    top: -0.6rem;
    left: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.parent-news-item h3 {
    margin: 0 0 0.35rem;
    font-size: 1.02rem;
}

.parent-news-pinned {
    box-shadow: inset 3px 0 0 var(--primary-color);
}

/*
 * iPhone přiblíží každé pole s písmem pod 16 px, jakmile do něj člověk klepne
 * (třeba poznámka k turnaji) - a pak je rozhozené celé rozložení. Na dotykových
 * zařízeních mají proto všechna pole aspoň 16 px.
 */
@media (pointer: coarse) {
    input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
    select,
    textarea {
        font-size: 16px !important;
    }
}

/* Konverzace v okénku: zprávy se rolují, psaní odpovědi drží dole */
.modal-thread {
    display: flex;
    flex-direction: column;
    max-height: 88vh;
    overflow: hidden;
}

.thread-modal-body {
    flex: 1 1 auto;
    overflow-y: auto;
    min-height: 0;
}

.thread-modal-body .chat-form {
    position: sticky;
    bottom: 0;
    background: #fff;
    padding-top: 0.6rem;
}

/* Kraje a města: kraj jako rozbalovací blok, města jako dlaždice */
.region-block {
    margin-bottom: 0.5rem;
}

.region-block > summary {
    font-weight: 650;
}

.region-picked {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 0.4rem;
    margin-left: 0.4rem;
    border-radius: 999px;
    background: var(--primary-color);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
}

/* Nápověda: číslované první kroky pro nového vedoucího */
.help-first {
    margin: 0 0 0.9rem;
    padding: 0.7rem 0.8rem;
    border-radius: 12px;
    background: #fff7ed;
}

.help-first .help-example-label {
    color: #9a3412;
}

.help-first ol {
    margin: 0;
    padding-left: 1.2rem;
    font-size: 0.85rem;
    line-height: 1.5;
    display: grid;
    gap: 0.3rem;
}

/*
 * Vstupní obrazovky bez kroužku (přihlášení rodiče, přihlášení vedoucího před
 * výběrem kroužku) jedou v barvách katalogu - tmavě modrá → tyrkys. Fialová
 * byla první dojem rodiče z SMS odkazu a s ničím dalším neladila.
 */
.theme-catalog {
    --primary-color: #0f766e;
    --primary-hover: #115e59;
    --brand-a: #0f3b4c;
    --brand-b: #0d9488;
    --brand-soft: #e6f4f2;
    --app-bg: #f6f8fb;
    --info-color: #0d9488;
}

.theme-catalog .auth-mark,
.theme-catalog .login-icon {
    background: linear-gradient(135deg, var(--brand-a), var(--brand-b));
}

.theme-catalog .auth-screen,
.theme-catalog.admin-body {
    background: var(--app-bg);
}

.rsvp-privacy {
    margin: 0 0 0.75rem;
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.rsvp-privacy i {
    margin-right: 0.25rem;
}

/* ==========================================================================
   Vstupní stránka: přihlášení přímo v heroi + účet pro všechny
   ========================================================================== */

.hero-login {
    display: grid;
    gap: 0.5rem;
    max-width: 380px;
    margin-top: 1.2rem;
}

/* pole na tmavém pozadí heroa */
.field-dark input {
    background: rgba(255, 255, 255, 0.96) !important;
    border-color: transparent !important;
    color: var(--land-ink, #0f172a);
}

.field-dark span {
    color: #475569;
}

.hero-login .land-cta {
    justify-content: center;
    margin-top: 0.2rem;
}

.hero-login-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.2rem;
    margin-top: 0.8rem;
    font-size: 0.85rem;
}

.hero-login-links a {
    color: #fff;
    opacity: 0.9;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.land-hero-who {
    align-self: center;
    font-size: 0.85rem;
    opacity: 0.85;
}

/* vstupní obrazovky (přihlášení, registrace, heslo) */
.auth-body {
    background: var(--app-bg, #f6f8fb);
}

.auth-card {
    position: relative;
}

.auth-back {
    position: absolute;
    left: 0.9rem;
    top: 0.9rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    background: var(--bg-gray);
    text-decoration: none;
}

.auth-links {
    display: grid;
    gap: 0.45rem;
    margin-top: 1rem;
    text-align: center;
    font-size: 0.88rem;
}

.auth-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.demo-box {
    margin-top: 1.4rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--border-color);
}

.demo-box .label-manage-list {
    max-height: none;
}

/* role na kartě v Moje kroužky */
.role-tag {
    display: inline-block;
    padding: 0.05rem 0.45rem;
    margin-right: 0.2rem;
    border-radius: 999px;
    background: var(--primary-color);
    color: #fff;
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    vertical-align: middle;
}

.role-tag-parent {
    background: #0d9488;
}

.section-label {
    display: block;
    margin: 0.4rem 0 0.5rem;
}

.onboard h2 {
    margin: 0 0 0.3rem;
    font-size: 1.15rem;
}

.onboard .link-row {
    margin-top: 0.5rem;
}

.onboard .link-row small {
    display: block;
    font-size: 0.76rem;
    color: var(--text-secondary);
}

/* Výchozí téma = paleta katalogu. Fialová (#4f46e5) byla zbytek původní šablony a s ničím neladila. */
.theme-default,
.admin-body:not([class*="theme-"]),
.app-body:not([class*="theme-"]) {
    --primary-color: #0f766e;
    --primary-hover: #115e59;
    --brand-a: #0f3b4c;
    --brand-b: #0d9488;
    --brand-soft: #e6f4f2;
    --app-bg: #f6f8fb;
    --info-color: #0d9488;
}

.theme-default .tile-icon-indigo,
.theme-default .land-card-icon {
    background: linear-gradient(135deg, #0f3b4c, #0d9488);
}

/* ==========================================================================
   Přepínač kroužků v liště ("Šachy děti ▾")
   ========================================================================== */

.group-switch {
    position: relative;
}

.group-switch-btn {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 0.2rem 0.45rem;
    margin-left: -0.45rem;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s;
}

.group-switch-btn:hover,
.group-switch-btn:active {
    background: rgba(255, 255, 255, 0.12);
}

.group-switch-caret {
    font-size: 0.7rem;
    margin-left: 0.15rem;
    opacity: 0.8;
    vertical-align: middle;
}

/* panel se otevírá pod názvem, zleva - vedle značky */
.group-switch-panel {
    left: -0.45rem;
    right: auto;
    width: min(320px, calc(100vw - 5rem));
}

.group-switch-panel .bar-menu-item small {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.1rem;
}

.group-switch-panel .role-tag {
    font-size: 0.58rem;
    padding: 0 0.35rem;
}

.group-switch-current {
    background: var(--brand-soft, #e6f4f2);
}

.group-switch-badge {
    margin-left: auto;
    min-width: 20px;
    height: 20px;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.group-switch-extra {
    border-top: 1px solid var(--border-color);
    border-radius: 0;
}

.group-switch-extra + .group-switch-extra {
    border-top: none;
}

.group-switch-extra strong {
    font-weight: 600;
    color: var(--text-secondary);
}

/* Karta v přehledu musí vypadat klikací - šipka vpravo a zmáčknutí při dotyku */
.group-summary .group-card-head::after {
    content: '\f054';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-left: 0.4rem;
}

.group-summary:active {
    transform: scale(0.99);
}

/* Panel přepínače visí v názvu lišty - nesmí převzít její bílé písmo a zkracování */
.app-bar-title .group-switch-panel,
.app-bar-title .group-switch-panel strong,
.app-bar-title .group-switch-panel span,
.app-bar-title .group-switch-panel small {
    color: var(--text-primary);
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    font-size: inherit;
}

.app-bar-title .group-switch-panel strong {
    font-size: 0.88rem;
    font-weight: 600;
}

.app-bar-title .group-switch-panel small {
    font-size: 0.72rem;
    color: var(--text-secondary);
}

.app-bar-title .group-switch-panel .role-tag {
    color: #fff;
    display: inline-block;
}

.app-bar-title .group-switch-panel .group-switch-extra strong {
    color: var(--text-secondary);
}

/*
 * Automatické vyplnění prohlížeče (uložené jméno a heslo): Chrome pole vyplní,
 * ale dokud se stránka nepřekreslí, tváří se jako prázdné (:placeholder-shown)
 * a popisek zůstane přes vyplněný text. :autofill popisek vytáhne nahoru hned.
 * Pravidla musí být zvlášť - neznámý selektor v seznamu by zahodil celé pravidlo.
 */
.field > input:-webkit-autofill + span {
    top: 0.5rem;
    transform: none;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.field > input:autofill + span {
    top: 0.5rem;
    transform: none;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

/* Vyplněné pole bez modrého podbarvení prohlížeče - vypadá stejně jako ručně vyplněné */
.field > input:-webkit-autofill,
.field > input:-webkit-autofill:hover,
.field > input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--text-primary);
    -webkit-box-shadow: 0 0 0 1000px #fff inset;
    transition: background-color 9999s ease-out 0s;
}

.field > input.has-value + span {
    top: 0.5rem;
    transform: none;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

/* Odkaz DEMO DATA - rychlé přihlášení vybraným účtem pro testování */
.hero-demo-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.9rem;
    padding: 0.55rem 0.9rem;
    border-radius: 12px;
    background: #fde68a;
    color: #78350f;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
}

.hero-demo-link:hover {
    background: #fcd34d;
}

.auth-links .demo-link {
    margin-top: 0.3rem;
    padding: 0.55rem 0.8rem;
    border-radius: 12px;
    background: #fef3c7;
    color: #92400e;
}

/* Nastavení kroužku: sekce Rozvrh / Kroužek / Sdílení */
.settings-section {
    display: block;
    margin: 0.4rem 0 -0.2rem;
    color: var(--primary-color);
}

/* konec řady tabů - poslední tab nesmí lícovat s ořezem (flex ignoruje padding na konci) */
.view-tabs::after {
    content: '';
    flex: 0 0 0.4rem;
}

/* 🚨 .confirm-note má display: flex, což přebíjí [hidden] - schování musí být výslovné */
.confirm-note[hidden] {
    display: none;
}

/* Smazat termín: stejný tvar jako Uložit, jen červené provedení */
.btn-danger-soft {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
    margin-top: 0.4rem;
}

.btn-danger-soft:hover {
    background: #fee2e2;
}

.btn-danger-soft[hidden] {
    display: none;
}

/* Potvrzení mazání ve sloupci, tlačítka přes celou šířku */
.confirm-stack {
    display: block;
    margin-top: 0.4rem;
}

.confirm-stack .confirm-actions {
    display: grid;
    gap: 0.4rem;
    margin-top: 0.5rem;
}

.confirm-stack .btn {
    width: 100%;
}

/* Moje kroužky: dvě jasně oddělené sekce s vlastní akcí */
.my-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    margin: 1.4rem 0 0.6rem;
}

.my-section-head:first-of-type {
    margin-top: 0.4rem;
}

.my-section-head .section-label {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--text-primary);
    font-size: 0.8rem;
}

.my-section-head .section-label i {
    color: var(--primary-color);
}

.my-section-head .btn-xs {
    flex: 0 0 auto;
    white-space: nowrap;
}

.my-section-empty {
    margin: 0 0 0.4rem;
    padding: 0.7rem 0.85rem;
    border-radius: 12px;
    background: var(--bg-gray);
    color: var(--text-secondary);
    font-size: 0.82rem;
    line-height: 1.45;
}

/* ==========================================================================
   Výběr vzhledu kroužku: šablony podle zaměření + mozaika barev
   ========================================================================== */

.theme-templates {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
    gap: 0.45rem;
    margin-bottom: 0.9rem;
}

.theme-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 0.6rem 0.3rem;
    border: 1.5px solid var(--border-color);
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
    font: inherit;
    transition: border-color 0.15s, transform 0.12s;
}

.theme-card:active {
    transform: scale(0.97);
}

.theme-card-on {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px var(--brand-soft);
}

.theme-card-icon {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.9rem;
}

.theme-card-name {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-secondary);
    line-height: 1.2;
    text-align: center;
}

.theme-colors-label {
    display: block;
    margin-bottom: 0.4rem;
}

.theme-colors {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(38px, 1fr));
    gap: 0.4rem;
}

.theme-dot {
    aspect-ratio: 1;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.55);
    transition: transform 0.12s;
}

.theme-dot:active {
    transform: scale(0.92);
}

.theme-dot-on {
    box-shadow: inset 0 0 0 3px #fff, 0 0 0 2.5px var(--text-primary);
}

/* ==========================================================================
   Vstupní obrazovka: dvě tlačítka (vedoucí / rodič) a přihlášení
   ========================================================================== */

.entry-body {
    min-height: 100vh;
    background:
        radial-gradient(900px 420px at 0% -10%, rgba(13, 148, 136, 0.22), transparent 60%),
        radial-gradient(700px 380px at 100% 0%, rgba(245, 158, 11, 0.14), transparent 60%),
        linear-gradient(160deg, #0f3b4c 0%, #11606b 55%, #0d9488 100%);
    display: flex;
}

.entry {
    width: 100%;
    max-width: 420px;
    margin: auto;
    padding: 2rem 1.25rem calc(2rem + env(safe-area-inset-bottom));
    color: #fff;
    text-align: center;
}

.entry-mark {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.16);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}

.entry h1 {
    margin: 0;
    font-size: 1.7rem;
    letter-spacing: -0.02em;
    color: #fff;
}

.entry-lead {
    margin: 0.4rem 0 1.8rem;
    opacity: 0.85;
    font-size: 0.98rem;
}

.entry-choice {
    display: grid;
    gap: 0.75rem;
}

.entry-choice[hidden],
.entry-form[hidden] {
    display: none;
}

.entry-btn {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    width: 100%;
    padding: 1.1rem 1.1rem;
    border: none;
    border-radius: 18px;
    background: #fff;
    color: #0f172a;
    font: inherit;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 14px 30px -18px rgba(0, 0, 0, 0.6);
    transition: transform 0.12s;
}

.entry-btn:active {
    transform: scale(0.98);
}

.entry-btn > i:first-child {
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    border-radius: 14px;
    background: linear-gradient(135deg, #0f3b4c, #0d9488);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}

.entry-btn span {
    flex: 1;
}

.entry-btn strong {
    display: block;
    font-size: 1.1rem;
}

.entry-btn small {
    display: block;
    color: #64748b;
    font-size: 0.85rem;
}

.entry-btn > i:last-child {
    color: #94a3b8;
}

.entry-form {
    background: #fff;
    border-radius: 20px;
    padding: 1.1rem;
    color: #0f172a;
    text-align: left;
    box-shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.6);
}

.entry-back {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.4rem;
    padding: 0.3rem 0;
    border: none;
    background: none;
    color: #0f766e;
    font: inherit;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
}

/* zkušební vstup tokenem - schválně nenápadný, jako poznámka pod čarou */
.entry-quick {
    margin: 1.6rem 0 0;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.6);
}

.entry-quick a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* jména a hesla zkušebních účtů - schované pod nenápadným odkazem */
.entry-creds-toggle {
    margin-top: 0.4rem;
    border: none;
    background: none;
    color: rgba(255, 255, 255, 0.6);
    font: inherit;
    font-size: 0.78rem;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.entry-creds {
    margin-top: 0.6rem;
    display: grid;
    gap: 0.45rem;
    text-align: left;
}

.entry-creds[hidden] {
    display: none;
}

.entry-cred {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 0.1rem 0.6rem;
    padding: 0.6rem 0.75rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 0.82rem;
}

.entry-cred-who {
    font-weight: 700;
}

.entry-cred-data {
    grid-column: 1;
    opacity: 0.9;
    word-break: break-all;
}

.entry-cred-fill {
    grid-column: 2;
    grid-row: 1 / span 2;
    padding: 0.45rem 0.8rem;
    border: none;
    border-radius: 10px;
    background: #fff;
    color: #0f766e;
    font: inherit;
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
}

/* === Vzhledy kroužků (generováno tools-build-themes.php) === */
.theme-default {
    --primary-color: #0b8278;
    --primary-hover: #09685f;
    --brand-a: #06433d;
    --brand-b: #0b7e74;
    --brand-soft: #e2f2f1;
    --app-bg: #f5fbfa;
    --info-color: #0b8278;
}
.theme-chess {
    --primary-color: #794f26;
    --primary-hover: #613f1e;
    --brand-a: #3e2913;
    --brand-b: #754d25;
    --brand-soft: #f1ebe6;
    --app-bg: #faf8f7;
    --info-color: #794f26;
}
.theme-hudba {
    --primary-color: #6d33d1;
    --primary-hover: #5729a6;
    --brand-a: #381a6b;
    --brand-b: #6931c9;
    --brand-soft: #efe7fd;
    --app-bg: #faf7fe;
    --info-color: #6d33d1;
}
.theme-vytvarka {
    --primary-color: #c12269;
    --primary-hover: #991b53;
    --brand-a: #631236;
    --brand-b: #ba2165;
    --brand-soft: #fbe5ef;
    --app-bg: #fef6fa;
    --info-color: #c12269;
}
.theme-sport {
    --primary-color: #138f41;
    --primary-hover: #0f7234;
    --brand-a: #0a4921;
    --brand-b: #138b3f;
    --brand-soft: #e3f4e9;
    --app-bg: #f6fbf8;
    --info-color: #138f41;
}
.theme-tanec {
    --primary-color: #c61a3f;
    --primary-hover: #9e1432;
    --brand-a: #650d20;
    --brand-b: #bf193d;
    --brand-soft: #fbe4e9;
    --app-bg: #fef6f8;
    --info-color: #c61a3f;
}
.theme-bojove {
    --primary-color: #a31919;
    --primary-hover: #821414;
    --brand-a: #530d0d;
    --brand-b: #9d1818;
    --brand-soft: #f7e4e4;
    --app-bg: #fcf6f6;
    --info-color: #a31919;
}
.theme-priroda {
    --primary-color: #446d0d;
    --primary-hover: #36570b;
    --brand-a: #233807;
    --brand-b: #41690d;
    --brand-soft: #eaefe2;
    --app-bg: #f8faf5;
    --info-color: #446d0d;
}
.theme-veda {
    --primary-color: #0274af;
    --primary-hover: #015c8b;
    --brand-a: #013b5a;
    --brand-b: #0270a9;
    --brand-soft: #e1f0f8;
    --app-bg: #f5fafd;
    --info-color: #0274af;
}
.theme-jazyky {
    --primary-color: #07809d;
    --primary-hover: #06667d;
    --brand-a: #044150;
    --brand-b: #077b97;
    --brand-soft: #e1f2f6;
    --app-bg: #f5fbfc;
    --info-color: #07809d;
}
.theme-divadlo {
    --primary-color: #812dce;
    --primary-hover: #6724a4;
    --brand-a: #421769;
    --brand-b: #7d2bc7;
    --brand-soft: #f2e7fc;
    --app-bg: #fbf7fe;
    --info-color: #812dce;
}
.theme-plavani {
    --primary-color: #035c8e;
    --primary-hover: #024a71;
    --brand-a: #012f48;
    --brand-b: #035989;
    --brand-soft: #e1edf4;
    --app-bg: #f5f9fb;
    --info-color: #035c8e;
}
.theme-technika {
    --primary-color: #3e4b5c;
    --primary-hover: #323c4a;
    --brand-a: #20262f;
    --brand-b: #3c4859;
    --brand-soft: #e9ebed;
    --app-bg: #f8f8f9;
    --info-color: #3e4b5c;
}
.theme-c01 {
    --primary-color: #c22121;
    --primary-hover: #9a1b1b;
    --brand-a: #631111;
    --brand-b: #bb2020;
    --brand-soft: #fbe5e5;
    --app-bg: #fef6f6;
    --info-color: #c22121;
}
.theme-c02 {
    --primary-color: #ce4d0b;
    --primary-hover: #a43e08;
    --brand-a: #692805;
    --brand-b: #c74b0a;
    --brand-soft: #fcebe2;
    --app-bg: #fef8f5;
    --info-color: #ce4d0b;
}
.theme-c03 {
    --primary-color: #bf6905;
    --primary-hover: #985304;
    --brand-a: #623603;
    --brand-b: #b86505;
    --brand-soft: #faefe1;
    --app-bg: #fdfaf5;
    --info-color: #bf6905;
}
.theme-c04 {
    --primary-color: #b27904;
    --primary-hover: #8d6103;
    --brand-a: #5b3e02;
    --brand-b: #ac7503;
    --brand-soft: #f9f1e1;
    --app-bg: #fdfaf5;
    --info-color: #b27904;
}
.theme-c05 {
    --primary-color: #598f0b;
    --primary-hover: #477209;
    --brand-a: #2d4906;
    --brand-b: #568b0b;
    --brand-soft: #edf4e2;
    --app-bg: #f9fbf5;
    --info-color: #598f0b;
}
.theme-c06 {
    --primary-color: #138f41;
    --primary-hover: #0f7234;
    --brand-a: #0a4921;
    --brand-b: #138b3f;
    --brand-soft: #e3f4e9;
    --app-bg: #f6fbf8;
    --info-color: #138f41;
}
.theme-c07 {
    --primary-color: #04845c;
    --primary-hover: #04694a;
    --brand-a: #02442f;
    --brand-b: #048059;
    --brand-soft: #e1f2ed;
    --app-bg: #f5fbf9;
    --info-color: #04845c;
}
.theme-c08 {
    --primary-color: #0b8278;
    --primary-hover: #09685f;
    --brand-a: #06433d;
    --brand-b: #0b7e74;
    --brand-soft: #e2f2f1;
    --app-bg: #f5fbfa;
    --info-color: #0b8278;
}
.theme-c09 {
    --primary-color: #07809d;
    --primary-hover: #06667d;
    --brand-a: #044150;
    --brand-b: #077b97;
    --brand-soft: #e1f2f6;
    --app-bg: #f5fbfc;
    --info-color: #07809d;
}
.theme-c10 {
    --primary-color: #0274af;
    --primary-hover: #015c8b;
    --brand-a: #013b5a;
    --brand-b: #0270a9;
    --brand-soft: #e1f0f8;
    --app-bg: #f5fafd;
    --info-color: #0274af;
}
.theme-c11 {
    --primary-color: #2157cf;
    --primary-hover: #1a45a5;
    --brand-a: #112d6a;
    --brand-b: #1f54c8;
    --brand-soft: #e5ecfd;
    --app-bg: #f6f9fe;
    --info-color: #2157cf;
}
.theme-c12 {
    --primary-color: #463eca;
    --primary-hover: #3731a0;
    --brand-a: #242067;
    --brand-b: #433cc3;
    --brand-soft: #eae9fc;
    --app-bg: #f8f8fe;
    --info-color: #463eca;
}
.theme-c13 {
    --primary-color: #6d33d1;
    --primary-hover: #5729a6;
    --brand-a: #381a6b;
    --brand-b: #6931c9;
    --brand-soft: #efe7fd;
    --app-bg: #faf7fe;
    --info-color: #6d33d1;
}
.theme-c14 {
    --primary-color: #812dce;
    --primary-hover: #6724a4;
    --brand-a: #421769;
    --brand-b: #7d2bc7;
    --brand-soft: #f2e7fc;
    --app-bg: #fbf7fe;
    --info-color: #812dce;
}
.theme-c15 {
    --primary-color: #a921ba;
    --primary-hover: #861b94;
    --brand-a: #56115f;
    --brand-b: #a320b3;
    --brand-soft: #f7e5fa;
    --app-bg: #fcf6fd;
    --info-color: #a921ba;
}
.theme-c16 {
    --primary-color: #c12269;
    --primary-hover: #991b53;
    --brand-a: #631236;
    --brand-b: #ba2165;
    --brand-soft: #fbe5ef;
    --app-bg: #fef6fa;
    --info-color: #c12269;
}
.theme-c17 {
    --primary-color: #c61a3f;
    --primary-hover: #9e1432;
    --brand-a: #650d20;
    --brand-b: #bf193d;
    --brand-soft: #fbe4e9;
    --app-bg: #fef6f8;
    --info-color: #c61a3f;
}
.theme-c18 {
    --primary-color: #a31919;
    --primary-hover: #821414;
    --brand-a: #530d0d;
    --brand-b: #9d1818;
    --brand-soft: #f7e4e4;
    --app-bg: #fcf6f6;
    --info-color: #a31919;
}
.theme-c19 {
    --primary-color: #882e10;
    --primary-hover: #6c240d;
    --brand-a: #451708;
    --brand-b: #832c0f;
    --brand-soft: #f3e7e3;
    --app-bg: #fbf7f6;
    --info-color: #882e10;
}
.theme-c20 {
    --primary-color: #794f26;
    --primary-hover: #613f1e;
    --brand-a: #3e2913;
    --brand-b: #754d25;
    --brand-soft: #f1ebe6;
    --app-bg: #faf8f7;
    --info-color: #794f26;
}
.theme-c21 {
    --primary-color: #446d0d;
    --primary-hover: #36570b;
    --brand-a: #233807;
    --brand-b: #41690d;
    --brand-soft: #eaefe2;
    --app-bg: #f8faf5;
    --info-color: #446d0d;
}
.theme-c22 {
    --primary-color: #0f534e;
    --primary-hover: #0c423e;
    --brand-a: #082a28;
    --brand-b: #0e504c;
    --brand-soft: #e2eceb;
    --app-bg: #f5f9f8;
    --info-color: #0f534e;
}
.theme-c23 {
    --primary-color: #1a389a;
    --primary-hover: #152d7b;
    --brand-a: #0e1d4f;
    --brand-b: #1a3695;
    --brand-soft: #e4e8f5;
    --app-bg: #f6f7fc;
    --info-color: #1a389a;
}
.theme-c24 {
    --primary-color: #3e4b5c;
    --primary-hover: #323c4a;
    --brand-a: #20262f;
    --brand-b: #3c4859;
    --brand-soft: #e9ebed;
    --app-bg: #f8f8f9;
    --info-color: #3e4b5c;
}
