.google-auth-button{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;min-height:44px;padding:12px 16px;border:1px solid #747775;border-radius:9px;background:#fff;color:#1f1f1f;font:500 14px Inter,sans-serif;cursor:pointer}
.google-auth-button svg{width:20px;height:20px;flex:0 0 20px}
.google-auth-button:disabled{opacity:.6;cursor:wait}
.google-auth-divider{display:flex;align-items:center;gap:12px;margin:16px 0;color:var(--text-muted);font-size:12px}
.google-auth-divider:before,.google-auth-divider:after{content:"";height:1px;flex:1;background:var(--border)}
.modal .google-auth-status{font-size:13px;margin:10px 0 0;color:#efacac;overflow-wrap:anywhere}
.google-auth-status:empty{display:none}
/* These overrides are limited to tablet and phone viewports. */
@media(max-width:1050px){
  #appShell .g-main,#appShell .coach-layout,#appShell .dna-layout{grid-template-columns:minmax(0,1fr)}
  #appShell .g-3,#appShell .roadmap-columns,#appShell .result-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  #appShell .grid>*,#appShell .app,#appShell .content,#appShell .chat{min-width:0}
  #appShell .app{margin-left:0}
  #appShell .sidebar{width:min(280px,85vw);transform:translateX(-105%);transition:transform .25s;overflow-y:auto;padding-top:max(22px,env(safe-area-inset-top));padding-bottom:max(18px,env(safe-area-inset-bottom))}
  #appShell .sidebar.open{transform:translateX(0)}
  #appShell .mobile-top{display:inline-flex;flex:0 0 44px;width:44px;height:44px;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:9px;background:var(--solid);color:var(--text);font-size:22px}
  #appShell .nav-overlay{position:fixed;inset:0;z-index:19;background:rgba(0,0,0,.6);display:none}
  #appShell .nav-overlay.show{display:block}
  #appShell .topbar{gap:10px;padding:8px 16px;height:auto;min-height:64px;flex-wrap:wrap}
  #appShell .topbar .stats{margin-left:auto;padding:0;flex-wrap:wrap}
  #appShell .topbar .crumb{min-width:0;flex:1}
  #appShell .content{padding:24px}
  #appShell .btn{max-width:100%;white-space:normal}
  #appShell .focus-actions,#appShell .finder-actions,#appShell #teamProjectControls{flex-wrap:wrap}
  #appShell .chat-input input{min-width:0}
  #appShell .profile-panel{left:16px;width:min(360px,calc(100vw - 32px))}
  #appShell #coach.coach-fullscreen .coach-layout{grid-template-columns:minmax(0,1fr)}
  .team-flow-overlay{overflow-y:auto;align-items:start}
  .team-flow-card{margin:auto;max-height:calc(100dvh - 40px);overflow-y:auto}
  .modal-overlay{padding:16px;overflow-y:auto}
  .modal{max-height:calc(100dvh - 32px);overflow-y:auto;width:min(480px,100%)}
  .modal form .btn{max-width:none}
}
@media(max-width:760px){
  #appShell{width:100%;height:100dvh}
  #appShell .content{padding:20px 14px max(24px,env(safe-area-inset-bottom))}
  #appShell .g-2,#appShell .g-3,#appShell .roadmap-columns,#appShell .result-grid,#appShell .choice-grid,#appShell .on-options,#appShell .profile-facts{grid-template-columns:minmax(0,1fr)}
  #appShell .topbar .crumb{display:none}
  #appShell .stats .stat-chip:nth-child(3){display:flex}
  #appShell .page-head{align-items:flex-start;flex-direction:column;gap:12px}
  #appShell .page-head h1,#appShell .page-head h2[data-h1]{overflow-wrap:anywhere}
  #appShell .mission{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;padding:14px}
  #appShell .mission>div{grid-column:1/-1;grid-row:1;min-width:0;overflow-wrap:anywhere}
  #appShell .mission .go-mission{grid-row:2;grid-column:1;margin:0;justify-self:start;min-height:44px;white-space:normal}
  #appShell .mission .xp{grid-row:2;grid-column:2;align-self:center}
  #appShell .mission-top{padding:18px;gap:12px;flex-wrap:wrap}
  #appShell .focus-actions{padding:4px 18px 18px}
  #appShell .focus-actions .btn,#appShell .finder-actions .btn{width:100%;max-width:none;min-height:44px}
  #appShell .calc{grid-template-columns:1fr}
  #appShell .calc-op{transform:rotate(90deg)}
  #appShell .metric-row{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  #appShell .metric{padding:10px;overflow-wrap:anywhere}
  #appShell .chat{min-height:360px}
  #appShell .chat-log{overflow-wrap:anywhere}
  #appShell .msg{max-width:94%}
  #appShell .chat-input{flex-wrap:wrap}
  #appShell .chat-input input{flex:1 1 160px;width:0}
  #appShell .chat-input .btn{width:auto;min-height:44px;flex:0 0 auto}
  #appShell #coach.coach-fullscreen{padding:16px;padding-bottom:max(16px,env(safe-area-inset-bottom));height:calc(var(--bizlee-viewport-height,1vh)*100);overflow-y:auto}
  #appShell #coach.coach-fullscreen .chat{min-height:0;height:max(280px,calc(var(--bizlee-viewport-height,1vh)*100 - 180px))}
  #appShell #coach.coach-fullscreen .chat-log{min-height:0}
  #appShell .onboarding{padding:24px 16px max(24px,env(safe-area-inset-bottom))}
  #appShell .on-actions .btn{width:auto;flex:1;min-height:44px}
  #appShell .on-progress{gap:4px}
  #appShell .vault-panel{padding:16px;min-width:0}
  #appShell .vault-head{padding:8px 0;gap:16px}
  #appShell .vault-invite{min-height:44px;max-width:100%}
  #appShell .vault-ranking{overflow-x:auto}
  #appShell .ranking-head{flex-wrap:wrap;gap:10px}
  #appShell .profile-upgrade-overlay{padding:12px}
  #appShell .profile-upgrade-modal{max-height:calc(100dvh - 24px)}
  #appShell .profile-pricing-card.current{padding-top:56px}
  .team-flow-overlay{padding:12px}
  .team-flow-card{padding:22px 16px;max-height:calc(100dvh - 24px);min-width:0}
  .team-flow-actions,.team-role-grid{grid-template-columns:1fr}
  .team-flow-card button{min-height:44px}
  .team-flow-input,#appShell input,#appShell textarea,#appShell select,.modal input,.modal select{font-size:16px}
  .plans-track.pricing-grid{display:grid;grid-template-columns:1fr;width:100%;max-width:480px;padding:0 16px;gap:24px}
  .plans-track .pricing-card{width:100%;max-width:none;min-width:0}
  .plans-track .pricing-card.featured{transform:none}
  .plans-track .btn{max-width:none}
  .modal{padding:28px 20px}
  .modal-close{min-width:44px;min-height:44px}
  .checkout-summary{flex-wrap:wrap;gap:8px}
  #header .btn{width:auto;min-height:44px}
  #header .hamburger{flex-shrink:0;min-width:44px;min-height:44px}
  #appShell .toast,.toast-container{max-width:calc(100vw - 28px);right:14px;bottom:14px}
}

/* Off-canvas sidebar: hidden from Tab and screen readers while closed (visibility switches after the slide). */
@media(max-width:1050px){#appShell .sidebar:not(.open){visibility:hidden;transition:transform .25s,visibility 0s linear .25s}#appShell .sidebar.open{visibility:visible;transition:transform .25s,visibility 0s}}

/* Plans: stacked whenever the three cards do not fit side by side (no cut-off horizontal strip on tablets or zoom). */
@media(max-width:1060px){#prezzi .plans-scroll{overflow-x:visible;scroll-snap-type:none}#prezzi .plans-track.pricing-grid{display:grid;grid-template-columns:1fr;width:100%;max-width:480px;margin:0 auto;padding:0 16px;gap:24px}#prezzi .plans-track .pricing-card{width:100%;max-width:none;min-width:0}#prezzi .plans-track .pricing-card.featured{transform:none}}
