/* Classic visual restoration, homepage ONLY — no backend / chat selectors. */
@media(min-width:721px){
.page{max-width:1050px!important;padding-left:16px!important;padding-right:16px!important}
}
.page .classic-service-cards{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:18px!important;margin:34px 0 27px!important}
.page .classic-service-cards .service-card{min-width:0;min-height:125px;border-radius:21px;gap:9px}
.page .classic-service-cards .service-icon{width:55px;height:55px;display:grid;place-items:center}
.page .classic-service-cards .service-icon svg{width:29px;height:29px}
.page .classic-service-cards strong{font-size:17px}
.page .classic-members,.page .classic-agent-section{margin-top:25px}
.page .section-title{min-height:41px;margin-bottom:12px}
.page .section-title h2{font-size:23px}
.page .section-title button,.page .security-badge{font-size:14px;border-radius:21px;padding:8px 16px}
.page .route-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.page .route-card,.page .classic-agent-card{box-sizing:border-box;position:relative;display:flex;align-items:center;gap:16px;width:100%;min-width:0;min-height:86px!important;padding:15px 18px!important;border:1px solid #e2ceb0!important;border-radius:22px!important;background:#fff!important;text-align:left;box-shadow:0 12px 22px rgba(45,48,47,.075)!important;overflow:hidden}
.page .route-icon{width:44px;height:44px;flex:0 0 44px;font-size:0;display:grid;place-items:center}
.page .classic-route-hand{background:#389e82;color:white}
.page .classic-route-hand svg{width:39px;height:39px}
.page .classic-lock{background:#253040;border-radius:9px}
.page .classic-lock svg{width:32px;height:32px}
/* Use compact, single-line URL labels. Never split domains in the middle. */
.page .route-name{flex:1 1 0;min-width:0;display:block;font-size:clamp(13px,1.55vw,17px)!important;line-height:1.35;font-weight:750;white-space:nowrap!important;word-break:normal!important;overflow:hidden!important;text-overflow:ellipsis!important;padding:0!important;margin:0 104px 0 0!important}
.page .latency{display:flex;align-items:center;justify-content:center;gap:7px;position:absolute;right:18px;top:16px;min-height:36px;min-width:90px;border-radius:22px;background:#e0f6ee;color:#009f7a;font-size:13px;font-weight:750;padding:4px 10px}
.page .latency-icon{width:20px;height:22px;flex:none;color:#10b78b}
.page .route-line{position:absolute;left:auto;right:18px;width:43%;height:4px;bottom:17px;background:#0cc39a;border-radius:4px}
.page .agent-section{margin-top:31px}
.page .classic-agent-card{cursor:pointer}
.page .classic-agent-card .route-name{margin-right:95px!important}
/* New simple security dialog matches V6 reference and uses existing API. */
.classic-modal-shade{position:fixed;inset:0;z-index:99;background:rgba(26,37,55,.73);display:grid;place-items:center;padding:15px}
.classic-modal-shade[hidden]{display:none}
.classic-modal{width:min(360px,100%);background:#fff;border-radius:16px;padding:22px;color:#142442;box-shadow:0 25px 50px rgba(10,22,35,.23)}
.classic-modal h3{font-size:20px;margin:0 0 16px}
.classic-modal input{width:100%;height:44px;padding:10px 12px;border-radius:10px;border:1px solid #d7d9df;outline:0;font-size:15px}
.classic-modal input:focus{border-color:#bd9b51;box-shadow:0 0 0 3px #f9eed0}
.classic-modal #classic-agent-message{font-size:12px;color:#b93434;min-height:12px;margin:7px 0}
.classic-modal-buttons{display:flex;justify-content:flex-end;gap:10px}
.classic-modal-buttons button{padding:10px 18px;border-radius:9px;font-weight:700;cursor:pointer}
.classic-modal-buttons button:first-child{border:1px solid #d9dce2;background:#fff;color:#233047}
.classic-modal-buttons button:last-child{border:1px solid #bb9139;background:#bc943e;color:#fff}
@media(max-width:720px){
 .page .classic-service-cards{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:9px!important;margin:20px 0 24px!important}
 .page .classic-service-cards .service-card{min-height:98px;border-radius:16px;gap:8px;padding:8px 2px}
 .page .classic-service-cards .service-icon{width:45px;height:45px;border-radius:12px}
 .page .classic-service-cards .service-icon svg{width:25px;height:25px}
 .page .classic-service-cards strong{font-size:13px}
 .page .section-title h2{font-size:19px}
 .page .route-grid{grid-template-columns:1fr;gap:12px}
 .page .route-card,.page .classic-agent-card{min-height:78px!important;padding:11px 12px!important;gap:10px;border-radius:16px!important}
 .page .route-icon{width:38px;height:38px;flex-basis:38px}
 .page .classic-route-hand svg{width:34px;height:34px}
 .page .route-name{font-size:clamp(12px,3.65vw,16px)!important;margin-right:85px!important}
 .page .latency{right:12px;top:13px;min-height:31px;min-width:79px;font-size:12px;padding:3px 8px;gap:5px}
 .page .latency-icon{width:16px;height:18px}
 .page .route-line{right:12px;bottom:13px;height:3px;width:45%}
}

/* 20261017_7: each agent route is its own card; desktop two columns, mobile one. */
.page .classic-agent-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:16px!important}
.page .classic-agent-grid .classic-agent-card{max-width:none!important;width:100%!important;min-width:0;cursor:pointer}
.page .classic-agent-grid .classic-agent-card .route-name{min-width:0;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
@media(max-width:720px){.page .classic-agent-grid{grid-template-columns:1fr!important;gap:12px!important}}

/* 20261017_8: restore two customer-service tiles */
.page .classic-service-cards.classic-two-service-cards{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
}
@media(max-width:720px){
  .page .classic-service-cards.classic-two-service-cards{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}
