.scrum-team-diagram {
    max-width: 900px;
    margin: 24px auto 10px;
    padding: 18px;
    border: 1px solid #b9d5e8;
    border-radius: 10px;
    background: #f7fbfe;
    box-shadow: 0 2px 8px rgba(19, 64, 107, 0.12);
}

.scrum-team-diagram figcaption {
    color: #13406b;
    font-size: 19px;
    font-weight: 700;
    text-align: center;
}

.scrum-team-diagram__intro {
    max-width: 720px;
    margin: 7px auto 18px;
    color: #536b7b;
    font-size: 13px;
    text-align: center;
}

.scrum-team-diagram__team {
    padding: 16px;
    border: 2px solid #7ca8c5;
    border-radius: 12px;
    background: #fff;
}

.scrum-team-goal {
    width: 230px;
    margin: 0 auto 18px;
    padding: 9px 16px;
    border-radius: 24px;
    color: #fff;
    background: #13406b;
    text-align: center;
    box-shadow: 0 3px 7px rgba(19, 64, 107, 0.22);
}

.scrum-team-goal__label,
.scrum-team-outcome span {
    display: block;
    font-size: 10px;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.scrum-team-goal strong {
    display: block;
    margin-top: 2px;
    font-size: 17px;
}

.scrum-team-collaboration {
    display: grid;
    grid-template-columns: minmax(190px, 1fr) minmax(150px, 0.72fr) minmax(190px, 1fr);
    align-items: center;
    gap: 14px;
}

.scrum-role-card {
    position: relative;
    min-height: 150px;
    padding: 52px 15px 14px;
    border: 2px solid #b8cbd8;
    border-radius: 9px;
    background: #fff;
    text-align: center;
    box-shadow: 0 2px 6px rgba(24, 60, 85, 0.1);
}

.scrum-role-card h5 {
    margin: 0 0 7px;
    color: #24465f;
    font-size: 15px;
    font-weight: 700;
}

.scrum-role-card p {
    margin: 0;
    color: #526875;
    font-size: 12px;
    line-height: 1.45;
}

.scrum-role-card__icon {
    position: absolute;
    top: 10px;
    left: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-left: -18px;
    border-radius: 50%;
    color: #fff;
    background: #527b98;
    font-size: 11px;
    font-weight: 700;
}

.scrum-role-card--owner {
    border-color: #725da6;
    background: #f7f3ff;
}

.scrum-role-card--owner .scrum-role-card__icon {
    background: #725da6;
}

.scrum-role-card--developers {
    border-color: #287eb8;
    background: #f1f8fc;
}

.scrum-role-card--developers .scrum-role-card__icon {
    background: #287eb8;
}

.scrum-role-dialogue {
    color: #526875;
    font-size: 11px;
    text-align: center;
}

.scrum-role-dialogue span {
    display: block;
}

.scrum-role-dialogue__arrow {
    margin: 3px 0;
    color: #e08a20;
    font-size: 45px;
    font-weight: 700;
    line-height: 0.8;
}

.scrum-role-dialogue__to-developers {
    color: #614d92;
}

.scrum-role-dialogue__to-owner {
    color: #236c9c;
}

.scrum-master-support {
    max-width: 600px;
    margin: 9px auto 0;
}

.scrum-master-support__arrows {
    display: flex;
    justify-content: space-around;
    height: 31px;
    color: #c7792b;
    font-size: 30px;
    line-height: 1;
}

.scrum-role-card--master {
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 0;
    padding: 12px 16px;
    border-color: #d68a3a;
    background: #fff8ed;
    text-align: left;
}

.scrum-role-card--master .scrum-role-card__icon {
    position: static;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    margin: 0;
    background: #c7792b;
}

.scrum-team-outcome-arrow {
    height: 33px;
    color: #5d953f;
    font-size: 30px;
    line-height: 1.1;
    text-align: center;
}

.scrum-team-outcome {
    max-width: 570px;
    margin: 0 auto;
    padding: 10px 14px;
    border: 2px solid #68a34f;
    border-radius: 7px;
    color: #315523;
    background: #e8f4e3;
    text-align: center;
}

.scrum-team-outcome strong {
    display: block;
    margin-top: 2px;
    font-size: 14px;
}

@media (max-width: 767px) {
    .scrum-team-diagram {
        padding: 12px;
    }

    .scrum-team-diagram__team {
        padding: 12px;
    }

    .scrum-team-collaboration {
        grid-template-columns: 1fr;
    }

    .scrum-role-dialogue {
        padding: 3px 0;
    }

    .scrum-role-dialogue__arrow {
        transform: rotate(90deg);
    }

    .scrum-role-card {
        min-height: 0;
    }

    .scrum-master-support__arrows {
        justify-content: center;
        gap: 32px;
    }
}

.scrum-animation {
    margin: 22px 0 28px;
    border: 1px solid #b9d5e8;
    border-radius: 8px;
    background: #f7fbfe;
    box-shadow: 0 2px 8px rgba(19, 64, 107, 0.12);
    overflow: hidden;
}

.scrum-animation__header {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 14px 16px;
    color: #fff;
    background: #13406b;
}

.scrum-animation__button {
    flex: 0 0 auto;
    min-width: 190px;
    border-color: #fff;
    background: #287eb8;
}

.scrum-animation__button:hover,
.scrum-animation__button:focus {
    border-color: #fff;
    background: #1d6597;
}

.scrum-animation__button.is-running .scrum-animation__play {
    display: inline-block;
    animation: scrum-pulse 0.85s ease-in-out infinite alternate;
}

.scrum-animation__play {
    margin-right: 6px;
}

.scrum-animation__status {
    margin: 0;
    line-height: 1.35;
}

.scrum-animation__viewport {
    overflow-x: auto;
    padding: 20px 16px 16px;
    outline-offset: -3px;
}

.scrum-animation__stage {
    display: grid;
    grid-template-columns: minmax(185px, 0.85fr) 34px minmax(470px, 2.1fr) 34px minmax(190px, 0.9fr);
    align-items: stretch;
    min-width: 940px;
}

.scrum-zone {
    position: relative;
    padding: 13px;
    border: 2px solid #cbd9e3;
    border-radius: 7px;
    background: #fff;
    transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease, opacity 0.35s ease;
}

.scrum-zone h5 {
    margin: 0 0 4px;
    color: #24465f;
    font-size: 15px;
    font-weight: 700;
}

.scrum-zone__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-right: 5px;
    border-radius: 50%;
    color: #fff;
    background: #527b98;
    font-size: 12px;
}

.scrum-zone__hint {
    margin: 0 0 12px;
    color: #607382;
    font-size: 12px;
}

.scrum-zone.is-active {
    border-color: #ef9f24;
    box-shadow: 0 0 0 4px rgba(239, 159, 36, 0.2);
    transform: translateY(-3px);
}

.scrum-zone.is-complete {
    border-color: #68a34f;
}

.scrum-zone.is-complete .scrum-zone__number {
    background: #5d953f;
}

.story-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.story-card,
.selected-story {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 40px;
    padding: 8px 9px;
    border-left: 5px solid #6954a3;
    border-radius: 4px;
    background: #eee9fa;
    color: #3e315f;
    font-size: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    transition: opacity 0.35s ease, transform 0.35s ease, background 0.35s ease;
}

.story-card.is-selected {
    opacity: 0.36;
    transform: scale(0.96);
}

.story-card.is-returned {
    border-left-color: #d3762b;
    background: #fff0df;
    animation: scrum-return 0.7s ease both;
}

.story-points {
    display: inline-block;
    padding: 2px 5px;
    border-radius: 10px;
    color: #fff;
    background: #6954a3;
    font-size: 10px;
    white-space: nowrap;
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.scrum-animation.show-points .story-points {
    opacity: 1;
    transform: scale(1);
}

.return-note {
    display: none;
    margin-top: 10px;
    padding: 7px;
    border-radius: 4px;
    color: #8a4817;
    background: #fff0df;
    font-size: 11px;
}

.return-note.is-visible {
    display: block;
    animation: scrum-fade-in 0.5s ease both;
}

.scrum-flow-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9cb0be;
    font-size: 48px;
    font-weight: 300;
    transition: color 0.35s ease, transform 0.35s ease;
}

.scrum-flow-arrow.is-active {
    color: #ef9f24;
    transform: translateX(4px);
}

.scrum-zone--sprint {
    padding: 0;
    overflow: hidden;
}

.sprint-planning {
    padding: 12px;
    border-bottom: 1px solid #cbd9e3;
    background: #f5f9fc;
    transition: background 0.35s ease;
}

.sprint-planning.is-active {
    background: #fff7df;
}

.selected-stories {
    display: flex;
    gap: 7px;
    min-height: 35px;
    padding: 6px;
    border: 1px dashed #aebfca;
    border-radius: 4px;
}

.selected-stories__placeholder {
    align-self: center;
    margin: auto;
    color: #82939f;
    font-size: 11px;
}

.selected-story {
    flex: 1 1 0;
    min-height: 30px;
    padding: 5px 7px;
    animation: scrum-fade-in 0.55s ease both;
}

.task-board {
    padding: 12px;
}

.task-board__title {
    margin-bottom: 9px;
    color: #24465f;
    font-size: 14px;
    font-weight: 700;
}

.task-board__columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    min-height: 170px;
}

.task-column {
    padding: 5px;
    border-radius: 4px;
    background: #edf2f5;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.task-column h6 {
    min-height: 28px;
    margin: 0 -5px 6px;
    padding: 5px 3px;
    border-bottom: 3px solid #a7b2ba;
    color: #344c5c;
    font-size: 10px;
    font-weight: 700;
    text-align: center;
}

.task-column--progress h6 { border-color: #ed9d2c; }
.task-column--test h6 { border-color: #e6c528; }
.task-column--done h6 { border-color: #68a34f; }

.task-column.is-active {
    background: #fff8dc;
    box-shadow: inset 0 0 0 2px #efb849;
}

.task-column__cards {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-height: 126px;
}

.task-card {
    padding: 6px;
    border-left: 4px solid #287eb8;
    border-radius: 3px;
    color: #24465f;
    background: #fff;
    font-size: 10px;
    line-height: 1.25;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.14);
    animation: scrum-task-move 0.5s ease both;
}

.task-card[data-story="profile"] {
    border-left-color: #9d6ab1;
}

.task-column--done .task-card {
    color: #355527;
    background: #e8f4e3;
}

.scrum-outcome {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.scrum-zone--review,
.scrum-zone--next {
    flex: 1 1 0;
}

.scrum-zone--review p,
.scrum-zone--next p {
    margin: 8px 0;
    color: #566b79;
    font-size: 12px;
}

.review-result {
    padding: 8px;
    border-radius: 4px;
    color: #6f7c85;
    background: #edf2f5;
    font-size: 11px;
    transition: color 0.35s ease, background 0.35s ease;
}

.review-result.has-result {
    color: #315523;
    background: #e8f4e3;
}

.cycle-symbol {
    color: #aebdc7;
    font-size: 42px;
    line-height: 1;
    text-align: center;
    transition: color 0.35s ease, transform 0.7s ease;
}

.scrum-zone--next.is-active .cycle-symbol {
    color: #5d953f;
    transform: rotate(360deg);
}

.scrum-animation__legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 0 16px 14px;
    color: #607382;
    font-size: 11px;
}

.legend-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-right: 4px;
    border-radius: 2px;
    vertical-align: -1px;
}

.legend-dot--story { background: #6954a3; }
.legend-dot--task { background: #287eb8; }
.legend-dot--done { background: #68a34f; }

@keyframes scrum-fade-in {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scrum-task-move {
    from { opacity: 0.25; transform: translateX(-14px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes scrum-return {
    from { opacity: 0; transform: translateX(35px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes scrum-pulse {
    from { opacity: 0.45; }
    to { opacity: 1; }
}

@media (max-width: 767px) {
    .scrum-animation__header {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
    }

    .scrum-animation__button {
        width: 100%;
    }

    .scrum-animation__status {
        min-height: 38px;
        font-size: 12px;
    }

    .scrum-animation__viewport {
        padding: 14px 10px;
    }

    .scrum-animation__legend {
        flex-wrap: wrap;
        gap: 8px 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .scrum-animation *,
    .scrum-animation *::before,
    .scrum-animation *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.progress-chart-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 18px 0 10px;
}

.progress-chart {
    margin: 0;
    padding: 13px;
    border: 1px solid #b9d5e8;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 6px rgba(19, 64, 107, 0.1);
}

.progress-chart figcaption {
    margin-bottom: 5px;
    color: #13406b;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
}

.progress-chart svg {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}

.progress-chart > p {
    min-height: 52px;
    margin: 5px 4px 0;
    color: #526875;
    font-size: 12px;
    line-height: 1.45;
}

.chart-grid-lines line {
    stroke: #dce6ec;
    stroke-width: 1;
    vector-effect: non-scaling-stroke;
}

.chart-axes line {
    stroke: #526875;
    stroke-width: 1.5;
    vector-effect: non-scaling-stroke;
}

.chart-labels,
.chart-legend {
    fill: #526875;
    font-family: Arial, sans-serif;
    font-size: 10px;
}

.chart-labels text {
    text-anchor: middle;
}

.chart-labels text:nth-child(-n+5) {
    text-anchor: end;
}

.chart-axis-title {
    fill: #344c5c;
    font-size: 11px;
    font-weight: 700;
}

.chart-line {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 3;
    vector-effect: non-scaling-stroke;
}

.chart-line--ideal {
    stroke: #8999a4;
    stroke-dasharray: 6 5;
    stroke-width: 2;
}

.chart-line--actual {
    stroke: #287eb8;
}

.chart-line--completed {
    stroke: #5d953f;
}

.chart-line--scope {
    stroke: #d47b22;
    stroke-dasharray: 7 4;
}

.chart-points--actual circle {
    fill: #287eb8;
}

.chart-points--completed circle {
    fill: #5d953f;
}

@media (max-width: 900px) {
    .progress-chart-grid {
        grid-template-columns: 1fr;
    }

    .progress-chart > p {
        min-height: 0;
    }
}
