/* NEXA responsive shell */
.mobileMenuButton{display:none}.mobileNavBackdrop{display:none}.mobileNav{display:none}
.feedCard>img,.storyMini>img{image-rendering:auto;filter:none!important;transform:none;object-fit:cover}
@media(max-width:800px){html,body{max-width:100%;overflow-x:hidden}.topbar{position:absolute;padding:10px 14px;gap:12px}.mobileMenuButton{display:grid;place-items:center;margin-left:auto;width:44px;height:44px;border:1px solid #ffffff55;border-radius:12px;background:#101d32cc;color:#fff;font-size:24px;cursor:pointer}.topLinks{display:none!important}.mobileNavBackdrop.active{display:block;position:fixed;inset:0;background:#0009;z-index:990}.mobileNav{display:flex;position:fixed;inset:0 auto 0 0;width:min(84vw,340px);max-width:340px;background:#0b1627;color:white;z-index:991;padding:22px 18px;flex-direction:column;gap:7px;transform:translateX(-105%);transition:transform .22s;box-shadow:0 12px 50px #0009;overflow-y:auto}.mobileNav.active{transform:translateX(0)}.mobileNav button{border:1px solid #ffffff22;background:#ffffff0c;color:white;text-align:left;border-radius:12px;padding:14px;font-weight:650;min-height:46px}.mobileNav .mobileNavClose{align-self:flex-end;width:auto}.hero{min-height:650px;min-height:100svh;background-attachment:scroll!important}.heroCenter{padding:115px 16px 220px}.heroTitle{font-size:clamp(31px,9vw,48px)}.heroSearch{display:flex;flex-wrap:wrap;padding:8px;gap:5px}.heroSearch input{min-width:120px;width:calc(100% - 45px);font-size:16px}.heroSearch button{width:100%;min-height:44px}.heroTools button{font-size:12px}.storyDock{left:10px;right:10px;bottom:12px}.feedGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.feedCard.span3,.feedCard.span4,.feedCard.span5,.feedCard.span6,.weatherCard,.trendCard{grid-column:span 2;grid-row:auto;min-height:230px}.feedCard.tall{min-height:300px}.feedCopy h3{font-size:clamp(17px,5vw,22px)}.feedWrap{padding:16px 10px 40px}.feedToolbar{align-items:flex-start}.feedToolbar h2{font-size:19px}.searchPage,.libraryPage,.personalPage{max-width:100%;overflow-x:hidden}.searchBarTop{flex-wrap:wrap}.resultSearch{min-width:0;flex:1}.libraryHeaderRow{display:flex;flex-wrap:wrap;gap:10px}.librarySearch{order:3;flex-basis:100%;min-width:0}.librarySearch input{min-width:0;width:100%}.libraryNav,.searchTabs{overflow-x:auto;scrollbar-width:none;white-space:nowrap}.libraryNav button,.searchTabs button{flex-shrink:0}.libraryGridNew,.discoveryGrid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.discoveryCard{min-width:0}.discoveryCover img{object-fit:contain}.personalGrid,.financeForm{grid-template-columns:1fr!important}.readerTop{flex-wrap:wrap}.readerIdentity{min-width:0}.readerBody{max-width:100vw}}
@media(max-width:420px){.libraryGridNew,.discoveryGrid{grid-template-columns:1fr!important}.feedCopy p{display:none}}

.nexaBottomNav{display:none}.nexaQuickCards{display:none}
@media(max-width:800px){
body{padding-bottom:calc(68px + env(safe-area-inset-bottom))}
.nexaBottomNav{position:fixed;z-index:850;bottom:0;left:0;right:0;display:grid;grid-template-columns:repeat(4,1fr);padding:7px 8px calc(7px + env(safe-area-inset-bottom));background:#202229f7;border-top:1px solid #ffffff20;backdrop-filter:blur(20px);box-shadow:0 -12px 40px #0005}
.nexaBottomNav button{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:2px;background:transparent;border:0;color:#dfe4ee;min-height:49px;border-radius:12px}
.nexaBottomNav button:active{background:#ffffff18}.nexaBottomNav button span{font-size:25px;line-height:1}.nexaBottomNav button small{font-size:10px}
.nexaQuickCards{display:flex;gap:10px;overflow-x:auto;scroll-snap-type:x mandatory;margin:23px -12px 0;padding:0 12px 6px;text-align:left;scrollbar-width:none}
.nexaQuickCards>*{scroll-snap-align:start;flex:0 0 205px;min-height:108px;border:1px solid #ffffff25;border-radius:19px;background:#252831;color:#f5f6fb;padding:15px;text-align:left;display:flex;flex-direction:column;gap:7px}
.nexaQuickCards strong{font-size:30px}.nexaQuickCards small{font-size:12px;color:#c7cad2}.nexaQuickCards button b{font-size:18px}
.hero{background-image:none!important;background:#202127!important;min-height:625px;min-height:100svh}.heroCenter{padding-top:120px;padding-bottom:185px}.heroTitle{font-size:48px;font-weight:650;letter-spacing:-.065em}.heroSearch{background:#34363f;border-color:#494c56;border-radius:32px;box-shadow:none;padding:10px 13px}.heroSearch input{background:transparent;color:white}.heroSearch input::placeholder{color:#aeb1ba}.heroSearch .mag{color:white}.heroSearch button{background:#4e68c9}.heroTools button{background:#2e3039;color:#f6f6fa;border:0;box-shadow:none}.storyDock{background:#292b32;border-color:#41434a;bottom:10px}.storyMini{border-radius:12px}
.feedWrap{background:#202127;padding:14px 0 28px}.feedToolbar{padding:0 17px}.feedGrid{display:flex;flex-direction:column;gap:12px}.feedCard.span3,.feedCard.span4,.feedCard.span5,.feedCard.span6,.feedCard.tall{display:flex;flex-direction:column;min-height:0;border:0;border-radius:0;background:#25262d;box-shadow:none}.feedCard>img{position:relative;width:100%;height:auto;aspect-ratio:16/10;object-fit:cover;display:block}.feedCard .feedShade{display:none}.feedCard .feedCopy{position:relative;background:#25262d;padding:17px 18px 20px}.feedCard .feedCopy h3{font-size:21px;font-weight:650;line-height:1.28;margin:9px 0}.feedCard .feedCopy p{display:block;color:#bfc3cb;font-size:13px}.feedCard .feedCopy .meta{color:#b1b5be}.weatherCard,.trendCard{margin:0 12px;min-height:170px;flex:none;border-radius:18px}
.mobileNav{width:min(87vw,365px);max-width:365px;background:#202127}.mobileNav button{background:transparent;border:0;font-size:16px;padding:15px}.mobileNav .mobileNavClose{color:#b8bdca}
}


/* NEXA MOBILE CONTRACT (2026-10-17): Assistant and all nested integration cards
   must respect the iPhone viewport. Grid children require min-width:0. */
#tasksPage,
#tasksPage .nexaAsstShell,
#tasksPage .nexaAsstGrid,
#tasksPage .nexaAsstCol,
#tasksPage .nexaAsstCard,
#tasksPage [data-ap-pane],
#tasksPage #nexaCloud {
  box-sizing:border-box;
  min-width:0;
  max-width:100%;
}
#tasksPage .nexaAsstGrid > *,
#tasksPage .nexaAsstCol > *,
#tasksPage .nexaAsstCard > *,
#tasksPage .nexaAsstHero > *,
#tasksPage .nexaAsstHead > *,
#tasksPage .nexaAsstIntegration > *,
#tasksPage .nexaAsstItem > *,
#tasksPage #nexaCloud > * {
  min-width:0;
}
#tasksPage #nexaCloud,
#tasksPage #nexaCloud p,
#tasksPage #nexaCloud h3 {
  overflow-wrap:anywhere;
  word-break:normal;
  white-space:normal;
}
#tasksPage #nexaCloud .nxcAuth,
#tasksPage #nexaCloud .nxcSigned,
#tasksPage #nexaCloud .nxcActions,
#tasksPage #nexaCloud .nxcResolve,
#tasksPage #nexaCloud .nxcConflict {
  min-width:0;
  max-width:100%;
  box-sizing:border-box;
}
#tasksPage #nexaCloud input {
  width:100%;
  min-width:0;
  max-width:100%;
  box-sizing:border-box;
}
#tasksPage #nexaCloud .nxcActions button,
#tasksPage #nexaCloud .nxcResolve button {
  max-width:100%;
  min-width:0;
  white-space:normal;
  overflow-wrap:anywhere;
  line-height:1.35;
}
@media(max-width:860px){
  #tasksPage { width:100%; overflow-x:clip; -webkit-text-size-adjust:100%; text-size-adjust:100%; }
  #tasksPage .nexaAsstShell { width:100%; padding:14px 12px calc(104px + env(safe-area-inset-bottom)); }
  #tasksPage .nexaAsstGrid,
  #tasksPage .nexaAsstHero,
  #tasksPage .nexaAsstCol { grid-template-columns:minmax(0,1fr) !important; }
  #tasksPage .nexaAsstCard { width:100%; padding:15px 14px; }
  #tasksPage .nexaAsstHero { padding:18px 16px; }
  #tasksPage .nexaAsstHero h1 { font-size:clamp(28px,8vw,42px); line-height:1.12; overflow-wrap:anywhere; }
  #tasksPage .nexaAsstTop { grid-template-columns:auto minmax(0,1fr); }
  #tasksPage .nexaAsstLogo,
  #tasksPage .nexaAsstHead,
  #tasksPage .nexaAsstItem,
  #tasksPage .nexaAsstHeroBtns { min-width:0; flex-wrap:wrap; }
  #tasksPage .nexaAsstTabs { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); width:100%; max-width:100%; overflow:visible; }
  #tasksPage .nexaAsstTabs button { min-width:0; min-height:44px; padding:10px 6px; font-size:13px; white-space:normal; }
  #tasksPage [data-ap-google] { border-color:#6b4bd8; background:#6b4bd8; color:white; min-height:44px; }
  #tasksPage #nexaGooglePanel { scroll-margin-top:20px; }
  #tasksPage .nexaAsstForm,
  #tasksPage .nexaAsstAgendaForm,
  #tasksPage .nexaAsstNoteForm,
  #tasksPage .nexaAsstChatForm { grid-template-columns:minmax(0,1fr) !important; }
  #tasksPage .nexaAsstForm input,
  #tasksPage .nexaAsstAgendaForm input,
  #tasksPage .nexaAsstVehicle input,
  #tasksPage .nexaAsstNoteForm textarea,
  #tasksPage .nexaAsstChatForm input { box-sizing:border-box; min-width:0; max-width:100%; width:100%; font-size:16px; }
  #tasksPage .nexaAsstForm input:first-child { grid-column:1; }
  #tasksPage .nexaAsstForm button,
  #tasksPage .nexaAsstAgendaForm button,
  #tasksPage .nexaAsstNoteForm button { min-height:44px; }
  #tasksPage .nexaAsstIntegration { grid-template-columns:12px minmax(0,1fr) !important; }
  #tasksPage .nexaAsstIntegration em { grid-column:2; justify-self:start; }
  #tasksPage .nexaAsstVehicle { grid-template-columns:minmax(0,1fr) !important; }
  #tasksPage .nexaAsstVehicle .wide { grid-column:1; }
  #tasksPage #nexaCloud { width:100%; padding:14px 12px; border-radius:15px; margin-bottom:16px; }
  #tasksPage #nexaCloud h3 { font-size:clamp(16px,4.4vw,20px); line-height:1.3; margin:0 0 8px; }
  #tasksPage #nexaCloud p { font-size:13px; line-height:1.5; }
  #tasksPage #nexaCloud input { font-size:16px; min-height:44px; }
  #tasksPage #nexaCloud .nxcActions,
  #tasksPage #nexaCloud .nxcResolve { display:flex; flex-wrap:wrap; gap:8px; }
  #tasksPage #nexaCloud .nxcActions button,
  #tasksPage #nexaCloud .nxcResolve button { flex:1 1 120px; min-height:44px; font-size:14px; }
  #tasksPage #nexaCloud .nxcStatus { font-size:13px; }
}
@media(max-width:390px){
  #tasksPage .nexaAsstShell { padding-left:9px; padding-right:9px; }
  #tasksPage .nexaAsstCard { padding:13px 11px; }
  #tasksPage #nexaCloud { padding:12px 10px; }
  #tasksPage #nexaCloud .nxcActions button,
  #tasksPage #nexaCloud .nxcResolve button { flex-basis:100%; }
}


@media(max-width:800px){.nexaBottomNav{grid-template-columns:repeat(5,minmax(0,1fr))}.nexaBottomNav a{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:2px;min-height:49px;text-decoration:none;color:#dfe4ee;border-radius:12px}.nexaBottomNav a span{font-size:25px;line-height:1}.nexaBottomNav a small{font-size:10px}.nexaBottomNav .mobileCapture{background:#7251e1;color:white;box-shadow:0 3px 16px #7251e14d}.mobileNav{padding-top:calc(20px + env(safe-area-inset-top));padding-bottom:calc(20px + env(safe-area-inset-bottom));overscroll-behavior:contain}.personalPage input,.personalPage textarea{font-size:16px}.personalPage button{min-height:44px}html{scroll-padding-bottom:100px}}
