.result_tabs .head.train-navigation {
    display: flex;
    gap: 22px;
    float: none;
    height: auto;
    border-bottom: 1px solid var(--line);
}
.train-navigation > * {
    box-sizing: border-box;
    padding: 8px 2px 9px;
    margin-bottom: -1px;
    border-bottom: 2px solid transparent;
    color: var(--muted);
    font: 600 14px/20px var(--ui-font);
    text-decoration: none;
}
.train-navigation a:hover { color: var(--accent); }
.train-navigation [aria-current="page"] { color: var(--accent); border-color: currentColor; }
.result_tabs h1.train_tabs {
    float: none;
    margin: 16px 0 10px;
    font: 600 clamp(19px, 1.5vw, 20px)/1.35 var(--ui-font);
    text-wrap: pretty;
}

.service-legend {
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}
.service-legend::before {
    content: "";
    flex: 0 0 13px;
    height: 13px;
    box-sizing: border-box;
    border-radius: 4px;
    background: #d3eee6;
    box-shadow: inset 0 0 0 1px #8ac6b6;
}
.service-calendar {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 204px), 1fr));
    gap: 12px;
}
.service-month {
    min-width: 0;
    padding: 12px 10px 10px;
    background: #fff;
    border: 1px solid #ccdadd;
    border-radius: 10px;
    break-inside: avoid;
}
.result_tabs .service-month table.calendar {
    float: none;
    margin: 0;
    width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 2px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}
.service-month caption {
    padding: 0 3px 9px;
    border-bottom: 1px solid #e1eaec;
    color: var(--ink);
    font-size: 16px;
    line-height: 21px;
    font-weight: 650;
    text-align: left;
}
.service-year { float: right; color: var(--muted); font-size: 13px; font-weight: 500; }
.service-month th {
    padding: 5px 0 3px;
    color: var(--muted);
    font-size: 12px;
    line-height: 18px;
    font-weight: 500;
}
.service-month td {
    height: 26px;
    border-radius: 5px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1;
}
.service-month td.active {
    background: #d3eee6;
    color: #11574c;
    font-weight: 700;
}
@media print {
    .train-navigation { display: none !important; }
    .service-month td.active, .service-legend::before { outline: 1px solid currentColor; }
}
