/* Personal summary retained from Hotfix 55 */
body.permanent-awards-page .permanent-operator-summary {
    margin-bottom: 22px;
}

body.permanent-awards-page .permanent-operator-summary > h2 {
    margin-bottom: 14px;
}

body.permanent-awards-page .permanent-operator-stats .stat {
    gap: 4px;
    min-width: 0;
}

body.permanent-awards-page .permanent-operator-stats .stat > b {
    line-height: 1;
}

body.permanent-awards-page .permanent-operator-stats .permanent-stat-label {
    display: block;
    margin-top: 3px;
    color: #123d65;
    font-size: 0.84rem;
    font-weight: 850;
    line-height: 1.18;
    letter-spacing: 0.01em;
}

body.permanent-awards-page .permanent-no-result {
    margin-top: 10px;
}

/* Three-column grid remains controlled by the existing project CSS. */
body.permanent-awards-page .permanent-card {
    min-width: 0;
}

body.permanent-awards-page .permanent-card .challenge-list-cover {
    display: flex;
    align-items: center;
    min-height: 68px;
    padding: 10px 14px;
}

body.permanent-awards-page .permanent-card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    color: #ffffff;
}

body.permanent-awards-page .permanent-card-title-icon {
    display: inline-grid;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    background: #f4cf68;
    color: #082f53;
    font-size: 1.05rem;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14);
}

body.permanent-awards-page .permanent-card-title-text {
    display: -webkit-box;
    min-width: 0;
    overflow: hidden;
    color: #ffffff;
    font-size: 0.94rem;
    font-weight: 900;
    line-height: 1.16;
    letter-spacing: 0.01em;
    text-transform: none;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

/* Keep progress near the bottom while preserving equal card rows. */
body.permanent-awards-page .permanent-card .challenge-list-body {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

body.permanent-awards-page .permanent-card-description {
    margin-bottom: 12px;
}

body.permanent-awards-page .permanent-result-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 0 0 11px;
}

body.permanent-awards-page .permanent-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    min-height: 25px;
    padding: 4px 9px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.08;
    white-space: normal;
}

body.permanent-awards-page .permanent-status-badge strong {
    font-weight: 900;
}

body.permanent-awards-page .permanent-status-earned {
    color: #12623e;
    background: #e4f6eb;
    border-color: #91d5ad;
}

body.permanent-awards-page .permanent-status-next {
    color: #765100;
    background: #fff2ca;
    border-color: #e5be54;
}

body.permanent-awards-page .permanent-status-empty {
    color: #5b6672;
    background: #eef2f5;
    border-color: #c9d1d9;
}

body.permanent-awards-page .permanent-progress-panel {
    display: grid;
    gap: 9px;
    margin-top: auto;
    padding-top: 3px;
}

body.permanent-awards-page .permanent-progress-item {
    padding: 9px 10px 8px;
    border: 1px solid #eadcb5;
    border-radius: 12px;
    background: #f8f0dc;
}

body.permanent-awards-page .permanent-progress-item.is-complete {
    border-color: #a8d6b9;
    background: #edf8f1;
}

body.permanent-awards-page .permanent-progress-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    color: #082f53;
    font-size: 0.78rem;
    line-height: 1.18;
}

body.permanent-awards-page .permanent-progress-head strong {
    min-width: 0;
    font-weight: 850;
}

body.permanent-awards-page .permanent-progress-head > b {
    flex: 0 0 auto;
    font-size: 0.82rem;
    font-weight: 950;
    white-space: nowrap;
}

body.permanent-awards-page .permanent-progress-goal {
    margin-top: 3px;
    color: #566575;
    font-size: 0.68rem;
    font-weight: 750;
    line-height: 1.2;
}

body.permanent-awards-page .permanent-progress-track {
    position: relative;
    height: 9px;
    margin-top: 7px;
    overflow: hidden;
    border: 1px solid #d8c99f;
    border-radius: 999px;
    background: #ffffff;
}

body.permanent-awards-page .permanent-progress-track > span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #e4a82d, #f4cf68);
    transition: width 0.25s ease;
}

body.permanent-awards-page .permanent-progress-item.is-complete
.permanent-progress-track > span {
    background: linear-gradient(90deg, #25875a, #65bd88);
}

body.permanent-awards-page .permanent-progress-foot {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 5px;
    color: #5d6670;
    font-size: 0.67rem;
    font-weight: 750;
    line-height: 1.15;
}

body.permanent-awards-page .permanent-progress-foot strong {
    color: #082f53;
    font-weight: 900;
    white-space: nowrap;
}

body.permanent-awards-page .permanent-progress-footer {
    padding: 7px 9px;
    border-radius: 9px;
    background: rgba(7, 65, 105, 0.07);
    color: #164467;
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
}

body.permanent-awards-page .permanent-public-detail {
    margin-top: 11px;
}

@media (max-width: 760px) {
    body.permanent-awards-page .permanent-card .challenge-list-cover {
        min-height: 62px;
        padding: 9px 12px;
    }

    body.permanent-awards-page .permanent-card-title-icon {
        flex-basis: 32px;
        width: 32px;
        height: 32px;
    }

    body.permanent-awards-page .permanent-card-title-text {
        font-size: 0.86rem;
    }

    body.permanent-awards-page .permanent-status-badge {
        font-size: 0.68rem;
    }

    body.permanent-awards-page .permanent-progress-head {
        font-size: 0.74rem;
    }

    body.permanent-awards-page .permanent-operator-stats
    .permanent-stat-label {
        font-size: 0.8rem;
    }
}


/* Let every row be only as tall as its tallest card, without a fixed card minimum. */
body.permanent-awards-page .permanent-public-grid {
    align-items: stretch;
}

body.permanent-awards-page .permanent-public-grid .permanent-card {
    height: auto !important;
    min-height: 0 !important;
}

/* Do not push progress to the bottom of an artificially tall card. */
body.permanent-awards-page .permanent-progress-panel {
    margin-top: 2px;
    padding-top: 0;
}

/* Keep the body compact from description through status and progress. */
body.permanent-awards-page .permanent-card .challenge-list-body {
    justify-content: flex-start;
}

body.permanent-awards-page .permanent-card-description {
    margin-bottom: 10px;
}

body.permanent-awards-page .permanent-result-summary {
    margin-bottom: 9px;
}

/*
 * The small detached triangle was the browser's native <details>/<summary>
 * marker. Hide it and show a normal compact control at the bottom.
 */
body.permanent-awards-page .permanent-public-detail {
    position: static !important;
    display: block;
    margin-top: 9px;
}

body.permanent-awards-page .permanent-public-detail > summary {
    position: static !important;
    float: none !important;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box;
    padding: 7px 9px;
    border: 1px solid #d9c996;
    border-radius: 9px;
    list-style: none !important;
    background: rgba(244, 207, 104, 0.20);
    color: #164467;
    cursor: pointer;
    font-size: 0.70rem !important;
    font-weight: 850;
    line-height: 1.15;
}

body.permanent-awards-page .permanent-public-detail > summary::-webkit-details-marker {
    display: none !important;
}

body.permanent-awards-page .permanent-public-detail > summary::marker {
    content: "";
}

body.permanent-awards-page .permanent-public-detail > summary::after {
    content: "+";
    flex: 0 0 auto;
    margin-left: 8px;
    color: #0b4f7d;
    font-size: 1rem;
    font-weight: 950;
    line-height: 1;
}

body.permanent-awards-page .permanent-public-detail[open] > summary::after {
    content: "−";
}

body.permanent-awards-page .permanent-public-detail-body {
    margin-top: 7px;
}

@media (max-width: 760px) {
    body.permanent-awards-page .permanent-public-detail > summary {
        font-size: 0.68rem !important;
    }
}


body.permanent-awards-page .page-hero > .shell,
body.permanent-awards-page .section > .shell {
    width: calc(100% - 64px);
    max-width: 1480px;
    margin-left: auto;
    margin-right: auto;
}

/* Keep the operator summary and grid aligned inside their existing shell. */
body.permanent-awards-page .permanent-operator-summary,
body.permanent-awards-page .permanent-public-grid {
    width: 100%;
    box-sizing: border-box;
}

/*
 * The internal preview already sits inside .section > .shell.
 * Do not force that shell to width:100%, otherwise it touches the viewport
 * edges on notebook widths while looking correct only on wide monitors.
 */
body.permanent-awards-page .permanent-internal-preview-section > .shell {
    box-sizing: border-box;
}

/* Slightly more breathing room between wider cards. */
body.permanent-awards-page .permanent-public-grid {
    gap: 18px;
}

@media (max-width: 1180px) {
    body.permanent-awards-page .page-hero > .shell,
    body.permanent-awards-page .section > .shell {
        width: calc(100% - 40px);
    }

    body.permanent-awards-page .permanent-public-grid {
        gap: 14px;
    }
}

@media (max-width: 760px) {
    body.permanent-awards-page .page-hero > .shell,
    body.permanent-awards-page .section > .shell {
        width: calc(100% - 24px);
    }

    body.permanent-awards-page .permanent-public-grid {
        gap: 12px;
    }
}


body.permanent-awards-page .permanent-operator-stats .stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: 92px;
    padding-top: 9px;
    padding-bottom: 9px;
    text-align: center;
}

body.permanent-awards-page .permanent-operator-stats .permanent-stat-label {
    order: 1;
    min-height: 1.2em;
    margin: 0 0 3px;
    color: #123d65;
    font-size: 0.84rem;
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: 0.01em;
}

body.permanent-awards-page .permanent-operator-stats .ico {
    order: 2;
    display: block;
    margin: 0;
    font-size: 1.35rem;
    line-height: 1;
}

body.permanent-awards-page .permanent-operator-stats .stat > b {
    order: 3;
    margin: 2px 0 0;
    color: #082f53;
    font-size: 1.48rem;
    font-weight: 950;
    line-height: 1;
}

@media (max-width: 760px) {
    body.permanent-awards-page .permanent-operator-stats .stat {
        min-height: 84px;
        padding-top: 7px;
        padding-bottom: 7px;
    }

    body.permanent-awards-page .permanent-operator-stats
    .permanent-stat-label {
        font-size: 0.78rem;
    }

    body.permanent-awards-page .permanent-operator-stats .ico {
        font-size: 1.2rem;
    }

    body.permanent-awards-page .permanent-operator-stats .stat > b {
        font-size: 1.32rem;
    }
}


body.permanent-awards-page .permanent-operator-stats .permanent-stat-label {
    order: 1;
}

body.permanent-awards-page .permanent-operator-stats .stat > b {
    order: 2;
    margin: 3px 0 2px;
}

body.permanent-awards-page .permanent-operator-stats .ico {
    order: 3;
    margin: 0;
}


body.permanent-awards-page .permanent-operator-stats .stat {
    min-height: 70px;
    padding-top: 7px;
    padding-bottom: 7px;
    gap: 4px;
}

body.permanent-awards-page .permanent-operator-stats .permanent-stat-label {
    order: 1;
    min-height: auto;
    margin: 0;
}

body.permanent-awards-page .permanent-operator-stats .permanent-stat-main {
    order: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 30px;
}

body.permanent-awards-page .permanent-operator-stats
.permanent-stat-main .ico {
    order: initial;
    margin: 0;
    font-size: 1.25rem;
    line-height: 1;
}

body.permanent-awards-page .permanent-operator-stats
.permanent-stat-main > b {
    order: initial;
    margin: 0;
    color: #082f53;
    font-size: 1.52rem;
    font-weight: 950;
    line-height: 1;
}

@media (max-width: 760px) {
    body.permanent-awards-page .permanent-operator-stats .stat {
        min-height: 64px;
        padding-top: 6px;
        padding-bottom: 6px;
    }

    body.permanent-awards-page .permanent-operator-stats
    .permanent-stat-main .ico {
        font-size: 1.12rem;
    }

    body.permanent-awards-page .permanent-operator-stats
    .permanent-stat-main > b {
        font-size: 1.35rem;
    }
}


body.permanent-awards-page .permanent-operator-summary {
    padding-top: 14px;
    padding-bottom: 14px;
}

body.permanent-awards-page .permanent-operator-summary > h2 {
    margin-bottom: 10px;
}

body.permanent-awards-page .permanent-operator-stats {
    gap: 12px;
}

body.permanent-awards-page .permanent-operator-stats .stat {
    min-height: 54px;
    padding-top: 5px;
    padding-bottom: 5px;
    gap: 2px;
}

body.permanent-awards-page .permanent-operator-stats
.permanent-stat-label {
    margin: 0;
    font-size: 0.80rem;
    line-height: 1.08;
}

body.permanent-awards-page .permanent-operator-stats
.permanent-stat-main {
    min-height: 24px;
    gap: 6px;
}

body.permanent-awards-page .permanent-operator-stats
.permanent-stat-main .ico {
    font-size: 1.12rem;
}

body.permanent-awards-page .permanent-operator-stats
.permanent-stat-main > b {
    font-size: 1.42rem;
}

@media (max-width: 760px) {
    body.permanent-awards-page .permanent-operator-summary {
        padding-top: 11px;
        padding-bottom: 11px;
    }

    body.permanent-awards-page .permanent-operator-summary > h2 {
        margin-bottom: 8px;
    }

    body.permanent-awards-page .permanent-operator-stats {
        gap: 9px;
    }

    body.permanent-awards-page .permanent-operator-stats .stat {
        min-height: 50px;
        padding-top: 4px;
        padding-bottom: 4px;
    }

    body.permanent-awards-page .permanent-operator-stats
    .permanent-stat-label {
        font-size: 0.75rem;
    }

    body.permanent-awards-page .permanent-operator-stats
    .permanent-stat-main .ico {
        font-size: 1.02rem;
    }

    body.permanent-awards-page .permanent-operator-stats
    .permanent-stat-main > b {
        font-size: 1.28rem;
    }
}


body.permanent-awards-page
.permanent-card div.permanent-result-summary::after {
    content: none !important;
    display: none !important;
}

/* ======================================================================
   Phase 2 – public catalogue + private My results
   ====================================================================== */
body.permanent-awards-page .permanent-phase2-hero {
    padding-bottom: 28px;
}

body.permanent-awards-page .permanent-catalog-main-action {
    justify-content: center;
    margin-top: 18px;
}

body.permanent-awards-page .permanent-phase2-preview-section {
    padding-top: 14px;
    padding-bottom: 0;
}

body.permanent-awards-page .permanent-phase2-preview-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 11px 14px;
    border: 1px solid #e0b643;
    border-radius: 14px;
    background: #fff4ce;
    color: #493600;
    box-shadow: 0 7px 18px rgba(96, 65, 0, 0.08);
}

body.permanent-awards-page .permanent-phase2-preview-bar > div:first-child {
    display: grid;
    gap: 2px;
}

body.permanent-awards-page .permanent-phase2-preview-bar b {
    font-size: 0.76rem;
    font-weight: 950;
    letter-spacing: 0.04em;
}

body.permanent-awards-page .permanent-phase2-preview-bar span {
    font-size: 0.78rem;
    line-height: 1.25;
}

body.permanent-awards-page .permanent-phase2-preview-bar .actions {
    flex: 0 0 auto;
    margin: 0;
}


/* Internal preview actions must stay readable regardless of the generic
   .btn.secondary theme used elsewhere on the site. */
body.permanent-awards-page .permanent-phase2-preview-bar .btn.secondary {
    border: 1px solid #b88612 !important;
    background: #fffdf6 !important;
    color: #082f53 !important;
    text-shadow: none !important;
    box-shadow: 0 2px 7px rgba(56, 42, 0, 0.09);
}

body.permanent-awards-page .permanent-phase2-preview-bar .btn.secondary:hover,
body.permanent-awards-page .permanent-phase2-preview-bar .btn.secondary:focus-visible {
    border-color: #0b5488 !important;
    background: #0b5488 !important;
    color: #ffffff !important;
}

body.permanent-awards-page .permanent-phase2-preview-bar .btn.secondary:visited {
    color: #082f53 !important;
}

body.permanent-awards-page .permanent-phase2-preview-bar .btn.secondary:hover:visited,
body.permanent-awards-page .permanent-phase2-preview-bar .btn.secondary:focus-visible:visited {
    color: #ffffff !important;
}

body.permanent-awards-page .permanent-phase2-call-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

body.permanent-awards-page .permanent-phase2-call-switch input {
    width: 150px;
    min-height: 39px;
    border: 1px solid #d2a632;
    border-radius: 10px;
    background: #fffdf7;
    color: #082f53;
    font-weight: 900;
    text-transform: uppercase;
}

/* Public cards show the complete rules immediately – no hidden details. */
body.permanent-awards-catalog-page .permanent-card .challenge-list-body {
    height: 100%;
}

body.permanent-awards-catalog-page .permanent-card-description {
    min-height: 3.1em;
}

body.permanent-awards-catalog-page .permanent-catalog-rules {
    display: grid;
    gap: 10px;
    margin-top: auto;
}

body.permanent-awards-catalog-page .permanent-catalog-rule-section {
    overflow: hidden;
    border: 1px solid #e4d3a5;
    border-radius: 12px;
    background: #fffaf0;
}

body.permanent-awards-catalog-page .permanent-catalog-rule-section > h4 {
    margin: 0;
    padding: 7px 10px;
    border-bottom: 1px solid #e4d3a5;
    background: #f5ead0;
    color: #123d65;
    font-size: 0.75rem;
    font-weight: 950;
    line-height: 1.22;
}

body.permanent-awards-catalog-page .permanent-catalog-rule-rows {
    display: grid;
}

body.permanent-awards-catalog-page .permanent-catalog-rule-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 31px;
    padding: 6px 10px;
    border-top: 1px solid rgba(216, 197, 148, 0.58);
    color: #183b59;
    font-size: 0.72rem;
    line-height: 1.2;
}

body.permanent-awards-catalog-page .permanent-catalog-rule-row:first-child {
    border-top: 0;
}

body.permanent-awards-catalog-page .permanent-catalog-rule-row span {
    min-width: 0;
    font-weight: 830;
}

body.permanent-awards-catalog-page .permanent-catalog-rule-row b {
    color: #082f53;
    font-weight: 950;
    text-align: right;
    white-space: nowrap;
}

/* Complex awards get the whole row, otherwise six conditions would become unreadable. */
@media (min-width: 1050px) {
    body.permanent-awards-catalog-page .permanent-catalog-card-wide {
        grid-column: 1 / -1;
    }

    body.permanent-awards-catalog-page .permanent-catalog-card-wide
    .permanent-catalog-rules {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        align-items: start;
    }

    body.permanent-awards-catalog-page .permanent-catalog-card-wide
    .permanent-card-description {
        min-height: 0;
    }
}

/* My challenges – a compact continuation of the personal results page. */
body.permanent-awards-my-results-page .permanent-my-challenges {
    margin-top: 30px;
    padding-top: 24px;
    border-top: 2px solid rgba(12, 67, 105, 0.14);
}

body.permanent-awards-my-results-page .permanent-my-challenges-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

body.permanent-awards-my-results-page .permanent-my-challenges-head h2 {
    margin: 3px 0 0;
    color: #082f53;
}

body.permanent-awards-my-results-page .permanent-my-challenges-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

body.permanent-awards-my-results-page .permanent-my-challenge-card {
    overflow: hidden;
    border: 1px solid #dcc68e;
    border-radius: 15px;
    background: #fffdf8;
    box-shadow: 0 8px 20px rgba(5, 47, 82, 0.07);
}

body.permanent-awards-my-results-page .permanent-my-challenge-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 13px;
    background: linear-gradient(135deg, #083e6b, #0f5b91);
    color: #fff;
}

body.permanent-awards-my-results-page .permanent-my-challenge-title strong {
    min-width: 0;
    font-size: 0.88rem;
    font-weight: 950;
}

body.permanent-awards-my-results-page .permanent-my-challenge-title span {
    flex: 0 0 auto;
    padding: 3px 8px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 0.64rem;
    font-weight: 900;
}

body.permanent-awards-my-results-page .permanent-my-challenge-results {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 12px;
}

body.permanent-awards-my-results-page .permanent-my-challenge-result {
    display: grid;
    justify-items: center;
    gap: 2px;
    min-width: 0;
    padding: 8px 6px;
    border: 1px solid #eadcb6;
    border-radius: 10px;
    background: #f8f0dd;
    text-align: center;
}

body.permanent-awards-my-results-page .permanent-my-challenge-result span {
    overflow: hidden;
    max-width: 100%;
    color: #4d6070;
    font-size: 0.65rem;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.permanent-awards-my-results-page .permanent-my-challenge-result b {
    color: #082f53;
    font-size: 1.05rem;
    font-weight: 950;
}

body.permanent-awards-my-results-page .permanent-my-challenge-result small {
    color: #8a6206;
    font-size: 0.64rem;
    font-weight: 900;
}

body.permanent-awards-my-results-page .permanent-my-challenge-empty {
    margin: 0;
    padding: 16px;
    color: #607080;
    font-size: 0.78rem;
    font-weight: 700;
}

@media (max-width: 900px) {
    body.permanent-awards-page .permanent-phase2-preview-bar {
        align-items: stretch;
        flex-direction: column;
    }

    body.permanent-awards-page .permanent-phase2-preview-bar .actions,
    body.permanent-awards-page .permanent-phase2-call-switch {
        width: 100%;
    }

    body.permanent-awards-page .permanent-phase2-call-switch input {
        flex: 1 1 auto;
        width: auto;
    }

    body.permanent-awards-my-results-page .permanent-my-challenges-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    body.permanent-awards-catalog-page .permanent-card-description {
        min-height: 0;
    }

    body.permanent-awards-catalog-page .permanent-catalog-rule-row {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    body.permanent-awards-catalog-page .permanent-catalog-rule-row b {
        text-align: left;
        white-space: normal;
    }

    body.permanent-awards-my-results-page .permanent-my-challenge-results {
        grid-template-columns: 1fr;
    }
}


/* ======================================================================
   Phase 2.1 – multilingual catalogue layout and full content visibility
   ====================================================================== */

/* The body must not use height:100%; together with the card header it caused
   the last level rows to extend outside the card and be clipped by overflow. */
body.permanent-awards-catalog-page .permanent-catalog-card {
    display: flex;
    flex-direction: column;
    height: 100% !important;
    min-height: 0 !important;
    align-self: stretch !important;
}

body.permanent-awards-catalog-page .permanent-catalog-card
.challenge-list-body {
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible;
}

body.permanent-awards-catalog-page .permanent-catalog-rules {
    width: 100%;
    margin-top: auto;
}

/* Slightly larger catalogue typography – all six levels remain readable. */
body.permanent-awards-catalog-page .permanent-catalog-rule-section > h4 {
    font-size: 0.78rem;
}

body.permanent-awards-catalog-page .permanent-catalog-rule-row {
    min-height: 33px;
    padding-top: 7px;
    padding-bottom: 7px;
    font-size: 0.76rem;
}

/* Desktop uses six grid tracks: every standard card spans 2, therefore
   the public catalogue always keeps three cards per row. Complex awards
   span the full row. Similar-content cards are ordered together in PHP. */
@media (min-width: 1181px) {
    body.permanent-awards-catalog-page .permanent-public-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
        grid-auto-flow: row;
        align-items: stretch;
    }

    body.permanent-awards-catalog-page .permanent-catalog-card-standard,
    body.permanent-awards-catalog-page .permanent-catalog-card-half {
        grid-column: span 2 !important;
    }

    body.permanent-awards-catalog-page .permanent-catalog-card-wide {
        grid-column: 1 / -1 !important;
    }

    body.permanent-awards-catalog-page .permanent-catalog-card-wide
    .permanent-catalog-rules {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        align-items: start;
    }
}

/* Notebook/tablet: two equal columns, complex awards use the full row. */
@media (min-width: 761px) and (max-width: 1180px) {
    body.permanent-awards-catalog-page .permanent-public-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    body.permanent-awards-catalog-page .permanent-catalog-card-standard,
    body.permanent-awards-catalog-page .permanent-catalog-card-half {
        grid-column: span 1 !important;
    }

    body.permanent-awards-catalog-page .permanent-catalog-card-wide {
        grid-column: 1 / -1 !important;
    }
}

@media (max-width: 760px) {
    body.permanent-awards-catalog-page .permanent-public-grid {
        grid-template-columns: 1fr !important;
    }

    body.permanent-awards-catalog-page .permanent-catalog-card-standard,
    body.permanent-awards-catalog-page .permanent-catalog-card-half,
    body.permanent-awards-catalog-page .permanent-catalog-card-wide {
        grid-column: 1 !important;
        height: auto !important;
    }
}


/* Phase 4.2/4.3 – visible explanation for combined award logic. */
body.permanent-awards-page .permanent-rule-note {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    margin: -2px 0 12px;
    padding: 9px 10px;
    border-left: 3px solid #c8992f;
    border-radius: 0 8px 8px 0;
    background: #fff8e7;
    color: #38536a;
    font-size: .82rem;
    line-height: 1.42;
}

body.permanent-awards-page .permanent-rule-note b {
    flex: 0 0 auto;
}

body.permanent-awards-page .permanent-progress-footer {
    line-height: 1.4;
}

/* TOTA_ALL_ROUND_V1 – compact 4-condition progress */
body.permanent-awards-page article[data-award-id="all-round"] .permanent-progress-panel {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
}
body.permanent-awards-page article[data-award-id="all-round"] .permanent-progress-item {
    position: relative;
    min-width: 0;
    padding: 8px 5px 7px;
    text-align: center;
}
body.permanent-awards-page article[data-award-id="all-round"] .permanent-progress-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    text-align: center;
}
body.permanent-awards-page article[data-award-id="all-round"] .permanent-progress-head strong {
    font-size: .68rem;
    line-height: 1.12;
}
body.permanent-awards-page article[data-award-id="all-round"] .permanent-progress-head > b {
    font-size: .79rem;
}
body.permanent-awards-page article[data-award-id="all-round"] .permanent-progress-head > b::after {
    content: " ❌";
}
body.permanent-awards-page article[data-award-id="all-round"] .permanent-progress-item.is-complete .permanent-progress-head > b::after {
    content: " ✅";
}
body.permanent-awards-page article[data-award-id="all-round"] .permanent-progress-goal,
body.permanent-awards-page article[data-award-id="all-round"] .permanent-progress-track,
body.permanent-awards-page article[data-award-id="all-round"] .permanent-progress-foot,
body.permanent-awards-page article[data-award-id="all-round"] .permanent-progress-footer {
    display: none !important;
}
@media (max-width:760px) {
    body.permanent-awards-page article[data-award-id="all-round"] .permanent-progress-panel {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
/* TOTA_HF49A_ROW_ALIGNMENT_RESTORE
   Restore the old Hotfix 15 behaviour: cards in one visual grid row stretch
   to the same height and the Requirements control forms one horizontal line.
   Mobile keeps natural card height. */
@media (min-width: 761px) {
    body.permanent-awards-page .permanent-public-grid {
        align-items: stretch !important;
    }

    body.permanent-awards-page .permanent-public-grid .permanent-card {
        height: 100% !important;
        align-self: stretch !important;
    }

    body.permanent-awards-page .permanent-public-grid .permanent-card .challenge-list-body {
        display: flex !important;
        flex: 1 1 auto !important;
        flex-direction: column !important;
        height: auto !important;
        min-height: 0 !important;
    }

    body.permanent-awards-page .permanent-public-grid .permanent-public-detail {
        margin-top: auto !important;
    }
}

@media (max-width: 760px) {
    body.permanent-awards-page .permanent-public-grid .permanent-card {
        height: auto !important;
        align-self: auto !important;
    }

    body.permanent-awards-page .permanent-public-grid .permanent-card .challenge-list-body {
        height: auto !important;
    }

    body.permanent-awards-page .permanent-public-grid .permanent-public-detail {
        margin-top: 9px !important;
    }
}
/* TOTA_HF53J_ALL_ROUND_SEPARATE_COMPACT_ROW
   Stabilní spodní layout před experimenty 53L–53N:
   Full Spectrum + All Modes jsou 50/50; All-Round je samostatný široký,
   kompaktní řádek. Výpočty ani data se nemění. */
@media (min-width: 1001px) {
  body.permanent-awards-page .permanent-public-grid > article[data-award-id="full-spectrum"],
  body.permanent-awards-page .permanent-public-grid > article[data-award-id="all-modes"] {
    grid-column: span 3 !important;
    grid-column-start: span 3 !important;
    grid-column-end: auto !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
  }

  body.permanent-awards-page .permanent-public-grid > article[data-award-id="all-round"] {
    grid-column: 1 / -1 !important;
    grid-column-start: 1 !important;
    grid-column-end: -1 !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
  }

  body.permanent-awards-page article[data-award-id="all-round"] .permanent-catalog-level-grid,
  body.permanent-awards-page article[data-award-id="all-round"] .permanent-catalog-levels,
  body.permanent-awards-page article[data-award-id="all-round"] .permanent-combined-grid,
  body.permanent-awards-page article[data-award-id="all-round"] .permanent-level-grid,
  body.permanent-awards-page article[data-award-id="all-round"] .combined-level-grid,
  body.permanent-awards-page article[data-award-id="all-round"] .combined-levels {
    grid-template-columns: repeat(6,minmax(0,1fr)) !important;
    gap: 10px !important;
    align-items: stretch !important;
  }

  body.permanent-awards-page article[data-award-id="all-round"] {
    min-height: 0 !important;
    height: auto !important;
  }

  body.permanent-awards-page article[data-award-id="all-round"] .permanent-catalog-level-grid > *,
  body.permanent-awards-page article[data-award-id="all-round"] .permanent-catalog-levels > *,
  body.permanent-awards-page article[data-award-id="all-round"] .permanent-combined-grid > *,
  body.permanent-awards-page article[data-award-id="all-round"] .permanent-level-grid > *,
  body.permanent-awards-page article[data-award-id="all-round"] .combined-level-grid > *,
  body.permanent-awards-page article[data-award-id="all-round"] .combined-levels > * {
    min-width: 0 !important;
  }
}

@media (min-width: 701px) and (max-width: 1250px) {
  body.permanent-awards-page article[data-award-id="all-round"] .permanent-catalog-level-grid,
  body.permanent-awards-page article[data-award-id="all-round"] .permanent-catalog-levels,
  body.permanent-awards-page article[data-award-id="all-round"] .permanent-combined-grid,
  body.permanent-awards-page article[data-award-id="all-round"] .permanent-level-grid,
  body.permanent-awards-page article[data-award-id="all-round"] .combined-level-grid,
  body.permanent-awards-page article[data-award-id="all-round"] .combined-levels {
    grid-template-columns: repeat(3,minmax(0,1fr)) !important;
  }
}

@media (max-width: 700px) {
  body.permanent-awards-page .permanent-public-grid > article[data-award-id="full-spectrum"],
  body.permanent-awards-page .permanent-public-grid > article[data-award-id="all-modes"],
  body.permanent-awards-page .permanent-public-grid > article[data-award-id="all-round"] {
    grid-column: auto !important;
    width: auto !important;
    min-width: 0 !important;
  }
  body.permanent-awards-page article[data-award-id="all-round"] .permanent-catalog-level-grid,
  body.permanent-awards-page article[data-award-id="all-round"] .permanent-catalog-levels,
  body.permanent-awards-page article[data-award-id="all-round"] .permanent-combined-grid,
  body.permanent-awards-page article[data-award-id="all-round"] .permanent-level-grid,
  body.permanent-awards-page article[data-award-id="all-round"] .combined-level-grid,
  body.permanent-awards-page article[data-award-id="all-round"] .combined-levels {
    grid-template-columns: 1fr !important;
  }
}

/* TOTA_HF53K_ONE_TIME_AWARDS_LAST
   Jednorázová ocenění bez úrovní jsou až úplně na konci. */
body.permanent-awards-page .permanent-public-grid::before {
  content: "Ocenění bez úrovní";
  order: 10000;
  grid-column: 1 / -1;
  display: block;
  margin: 8px 0 0;
  padding: 15px 2px 4px;
  border-top: 1px solid rgba(87,109,124,.24);
  color: #687985;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: .055em;
  text-transform: uppercase;
}
html:lang(sk) body.permanent-awards-page .permanent-public-grid::before { content: "Ocenenia bez úrovní"; }
html:lang(en) body.permanent-awards-page .permanent-public-grid::before { content: "Awards without levels"; }
html:lang(de) body.permanent-awards-page .permanent-public-grid::before { content: "Auszeichnungen ohne Stufen"; }
html:lang(pl) body.permanent-awards-page .permanent-public-grid::before { content: "Nagrody bez poziomów"; }
html:lang(fr) body.permanent-awards-page .permanent-public-grid::before { content: "Récompenses sans niveaux"; }
html:lang(es) body.permanent-awards-page .permanent-public-grid::before { content: "Premios sin niveles"; }
html:lang(pt) body.permanent-awards-page .permanent-public-grid::before { content: "Prémios sem níveis"; }

body.permanent-awards-page .permanent-public-grid > article[data-award-id="full-spectrum"] { order:10001 !important; }
body.permanent-awards-page .permanent-public-grid > article[data-award-id="all-modes"] { order:10002 !important; }

@media (min-width:701px) {
  body.permanent-awards-page .permanent-public-grid > article[data-award-id="full-spectrum"],
  body.permanent-awards-page .permanent-public-grid > article[data-award-id="all-modes"] {
    grid-column:span 3 !important;
    width:auto !important;
    max-width:none !important;
    min-width:0 !important;
  }
}
@media (max-width:700px) {
  body.permanent-awards-page .permanent-public-grid::before { margin-top:4px;padding-top:12px; }
  body.permanent-awards-page .permanent-public-grid > article[data-award-id="full-spectrum"],
  body.permanent-awards-page .permanent-public-grid > article[data-award-id="all-modes"] {
    grid-column:1 / -1 !important;
  }
}
/* TOTA_HF53P_AWARDS_ORDER_INTERNATIONAL_FULLWIDTH
   Pouze pořadí a rozložení karet Permanent Awards.
   Výpočty, login, cache a žádosti o diplom se nemění. */

/* První trojice: HF | VHF/UHF | Band Explorer. */
body.permanent-awards-page .permanent-public-grid > article[data-award-id="hf-explorer"] {
  order: -300 !important;
}
body.permanent-awards-page .permanent-public-grid > article[data-award-id="vhf-uhf-explorer"] {
  order: -299 !important;
}
body.permanent-awards-page .permanent-public-grid > article[data-award-id="band-explorer"] {
  order: -298 !important;
}

/* Poslední trojice: International jako samostatný široký blok,
   potom oddělovač a Full Spectrum | All Modes. */
body.permanent-awards-page .permanent-public-grid > article[data-award-id="international-explorer"] {
  order: 9999 !important;
}
body.permanent-awards-page .permanent-public-grid::before {
  order: 10000 !important;
}
body.permanent-awards-page .permanent-public-grid > article[data-award-id="full-spectrum"] {
  order: 10001 !important;
}
body.permanent-awards-page .permanent-public-grid > article[data-award-id="all-modes"] {
  order: 10002 !important;
}

/* Desktop: 6 stop gridu = 3 běžné karty v řadě.
   International zabere všech 6; Full + All po 3 = 50/50. */
@media (min-width: 1181px) {
  body.permanent-awards-page .permanent-public-grid > article[data-award-id="international-explorer"] {
    grid-column: 1 / -1 !important;
    grid-column-start: 1 !important;
    grid-column-end: -1 !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
  }

  body.permanent-awards-page .permanent-public-grid > article[data-award-id="full-spectrum"],
  body.permanent-awards-page .permanent-public-grid > article[data-award-id="all-modes"] {
    grid-column: span 3 !important;
    grid-column-start: span 3 !important;
    grid-column-end: auto !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
  }

  /* International využije šířku smysluplně i uvnitř. */
  body.permanent-awards-catalog-page article[data-award-id="international-explorer"] .permanent-catalog-rules {
    display: grid !important;
    grid-template-columns: repeat(3,minmax(0,1fr)) !important;
    gap: 10px !important;
    align-items: start !important;
  }
  body.permanent-awards-my-results-page article[data-award-id="international-explorer"] .permanent-progress-panel {
    display: grid !important;
    grid-template-columns: repeat(3,minmax(0,1fr)) !important;
    gap: 10px !important;
    align-items: stretch !important;
  }
  body.permanent-awards-my-results-page article[data-award-id="international-explorer"] .permanent-progress-footer {
    grid-column: 1 / -1 !important;
  }
}

/* Notebook/tablet: 2 sloupce. International přes oba,
   Full + All každý přes jeden = stále 50/50. */
@media (min-width: 761px) and (max-width: 1180px) {
  body.permanent-awards-page .permanent-public-grid > article[data-award-id="international-explorer"] {
    grid-column: 1 / -1 !important;
    grid-column-start: 1 !important;
    grid-column-end: -1 !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
  }

  body.permanent-awards-page .permanent-public-grid > article[data-award-id="full-spectrum"],
  body.permanent-awards-page .permanent-public-grid > article[data-award-id="all-modes"] {
    grid-column: span 1 !important;
    grid-column-start: span 1 !important;
    grid-column-end: auto !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
  }

  body.permanent-awards-catalog-page article[data-award-id="international-explorer"] .permanent-catalog-rules,
  body.permanent-awards-my-results-page article[data-award-id="international-explorer"] .permanent-progress-panel {
    display: grid !important;
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
    gap: 9px !important;
  }
  body.permanent-awards-my-results-page article[data-award-id="international-explorer"] .permanent-progress-footer {
    grid-column: 1 / -1 !important;
  }
}

/* Mobil: vše pod sebou. */
@media (max-width: 760px) {
  body.permanent-awards-page .permanent-public-grid > article[data-award-id="international-explorer"],
  body.permanent-awards-page .permanent-public-grid > article[data-award-id="full-spectrum"],
  body.permanent-awards-page .permanent-public-grid > article[data-award-id="all-modes"] {
    grid-column: 1 / -1 !important;
    grid-column-start: 1 !important;
    grid-column-end: -1 !important;
    width: auto !important;
    min-width: 0 !important;
  }
  body.permanent-awards-catalog-page article[data-award-id="international-explorer"] .permanent-catalog-rules,
  body.permanent-awards-my-results-page article[data-award-id="international-explorer"] .permanent-progress-panel {
    grid-template-columns: 1fr !important;
  }
}
/* TOTA_HF53R_PUBLIC_EXACT_ORDER_COMBINED_LAYOUT
   POUZE veřejný katalog bez přihlášení (body.permanent-awards-catalog-page).
   Osobní výsledky po přihlášení se tímto blokem NEMĚNÍ.

   Desktop:
   1) HF | VHF/UHF | Band
   2) PHONE | CW | DIGI
   3) Community | Activity | R2R Pair
   4) Complete 50 % | All-Round 50 %
   5) Grand Slam 100 %
   6) International 100 %
   7) Ocenění bez úrovní
   8) Full Spectrum 50 % | All Modes 50 %
*/

/* Přesné pořadí – včetně skutečného legacy ID vhf-explorer. */
body.permanent-awards-catalog-page .permanent-public-grid > article[data-award-id="hf-explorer"]             { order:10 !important; }
body.permanent-awards-catalog-page .permanent-public-grid > article[data-award-id="vhf-explorer"],
body.permanent-awards-catalog-page .permanent-public-grid > article[data-award-id="vhf-uhf-explorer"],
body.permanent-awards-catalog-page .permanent-public-grid > article[data-award-id="vhf-uhf"]                { order:11 !important; }
body.permanent-awards-catalog-page .permanent-public-grid > article[data-award-id="band-explorer"]           { order:12 !important; }

body.permanent-awards-catalog-page .permanent-public-grid > article[data-award-id="phone-award"]             { order:20 !important; }
body.permanent-awards-catalog-page .permanent-public-grid > article[data-award-id="cw-award"]                { order:21 !important; }
body.permanent-awards-catalog-page .permanent-public-grid > article[data-award-id="digi-award"]              { order:22 !important; }

body.permanent-awards-catalog-page .permanent-public-grid > article[data-award-id="community-explorer"]      { order:30 !important; }
body.permanent-awards-catalog-page .permanent-public-grid > article[data-award-id="activity-marathon"]       { order:31 !important; }
body.permanent-awards-catalog-page .permanent-public-grid > article[data-award-id="r2r-pair-collector"]      { order:32 !important; }

body.permanent-awards-catalog-page .permanent-public-grid > article[data-award-id="complete-operator"]       { order:40 !important; }
body.permanent-awards-catalog-page .permanent-public-grid > article[data-award-id="all-round"]               { order:41 !important; }
body.permanent-awards-catalog-page .permanent-public-grid > article[data-award-id="grand-slam"]              { order:42 !important; }

body.permanent-awards-catalog-page .permanent-public-grid > article[data-award-id="international-explorer"]  { order:50 !important; }
body.permanent-awards-catalog-page .permanent-public-grid::before                                              { order:60 !important; }
body.permanent-awards-catalog-page .permanent-public-grid > article[data-award-id="full-spectrum"]           { order:61 !important; }
body.permanent-awards-catalog-page .permanent-public-grid > article[data-award-id="all-modes"]               { order:62 !important; }

/* DESKTOP: 6 pomocných sloupců – třetina = span 2, polovina = span 3. */
@media (min-width:1181px){
  body.permanent-awards-catalog-page .permanent-public-grid{
    grid-template-columns:repeat(6,minmax(0,1fr)) !important;
    grid-auto-flow:row !important;
    align-items:stretch !important;
  }

  /* První tři klasické řady = 3 karty. */
  body.permanent-awards-catalog-page .permanent-public-grid > article[data-award-id="hf-explorer"],
  body.permanent-awards-catalog-page .permanent-public-grid > article[data-award-id="vhf-explorer"],
  body.permanent-awards-catalog-page .permanent-public-grid > article[data-award-id="vhf-uhf-explorer"],
  body.permanent-awards-catalog-page .permanent-public-grid > article[data-award-id="vhf-uhf"],
  body.permanent-awards-catalog-page .permanent-public-grid > article[data-award-id="band-explorer"],
  body.permanent-awards-catalog-page .permanent-public-grid > article[data-award-id="phone-award"],
  body.permanent-awards-catalog-page .permanent-public-grid > article[data-award-id="cw-award"],
  body.permanent-awards-catalog-page .permanent-public-grid > article[data-award-id="digi-award"],
  body.permanent-awards-catalog-page .permanent-public-grid > article[data-award-id="community-explorer"],
  body.permanent-awards-catalog-page .permanent-public-grid > article[data-award-id="activity-marathon"],
  body.permanent-awards-catalog-page .permanent-public-grid > article[data-award-id="r2r-pair-collector"]{
    grid-column:span 2 !important;
    width:auto !important;
    max-width:none !important;
    min-width:0 !important;
  }

  /* Complete + All-Round = 50/50. */
  body.permanent-awards-catalog-page .permanent-public-grid > article[data-award-id="complete-operator"],
  body.permanent-awards-catalog-page .permanent-public-grid > article[data-award-id="all-round"]{
    grid-column:span 3 !important;
    width:auto !important;
    max-width:none !important;
    min-width:0 !important;
  }
  body.permanent-awards-catalog-page article[data-award-id="complete-operator"] .permanent-catalog-rules,
  body.permanent-awards-catalog-page article[data-award-id="all-round"] .permanent-catalog-rules{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:8px !important;
    align-items:start !important;
  }

  /* Grand Slam = celý další řádek. */
  body.permanent-awards-catalog-page .permanent-public-grid > article[data-award-id="grand-slam"]{
    grid-column:1 / -1 !important;
    width:auto !important;
    max-width:none !important;
    min-width:0 !important;
  }
  body.permanent-awards-catalog-page article[data-award-id="grand-slam"] .permanent-catalog-rules{
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    gap:10px !important;
    align-items:start !important;
  }

  /* International = celý řádek. */
  body.permanent-awards-catalog-page .permanent-public-grid > article[data-award-id="international-explorer"]{
    grid-column:1 / -1 !important;
    width:auto !important;
    max-width:none !important;
    min-width:0 !important;
  }
  body.permanent-awards-catalog-page article[data-award-id="international-explorer"] .permanent-catalog-rules{
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    gap:10px !important;
    align-items:start !important;
  }

  /* Poslední dvojice = 50/50. */
  body.permanent-awards-catalog-page .permanent-public-grid > article[data-award-id="full-spectrum"],
  body.permanent-awards-catalog-page .permanent-public-grid > article[data-award-id="all-modes"]{
    grid-column:span 3 !important;
    width:auto !important;
    max-width:none !important;
    min-width:0 !important;
  }
}

/* Notebook/tablet: dvě karty v řadě. Grand Slam a International zůstávají 100 %. */
@media (min-width:761px) and (max-width:1180px){
  body.permanent-awards-catalog-page .permanent-public-grid{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    align-items:stretch !important;
  }
  body.permanent-awards-catalog-page .permanent-public-grid > article{
    grid-column:span 1 !important;
    width:auto !important;
    min-width:0 !important;
  }
  body.permanent-awards-catalog-page .permanent-public-grid > article[data-award-id="grand-slam"],
  body.permanent-awards-catalog-page .permanent-public-grid > article[data-award-id="international-explorer"]{
    grid-column:1 / -1 !important;
  }
  body.permanent-awards-catalog-page article[data-award-id="complete-operator"] .permanent-catalog-rules,
  body.permanent-awards-catalog-page article[data-award-id="all-round"] .permanent-catalog-rules{
    grid-template-columns:1fr !important;
  }
  body.permanent-awards-catalog-page article[data-award-id="grand-slam"] .permanent-catalog-rules,
  body.permanent-awards-catalog-page article[data-award-id="international-explorer"] .permanent-catalog-rules{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
}

/* Mobil: vše pod sebe. */
@media (max-width:760px){
  body.permanent-awards-catalog-page .permanent-public-grid{
    grid-template-columns:1fr !important;
  }
  body.permanent-awards-catalog-page .permanent-public-grid > article{
    grid-column:1 / -1 !important;
    width:auto !important;
    min-width:0 !important;
  }
  body.permanent-awards-catalog-page article[data-award-id="complete-operator"] .permanent-catalog-rules,
  body.permanent-awards-catalog-page article[data-award-id="all-round"] .permanent-catalog-rules,
  body.permanent-awards-catalog-page article[data-award-id="grand-slam"] .permanent-catalog-rules,
  body.permanent-awards-catalog-page article[data-award-id="international-explorer"] .permanent-catalog-rules{
    grid-template-columns:1fr !important;
  }
}
/* TOTA_HF53S_COMPACT_MY_RESULTS
   POUZE přihlášené / osobní výsledky (body.permanent-awards-my-results-page).
   Veřejný katalog 53R se tímto blokem nemění.

   Desktop layout:
   HF | VHF/UHF | Band
   PHONE | CW | DIGI
   Community | Activity | R2R
   Complete 50 % | All-Round 50 %
   Grand Slam 100 %
   International 100 %
   Ocenění bez úrovní
   Full Spectrum 50 % | All Modes 50 %
*/

/* ----- přesné pořadí pouze pro Moje výsledky ----- */
body.permanent-awards-my-results-page .permanent-public-grid > article[data-award-id="hf-explorer"]            { order:10 !important; }
body.permanent-awards-my-results-page .permanent-public-grid > article[data-award-id="vhf-explorer"],
body.permanent-awards-my-results-page .permanent-public-grid > article[data-award-id="vhf-uhf-explorer"],
body.permanent-awards-my-results-page .permanent-public-grid > article[data-award-id="vhf-uhf"]               { order:11 !important; }
body.permanent-awards-my-results-page .permanent-public-grid > article[data-award-id="band-explorer"]          { order:12 !important; }
body.permanent-awards-my-results-page .permanent-public-grid > article[data-award-id="phone-award"]            { order:20 !important; }
body.permanent-awards-my-results-page .permanent-public-grid > article[data-award-id="cw-award"]               { order:21 !important; }
body.permanent-awards-my-results-page .permanent-public-grid > article[data-award-id="digi-award"]             { order:22 !important; }
body.permanent-awards-my-results-page .permanent-public-grid > article[data-award-id="community-explorer"]     { order:30 !important; }
body.permanent-awards-my-results-page .permanent-public-grid > article[data-award-id="activity-marathon"]      { order:31 !important; }
body.permanent-awards-my-results-page .permanent-public-grid > article[data-award-id="r2r-pair-collector"]     { order:32 !important; }
body.permanent-awards-my-results-page .permanent-public-grid > article[data-award-id="complete-operator"]      { order:40 !important; }
body.permanent-awards-my-results-page .permanent-public-grid > article[data-award-id="all-round"]              { order:41 !important; }
body.permanent-awards-my-results-page .permanent-public-grid > article[data-award-id="grand-slam"]             { order:50 !important; }
body.permanent-awards-my-results-page .permanent-public-grid > article[data-award-id="international-explorer"] { order:60 !important; }
/* Full Spectrum / All Modes ponecháváme na 10001/10002 z 53K. */

/* ----- kompaktnější vnitřek všech osobních karet ----- */
body.permanent-awards-my-results-page .permanent-public-grid{
  align-items:start !important;
}
body.permanent-awards-my-results-page .permanent-public-grid > article.permanent-card{
  align-self:start !important;
  height:auto !important;
  min-height:0 !important;
}
body.permanent-awards-my-results-page .permanent-card .challenge-list-cover{
  min-height:48px !important;
  padding:7px 10px !important;
}
body.permanent-awards-my-results-page .permanent-card-title-icon{
  width:30px !important;
  height:30px !important;
  flex-basis:30px !important;
  border-radius:8px !important;
  font-size:.92rem !important;
}
body.permanent-awards-my-results-page .permanent-card-title-text{
  font-size:.82rem !important;
  line-height:1.12 !important;
}
body.permanent-awards-my-results-page .permanent-card .challenge-list-body{
  display:flex !important;
  flex-direction:column !important;
  justify-content:flex-start !important;
  height:auto !important;
  min-height:0 !important;
  padding:9px 10px 8px !important;
}
body.permanent-awards-my-results-page .permanent-card-description{
  margin:0 0 7px !important;
  min-height:0 !important;
  color:#415568 !important;
  font-size:.69rem !important;
  line-height:1.30 !important;
}
body.permanent-awards-my-results-page .permanent-rule-note{
  margin:0 0 7px !important;
  padding:6px 8px !important;
  gap:6px !important;
  font-size:.65rem !important;
  line-height:1.28 !important;
}
body.permanent-awards-my-results-page .permanent-result-summary{
  gap:4px !important;
  margin:0 0 6px !important;
}
body.permanent-awards-my-results-page .permanent-status-badge{
  min-height:20px !important;
  padding:3px 7px !important;
  gap:2px !important;
  font-size:.61rem !important;
  line-height:1.05 !important;
}

/* ----- progress: tenčí a kratší ----- */
body.permanent-awards-my-results-page .permanent-progress-panel{
  display:grid !important;
  grid-template-columns:1fr;
  gap:5px !important;
  margin:0 !important;
  padding:0 !important;
}
body.permanent-awards-my-results-page .permanent-progress-item{
  padding:6px 7px 5px !important;
  border-radius:8px !important;
}
body.permanent-awards-my-results-page .permanent-progress-head{
  gap:6px !important;
  font-size:.66rem !important;
  line-height:1.10 !important;
}
body.permanent-awards-my-results-page .permanent-progress-head > b{
  font-size:.68rem !important;
}
body.permanent-awards-my-results-page .permanent-progress-goal{
  margin-top:2px !important;
  font-size:.58rem !important;
  line-height:1.12 !important;
}
body.permanent-awards-my-results-page .permanent-progress-track{
  height:6px !important;
  margin-top:4px !important;
}
body.permanent-awards-my-results-page .permanent-progress-foot{
  margin-top:3px !important;
  gap:5px !important;
  font-size:.57rem !important;
  line-height:1.05 !important;
}
body.permanent-awards-my-results-page .permanent-progress-footer{
  grid-column:1 / -1 !important;
  padding:4px 6px !important;
  border-radius:7px !important;
  font-size:.58rem !important;
  line-height:1.15 !important;
}

/* ----- Dostupné diplomy: místo velkého formuláře kompaktní pás ----- */
body.permanent-awards-my-results-page .permanent-request-box{
  margin:7px 0 0 !important;
  padding:7px !important;
  border:1px solid #dfc985 !important;
  border-radius:9px !important;
  background:#fffaf0 !important;
}
body.permanent-awards-my-results-page .permanent-request-heading{
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:7px !important;
  margin:0 0 5px !important;
}
body.permanent-awards-my-results-page .permanent-request-heading h4{
  margin:0 !important;
  color:#0b416d !important;
  font-size:.66rem !important;
  line-height:1.1 !important;
}
body.permanent-awards-my-results-page .permanent-request-heading > span{
  display:inline-grid !important;
  place-items:center !important;
  min-width:19px !important;
  height:19px !important;
  padding:0 5px !important;
  border-radius:999px !important;
  background:#0d67a6 !important;
  color:#fff !important;
  font-size:.58rem !important;
  font-weight:900 !important;
}
body.permanent-awards-my-results-page .permanent-request-current{
  display:flex !important;
  align-items:center !important;
  gap:4px !important;
  margin:0 0 5px !important;
  padding:4px 6px !important;
  border-radius:6px !important;
  background:#f4ecd4 !important;
  font-size:.58rem !important;
  line-height:1.15 !important;
}
body.permanent-awards-my-results-page .permanent-request-current span{
  min-width:0 !important;
}
body.permanent-awards-my-results-page .permanent-request-levels{
  display:grid !important;
  grid-template-columns:repeat(auto-fit,minmax(135px,1fr)) !important;
  gap:4px !important;
}
body.permanent-awards-my-results-page .permanent-request-option,
body.permanent-awards-my-results-page .permanent-request-state{
  min-width:0 !important;
  margin:0 !important;
  padding:5px 6px !important;
  border:1px solid #e2d2a7 !important;
  border-radius:7px !important;
  background:#fffdf8 !important;
  font-size:.59rem !important;
  line-height:1.10 !important;
}
body.permanent-awards-my-results-page .permanent-request-option{
  display:grid !important;
  grid-template-columns:auto minmax(0,1fr) !important;
  column-gap:5px !important;
  row-gap:1px !important;
  align-items:center !important;
}
body.permanent-awards-my-results-page .permanent-request-option input{
  grid-row:1 / span 2 !important;
  margin:0 !important;
}
body.permanent-awards-my-results-page .permanent-request-level-name{
  min-width:0 !important;
  font-size:.61rem !important;
  font-weight:900 !important;
}
body.permanent-awards-my-results-page .permanent-request-option small{
  min-width:0 !important;
  color:#607080 !important;
  font-size:.52rem !important;
  line-height:1.08 !important;
}
body.permanent-awards-my-results-page .permanent-request-state{
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:6px !important;
}
body.permanent-awards-my-results-page .permanent-request-state b{
  font-size:.53rem !important;
  text-align:right !important;
}

/* ----- Podmínky: vždy krátká spodní lišta ----- */
body.permanent-awards-my-results-page .permanent-public-detail{
  margin-top:6px !important;
}
body.permanent-awards-my-results-page .permanent-public-detail > summary{
  min-height:25px !important;
  padding:5px 7px !important;
  border-radius:7px !important;
  font-size:.59rem !important;
  line-height:1.05 !important;
}
body.permanent-awards-my-results-page .permanent-public-detail > summary::after{
  font-size:.82rem !important;
}
body.permanent-awards-my-results-page .permanent-public-detail-body{
  margin-top:5px !important;
}

/* ----- DESKTOP: stejná logika pořadí jako veřejný katalog ----- */
@media (min-width:1181px){
  body.permanent-awards-my-results-page .permanent-public-grid{
    grid-template-columns:repeat(6,minmax(0,1fr)) !important;
    grid-auto-flow:row !important;
    gap:10px !important;
  }

  body.permanent-awards-my-results-page .permanent-public-grid > article[data-award-id="hf-explorer"],
  body.permanent-awards-my-results-page .permanent-public-grid > article[data-award-id="vhf-explorer"],
  body.permanent-awards-my-results-page .permanent-public-grid > article[data-award-id="vhf-uhf-explorer"],
  body.permanent-awards-my-results-page .permanent-public-grid > article[data-award-id="vhf-uhf"],
  body.permanent-awards-my-results-page .permanent-public-grid > article[data-award-id="band-explorer"],
  body.permanent-awards-my-results-page .permanent-public-grid > article[data-award-id="phone-award"],
  body.permanent-awards-my-results-page .permanent-public-grid > article[data-award-id="cw-award"],
  body.permanent-awards-my-results-page .permanent-public-grid > article[data-award-id="digi-award"],
  body.permanent-awards-my-results-page .permanent-public-grid > article[data-award-id="community-explorer"],
  body.permanent-awards-my-results-page .permanent-public-grid > article[data-award-id="activity-marathon"],
  body.permanent-awards-my-results-page .permanent-public-grid > article[data-award-id="r2r-pair-collector"]{
    grid-column:span 2 !important;
    width:auto !important;
    max-width:none !important;
    min-width:0 !important;
  }

  body.permanent-awards-my-results-page .permanent-public-grid > article[data-award-id="complete-operator"],
  body.permanent-awards-my-results-page .permanent-public-grid > article[data-award-id="all-round"]{
    grid-column:span 3 !important;
    width:auto !important;
    max-width:none !important;
    min-width:0 !important;
  }

  body.permanent-awards-my-results-page .permanent-public-grid > article[data-award-id="grand-slam"],
  body.permanent-awards-my-results-page .permanent-public-grid > article[data-award-id="international-explorer"]{
    grid-column:1 / -1 !important;
    width:auto !important;
    max-width:none !important;
    min-width:0 !important;
  }

  body.permanent-awards-my-results-page .permanent-public-grid > article[data-award-id="full-spectrum"],
  body.permanent-awards-my-results-page .permanent-public-grid > article[data-award-id="all-modes"]{
    grid-column:span 3 !important;
    width:auto !important;
    max-width:none !important;
    min-width:0 !important;
  }

  /* V kombinovaných kartách se jednotlivé progressy skládají vedle sebe. */
  body.permanent-awards-my-results-page article[data-award-id="complete-operator"] .permanent-progress-panel,
  body.permanent-awards-my-results-page article[data-award-id="all-round"] .permanent-progress-panel{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
  body.permanent-awards-my-results-page article[data-award-id="grand-slam"] .permanent-progress-panel,
  body.permanent-awards-my-results-page article[data-award-id="international-explorer"] .permanent-progress-panel{
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  }
}

/* Notebook: dvě karty, Grand Slam a International přes celou šířku. */
@media (min-width:761px) and (max-width:1180px){
  body.permanent-awards-my-results-page .permanent-public-grid{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:9px !important;
  }
  body.permanent-awards-my-results-page .permanent-public-grid > article{
    grid-column:span 1 !important;
    min-width:0 !important;
  }
  body.permanent-awards-my-results-page .permanent-public-grid > article[data-award-id="grand-slam"],
  body.permanent-awards-my-results-page .permanent-public-grid > article[data-award-id="international-explorer"]{
    grid-column:1 / -1 !important;
  }
  body.permanent-awards-my-results-page article[data-award-id="grand-slam"] .permanent-progress-panel,
  body.permanent-awards-my-results-page article[data-award-id="international-explorer"] .permanent-progress-panel{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
}

/* Mobil: vše pod sebe. */
@media (max-width:760px){
  body.permanent-awards-my-results-page .permanent-public-grid{
    grid-template-columns:1fr !important;
    gap:8px !important;
  }
  body.permanent-awards-my-results-page .permanent-public-grid > article{
    grid-column:1 / -1 !important;
    width:auto !important;
    min-width:0 !important;
  }
  body.permanent-awards-my-results-page .permanent-progress-panel{
    grid-template-columns:1fr !important;
  }
  body.permanent-awards-my-results-page .permanent-request-levels{
    grid-template-columns:1fr !important;
  }
}
/* TOTA_HF53T_EQUAL_HEIGHTS_ALIGNMENT
   POUZE osobní / přihlášené Moje výsledky.
   Navazuje na 53S. Veřejný katalog se nemění.

   Cíl:
   - stejné výšky karet v jednom grid řádku,
   - stejné vodorovné osy popis -> stav -> progress,
   - Podmínky vždy u spodní hrany,
   - 50/50 dvojice mají stejnou výšku,
   - bez pevné absolutní výšky celé karty.
*/

/* Zruší 53S start-alignment a nechá CSS Grid dělat to, k čemu je určený. */
body.permanent-awards-my-results-page .permanent-public-grid{
  align-items:stretch !important;
}
body.permanent-awards-my-results-page .permanent-public-grid > article.permanent-card{
  align-self:stretch !important;
  height:100% !important;
  min-height:0 !important;
}
body.permanent-awards-my-results-page .permanent-card .challenge-list-body{
  display:flex !important;
  flex-direction:column !important;
  flex:1 1 auto !important;
  height:100% !important;
  min-height:0 !important;
}

/* Spodní lišta Podmínky je vždy přesně na spodní hraně karty. */
body.permanent-awards-my-results-page .permanent-card .permanent-public-detail{
  margin-top:auto !important;
  padding-top:6px !important;
}

/* ---------- VODOROVNÉ OSY: běžné 1/3 karty ---------- */
@media (min-width:1181px){
  body.permanent-awards-my-results-page .permanent-public-grid > article[data-award-id="hf-explorer"] .permanent-card-description,
  body.permanent-awards-my-results-page .permanent-public-grid > article[data-award-id="vhf-explorer"] .permanent-card-description,
  body.permanent-awards-my-results-page .permanent-public-grid > article[data-award-id="vhf-uhf-explorer"] .permanent-card-description,
  body.permanent-awards-my-results-page .permanent-public-grid > article[data-award-id="vhf-uhf"] .permanent-card-description,
  body.permanent-awards-my-results-page .permanent-public-grid > article[data-award-id="band-explorer"] .permanent-card-description,
  body.permanent-awards-my-results-page .permanent-public-grid > article[data-award-id="phone-award"] .permanent-card-description,
  body.permanent-awards-my-results-page .permanent-public-grid > article[data-award-id="cw-award"] .permanent-card-description,
  body.permanent-awards-my-results-page .permanent-public-grid > article[data-award-id="digi-award"] .permanent-card-description,
  body.permanent-awards-my-results-page .permanent-public-grid > article[data-award-id="community-explorer"] .permanent-card-description,
  body.permanent-awards-my-results-page .permanent-public-grid > article[data-award-id="activity-marathon"] .permanent-card-description,
  body.permanent-awards-my-results-page .permanent-public-grid > article[data-award-id="r2r-pair-collector"] .permanent-card-description{
    min-height:34px !important;
    margin-bottom:6px !important;
  }

  /* Stav Dosaženo / Další cíl začíná i končí ve stejné zóně. */
  body.permanent-awards-my-results-page .permanent-public-grid > article[data-award-id="hf-explorer"] .permanent-result-summary,
  body.permanent-awards-my-results-page .permanent-public-grid > article[data-award-id="vhf-explorer"] .permanent-result-summary,
  body.permanent-awards-my-results-page .permanent-public-grid > article[data-award-id="vhf-uhf-explorer"] .permanent-result-summary,
  body.permanent-awards-my-results-page .permanent-public-grid > article[data-award-id="vhf-uhf"] .permanent-result-summary,
  body.permanent-awards-my-results-page .permanent-public-grid > article[data-award-id="band-explorer"] .permanent-result-summary,
  body.permanent-awards-my-results-page .permanent-public-grid > article[data-award-id="phone-award"] .permanent-result-summary,
  body.permanent-awards-my-results-page .permanent-public-grid > article[data-award-id="cw-award"] .permanent-result-summary,
  body.permanent-awards-my-results-page .permanent-public-grid > article[data-award-id="digi-award"] .permanent-result-summary,
  body.permanent-awards-my-results-page .permanent-public-grid > article[data-award-id="community-explorer"] .permanent-result-summary,
  body.permanent-awards-my-results-page .permanent-public-grid > article[data-award-id="activity-marathon"] .permanent-result-summary,
  body.permanent-awards-my-results-page .permanent-public-grid > article[data-award-id="r2r-pair-collector"] .permanent-result-summary{
    display:flex !important;
    align-items:center !important;
    align-content:center !important;
    min-height:26px !important;
    margin-bottom:6px !important;
  }

  /* Jeden metrický progress = shodná výška zóny u sousedních karet. */
  body.permanent-awards-my-results-page .permanent-public-grid > article[data-award-id="hf-explorer"] .permanent-progress-panel,
  body.permanent-awards-my-results-page .permanent-public-grid > article[data-award-id="vhf-explorer"] .permanent-progress-panel,
  body.permanent-awards-my-results-page .permanent-public-grid > article[data-award-id="vhf-uhf-explorer"] .permanent-progress-panel,
  body.permanent-awards-my-results-page .permanent-public-grid > article[data-award-id="vhf-uhf"] .permanent-progress-panel,
  body.permanent-awards-my-results-page .permanent-public-grid > article[data-award-id="band-explorer"] .permanent-progress-panel,
  body.permanent-awards-my-results-page .permanent-public-grid > article[data-award-id="phone-award"] .permanent-progress-panel,
  body.permanent-awards-my-results-page .permanent-public-grid > article[data-award-id="cw-award"] .permanent-progress-panel,
  body.permanent-awards-my-results-page .permanent-public-grid > article[data-award-id="digi-award"] .permanent-progress-panel,
  body.permanent-awards-my-results-page .permanent-public-grid > article[data-award-id="community-explorer"] .permanent-progress-panel,
  body.permanent-awards-my-results-page .permanent-public-grid > article[data-award-id="activity-marathon"] .permanent-progress-panel,
  body.permanent-awards-my-results-page .permanent-public-grid > article[data-award-id="r2r-pair-collector"] .permanent-progress-panel{
    min-height:58px !important;
    align-content:start !important;
  }

  /* Complete + All-Round: stejná vnější výška a stejné horní osy. */
  body.permanent-awards-my-results-page article[data-award-id="complete-operator"] .permanent-card-description,
  body.permanent-awards-my-results-page article[data-award-id="all-round"] .permanent-card-description{
    min-height:31px !important;
  }
  body.permanent-awards-my-results-page article[data-award-id="complete-operator"] .permanent-rule-note,
  body.permanent-awards-my-results-page article[data-award-id="all-round"] .permanent-rule-note{
    min-height:31px !important;
    display:flex !important;
    align-items:center !important;
  }
  body.permanent-awards-my-results-page article[data-award-id="complete-operator"] .permanent-result-summary,
  body.permanent-awards-my-results-page article[data-award-id="all-round"] .permanent-result-summary{
    min-height:26px !important;
    display:flex !important;
    align-items:center !important;
  }

  /* Full Spectrum + All Modes: stejné horní osy i výška páru. */
  body.permanent-awards-my-results-page article[data-award-id="full-spectrum"] .permanent-card-description,
  body.permanent-awards-my-results-page article[data-award-id="all-modes"] .permanent-card-description{
    min-height:34px !important;
  }
  body.permanent-awards-my-results-page article[data-award-id="full-spectrum"] .permanent-result-summary,
  body.permanent-awards-my-results-page article[data-award-id="all-modes"] .permanent-result-summary{
    min-height:26px !important;
    display:flex !important;
    align-items:center !important;
  }
}

/* Notebook: stejná výška sousedních dvojic, bez vnucování desktopových min-height os. */
@media (min-width:761px) and (max-width:1180px){
  body.permanent-awards-my-results-page .permanent-public-grid{
    align-items:stretch !important;
  }
  body.permanent-awards-my-results-page .permanent-public-grid > article.permanent-card{
    align-self:stretch !important;
    height:100% !important;
  }
  body.permanent-awards-my-results-page .permanent-card .challenge-list-body{
    height:100% !important;
  }
  body.permanent-awards-my-results-page .permanent-card .permanent-public-detail{
    margin-top:auto !important;
  }
}

/* Mobil nechává přirozenou výšku – tam není vodorovná dvojice/trojice k zarovnání. */
@media (max-width:760px){
  body.permanent-awards-my-results-page .permanent-public-grid > article.permanent-card{
    height:auto !important;
  }
  body.permanent-awards-my-results-page .permanent-card .challenge-list-body{
    height:auto !important;
  }
}
/* TOTA_HF53U_COMPLETE_ALLROUND_DIPLOMA_ALIGNMENT
   POUZE osobní / přihlášené Moje výsledky.
   Mikro-fix nad 53T: srovná horní hranu sekce Dostupné diplomy
   u TOTA Complete Operator a TOTA All-Round.
*/
@media (min-width:761px){
  /* Oba spodní bloky (Dostupné diplomy + Podmínky) se kotví jako jeden celek ke spodku karty. */
  body.permanent-awards-my-results-page article[data-award-id="complete-operator"] .permanent-request-box,
  body.permanent-awards-my-results-page article[data-award-id="all-round"] .permanent-request-box{
    margin-top:auto !important;
    min-height:101px !important;
    display:flex !important;
    flex-direction:column !important;
  }

  /* Obě žádosti mají shodnou vnitřní výšku; řádek diplomu zůstane u spodku boxu. */
  body.permanent-awards-my-results-page article[data-award-id="complete-operator"] .permanent-request-current,
  body.permanent-awards-my-results-page article[data-award-id="all-round"] .permanent-request-current{
    min-height:22px !important;
  }
  body.permanent-awards-my-results-page article[data-award-id="complete-operator"] .permanent-request-levels,
  body.permanent-awards-my-results-page article[data-award-id="all-round"] .permanent-request-levels{
    margin-top:auto !important;
  }

  /* 53T kotví Podmínky přes margin-top:auto. U tohoto páru auto přesuneme na Dostupné diplomy,
     aby oba request boxy začínaly na stejné vodorovné ose. */
  body.permanent-awards-my-results-page article[data-award-id="complete-operator"] .permanent-public-detail,
  body.permanent-awards-my-results-page article[data-award-id="all-round"] .permanent-public-detail{
    margin-top:7px !important;
    padding-top:0 !important;
  }
}
/* TOTA_HF54H4_READABLE_MY_RESULTS
   Čitelnost osobních Permanent Awards po kompaktním 53S.
   Rozložení a pořadí karet zůstává stejné; zvětšují se jen texty a ovládací prvky.
*/
body.permanent-awards-my-results-page .permanent-card-title-text{
  font-size:.92rem !important;
  line-height:1.18 !important;
}
body.permanent-awards-my-results-page .permanent-card-description{
  font-size:.77rem !important;
  line-height:1.38 !important;
}
body.permanent-awards-my-results-page .permanent-rule-note{
  font-size:.73rem !important;
  line-height:1.35 !important;
}
body.permanent-awards-my-results-page .permanent-status-badge{
  font-size:.70rem !important;
  line-height:1.15 !important;
  min-height:23px !important;
  padding:4px 8px !important;
}
body.permanent-awards-my-results-page .permanent-progress-head,
body.permanent-awards-my-results-page .permanent-progress-head > b{
  font-size:.73rem !important;
  line-height:1.18 !important;
}
body.permanent-awards-my-results-page .permanent-progress-goal{
  font-size:.68rem !important;
  line-height:1.20 !important;
}
body.permanent-awards-my-results-page .permanent-progress-foot{
  font-size:.67rem !important;
  line-height:1.18 !important;
}
body.permanent-awards-my-results-page .permanent-progress-footer{
  font-size:.69rem !important;
  line-height:1.22 !important;
}
body.permanent-awards-my-results-page .permanent-request-heading h4{
  font-size:.76rem !important;
  line-height:1.18 !important;
}
body.permanent-awards-my-results-page .permanent-request-heading > span{
  font-size:.67rem !important;
  min-width:21px !important;
  height:21px !important;
}
body.permanent-awards-my-results-page .permanent-request-current{
  font-size:.69rem !important;
  line-height:1.22 !important;
  padding:5px 7px !important;
}
body.permanent-awards-my-results-page .permanent-request-option,
body.permanent-awards-my-results-page .permanent-request-state{
  font-size:.70rem !important;
  line-height:1.18 !important;
  padding:6px 7px !important;
}
body.permanent-awards-my-results-page .permanent-request-level-name{
  font-size:.73rem !important;
  line-height:1.16 !important;
}
body.permanent-awards-my-results-page .permanent-request-option small{
  font-size:.66rem !important;
  line-height:1.16 !important;
}
body.permanent-awards-my-results-page .permanent-request-state b{
  font-size:.66rem !important;
  line-height:1.15 !important;
}
body.permanent-awards-my-results-page .permanent-public-detail > summary{
  font-size:.70rem !important;
  line-height:1.16 !important;
  min-height:28px !important;
  padding:6px 8px !important;
}
/* END_TOTA_HF54H4_READABLE_MY_RESULTS */
/* TOTA_HF54H5_READABLE_ALL_BOXES
   ČITELNOST VŠECH osobních Permanent Awards boxů.
   Nemění výpočty, hodnoty, pořadí ani šířky karet. Jen vrací text na normální čitelnou velikost.
*/
body.permanent-awards-my-results-page .permanent-card .challenge-list-cover{
  min-height:54px !important;
  padding:9px 12px !important;
}
body.permanent-awards-my-results-page .permanent-card-title-icon{
  width:34px !important;
  height:34px !important;
  flex-basis:34px !important;
  font-size:1rem !important;
}
body.permanent-awards-my-results-page .permanent-card-title-text{
  font-size:1.02rem !important;
  line-height:1.20 !important;
}
body.permanent-awards-my-results-page .permanent-card .challenge-list-body{
  padding:11px 12px 10px !important;
}
body.permanent-awards-my-results-page .permanent-card-description{
  margin:0 0 9px !important;
  font-size:.86rem !important;
  line-height:1.42 !important;
}
body.permanent-awards-my-results-page .permanent-rule-note{
  margin:0 0 9px !important;
  padding:8px 10px !important;
  gap:7px !important;
  font-size:.82rem !important;
  line-height:1.40 !important;
}
body.permanent-awards-my-results-page .permanent-result-summary{
  gap:6px !important;
  margin:0 0 8px !important;
  font-size:.80rem !important;
  line-height:1.25 !important;
}
body.permanent-awards-my-results-page .permanent-status-badge{
  min-height:26px !important;
  padding:5px 9px !important;
  gap:3px !important;
  font-size:.78rem !important;
  line-height:1.16 !important;
}

/* Progress boxy */
body.permanent-awards-my-results-page .permanent-progress-panel{
  gap:7px !important;
}
body.permanent-awards-my-results-page .permanent-progress-item{
  padding:8px 9px 7px !important;
}
body.permanent-awards-my-results-page .permanent-progress-head,
body.permanent-awards-my-results-page .permanent-progress-head > b,
body.permanent-awards-my-results-page .permanent-progress-head strong{
  font-size:.82rem !important;
  line-height:1.22 !important;
}
body.permanent-awards-my-results-page .permanent-progress-goal{
  margin-top:3px !important;
  font-size:.76rem !important;
  line-height:1.28 !important;
}
body.permanent-awards-my-results-page .permanent-progress-track{
  height:7px !important;
  margin-top:5px !important;
}
body.permanent-awards-my-results-page .permanent-progress-foot{
  margin-top:4px !important;
  gap:6px !important;
  font-size:.74rem !important;
  line-height:1.22 !important;
}
body.permanent-awards-my-results-page .permanent-progress-footer{
  padding:6px 8px !important;
  font-size:.76rem !important;
  line-height:1.28 !important;
}

/* Dostupné diplomy */
body.permanent-awards-my-results-page .permanent-request-box{
  margin:9px 0 0 !important;
  padding:9px !important;
}
body.permanent-awards-my-results-page .permanent-request-heading{
  gap:8px !important;
  margin:0 0 7px !important;
}
body.permanent-awards-my-results-page .permanent-request-heading h4{
  font-size:.84rem !important;
  line-height:1.22 !important;
}
body.permanent-awards-my-results-page .permanent-request-heading > span{
  min-width:23px !important;
  height:23px !important;
  font-size:.72rem !important;
}
body.permanent-awards-my-results-page .permanent-request-current{
  gap:5px !important;
  margin:0 0 7px !important;
  padding:6px 8px !important;
  font-size:.78rem !important;
  line-height:1.28 !important;
}
body.permanent-awards-my-results-page .permanent-request-levels{
  grid-template-columns:repeat(auto-fit,minmax(155px,1fr)) !important;
  gap:6px !important;
}
body.permanent-awards-my-results-page .permanent-request-option,
body.permanent-awards-my-results-page .permanent-request-state{
  padding:7px 8px !important;
  font-size:.78rem !important;
  line-height:1.24 !important;
}
body.permanent-awards-my-results-page .permanent-request-option{
  column-gap:7px !important;
  row-gap:2px !important;
}
body.permanent-awards-my-results-page .permanent-request-level-name{
  font-size:.82rem !important;
  line-height:1.20 !important;
}
body.permanent-awards-my-results-page .permanent-request-option small,
body.permanent-awards-my-results-page .permanent-request-state small{
  font-size:.74rem !important;
  line-height:1.22 !important;
}
body.permanent-awards-my-results-page .permanent-request-state b{
  font-size:.74rem !important;
  line-height:1.20 !important;
}

/* Podmínky + rozbalené detaily */
body.permanent-awards-my-results-page .permanent-public-detail{
  margin-top:8px !important;
}
body.permanent-awards-my-results-page .permanent-public-detail > summary{
  min-height:31px !important;
  padding:7px 9px !important;
  font-size:.78rem !important;
  line-height:1.20 !important;
}
body.permanent-awards-my-results-page .permanent-public-detail > summary::after{
  font-size:.95rem !important;
}
body.permanent-awards-my-results-page .permanent-public-detail-body{
  margin-top:7px !important;
  font-size:.78rem !important;
  line-height:1.40 !important;
}
body.permanent-awards-my-results-page .permanent-public-detail-body table,
body.permanent-awards-my-results-page .permanent-public-detail-body th,
body.permanent-awards-my-results-page .permanent-public-detail-body td,
body.permanent-awards-my-results-page .permanent-catalog-rules,
body.permanent-awards-my-results-page .permanent-catalog-rule{
  font-size:.78rem !important;
  line-height:1.35 !important;
}

/* Pojistka: žádný pomocný text uvnitř osobní karty nesmí spadnout do titěrných 0.5–0.6 rem. */
body.permanent-awards-my-results-page article.permanent-card small{
  font-size:.74rem !important;
  line-height:1.24 !important;
}

@media (max-width:760px){
  body.permanent-awards-my-results-page .permanent-card-title-text{font-size:1rem !important;}
  body.permanent-awards-my-results-page .permanent-card-description{font-size:.88rem !important;}
  body.permanent-awards-my-results-page .permanent-rule-note{font-size:.84rem !important;}
  body.permanent-awards-my-results-page .permanent-request-levels{grid-template-columns:1fr !important;}
}
/* END_TOTA_HF54H5_READABLE_ALL_BOXES */

/* TOTA_ALL_ROUND_HF_V2 – 5 simultaneous All-Round requirements */
body.permanent-awards-page article[data-award-id="all-round"] .permanent-progress-panel,
body.permanent-awards-my-results-page article[data-award-id="all-round"] .permanent-progress-panel {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 6px !important;
}
@media (max-width:1180px) {
    body.permanent-awards-page article[data-award-id="all-round"] .permanent-progress-panel,
    body.permanent-awards-my-results-page article[data-award-id="all-round"] .permanent-progress-panel {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}
@media (max-width:760px) {
    body.permanent-awards-page article[data-award-id="all-round"] .permanent-progress-panel,
    body.permanent-awards-my-results-page article[data-award-id="all-round"] .permanent-progress-panel {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}
