textarea {
    width: 100%;
    margin-top: 8px;
    padding: 13px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    background: #fff;
    outline: none;
    resize: vertical;
    font: inherit;
}

textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(23, 105, 255, .12);
}

.filters-three {
    grid-template-columns: minmax(240px, 2fr) minmax(190px, 1fr) auto;
}

.checkbox-field {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #f8fafd;
}

.checkbox-field input {
    width: 18px;
    height: 18px;
    margin: 0;
    flex: 0 0 auto;
}

.checkbox-field span {
    font-weight: 700;
}

.status-warning {
    color: #9a6700;
    background: #fff7df;
}

.status-info {
    color: #175cd3;
    background: #eff6ff;
}

.status-neutral {
    color: #475467;
    background: #f2f4f7;
}

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

.team-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 17px;
    background: #fff;
}

.team-card .actions {
    grid-column: 2 / -1;
    justify-content: flex-end;
    min-width: 0;
}

.team-shield {
    width: 52px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 15px 15px 20px 20px;
    color: #1769ff;
    background: linear-gradient(145deg, #eaf2ff, #f6f9ff);
    border: 1px solid #d9e7ff;
    font-weight: 900;
}

.team-info strong,
.team-info span,
.team-info small {
    display: block;
}

.team-info span,
.team-info small {
    margin-top: 4px;
    color: var(--muted);
}

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

.journey-card {
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(21, 44, 91, .05);
}

.journey-top,
.journey-actions,
.journey-date {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.journey-top {
    align-items: flex-start;
}

.journey-top h2 {
    margin: 5px 0 4px;
}

.journey-top p {
    margin: 0;
    color: var(--muted);
}

.journey-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin: 20px 0;
}

.journey-metrics div {
    padding: 12px;
    border-radius: 12px;
    background: #f7f9fc;
}

.journey-metrics span,
.journey-metrics strong {
    display: block;
}

.journey-metrics span {
    color: var(--muted);
    font-size: .75rem;
}

.journey-metrics strong {
    margin-top: 5px;
}

.journey-date {
    padding: 13px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.journey-date span {
    color: var(--muted);
}

.journey-actions {
    justify-content: flex-end;
    flex-wrap: wrap;
    margin-top: 16px;
}

.journey-actions form {
    margin: 0;
}

.matches-list {
    display: grid;
    gap: 12px;
}

.match-card {
    display: grid;
    grid-template-columns: auto minmax(150px, .8fr) minmax(280px, 1.5fr) minmax(180px, 1fr) auto auto;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    border: 1px solid var(--border);
    border-radius: 17px;
    background: #fff;
}

.match-order {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #1769ff;
    background: #eaf2ff;
    font-weight: 900;
}

.match-context span,
.match-context strong,
.match-date span,
.match-date strong {
    display: block;
}

.match-context span,
.match-date span {
    color: var(--muted);
    font-size: .82rem;
}

.match-teams {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 10px;
}

.match-teams strong:first-child {
    text-align: right;
}

.match-teams span {
    color: var(--muted);
    font-size: .8rem;
    font-weight: 800;
    text-transform: uppercase;
}

.match-card .actions {
    min-width: 0;
}

@media (max-width: 1200px) {
    .journey-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }

    .match-card {
        grid-template-columns: auto 1fr auto;
    }

    .match-teams,
    .match-date {
        grid-column: 2 / -1;
    }

    .match-card .actions {
        grid-column: 2 / -1;
        justify-content: flex-start;
    }
}

@media (max-width: 750px) {
    .filters-three {
        grid-template-columns: 1fr;
    }

    .team-card {
        grid-template-columns: auto 1fr;
    }

    .team-card > .status {
        grid-column: 2;
        justify-self: start;
    }

    .journey-grid {
        grid-template-columns: 1fr;
    }

    .journey-metrics {
        grid-template-columns: 1fr 1fr;
    }

    .journey-top,
    .journey-date {
        align-items: flex-start;
        flex-direction: column;
    }

    .match-card {
        grid-template-columns: auto 1fr;
    }

    .match-context,
    .match-teams,
    .match-date,
    .match-card > .status,
    .match-card .actions {
        grid-column: 2;
    }

    .match-teams {
        grid-template-columns: 1fr;
    }

    .match-teams strong:first-child {
        text-align: left;
    }
}
