* {
  box-sizing: border-box;
}

body {
  margin: 0;
  height: 100vh;
  overflow: hidden;
  font-family: Arial, sans-serif;
  background: #111827;
  color: white;
}

.ticker {
  height: 70px;
  color: #111827;
  overflow: hidden;
  display: flex;
  align-items: center;
  font-size: 32px;
  font-weight: bold;
  white-space: nowrap;
}

.banner-white {
  background: #f8fafc;
  color: #111827;
}

.banner-yellow {
  background: #facc15;
  color: #111827;
}

.banner-red {
  background: #dc2626;
  color: white;
}

.ticker div {
  animation: scrollText 18s linear infinite;
  padding-left: 100%;
}

@keyframes scrollText {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

.dashboard {
  height: calc(100vh - 70px);
  display: grid;
  grid-template-columns: 34% 66%;
  gap: 16px;
  padding: 16px;
}

.left-column {
  min-height: 0;
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
}

.carousel-zone {
  min-height: 0;
}

.carousel-card {
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr;
}

.carousel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.carousel-dots {
  display: flex;
  gap: 8px;
}

.carousel-dots span {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #6b7280;
}

.carousel-dots span.active {
  background: white;
}

.carousel-content {
  position: relative;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  background: #111827;
  border-radius: 14px;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateX(0);
  opacity: 1;
  transition: transform 650ms ease-in-out, opacity 650ms ease-in-out;
  will-change: transform, opacity;
}

.carousel-slide.current {
  transform: translateX(0);
  opacity: 1;
  z-index: 2;
}

.carousel-slide.entering {
  transform: translateX(100%);
  opacity: 0.85;
  z-index: 3;
}

.carousel-slide.leaving {
  transform: translateX(-100%);
  opacity: 0.85;
  z-index: 1;
}

.carousel-slide img,
.carousel-slide iframe {
  width: 100%;
  height: 100%;
  border: none;
  object-fit: contain;
  background: white;
}

.office-fallback {
  width: min(72%, 520px);
  aspect-ratio: 9 / 16;
  background: white;
  color: #111827;
  border-radius: 18px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.office-fallback strong {
  font-size: 30px;
  line-height: 1.15;
}

.office-fallback span {
  font-size: 18px;
  color: #4b5563;
  line-height: 1.35;
}

.card {
  min-height: 0;
  background: #1f2937;
  border-radius: 20px;
  padding: 24px;
  overflow: hidden;
}

h2 {
  margin-top: 0;
  font-size: 28px;
}

.weather-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.weather-temp {
  font-size: 44px;
  font-weight: 900;
  line-height: 1;
}

.weather-current-icon {
  font-size: 56px;
  line-height: 1;
}

.weather-hours {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 8px;
}

.weather-hour-card {
  background: #374151;
  padding: 7px;
  border-radius: 10px;
  text-align: center;
  min-width: 0;
}

.weather-hour-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 6px;
}

.weather-hour-condition,
.weather-hour-precipitation {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.weather-hour-time {
  font-size: 14px;
  color: #d1d5db;
}

.weather-hour-icon {
  font-size: 20px;
  line-height: 1.2;
}

.weather-hour-temp {
  font-size: 18px;
  font-weight: 900;
}

.weather-hour-rain-icon {
  font-size: 18px;
  line-height: 1.2;
}

.weather-hour-rain-percent {
  font-size: 13px;
  color: #dbeafe;
  font-weight: 700;
}

.traffic-board {
  background: #f8fafc;
  color: #111827;
  border-radius: 14px;
  padding: 10px;
  margin-bottom: 12px;
}

.traffic-row {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}

.traffic-row:last-child {
  margin-bottom: 0;
}

.traffic-row-label {
  color: #000091;
  font-weight: bold;
  text-align: center;
  line-height: 1.05;
}

.traffic-row-label span {
  display: block;
  font-size: 14px;
}

.traffic-row-label strong {
  display: block;
  font-size: 24px;
}

.traffic-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.traffic-pill {
  position: relative;
  width: 38px;
  height: 31px;
  border: 3px solid #22c55e;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 18px;
  color: #111827;
  background: white;
}

.traffic-pill span {
  width: 26px;
  height: 22px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.traffic-pill b {
  position: absolute;
  right: -5px;
  bottom: -7px;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: #f97316;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1;
}

.traffic-pill.status-warning,
.traffic-pill.status-works {
  border-color: #f97316;
}

.traffic-pill.status-blocked {
  border-color: #ef4444;
}

.traffic-pill.status-blocked b {
  background: #ef4444;
}

.rer-a span { background: #e3051b; color: white; }
.rer-b span { background: #4da7df; color: white; }
.rer-c span { background: #f5c400; color: black; }
.rer-d span { background: #008b5b; color: white; }
.rer-e span { background: #c8007a; color: white; }

.train-h span { background: #8b5a2b; color: white; }
.train-j span { background: #c50084; color: white; }
.train-k span { background: #7a1fa2; color: white; }
.train-l span { background: #94c11f; color: black; }
.train-n span { background: #00a88f; color: white; }
.train-p span { background: #f58220; color: black; }
.train-r span { background: #f4d03f; color: black; }
.train-u span { background: #662483; color: white; }
.train-v span { background: #00843d; color: white; }

.metro-1 span { background: #ffcd00; color: black; }
.metro-2 span { background: #006bb6; color: white; }
.metro-3 span { background: #9b993b; color: white; }
.metro-3b span { background: #83c7e8; color: black; font-size: 11px; }
.metro-4 span { background: #be0071; color: white; }
.metro-5 span { background: #f28e42; color: black; }
.metro-6 span { background: #6eca97; color: black; }
.metro-7 span { background: #f5a3c7; color: black; }
.metro-7b span { background: #6eca97; color: black; font-size: 11px; }
.metro-8 span { background: #c5a3c7; color: black; }
.metro-9 span { background: #d5c900; color: black; }
.metro-10 span { background: #e5b400; color: black; }
.metro-11 span { background: #8d5e2a; color: white; }
.metro-12 span { background: #008b5b; color: white; }
.metro-13 span { background: #83c7e8; color: black; }
.metro-14 span { background: #662483; color: white; }

.tram-t1 span { background: #0055a4; color: white; }
.tram-t2 span { background: #c50084; color: white; }
.tram-t3a span { background: #f58220; color: black; font-size: 12px; }
.tram-t3b span { background: #00843d; color: white; font-size: 12px; }
.tram-t4 span { background: #f4d03f; color: black; }
.tram-t5 span { background: #7a1fa2; color: white; }
.tram-t6 span { background: #e30613; color: white; }
.tram-t7 span { background: #6b4f1d; color: white; }
.tram-t8 span { background: #9a9d1e; color: black; }
.tram-t9 span { background: #1c75bc; color: white; }
.tram-t10 span { background: #7a8b00; color: white; font-size: 12px; }
.tram-t11 span { background: #f05a28; color: black; font-size: 12px; }
.tram-t12 span { background: #e30613; color: white; font-size: 12px; }
.tram-t13 span { background: #8b5a2b; color: white; font-size: 12px; }
.tram-t14 span { background: #008f7a; color: white; font-size: 12px; }

.incident-marquee {
  background: #111827;
  border-radius: 12px;
  overflow: hidden;
  white-space: nowrap;
  padding: 12px 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.incident-marquee div {
  display: inline-block;
  padding-left: 100%;
  animation: incidentScroll 110s linear infinite;
  font-size: 17px;
}

@keyframes incidentScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

.traffic-error {
  background: #7f1d1d;
  padding: 12px;
  border-radius: 10px;
  line-height: 1.4;
}
