/* APD 747 — final profile, calendar, messaging and information-center polish. */
:root{--apd747-ink:#071a3d;--apd747-blue:#0c5bd8;--apd747-sky:#eaf4ff;--apd747-line:#dce4ef;--apd747-muted:#667085;--apd747-shadow:0 22px 58px rgba(13,43,91,.12)}

/* Public profile: never crop the verified medallion and keep every fact icon aligned. */
body.apd727-public-profile .apd27-profile-about,
body.apd727-public-profile .apd27-profile-about>*{overflow:visible!important}
body.apd727-public-profile .apd27-verified-link{width:100%!important;min-width:0!important;padding:4px 8px 4px 2px!important;overflow:visible!important}
body.apd727-public-profile .apd27-verified-link .apd724-verified-badge{display:block!important;width:58px!important;height:58px!important;min-width:58px!important;flex:0 0 58px!important;margin:0 8px 0 0!important;position:relative!important;inset:auto!important;transform:none!important;overflow:visible!important}
body.apd727-public-profile .apd27-profile-about .apd16-profile-fact{min-width:0!important}
body.apd727-public-profile .apd27-profile-about .apd16-profile-fact>img{width:58px!important;height:58px!important;min-width:58px!important;flex:0 0 58px!important;object-fit:contain!important;background:transparent!important}
body.apd727-public-profile .apd27-profile-about .apd16-profile-fact>span{min-width:0!important;overflow-wrap:anywhere!important}

/* Truthful messaging: compact presence, WhatsApp-style inline receipts. */
.apd747-presence{display:inline-flex!important;align-items:center!important;gap:5px!important;color:#6b7280!important;font-size:12px!important;line-height:1!important}
.apd747-presence::before{content:"";width:7px;height:7px;border-radius:50%;background:#aeb6c2;box-shadow:0 0 0 3px rgba(174,182,194,.14)}
.apd747-presence.is-online::before{background:#2fb56f;box-shadow:0 0 0 3px rgba(47,181,111,.14)}
.apd447-detail-identity .apd747-translation{display:inline-flex!important;align-items:center!important;gap:4px!important}
.apd447-detail-identity .apd747-translation img{width:20px!important;height:20px!important;object-fit:contain!important;filter:drop-shadow(0 3px 4px rgba(12,53,106,.18))}
.apd447-message-bubble-row>div{min-width:0!important}
.apd447-message-bubble-row p{max-width:100%!important;overflow-wrap:anywhere!important;word-break:break-word!important}
.apd747-bubble-foot{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:6px!important;margin:4px 8px 0!important;color:#7a7f88!important;font-size:11px!important;line-height:1!important;white-space:nowrap!important}
.apd447-message-bubble-row.is-mine .apd747-bubble-foot{align-self:flex-end!important}
.apd747-bubble-foot .apd447-bubble-state{display:inline-flex!important;align-items:center!important;margin:0!important;font-size:14px!important;font-weight:700!important;line-height:1!important;letter-spacing:-.13em!important}
.apd747-bubble-foot .apd447-bubble-state.is-sent{letter-spacing:0!important}
.apd747-bubble-foot .apd447-bubble-state.is-read{color:#34b7f1!important}
.apd447-read-receipt{display:none!important}
.apd447-response-time.apd731-host-clock{min-height:34px!important;padding:5px 14px!important;gap:6px!important;background:#f7f9fc!important;color:#6d7480!important;font-size:12px!important;line-height:1.2!important;text-align:center!important}
.apd447-response-time.apd731-host-clock>img{width:21px!important;height:21px!important;flex:0 0 21px!important;object-fit:contain!important}
.apd447-response-time.apd731-host-clock>span{font-size:12px!important;line-height:1.2!important}
.apd447-response-time.apd731-host-clock strong{font:650 12px/1.2 -apple-system,BlinkMacSystemFont,"SF Pro Text",sans-serif!important}
.apd447-sheet-copy-row{text-decoration:none!important}.apd447-sheet-copy-row i img{width:30px!important;height:30px!important;object-fit:contain!important}.apd447-info-copy-block a{color:#0b5cbe!important;font-weight:700!important;text-underline-offset:3px}
.apd447-thread-copy .apd747-row-status{display:inline-flex!important;align-items:center!important;gap:7px!important}
.apd447-thread-copy .apd747-row-status i{margin:0!important;background:#aeb6c2!important}
.apd447-thread-copy .apd747-row-status.is-online i{background:#2fb56f!important}

/* The verified badge belongs to the avatar, not the title. */
.apd747-avatar-verified{position:relative!important;overflow:visible!important}
.apd747-avatar-verified>.apd452-verified-badge{position:absolute!important;right:-3px!important;bottom:-3px!important;z-index:4!important;width:20px!important;height:20px!important;min-width:20px!important;display:grid!important;place-items:center!important;border:2px solid #fff!important;border-radius:50%!important;background:#1687ff!important;color:#fff!important;font-size:12px!important;font-weight:900!important;line-height:1!important;box-shadow:0 4px 10px rgba(12,75,155,.28)!important}
.apd450-ai-avatar.apd747-avatar-verified,
.apd450-ai-profile.apd747-avatar-verified{overflow:visible!important}
.apd450-ai-avatar.apd747-avatar-verified::before,
.apd450-ai-profile.apd747-avatar-verified::before{overflow:hidden!important}
.apd747-stack-avatar{display:block!important;overflow:visible!important;background:transparent!important;border:0!important}
.apd747-stack-avatar>.apd747-stack-avatar-media{display:block!important;width:100%!important;height:100%!important;max-width:none!important;border:0!important;border-radius:50%!important;object-fit:cover!important;box-shadow:none!important}
.apd747-stack-avatar>.apd452-verified-badge{right:-3px!important;bottom:-3px!important}
.apd747-bubble-avatar{position:relative;display:block;width:40px;height:40px;flex:0 0 40px;overflow:visible}
.apd747-bubble-avatar>img,.apd747-bubble-avatar>.apd731-avatar{display:block!important;width:40px!important;height:40px!important;border:0!important;border-radius:50%!important;object-fit:cover!important;box-shadow:none!important}
.apd747-info-avatar{position:relative;display:block;width:64px;height:64px;overflow:visible}
.apd747-info-avatar>img,.apd747-info-avatar>.apd731-avatar{display:block!important;width:64px!important;height:64px!important;border:0!important;border-radius:50%!important;object-fit:cover!important;box-shadow:none!important}

/* iOS assistant: a single constrained viewport, no clipped messages or composer. */
.apd450-ai-chat,.apd450-ai-chat *{box-sizing:border-box!important;-webkit-text-size-adjust:100%}
.apd450-ai-chat.is-open{left:0!important;right:0!important;width:100vw!important;max-width:100vw!important;overflow-x:hidden!important}
.apd450-ai-body{width:100%!important;min-width:0!important;overflow-x:hidden!important;padding-left:14px!important;padding-right:14px!important}
.apd450-ai-msg{width:100%!important;max-width:100%!important;min-width:0!important}
.apd450-ai-msg-bubble{min-width:0!important;max-width:min(82%,560px)!important;overflow-wrap:anywhere!important;word-break:break-word!important}
.apd450-ai-compose{width:100%!important;max-width:100vw!important;min-width:0!important;grid-template-columns:minmax(0,1fr) 46px!important;padding-left:12px!important;padding-right:12px!important;padding-bottom:max(10px,env(safe-area-inset-bottom))!important;overflow:visible!important}
.apd450-ai-compose textarea{display:block!important;min-width:0!important;width:100%!important;max-width:100%!important;max-height:116px!important;overflow-y:auto!important}
.apd450-ai-compose button{flex:0 0 46px!important}
body.apd451-ai-keyboard .apd450-ai-head{min-height:68px!important}
body.apd451-ai-keyboard .apd450-ai-body{padding-top:12px!important;padding-bottom:8px!important}

/* Information center. */
body.apd747-info-route,body:has(.apd747-info-page){margin:0!important;background:#f4f7fb!important;color:var(--apd747-ink)!important}
body.apd747-info-route>header,body.apd747-info-route>.header-main-wrap,body.apd747-info-route>.apd5-footer,body.apd747-info-route>.apd10-mobile-nav,
body:has(.apd747-info-page)>header,body:has(.apd747-info-page)>.header-main-wrap,body:has(.apd747-info-page)>.apd5-footer,body:has(.apd747-info-page)>.apd10-mobile-nav{display:none!important}
.apd747-info-page{min-height:100dvh;padding:18px clamp(16px,4vw,64px) 0;background:radial-gradient(circle at 84% 0,rgba(71,135,255,.16),transparent 27%),radial-gradient(circle at 6% 15%,rgba(251,204,84,.11),transparent 22%),#f5f8fc;font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","Segoe UI",sans-serif;color:var(--apd747-ink);-webkit-font-smoothing:antialiased}
.apd747-info-nav{display:grid;grid-template-columns:48px 1fr auto;align-items:center;gap:14px;max-width:1180px;margin:0 auto 22px}
.apd747-round-back{width:46px;height:46px;display:grid;place-items:center;border:1px solid rgba(14,42,82,.08);border-radius:50%;background:rgba(255,255,255,.82);color:var(--apd747-ink);box-shadow:0 10px 24px rgba(20,47,88,.08);backdrop-filter:blur(12px)}
.apd747-round-back svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.apd747-info-brand{justify-self:center;text-decoration:none;color:var(--apd747-ink);font-size:20px;font-weight:850;letter-spacing:.08em}
.apd747-help-link{color:var(--apd747-ink);font-size:14px;font-weight:750;text-decoration:none}
.apd747-info-hero{position:relative;display:grid;grid-template-columns:minmax(0,1.3fr) minmax(220px,.7fr);align-items:center;gap:22px;max-width:1180px;min-height:390px;margin:0 auto;padding:clamp(30px,6vw,76px);border:1px solid rgba(148,170,203,.34);border-radius:38px;background:linear-gradient(135deg,rgba(255,255,255,.96),rgba(239,246,255,.88));box-shadow:var(--apd747-shadow);overflow:hidden}
.apd747-info-hero::after{content:"";position:absolute;width:320px;height:320px;right:-110px;bottom:-150px;border-radius:50%;background:rgba(45,105,230,.08);filter:blur(4px)}
.apd747-info-hero-copy{position:relative;z-index:2;min-width:0}
.apd747-eyebrow{display:block;margin-bottom:12px;color:#0e6a79;font-size:12px;font-weight:850;letter-spacing:.18em}
.apd747-info-hero h1{max-width:780px;margin:0;font-size:clamp(42px,6vw,76px);line-height:.96;letter-spacing:-.055em;font-weight:860;color:#071a3d}
.apd747-info-hero p{max-width:710px;margin:22px 0 0;color:#59687d;font-size:clamp(18px,2vw,24px);line-height:1.45}
.apd747-info-hero>img{position:relative;z-index:2;width:min(100%,360px);height:auto;justify-self:center;object-fit:contain;filter:drop-shadow(0 24px 25px rgba(8,39,87,.2))}
.apd747-info-meta{display:flex;flex-wrap:wrap;gap:9px;margin-top:25px}
.apd747-info-meta span{display:inline-flex;align-items:center;min-height:34px;padding:0 12px;border:1px solid rgba(94,123,165,.18);border-radius:999px;background:rgba(255,255,255,.76);color:#43536a;font-size:12px;font-weight:700}
.apd747-info-layout{display:grid;grid-template-columns:260px minmax(0,1fr);align-items:start;gap:32px;max-width:1180px;margin:34px auto 0}
.apd747-info-index{position:sticky;top:20px;display:flex;flex-direction:column;gap:4px;padding:22px;border:1px solid var(--apd747-line);border-radius:24px;background:#fff;box-shadow:0 12px 32px rgba(15,44,87,.06)}
.apd747-info-index strong{margin-bottom:8px;font-size:14px}
.apd747-info-index a{padding:8px 10px;border-radius:10px;color:#647184;font-size:13px;line-height:1.3;text-decoration:none}
.apd747-info-index a:hover,.apd747-info-index a:focus{background:var(--apd747-sky);color:var(--apd747-blue)}
.apd747-info-content{min-width:0}
.apd747-info-section{scroll-margin-top:20px;display:grid;grid-template-columns:44px minmax(0,1fr);gap:20px;margin-bottom:18px;padding:clamp(22px,4vw,38px);border:1px solid var(--apd747-line);border-radius:28px;background:rgba(255,255,255,.94);box-shadow:0 14px 35px rgba(15,44,87,.065)}
.apd747-section-number{display:grid;place-items:center;width:42px;height:42px;border-radius:14px;background:linear-gradient(145deg,#edf5ff,#fff);color:#1b63c9;font-size:12px;font-weight:850;box-shadow:inset 0 0 0 1px rgba(31,102,201,.1),0 8px 18px rgba(12,91,216,.1)}
.apd747-info-section h2{margin:3px 0 14px;color:#0a2145;font-size:clamp(23px,3vw,32px);line-height:1.12;letter-spacing:-.035em;font-weight:820}
.apd747-info-section p{margin:0 0 12px;color:#556377;font-size:16px;line-height:1.65}
.apd747-info-section p:last-child{margin-bottom:0}
.apd747-policy-directory{margin:34px 0 24px}.apd747-policy-directory h2{margin:0 0 20px;font-size:34px;line-height:1.1;letter-spacing:-.04em}.apd747-policy-directory>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.apd747-policy-directory a{display:grid;grid-template-columns:60px minmax(0,1fr) 20px;align-items:center;gap:14px;min-width:0;padding:16px;border:1px solid var(--apd747-line);border-radius:22px;background:#fff;color:var(--apd747-ink);text-decoration:none;box-shadow:0 11px 28px rgba(14,47,94,.055)}.apd747-policy-directory img{width:60px;height:60px;object-fit:contain}.apd747-policy-directory span{min-width:0}.apd747-policy-directory strong,.apd747-policy-directory small{display:block}.apd747-policy-directory strong{font-size:15px;line-height:1.2}.apd747-policy-directory small{margin-top:4px;color:#68768a;font-size:12px;line-height:1.35}.apd747-policy-directory b{color:#6b7d93;font-size:25px}
.apd747-primary-action{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:70px;margin:24px 0;padding:0 24px;border:1px solid rgba(255,255,255,.3);border-radius:22px;background:linear-gradient(145deg,#06336e,#0879c8);color:#fff!important;text-decoration:none;font-size:18px;font-weight:800;box-shadow:0 17px 30px rgba(6,56,119,.25),inset 0 1px 0 rgba(255,255,255,.3);transition:transform .16s ease,filter .16s ease}
.apd747-primary-action:active{transform:scale(.985);filter:brightness(1.08)}
.apd747-primary-action b{font-size:28px}
.apd747-source-note{display:grid;grid-template-columns:88px minmax(0,1fr);gap:18px;align-items:center;margin:22px 0;padding:20px;border:1px solid #cfe6da;border-radius:24px;background:#f1fbf6;color:#315345}
.apd747-source-note img{width:88px;height:88px;object-fit:contain}.apd747-source-note strong{display:block;margin-bottom:4px;color:#0d6b3c;font-size:18px}.apd747-source-note span{font-size:14px;line-height:1.5}
.apd747-related{margin:46px 0}.apd747-related h2{margin:0 0 20px;font-size:32px;letter-spacing:-.035em}.apd747-related>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.apd747-related a{display:grid;grid-template-columns:68px minmax(0,1fr) 20px;align-items:center;gap:14px;min-width:0;padding:17px;border:1px solid var(--apd747-line);border-radius:23px;background:#fff;color:var(--apd747-ink);text-decoration:none;box-shadow:0 12px 30px rgba(18,48,92,.06);transition:transform .16s ease,box-shadow .16s ease}
.apd747-related a:active{transform:scale(.985)}.apd747-related img{width:68px;height:68px;object-fit:contain}.apd747-related span{min-width:0}.apd747-related strong,.apd747-related small{display:block}.apd747-related strong{font-size:16px;line-height:1.2}.apd747-related small{margin-top:5px;color:#697689;font-size:12px;line-height:1.35}.apd747-related b{font-size:26px;color:#6c7c91}
.apd747-info-footer{display:flex;justify-content:space-between;gap:24px;max-width:1180px;margin:54px auto 0;padding:34px 0 48px;border-top:1px solid #d8e0ea}.apd747-info-footer strong{font-size:24px}.apd747-info-footer p{margin:7px 0 0;color:#68768a}.apd747-info-footer nav{display:flex;flex-wrap:wrap;align-items:center;gap:18px}.apd747-info-footer a{color:#263c5d;text-decoration:none;font-weight:700;font-size:14px}

@media(max-width:760px){
  .apd747-info-page{padding:12px 12px 0}
  .apd747-info-nav{margin-bottom:14px;padding:0 3px}
  .apd747-info-hero{grid-template-columns:1fr;min-height:0;padding:28px 22px 24px;border-radius:28px}
  .apd747-info-hero h1{font-size:43px;line-height:.98}
  .apd747-info-hero p{font-size:17px;margin-top:16px}
  .apd747-info-hero>img{width:190px;margin:-8px auto -14px}
  .apd747-info-meta{margin-top:17px}
  .apd747-info-layout{display:block;margin-top:18px}
  .apd747-info-index{position:relative;top:auto;margin-bottom:16px;padding:14px 15px;max-height:190px;overflow:auto}
  .apd747-info-section{grid-template-columns:34px minmax(0,1fr);gap:13px;padding:21px 17px;border-radius:23px}
  .apd747-section-number{width:34px;height:34px;border-radius:11px}
  .apd747-info-section h2{font-size:23px}
  .apd747-info-section p{font-size:15px;line-height:1.58}
  .apd747-related>div{grid-template-columns:1fr}
  .apd747-policy-directory>div{grid-template-columns:1fr}.apd747-policy-directory h2{font-size:29px}
  .apd747-info-footer{display:block;padding:26px 8px 38px}.apd747-info-footer nav{margin-top:20px}
  .apd447-thread-detail-head{min-height:116px!important;grid-template-columns:48px minmax(0,1fr) 74px!important;padding-left:10px!important;padding-right:10px!important}
  .apd447-thread-detail-head>button{padding-left:8px!important;padding-right:8px!important}
  .apd447-conversation{padding-left:14px!important;padding-right:14px!important}
  .apd447-message-bubble-row>div{max-width:84%!important}
}

@supports not selector(body:has(*)){
  .apd747-info-page{position:relative;z-index:1000}
}
