/* Автоматическая демонстрация на главной. */
#feis-home .home-demo-section {
    margin-top: 64px;
}

#feis-home .home-demo {
    overflow: hidden;
    border: 1px solid var(--home-line);
    border-radius: 20px;
    background: white;
}

#feis-home .home-demo-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 18px 24px;
    border-bottom: 1px solid var(--home-line);
}

#feis-home .home-demo-tabs {
    display: flex;
    padding: 4px;
    border-radius: 9px;
    background: #f1f5f8;
}

#feis-home .home-demo-tabs button {
    padding: 9px 17px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--home-muted);
    font-size: 12px;
    cursor: pointer;
}

#feis-home .home-demo-tabs button[aria-selected="true"] {
    background: white;
    color: var(--home-ink);
    box-shadow: 0 2px 5px #18334c0b;
}

#feis-home .home-demo-sample {
    color: #91a1ad;
    font-size: 11px;
}

#feis-home .home-demo-toolbar-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

#feis-home .home-demo-toolbar [data-demo-toggle] {
    min-height: 40px;
    padding: 7px 10px;
    border: 1px solid var(--home-line);
    border-radius: 7px;
    background: white;
    color: var(--home-muted);
    font-size: 11px;
    cursor: pointer;
}

#feis-home .home-demo-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 10px 24px;
    border-bottom: 1px solid var(--home-line);
    background: #fafcfd;
}

#feis-home .home-demo-slide-buttons {
    display: flex;
    gap: 4px;
}

#feis-home .home-demo-navigation button {
    min-width: 44px;
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid #dce8f1;
    border-radius: 8px;
    background: white;
    color: #54748c;
    font-size: 12px;
    cursor: pointer;
}

#feis-home .home-demo-navigation button:hover,
#feis-home .home-demo-navigation button[aria-current="step"] {
    border-color: #009eff;
    background: #eaf6ff;
    color: #006cad;
}

#feis-home .home-demo button:focus-visible,
#feis-home .home-demo input:focus-visible,
#feis-home .home-demo summary:focus-visible {
    outline: 2px solid #008ce0;
    outline-offset: 2px;
}

#feis-home .home-demo-panel {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    align-items: center;
    gap: 45px;
    min-height: 355px;
    padding: 34px;
    animation: home-step-enter 0.3s ease;
}

#feis-home .home-demo-number {
    color: var(--home-blue);
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 0.15em;
}

#feis-home .home-demo-copy h3 {
    margin: 13px 0;
    font-size: 26px;
    font-weight: bold;
    letter-spacing: -0.03em;
}

#feis-home .home-demo-copy p {
    color: var(--home-muted);
    font-size: 14px;
}

#feis-home .home-demo-step-dots {
    display: flex;
    gap: 6px;
    margin-top: 22px;
}

#feis-home .home-demo-step-dots span {
    width: 25px;
    height: 3px;
    border-radius: 3px;
    background: #dfebf2;
}

#feis-home .home-demo-step-dots span.is-current {
    background: var(--home-blue);
}

#feis-home .home-demo-screen {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #dbe7ee;
    border-radius: 12px;
    box-shadow: 0 12px 26px #18334c0a;
}

#feis-home .home-demo-screen-bar {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 11px 14px;
    background: #009eff;
}

#feis-home .home-demo-screen-bar > span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #ffffff80;
}

#feis-home .home-demo-screen-bar b {
    margin-left: auto;
    color: white;
    font-size: 10px;
    font-weight: normal;
}

#feis-home .home-demo-content {
    min-height: 280px;
    padding: 20px;
    background: #fff;
}

#feis-home .home-demo-screen-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 13px;
    font-weight: bold;
}

#feis-home .home-demo-add {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: #eaf6ff;
    color: #0086d6;
    font-size: 18px;
}

#feis-home .home-demo-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
}

#feis-home .home-demo-table th,
#feis-home .home-demo-table td {
    padding: 10px 5px;
    border-bottom: 1px solid #edf2f6;
    vertical-align: middle;
}

#feis-home .home-demo-table th {
    color: #8a9cac;
    font-size: 10px;
    font-weight: normal;
}

#feis-home .home-demo-table th:last-child,
#feis-home .home-demo-table td:last-child {
    text-align: right;
}

#feis-home .home-demo-tag {
    display: inline-block;
    padding: 4px 7px;
    border-radius: 5px;
    background: #f0f4f7;
    color: #7c8f9f;
    font-size: 10px;
}

#feis-home .home-demo-tag.is-ready {
    background: #e4f4e9;
    color: #3f8854;
}

#feis-home .home-demo-dances {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

#feis-home .home-demo-dances > div:not(.home-demo-best-result) {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 18px 5px;
    border: 1px solid #dfebf2;
    border-radius: 8px;
    font-size: 11px;
    text-align: center;
}

#feis-home .home-demo-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    box-sizing: border-box;
    border: 1px solid #009eff;
    border-radius: 4px;
    background: #009eff;
    color: white;
    font-size: 11px;
    line-height: 1;
}

#feis-home .home-demo-check.is-empty {
    border-color: #a9c6d9;
    background: transparent;
}

#feis-home .home-demo-place {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 32px;
    margin: -6px 0;
    padding: 0;
    border: 0;
    border-radius: 5px;
    background: transparent;
    cursor: pointer;
}

#feis-home .is-place-1 {
    --demo-medal-color: #c7a348;
}

#feis-home .is-place-2 {
    --demo-medal-color: #9eaab9;
}

#feis-home .is-place-3 {
    --demo-medal-color: #b9865f;
}

#feis-home .home-demo-place-marker {
    padding: 0 5px;
    border-radius: 4px;
    background: var(--demo-medal-color, white);
    color: #263b4d;
    font-size: 8px;
    opacity: 0.4;
}

#feis-home .home-demo-best-result {
    position: relative;
    margin-top: 14px;
    padding: 12px;
    border: 1px solid #d0e1ee;
    border-radius: 9px;
    background: #f7fbff;
    box-shadow: 0 5px 14px #18334c0d;
    font-size: 10px;
}

#feis-home .home-demo-best-result::before {
    position: absolute;
    top: -6px;
    left: calc(var(--demo-result-anchor, 16.6667%) - 5px);
    width: 10px;
    height: 10px;
    border-top: 1px solid #d0e1ee;
    border-left: 1px solid #d0e1ee;
    background: #f7fbff;
    content: '';
    transform: rotate(45deg);
}

#feis-home .home-demo-result-heading {
    display: flex;
    align-items: center;
    gap: 9px;
}

#feis-home .home-demo-result-medal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--demo-medal-color, white);
    color: #263b4d;
    font-size: 13px;
    font-weight: bold;
}

#feis-home .home-demo-result-heading > div {
    min-width: 0;
    flex: 1;
}

#feis-home .home-demo-result-heading b,
#feis-home .home-demo-result-heading [data-demo-result-feis] {
    display: block;
}

#feis-home .home-demo-result-heading button {
    width: 32px;
    min-height: 32px;
    flex-shrink: 0;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: #e9f2f9;
    color: #54748c;
    font-size: 18px;
    cursor: pointer;
}

#feis-home .home-demo-result-details {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 14px;
    margin-top: 9px;
    color: #6d8496;
}

#feis-home .home-demo-hint {
    margin: 12px 0 0;
    color: #71889c;
    font-size: 10px;
    line-height: 1.5;
}

#feis-home .home-demo-save {
    display: inline-block;
    margin-top: 13px;
    padding: 7px 10px;
    border-radius: 6px;
    background: #edf7f0;
    color: #418558;
    font-size: 10px;
}

#feis-home .home-demo-summary-actions,
#feis-home .home-demo-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
    color: #278cc2;
    font-size: 10px;
}

#feis-home .home-demo-summary-actions > button {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: bold;
}

#feis-home .home-demo-summary-actions svg {
    width: 13px;
    height: 13px;
}

#feis-home .home-demo-pagination {
    color: #a0adb7;
    font-size: 9px;
}

#feis-home .home-demo-age-level {
    margin-bottom: 7px;
    padding: 0 12px;
    border: 1px solid #dfebf2;
    border-radius: 8px;
    background: #fbfdff;
    font-size: 11px;
}

#feis-home .home-demo-age-level summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 44px;
    list-style: none;
    cursor: pointer;
}

#feis-home .home-demo-age-level summary::-webkit-details-marker {
    display: none;
}

#feis-home .home-demo-age-level summary::after {
    content: '+';
    color: #6666cc;
    font-size: 16px;
}

#feis-home .home-demo-age-level[open] summary::after {
    content: '−';
}

#feis-home .home-demo-age-level summary span {
    margin-left: auto;
    color: #8a9cac;
    font-size: 9px;
}

#feis-home .home-demo-age-groups span {
    display: block;
    min-height: 26px;
    color: #7e91a2;
    font-size: 9px;
}

#feis-home .home-demo-age-groups b {
    color: #6666cc;
    font-size: 17px;
}

#feis-home .home-demo-approved {
    background: #e7f5e7;
}

#feis-home .home-demo-edited {
    background: #ffebdc;
}

#feis-home .home-demo-money {
    white-space: nowrap;
    font-weight: bold;
    font-variant-numeric: tabular-nums;
}

#feis-home .home-demo-entry-totals {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin-top: 14px;
    color: #71889c;
    font-size: 10px;
}

#feis-home .home-demo-entry-totals b {
    color: #486980;
}

#feis-home .home-demo-schedule-block {
    margin-bottom: 8px;
    overflow: hidden;
    border: 1px solid #e1eaf2;
    border-radius: 8px;
    background: #fbfdff;
}

#feis-home .home-demo-schedule-block.is-dragging {
    opacity: 0.5;
}

#feis-home .home-demo-schedule-block.is-drop-target {
    border-color: #6666cc;
    background: #f0effa;
}

#feis-home .home-demo-schedule-row {
    display: grid;
    grid-template-columns: 24px 37px minmax(0, 1fr);
    align-items: center;
    gap: 5px;
    padding: 6px;
}

#feis-home .home-demo-timetable time {
    color: #6666cc;
    font-size: 10px;
    font-variant-numeric: tabular-nums;
}

#feis-home .home-demo-schedule-title {
    position: relative;
    min-width: 0;
    min-height: 44px;
    padding: 5px 12px 5px 0;
    border: 0;
    background: transparent;
    color: var(--home-ink);
    text-align: left;
    cursor: pointer;
}

#feis-home .home-demo-schedule-title b {
    display: block;
    font-size: 10px;
}

#feis-home .home-demo-schedule-title small {
    display: block;
    color: #8a9cac;
    font-size: 9px;
}

#feis-home .home-demo-schedule-title > span {
    position: absolute;
    top: 13px;
    right: 0;
    color: #6666cc;
}

#feis-home .home-demo-schedule-title[aria-expanded="true"] > span {
    transform: rotate(180deg);
}

#feis-home .home-demo-drag {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 30px;
    padding: 0;
    border: 0;
    border-radius: 5px;
    background: #ecf2f8;
    color: #6666cc;
    font-size: 15px;
    cursor: pointer;
}

#feis-home .home-demo-drag {
    min-height: 44px;
    background: transparent;
    font-size: 20px;
    cursor: grab;
}

#feis-home .home-demo-people {
    padding: 5px 10px 10px;
    border-top: 1px solid #e1eaf2;
    background: white;
}

@keyframes home-step-enter {
    from {
        opacity: 0.4;
    }
    to {
        opacity: 1;
    }
}

@media (max-width: 950px)  {
    #feis-home .home-demo-panel {
        gap: 25px;
        padding: 28px;
    }
}

@media (max-width: 720px)  {
    #feis-home .home-demo-section {
        margin-top: 40px;
    }

    #feis-home .home-demo-toolbar {
        padding: 14px 18px;
    }

    #feis-home .home-demo-panel {
        grid-template-columns: minmax(0, 1fr);
        align-items: start;
        gap: 18px;
        padding: 22px 18px;
    }

    #feis-home .home-demo-copy h3 {
        margin: 8px 0;
        font-size: 23px;
    }

    #feis-home .home-demo-copy {
        min-height: 210px;
    }

    #feis-home .home-demo-copy p {
        margin: 0;
        font-size: 13px;
    }

    #feis-home .home-demo-step-dots {
        margin-top: 14px;
    }

    #feis-home .home-demo-content {
        min-height: 280px;
        padding: 14px;
    }

    #feis-home .home-demo-navigation {
        padding: 10px 12px;
    }

    #feis-home .home-demo-table {
        font-size: 10px;
    }

    #feis-home .home-demo-table th,
    #feis-home .home-demo-table td {
        padding: 9px 3px;
    }
}

/* Подробные списки показываем на всю ширину экрана демонстрации. */
#feis-home .home-demo-panel.is-wide {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

#feis-home .home-demo-panel.is-wide .home-demo-copy {
    min-height: 0;
}

#feis-home .home-demo-panel.is-wide .home-demo-copy h3 {
    margin: 8px 0;
    font-size: 24px;
}

#feis-home .home-demo-panel.is-wide .home-demo-copy p {
    max-width: 780px;
    margin-bottom: 0;
}

#feis-home .home-demo-table-scroll {
    max-width: 100%;
    max-height: 330px;
    overflow: auto;
    overscroll-behavior-x: contain;
    border-radius: 6px;
}

#feis-home .home-demo-table-scroll:focus-visible {
    outline: 2px solid #008ce0;
    outline-offset: 2px;
}

#feis-home .home-demo-detailed-table {
    min-width: 900px;
}

#feis-home .home-demo-personal-table {
    min-width: 700px;
}

#feis-home .home-demo-results-table {
    min-width: 760px;
}

#feis-home .home-demo-tabulation-table {
    min-width: 620px;
}

#feis-home .home-demo-people-table {
    min-width: 360px;
}

#feis-home .home-demo-detailed-table th,
#feis-home .home-demo-personal-table th,
#feis-home .home-demo-results-table th,
#feis-home .home-demo-tabulation-table th {
    white-space: nowrap;
}

#feis-home .home-demo-name-cell {
    min-width: 135px;
}

#feis-home .home-demo-person-links {
    min-width: 105px;
}

#feis-home .home-demo-person-links button {
    display: block;
    padding: 4px 0;
    border: 0;
    background: transparent;
    color: #007abc;
    font-size: 10px;
    cursor: pointer;
}

#feis-home .home-demo-choice-target {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    min-height: 32px;
    margin: 0;
    cursor: pointer;
}

#feis-home .home-demo-choice {
    width: 17px;
    height: 17px;
    margin: 0;
    box-sizing: border-box;
    accent-color: #009eff;
    cursor: pointer;
}

#feis-home .home-demo-summary-actions button,
#feis-home .home-demo-tabulation-actions button {
    min-height: 36px;
    padding: 7px 12px;
    border: 1px solid #d1e5f4;
    border-radius: 7px;
    background: #edf7ff;
    color: #007abc;
    font-size: 11px;
    cursor: pointer;
}

#feis-home .home-demo-scroll-hint {
    margin: 10px 0 0;
    color: #8a9cac;
    font-size: 10px;
}

#feis-home .home-demo-filter {
    display: flex;
    flex-direction: column;
    gap: 5px;
    max-width: 370px;
    margin-bottom: 15px;
    color: #71889c;
    font-size: 10px;
}

#feis-home .home-demo-filter select {
    width: 100%;
    min-width: 0;
    min-height: 38px;
    padding: 6px 8px;
    border: 1px solid #d6e4ef;
    border-radius: 7px;
    background: white;
    color: #37566e;
    font-size: 11px;
}

#feis-home .home-demo-result-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

#feis-home .home-demo-result-filters .home-demo-filter {
    min-width: 170px;
    flex: 1;
}

/* Одна шкала для всех возрастных границ танца. */
#feis-home .home-demo-age-track-line {
    position: absolute;
    top: 24px;
    right: 16px;
    left: 16px;
    height: 6px;
    border-radius: 8px;
    background: #deddf2;
    transform: translateY(-50%);
}

#feis-home .home-demo-age-handle {
    position: absolute;
    top: 24px;
    z-index: 1;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 2px solid white;
    border-radius: 8px;
    background: #6666cc;
    color: white;
    font-size: 11px;
    font-weight: bold;
    box-shadow: 0 0 0 1px #c7c8ea;
    cursor: grab;
    touch-action: none;
    transform: translate(-50%, -50%);
}

#feis-home .home-demo-age-handle.is-active {
    z-index: 3;
    background: #4d4daa;
    box-shadow: 0 0 0 2px #bebde9;
}

#feis-home .home-demo-age-editor {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}

#feis-home .home-demo-age-editor label {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0;
    color: #71889c;
    font-size: 9px;
}

#feis-home .home-demo-age-editor input {
    width: 52px;
    height: 32px;
    padding: 3px 4px;
    border: 1px solid #d2d2ed;
    border-radius: 5px;
    background: white;
    color: #6666cc;
    font-size: 11px;
}

#feis-home .home-demo-tabulation-actions button:disabled {
    opacity: 0.45;
    cursor: default;
}

#feis-home .home-demo-drag {
    touch-action: none;
}

#feis-home .home-demo-tabulation-table input {
    width: 62px;
    min-height: 34px;
    padding: 4px 5px;
    border: 1px solid #d1e0ed;
    border-radius: 6px;
    background: white;
    color: #37566e;
    font-size: 11px;
}

#feis-home .home-demo-tabulation-table input[aria-invalid="true"] {
    border-color: #d66a6a;
}

#feis-home .home-demo-tabulation-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    color: #71889c;
    font-size: 10px;
}

#feis-home .home-demo-ranking {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 23px;
    min-height: 23px;
    border-radius: 6px;
    background: #eef3f7;
    color: #54748c;
    font-weight: bold;
}

#feis-home .home-demo-ranking[class*="is-place-"] {
    background: var(--demo-medal-color);
    color: white;
}

@media (max-width: 720px) {
    #feis-home .home-demo-navigation {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    #feis-home .home-demo-slide-buttons {
        grid-row: 1;
        grid-column: 1 / -1;
        justify-content: center;
        gap: 4px;
    }

    #feis-home .home-demo-slide-buttons button {
        min-width: 40px;
        padding: 8px;
    }

    #feis-home .home-demo-navigation > button {
        grid-row: 2;
    }

    #feis-home .home-demo-person-links button {
        min-height: 32px;
    }

    #feis-home .home-demo-choice-target {
        min-height: 40px;
    }

    #feis-home .home-demo-people-table {
        min-width: 0;
        table-layout: fixed;
    }

    #feis-home .home-demo-people-table th:first-child {
        width: 28px;
    }

    #feis-home .home-demo-people-table th:nth-child(3) {
        width: 42px;
    }

    #feis-home .home-demo-people-table th:last-child {
        width: 62px;
    }

    #feis-home .home-demo-people-table td:nth-child(2) {
        overflow-wrap: anywhere;
    }
}

#feis-home .home-demo-navigation {
    border-top: 1px solid var(--home-line);
    border-bottom: 0;
}

#feis-home .home-demo-results-table tr.is-current-dancer {
    background: #eaf6ff;
}

#feis-home .home-demo-age-viewport {
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
}

#feis-home .home-demo-age-track {
    position: relative;
    height: 140px;
    margin-top: 8px;
    touch-action: pan-x;
}

#feis-home .home-demo-age-groups {
    position: absolute;
    top: 52px;
    right: 0;
    left: 0;
    margin: 0;
}

#feis-home .home-demo-age-groups > div {
    position: absolute;
    top: 0;
    width: 84px;
    padding: 4px;
    border-radius: 6px;
    background: #eef5fb;
    text-align: center;
    touch-action: pan-x;
    transform: translateX(-50%);
}

#feis-home .home-demo-group-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2px;
    margin-top: 4px;
}

#feis-home .home-demo-group-controls b {
    min-width: 24px;
    flex: 0 0 24px;
    font-size: 11px;
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
    font-variant-numeric: tabular-nums;
}

#feis-home .home-demo-group-controls button {
    width: 24px;
    min-height: 30px;
    flex-shrink: 0;
    padding: 0;
    border: 1px solid #d9d9ee;
    border-radius: 5px;
    background: #e7e6f8;
    color: #6666cc;
    font-size: 15px;
    cursor: pointer;
}

#feis-home .home-demo-group-controls button:disabled {
    opacity: 0.3;
    cursor: default;
}

#feis-home .home-demo-age-scale {
    position: absolute;
    right: 16px;
    bottom: 0;
    left: 16px;
    display: flex;
    justify-content: space-between;
    margin: 0;
    color: #8a9cac;
    font-size: 9px;
}

@media (max-width: 720px) {
    #feis-home .home-demo-group-controls button {
        min-height: 36px;
    }
}

/* Регистрация учебных танцев по уровням. */
#feis-home .home-demo-registration-levels {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

#feis-home .home-demo-registration-levels button {
    min-height: 36px;
    padding: 6px 10px;
    border: 1px solid #d6d7ed;
    border-radius: 7px;
    background: white;
    color: #5555aa;
    font-size: 12px;
}

#feis-home .home-demo-registration-levels button[aria-pressed="true"] {
    background: #6666cc;
    color: white;
}

#feis-home .home-demo-dance-checkbox {
    width: 22px;
    height: 22px;
    margin: 0;
    accent-color: #009eff;
    cursor: pointer;
}

#feis-home .home-demo-registration-total {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #eef5fb;
    text-align: right;
}

/* Подсказка занимает всю ширину сразу под строкой выбранной плашки. */
#feis-home .home-demo-dances > .home-demo-best-result {
    grid-column: 1 / -1;
    min-width: 0;
    margin-top: 0;
    text-align: left;
}

/* Сохраняем цвет первых трёх мест и явно рисуем белую галочку. */
#feis-home .is-place-1 .home-demo-place-marker,
#feis-home .is-place-2 .home-demo-place-marker,
#feis-home .is-place-3 .home-demo-place-marker {
    color: white;
}

#feis-home .home-demo-dance-checkbox {
    appearance: none;
    -webkit-appearance: none;
    flex-shrink: 0;
    border: 1px solid #a9c6d9;
    border-radius: 4px;
    background-color: white;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 18px 18px;
}

#feis-home .home-demo-dance-checkbox:checked {
    border-color: #009eff;
    background-color: #009eff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10l4 4 8-8' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

#feis-home .home-demo-dance-checkbox:focus-visible {
    outline: 2px solid #6666cc;
    outline-offset: 3px;
}

/* Для первых трёх мест сохраняем белую цифру на цветной подложке. */
#feis-home .home-demo-result-medal.is-place-1,
#feis-home .home-demo-result-medal.is-place-2,
#feis-home .home-demo-result-medal.is-place-3 {
    color: white;
}

/* Чемпионат: один судья при вводе и три судьи в итоговом протоколе. */
#feis-home .home-demo-championship-table {
    min-width: 780px;
}

#feis-home .home-demo-championship-table input {
    width: 64px;
    min-height: 36px;
    padding: 4px 6px;
    border: 1px solid #c7dce9;
    border-radius: 5px;
    background: white;
    color: #263b4d;
}

#feis-home .home-demo-championship-table input[aria-invalid="true"] {
    border-color: #d74646;
}

#feis-home .home-demo-championship-table th,
#feis-home .home-demo-championship-table td {
    white-space: nowrap;
}

#feis-home .home-demo-slide-buttons {
    flex-wrap: wrap;
}

/* Компоновка рабочей табуляции: три раунда под именем каждого судьи. */
#feis-home [data-demo-champ-inputs] {
    min-width: 900px;
}

#feis-home [data-demo-champ-inputs] input {
    width: 54px;
}

#feis-home .home-demo-champ-judge-heading {
    text-align: center;
    border-right: 1px solid #cbd5e1;
}

#feis-home [data-demo-champ-inputs] [data-demo-champ-round="0"] {
    background: #fbfcfd;
    border-left: 1px solid #cbd5e1;
}

#feis-home [data-demo-champ-inputs] [data-demo-champ-round="1"] {
    background: #ffffff;
}

#feis-home [data-demo-champ-inputs] [data-demo-champ-round="2"] {
    background: #f9fafb;
    border-right: 1px solid #cbd5e1;
}

/* Протокол повторяет колонки и двухстрочную шапку текущего PDF. */
#feis-home [data-demo-champ-protocol] {
    min-width: 1200px;
}

#feis-home [data-demo-champ-protocol] thead tr:first-child th {
    background: #eaf3f9;
    color: #22313f;
}

#feis-home [data-demo-champ-protocol] thead tr:nth-child(2) th {
    background: #fcfcfd;
    color: #344054;
}

#feis-home [data-demo-champ-protocol] td:not(:nth-child(2)) {
    text-align: center;
}

#feis-home .home-demo-champ-group-end {
    border-right: 1px solid #cbd5e1;
}

#feis-home .home-demo-schedule-end {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #eef5fb;
    color: #263b4d;
}

/* Заявка раскрывается непосредственно под выбранной строкой списка. */
#feis-home [data-demo-entry-row] {
    cursor: pointer;
}

#feis-home [data-demo-entry-row]:focus-visible {
    outline: 2px solid #6666cc;
    outline-offset: -2px;
}

#feis-home [data-demo-entry-row][aria-expanded="true"] > td {
    background: #eaf3fb;
}

#feis-home .home-demo-entry-detail {
    padding: 12px;
    background: #f7fbff;
    white-space: normal;
}

#feis-home .home-demo-entry-dances {
    width: 100%;
    margin-top: 10px;
}

#feis-home .home-demo-entry-dances td:not(:first-child),
#feis-home .home-demo-entry-dances th:not(:first-child) {
    text-align: center;
}

#feis-home .home-demo-entry-dances .home-demo-dance-checkbox:disabled {
    opacity: 1;
    cursor: default;
}

#feis-home .home-demo-entry-extra {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: 12px;
}

/* Размеры таблиц выбора танцев из текущей рабочей формы заявки. */
#feis-home .home-demo-entry-dances {
    width: 100%;
    max-width: 652px;
    font-size: 8pt;
    border-bottom: 1px solid #8e8e8e26;
}

#feis-home .home-demo-entry-dances th,
#feis-home .home-demo-entry-dances td {
    padding: 2px;
}

#feis-home .home-demo-entry-dances td:first-child {
    width: 60px;
    padding-left: 10px;
    line-height: 1.1;
    white-space: normal;
}

#feis-home .home-demo-entry-category {
    max-width: 652px;
    margin: 18px 0 8px;
    font-size: 13px;
    font-weight: bold;
    text-align: center;
}

#feis-home .home-demo-entry-dances .home-demo-dance-checkbox,
#feis-home [data-demo-entry-paid] {
    width: 17px;
    height: 17px;
    background-size: 15px 15px;
}

#feis-home .home-demo-payment-status {
    display: block;
    margin-top: 3px;
    color: #60788a;
    font-size: 10px;
}

/* Общее правило главной задаёт disabled-полям cursor: wait; здесь это просмотр. */
#feis-home .home-demo-entry-dances input[type="radio"]:disabled {
    cursor: default;
    opacity: 1;
    accent-color: #009eff;
}
