:root {
  --bg: #07111f;
  --panel: rgba(13, 28, 48, .78);
  --panel-strong: rgba(11, 25, 43, .96);
  --line: rgba(255,255,255,.11);
  --text: #f7fbff;
  --muted: #9fb0c5;
  --cyan: #5be7ff;
  --blue: #4f8cff;
  --green: #40d987;
  --yellow: #ffd05a;
  --orange: #ff9a5a;
  --red: #ff667a;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
html { color-scheme: dark; }
body {
  min-height: 100dvh;
  overflow: hidden;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 16% 12%, rgba(37, 111, 255, .25), transparent 31%),
    radial-gradient(circle at 86% 86%, rgba(0, 221, 204, .16), transparent 28%),
    linear-gradient(145deg, #050b14 0%, #09172a 54%, #06111f 100%);
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .28;
  background-image: linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
}
button, a { font: inherit; }
a { color: inherit; text-decoration: none; }
.ambient { position: fixed; border-radius: 50%; filter: blur(80px); pointer-events: none; opacity: .28; }
.ambient-one { width: 25vw; height: 25vw; left: -8vw; top: 15vh; background: #245eff; }
.ambient-two { width: 30vw; height: 30vw; right: -12vw; bottom: -12vh; background: #00bfae; }
.app-shell {
  position: relative;
  z-index: 1;
  width: min(1460px, calc(100% - 48px));
  height: 100dvh;
  margin: 0 auto;
  display: grid;
  grid-template-rows: 78px minmax(0,1fr) 54px;
}
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}
.identity { display: flex; align-items: center; gap: 13px; }
.identity-mark {
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(80,143,255,.98), rgba(22,73,176,.98));
  box-shadow: 0 10px 34px rgba(39,104,229,.34), inset 0 1px 0 rgba(255,255,255,.28);
}
.identity-mark svg { width: 27px; height: 27px; fill: currentColor; color: white; }
.identity-copy strong, .identity-copy small { display: block; }
.identity-copy strong { font-size: .98rem; letter-spacing: -.025em; }
.identity-copy small { margin-top: 4px; color: var(--muted); font-size: .68rem; }
.freshness {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 13px; border: 1px solid var(--line); border-radius: 999px;
  background: rgba(255,255,255,.035); color: #c5d2e2; font-size: .72rem;
}
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(64,217,135,.12), 0 0 18px rgba(64,217,135,.7); }
main { min-height: 0; display: grid; grid-template-rows: auto minmax(0,1fr) 18px; gap: 18px; padding: 28px 0 18px; }
.hero { display: flex; align-items: end; justify-content: space-between; gap: 40px; }
.eyebrow { margin: 0 0 10px; color: var(--cyan); font-size: .67rem; font-weight: 800; letter-spacing: .19em; }
.hero h1 { margin: 0; font-size: clamp(2rem, 3.6vw, 4rem); line-height: .98; letter-spacing: -.065em; font-weight: 800; }
.hero-copy { width: min(430px, 38vw); margin: 0 0 4px; color: var(--muted); font-size: .82rem; line-height: 1.65; text-align: right; }
.route-grid { min-height: 0; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.route-card {
  --accent: var(--green); --soft: rgba(64,217,135,.12);
  min-height: 0;
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 2.5vw, 38px);
  display: grid;
  grid-template-rows: auto minmax(0,1fr) auto;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 28px;
  background:
    radial-gradient(circle at 86% 11%, var(--soft), transparent 28%),
    linear-gradient(145deg, rgba(19,39,65,.86), rgba(8,22,39,.92));
  box-shadow: 0 24px 70px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.06);
  backdrop-filter: blur(18px);
}
.route-card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: .9;
}
.route-card::after {
  content: ""; position: absolute; width: 240px; height: 240px; right: -110px; bottom: -140px;
  border-radius: 50%; border: 1px solid var(--soft); box-shadow: 0 0 70px var(--soft);
}
.route-card.moderate { --accent: var(--yellow); --soft: rgba(255,208,90,.13); }
.route-card.queue { --accent: var(--orange); --soft: rgba(255,154,90,.13); }
.route-card.intense { --accent: var(--red); --soft: rgba(255,102,122,.14); }
.route-topline { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; }
.route-name { margin: 0 0 8px; color: #7f93aa; font-size: .64rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.route-topline h2 { margin: 0; max-width: 420px; font-size: clamp(1rem, 1.7vw, 1.35rem); line-height: 1.25; letter-spacing: -.035em; }
.condition { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px; border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent); border-radius: 999px; color: var(--accent); background: var(--soft); font-size: .68rem; font-weight: 800; white-space: nowrap; }
.condition i { width: 7px; height: 7px; display: block; border-radius: 50%; background: currentColor; box-shadow: 0 0 14px currentColor; font-size: 0; }
.time-block { position: relative; z-index: 1; align-self: center; margin-top: 4px; }
.time-label { display: block; color: #a9b8ca; font-size: .74rem; font-weight: 600; letter-spacing: .01em; }
.time-value { display: flex; align-items: baseline; gap: 12px; margin-top: 8px; }
.time-value strong { font-size: clamp(5.6rem, 9.2vw, 10.5rem); line-height: .8; letter-spacing: -.095em; font-weight: 900; text-shadow: 0 12px 44px rgba(0,0,0,.28); }
.time-value small { color: #9fb0c5; font-size: clamp(1rem, 1.6vw, 1.35rem); font-weight: 700; }
.time-value.fallback { display: grid; gap: 5px; }
.time-value.fallback strong { font-size: 2.25rem; line-height: 1; letter-spacing: -.04em; }
.time-value.fallback small { font-size: .8rem; }
.card-bottom { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 18px; align-items: end; padding-top: 19px; border-top: 1px solid var(--line); }
.public-summary { display: grid; gap: 5px; }
.public-summary span { color: var(--muted); font-size: .74rem; line-height: 1.45; }
.public-summary strong { color: white; }
.public-summary .data-source { color: #71869e; font-size: .62rem; }
.details-toggle { display: inline-flex; align-items: center; gap: 9px; border: 0; border-radius: 13px; padding: 11px 14px; color: #dfeaff; background: rgba(255,255,255,.07); cursor: pointer; font-size: .7rem; font-weight: 700; transition: background .2s, transform .2s; }
.details-toggle:hover { background: rgba(255,255,255,.12); transform: translateY(-1px); }
.details-toggle span:last-child { color: var(--cyan); font-size: 1rem; }
.status-message { margin: 0; min-height: 18px; color: #ff9dad; font-size: .7rem; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); }
.site-footer p { margin: 0; color: #71849b; font-size: .61rem; }
.tecmen-signature { display: inline-flex; align-items: center; gap: 10px; }
.tecmen-signature span { color: #71849b; font-size: .6rem; }
.tecmen-signature img { width: 106px; height: 30px; object-fit: contain; object-position: right center; filter: brightness(0) invert(1); opacity: .9; }
.loading-card { min-height: 0; border: 1px solid var(--line); border-radius: 28px; background: rgba(255,255,255,.04); padding: 34px; }
.loading-card span { display: block; border-radius: 9px; background: linear-gradient(90deg,rgba(255,255,255,.05),rgba(255,255,255,.12),rgba(255,255,255,.05)); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
.loading-card span:nth-child(1) { width: 62%; height: 28px; }
.loading-card span:nth-child(2) { width: 42%; height: 120px; margin-top: 65px; }
.loading-card span:nth-child(3) { width: 74%; height: 16px; margin-top: 55px; }
.empty-state { grid-column: 1/-1; display: grid; place-content: center; text-align: center; border: 1px dashed var(--line); border-radius: 28px; color: var(--muted); }
.empty-state strong { color: var(--text); }
.modal-backdrop { position: fixed; z-index: 20; inset: 0; display: grid; place-items: center; padding: 24px; background: rgba(2,8,15,.76); backdrop-filter: blur(14px); }
.modal-backdrop[hidden] { display: none; }
.modal-card { width: min(560px, 100%); max-height: min(720px, calc(100dvh - 48px)); overflow: auto; position: relative; padding: 30px; border: 1px solid var(--line); border-radius: 24px; background: var(--panel-strong); box-shadow: 0 30px 100px rgba(0,0,0,.5); }
.modal-close { position: absolute; right: 18px; top: 16px; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; color: white; background: rgba(255,255,255,.06); cursor: pointer; font-size: 1.35rem; }
.modal-route { margin: 0 45px 8px 0; color: var(--muted); font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.modal-card h2 { margin: 0 45px 25px 0; font-size: 1.45rem; letter-spacing: -.04em; }
.modal-card dl { margin: 0; display: grid; gap: 0; }
.modal-card dl > div { display: flex; justify-content: space-between; gap: 22px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.modal-card dt { color: var(--muted); font-size: .75rem; }
.modal-card dd { margin: 0; color: white; text-align: right; font-size: .77rem; font-weight: 750; }
.modal-note { margin: 22px 0 0; padding: 16px; border-radius: 15px; color: var(--muted); background: rgba(255,255,255,.045); font-size: .7rem; line-height: 1.6; }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (max-height: 760px) and (min-width: 761px) {
  .app-shell { grid-template-rows: 68px minmax(0,1fr) 44px; }
  main { gap: 12px; padding: 18px 0 12px; }
  .hero h1 { font-size: clamp(1.8rem, 3vw, 3rem); }
  .hero-copy { font-size: .72rem; }
  .route-card { padding: 24px; }
  .time-value strong { font-size: clamp(4.7rem, 8vw, 8rem); }
  .site-footer p { font-size: .56rem; }
}
@media (max-width: 760px) {
  body { overflow: auto; }
  .app-shell { width: min(100% - 24px, 680px); min-height: 100dvh; height: auto; grid-template-rows: 68px auto 52px; }
  .identity-copy small { display: none; }
  .freshness { padding: 8px 10px; font-size: .63rem; }
  main { min-height: calc(100dvh - 120px); grid-template-rows: auto minmax(0,1fr) 16px; gap: 12px; padding: 18px 0 12px; }
  .hero { align-items: flex-start; }
  .hero h1 { font-size: clamp(1.65rem, 8vw, 2.45rem); }
  .hero-copy { display: none; }
  .route-grid { grid-template-columns: 1fr; grid-template-rows: repeat(2, minmax(255px,1fr)); gap: 12px; }
  .route-card { min-height: 255px; padding: 19px; border-radius: 22px; }
  .route-topline h2 { font-size: .98rem; }
  .condition { padding: 7px 9px; font-size: .6rem; }
  .time-block { margin-top: 2px; }
  .time-label { font-size: .64rem; }
  .time-value strong { font-size: clamp(4.5rem, 23vw, 6.5rem); }
  .time-value small { font-size: .95rem; }
  .card-bottom { padding-top: 12px; }
  .public-summary span { font-size: .65rem; }
  .public-summary .data-source { display: none; }
  .details-toggle { padding: 9px 10px; font-size: .62rem; }
  .site-footer p { max-width: 60%; font-size: .5rem; line-height: 1.35; }
  .tecmen-signature span { display: none; }
  .tecmen-signature img { width: 82px; }
}
@media (max-width: 410px) {
  .route-topline { gap: 10px; }
  .condition { max-width: 122px; white-space: normal; text-align: center; }
  .time-value strong { font-size: 4.45rem; }
  .card-bottom { grid-template-columns: 1fr auto; }
}

/* V10 — quatro sentidos em uma única tela */
.hero { display:none; }
main { grid-template-rows:minmax(0,1fr) 16px; padding:16px 0 12px; gap:10px; }
.route-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.crossing-group { min-height:0; display:grid; grid-template-rows:auto minmax(0,1fr); gap:10px; padding:14px; border:1px solid rgba(255,255,255,.1); border-radius:26px; background:rgba(7,20,36,.56); box-shadow:0 24px 70px rgba(0,0,0,.22); backdrop-filter:blur(18px); }
.crossing-group.balsa { background:linear-gradient(145deg,rgba(12,36,48,.64),rgba(7,20,36,.7)); }
.crossing-header { display:flex; align-items:end; justify-content:space-between; gap:16px; padding:0 4px; }
.crossing-header h2 { margin:3px 0 0; font-size:clamp(1rem,1.45vw,1.3rem); letter-spacing:-.035em; }
.crossing-header > span { color:var(--muted); font-size:.65rem; }
.crossing-kicker { color:var(--cyan); font-size:.56rem; font-weight:800; letter-spacing:.16em; }
.crossing-routes { min-height:0; display:grid; grid-template-rows:repeat(2,minmax(0,1fr)); gap:10px; }
.route-card { padding:clamp(15px,1.35vw,21px); border-radius:20px; grid-template-rows:auto minmax(0,1fr) auto; }
.route-topline h2 { font-size:clamp(.82rem,1.05vw,1rem); }
.route-name { margin-bottom:4px; font-size:.52rem; }
.condition { padding:6px 9px; font-size:.57rem; }
.time-label { font-size:.62rem; }
.time-value { margin-top:4px; gap:8px; }
.time-value strong { font-size:clamp(3.6rem,5.6vw,6.8rem); }
.time-value small { font-size:.85rem; }
.card-bottom { padding-top:9px; gap:8px; }
.public-summary span { font-size:.6rem; }
.details-toggle { width:32px; height:32px; padding:0; justify-content:center; border-radius:10px; font-size:.9rem; }
.route-card::after { width:150px; height:150px; right:-80px; bottom:-95px; }
.loading-card:nth-child(n+3){display:block}
@media (max-height:760px) and (min-width:761px){
  .route-grid{gap:10px}.crossing-group{padding:10px;gap:7px}.crossing-routes{gap:7px}.route-card{padding:13px}.time-value strong{font-size:clamp(3rem,5vw,5.6rem)}
}
@media (max-width:760px){
  body{overflow:hidden}.app-shell{width:min(100% - 14px,680px);height:100dvh;min-height:100dvh;grid-template-rows:58px minmax(0,1fr) 38px}.site-header{min-height:58px}.identity-mark{width:34px;height:34px}.identity-copy strong{font-size:.86rem}.freshness{font-size:.55rem;padding:6px 8px}main{min-height:0;grid-template-rows:minmax(0,1fr) 12px;padding:8px 0 6px;gap:5px}.route-grid{grid-template-columns:1fr;grid-template-rows:repeat(2,minmax(0,1fr));gap:7px}.crossing-group{padding:7px;border-radius:17px;gap:5px}.crossing-header{align-items:center}.crossing-header h2{font-size:.84rem;margin-top:1px}.crossing-header>span{display:none}.crossing-kicker{font-size:.44rem}.crossing-routes{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:1fr;gap:6px}.route-card{min-height:0;padding:9px;border-radius:14px}.route-topline{display:block}.route-topline h2{font-size:.65rem;line-height:1.15;min-height:30px}.route-name{font-size:.42rem}.condition{margin-top:5px;padding:4px 6px;font-size:.45rem}.condition i{width:5px;height:5px}.time-label{font-size:.46rem}.time-value{gap:4px}.time-value strong{font-size:clamp(2.35rem,12vw,3.8rem)}.time-value small{font-size:.58rem}.card-bottom{padding-top:5px;grid-template-columns:minmax(0,1fr) 25px}.public-summary span{font-size:.46rem;line-height:1.2}.details-toggle{width:25px;height:25px;border-radius:8px;font-size:.72rem}.site-footer p{font-size:.43rem;max-width:72%}.tecmen-signature img{width:62px;height:22px}.status-message{font-size:.5rem}}


/* V11 — nomes oficiais e acesso rápido aos aplicativos de navegação */
.card-actions{display:flex;align-items:center;gap:6px}
.nav-toggle{height:32px;display:inline-flex;align-items:center;gap:6px;padding:0 10px;border:0;border-radius:10px;color:#dfeaff;background:rgba(91,231,255,.09);cursor:pointer;font-size:.58rem;font-weight:800;transition:background .2s,transform .2s}
.nav-toggle span{color:var(--cyan);font-size:.95rem}.nav-toggle:hover{background:rgba(91,231,255,.16);transform:translateY(-1px)}
.mini-map{margin:8px 0 20px;overflow:hidden;border:1px solid var(--line);border-radius:18px;background:linear-gradient(145deg,rgba(26,55,76,.72),rgba(8,20,35,.86))}
.mini-map-svg{display:block;width:100%;height:170px;padding:16px}.map-grid{stroke:rgba(255,255,255,.055);stroke-width:1}.map-destination{fill:#fff;stroke:#5be7ff;stroke-width:4}
.mini-map>span{display:block;padding:10px 14px;border-top:1px solid var(--line);color:var(--muted);font-size:.62rem}
.mini-map-empty{height:150px;display:grid;place-items:center;color:var(--muted);font-size:.72rem}
.navigation-options{display:grid;gap:9px}.navigation-link{display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:12px;padding:12px 14px;border:1px solid var(--line);border-radius:15px;background:rgba(255,255,255,.045);transition:background .2s,transform .2s,border-color .2s}
.navigation-link:hover{transform:translateY(-1px);background:rgba(255,255,255,.075);border-color:rgba(91,231,255,.3)}.navigation-link>span{width:36px;height:36px;display:grid;place-items:center;border-radius:11px;background:rgba(255,255,255,.08);font-weight:900}.navigation-link div{display:grid;gap:2px}.navigation-link strong{font-size:.76rem}.navigation-link small{color:var(--muted);font-size:.62rem}.navigation-link>b{color:var(--cyan)}
@media(max-width:760px){.nav-toggle{width:25px;height:25px;padding:0;justify-content:center}.nav-toggle b{display:none}.nav-toggle span{font-size:.72rem}.card-actions{gap:4px}.card-bottom{grid-template-columns:minmax(0,1fr) auto}.mini-map-svg{height:135px}.navigation-link{padding:10px 12px}}

/* V13 — painel público premium em uma única tela */
.app-shell{width:min(1540px,calc(100% - 40px));grid-template-rows:70px minmax(0,1fr) 78px}
.site-header{position:relative;border-bottom-color:rgba(255,255,255,.14)}
.site-header::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:1px;background:linear-gradient(90deg,transparent,rgba(91,231,255,.55),transparent)}
.identity-copy strong{font-size:1.02rem}.identity-copy small{font-size:.63rem}
main{padding:12px 0 10px;gap:6px;grid-template-rows:minmax(0,1fr) 12px}
.route-grid{gap:12px}
.crossing-group{padding:11px;gap:8px;border-radius:24px;background:linear-gradient(145deg,rgba(9,27,49,.74),rgba(5,17,31,.78));box-shadow:0 22px 75px rgba(0,0,0,.27),inset 0 1px 0 rgba(255,255,255,.055)}
.crossing-group.balsa{background:linear-gradient(145deg,rgba(8,39,52,.72),rgba(5,19,34,.8))}
.crossing-header{padding:0 7px}.crossing-header h2{font-size:1.08rem}.crossing-kicker{font-size:.5rem}.crossing-header>span{font-size:.58rem}
.crossing-routes{gap:8px}
.route-card{padding:14px 16px;border-radius:18px;background:radial-gradient(circle at 88% 14%,var(--soft),transparent 31%),linear-gradient(145deg,rgba(22,44,72,.88),rgba(7,20,36,.94));transition:transform .22s ease,border-color .22s ease,box-shadow .22s ease}
.route-card:hover{transform:translateY(-2px);border-color:color-mix(in srgb,var(--accent) 32%,rgba(255,255,255,.12));box-shadow:0 26px 78px rgba(0,0,0,.34),0 0 44px var(--soft)}
.route-topline h2{font-size:clamp(.8rem,1vw,.96rem)}
.condition{padding:6px 10px;font-size:.54rem;letter-spacing:.01em}
.time-block{display:flex;align-items:end;justify-content:space-between;gap:12px;margin:0}
.time-label{max-width:110px;font-size:.57rem;line-height:1.35}
.time-value{margin:0}.time-value strong{font-size:clamp(3.4rem,5.3vw,6.2rem)}.time-value small{font-size:.76rem}
.card-bottom{padding-top:7px}.public-summary span{font-size:.56rem}.nav-toggle,.details-toggle{height:30px}
.site-footer{position:relative;display:grid;grid-template-columns:auto minmax(240px,1fr) auto;align-items:center;gap:24px;margin:0 -20px;padding:0 20px;border:1px solid rgba(255,255,255,.12);border-bottom:0;border-radius:22px 22px 0 0;background:linear-gradient(90deg,rgba(5,19,36,.95),rgba(9,43,58,.94) 62%,rgba(7,78,78,.94));box-shadow:0 -12px 45px rgba(0,0,0,.24),inset 0 1px 0 rgba(255,255,255,.06);overflow:hidden}
.site-footer::before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 88% 50%,rgba(91,231,255,.12),transparent 24%);pointer-events:none}
.footer-status{position:relative;z-index:1;display:flex;align-items:center;gap:18px;white-space:nowrap}
.footer-online,.footer-item{display:inline-flex;align-items:center;gap:7px;color:#aebed0;font-size:.58rem}
.footer-online{color:#dfffee}.footer-online i{width:7px;height:7px;border-radius:50%;background:var(--green);box-shadow:0 0 0 5px rgba(64,217,135,.11),0 0 16px rgba(64,217,135,.7)}
.footer-online strong{font-size:.62rem;text-transform:uppercase;letter-spacing:.08em}.footer-item b{color:var(--cyan);font-size:.8rem}
.footer-disclaimer{position:relative;z-index:1;margin:0!important;color:#8195aa!important;font-size:.54rem!important;line-height:1.4;text-align:center}
.tecmen-signature{position:relative;z-index:1;gap:12px;padding-left:20px;border-left:1px solid rgba(255,255,255,.12)}
.tecmen-signature span{font-size:.52rem;text-transform:uppercase;letter-spacing:.08em;color:#91a7bc}
.tecmen-signature img{width:132px;height:42px;opacity:1;filter:none}
.tecmen-watermark{position:fixed;z-index:0;right:3vw;bottom:8vh;width:min(360px,25vw);opacity:.022;filter:brightness(0) invert(1);pointer-events:none}
.modal-backdrop{place-items:stretch end;padding:0;background:rgba(2,8,15,.62)}
.modal-card{width:min(510px,94vw);height:100dvh;max-height:none;border-radius:26px 0 0 26px;padding:34px 30px;border-right:0;animation:drawerIn .28s ease-out}
@keyframes drawerIn{from{transform:translateX(28px);opacity:0}to{transform:none;opacity:1}}
@media(max-height:760px) and (min-width:761px){.app-shell{grid-template-rows:60px minmax(0,1fr) 66px}.site-footer{border-radius:18px 18px 0 0}.footer-status{gap:12px}.footer-item{font-size:.52rem}.tecmen-signature img{width:116px;height:36px}.route-card{padding:11px 13px}.time-value strong{font-size:clamp(3rem,4.8vw,5rem)}}
@media(max-width:900px){.footer-disclaimer{display:none}.site-footer{grid-template-columns:minmax(0,1fr) auto}.footer-status{gap:12px}.footer-item:nth-child(3){display:none}}
@media(max-width:760px){.app-shell{width:min(100% - 10px,680px);grid-template-rows:54px minmax(0,1fr) 54px}.identity-copy strong{font-size:.72rem}.identity-copy small{font-size:.48rem}.freshness{font-size:.5rem}.route-grid{gap:5px}.crossing-group{padding:5px;gap:4px;border-radius:14px}.crossing-header{padding:0 3px}.crossing-header h2{font-size:.75rem}.crossing-routes{gap:4px}.route-card{padding:7px 8px;border-radius:12px}.route-topline h2{min-height:26px;font-size:.57rem}.condition{padding:3px 5px;font-size:.4rem}.time-block{display:block}.time-label{font-size:.42rem;max-width:none}.time-value strong{font-size:clamp(2.1rem,11vw,3.3rem)}.time-value small{font-size:.52rem}.public-summary span{font-size:.4rem}.nav-toggle,.details-toggle{height:23px!important;width:23px!important}.site-footer{margin:0 -5px;padding:0 9px;border-radius:14px 14px 0 0;gap:8px}.footer-status{gap:8px}.footer-item{display:none}.footer-online strong{font-size:.5rem}.tecmen-signature{padding-left:9px;gap:6px}.tecmen-signature span{font-size:.4rem}.tecmen-signature img{width:88px;height:30px}.tecmen-watermark{display:none}.modal-card{width:100vw;border-radius:20px 0 0 20px;padding:28px 20px}}

/* White-label branding */
.client-logo {
  width: clamp(92px, 9vw, 154px);
  max-height: 58px;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,.18));
}
.identity.has-client-logo .identity-mark { display: none; }
.identity.has-client-logo { gap: 16px; }
.footer-brands { display: flex; align-items: center; justify-content: flex-end; gap: clamp(18px, 2.4vw, 34px); min-width: 270px; }
.client-signature { display: flex; align-items: center; gap: 9px; color: inherit; text-decoration: none; min-width: 0; }
.client-signature span { font-size: 10px; text-transform: uppercase; letter-spacing: .12em; opacity: .56; }
.client-signature img { width: clamp(64px, 6vw, 96px); max-height: 38px; object-fit: contain; }
.client-signature strong { font-size: 12px; letter-spacing: .04em; }
@media (max-width: 760px) {
  .client-logo { width: 88px; max-height: 40px; }
  .footer-brands { min-width: 0; gap: 12px; }
  .client-signature strong, .client-signature span { display: none; }
  .client-signature img { width: 54px; max-height: 28px; }
}


/* V15 — assinatura institucional Tecmen */
.site-footer {
  min-height: 74px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(300px, .7fr);
  align-items: center;
  gap: 24px;
  padding: 10px 18px 10px 22px;
  margin-bottom: 10px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 22px;
  background:
    radial-gradient(circle at 92% 50%, rgba(91,231,255,.12), transparent 34%),
    linear-gradient(90deg, rgba(7,18,32,.86), rgba(9,31,46,.88));
  box-shadow: 0 15px 48px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.05);
  backdrop-filter: blur(18px);
}
.footer-status { gap: 18px; }
.footer-disclaimer {
  max-width: 520px;
  margin: 0;
  padding: 0 24px;
  color: rgba(180,196,214,.68);
  font-size: .61rem;
  line-height: 1.45;
  text-align: center;
  border-left: 1px solid rgba(255,255,255,.08);
  border-right: 1px solid rgba(255,255,255,.08);
}
.footer-brand-signature {
  min-width: 300px;
  display: flex;
  justify-content: flex-end;
}
.tecmen-signature {
  position: relative;
  min-width: 290px;
  min-height: 54px;
  display: grid;
  grid-template-columns: auto minmax(128px, 172px);
  grid-template-rows: auto auto;
  align-items: center;
  justify-content: end;
  column-gap: 14px;
  padding: 8px 14px 8px 18px;
  border-radius: 16px;
  border: 1px solid rgba(91,231,255,.16);
  background: linear-gradient(135deg, rgba(255,255,255,.035), rgba(91,231,255,.035));
  transition: transform .25s ease, border-color .25s ease, background .25s ease, box-shadow .25s ease;
  overflow: hidden;
}
.tecmen-signature::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--cyan), var(--blue));
  box-shadow: 0 0 22px rgba(91,231,255,.48);
}
.tecmen-signature:hover {
  transform: translateY(-2px);
  border-color: rgba(91,231,255,.38);
  background: linear-gradient(135deg, rgba(255,255,255,.055), rgba(91,231,255,.065));
  box-shadow: 0 10px 30px rgba(0,0,0,.24), 0 0 28px rgba(91,231,255,.08);
}
.tecmen-signature img {
  grid-column: 2;
  grid-row: 1 / 3;
  width: clamp(138px, 10vw, 178px);
  max-height: 43px;
  object-fit: contain;
  justify-self: end;
  opacity: .96;
  filter: drop-shadow(0 5px 16px rgba(0,0,0,.28));
  transition: opacity .25s ease, transform .25s ease;
}
.tecmen-signature:hover img { opacity: 1; transform: scale(1.035); }
.powered-label {
  grid-column: 1;
  grid-row: 1;
  align-self: end;
  color: #8fa4ba;
  font-size: .55rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  white-space: nowrap;
}
.powered-tagline {
  grid-column: 1;
  grid-row: 2;
  align-self: start;
  margin-top: 3px;
  color: #d8e5f2;
  font-size: .60rem;
  font-weight: 600;
  white-space: nowrap;
}
.tecmen-watermark { opacity: .028; transform: scale(1.15); }

@media (max-width: 1100px) {
  .site-footer { grid-template-columns: 1fr auto; }
  .footer-disclaimer { display: none; }
}
@media (max-width: 720px) {
  .site-footer {
    min-height: 58px;
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 7px 8px 7px 12px;
    border-radius: 17px;
  }
  .footer-item { display: none; }
  .footer-brand-signature, .tecmen-signature { min-width: 0; }
  .tecmen-signature {
    min-height: 44px;
    grid-template-columns: auto minmax(102px, 124px);
    column-gap: 8px;
    padding: 5px 8px 5px 12px;
    border-radius: 12px;
  }
  .tecmen-signature img { width: 112px; max-height: 33px; }
  .powered-label { font-size: .45rem; }
  .powered-tagline { display: none; }
}
/* Estimativas superiores a uma hora */
.time-value.over-hour {
  justify-content: flex-end;
  align-items: center;
}

.time-value.over-hour strong {
  max-width: 300px;
  font-size: clamp(1.7rem, 3.5vw, 3.2rem) !important;
  line-height: 1.05;
  letter-spacing: -0.035em;
  text-align: right;
  white-space: normal;
}

@media (max-width: 760px) {
  .time-value.over-hour strong {
    max-width: 150px;
    font-size: clamp(1.05rem, 5vw, 1.55rem) !important;
    line-height: 1.1;
  }
}

.route-card.closed {
  border-color: rgba(255, 92, 92, .55);
  background: linear-gradient(145deg, rgba(73, 20, 29, .42), rgba(8, 27, 43, .96));
}
.route-card.closed .condition { background: rgba(255, 72, 72, .14); color: #ff9d9d; border-color: rgba(255, 92, 92, .4); }
.route-card.closed .condition i { background: #ff6363; }
.time-value.closed-value { justify-content: flex-end; }
.time-value.closed-value strong { font-size: clamp(2rem, 4vw, 4.2rem) !important; letter-spacing: -.04em; color: #ffb2b2; }
.public-summary { display: flex; flex-wrap: wrap; gap: 5px 12px; }
.operator-update { color: #57ddff !important; font-weight: 800; }
/* Destaque do texto de tempo estimado */
.time-label {
  display: block;
  max-width: 260px !important;
  font-size: clamp(.78rem, 1vw, 1rem) !important;
  line-height: 1.25 !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  color: #cbd8e8 !important;
}

@media (max-width: 760px) {
  .time-label {
    max-width: 180px !important;
    font-size: clamp(.62rem, 2.8vw, .78rem) !important;
    line-height: 1.2 !important;
  }
}


/* Aviso operacional temporário publicado pelo operador */
.public-operation-note {
  flex: 1 0 100%;
  display: grid;
  gap: 2px;
  padding: 8px 11px;
  border-left: 3px solid #57ddff;
  border-radius: 8px;
  background: rgba(30, 117, 145, .18);
  color: #dff9ff !important;
  font-size: clamp(.64rem, .82vw, .78rem);
  line-height: 1.3;
}
.public-operation-note b {
  color: #57ddff;
  font-size: .68em;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.route-card.queue .public-operation-note,
.route-card.intense .public-operation-note {
  border-left-color: #ffad62;
  background: rgba(150, 83, 30, .18);
}
.route-card.closed .public-operation-note {
  border-left-color: #ff7f87;
  background: rgba(145, 40, 50, .2);
}
@media (max-width: 760px) {
  .public-operation-note { padding: 5px 7px; font-size: .48rem; }
}


/* Aviso operacional em primeiro plano */
.public-operation-note {
  width: min(100%, 560px);
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  padding: 12px 15px;
  border: 1px solid rgba(255, 183, 77, .9);
  border-left: 5px solid #ffad3d;
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(177, 87, 18, .92), rgba(104, 51, 16, .78));
  color: #fff !important;
  box-shadow: 0 8px 26px rgba(255, 137, 32, .24), inset 0 1px rgba(255,255,255,.12);
}
.public-operation-note .notice-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #ffd166;
  color: #432100;
  font-size: 1.15rem;
  font-weight: 950;
  box-shadow: 0 0 18px rgba(255, 209, 102, .5);
}
.public-operation-note > span:last-child {
  min-width: 0;
  display: grid;
  gap: 3px;
}
.public-operation-note b {
  color: #ffe2aa !important;
  font-size: .62rem !important;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.public-operation-note strong {
  color: #fff;
  font-size: clamp(.82rem, 1.05vw, 1.05rem);
  line-height: 1.25;
  font-weight: 850;
}
.route-card.calm .public-operation-note,
.route-card.moderate .public-operation-note,
.route-card.queue .public-operation-note,
.route-card.intense .public-operation-note {
  border-color: rgba(255, 183, 77, .9);
  border-left-color: #ffad3d;
  background: linear-gradient(90deg, rgba(177, 87, 18, .92), rgba(104, 51, 16, .78));
}
.route-card.closed .public-operation-note {
  border-color: rgba(255, 112, 122, .9);
  border-left-color: #ff667a;
  background: linear-gradient(90deg, rgba(151, 37, 50, .94), rgba(89, 25, 34, .8));
}
@media (max-width: 760px) {
  .public-operation-note {
    gap: 8px;
    margin-bottom: 8px;
    padding: 8px 10px;
    border-left-width: 4px;
  }
  .public-operation-note .notice-icon { width: 24px; height: 24px; font-size: .9rem; }
  .public-operation-note b { font-size: .48rem !important; }
  .public-operation-note strong { font-size: .68rem; }
}


/* Mantém aviso e tempo em áreas independentes */
.route-card.has-public-note {
  grid-template-rows: auto auto minmax(0, 1fr) auto;
}
.route-card.has-public-note .public-operation-note {
  width: 100%;
  align-self: start;
  margin: 10px 0 4px;
  padding: 9px 13px;
}
.route-card.has-public-note .time-block {
  min-width: 0;
  width: 100%;
  align-self: center;
}
@media (max-width: 760px) {
  .route-card.has-public-note .public-operation-note {
    margin: 5px 0 2px;
    padding: 6px 8px;
  }
}
