.ksupf-profile-wrap {
    --ksupf-accent: #d91f3f;
    --ksupf-accent-dark: #b91833;
    --ksupf-border: #e7e7e7;
    --ksupf-muted: #f8f8f8;
    --ksupf-text: #222;
}

.ksupf-profile-form input[type="text"],
.ksupf-profile-form input[type="email"],
.ksupf-profile-form input[type="password"],
.ksupf-profile-form input[type="file"] {
    width: 100%;
    max-width: 420px;
    box-sizing: border-box;
}

.ksupf-profile-form label {
    font-weight: 600;
}

.ksupf-section {
    background: var(--ksupf-muted);
    padding: 22px;
    margin-bottom: 24px;
    border-radius: 12px;
    border: 1px solid var(--ksupf-border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.ksupf-section h3,
.ksupf-section h4 {
    color: var(--ksupf-text);
    margin-top: 0;
    margin-bottom: 16px;
    line-height: 1.25;
}

.ksupf-section h3 {
    font-size: 1.35rem;
    border-bottom: 2px solid var(--ksupf-accent);
    padding-bottom: 6px;
}

.ksupf-section h4 {
    font-size: 1.1rem;
}

.ksupf-profile-display > div {
    margin-bottom: 7px;
}

.button.ksupf-btn,
.ksupf-file-upload {
    background: var(--ksupf-accent);
    color: #fff !important;
    padding: 9px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none !important;
    border: 0;
    line-height: 1.3;
    display: inline-block;
    margin-top: 8px;
    transition: background 0.2s ease, transform 0.08s ease;
}

.button.ksupf-btn:hover,
.button.ksupf-btn:focus,
.ksupf-file-upload:hover,
.ksupf-file-upload:focus {
    background: var(--ksupf-accent-dark);
    color: #fff !important;
}

.button.ksupf-btn:active,
.ksupf-file-upload:active {
    transform: translateY(1px);
}

.button.ksupf-btn-secondary {
    background: #555;
}

.button.ksupf-btn-secondary:hover,
.button.ksupf-btn-secondary:focus {
    background: #333;
}

.ksupf-file-upload {
    position: relative;
    margin-right: 10px;
}

.ksupf-file-upload input[type="file"] {
    display: none;
}

.ksupf-picture-container {
    margin-top: 22px;
}

.ksupf-picture-preview img {
    width: 100px;
    height: 100px;
    display: block;
    margin-bottom: 12px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.ksupf-upload-progress {
    width: 100%;
    max-width: 420px;
    background: #eee;
    height: 8px;
    border-radius: 999px;
    margin: 0 0 12px;
    overflow: hidden;
}

.ksupf-upload-progress .bar {
    height: 100%;
    width: 0;
    background: var(--ksupf-accent);
    border-radius: 999px;
    transition: width 0.25s ease;
}

.ksupf-success,
.ksupf-error {
    display: inline-block;
    margin: 8px 0 10px;
    font-weight: 600;
}

.ksupf-success {
    color: #1d7f38;
}

.ksupf-error {
    color: #b00020;
}

.ksupf-message {
    padding: 15px 18px;
    margin-bottom: 24px;
    border-left: 5px solid #1d7f38;
    background-color: #f3fff6;
    border-radius: 8px;
    color: #145c28;
    font-size: 1rem;
    line-height: 1.5;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.ksupf-message::before {
    content: "✓";
    display: inline-block;
    margin-right: 8px;
    font-weight: 700;
}

.ksupf-error-message {
    border-left-color: #b00020;
    background: #fff4f5;
    color: #7b0015;
}

.ksupf-error-message::before {
    content: "!";
}

#ksupf-password-fields {
    margin-top: 12px;
}

.ksupf-logout-section {
    background: #fff;
}

@media (max-width: 600px) {
    .ksupf-section {
        padding: 18px;
    }

    .button.ksupf-btn,
    .ksupf-file-upload {
        width: 100%;
        text-align: center;
        margin-right: 0;
        margin-bottom: 8px;
    }
}

.ksupf-auth-box {
    text-align: center;
}

.ksupf-auth-text {
    max-width: 680px;
    margin: 0 auto 18px;
    line-height: 1.6;
}

.ksupf-auth-text p:last-child {
    margin-bottom: 0;
}

.ksupf-auth-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    align-items: center;
    margin-top: 18px;
}

.ksupf-auth-actions .ksupf-btn {
    margin-top: 0;
}

.ksupf-custom-content {
    margin-bottom: 24px;
}

.ksupf-custom-content-content_after {
    margin-top: 24px;
    margin-bottom: 0;
}

.ksupf-custom-content > *:last-child {
    margin-bottom: 0;
}

@media (max-width: 600px) {
    .ksupf-auth-actions {
        display: block;
    }
}

/* Vlastní přihlášení a registrace */
.ksupf-auth-layout {
    max-width: 640px;
    margin: 0 auto;
}

.ksupf-auth-box {
    text-align: left;
    background: #fff;
    padding: 28px;
}

.ksupf-auth-box h3 {
    text-align: center;
    margin-bottom: 18px;
}

.ksupf-auth-text {
    text-align: center;
    margin-bottom: 22px;
}

.ksupf-auth-form {
    margin: 0;
}

.ksupf-auth-form .ksupf-field {
    margin: 0 0 15px;
}

.ksupf-auth-form label,
.ksupf-field label {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
    color: var(--ksupf-text);
}

.ksupf-auth-form input[type="text"],
.ksupf-auth-form input[type="email"],
.ksupf-auth-form input[type="password"],
.ksupf-profile-edit input[type="text"],
#ksupf-password-fields input[type="password"] {
    width: 100%;
    max-width: none;
    min-height: 46px;
    padding: 10px 13px;
    border: 1px solid #d8d8d8;
    border-radius: 8px;
    background: #fff;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
    font-size: 1rem;
    line-height: 1.3;
}

.ksupf-auth-form input[type="text"]:focus,
.ksupf-auth-form input[type="email"]:focus,
.ksupf-auth-form input[type="password"]:focus,
.ksupf-profile-edit input[type="text"]:focus,
#ksupf-password-fields input[type="password"]:focus {
    border-color: var(--ksupf-accent);
    outline: none;
    box-shadow: 0 0 0 3px rgba(217, 31, 63, 0.14);
}

.ksupf-auth-row {
    display: flex;
    gap: 12px;
    justify-content: space-between;
    align-items: center;
    margin: 2px 0 18px;
    font-size: 0.95rem;
}

.ksupf-auth-row .ksupf-check {
    display: inline-flex;
    gap: 7px;
    align-items: center;
    margin: 0;
    font-weight: 600;
}

.ksupf-auth-row input[type="checkbox"] {
    margin: 0;
}

.ksupf-lost-password {
    color: var(--ksupf-accent);
    font-weight: 700;
    text-decoration: none;
}

.ksupf-lost-password:hover,
.ksupf-lost-password:focus {
    color: var(--ksupf-accent-dark);
    text-decoration: underline;
}

.button.ksupf-btn-wide {
    width: 100%;
    min-height: 46px;
    text-align: center;
    border-radius: 8px;
    margin-top: 0;
}

.ksupf-register-toggle-wrap {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--ksupf-border);
}

.ksupf-register-panel {
    margin-top: 18px;
    padding: 20px;
    border: 1px solid var(--ksupf-border);
    border-radius: 12px;
    background: var(--ksupf-muted);
}

.ksupf-register-panel h4 {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 1.15rem;
}

.ksupf-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.ksupf-help,
.ksupf-register-note,
.ksupf-register-disabled {
    display: block;
    margin-top: 6px;
    color: #666;
    font-size: 0.92rem;
    line-height: 1.45;
}

.ksupf-register-note {
    margin-bottom: 0;
    text-align: center;
}

.ksupf-register-disabled {
    margin: 16px 0 0;
    padding: 12px 14px;
    border-radius: 8px;
    background: #fff7e6;
    color: #775200;
    text-align: center;
    font-weight: 600;
}

.ksupf-hp-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.ksupf-profile-edit .ksupf-help {
    max-width: 420px;
}

@media (max-width: 600px) {
    .ksupf-auth-box {
        padding: 20px;
    }

    .ksupf-auth-row {
        display: block;
    }

    .ksupf-lost-password {
        display: inline-block;
        margin-top: 10px;
    }

    .ksupf-form-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* Krásná srdce – přihlášení, registrace a obnova hesla */
.ksupf-auth-box > h3 {
    position: relative;
    font-size: 1.6rem;
    letter-spacing: 0.01em;
    border-bottom: 0;
    padding-bottom: 0;
    margin-bottom: 10px;
}

.ksupf-auth-box > h3::before {
    content: "♥";
    display: block;
    width: 46px;
    height: 46px;
    margin: 0 auto 10px;
    border-radius: 50%;
    background: rgba(217, 31, 63, 0.1);
    color: var(--ksupf-accent);
    line-height: 46px;
    text-align: center;
    font-size: 1.5rem;
}

.ksupf-register-intro,
.ksupf-lost-text {
    margin: 0 0 14px;
    color: #555;
    line-height: 1.6;
    font-size: 0.96rem;
}

.ksupf-register-intro {
    text-align: center;
}

.ksupf-register-intro p,
.ksupf-lost-text p {
    margin: 0 0 8px;
}

.ksupf-register-intro p:last-child,
.ksupf-lost-text p:last-child {
    margin-bottom: 0;
}

.ksupf-lost-panel,
.ksupf-register-panel {
    margin-top: 18px;
    padding: 20px;
    border: 1px solid var(--ksupf-border);
    border-radius: 12px;
    background: var(--ksupf-muted);
}

.ksupf-lost-panel h4,
.ksupf-register-panel h4 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1.15rem;
    color: var(--ksupf-text);
}

.ksupf-btn-quiet {
    margin-top: 10px !important;
}

.ksupf-check {
    cursor: pointer;
    user-select: none;
}

.ksupf-check input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 2px solid #d7d7d7;
    border-radius: 6px;
    background: #fff;
    display: inline-block;
    position: relative;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.ksupf-check input[type="checkbox"]::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    opacity: 0;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.ksupf-check input[type="checkbox"]:checked {
    background: var(--ksupf-accent);
    border-color: var(--ksupf-accent);
}

.ksupf-check input[type="checkbox"]:checked::after {
    transform: rotate(45deg) scale(1);
    opacity: 1;
}

.ksupf-check input[type="checkbox"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(217, 31, 63, 0.15);
}

.ksupf-auth-box button.ksupf-lost-password,
.ksupf-auth-box button.ksupf-lost-password:hover,
.ksupf-auth-box button.ksupf-lost-password:focus,
.ksupf-auth-box button.ksupf-lost-password:active {
    appearance: none;
    -webkit-appearance: none;
    border: 0 !important;
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
    padding: 0 !important;
    min-height: 0;
    cursor: pointer;
    font: inherit;
    line-height: inherit;
    color: var(--ksupf-accent);
    font-weight: 700;
    text-decoration: none;
}

.ksupf-auth-box button.ksupf-lost-password:hover,
.ksupf-auth-box button.ksupf-lost-password:focus {
    color: var(--ksupf-accent-dark);
    text-decoration: underline;
    outline: none;
}

/* Záložky přihlášeného profilu */
.ksupf-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 20px;
    padding: 8px;
    border: 1px solid var(--ksupf-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.ksupf-tab {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    background: transparent;
    color: var(--ksupf-text);
    padding: 11px 18px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 800;
    line-height: 1.25;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.ksupf-tab:hover,
.ksupf-tab:focus {
    background: rgba(217, 31, 63, 0.08);
    color: var(--ksupf-accent-dark);
    outline: none;
}

.ksupf-tab.is-active {
    background: var(--ksupf-accent);
    color: #fff;
    box-shadow: 0 8px 18px rgba(217, 31, 63, 0.18);
}

.ksupf-tab-panel {
    display: none;
}

.ksupf-tab-panel.is-active {
    display: block;
}

.ksupf-empty-content p {
    margin-bottom: 0;
    color: #555;
    line-height: 1.6;
}

@media (max-width: 600px) {
    .ksupf-tabs {
        display: block;
    }

    .ksupf-tab {
        width: 100%;
        text-align: center;
        margin-bottom: 6px;
    }

    .ksupf-tab:last-child {
        margin-bottom: 0;
    }
}

#ksupf-tab-content .ksupf-custom-content-content_after {
    margin-top: 0;
}

/* Horní lišta přihlášeného profilu */
.ksupf-profile-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 18px;
    padding: 14px 16px;
    border: 1px solid var(--ksupf-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.ksupf-profile-topbar-user {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.ksupf-profile-topbar-text {
    min-width: 0;
    line-height: 1.25;
}

.ksupf-profile-topbar-label {
    display: block;
    margin-bottom: 2px;
    color: #666;
    font-size: 0.86rem;
    font-weight: 700;
}

.ksupf-profile-topbar-text strong {
    display: block;
    overflow: hidden;
    max-width: 48vw;
    color: var(--ksupf-text);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ksupf-avatar-badge {
    --ksupf-accent: #d91f3f;
    --ksupf-accent-dark: #b91833;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    overflow: hidden;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ksupf-accent), var(--ksupf-accent-dark));
    color: #fff;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 12px rgba(217, 31, 63, 0.18);
}

.ksupf-avatar-badge img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ksupf-topbar-avatar {
    font-size: 0.95rem;
}

.ksupf-logout-top-button {
    flex: 0 0 auto;
    margin-top: 0 !important;
}

/* Položka profilu v menu */
.ksupf-menu-item {
    --ksupf-accent: #d91f3f;
    --ksupf-accent-dark: #b91833;
    display: inline-flex;
    align-items: center;
}

.ksupf-menu-link {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none !important;
}

.ksupf-menu-link.is-login {
    padding: 8px 15px !important;
    border-radius: 999px;
    background: var(--ksupf-accent);
    color: #fff !important;
    font-weight: 800;
    line-height: 1.2;
    box-shadow: 0 6px 16px rgba(217, 31, 63, 0.18);
    transition: background 0.2s ease, transform 0.08s ease, box-shadow 0.2s ease;
}

.ksupf-menu-link.is-login:hover,
.ksupf-menu-link.is-login:focus {
    background: var(--ksupf-accent-dark);
    color: #fff !important;
    box-shadow: 0 8px 20px rgba(217, 31, 63, 0.24);
}

.ksupf-menu-link.is-login:active {
    transform: translateY(1px);
}

.ksupf-menu-link.is-logged-in {
    min-width: 38px;
    min-height: 38px;
    padding: 2px !important;
    border-radius: 999px;
}

.ksupf-menu-link.is-logged-in:hover .ksupf-menu-avatar,
.ksupf-menu-link.is-logged-in:focus .ksupf-menu-avatar {
    box-shadow: 0 0 0 3px rgba(217, 31, 63, 0.16), 0 6px 16px rgba(217, 31, 63, 0.22);
}

.ksupf-menu-avatar {
    font-size: 0.8rem;
    transition: box-shadow 0.2s ease, transform 0.08s ease;
}

.ksupf-menu-link.is-logged-in:active .ksupf-menu-avatar {
    transform: translateY(1px);
}

@media (max-width: 600px) {
    .ksupf-profile-topbar {
        display: block;
    }

    .ksupf-profile-topbar-user {
        margin-bottom: 12px;
    }

    .ksupf-profile-topbar-text strong {
        max-width: 100%;
    }

    .ksupf-logout-top-button {
        width: 100%;
        text-align: center;
    }
}


/* Nastavení nového hesla uvnitř běžné šablony webu */
.ksupf-reset-box > h3 {
    margin-top: 0;
}

.ksupf-reset-box .ksupf-auth-actions {
    margin-top: 0;
}

/* Kotva pro přímý odkaz na registrační / obnovovací formulář. */
.ksupf-auth-anchor {
    display: block;
    position: relative;
    top: -110px;
    visibility: hidden;
    pointer-events: none;
}

/* ========================================================================
 * v1.7.0 – sjednocený profil Krásná srdce
 * Vizuálně navazuje na child theme, ale zachovává bílé pozadí stránky.
 * ====================================================================== */
.ksupf-profile-wrap {
    --ksupf-accent: var(--ks-site-primary, #e91e63);
    --ksupf-accent-dark: var(--ks-site-primary-dark, #b9144b);
    --ksupf-gold: var(--ks-site-gold, #f7b731);
    --ksupf-ink: var(--ks-site-text, #24182f);
    --ksupf-muted-text: #716879;
    --ksupf-border: #eadfe7;
    --ksupf-soft: #fff7fa;
    --ksupf-soft-purple: #f8f4fb;
    --ksupf-dark: var(--ks-site-dark, #130d25);
    --ksupf-dark-2: var(--ks-site-dark-2, #301850);
    --ksupf-card-radius: 24px;
    width: min(1180px, 100%);
    max-width: 1180px !important;
    margin: 0 auto;
    color: var(--ksupf-ink);
    font-size: 16px;
    line-height: 1.6;
}

.ksupf-profile-wrap,
.ksupf-profile-wrap * {
    box-sizing: border-box;
}

.ksupf-profile-wrap h2,
.ksupf-profile-wrap h3,
.ksupf-profile-wrap h4,
.ksupf-profile-wrap p,
.ksupf-profile-wrap dl,
.ksupf-profile-wrap dd {
    margin-top: 0;
}

.ksupf-profile-wrap h2,
.ksupf-profile-wrap h3,
.ksupf-profile-wrap h4 {
    color: var(--ksupf-ink);
    font-family: inherit;
    letter-spacing: -0.035em;
    text-transform: none;
}

/* Horní profilová karta */
.ksupf-profile-hero {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    overflow: hidden;
    margin: 0 0 18px;
    padding: clamp(24px, 4vw, 38px);
    border: 0;
    border-radius: 30px;
    background:
        radial-gradient(circle at 88% 18%, rgba(247, 183, 49, .26), transparent 30%),
        radial-gradient(circle at 12% 100%, rgba(233, 30, 99, .35), transparent 34%),
        linear-gradient(135deg, var(--ksupf-dark) 0%, var(--ksupf-dark-2) 58%, #6b123f 100%);
    color: #fff;
    box-shadow: 0 24px 64px rgba(36, 16, 55, .22);
}

.ksupf-profile-hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    right: -95px;
    bottom: -130px;
    width: 280px;
    height: 280px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 50%;
    box-shadow: 0 0 0 36px rgba(255,255,255,.035), 0 0 0 72px rgba(255,255,255,.025);
}

.ksupf-profile-hero-main {
    display: flex;
    align-items: center;
    gap: 20px;
    min-width: 0;
}

.ksupf-profile-hero .ksupf-topbar-avatar {
    width: 76px !important;
    height: 76px !important;
    border: 4px solid rgba(255,255,255,.8);
    background: linear-gradient(135deg, var(--ksupf-accent), #ff7aa8);
    box-shadow: 0 14px 34px rgba(0,0,0,.24);
    font-size: 22px;
}

.ksupf-profile-hero-copy {
    min-width: 0;
}

.ksupf-profile-eyebrow,
.ksupf-panel-kicker {
    display: block;
    margin-bottom: 5px;
    color: var(--ksupf-accent-dark);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .11em;
    line-height: 1.3;
    text-transform: uppercase;
}

.ksupf-profile-hero .ksupf-profile-eyebrow {
    color: #ffd57a;
}

.ksupf-profile-hero h2 {
    margin: 0;
    color: #fff !important;
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 900;
    line-height: 1.05;
}

.ksupf-profile-hero p {
    max-width: 620px;
    margin: 9px 0 0;
    color: rgba(255,255,255,.76);
    font-size: 15px;
    line-height: 1.55;
}

.ksupf-profile-hero-actions {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.ksupf-profile-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 32px;
    padding: 6px 12px;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 999px;
    background: rgba(255,255,255,.09);
    color: rgba(255,255,255,.88);
    font-size: 13px;
    font-weight: 750;
    white-space: nowrap;
}

.ksupf-profile-status > span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #69dc91;
    box-shadow: 0 0 0 4px rgba(105,220,145,.13);
}

/* Tlačítka profilu – stejné zaoblení a proporce jako šablona */
.ksupf-profile-wrap .button.ksupf-btn,
.ksupf-profile-wrap .ksupf-file-upload {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    margin: 0;
    padding: 11px 20px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: var(--ksupf-accent);
    color: #fff !important;
    box-shadow: 0 9px 22px rgba(233, 30, 99, .18);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.2;
    text-decoration: none !important;
    text-transform: none;
    transition: transform .16s ease, background .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.ksupf-profile-wrap .button.ksupf-btn:hover,
.ksupf-profile-wrap .button.ksupf-btn:focus,
.ksupf-profile-wrap .ksupf-file-upload:hover,
.ksupf-profile-wrap .ksupf-file-upload:focus {
    background: var(--ksupf-accent-dark);
    box-shadow: 0 12px 26px rgba(185, 20, 75, .24);
    transform: translateY(-1px);
}

.ksupf-profile-wrap .button.ksupf-btn-secondary {
    border-color: var(--ksupf-border);
    background: #fff;
    color: var(--ksupf-ink) !important;
    box-shadow: none;
}

.ksupf-profile-wrap .button.ksupf-btn-secondary:hover,
.ksupf-profile-wrap .button.ksupf-btn-secondary:focus {
    border-color: #d9c5d3;
    background: var(--ksupf-soft);
    color: var(--ksupf-accent-dark) !important;
    box-shadow: none;
}

.ksupf-profile-hero .button.ksupf-btn-secondary {
    border-color: rgba(255,255,255,.24);
    background: rgba(255,255,255,.10);
    color: #fff !important;
    backdrop-filter: blur(5px);
}

.ksupf-profile-hero .button.ksupf-btn-secondary:hover,
.ksupf-profile-hero .button.ksupf-btn-secondary:focus {
    border-color: rgba(255,255,255,.38);
    background: rgba(255,255,255,.18);
    color: #fff !important;
}

/* Záložky */
.ksupf-profile-wrap .ksupf-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0 0 28px;
    padding: 7px;
    border: 1px solid var(--ksupf-border);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(40, 18, 48, .07);
}

.ksupf-profile-wrap .ksupf-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 12px 18px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: var(--ksupf-muted-text);
    box-shadow: none;
    font-size: 15px;
    font-weight: 850;
    letter-spacing: 0;
    text-transform: none;
}

.ksupf-profile-wrap .ksupf-tab:hover,
.ksupf-profile-wrap .ksupf-tab:focus {
    background: var(--ksupf-soft);
    color: var(--ksupf-accent-dark);
}

.ksupf-profile-wrap .ksupf-tab.is-active {
    background: linear-gradient(135deg, var(--ksupf-accent), #f24f82);
    color: #fff;
    box-shadow: 0 10px 24px rgba(233,30,99,.22);
}

.ksupf-tab-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: rgba(233,30,99,.10);
    color: var(--ksupf-accent);
    font-size: 13px;
    line-height: 1;
}

.ksupf-tab.is-active .ksupf-tab-icon {
    background: rgba(255,255,255,.18);
    color: #fff;
}

.ksupf-tab-icon-account::before {
    content: "";
    position: absolute;
    top: 5px;
    width: 6px;
    height: 6px;
    border: 2px solid currentColor;
    border-radius: 50%;
}

.ksupf-tab-icon-account::after {
    content: "";
    position: absolute;
    bottom: 4px;
    width: 12px;
    height: 6px;
    border: 2px solid currentColor;
    border-bottom: 0;
    border-radius: 10px 10px 0 0;
}

/* Nadpis panelu */
.ksupf-panel-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    margin: 0 0 20px;
    padding: 0 4px;
}

.ksupf-panel-heading h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 900;
    line-height: 1.05;
}

.ksupf-panel-heading > p {
    max-width: 440px;
    margin: 0;
    color: var(--ksupf-muted-text);
    font-size: 14px;
    line-height: 1.55;
    text-align: right;
}

/* Karty nastavení */
.ksupf-account-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(310px, .65fr);
    gap: 20px;
    align-items: start;
}

.ksupf-account-card {
    min-width: 0;
    margin: 0;
    padding: clamp(22px, 3vw, 30px);
    border: 1px solid var(--ksupf-border);
    border-radius: var(--ksupf-card-radius);
    background: #fff;
    box-shadow: 0 14px 40px rgba(44, 21, 50, .07);
}

.ksupf-account-card-security {
    grid-column: 1 / -1;
}

.ksupf-card-heading {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--ksupf-border);
}

.ksupf-card-heading h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 900;
    line-height: 1.15;
}

.ksupf-card-heading p {
    margin: 5px 0 0;
    color: var(--ksupf-muted-text);
    font-size: 13px;
    line-height: 1.5;
}

.ksupf-card-icon {
    position: relative;
    display: inline-flex;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(233,30,99,.13), rgba(247,183,49,.18));
    color: var(--ksupf-accent-dark);
}

.ksupf-card-icon-heart {
    font-size: 18px;
}

.ksupf-card-icon-person::before {
    content: "";
    position: absolute;
    top: 8px;
    width: 8px;
    height: 8px;
    border: 2px solid currentColor;
    border-radius: 50%;
}

.ksupf-card-icon-person::after {
    content: "";
    position: absolute;
    bottom: 8px;
    width: 18px;
    height: 9px;
    border: 2px solid currentColor;
    border-bottom: 0;
    border-radius: 14px 14px 0 0;
}

.ksupf-card-icon-camera::before {
    content: "";
    position: absolute;
    width: 20px;
    height: 14px;
    border: 2px solid currentColor;
    border-radius: 4px;
}

.ksupf-card-icon-camera::after {
    content: "";
    position: absolute;
    width: 6px;
    height: 6px;
    border: 2px solid currentColor;
    border-radius: 50%;
    box-shadow: -6px -9px 0 -4px currentColor;
}

.ksupf-card-icon-lock::before {
    content: "";
    position: absolute;
    bottom: 8px;
    width: 18px;
    height: 14px;
    border: 2px solid currentColor;
    border-radius: 4px;
}

.ksupf-card-icon-lock::after {
    content: "";
    position: absolute;
    top: 7px;
    width: 11px;
    height: 11px;
    border: 2px solid currentColor;
    border-bottom: 0;
    border-radius: 10px 10px 0 0;
}

.ksupf-profile-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
}

.ksupf-profile-facts > div {
    min-width: 0;
    padding: 14px 16px;
    border: 1px solid #efe6ec;
    border-radius: 15px;
    background: #fffafd;
}

.ksupf-profile-facts dt {
    margin: 0 0 4px;
    color: var(--ksupf-muted-text);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .07em;
    line-height: 1.3;
    text-transform: uppercase;
}

.ksupf-profile-facts dd {
    overflow-wrap: anywhere;
    color: var(--ksupf-ink);
    font-size: 15px;
    font-weight: 750;
    line-height: 1.4;
}

.ksupf-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 20px;
}

/* Formulářová pole */
.ksupf-profile-wrap .ksupf-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.ksupf-profile-wrap .ksupf-form-grid-password {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ksupf-profile-wrap .ksupf-field-wide {
    grid-column: 1 / -1;
}

.ksupf-profile-wrap .ksupf-field {
    min-width: 0;
}

.ksupf-profile-wrap .ksupf-field label {
    display: block;
    margin: 0 0 7px;
    color: var(--ksupf-ink);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
}

.ksupf-profile-wrap .ksupf-profile-form input[type="text"],
.ksupf-profile-wrap .ksupf-profile-form input[type="email"],
.ksupf-profile-wrap .ksupf-profile-form input[type="password"] {
    width: 100%;
    max-width: none;
    min-height: 50px;
    margin: 0;
    padding: 11px 14px;
    border: 1px solid #dacbd5;
    border-radius: 14px;
    background: #fff;
    color: var(--ksupf-ink);
    box-shadow: inset 0 1px 1px rgba(37,18,42,.025);
    font: inherit;
    font-size: 15px;
    line-height: 1.3;
    transition: border-color .16s ease, box-shadow .16s ease;
}

.ksupf-profile-wrap .ksupf-profile-form input:focus {
    border-color: var(--ksupf-accent);
    outline: 0;
    box-shadow: 0 0 0 4px rgba(233,30,99,.10);
}

.ksupf-profile-wrap .ksupf-help {
    display: block;
    margin-top: 7px;
    color: var(--ksupf-muted-text);
    font-size: 12px;
    line-height: 1.45;
}

.ksupf-password-fields {
    margin: 0 0 20px !important;
    padding: 20px;
    border: 1px solid #eee3ea;
    border-radius: 18px;
    background: var(--ksupf-soft);
}

/* Profilový obrázek */
.ksupf-picture-container {
    margin-top: 0;
}

.ksupf-picture-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.ksupf-picture-preview {
    display: grid;
    width: 112px;
    height: 112px;
    flex: 0 0 112px;
    place-items: center;
    overflow: hidden;
    border: 5px solid #fff;
    border-radius: 50%;
    background: var(--ksupf-soft);
    box-shadow: 0 0 0 1px var(--ksupf-border), 0 12px 26px rgba(48,22,57,.12);
}

.ksupf-picture-preview img,
.ksupf-picture-preview .ksupf-avatar-badge {
    width: 100% !important;
    height: 100% !important;
    margin: 0;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: none;
}

.ksupf-picture-preview img {
    display: block;
}

.ksupf-picture-preview .ksupf-avatar-badge {
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 0;
    text-align: center;
}

.ksupf-picture-controls {
    min-width: 0;
    flex: 1 1 auto;
}

.ksupf-upload-progress {
    max-width: none;
    margin: 0 0 10px;
    background: #f1e7ed;
}

.ksupf-upload-message:empty {
    display: none;
}

.ksupf-upload-message .ksupf-success,
.ksupf-upload-message .ksupf-error {
    display: block;
    margin: 0 0 10px;
    font-size: 12px;
}

/* Zprávy */
.ksupf-profile-wrap .ksupf-message {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    padding: 15px 18px;
    border: 1px solid #bfe3c8;
    border-left: 1px solid #bfe3c8;
    border-radius: 16px;
    background: #f2fcf5;
    box-shadow: 0 8px 24px rgba(25,102,48,.07);
    color: #145c28;
    font-size: 14px;
}

.ksupf-profile-wrap .ksupf-message::before {
    display: inline-grid;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    place-items: center;
    margin: 0;
    border-radius: 50%;
    background: #d9f3df;
}

.ksupf-profile-wrap .ksupf-error-message {
    border-color: #efc6cf;
    background: #fff5f7;
    box-shadow: 0 8px 24px rgba(157,29,29,.06);
    color: #8b1730;
}

.ksupf-profile-wrap .ksupf-error-message::before {
    background: #f9dce2;
}

/* Vložené výstupy minutové výzvy uvnitř záložky profilu */
.ksupf-profile-content-stack {
    display: grid;
    gap: 22px;
}

.ksupf-profile-content-stack .ksupf-custom-content {
    display: grid;
    gap: 22px;
    margin: 0;
}

.ksupf-profile-content-stack .ksupf-custom-content > p:empty {
    display: none;
}

.ksupf-profile-content-stack .ksupf-custom-content > p {
    max-width: none;
    margin: 0;
}

.ksupf-profile-content-stack .kskm {
    --kskm-primary: var(--ksupf-accent);
    --kskm-primary-dark: var(--ksupf-accent-dark);
    --kskm-border: var(--ksupf-border);
    --kskm-muted: var(--ksupf-muted-text);
    width: 100%;
    max-width: none;
    margin: 0;
    color: var(--ksupf-ink) !important;
}

.ksupf-profile-content-stack .kskm + .kskm {
    margin-top: 0;
}

.ksupf-profile-content-stack .kskm-box,
.ksupf-profile-content-stack .kskm-hero,
.ksupf-profile-content-stack .kskm-stat,
.ksupf-profile-content-stack .kskm-ranking-panel,
.ksupf-profile-content-stack .kskm-team-panel,
.ksupf-profile-content-stack .kskm-entry-card,
.ksupf-profile-content-stack .kskm-mini-card,
.ksupf-profile-content-stack .kskm-member-card,
.ksupf-profile-content-stack .kskm-payment-option,
.ksupf-profile-content-stack .kskm-payment-step {
    border-color: var(--ksupf-border);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 14px 40px rgba(44,21,50,.065);
}

.ksupf-profile-content-stack .kskm-box,
.ksupf-profile-content-stack .kskm-hero {
    padding: clamp(22px, 3vw, 30px);
    margin-bottom: 20px;
}

.ksupf-profile-content-stack .kskm-box:last-child,
.ksupf-profile-content-stack .kskm-hero:last-child {
    margin-bottom: 0;
}

.ksupf-profile-content-stack .kskm h2,
.ksupf-profile-content-stack .kskm h3,
.ksupf-profile-content-stack .kskm h4 {
    color: var(--ksupf-ink) !important;
    letter-spacing: -.025em;
    text-transform: none;
}

.ksupf-profile-content-stack .kskm-box h3,
.ksupf-profile-content-stack .kskm-hero h2 {
    margin-bottom: 18px;
    font-size: clamp(22px, 3vw, 28px);
    font-weight: 900;
    line-height: 1.15;
}

.ksupf-profile-content-stack .kskm-stats-grid {
    gap: 12px;
    margin: 0 0 20px;
}

.ksupf-profile-content-stack .kskm-stat {
    min-height: 116px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 18px;
    background: linear-gradient(180deg, #fff, #fff9fc);
    box-shadow: 0 10px 28px rgba(44,21,50,.055);
}

.ksupf-profile-content-stack .kskm-stat strong {
    font-size: clamp(26px, 4vw, 38px);
    font-weight: 900;
    letter-spacing: -.04em;
}

.ksupf-profile-content-stack .kskm-stat span {
    margin-top: 6px;
    font-size: 12px;
    font-weight: 750;
}

.ksupf-profile-content-stack .kskm-button,
.ksupf-profile-content-stack .kskm input[type="submit"],
.ksupf-profile-content-stack .kskm .kskm-team-file-upload {
    min-height: 44px;
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--ksupf-accent);
    box-shadow: 0 8px 20px rgba(233,30,99,.16);
    font-size: 14px;
    font-weight: 800;
    text-transform: none;
}

.ksupf-profile-content-stack .kskm-button-secondary {
    border: 1px solid var(--ksupf-border) !important;
    background: #fff !important;
    color: var(--ksupf-accent-dark) !important;
    box-shadow: none;
}

.ksupf-profile-content-stack .kskm input:not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]),
.ksupf-profile-content-stack .kskm select,
.ksupf-profile-content-stack .kskm textarea {
    min-height: 48px;
    border-color: #dacbd5;
    border-radius: 14px;
    background: #fff !important;
    box-shadow: none;
    font-size: 15px;
}

.ksupf-profile-content-stack .kskm textarea {
    min-height: 110px;
}

.ksupf-profile-content-stack .kskm input:focus,
.ksupf-profile-content-stack .kskm select:focus,
.ksupf-profile-content-stack .kskm textarea:focus {
    border-color: var(--ksupf-accent);
    outline: 0;
    box-shadow: 0 0 0 4px rgba(233,30,99,.10);
}

.ksupf-profile-content-stack .kskm-entry-card {
    padding: 16px;
}

.ksupf-profile-content-stack .kskm-entry-date {
    background: var(--ksupf-soft-purple);
    color: #6a2f9c !important;
}

.ksupf-profile-content-stack .kskm-payment-step,
.ksupf-profile-content-stack .kskm-payment-amount-selector,
.ksupf-profile-content-stack .kskm-copy-card,
.ksupf-profile-content-stack .kskm-invite-email-form {
    border-color: var(--ksupf-border);
    background: var(--ksupf-soft);
}

.ksupf-profile-content-stack .kskm-account-hero {
    padding: 26px;
    border: 1px solid var(--ksupf-border);
    border-radius: 24px;
    background:
        radial-gradient(circle at 90% 10%, rgba(247,183,49,.18), transparent 25%),
        linear-gradient(135deg, #fff, #fff7fa);
    box-shadow: 0 14px 40px rgba(44,21,50,.065);
}

/* Prázdný stav */
.ksupf-empty-content .ksupf-card-heading {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
}

/* Responzivita */
@media (max-width: 900px) {
    .ksupf-profile-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .ksupf-profile-hero-actions {
        width: 100%;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .ksupf-account-layout {
        grid-template-columns: 1fr;
    }

    .ksupf-account-card-security {
        grid-column: auto;
    }

    .ksupf-profile-wrap .ksupf-form-grid-password {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .ksupf-profile-wrap {
        width: 100%;
        font-size: 15px;
    }

    .ksupf-profile-hero {
        padding: 24px 20px;
        border-radius: 24px;
    }

    .ksupf-profile-hero-main {
        align-items: flex-start;
    }

    .ksupf-profile-hero .ksupf-topbar-avatar {
        width: 62px !important;
        height: 62px !important;
        font-size: 18px;
    }

    .ksupf-profile-hero h2 {
        font-size: 28px;
    }

    .ksupf-profile-wrap .ksupf-tabs {
        grid-template-columns: 1fr;
        border-radius: 18px;
    }

    .ksupf-panel-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .ksupf-panel-heading > p {
        max-width: none;
        text-align: left;
    }

    .ksupf-account-card {
        padding: 20px;
        border-radius: 20px;
    }

    .ksupf-profile-facts,
    .ksupf-profile-wrap .ksupf-form-grid {
        grid-template-columns: 1fr;
    }

    .ksupf-profile-wrap .ksupf-field-wide {
        grid-column: auto;
    }

    .ksupf-picture-content {
        align-items: flex-start;
        flex-direction: column;
    }

    .ksupf-picture-controls,
    .ksupf-card-actions,
    .ksupf-card-actions .button.ksupf-btn,
    .ksupf-card-actions .ksupf-file-upload {
        width: 100%;
    }

    .ksupf-profile-content-stack .kskm-stats-grid,
    .ksupf-profile-content-stack .kskm-stats-grid-compact {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .ksupf-profile-hero-main {
        flex-direction: column;
    }

    .ksupf-profile-hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .ksupf-profile-status,
    .ksupf-profile-hero .ksupf-logout-top-button {
        width: 100%;
        justify-content: center;
    }

    .ksupf-card-heading {
        gap: 11px;
    }

    .ksupf-card-icon {
        width: 38px;
        height: 38px;
    }
}

/* Profilová stránka má záměrně čisté bílé pozadí i v tmavší child theme. */
body.ksupf-profile-page,
body.ksupf-profile-page .post-inner,
body.ksupf-profile-page #site-content,
body.ksupf-profile-page .entry-content {
    background-color: #fff !important;
}

body.ksupf-profile-page .post-inner {
    background-image: none !important;
}

body.ksupf-profile-page .entry-content > .ksupf-profile-wrap,
body.ksupf-profile-page .entry-content .ksupf-profile-wrap {
    width: min(1180px, calc(100vw - 48px)) !important;
    max-width: 1180px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

@media (max-width: 700px) {
    body.ksupf-profile-page .entry-content > .ksupf-profile-wrap,
    body.ksupf-profile-page .entry-content .ksupf-profile-wrap {
        width: calc(100% - 28px) !important;
    }
}

/* Přesné rozměry nadpisů proti obecným pravidlům Twenty Twenty. */
body.ksupf-profile-page .entry-content .ksupf-profile-hero h2 {
    font-size: clamp(28px, 4vw, 42px) !important;
    line-height: 1.05 !important;
}

body.ksupf-profile-page .entry-content .ksupf-panel-heading h2 {
    font-size: clamp(28px, 4vw, 40px) !important;
    line-height: 1.05 !important;
}

body.ksupf-profile-page .entry-content .ksupf-card-heading h3 {
    font-size: 22px !important;
    line-height: 1.15 !important;
}

body.ksupf-profile-page .entry-content .ksupf-profile-content-stack .kskm-box h3,
body.ksupf-profile-page .entry-content .ksupf-profile-content-stack .kskm-hero h2 {
    font-size: clamp(22px, 3vw, 28px) !important;
    line-height: 1.15 !important;
}

@media (max-width: 700px) {
    body.ksupf-profile-page .entry-content .ksupf-profile-hero h2 {
        font-size: 28px !important;
    }
}

/* ========================================================================
 * v1.7.1 – doladění vložených shortcode bloků v profilu
 * ====================================================================== */

/* Globální styl tlačítek šablony nesmí přebarvit neaktivní záložku. */
.ksupf-profile-wrap .ksupf-tab {
    border: 0 !important;
    background: #fff !important;
    color: #514758 !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

.ksupf-profile-wrap .ksupf-tab:hover,
.ksupf-profile-wrap .ksupf-tab:focus {
    background: #fff3f7 !important;
    color: var(--ksupf-accent-dark) !important;
}

.ksupf-profile-wrap .ksupf-tab.is-active {
    background: linear-gradient(135deg, var(--ksupf-accent), #f24f82) !important;
    color: #fff !important;
    box-shadow: 0 10px 24px rgba(233, 30, 99, .22) !important;
}

/* Kontrast a konzistentní podoba ovládacích prvků KSKM. */
.ksupf-profile-content-stack .kskm .kskm-button,
.ksupf-profile-content-stack .kskm input[type="submit"],
.ksupf-profile-content-stack .kskm .kskm-team-file-upload {
    border: 1px solid transparent !important;
    background: var(--ksupf-accent) !important;
    color: #fff !important;
    text-shadow: none !important;
}

.ksupf-profile-content-stack .kskm .kskm-button:hover,
.ksupf-profile-content-stack .kskm .kskm-button:focus,
.ksupf-profile-content-stack .kskm input[type="submit"]:hover,
.ksupf-profile-content-stack .kskm input[type="submit"]:focus,
.ksupf-profile-content-stack .kskm .kskm-team-file-upload:hover,
.ksupf-profile-content-stack .kskm .kskm-team-file-upload:focus {
    background: var(--ksupf-accent-dark) !important;
    color: #fff !important;
}

.ksupf-profile-content-stack .kskm .kskm-button-secondary {
    border-color: #d9c8d3 !important;
    background: #fff !important;
    color: var(--ksupf-accent-dark) !important;
}

.ksupf-profile-content-stack .kskm .kskm-mini-button {
    border: 1px solid #dfd4dc !important;
    background: #f7f3f6 !important;
    color: #493d45 !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

.ksupf-profile-content-stack .kskm .kskm-mini-button:hover,
.ksupf-profile-content-stack .kskm .kskm-mini-button:focus {
    border-color: #ccb7c5 !important;
    background: #efe7ec !important;
    color: #24182f !important;
}

.ksupf-profile-content-stack .kskm .kskm-edit-entry {
    border-color: #efb4c8 !important;
    background: #fff3f7 !important;
    color: var(--ksupf-accent-dark) !important;
}

.ksupf-profile-content-stack .kskm .kskm-mini-button-danger,
.ksupf-profile-content-stack .kskm .kskm-team-delete-image {
    border-color: #edc5cb !important;
    background: #fff !important;
    color: #9b2438 !important;
}

.ksupf-profile-content-stack .kskm .kskm-mini-button-danger:hover,
.ksupf-profile-content-stack .kskm .kskm-mini-button-danger:focus,
.ksupf-profile-content-stack .kskm .kskm-team-delete-image:hover,
.ksupf-profile-content-stack .kskm .kskm-team-delete-image:focus {
    border-color: #d994a0 !important;
    background: #fff2f4 !important;
    color: #771527 !important;
}

.ksupf-profile-content-stack .kskm .kskm-badge,
.ksupf-profile-content-stack .kskm .kskm-badge-danger,
.ksupf-profile-content-stack .kskm .kskm-badge-warning {
    margin: 0 !important;
    border: 1px solid #ddd3da;
    background: #f4f1f3;
    color: #554950 !important;
    font-weight: 800;
}

.ksupf-profile-content-stack .kskm .kskm-badge-warning {
    border-color: #efd59c;
    background: #fff7e7;
    color: #805100 !important;
}

.ksupf-profile-content-stack .kskm .kskm-badge-danger {
    border-color: #edc5cb;
    background: #fff2f4;
    color: #8c2033 !important;
}

/* Statistické karty shortcodu kskm_my_km vyplní celou dostupnou šířku. */
.ksupf-profile-content-stack .kskm-my-km > .kskm-stats-grid,
.ksupf-profile-content-stack .kskm-my-km > .kskm-stats-grid-compact,
.ksupf-profile-content-stack .kskm-team > .kskm-box > .kskm-stats-grid {
    width: 100% !important;
    max-width: none !important;
    justify-items: stretch;
    align-items: stretch;
}

.ksupf-profile-content-stack .kskm-my-km > .kskm-stats-grid-compact {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.ksupf-profile-content-stack .kskm .kskm-stat {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    justify-self: stretch;
}

/* Checkbox v nastavení účastníka nesmí dědit výšku textových polí. */
.ksupf-profile-content-stack .kskm .kskm-checkbox-line {
    margin: 14px 0 10px;
}

.ksupf-profile-content-stack .kskm .kskm-checkbox-line label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: auto;
    max-width: 760px;
    margin: 0;
    line-height: 1.45;
}

.ksupf-profile-content-stack .kskm input[type="checkbox"],
.ksupf-profile-content-stack .kskm input[type="radio"] {
    width: 20px !important;
    min-width: 20px !important;
    max-width: 20px !important;
    height: 20px !important;
    min-height: 20px !important;
    max-height: 20px !important;
    flex: 0 0 20px;
    margin: .1em 0 0 !important;
    padding: 0 !important;
    border-radius: 5px;
    box-shadow: none !important;
    accent-color: var(--ksupf-accent);
}

.ksupf-profile-content-stack .kskm input[type="checkbox"]:focus,
.ksupf-profile-content-stack .kskm input[type="radio"]:focus {
    outline: 2px solid rgba(233, 30, 99, .22);
    outline-offset: 2px;
    box-shadow: none !important;
}

/* Stav platby zůstane u popisku vlevo a nebude opticky plavat uprostřed. */
.ksupf-profile-content-stack .kskm-payment-status-row {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 9px !important;
    width: 100%;
    margin: 0 0 14px !important;
    text-align: left !important;
}

.ksupf-profile-content-stack .kskm-payment-status-row > * {
    flex: 0 0 auto;
    margin: 0 !important;
}

/* Moje zápisy – plná šířka, klidnější barevnost a čitelnější hierarchie. */
.ksupf-profile-content-stack .kskm-entry-list {
    display: grid;
    width: 100% !important;
    max-width: none !important;
    gap: 10px;
}

.ksupf-profile-content-stack .kskm-entry-card {
    grid-template-columns: 82px minmax(0, 1fr) auto;
    grid-template-areas:
        "date main actions"
        "date status actions";
    column-gap: 16px;
    row-gap: 7px;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 15px 16px;
    border: 1px solid var(--ksupf-border) !important;
    background: #fff !important;
    box-shadow: 0 7px 18px rgba(44, 21, 50, .045) !important;
}

.ksupf-profile-content-stack .kskm-entry-card.is-suspicious {
    border-color: #e7c77f !important;
    background: #fffdf8 !important;
}

.ksupf-profile-content-stack .kskm-entry-date {
    grid-area: date;
    width: 82px;
    min-height: 68px;
    padding: 10px 8px;
    border: 1px solid #e6dce3;
    border-radius: 14px;
    background: #f7f3f6 !important;
    color: var(--ksupf-accent-dark) !important;
}

.ksupf-profile-content-stack .kskm-entry-date span {
    color: #796d75 !important;
}

.ksupf-profile-content-stack .kskm-entry-main {
    grid-area: main;
    align-self: end;
}

.ksupf-profile-content-stack .kskm-entry-km {
    color: var(--ksupf-accent-dark) !important;
}

.ksupf-profile-content-stack .kskm-entry-note {
    margin-top: 5px;
    color: #5f555c !important;
}

.ksupf-profile-content-stack .kskm-entry-status {
    grid-area: status;
    align-self: start;
    white-space: normal;
}

.ksupf-profile-content-stack .kskm-entry-actions {
    grid-area: actions;
    align-self: center;
    justify-content: flex-end;
    min-width: max-content;
}

.ksupf-profile-content-stack .kskm-entry-actions .kskm-help {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    color: #766b72 !important;
}

/* Správa týmu – souvislý header, plné karty a přehlednější dva sloupce. */
.ksupf-profile-content-stack .kskm-team > .kskm-box {
    overflow: hidden;
}

.ksupf-profile-content-stack .kskm-team-manage-header {
    display: grid !important;
    grid-template-columns: 170px minmax(0, 1fr);
    align-items: center !important;
    gap: 24px;
    margin: -2px 0 22px;
    padding: 0 0 22px;
    border-bottom: 1px solid var(--ksupf-border);
}

.ksupf-profile-content-stack .kskm-team-image-inline {
    width: 170px !important;
    max-width: 170px !important;
}

.ksupf-profile-content-stack .kskm-team-image-form-inline {
    width: 100%;
}

.ksupf-profile-content-stack .kskm-team-image-form-inline .kskm-team-picture-preview-small,
.ksupf-profile-content-stack .kskm-team-image-form-inline .kskm-team-picture-preview-small .kskm-team-avatar,
.ksupf-profile-content-stack .kskm-team-image-form-inline .kskm-team-picture-preview-small img.kskm-team-avatar,
.ksupf-profile-content-stack .kskm-team-image-form-inline .kskm-team-picture-preview-small .kskm-team-icon {
    width: 88px !important;
    height: 88px !important;
    max-width: 88px !important;
}

.ksupf-profile-content-stack .kskm-team-image-actions {
    width: 100%;
    max-width: 150px;
    margin: 10px auto 0;
}

.ksupf-profile-content-stack .kskm-team-image-form-inline .kskm-team-file-upload,
.ksupf-profile-content-stack .kskm-team-image-form-inline .kskm-team-delete-image,
.ksupf-profile-content-stack .kskm-team-image-form-inline .kskm-team-image-fallback {
    width: 100% !important;
    max-width: none !important;
    min-height: 36px;
    padding: 8px 11px !important;
    font-size: 12px !important;
}

.ksupf-profile-content-stack .kskm-team-title-meta {
    align-self: center;
}

.ksupf-profile-content-stack .kskm-team-title-meta h3 {
    margin: 0 0 7px !important;
    font-size: clamp(26px, 3vw, 34px) !important;
}

.ksupf-profile-content-stack .kskm-team-title-meta .kskm-help {
    max-width: 580px;
    margin: 0;
}

.ksupf-profile-content-stack .kskm-team > .kskm-box > .kskm-stats-grid-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    margin: 0 0 20px;
}

.ksupf-profile-content-stack .kskm-team-sections {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    align-items: start;
    gap: 16px;
    margin-top: 0;
}

.ksupf-profile-content-stack .kskm-team-panel {
    width: 100% !important;
    min-width: 0;
    max-width: none !important;
    padding: 20px;
    background: #fff !important;
    box-shadow: none !important;
}

.ksupf-profile-content-stack .kskm-team-panel-header {
    margin-bottom: 15px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--ksupf-border);
}

.ksupf-profile-content-stack .kskm-member-cards,
.ksupf-profile-content-stack .kskm-member-cards-manage {
    width: 100%;
    max-width: none !important;
    grid-template-columns: 1fr !important;
}

.ksupf-profile-content-stack .kskm-member-cards-manage .kskm-member-card {
    width: 100% !important;
    min-width: 0;
    max-width: none !important;
    margin: 0 !important;
    padding: 12px;
    border: 1px solid #e5dce2 !important;
    border-radius: 14px;
    background: #fff !important;
}

.ksupf-profile-content-stack .kskm-member-main small {
    overflow-wrap: anywhere;
}

.ksupf-profile-content-stack .kskm-member-actions {
    min-width: max-content;
}

.ksupf-profile-content-stack .kskm-invite-email-form,
.ksupf-profile-content-stack .kskm-copy-card {
    width: 100%;
    max-width: none !important;
}

.ksupf-profile-content-stack .kskm-invite-row {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
}

.ksupf-profile-content-stack .kskm-invite-row .kskm-button {
    width: max-content;
    max-width: 100%;
}

.ksupf-profile-content-stack .kskm-copy-card {
    margin-top: 14px;
    padding: 16px;
    border-color: #ead9e3;
    background: #fff7fa !important;
}

.ksupf-profile-content-stack .kskm-copy-button {
    border-color: #e4c8d6;
    background: #fff;
    color: var(--ksupf-accent-dark);
}

.ksupf-profile-content-stack .kskm-copy-button:hover,
.ksupf-profile-content-stack .kskm-copy-button:focus,
.ksupf-profile-content-stack .kskm-copy-button.is-copied {
    border-color: #d99bb6;
    background: #ffeaf2;
    color: #7f153d;
}

/* Souhrn Moje výzva v profilu je méně křiklavý a navazuje na bílé karty. */
.ksupf-profile-content-stack .kskm-my-challenge .kskm-purple-grid,
.ksupf-profile-content-stack .kskm-my-km .kskm-purple-grid {
    width: 100% !important;
    max-width: none !important;
    gap: 12px;
}

.ksupf-profile-content-stack .kskm-my-challenge .kskm-purple-card,
.ksupf-profile-content-stack .kskm-my-km .kskm-purple-card {
    width: 100% !important;
    min-width: 0;
    max-width: none !important;
    border: 1px solid var(--ksupf-border);
    background:
        radial-gradient(circle at 100% 100%, rgba(233, 30, 99, .11), transparent 38%),
        linear-gradient(180deg, #fff, #fff8fb) !important;
    color: var(--ksupf-ink) !important;
    box-shadow: 0 9px 24px rgba(44, 21, 50, .055);
}

.ksupf-profile-content-stack .kskm-my-challenge .kskm-purple-card strong,
.ksupf-profile-content-stack .kskm-my-km .kskm-purple-card strong {
    color: var(--ksupf-accent-dark) !important;
}

.ksupf-profile-content-stack .kskm-my-challenge .kskm-purple-card span,
.ksupf-profile-content-stack .kskm-my-km .kskm-purple-card span {
    color: #6f646b !important;
}

@media (max-width: 820px) {
    .ksupf-profile-content-stack .kskm-entry-card {
        grid-template-columns: 74px minmax(0, 1fr);
        grid-template-areas:
            "date main"
            "date status"
            "actions actions";
    }

    .ksupf-profile-content-stack .kskm-entry-date {
        width: 74px;
    }

    .ksupf-profile-content-stack .kskm-entry-actions {
        justify-content: flex-start;
        min-width: 0;
        padding-top: 3px;
    }

    .ksupf-profile-content-stack .kskm-team-sections {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 700px) {
    .ksupf-profile-content-stack .kskm-my-km > .kskm-stats-grid-compact,
    .ksupf-profile-content-stack .kskm-team > .kskm-box > .kskm-stats-grid-compact {
        grid-template-columns: 1fr !important;
    }

    .ksupf-profile-content-stack .kskm-team-manage-header {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .ksupf-profile-content-stack .kskm-team-image-inline {
        width: 100% !important;
        max-width: none !important;
    }

    .ksupf-profile-content-stack .kskm-team-image-form-inline {
        text-align: left;
    }

    .ksupf-profile-content-stack .kskm-team-image-form-inline .kskm-team-picture-preview-small,
    .ksupf-profile-content-stack .kskm-team-image-actions {
        margin-left: 0;
        margin-right: 0;
    }
}

@media (max-width: 520px) {
    .ksupf-profile-content-stack .kskm-entry-card {
        grid-template-columns: 1fr;
        grid-template-areas:
            "date"
            "main"
            "status"
            "actions";
    }

    .ksupf-profile-content-stack .kskm-entry-date {
        width: 100%;
        min-height: 0;
        align-items: flex-start;
        text-align: left;
    }

    .ksupf-profile-content-stack .kskm-entry-actions,
    .ksupf-profile-content-stack .kskm-entry-actions .kskm-mini-button,
    .ksupf-profile-content-stack .kskm-entry-actions .kskm-inline-delete-form {
        width: 100%;
    }

    .ksupf-profile-content-stack .kskm-entry-actions .kskm-mini-button {
        justify-content: center;
    }

    .ksupf-profile-content-stack .kskm-member-card {
        grid-template-columns: auto minmax(0, 1fr) !important;
    }

    .ksupf-profile-content-stack .kskm-member-actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
        min-width: 0;
    }
}



/* ========================================================================
 * v1.7.2 – přesné zarovnání zápisů a týmových karet
 * ====================================================================== */

/* Moje zápisy: jeden čitelný řádek s pevnými sloupci. */
.ksupf-profile-content-stack .kskm-entry-card {
    display: grid !important;
    grid-template-columns: 82px minmax(0, 1fr) auto auto !important;
    grid-template-areas: "date main status actions" !important;
    align-items: center !important;
    column-gap: 18px !important;
    row-gap: 0 !important;
}

.ksupf-profile-content-stack .kskm-entry-main {
    grid-area: main;
    display: grid !important;
    grid-template-columns: minmax(92px, 112px) minmax(0, 1fr);
    align-items: center;
    gap: 18px;
    min-width: 0;
    text-align: left !important;
}

.ksupf-profile-content-stack .kskm-entry-km {
    justify-self: start;
    margin: 0 !important;
    text-align: left !important;
}

.ksupf-profile-content-stack .kskm-entry-note {
    min-width: 0;
    margin: 0 !important;
    text-align: left !important;
    overflow-wrap: anywhere;
}

.ksupf-profile-content-stack .kskm-entry-status {
    grid-area: status;
    align-self: center;
    justify-self: start;
    min-width: 82px;
    margin: 0 !important;
    text-align: left !important;
}

.ksupf-profile-content-stack .kskm-entry-actions {
    grid-area: actions;
    align-self: center;
    justify-self: end;
    justify-content: flex-end !important;
    min-width: 122px;
    margin: 0 !important;
}

.ksupf-profile-content-stack .kskm-entry-actions > *,
.ksupf-profile-content-stack .kskm-entry-actions form,
.ksupf-profile-content-stack .kskm-entry-actions button,
.ksupf-profile-content-stack .kskm-entry-actions .kskm-help {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.ksupf-profile-content-stack .kskm-entry-actions .kskm-help {
    white-space: nowrap;
}

/* E-mailová pozvánka a pozvánkový odkaz používají totožnou kartu. */
.ksupf-profile-content-stack .kskm-invite-email-form,
.ksupf-profile-content-stack .kskm-copy-card {
    width: 100%;
    max-width: none !important;
    margin: 0 !important;
    padding: 16px !important;
    border: 1px solid #ead9e3 !important;
    border-radius: 14px !important;
    background: #fff7fa !important;
    box-shadow: none !important;
}

.ksupf-profile-content-stack .kskm-copy-card {
    margin-top: 12px !important;
}

.ksupf-profile-content-stack .kskm-invite-row {
    display: block !important;
}

.ksupf-profile-content-stack .kskm-invite-row label,
.ksupf-profile-content-stack .kskm-copy-card > label {
    display: block;
    margin: 0 !important;
    color: var(--ksupf-ink) !important;
    font-weight: 800;
    line-height: 1.35;
}

.ksupf-profile-content-stack .kskm-invite-row input,
.ksupf-profile-content-stack .kskm-copy-card .kskm-copy-input {
    width: 100% !important;
    max-width: none !important;
    margin-top: 8px !important;
}

.ksupf-profile-content-stack .kskm-invite-row .kskm-button {
    width: 100% !important;
    max-width: none !important;
    margin: 12px 0 0 !important;
    text-align: center;
}

/* Členové týmu: avatar, údaje a akce mají stabilní sloupce a osu. */
.ksupf-profile-content-stack .kskm-member-cards-manage .kskm-member-card {
    display: grid !important;
    grid-template-columns: 48px minmax(0, 1fr) auto !important;
    grid-template-areas: "avatar member actions" !important;
    align-items: center !important;
    gap: 12px !important;
    min-height: 76px;
    padding: 12px 14px !important;
    text-align: left !important;
}

.ksupf-profile-content-stack .kskm-member-avatar {
    grid-area: avatar;
    width: 48px;
    min-width: 48px;
    align-self: center;
}

.ksupf-profile-content-stack .kskm-member-main {
    grid-area: member;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-width: 0;
    text-align: left !important;
}

.ksupf-profile-content-stack .kskm-member-main strong,
.ksupf-profile-content-stack .kskm-member-main small {
    display: block;
    width: 100%;
    margin: 0 !important;
    text-align: left !important;
}

.ksupf-profile-content-stack .kskm-member-main strong {
    line-height: 1.25;
}

.ksupf-profile-content-stack .kskm-member-main small {
    margin-top: 4px !important;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.ksupf-profile-content-stack .kskm-member-actions {
    grid-area: actions;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    min-width: max-content;
    margin: 0 !important;
}

.ksupf-profile-content-stack .kskm-member-actions > *,
.ksupf-profile-content-stack .kskm-member-actions form,
.ksupf-profile-content-stack .kskm-member-actions button,
.ksupf-profile-content-stack .kskm-member-actions .kskm-badge {
    margin: 0 !important;
}

@media (max-width: 900px) {
    .ksupf-profile-content-stack .kskm-entry-card {
        grid-template-columns: 76px minmax(0, 1fr) auto !important;
        grid-template-areas:
            "date main actions"
            "date status actions" !important;
        row-gap: 7px !important;
    }

    .ksupf-profile-content-stack .kskm-entry-main {
        grid-template-columns: minmax(86px, 105px) minmax(0, 1fr);
    }

    .ksupf-profile-content-stack .kskm-entry-status {
        min-width: 0;
    }
}

@media (max-width: 620px) {
    .ksupf-profile-content-stack .kskm-entry-card {
        grid-template-columns: 70px minmax(0, 1fr) !important;
        grid-template-areas:
            "date main"
            "date status"
            "actions actions" !important;
    }

    .ksupf-profile-content-stack .kskm-entry-main {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .ksupf-profile-content-stack .kskm-entry-actions {
        width: 100%;
        min-width: 0;
        justify-self: stretch;
        justify-content: flex-start !important;
        padding-top: 4px;
    }

    .ksupf-profile-content-stack .kskm-member-cards-manage .kskm-member-card {
        grid-template-columns: 44px minmax(0, 1fr) !important;
        grid-template-areas:
            "avatar member"
            "avatar actions" !important;
        align-items: start !important;
    }

    .ksupf-profile-content-stack .kskm-member-avatar {
        width: 44px;
        min-width: 44px;
    }

    .ksupf-profile-content-stack .kskm-member-avatar .avatar,
    .ksupf-profile-content-stack .kskm-member-avatar img {
        width: 44px !important;
        height: 44px !important;
    }

    .ksupf-profile-content-stack .kskm-member-actions {
        justify-content: flex-start !important;
        min-width: 0;
        margin-top: 7px !important;
    }
}

@media (max-width: 440px) {
    .ksupf-profile-content-stack .kskm-entry-card {
        grid-template-columns: 1fr !important;
        grid-template-areas:
            "date"
            "main"
            "status"
            "actions" !important;
    }

    .ksupf-profile-content-stack .kskm-entry-date {
        width: 100% !important;
    }

    .ksupf-profile-content-stack .kskm-entry-actions,
    .ksupf-profile-content-stack .kskm-entry-actions .kskm-inline-delete-form,
    .ksupf-profile-content-stack .kskm-entry-actions .kskm-mini-button {
        width: 100%;
    }

    .ksupf-profile-content-stack .kskm-entry-actions .kskm-mini-button {
        justify-content: center;
    }
}

/* ========================================================================
 * v1.7.3 – tabulkové zarovnání zápisů a členů týmu
 * ====================================================================== */

/*
 * Moje zápisy: prvky uvnitř .kskm-entry-main jsou přes display: contents
 * zapojeny přímo do mřížky karty. Každý údaj tak drží stejný sloupec bez
 * ohledu na délku poznámky nebo přítomnost tlačítek.
 */
.ksupf-profile-content-stack .kskm-entry-card {
    display: grid !important;
    grid-template-columns: 82px 110px minmax(180px, 1fr) 118px 168px !important;
    grid-template-areas: none !important;
    align-items: center !important;
    column-gap: 18px !important;
    row-gap: 0 !important;
    min-height: 92px;
    padding: 14px 16px !important;
}

.ksupf-profile-content-stack .kskm-entry-date {
    grid-area: auto !important;
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    justify-self: start;
    width: 82px !important;
    margin: 0 !important;
}

.ksupf-profile-content-stack .kskm-entry-main {
    display: contents !important;
    grid-area: auto !important;
}

.ksupf-profile-content-stack .kskm-entry-km {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    justify-self: start;
    width: 100%;
    margin: 0 !important;
    text-align: left !important;
}

.ksupf-profile-content-stack .kskm-entry-note {
    grid-column: 3;
    grid-row: 1;
    align-self: center;
    justify-self: stretch;
    min-width: 0;
    width: 100%;
    margin: 0 !important;
    text-align: left !important;
    overflow-wrap: anywhere;
}

.ksupf-profile-content-stack .kskm-entry-status {
    grid-area: auto !important;
    grid-column: 4;
    grid-row: 1;
    align-self: center;
    justify-self: start;
    min-width: 0 !important;
    width: 100%;
    margin: 0 !important;
    text-align: left !important;
}

.ksupf-profile-content-stack .kskm-entry-actions {
    grid-area: auto !important;
    grid-column: 5;
    grid-row: 1;
    align-self: center;
    justify-self: stretch;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    justify-content: stretch !important;
    gap: 8px !important;
    width: 168px;
    min-width: 0 !important;
    margin: 0 !important;
}

.ksupf-profile-content-stack .kskm-entry-actions .kskm-inline-delete-form,
.ksupf-profile-content-stack .kskm-entry-actions .kskm-mini-button {
    width: 100%;
    min-width: 0;
    margin: 0 !important;
}

.ksupf-profile-content-stack .kskm-entry-actions .kskm-mini-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.ksupf-profile-content-stack .kskm-entry-actions > .kskm-help {
    grid-column: 1 / -1;
    justify-self: start;
    width: auto;
    min-height: 32px;
    margin: 0 !important;
    padding: 0;
    white-space: nowrap;
}

/*
 * Členové týmu: role a tlačítko jsou díky display: contents samostatnými
 * sloupci hlavní mřížky. Kapitán tak ponechá prázdný sloupec tlačítka a
 * údaje všech členů zůstanou přesně pod sebou.
 */
.ksupf-profile-content-stack .kskm-member-cards-manage {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px !important;
    width: 100%;
}

.ksupf-profile-content-stack .kskm-member-cards-manage .kskm-member-card {
    display: grid !important;
    grid-template-columns: 48px minmax(0, 1fr) 72px 82px !important;
    grid-template-areas: none !important;
    align-items: center !important;
    column-gap: 10px !important;
    row-gap: 0 !important;
    min-height: 76px;
    width: 100%;
    padding: 12px 14px !important;
    text-align: left !important;
}

.ksupf-profile-content-stack .kskm-member-avatar {
    grid-area: auto !important;
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    justify-self: start;
    width: 48px !important;
    min-width: 48px !important;
    margin: 0 !important;
}

.ksupf-profile-content-stack .kskm-member-main {
    grid-area: auto !important;
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    justify-self: stretch;
    min-width: 0;
    width: 100%;
    margin: 0 !important;
    text-align: left !important;
}

.ksupf-profile-content-stack .kskm-member-main strong,
.ksupf-profile-content-stack .kskm-member-main small {
    width: 100%;
    max-width: 100%;
    margin-right: 0 !important;
    text-align: left !important;
}

.ksupf-profile-content-stack .kskm-member-total {
    display: block;
    width: 100%;
    margin-top: 4px;
    color: var(--ksupf-accent-dark);
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1.35;
    text-align: left;
}

.ksupf-profile-content-stack .kskm-member-actions {
    display: contents !important;
    grid-area: auto !important;
}

.ksupf-profile-content-stack .kskm-member-actions > .kskm-badge {
    grid-column: 3;
    grid-row: 1;
    align-self: center;
    justify-self: stretch;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    margin: 0 !important;
    text-align: center;
    white-space: nowrap;
}

.ksupf-profile-content-stack .kskm-member-actions > .kskm-member-remove-form {
    grid-column: 4;
    grid-row: 1;
    align-self: center;
    justify-self: stretch;
    width: 100%;
    min-width: 0;
    margin: 0 !important;
}

.ksupf-profile-content-stack .kskm-member-remove-form .kskm-mini-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    margin: 0 !important;
    white-space: nowrap;
}

@media (max-width: 960px) {
    .ksupf-profile-content-stack .kskm-entry-card {
        grid-template-columns: 74px 96px minmax(0, 1fr) 112px !important;
        grid-template-rows: auto auto;
        column-gap: 14px !important;
        row-gap: 9px !important;
    }

    .ksupf-profile-content-stack .kskm-entry-date {
        grid-column: 1;
        grid-row: 1 / 3;
        width: 74px !important;
    }

    .ksupf-profile-content-stack .kskm-entry-km {
        grid-column: 2;
        grid-row: 1;
    }

    .ksupf-profile-content-stack .kskm-entry-note {
        grid-column: 3;
        grid-row: 1;
    }

    .ksupf-profile-content-stack .kskm-entry-status {
        grid-column: 4;
        grid-row: 1;
    }

    .ksupf-profile-content-stack .kskm-entry-actions {
        grid-column: 2 / 5;
        grid-row: 2;
        justify-self: start;
        width: 168px;
    }
}

@media (max-width: 680px) {
    .ksupf-profile-content-stack .kskm-entry-card {
        grid-template-columns: 70px minmax(0, 1fr) auto !important;
        grid-template-rows: auto auto auto;
    }

    .ksupf-profile-content-stack .kskm-entry-date {
        grid-column: 1;
        grid-row: 1 / 4;
        width: 70px !important;
    }

    .ksupf-profile-content-stack .kskm-entry-km {
        grid-column: 2;
        grid-row: 1;
    }

    .ksupf-profile-content-stack .kskm-entry-status {
        grid-column: 3;
        grid-row: 1;
        width: auto;
    }

    .ksupf-profile-content-stack .kskm-entry-note {
        grid-column: 2 / 4;
        grid-row: 2;
    }

    .ksupf-profile-content-stack .kskm-entry-actions {
        grid-column: 2 / 4;
        grid-row: 3;
        width: 168px;
    }

    .ksupf-profile-content-stack .kskm-member-cards-manage .kskm-member-card {
        grid-template-columns: 44px minmax(0, 1fr) 72px !important;
        grid-template-rows: auto auto;
        row-gap: 8px !important;
    }

    .ksupf-profile-content-stack .kskm-member-avatar {
        grid-column: 1;
        grid-row: 1 / 3;
        width: 44px !important;
        min-width: 44px !important;
        align-self: start;
    }

    .ksupf-profile-content-stack .kskm-member-avatar .avatar,
    .ksupf-profile-content-stack .kskm-member-avatar img {
        width: 44px !important;
        height: 44px !important;
    }

    .ksupf-profile-content-stack .kskm-member-main {
        grid-column: 2;
        grid-row: 1;
    }

    .ksupf-profile-content-stack .kskm-member-actions > .kskm-badge {
        grid-column: 3;
        grid-row: 1;
    }

    .ksupf-profile-content-stack .kskm-member-actions > .kskm-member-remove-form {
        grid-column: 2 / 4;
        grid-row: 2;
        justify-self: start;
        width: auto;
    }

    .ksupf-profile-content-stack .kskm-member-remove-form .kskm-mini-button {
        width: auto;
        min-width: 82px;
    }
}

@media (max-width: 460px) {
    .ksupf-profile-content-stack .kskm-entry-card {
        grid-template-columns: 1fr !important;
        grid-template-rows: none;
        row-gap: 10px !important;
    }

    .ksupf-profile-content-stack .kskm-entry-date,
    .ksupf-profile-content-stack .kskm-entry-km,
    .ksupf-profile-content-stack .kskm-entry-note,
    .ksupf-profile-content-stack .kskm-entry-status,
    .ksupf-profile-content-stack .kskm-entry-actions {
        grid-column: 1;
        width: 100%;
    }

    .ksupf-profile-content-stack .kskm-entry-date { grid-row: 1; }
    .ksupf-profile-content-stack .kskm-entry-km { grid-row: 2; }
    .ksupf-profile-content-stack .kskm-entry-note { grid-row: 3; }
    .ksupf-profile-content-stack .kskm-entry-status { grid-row: 4; }
    .ksupf-profile-content-stack .kskm-entry-actions { grid-row: 5; }

    .ksupf-profile-content-stack .kskm-entry-date {
        min-height: 0;
        align-items: flex-start;
        padding: 10px 12px;
        text-align: left;
    }

    .ksupf-profile-content-stack .kskm-entry-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ksupf-profile-content-stack .kskm-member-cards-manage .kskm-member-card {
        grid-template-columns: 44px minmax(0, 1fr) !important;
        grid-template-rows: auto auto auto;
    }

    .ksupf-profile-content-stack .kskm-member-avatar {
        grid-column: 1;
        grid-row: 1 / 4;
    }

    .ksupf-profile-content-stack .kskm-member-main {
        grid-column: 2;
        grid-row: 1;
    }

    .ksupf-profile-content-stack .kskm-member-actions > .kskm-badge {
        grid-column: 2;
        grid-row: 2;
        justify-self: start;
        width: auto;
        min-width: 72px;
    }

    .ksupf-profile-content-stack .kskm-member-actions > .kskm-member-remove-form {
        grid-column: 2;
        grid-row: 3;
    }
}

/* ========================================================================
 * v1.7.4 – mobilní zápisy a profilový obrázek v hlavičce
 * ====================================================================== */

/* Přihlášený profil se v mobilním rozbalovacím menu nezobrazuje podruhé. */
@media (max-width: 999px) {
    .menu-modal .ksupf-menu-item.is-user-logged-in,
    .mobile-menu .ksupf-menu-item.is-user-logged-in {
        display: none !important;
    }
}

/* Samostatná mobilní zkratka se zobrazí až po přesunutí do hlavičky. */
.ksupf-mobile-profile-shortcut {
    display: none;
}

@media (max-width: 999px) {
    #site-header .ksupf-mobile-profile-shortcut.is-mounted {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
        width: 44px;
        height: 44px;
        margin-left: auto;
        padding: 3px;
        border: 1px solid rgba(255, 255, 255, 0.22);
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.08);
        text-decoration: none !important;
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
        position: relative;
        z-index: 3;
    }

    #site-header .ksupf-mobile-profile-shortcut.is-mounted + .nav-toggle,
    #site-header .ksupf-mobile-profile-shortcut.is-mounted + .mobile-nav-toggle {
        margin-left: 0.8rem !important;
    }

    #site-header .ksupf-mobile-profile-shortcut .ksupf-menu-avatar {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        box-shadow: none;
    }

    #site-header .ksupf-mobile-profile-shortcut:hover .ksupf-menu-avatar,
    #site-header .ksupf-mobile-profile-shortcut:focus .ksupf-menu-avatar {
        box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.22), 0 8px 18px rgba(0, 0, 0, 0.2);
    }
}

/*
 * Na mobilu nepoužíváme display: contents. Některé prohlížeče pak chybně
 * počítaly výšku poznámky a ta se mohla překrýt s tlačítky.
 */
@media (max-width: 680px) {
    .ksupf-profile-content-stack .kskm-entry-card {
        display: grid !important;
        grid-template-columns: 70px minmax(0, 1fr) !important;
        grid-template-rows: auto auto auto !important;
        column-gap: 14px !important;
        row-gap: 10px !important;
        align-items: start !important;
        min-height: 0;
        padding: 14px !important;
    }

    .ksupf-profile-content-stack .kskm-entry-date {
        grid-column: 1 !important;
        grid-row: 1 / 4 !important;
        width: 70px !important;
        min-height: 68px;
        align-self: start !important;
    }

    .ksupf-profile-content-stack .kskm-entry-main {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px 12px;
        grid-column: 2 !important;
        grid-row: 1 !important;
        width: 100%;
        min-width: 0;
        align-items: start;
    }

    .ksupf-profile-content-stack .kskm-entry-km {
        grid-column: 1 !important;
        grid-row: 1 !important;
        width: auto;
        min-width: 0;
    }

    .ksupf-profile-content-stack .kskm-entry-note {
        grid-column: 1 / -1 !important;
        grid-row: 2 !important;
        display: block;
        width: 100%;
        min-width: 0;
        margin: 0 !important;
        padding: 0;
        line-height: 1.45;
        overflow-wrap: anywhere;
    }

    .ksupf-profile-content-stack .kskm-entry-status {
        grid-column: 2 !important;
        grid-row: 2 !important;
        justify-self: start;
        width: auto;
        margin: 0 !important;
    }

    .ksupf-profile-content-stack .kskm-entry-actions {
        grid-column: 2 !important;
        grid-row: 3 !important;
        display: flex !important;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-start !important;
        gap: 8px !important;
        width: 100% !important;
        min-width: 0;
        margin: 0 !important;
    }

    .ksupf-profile-content-stack .kskm-entry-actions .kskm-inline-delete-form,
    .ksupf-profile-content-stack .kskm-entry-actions .kskm-mini-button {
        width: auto !important;
        min-width: 0;
    }

    .ksupf-profile-content-stack .kskm-entry-actions > .kskm-help {
        width: auto !important;
        min-height: 0;
    }

    /* Také členové týmu se na mobilu skládají bez display: contents. */
    .ksupf-profile-content-stack .kskm-member-cards-manage .kskm-member-card {
        grid-template-columns: 44px minmax(0, 1fr) !important;
        grid-template-rows: auto auto !important;
        column-gap: 12px !important;
        row-gap: 9px !important;
        align-items: start !important;
    }

    .ksupf-profile-content-stack .kskm-member-avatar {
        grid-column: 1 !important;
        grid-row: 1 / 3 !important;
    }

    .ksupf-profile-content-stack .kskm-member-main {
        grid-column: 2 !important;
        grid-row: 1 !important;
    }

    .ksupf-profile-content-stack .kskm-member-actions {
        display: flex !important;
        grid-column: 2 !important;
        grid-row: 2 !important;
        align-items: center;
        justify-content: flex-start !important;
        flex-wrap: wrap;
        gap: 8px !important;
        width: 100%;
        min-width: 0;
    }

    .ksupf-profile-content-stack .kskm-member-actions > .kskm-badge,
    .ksupf-profile-content-stack .kskm-member-actions > .kskm-member-remove-form {
        width: auto !important;
        min-width: 0;
        margin: 0 !important;
    }
}

@media (max-width: 420px) {
    .ksupf-profile-content-stack .kskm-entry-card {
        grid-template-columns: 60px minmax(0, 1fr) !important;
        column-gap: 12px !important;
    }

    .ksupf-profile-content-stack .kskm-entry-date {
        width: 60px !important;
        min-height: 62px;
        padding: 9px 7px !important;
    }

    .ksupf-profile-content-stack .kskm-entry-actions .kskm-mini-button {
        min-height: 36px;
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
}


/* v1.7.5 – iniciály v náhledu avataru */
.ksupf-picture-preview.is-empty .ksupf-avatar-initials,
.ksupf-picture-preview .ksupf-picture-placeholder {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
}

/* Smazání týmu uvnitř profilového rozhraní */
.ksupf-profile-content-stack .kskm-team-delete-zone {
    margin-top: 22px;
    border-color: #edc9d2;
    border-radius: 18px;
    background: #fff8fa;
    box-shadow: none;
}

.ksupf-profile-content-stack .kskm-team-delete-copy strong {
    color: #8f1233;
    font-size: 15px;
}

.ksupf-profile-content-stack .kskm-team-delete-copy p {
    color: #715865;
}

.ksupf-profile-content-stack .kskm-delete-team-button {
    min-height: 40px;
    padding: 9px 16px !important;
}

/* ========================================================================
 * v1.7.6 – přesná fajfka checkboxu a společný blok avataru s mobilním menu
 * ====================================================================== */

/* Vlastní značka zabrání posunu fajfky způsobenému styly šablony/prohlížeče. */
.ksupf-profile-content-stack .kskm input[type="checkbox"] {
    -webkit-appearance: none !important;
    appearance: none !important;
    position: relative !important;
    display: inline-block !important;
    vertical-align: top !important;
    border: 1px solid #d8ccd4 !important;
    background-color: #fff !important;
    background-image: none !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 12px 12px !important;
    cursor: pointer;
}

.ksupf-profile-content-stack .kskm input[type="checkbox"]::before,
.ksupf-profile-content-stack .kskm input[type="checkbox"]::after {
    content: none !important;
    display: none !important;
}

.ksupf-profile-content-stack .kskm input[type="checkbox"]:checked {
    border-color: var(--ksupf-accent) !important;
    background-color: #fff !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23d91f3f' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.6' d='M3.2 8.2 6.4 11.2 12.9 4.7'/%3E%3C/svg%3E") !important;
}

/* Na desktopu wrapper neovlivňuje původní rozložení hlavičky. */
.ksupf-mobile-header-actions {
    display: contents;
}

@media (max-width: 999px) {
    #site-header .ksupf-mobile-header-actions {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 0.8rem !important;
        flex: 0 0 auto !important;
        margin-left: auto !important;
    }

    #site-header .ksupf-mobile-header-actions .ksupf-mobile-profile-shortcut.is-mounted {
        margin: 0 !important;
    }

    #site-header .ksupf-mobile-header-actions .nav-toggle,
    #site-header .ksupf-mobile-header-actions .mobile-nav-toggle {
        margin: 0 !important;
    }

    #site-header .ksupf-mobile-profile-shortcut.is-mounted + .nav-toggle,
    #site-header .ksupf-mobile-profile-shortcut.is-mounted + .mobile-nav-toggle {
        margin-left: 0 !important;
    }
}



/* ========================================================================
 * v1.7.9 – mobilní šířka shortcode výstupů uvnitř profilu
 * Child theme nastavuje všem .kskm prvkům vlastní šířku a automatické
 * vodorovné okraje. U vnořeného shortcodu to na mobilu způsobovalo posun
 * obsahu a přetékání mimo viditelnou oblast profilu.
 * ====================================================================== */
body.ksupf-profile-page .entry-content .ksupf-profile-wrap,
body.ksupf-profile-page .entry-content .ksupf-tab-panel,
body.ksupf-profile-page .entry-content .ksupf-profile-content-stack,
body.ksupf-profile-page .entry-content .ksupf-custom-content {
    min-width: 0 !important;
    max-width: 100% !important;
}

body.ksupf-profile-page .entry-content .ksupf-profile-content-stack,
body.ksupf-profile-page .entry-content .ksupf-custom-content {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Přepisuje zejména pravidlo child theme: .entry-content .kskm { width: var(...) !important; }. */
body.ksupf-profile-page .entry-content .ksupf-profile-content-stack .kskm {
    display: block;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0;
    padding-right: 0;
    left: auto !important;
    right: auto !important;
    transform: none;
}

/* Hlavní rozvrhové prvky shortcodů nesmí být širší než jejich profilová karta. */
body.ksupf-profile-page .entry-content .ksupf-profile-content-stack .kskm-box,
body.ksupf-profile-page .entry-content .ksupf-profile-content-stack .kskm-hero,
body.ksupf-profile-page .entry-content .ksupf-profile-content-stack .kskm-account-hero,
body.ksupf-profile-page .entry-content .ksupf-profile-content-stack .kskm-stats-grid,
body.ksupf-profile-page .entry-content .ksupf-profile-content-stack .kskm-purple-grid,
body.ksupf-profile-page .entry-content .ksupf-profile-content-stack .kskm-rankings-grid,
body.ksupf-profile-page .entry-content .ksupf-profile-content-stack .kskm-summary-blocks,
body.ksupf-profile-page .entry-content .ksupf-profile-content-stack .kskm-entry-history,
body.ksupf-profile-page .entry-content .ksupf-profile-content-stack .kskm-entry-list,
body.ksupf-profile-page .entry-content .ksupf-profile-content-stack .kskm-team-sections,
body.ksupf-profile-page .entry-content .ksupf-profile-content-stack .kskm-team-panel,
body.ksupf-profile-page .entry-content .ksupf-profile-content-stack .kskm-payment-options,
body.ksupf-profile-page .entry-content .ksupf-profile-content-stack .kskm-payment-option,
body.ksupf-profile-page .entry-content .ksupf-profile-content-stack .kskm-chart,
body.ksupf-profile-page .entry-content .ksupf-profile-content-stack .kskm-chart-box,
body.ksupf-profile-page .entry-content .ksupf-profile-content-stack .kskm-form,
body.ksupf-profile-page .entry-content .ksupf-profile-content-stack .kskm-table-wrap {
    min-width: 0 !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

body.ksupf-profile-page .entry-content .ksupf-profile-content-stack img,
body.ksupf-profile-page .entry-content .ksupf-profile-content-stack svg,
body.ksupf-profile-page .entry-content .ksupf-profile-content-stack canvas,
body.ksupf-profile-page .entry-content .ksupf-profile-content-stack table,
body.ksupf-profile-page .entry-content .ksupf-profile-content-stack input,
body.ksupf-profile-page .entry-content .ksupf-profile-content-stack select,
body.ksupf-profile-page .entry-content .ksupf-profile-content-stack textarea {
    max-width: 100%;
}

@media (max-width: 700px) {
    body.ksupf-profile-page .entry-content > .ksupf-profile-wrap,
    body.ksupf-profile-page .entry-content .ksupf-profile-wrap {
        width: calc(100vw - 24px) !important;
        max-width: calc(100vw - 24px) !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    body.ksupf-profile-page .entry-content .ksupf-profile-content-stack,
    body.ksupf-profile-page .entry-content .ksupf-custom-content,
    body.ksupf-profile-page .entry-content .ksupf-profile-content-stack .kskm {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* Tabulky mohou rolovat uvnitř vlastního obalu, nikoli posouvat celý profil. */
    body.ksupf-profile-page .entry-content .ksupf-profile-content-stack .kskm-table-wrap {
        width: 100% !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* ========================================================================
 * v1.8.0 – registrace a připojení přes týmovou pozvánku
 * ====================================================================== */
.ksupf-auth-invite {
    margin: 0 0 22px;
    padding: 18px 20px;
    border: 1px solid #ead4db;
    border-left: 4px solid var(--ksupf-accent);
    border-radius: 14px;
    background: #fff8fa;
    color: #3f2831;
}

.ksupf-auth-invite.is-error {
    border-color: #efc9c9;
    border-left-color: #b42318;
    background: #fff7f6;
}

.ksupf-auth-invite-kicker {
    display: block;
    margin-bottom: 4px;
    color: var(--ksupf-accent-dark);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ksupf-auth-invite strong {
    display: block;
    margin: 0;
    color: #26191e;
    font-size: 18px;
    line-height: 1.3;
}

.ksupf-auth-invite p {
    margin: 8px 0 0;
    color: #6e5961;
    font-size: 14px;
    line-height: 1.55;
}

.ksupf-auth-form input[readonly] {
    background: #f5f2f3 !important;
    color: #4e4247 !important;
    cursor: not-allowed;
}

.ksupf-form-grid-register-password {
    align-items: start;
}

.ksupf-password-help {
    display: block;
    margin: -3px 0 16px;
}

.ksupf-team-invite-card {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    margin: 0 0 24px;
    padding: 22px 24px;
    border: 1px solid #ead4db;
    border-radius: 18px;
    background: linear-gradient(135deg, #fff8fa 0%, #fff 100%);
    box-shadow: 0 10px 30px rgba(83, 31, 49, 0.07);
}

.ksupf-team-invite-card.is-error {
    border-color: #efc9c9;
    background: #fff8f7;
}

.ksupf-team-invite-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--ksupf-accent);
    color: #fff;
    font-size: 24px;
    line-height: 1;
}

.ksupf-team-invite-card.is-error .ksupf-team-invite-icon {
    background: #b42318;
}

.ksupf-team-invite-content {
    min-width: 0;
}

.ksupf-team-invite-content h2 {
    margin: 2px 0 6px;
    color: #271a1f;
    font-size: clamp(21px, 2.3vw, 28px);
    line-height: 1.2;
}

.ksupf-team-invite-content > p {
    margin: 0;
    color: #6b5760;
}

.ksupf-team-invite-state {
    margin-top: 14px !important;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f2f8f3;
    color: #256538 !important;
    font-weight: 700;
}

.ksupf-team-invite-state.is-error {
    background: #fff0ef;
    color: #9f1d16 !important;
}

.ksupf-team-invite-form {
    margin-top: 16px;
}

.ksupf-team-invite-form .ksupf-btn {
    margin-top: 0;
}

@media (max-width: 600px) {
    .ksupf-team-invite-card {
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 13px;
        padding: 18px;
    }

    .ksupf-team-invite-icon {
        width: 42px;
        height: 42px;
        font-size: 19px;
    }

    .ksupf-form-grid-register-password {
        grid-template-columns: 1fr !important;
    }
}


/* ========================================================================
 * v1.8.2 – interní kontrola zápisů se ve frontendovém profilu nezobrazuje
 * ====================================================================== */
.ksupf-profile-content-stack .kskm-entry-status {
    display: none !important;
}

.ksupf-profile-content-stack .kskm-entry-card,
.ksupf-profile-content-stack .kskm-entry-card.is-suspicious {
    grid-template-columns: 82px 110px minmax(180px, 1fr) 168px !important;
    border-color: var(--ksupf-border) !important;
    background: #fff !important;
}

.ksupf-profile-content-stack .kskm-entry-actions {
    grid-column: 4 !important;
}

@media (max-width: 960px) {
    .ksupf-profile-content-stack .kskm-entry-card,
    .ksupf-profile-content-stack .kskm-entry-card.is-suspicious {
        grid-template-columns: 74px 96px minmax(0, 1fr) !important;
        grid-template-rows: auto auto !important;
    }

    .ksupf-profile-content-stack .kskm-entry-date {
        grid-column: 1 !important;
        grid-row: 1 / 3 !important;
    }

    .ksupf-profile-content-stack .kskm-entry-km {
        grid-column: 2 !important;
        grid-row: 1 !important;
    }

    .ksupf-profile-content-stack .kskm-entry-note {
        grid-column: 3 !important;
        grid-row: 1 !important;
    }

    .ksupf-profile-content-stack .kskm-entry-actions {
        grid-column: 2 / 4 !important;
        grid-row: 2 !important;
    }
}

@media (max-width: 680px) {
    .ksupf-profile-content-stack .kskm-entry-card,
    .ksupf-profile-content-stack .kskm-entry-card.is-suspicious {
        grid-template-columns: 70px minmax(0, 1fr) !important;
        grid-template-rows: auto auto !important;
    }

    .ksupf-profile-content-stack .kskm-entry-date {
        grid-column: 1 !important;
        grid-row: 1 / 3 !important;
    }

    .ksupf-profile-content-stack .kskm-entry-main {
        grid-column: 2 !important;
        grid-row: 1 !important;
    }

    .ksupf-profile-content-stack .kskm-entry-actions {
        grid-column: 2 !important;
        grid-row: 2 !important;
    }
}

@media (max-width: 420px) {
    .ksupf-profile-content-stack .kskm-entry-card,
    .ksupf-profile-content-stack .kskm-entry-card.is-suspicious {
        grid-template-columns: 60px minmax(0, 1fr) !important;
    }
}
