.crs-widget {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 18px;
    background: #fff;
    margin: 20px 0;
}

.crs-header {
    display: flex;
    gap: 12px;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 14px;
}

.crs-title {
    margin: 0;
    font-size: 24px;
    line-height: 1.25;
}

.crs-status,
.crs-updated,
.crs-muted {
    color: #64748b;
    font-size: 14px;
}

.crs-controls {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.crs-controls label {
    display: block;
    font-weight: 600;
}

.crs-controls span {
    display: block;
    margin-bottom: 5px;
}

.crs-controls select,
.crs-controls input {
    width: 100%;
    max-width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 10px 12px;
    min-height: 42px;
    background: #fff;
}

.crs-updated {
    margin: 4px 0 12px;
}

.crs-table-wrap {
    overflow-x: auto;
}

.crs-table {
    width: 100%;
    border-collapse: collapse;
}

.crs-table th,
.crs-table td {
    border-bottom: 1px solid #e2e8f0;
    padding: 10px;
    text-align: left;
    vertical-align: top;
}

.crs-table th {
    background: #f8fafc;
    font-weight: 700;
}

.crs-time {
    display: inline-block;
    padding: 2px 6px;
    margin: 2px;
    border-radius: 8px;
    background: #f1f5f9;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.crs-empty {
    padding: 12px;
    border-radius: 10px;
    background: #f8fafc;
    margin: 0;
}

@media (max-width: 720px) {
    .crs-widget {
        padding: 14px;
    }

    .crs-header,
    .crs-controls {
        display: block;
    }

    .crs-controls label {
        margin-bottom: 10px;
    }

    .crs-table,
    .crs-table thead,
    .crs-table tbody,
    .crs-table th,
    .crs-table td,
    .crs-table tr {
        display: block;
    }

    .crs-table thead {
        display: none;
    }

    .crs-table tr {
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        padding: 8px;
        margin-bottom: 10px;
    }

    .crs-table td {
        border-bottom: 0;
        padding: 6px 4px;
    }

    .crs-table td::before {
        content: attr(data-label) ': ';
        font-weight: 700;
    }
}

.crs-source {
    margin: 0 0 10px;
    font-size: 14px;
    color: #475569;
}

.crs-source a {
    color: inherit;
    text-decoration: underline;
}

.crs-route-board {
    margin: 12px 0 18px;
}

.crs-route-board-head,
.crs-section-title {
    margin: 0 0 10px;
    font-weight: 700;
    font-size: 18px;
}

.crs-route-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.crs-route-card {
    width: 100%;
    text-align: left;
    border: 1px solid #dbe4ef;
    border-radius: 12px;
    background: #f8fafc;
    padding: 10px 12px;
    cursor: pointer;
}

.crs-route-card:hover,
.crs-route-card.is-active {
    border-color: #94a3b8;
    background: #fff;
}

.crs-route-num {
    display: block;
    font-weight: 700;
    margin-bottom: 4px;
}

.crs-route-name {
    display: block;
    color: #475569;
    font-size: 14px;
    line-height: 1.35;
}

.crs-direction-note {
    color: #475569;
    margin: -4px 0 10px;
}

@media (max-width: 920px) {
    .crs-route-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .crs-route-grid {
        grid-template-columns: 1fr;
    }
}
