.traffic-info { padding-bottom: 64px; color: #1e2631; }
.traffic-info [hidden] { display: none !important; }
.traffic-info .page-title-wrap { margin-bottom: 28px; }
.traffic-filter { background: #edf3f8; border-radius: 8px; padding: 24px; margin-bottom: 24px; }
.traffic-filter fieldset { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; min-width: 0; border: 0; padding: 0; margin: 0; }
.traffic-filter label, .traffic-period { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 600; }
.traffic-filter select { min-width: 112px; max-width: 240px; height: 46px; padding: 8px 30px 8px 12px; background-color: #fff; border: 1px solid #aeb8c4; border-radius: 6px; color: #222e3d; font-size: 16px; font-weight: 400; }
.traffic-filter #traffic-road { min-width: 170px; }
.traffic-filter select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%233c5066' stroke-width='2'/%3E%3C/svg%3E"); background-position: right 12px center; background-repeat: no-repeat; background-size: 12px 8px; }
.traffic-actions { display: flex; gap: 8px; margin-left: auto; }
.traffic-actions button, #traffic-retry, #traffic-records-more { padding: 11px 20px; border-radius: 6px; font-size: 16px; font-weight: 600; }
.traffic-apply { background: #24599e; color: #fff; border: 1px solid #24599e; }
.traffic-reset, #traffic-retry, #traffic-records-more { background: #fff; border: 1px solid #8d9aa9; }
.traffic-info button:disabled { opacity: .5; cursor: default; }
.traffic-info :focus-visible:not(.board-tabs__link) { outline: 3px solid #2879cb; outline-offset: 3px; }
#traffic-status { margin: 12px 0; font-size: 16px; color: #52647a; }
#traffic-status:empty { display: none; }
#traffic-status.is-error { color: #b42726; }
#traffic-chart { height: 330px; margin: 8px 0 24px; }
.traffic-info .traffic-notice { padding: 16px 20px; background: #f5f7fa; border-radius: 6px; font-size: 15px; line-height: 1.8; margin-bottom: 24px; text-align: right; }
.traffic-notice a { color: #185793; text-decoration: underline; }
.traffic-table-meta { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 12px; color: #5b6572; font-size: 14px; }
.traffic-table-scroll { width: 100%; overflow-x: auto; }
.traffic-table { width: 100%; min-width: 820px; border-collapse: collapse; font-size: 15px; text-align: center; border-top: 2px solid #24364d; }
.traffic-info .traffic-table th, .traffic-info .traffic-table td { border: 1px solid #d5dce4; padding: 12px 10px; text-align: center; vertical-align: middle; white-space: normal; overflow-wrap: anywhere; word-break: normal; line-height: 1.5; }
.traffic-table thead th { background: #f0f4f8; color: #283e57; font-weight: 700; }
.traffic-table tbody th { background: #f8f9fb; font-weight: 600; }
.traffic-table td small { display: block; color: #687789; font-size: 12px; margin-top: 3px; }
.traffic-table tfoot th, .traffic-table tfoot td { background: #edf3fa; font-weight: 700; }
.traffic-footnote { font-size: 14px; color: #637181; line-height: 1.7; margin-top: 14px; }
.traffic-section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 38px 0 18px; }
.traffic-section-title h4 { font-size: 20px; font-weight: 700; }
.traffic-section-title p { font-size: 14px; color: #617184; }
.traffic-timeline { display: flex; overflow-x: auto; padding: 16px 12px 28px; border: 1px solid #d9e1e9; border-radius: 8px; }
.traffic-segment { flex: 1 0 174px; display: grid; grid-template-rows: 86px 42px 42px 86px; position: relative; text-align: center; min-width: 174px; }
.traffic-segment .traffic-distance { color: #657284; font-size: 14px; padding: 10px 0; border-bottom: 4px solid #8c9dae; }
.traffic-segment .traffic-point { position: relative; left: -50%; min-height: 44px; padding: 12px 4px 0; font-weight: 600; font-size: 14px; }
.traffic-segment .traffic-point::before { content: ''; position: absolute; top: -8px; left: calc(50% - 6px); border: 3px solid #667d94; background: #fff; width: 13px; height: 13px; border-radius: 50%; }
.traffic-segment:first-child .traffic-point { left: 0; text-align: left; }
.traffic-segment:first-child .traffic-point::before { left: -6px; }
.traffic-terminal { flex: 0 0 100px; position: relative; margin-top: 128px; padding: 12px 4px 0; font-size: 14px; font-weight: 600; }
.traffic-terminal::before { content: ''; position: absolute; top: -8px; left: -6px; border: 3px solid #667d94; background: #fff; width: 13px; height: 13px; border-radius: 50%; }
.traffic-timeline-controls { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }
.traffic-timeline-controls button { border: 1px solid #b6c3d2; border-radius: 5px; padding: 8px 12px; font-size: 14px; }
.traffic-count { display: block; min-width: 120px; margin: 4px auto; border: 1px solid #c1ccdc; border-radius: 10px; padding: 8px 12px; background: #f3f7fc; color: #264b7a; font-size: 14px; line-height: 1.3; }
.traffic-count strong { display: block; font-size: 22px; line-height: 1.2; margin-top: 5px; }
.traffic-count.down { background: #fff4ef; color: #91452c; border-color: #e4c8bb; }
.traffic-count:enabled:hover { box-shadow: 0 0 0 2px #24599e; }
#traffic-records { box-sizing: border-box; width: min(1100px, 94vw); max-width: 94vw; max-height: 85vh; overflow-y: auto; border: 0; border-radius: 12px; padding: 28px; box-shadow: 0 12px 60px #0004; margin: auto; color: #263446; overflow-wrap: anywhere; }
#traffic-records::backdrop { background: #16263888; }
#traffic-records .traffic-table { table-layout: fixed; min-width: 760px; }
#traffic-records .traffic-record-date { width: 25%; }
#traffic-records .traffic-record-value { width: 12.5%; }
#traffic-records .traffic-table-scroll { min-width: 0; }
#traffic-summary .traffic-table { min-width: 1040px; table-layout: fixed; }
.traffic-info .traffic-source-notice { margin-top: 14px; padding: 16px 20px; background: #f5f7fa; border-radius: 6px; color: #52647a; line-height: 1.8; }
#traffic-summary .traffic-table th { word-break: keep-all; }
#traffic-summary .traffic-summary-road { width: 22%; }
#traffic-summary .traffic-summary-year,
#traffic-summary .traffic-summary-length,
#traffic-summary .traffic-summary-sections { width: 12%; }
#traffic-summary .traffic-summary-count { width: 14%; }
.traffic-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid #d2dce5; padding-bottom: 18px; margin-bottom: 16px; }
.traffic-dialog-head h3 { min-width: 0; font-size: 23px; font-weight: 700; }
.traffic-dialog-head button { flex-shrink: 0; padding: 8px; font-size: 16px; }
#traffic-records-caption, #traffic-records-status { margin: 12px 0; }
#traffic-records-more { display: block; margin: 18px auto 0; }
@media (max-width: 768px) {
    .traffic-filter { padding: 18px 14px; }
    .traffic-filter fieldset { display: grid; grid-template-columns: 1fr; gap: 14px; }
    .traffic-filter label, .traffic-period { font-size: 15px; gap: 8px; }
    .traffic-filter label > select { flex: 1; max-width: none; }
    .traffic-period select { flex: 1; min-width: 0; width: 100px; }
    .traffic-filter #traffic-road { min-width: 0; }
    .traffic-actions { margin: 0; }
    .traffic-actions button { flex: 1; }
    .traffic-table-meta, .traffic-section-title { flex-direction: column; gap: 6px; }
    #traffic-chart { height: 280px; }
    .traffic-timeline { padding-left: 62px; }
    #traffic-records { padding: 18px; }
}
