/* Miles, the NCC husky (templates/_miles.html). The artwork is never stretched, cropped or mirrored:
   width sets the size, height follows, object-fit keeps the whole silhouette. */
.miles { display: flex; align-items: center; gap: 10px; margin: 0; }
.miles-right { flex-direction: row-reverse; }
.miles-art { flex: none; height: auto; object-fit: contain; user-select: none; pointer-events: none; }
.miles-sm .miles-art { width: 72px; } .miles-md .miles-art { width: 112px; } .miles-lg .miles-art { width: 168px; }
/* the speech bubble: native text on a clean white bubble, with a tail pointing at Miles */
.miles-bubble { position: relative; background: #fff; color: #15223b; border: 1px solid #dfe5ec; border-radius: 14px;
  padding: 8px 12px; font-size: .92rem; font-weight: 600; line-height: 1.3; max-width: 260px; box-shadow: 0 2px 8px rgba(10, 17, 30, .12); }
.miles-bubble::before { content: ""; position: absolute; top: 50%; width: 12px; height: 12px; background: #fff;
  border: 1px solid #dfe5ec; transform: translateY(-50%) rotate(45deg); }
.miles-left .miles-bubble::before { left: -7px; border-top: 0; border-right: 0; }
.miles-right .miles-bubble::before { right: -7px; border-bottom: 0; border-left: 0; }
.miles-lg .miles-bubble { font-size: 1.05rem; padding: 10px 14px; max-width: 320px; }
/* a celebration: one small hop, once; nothing moves for people who ask for reduced motion */
.miles-cheer .miles-art { animation: miles-hop .7s ease-out .15s 1 both; }
@keyframes miles-hop { 0% { transform: translateY(8px); opacity: 0; } 60% { transform: translateY(-6px); opacity: 1; } 100% { transform: none; } }
@media (prefers-reduced-motion: reduce) { .miles-cheer .miles-art { animation: none; } }
/* sign-in and first-time welcome (admin_login.html) */
.login-miles { display: flex; justify-content: center; margin: 14px 0 4px; }
.login .login-miles .miles-art { width: 104px; height: auto; margin: 0; }   /* beats the logo rule .login img { height: 56px } */
@media (max-width: 380px) { .login-miles .miles-art { width: 84px; } .login-miles .miles-bubble { font-size: .85rem; } }
.admin-miles { display: flex; justify-content: flex-end; margin: 0 0 8px; }
