body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	background-color: #ffffff;
	overflow-x: hidden;
}
body,td,th {
	font-family: 'Google Sans' ;
	font-weight: 300;
    background-color: #ececec;
}
.Header {
	margin-top: -0.5%;
}
#topbarNav{
    position: sticky;
    width:100%;
    top:0;
    z-index: 999;
    background-color: #ececec;
}
.TypeTrain{
	margin-top: 0.75rem;
	font-family: 'Google Sans';
	font-size: 1.6rem;
	font-weight: 500;
}
.TypeTrain9{
	margin-top: 0.75rem;
	font-family: 'Google Sans';
	font-size: 1.15rem;
	font-weight: 500;
	white-space: nowrap;
}
.TrainNo{
	font-family: 'Google Sans';
	font-size: 3rem;
	font-weight: 700;
}
.SMcurveType{
	border-radius : 0.5rem;
	padding-top: -0.5vh;
	padding-bottom: -0.5vh;
	min-height: 2rem;
}
.SMTrainNo{
	font-family: 'Google Sans';
	font-size: 1.5rem;
	font-weight: 600;
}
.SMTrainType{
	font-family: 'Google Sans';
	font-size: 1.2rem !important;
	font-weight: 500 !important;
}
.SpTypeTrain{
	font-family: 'Google Sans';
	font-size: 1.3rem;
	font-weight: 500;
}
.SpTypeTrain9{
	font-family: 'Google Sans';
	font-size: 1rem;
	font-weight: 500;
	white-space: nowrap;
}
.SpCode{
	margin-top: -0.25rem;
	font-family: 'Google Sans';
	font-size: 1rem;
	font-weight: 500!important;
}

.stopName{
	font-size: 1.4rem;
	font-weight: 600;
}
.latestStop{
	font-family: 'Google Sans' !important;
	font-size: 1.7rem;
	font-weight: 500;
}
.trainTracker {
	position: relative;
}

.vertical-line {
	position: absolute;
	left: 88px;
	top: 0;
	bottom: 0;
	width: 4px;
	z-index: 1;
}

.stations {
	list-style: none;
	margin-top: 0;
	padding: 0;
}
.time{
	font-size: 1rem;
	font-weight: 600;
}
.timeHead{
	font-size: 0.75rem;
	font-weight: 500;
	color: #5e5e5e;
}
.platDisplay{
	position: absolute;
	margin-top: 55px;
	left: 110px;
	font-size: 0.75rem;
	font-weight: 500;
	color: #5e5e5e;
}
.realTime{
	margin-top: -5px;
	font-size: 0.75rem;
	font-weight: 600;
}
.estNote{
	font-size: 0.68rem;
	font-weight: 500;
	font-style: italic;
	color: #8a8a8a;
	line-height: 1.1;
}
.hideShowPoint {
	display: flex;
	align-items: center;
	position: relative;
	margin-top: 30px;
	margin-bottom: 30px;
	font-family: 'Google Sans' !important;
	font-size: 1rem;
	font-weight: 500;
}
.hideShowWord {
	position: absolute;
	left: 110px;
	display: flex;
	justify-content: center;
	align-items: center;
	font-size: 15px;
	border: 2px solid #ccc;
	padding: 5px;
	border-radius: 5px;
}
.hideShowWord:hover{
	background-color: #ccc;
	color: #fff;
}
.station {
	display: flex;
	align-items: center;
	position: relative;
	padding-top: 5px;
	margin-bottom: 15px;
	font-family: 'Google Sans' !important;
	font-size: 1rem;
	font-weight: 500;
}
.showSMTrainDetail {
	position: absolute;
	left:80px;
	padding-top: 15px;
	margin-bottom: 10px;
	justify-content: center;
	align-items: center;
	position: relative;
}
.destSM{
	font-family: 'Google Sans' !important;
	font-size: 1rem;
	font-weight: 600;
}
.timeSM{
	font-family: 'Google Sans' !important;
	font-size: 0.8rem;
	font-weight: 400;
}
.station:last-child {
	margin-bottom: 0;
}
.marker {
	position: absolute;
	left: 80px;
	width: 20px;
	height: 20px;
	background-color: #fff;
	border: 3px solid #ccc;
	border-radius: 50%;
	z-index: 2;
}

.station .na {
	border-color: #000000;
	background-color: #ffffff;
}

.marker.border-black { background-color: #b8bfc9 !important; border-color: #b8bfc9 !important; }
.marker.bg-danger    { background-color: #d4161d !important; border-color: #d4161d !important; }
#passStationList .marker.border-success { background-color: #1f9d55 !important; border-color: #1f9d55 !important; }
#passStationList .marker.border-warning { background-color: #e0a800 !important; border-color: #e0a800 !important; }
#passStationList .marker.border-danger  { background-color: #d4161d !important; border-color: #d4161d !important; }
#nxStationList .marker.border-success   { background-color: #fff !important; border-color: #1f9d55 !important; }
#nxStationList .marker.border-warning   { background-color: #fff !important; border-color: #e0a800 !important; }
#nxStationList .marker.border-danger    { background-color: #fff !important; border-color: #d4161d !important; }
#nxStationList .marker.border-secondary { background-color: #fff !important; border-color: #b8bfc9 !important; }
[data-bs-theme="dark"] #nxStationList .marker.border-success,
[data-bs-theme="dark"] #nxStationList .marker.border-warning,
[data-bs-theme="dark"] #nxStationList .marker.border-danger,
[data-bs-theme="dark"] #nxStationList .marker.border-secondary { background-color: #232323 !important; }

.enroute-li{ position: relative; list-style: none; height: 40px; }
.enroute-dot{ position: absolute; left: 82px; top: 50%; margin-top: -8px; width: 16px; height: 16px; border-radius: 50%; background: #0d6efd; z-index: 3; animation: enrouteMove 1.5s linear infinite; }
.enroute-txt{ position: absolute; left: 110px; top: 50%; transform: translateY(-50%); font-family: 'Google Sans'; font-weight: 700; color: #0d6efd; font-size: 1rem; }
.enroute-txt i{ margin-right: 0.25rem; }
@keyframes enrouteMove{ 0%{ transform: translateY(-16px); opacity: 0; } 25%{ opacity: 1; } 75%{ opacity: 1; } 100%{ transform: translateY(16px); opacity: 0; } }
[data-bs-theme="dark"] .enroute-dot{ background: #7fb0ff; }
[data-bs-theme="dark"] .enroute-txt{ color: #7fb0ff; }
.enroute-mark{ position: absolute; left: 80px; top: 50%; transform: translateY(-50%); width: 20px; text-align: center; font-size: 1.15rem; z-index: 3; }
.enroute-mark-danger{ color: #dc3545; }
.enroute-mark-warn{ color: #ffc107; }
.enroute-txt-danger{ color: #dc3545; }
.enroute-txt-warn{ color: #d39e00; }
[data-bs-theme="dark"] .enroute-txt-danger{ color: #ff6b7a; }
[data-bs-theme="dark"] .enroute-txt-warn{ color: #ffc107; }
.enroute-mark-stop{ color: #0d6efd; }
.enroute-txt-stop{ color: #0d6efd; }
[data-bs-theme="dark"] .enroute-mark-stop{ color: #7fb0ff; }
[data-bs-theme="dark"] .enroute-txt-stop{ color: #7fb0ff; }
.station.st-here .staName{ border: 2px solid #0d6efd; border-radius: 8px; padding: 2px 12px; background: rgba(13,110,253,0.10); }
#nxStationList .station.st-here .marker{ background: #0d6efd !important; border-color: #0d6efd !important; box-shadow: 0 0 0 4px rgba(13,110,253,0.20); }
[data-bs-theme="dark"] .station.st-here .staName{ border-color: #7fb0ff; background: rgba(127,176,255,0.15); }
[data-bs-theme="dark"] #nxStationList .station.st-here .marker{ background: #7fb0ff !important; border-color: #7fb0ff !important; }
.staName {
	position: absolute;
	left: 110px;
	display: flex;
	justify-content: center;
	align-items: center;
	font-size: 18px;
}
.circle span {
	font-size: 14px;
	color: #333;
	text-align: center;
}

#searchDate{
	z-index: 5;
}

#searchDateSM{
	z-index: 5;
}


.footerType{
	font-size: 0.8rem;
	background-color: #ffffff;
}
.modal-body-image {
  padding: 0;

}

.modal-body-image img {

  width: auto;
  height: 90%;
  max-height: 80vh;
}

.modal-image-pop {
  background: transparent;
  border: none;
  box-shadow: none;
}

.modal-image-pop .modal-body {
  position: relative;
}

.modal-image-pop .modal-footer {
  background: transparent;
  border-top: none;

  justify-content: center;

  padding-top: 1.5rem;
}

.modal-image-pop .btn-close:hover {
  opacity: 1;
}

.tt-daydiv td{
	background-color: #eef2f7;
	color: #33415c;
	font-weight: 700;
	text-align: center !important;
	padding: 0.35rem;
	letter-spacing: 0.02em;
}
.tt-origin{ background-color: #eaf3ff !important; }
.tt-dest  { background-color: #eafaf0 !important; }
.tt-origin .tt-station, .tt-dest .tt-station{ font-weight: 800; }
.tt-time{ font-variant-numeric: tabular-nums; font-size: 2rem; }   /* เท่า .stationTime ฝั่งสด */
/* ป้ายต้นทาง/ปลายทาง โตตามช่องเวลา */
.tt-tag{
	display: inline-block;
	border-radius: 6px;
	padding: 0.15rem 0.75rem;
	font-size: 1.25rem;
	font-weight: 700;
	color: #ffffff;
}
.tt-tag-o{ background-color: #0d6efd; }
.tt-tag-d{ background-color: #1f7a3d; }

[data-bs-theme="dark"] .tt-daydiv td{ background-color: #2a2f36; color: #cdd6e2; }
[data-bs-theme="dark"] .tt-origin{ background-color: #16283f !important; }
[data-bs-theme="dark"] .tt-dest  { background-color: #15301f !important; }

.tt-destnote{ font-size: 0.92rem; color: #55606f; margin: 0.25rem 0 0.5rem; }
.tt-destnote i{ color: #8f0d16; margin-right: 0.3rem; }
.tt-destchips{ display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.5rem; }
.tt-destchip{
	display: flex; flex-direction: column; align-items: flex-start;
	border: 1.5px solid #d8bdbb; background: #fff; border-radius: 0.6rem;
	padding: 0.4rem 0.8rem; cursor: pointer;
	font-family: 'Google Sans'; transition: background .12s, border-color .12s, color .12s;
}
.tt-destchip .tt-dc-name{ font-weight: 700; font-size: 1rem; }
.tt-destchip .tt-dc-days{ font-size: 0.8rem; opacity: 0.85; }
.tt-destchip:hover{ border-color: #8f0d16; }
.tt-destchip-cur{ background: #8f0d16; border-color: #8f0d16; color: #fff; }
.tt-destchip-off{ opacity: 0.55; }
.tt-nodaynote{
	background: #fff3cd; color: #8a6d00; border-radius: 0.5rem;
	padding: 0.5rem 0.75rem; font-size: 0.92rem; margin-bottom: 0.5rem;
}
.tt-nodaynote i{ margin-right: 0.35rem; }

[data-bs-theme="dark"] .tt-destnote{ color: #c3ccd8; }
[data-bs-theme="dark"] .tt-destnote i{ color: #cf8983; }
[data-bs-theme="dark"] .tt-destchip{ background: #232323; border-color: #4a2f2e; color: #e6edf3; }
[data-bs-theme="dark"] .tt-destchip:hover{ border-color: #cf8983; }
[data-bs-theme="dark"] .tt-destchip-cur{ background: #8f0d16; border-color: #8f0d16; color: #fff; }
[data-bs-theme="dark"] .tt-nodaynote{ background: #2e2611; color: #e0b64b; }

.tt-validcell{
	background-color: #fff8e1;
	color: #8a6d00;
	text-align: center !important;
	font-weight: 700;
	padding: 0.5rem !important;
	font-family: 'Google Sans';
}
.tt-validcell i{ margin-right: 0.35rem; }
[data-bs-theme="dark"] .tt-validcell{ background-color: #2e2611; color: #e0b64b; }

.tt-nearestbanner{
	background-color: #e7f1ff;
	color: #084298;
	border: 1px solid #b6d4fe;
	border-radius: 0.5rem;
	padding: 0.6rem 0.9rem;
	margin: 0.75rem auto;
	max-width: 66%;
	font-family: 'Google Sans';
	font-weight: 600;
}
.tt-nearestbanner i{ margin-right: 0.4rem; }
@media (max-width: 1200px){ .tt-nearestbanner{ max-width: 100%; } }
[data-bs-theme="dark"] .tt-nearestbanner{ background-color: #10233d; color: #9cc2fb; border-color: #244a7a; }

.tt-typebadge{ display: inline-block; border-radius: 0.5rem; padding: 0.2rem 0.6rem; min-width: 4.5rem; line-height: 1.1; }
.tt-typebadge .tt-tb-type{ display: block; font-size: 0.72rem; font-weight: 600; }
.tt-typebadge .tt-tb-no{ display: block; font-size: 1.05rem; font-weight: 800; }
.tt-stop-yes{ color: #1f7a3d; font-weight: 700; font-size: 0.9rem; }
.tt-stop-no{ color: #9aa4ad; font-size: 0.9rem; }

.sm-datewrap-lg{
	flex-direction: column; align-items: flex-start; gap: 0.3rem;
	width: 100%; margin-top: 0.5rem; padding: 0.6rem 0.8rem;
	background: #fff7ec; border: 1px solid #ffe0b3; border-radius: 0.6rem;
}
.sm-datewrap-lg .sm-datelabel{ font-size: 0.95rem; font-weight: 700; color: #8a5a00; margin: 0; white-space: normal; }
.sm-datebox{ position: relative; display: inline-flex; align-items: center; cursor: pointer; }
.sm-datebox .sm-dateinput{
	max-width: 11rem; font-size: 1.05rem; font-weight: 700; text-align: center;
	border: 2px solid #f0a012; border-radius: 0.5rem; cursor: pointer; padding-right: 2rem;
}
.sm-datebox i{ position: absolute; right: 0.7rem; color: #f0a012; pointer-events: none; }
[data-bs-theme="dark"] .sm-datewrap-lg{ background: #2a2211; border-color: #5a4213; }
[data-bs-theme="dark"] .sm-datewrap-lg .sm-datelabel{ color: #e0b64b; }
[data-bs-theme="dark"] .sm-datebox .sm-dateinput{ background: #232323; color: #e6edf3; border-color: #f0a012; }
[data-bs-theme="dark"] .tt-stop-no{ color: #7a8390; }

.st-tt-toolbar{ display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; justify-content: space-between; margin-bottom: 0.6rem; }
.st-tt-dir{ display: inline-flex; background: #eef1f5; border-radius: 999px; padding: 0.2rem; }
.st-dir-btn{ border: 0; background: transparent; border-radius: 999px; padding: 0.3rem 0.85rem; font-weight: 600; color: #55606f; cursor: pointer; font-family: 'Google Sans'; white-space: nowrap; }
.st-dir-btn.st-dir-cur{ background: #8f0d16; color: #fff; }
.st-tt-search{ max-width: 16rem; }

/* [15/08/2569 user] "ตัวตารางเวลาในรูปแรกนี้ไม่เห็นเปลี่ยนเลย"
   ป้ายสถานะฝั่ง "ตารางเวลา" เป็นคนละตัวกับฝั่ง "สถานะขบวนรถปัจจุบัน" (.stBoard ใน
   stationBoard.css) จึงไม่ได้ตัวใหญ่/สี PID ตามไปด้วย — ยกมาให้เป็นชุดเดียวกันที่นี่
   ขนาด 1.5rem (ไม่ใช่ 2.2rem เท่าฝั่งสถานะสด) เพราะตารางนี้มี 7 คอลัมน์และยาวทั้งวัน */
.st-badge{ display: inline-flex; align-items: center; gap: 0.4rem; border-radius: 999px; padding: 0.2rem 0.8rem; font-family: 'Google Sans'; font-size: 1.5rem; font-weight: 700; white-space: nowrap; }
.st-badge i{ font-size: 0.75rem; }
/* จานสีเดียวกับจอ PID (ดู stationBoard.css) — เดินแล้ว/ตามแผน = ยังไม่มีสถานะจริง จึงเป็นกลาง */
.st-ran, .st-plan{ background: #eceef1; color: #5a6472; }
.st-est{ background: #fff3e6; color: #FF9933; }
.st-dep, .st-arr, .st-atsta, .st-final{ background: #e8eef5; color: #003366; }
.st-issue{ background: #fdecec; color: #8f0000; }

.tt-next{ box-shadow: inset 3px 0 0 #f0a012; }
.tt-next > td{ background: #fff8e1 !important; }

[data-bs-theme="dark"] .st-tt-dir{ background: #262b31; }
[data-bs-theme="dark"] .st-dir-btn{ color: #c3ccd8; }
[data-bs-theme="dark"] .st-dir-btn.st-dir-cur{ background: #8f0d16; color: #fff; }
[data-bs-theme="dark"] .st-ran, [data-bs-theme="dark"] .st-plan{ background: #2a2f36; color: #aab4c0; }
[data-bs-theme="dark"] .st-est{ background: #33280f; color: #FFB366; }
[data-bs-theme="dark"] .st-dep, [data-bs-theme="dark"] .st-arr,
[data-bs-theme="dark"] .st-atsta, [data-bs-theme="dark"] .st-final{ background: #16253a; color: #8ab4e8; }
[data-bs-theme="dark"] .st-issue{ background: #3a1d1d; color: #ff8f8a; }
[data-bs-theme="dark"] .tt-next > td{ background: #33280f !important; }

.tt-major{ font-weight: 800 !important; font-size: 1.16em; color: #8f0d16; }
[data-bs-theme="dark"] .tt-major{ color: #e79a95; }
.st-tt-head{ font-weight: 700; font-size: 1.05rem; margin: 0.5rem 0 0.3rem; font-family: 'Google Sans'; }
.st-tt-head i{ margin-right: 0.3rem; }

/* [15/08/2569 user] "ฝั่งประเภทขบวน สถานีต้นทาง-ปลายทาง ถึง จอด ออก ก็แก้ให้ใหญ่ขึ้นมาด้วย"
   ยกทั้งแถวของตารางเวลาสถานีให้ใกล้เคียงฝั่ง "สถานะขบวนรถปัจจุบัน" */
.tv-type-badge{ border-radius: 0.5rem; padding: 0.4rem 0.9rem; display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem; line-height: 1.12; min-width: 8.5rem; font-family: 'Google Sans'; }
.tv-type-badge.tv-nocode{ align-items: baseline; }
.tv-type-badge .tv-tleft{ display: flex; flex-direction: column; align-items: center; text-align: center; }
.tv-type-badge .tv-ttype{ font-size: 1.3rem; font-weight: 600; line-height: 1.1; }
.tv-type-badge .tv-tno{ font-size: 2.2rem; font-weight: 800; line-height: 1; }
.tv-od{ display: flex; flex-direction: column; align-items: flex-start; gap: 0.1rem; line-height: 1.3; font-size: 1.4rem; font-family: 'Google Sans'; }
.tv-od .tv-arrow{ opacity: 0.55; }
.tv-od .tv-ori{ opacity: 0.9; }
.tt-dwell{ font-size: 1.4rem; color: #55606f; }
.tt-runhead{ display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem 0.9rem;
    background: #eef6ff; border-radius: 0.6rem; padding: 0.5rem 0.85rem; margin: 0.35rem 0; font-family: 'Google Sans'; }
.tt-rundays{ display: flex; align-items: center; flex-wrap: wrap; gap: 0.4rem 0.6rem; }
.tt-rd-label{ font-weight: 800; color: #540906; }
.tt-rd-label i{ margin-right: 0.3rem; }
.tt-rd-pills{ display: inline-flex; gap: 0.28rem; }
.tt-rd-pill{ display: inline-flex; align-items: center; justify-content: center; min-width: 1.7rem; height: 1.7rem; padding: 0 0.4rem;
    border-radius: 0.85rem; font-size: 0.86rem; font-weight: 700; background: #e3e7ec; color: #aeb6c0; }
.tt-rd-pill.run{ background: #004AAD; color: #fff; box-shadow: 0 1px 3px rgba(0,74,173,0.35); }
.tt-rd-hol{ display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.15rem 0.6rem; border-radius: 0.8rem;
    font-size: 0.82rem; font-weight: 700; background: rgba(31,157,85,0.13); color: #1f9d55; }
.tt-rd-valid{ font-size: 0.85rem; color: #6c757d; white-space: nowrap; }
.tt-rd-valid i{ margin-right: 0.3rem; color: #0d6efd; }
[data-bs-theme="dark"] .tt-dwell{ color: #aab4c0; }
[data-bs-theme="dark"] .tt-runhead{ background: #10233d; }
[data-bs-theme="dark"] .tt-rd-label{ color: #e79a95; }
[data-bs-theme="dark"] .tt-rd-pill{ background: #343a40; color: #7d8590; }
[data-bs-theme="dark"] .tt-rd-pill.run{ background: #3d7bd6; color: #fff; }
[data-bs-theme="dark"] .tt-rd-valid{ color: #aab4c0; }
.tt-datepick{ display: flex; align-items: center; gap: 0.45rem; flex-wrap: wrap; margin-bottom: 0.6rem; font-weight: 700; color: #540906; font-family: 'Google Sans'; }
.tt-datepick i{ color: #0d6efd; }
.tt-datepick input[type=date]{ border: 1px solid #ced4da; border-radius: 0.4rem; padding: 0.25rem 0.55rem; font-family: 'Google Sans'; }
[data-bs-theme="dark"] .tt-datepick{ color: #e79a95; }

.consist-wrap{ width: 100%; margin-top: 0.35rem; }
.consist-head{ font-family: 'Google Sans'; font-weight: 700; color: #540906; font-size: 0.95rem; margin-bottom: 0.35rem; }
.consist-head i{ color: #004AAD; margin-right: 0.35rem; }
.cst-src{ font-weight: 400; font-size: 0.78rem; color: #6c757d; margin-left: 0.3rem; }
.consist-strip{ display: flex; align-items: center; gap: 4px; overflow-x: auto; padding: 0.25rem 0.1rem 0.45rem;
    -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.cst-tile{ flex: 0 0 auto; width: 46px; height: 46px; border-radius: 8px; display: flex; align-items: center; justify-content: center;
    position: relative; font-family: 'Google Sans'; font-weight: 700; font-size: 1.1rem; color: #fff; cursor: pointer;
    border: 1px solid rgba(0,0,0,0.15); user-select: none; }
.cst-tile:hover, .cst-tile:focus, .cst-tile.cst-on{ outline: 2px solid #004AAD; outline-offset: 1px; }
.cst-ac{ background: #1f7a8c; }
.cst-fan{ background: #E8821E; }
.cst-svc{ background: #6c757d; font-size: 1rem; }
.cst-unk{ background: #adb5bd; color: #343a40; }
.cst-no{ line-height: 1; }
.cst-cls{ position: absolute; top: 0; right: 3px; font-size: 0.6rem; font-weight: 700; opacity: 0.95; }
.cst-cell{ flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; }
.cst-svcbar{ width: 46px; height: 21px; margin-top: 3px; border-radius: 6px;
    display: flex; justify-content: center; align-items: center; gap: 3px;
    font-size: 0.8rem; color: #fff; line-height: 1;
    border: 1px solid rgba(0,0,0,0.15); }
.cst-svcbar-empty{ visibility: hidden; }
.cst-mk{ display: flex; align-items: center; gap: 3px; }
.cst-mk3{ font-size: 0.68rem; gap: 2px; }
.cst-loco{ flex: 0 0 auto; width: 58px; height: 46px; background: #7d1a15; color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; border-radius: 4px 8px 8px 4px; clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%, 0 45%); cursor: pointer; }
.cst-dir{ display: flex; align-items: center; gap: 0.35rem; font-family: 'Google Sans';
    font-size: 0.72rem; color: #6c757d; margin: 0.1rem 0 0.35rem; }
.cst-dir-label{ flex: 0 0 auto; }
.cst-dir-line{ flex: 1 1 auto; position: relative; height: 1px; background: currentColor; opacity: 0.55; min-width: 24px; }
.cst-dir-line i{ position: absolute; right: -2px; top: 50%; transform: translateY(-50%); font-size: 0.62rem; }
.cst-info{ font-family: 'Google Sans'; font-size: 0.82rem; color: #212529; min-height: 1.3rem; }
.cst-info .cst-dim{ color: #6c757d; }
.cst-legend{ font-size: 0.72rem; color: #6c757d; margin-top: 0.2rem; display: flex; flex-wrap: wrap; gap: 0.7rem; align-items: center; }
.cst-dot{ display: inline-block; width: 0.7rem; height: 0.7rem; border-radius: 3px; margin-right: 0.25rem; vertical-align: -1px; }
.cst-footnote{ font-family: 'Google Sans'; font-size: 0.68rem; color: #6c757d; opacity: 0.85; margin-top: 0.3rem; }
@media (max-width: 575.98px){
    .cst-tile{ width: 40px; height: 40px; font-size: 0.95rem; }
    .cst-loco{ width: 50px; height: 40px; font-size: 1.05rem; }
    .cst-svcbar{ width: 40px; height: 19px; font-size: 0.7rem; gap: 2px; }
    .cst-mk3{ font-size: 0.58rem; gap: 2px; }
}
[data-bs-theme="dark"] .consist-head{ color: #e79a95; }
[data-bs-theme="dark"] .consist-head i{ color: #7fb0ff; }
[data-bs-theme="dark"] .cst-fan{ background: #E8821E; border-color: #f0a355; }
[data-bs-theme="dark"] .cst-svc{ background: #5a6268; border-color: #7a838b; }
[data-bs-theme="dark"] .cst-unk{ background: #868e96; color: #212529; }
[data-bs-theme="dark"] .cst-svcbar{ color: #fff; }
[data-bs-theme="dark"] .cst-info{ color: #e6edf3; }
[data-bs-theme="dark"] .cst-info .cst-dim, [data-bs-theme="dark"] .cst-legend, [data-bs-theme="dark"] .cst-src{ color: #b7c0cc; }
[data-bs-theme="dark"] .cst-dir, [data-bs-theme="dark"] .cst-footnote{ color: #b7c0cc; }
[data-bs-theme="dark"] .cst-tile:hover, [data-bs-theme="dark"] .cst-tile:focus, [data-bs-theme="dark"] .cst-tile.cst-on{ outline-color: #7fb0ff; }
[data-bs-theme="dark"] .tt-datepick input[type=date]{ background: #2a2f36; color: #e6e6e6; border-color: #495057; }