/* A visit stays one card with a separate, named portrait for every crew member. */
.appointment-card.visit-card { width:min(520px,100%); padding:0; border:1px solid #bcd5e5; border-radius:22px; background:#fff; box-shadow:0 4px 16px #183c5710; overflow:hidden; }
.visit-card::before { display:none; }
.visit-card .visit-card-header { display:flex; align-items:center; padding:20px; gap:14px; background:linear-gradient(120deg,#173b55,#155e7b); color:#fff; }
.visit-card .visit-calendar-icon { display:grid; place-items:center; width:44px; height:44px; flex:0 0 44px; border:1px solid #ffffff40; border-radius:13px; background:#ffffff12; }
.visit-calendar-icon svg { width:24px; height:24px; }
.appointment-card.visit-card .visit-card-header div > span { color:#c4e7f8; font-size:10px; font-weight:700; letter-spacing:.1em; line-height:1.5; }
.visit-card h3 { margin:5px 0 0; font-size:20px; font-weight:750; line-height:1.25; letter-spacing:-.025em; overflow-wrap:anywhere; }
.visit-card-body { padding:20px; }
.visit-when { display:grid; gap:16px; padding:18px; border:1px solid #cbddea; border-radius:15px; background:#f1f7fc; }
.visit-when > div { min-width:0; }
.visit-when span { display:block; margin-bottom:5px; color:#48667b; font-size:13px; line-height:1.4; }
.visit-when strong { display:block; color:#163b56; font-size:19px; line-height:1.35; overflow-wrap:anywhere; }
.visit-when > div:last-child strong { font-size:26px; font-variant-numeric:tabular-nums; }
.visit-team { margin-top:24px; }
.visit-team h4 { margin:0 0 14px; color:#244960; font-size:15px; line-height:1.4; }
.visit-crew { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.visit-technician { display:flex; flex-direction:column; align-items:center; gap:12px; min-width:0; margin:0; padding:16px 10px; border:1px solid #d5e2ec; border-radius:16px; background:#f9fbfe; text-align:center; }
.visit-technician:only-child { grid-column:1/-1; flex-direction:row; text-align:left; gap:16px; }
.visit-portrait { position:relative; display:block; width:80px; height:80px; flex:0 0 80px; overflow:hidden; border-radius:50%; background:#fff; border:2px solid #fff; box-shadow:0 0 0 1px #c7dbe9; }
.visit-portrait img { display:block; position:absolute; inset:0; width:100%; height:100%; }
.visit-logo { object-fit:contain; padding:10px; }
.visit-photo { object-fit:cover; background:#fff; }
.visit-technician figcaption { min-width:0; }
.visit-technician strong { display:block; color:#173b55; font-size:16px; line-height:1.4; overflow-wrap:anywhere; }
.visit-technician figcaption span { display:block; margin-top:4px; color:#4c677b; font-size:12px; line-height:1.4; }
.visit-assurance, .visit-team-pending { color:#4c677b; font-size:13px; line-height:1.6; }
.visit-assurance { margin:20px 0 0; padding-top:16px; border-top:1px solid #dce6ee; }
.visit-card .visit-next-update { margin:20px 0 0; padding:14px 16px; border:1px solid #c7ddea; border-radius:12px; background:#eef7fc; color:#244960; font-size:14px; line-height:1.6; }
.visit-update-time { display:block; margin-top:14px; color:#5c7182; font-size:11px; line-height:1.5; }
.visit-card[data-visit-state="cancelled"] .visit-card-header { background:#763b40; }
.visit-card[data-visit-state="superseded"] .visit-card-header { background:#4c6070; }
@media (min-width:480px) {
  .visit-when { grid-template-columns:minmax(0,1.4fr) minmax(0,1fr); align-items:center; }
}
@media (max-width:360px) {
  .visit-card .visit-card-header, .visit-card-body { padding:16px; }
  .visit-card h3 { font-size:18px; }
  .appointment-card.visit-card .visit-card-header div > span { font-size:9px; }
  .visit-crew { gap:10px; }
  .visit-portrait { width:68px; height:68px; flex-basis:68px; }
  .visit-technician { padding:14px 8px; }
}
@media (forced-colors:active) {
  .visit-card .visit-card-header, .visit-card h3, .appointment-card.visit-card .visit-card-header div > span { background:Canvas; color:CanvasText; }
  .visit-portrait, .visit-technician, .visit-when, .visit-calendar-icon { border:1px solid CanvasText; }
}
