/* Shared mobile surfaces; no scroll locks or navigation transition delay. */
@media(max-width:767px){
 html body .apd450-ai-chat.is-open,html body .apd447-thread-detail{height:var(--apd859-viewport,100dvh)!important;max-height:var(--apd859-viewport,100dvh)!important;top:var(--apd859-top,0px)!important;bottom:auto!important;transform:none!important;}
 html body .apd450-ai-chat{width:100%!important;max-width:100vw!important;min-width:0!important;left:0!important;right:0!important;box-sizing:border-box!important;overflow-x:hidden!important;height:var(--apd859-viewport,100dvh)!important;top:var(--apd859-top,0px)!important;bottom:auto!important;}
 html body .apd450-ai-head{display:grid!important;grid-template-columns:36px 44px minmax(0,1fr) 36px!important;gap:10px!important;padding:12px!important;min-width:0!important;}
 html body .apd450-ai-profile{width:44px!important;height:44px!important;}
 html body .apd450-ai-title strong{font-size:18px!important;}
 html body .apd450-ai-title small{font-size:13px!important;}
 html body .apd450-ai-verify-card{grid-column:1/-1!important;width:auto!important;margin:6px 0 0!important;min-height:0!important;padding:8px 12px!important;box-shadow:none!important;border-radius:14px!important;font-size:13px!important;}
 html body .apd450-ai-verify-card strong{font-size:13px!important;}
 html body .apd450-ai-verify-card button{font-size:13px!important;width:auto!important;min-height:32px!important;padding:6px 14px!important;}
 html body .apd450-ai-body{min-height:0!important;min-width:0!important;overflow-x:hidden!important;flex:1 1 auto!important;}
 html body .apd450-ai-suggestions{max-width:100%!important;min-width:0!important;overflow-x:auto!important;flex-shrink:0!important;}
 html body .apd450-ai-compose{display:flex!important;width:100%!important;min-width:0!important;box-sizing:border-box!important;gap:8px!important;padding:10px 12px!important;}
 html body .apd450-ai-compose textarea{font-size:16px!important;line-height:1.4!important;min-width:0!important;width:0!important;flex:1 1 0!important;box-sizing:border-box!important;}
 html body .apd450-ai-compose button{flex:0 0 44px!important;width:44px!important;height:44px!important;}
 html body nav.apd10-mobile-nav,html body nav.apd271-mobile-nav{
  background:#fff!important;bottom:0!important;margin-bottom:0!important;overflow:visible!important;
  border-bottom:0!important;isolation:isolate;transform:none!important;
 }
 html body nav.apd10-mobile-nav::after,html body nav.apd271-mobile-nav::after{
  content:""!important;display:block!important;position:absolute!important;top:calc(100% - 1px)!important;
  bottom:auto!important;left:0!important;right:0!important;width:100%!important;height:160px!important;
  background:#fff!important;border:0!important;box-shadow:none!important;pointer-events:none!important;
 }
 html body .apd447-thread-detail,html body .apd447-assistant{
  max-width:100%!important;min-width:0!important;overflow-x:clip!important;
 }
 html body .apd447-message-compose{box-sizing:border-box!important;width:100%!important;min-width:0!important;gap:8px!important;padding:10px 12px!important;}
 html body .apd447-message-compose textarea,html body .apd447-message-compose input,
 html body [data-apd447-assistant-form] textarea,html body [data-apd447-assistant-form] input{
  font-size:16px!important;line-height:1.4!important;min-width:0!important;max-width:100%!important;
  box-sizing:border-box!important;flex:1 1 0!important;transform:none!important;
 }
 html body .apd447-message-compose button{flex:0 0 44px!important;width:44px!important;height:44px!important;}
 html body .apd447-thread-detail-head{padding:12px!important;gap:8px!important;grid-template-columns:40px minmax(0,1fr) auto!important;}
 html body .apd447-detail-identity{min-width:0!important;max-width:100%!important;}
 html body .apd447-detail-identity strong{font-size:17px!important;line-height:1.25!important;overflow-wrap:anywhere;}
 html body .apd859-chat-tools{grid-column:1/-1!important;display:flex!important;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px;width:100%;}
 html body .apd859-chat-tools .apd447-verify-card{display:flex!important;align-items:center;gap:8px;margin:0!important;padding:7px 10px!important;box-shadow:none!important;border:1px solid #e4e7ef;border-radius:20px!important;width:auto!important;min-height:0!important;background:#f6f8fc!important;}
 html body .apd859-chat-tools .apd447-verify-card strong{font-size:12px!important;line-height:1.3!important;}
 html body .apd859-chat-tools .apd447-verify-card button{font-size:12px!important;padding:5px 9px!important;min-height:28px!important;width:auto!important;border-radius:14px!important;}
 html body .apd859-translation{font-family:inherit;font-weight:600;font-size:12px;line-height:1.3;padding:8px 11px!important;border:1px solid #dfe3eb!important;border-radius:20px!important;background:#fff!important;color:#334155!important;min-height:32px;cursor:pointer;}
 html body .apd859-translation[aria-pressed=true]{background:#edf4ff!important;color:#234081!important;}
 html body .apd447-info-sheet{max-width:100vw!important;width:100%!important;box-sizing:border-box!important;}
 html body .apd447-info-sheet-body{padding:18px 20px calc(24px + env(safe-area-inset-bottom,0px))!important;overflow-x:hidden!important;}
 html body .apd447-info-block{margin-bottom:24px!important;}
 html body .apd447-info-block h2{font-size:20px!important;line-height:1.3!important;margin:0 0 16px!important;}
 html body .apd447-person-row{display:flex!important;align-items:center!important;gap:14px!important;margin:14px 0!important;min-width:0;}
 html body .apd447-person-row strong{font-size:17px!important;line-height:1.3!important;overflow-wrap:anywhere;}
 html body .apd447-person-row small{font-size:13px!important;line-height:1.4!important;}
 html body .apd447-sheet-action,html body .apd447-sheet-copy-row{font-size:15px!important;min-height:48px!important;gap:12px!important;}
 html body .apd447-sheet-copy-row img{width:22px!important;height:22px!important;object-fit:contain;}
 html body .apd447-info-copy-block p{font-size:13px!important;line-height:1.6!important;color:#64748b!important;}
 html body .apd859-empty-trips{height:100%!important;overflow:auto!important;background:linear-gradient(155deg,#eef5ff,#fff 55%,#edf8f5)!important;}
 html body.apd274-screen-trips .apd29-trips-page.apd859-empty-trips .apd29-trips-panel{position:relative!important;inset:auto!important;height:auto!important;min-height:100%!important;max-height:none!important;padding:0!important;border-radius:0!important;box-shadow:none!important;background:transparent!important;overflow:visible!important;transform:none!important;transition:none!important;}
 html body .apd859-empty-trips .apd270-trips-handle{display:none!important;}
 html body .apd859-empty-trips .apd29-trips-empty{position:relative!important;inset:auto!important;transform:none!important;box-sizing:border-box!important;display:flex!important;flex-direction:column;align-items:center;justify-content:center;min-height:100%!important;width:100%!important;padding:28px 24px 36px!important;border-radius:0!important;background:transparent!important;text-align:center;}
 html body .apd859-empty-trips .apd29-trips-empty::before,html body .apd859-empty-trips .apd29-trips-empty::after{display:none!important;}
 html body .apd859-empty-trips .apd268-trips-art{display:block!important;width:min(62vw,240px)!important;height:auto!important;margin:0 auto 18px!important;}
 html body .apd859-empty-trips .apd268-trips-diorama{display:block!important;width:100%!important;height:auto!important;max-height:240px!important;object-fit:contain!important;}
 html body .apd859-empty-trips h1{font-size:27px!important;line-height:1.15!important;letter-spacing:-.7px!important;margin:0 0 12px!important;color:#17243e!important;background:none!important;}
 html body .apd859-empty-trips p{font-size:15px!important;line-height:1.6!important;max-width:320px;margin:0 auto 24px!important;color:#64748b!important;}
 html body .apd859-empty-trips .apd29-trips-empty>a{display:inline-flex!important;align-items:center;justify-content:center;min-height:48px;padding:12px 28px!important;border-radius:24px!important;background:#233e82!important;color:white!important;font-size:15px!important;font-weight:600;box-shadow:0 8px 22px #233e8226!important;}
}
/* APD860: constrain the document behind the full-screen conversation. */
@media(max-width:767px){
 html.apd860-thread,html.apd860-thread body{width:100%!important;max-width:100%!important;overflow:hidden!important;overscroll-behavior:none;-webkit-text-size-adjust:100%;text-size-adjust:100%;}
 html.apd860-thread body nav.apd10-mobile-nav,html.apd860-thread body nav.apd271-mobile-nav,html.apd860-thread body nav.apd267-mobile-nav{display:none!important;}
 html.apd860-thread body .apd447-thread-detail{left:0!important;right:0!important;width:100%!important;box-sizing:border-box!important;}
 html.apd860-thread body .apd447-info-sheet{left:0!important;right:0!important;max-width:100%!important;box-sizing:border-box!important;}
 html.apd860-thread body .apd859-chat-tools .apd447-verify-card button{height:30px!important;min-height:30px!important;padding:4px 10px!important;}
 html.apd860-thread body .apd859-chat-tools{min-width:0!important;max-width:100%!important;box-sizing:border-box!important;}
 html.apd860-thread body .apd447-conversation{min-height:0!important;min-width:0!important;flex:1 1 auto!important;overflow-y:auto!important;overflow-x:hidden!important;}
}
/* APD862: native profile scrolling, card-only styling, and a flexible composer. */
@media(max-width:767px){
 html body.apd271-mobile-app-shell.apd271-screen-profile .apd271-mobile-main{height:calc(100vh - var(--apd271-nav-h,80px) - env(safe-area-inset-bottom,0px))!important;height:calc(100dvh - var(--apd271-nav-h,80px) - env(safe-area-inset-bottom,0px))!important;min-height:0!important;max-height:none!important;box-sizing:border-box!important;overflow-y:auto!important;overflow-x:hidden!important;-webkit-overflow-scrolling:touch;touch-action:pan-y pinch-zoom!important;padding-bottom:110px!important;}
 html body.apd271-mobile-app-shell.apd271-screen-profile.apd270-overlay-open .apd271-mobile-main{overflow-y:hidden!important;}
 html body.apd274-screen-trips .apd29-trips-panel:has(.apd29-trips-empty){background:linear-gradient(145deg,#fff 5%,#f1f5fc 100%)!important;}
 html body.apd274-screen-trips .apd29-trips-panel .apd29-trips-empty{background:transparent!important;padding:12px 22px 28px!important;text-align:center;box-sizing:border-box!important;}
 html body.apd274-screen-trips .apd29-trips-panel .apd29-trips-empty h1{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;font-size:24px!important;font-weight:700!important;line-height:1.25!important;letter-spacing:-.6px!important;color:#182742!important;background:transparent!important;margin:0 0 12px!important;padding:0!important;}
 html body.apd274-screen-trips .apd29-trips-panel .apd29-trips-empty p{font-size:15px!important;line-height:1.6!important;color:#64748b!important;background:transparent!important;max-width:320px;margin:0 auto 20px!important;}
 html body.apd274-screen-trips .apd29-trips-panel .apd29-trips-empty>a{display:inline-flex!important;align-items:center;justify-content:center;padding:13px 24px!important;min-height:46px!important;border-radius:24px!important;background:#243f83!important;color:#fff!important;font-size:15px!important;font-weight:600!important;text-decoration:none!important;box-shadow:0 6px 18px #243f831c!important;}
 html.apd860-thread body .apd447-message-compose{display:flex!important;align-items:flex-end!important;}
 html.apd860-thread body .apd447-message-compose textarea{width:100%!important;flex:1 1 0%!important;min-width:0!important;box-sizing:border-box!important;}
 html.apd860-thread body .apd447-message-compose>button{flex:0 0 44px!important;}
}

/* APD: conversation layout, bounded identity and accessible composer. */
html body .apd447-thread-detail .apd447-thread-detail-head{display:grid!important;grid-template-columns:40px minmax(0,1fr) 76px!important;align-items:center!important;gap:10px!important;padding:12px!important;height:auto!important;min-height:0!important;flex:0 0 auto!important;}
html body .apd447-thread-detail .apd447-detail-identity{display:grid!important;grid-template-columns:44px minmax(0,1fr)!important;grid-template-rows:auto auto!important;gap:2px 10px!important;text-align:left!important;align-items:center!important;padding:0!important;min-width:0!important;}
html body .apd447-thread-detail .apd447-detail-identity .apd447-avatar-stack{grid-column:1!important;grid-row:1/3!important;position:relative!important;width:44px!important;height:44px!important;margin:0!important;overflow:visible!important;}
html body .apd447-thread-detail .apd447-detail-identity .apd447-avatar{position:relative!important;inset:auto!important;display:block!important;width:44px!important;height:44px!important;min-width:44px!important;overflow:visible!important;transform:none!important;}
html body .apd447-thread-detail .apd447-detail-identity img{width:44px!important;height:44px!important;max-width:44px!important;min-width:0!important;border-radius:50%!important;object-fit:cover!important;position:static!important;}
html body .apd447-thread-detail .apd447-detail-identity .apd452-verified-badge{position:absolute!important;right:-3px!important;bottom:-2px!important;left:auto!important;top:auto!important;width:18px!important;height:18px!important;min-width:18px!important;border:2px solid white!important;border-radius:50%!important;font-size:11px!important;line-height:14px!important;display:grid!important;place-items:center!important;transform:none!important;}
html body .apd447-thread-detail .apd447-detail-identity strong{grid-column:2!important;grid-row:1!important;font-size:15px!important;line-height:1.3!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;margin:0!important;}
html body .apd447-thread-detail .apd447-detail-identity>span:not(.apd447-avatar-stack){grid-column:2!important;grid-row:2!important;font-size:13px!important;line-height:1.3!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
html body .apd447-thread-detail .apd447-detail-identity .apd747-presence{display:none!important;}
html body .apd447-thread-detail .apd447-details-link{width:76px!important;min-height:40px!important;padding:8px!important;font-size:13px!important;}
html body .apd447-thread-detail .apd859-chat-tools{justify-content:flex-start!important;gap:6px!important;margin:2px 0 0!important;}
html body .apd447-thread-detail .apd447-message-compose{min-height:0!important;height:auto!important;flex:0 0 auto!important;position:relative!important;bottom:auto!important;padding:10px 12px calc(10px + env(safe-area-inset-bottom,0px))!important;gap:10px!important;background:#fff!important;}
html body .apd447-thread-detail .apd447-message-compose textarea{min-height:44px!important;max-height:120px!important;padding:10px 14px!important;border-radius:22px!important;line-height:1.4!important;resize:none!important;}
html body .apd447-thread-detail .apd447-message-compose>button{position:static!important;width:44px!important;height:44px!important;min-height:44px!important;flex:0 0 44px!important;margin:0!important;align-self:flex-end!important;border-radius:50%!important;}
html body .apd447-thread-detail .apd447-response-time{min-height:0!important;height:auto!important;flex:0 0 auto!important;padding:6px 12px!important;font-size:12px!important;line-height:1.4!important;}
html body .apd447-thread-detail .apd447-response-time strong{font-size:12px!important;font-weight:400!important;}
html body .apd447-thread-detail .apd447-message-bubble-row p{font-size:16px!important;line-height:1.5!important;overflow-wrap:anywhere!important;}
html body.apd800-identity-page .apd800-page-header img{display:block!important;width:92px!important;height:40px!important;object-fit:contain!important;}
@media(min-width:768px){html body .apd447-thread-detail{max-width:980px!important;margin-inline:auto!important;}html body .apd447-thread-detail .apd447-conversation{padding:24px!important;}}
