/* ONE-UP mobile adaptation */
html{max-width:100%;overflow-x:hidden;-webkit-text-size-adjust:100%}
body{max-width:100%;overflow-x:hidden}
img,video,canvas,svg{max-width:100%;height:auto}
button,a,input,select,textarea{touch-action:manipulation}
input,select,textarea{font-size:16px!important}

@media(max-width:680px){
  body{min-width:0!important}
  .page,.shell,.admin-shell{width:100%;padding-left:12px!important;padding-right:12px!important;padding-bottom:96px!important}
  .topbar{width:100%;height:auto!important;min-height:0!important;align-items:flex-start!important;gap:12px!important;margin-bottom:18px!important}
  .brand{min-width:0}.brand img{width:112px!important;max-width:42vw!important}
  .nav,.top-actions,.actions,.top-actions{gap:8px!important}
  .top-link,.logout,.logout-btn,.round-btn,.nav a{min-height:40px!important;font-size:.88rem!important;padding-left:12px!important;padding-right:12px!important}
  .locked-card{width:calc(100vw - 24px)!important;border-radius:18px!important;padding:24px 18px!important}.locked-card img{width:136px!important}

  /* home */
  .hero{height:100svh!important;min-height:560px!important}.hero-content{justify-content:center!important;padding:76px 16px 96px!important}.center-logo{width:min(84vw,330px)!important}.hero-btn{width:auto!important;min-width:0!important;min-height:50px!important;margin-top:0!important;padding:0 22px!important;font-size:1rem!important;right:16px!important;bottom:16px!important}.account-top-actions{top:12px!important;right:12px!important}.account-top-actions .login-top-btn,.account-top-actions .account-top-btn{min-height:38px!important;padding:0 13px!important;font-size:.86rem!important}.social-fixed{left:10px!important;right:auto!important;bottom:12px!important;top:auto!important;transform:none!important;flex-direction:row!important;gap:7px!important}.social-fixed a{width:38px!important;height:38px!important;font-size:.95rem!important}.scroll-indicator{display:none!important}
  .investment-section,.process-section,.faq-section{padding:56px 16px!important}.investment-title,.process-heading h2,.faq-heading h2{font-size:clamp(2rem,12vw,3.2rem)!important;line-height:1.05!important;letter-spacing:0!important}.investment-description,.process-heading p{font-size:1rem!important;line-height:1.65!important}.investment-tags{margin-top:28px!important}.investment-tag{width:100%!important;justify-content:center!important;border-radius:16px!important;padding:14px!important}.process-grid{grid-template-columns:1fr!important;gap:22px!important}.mockup-card{min-height:0!important;border-radius:20px!important;padding:18px!important}.database-row{align-items:flex-start!important;gap:8px!important}.database-row b{flex:0 0 auto}.bubble,.answer,.question{max-width:100%!important}.security-pill{margin-top:34px!important;border-radius:20px!important;padding:18px!important}.faq-tabs{display:flex!important;justify-content:flex-start!important;flex-wrap:nowrap!important;gap:8px!important;overflow-x:auto!important;margin:28px -4px!important;padding:0 4px 6px!important;scroll-snap-type:x proximity}.faq-tabs button{width:auto!important;white-space:nowrap!important;flex:0 0 auto!important;padding:12px 15px!important;scroll-snap-align:start}.faq-question{padding:16px!important;gap:10px!important;font-size:1rem!important}.faq-answer{padding:0 16px 16px 54px!important}.ecosystem-footer{padding:46px 16px 0!important}.ecosystem-logos{grid-template-columns:1fr 1fr!important;gap:18px!important}.final-footer{margin-left:-16px!important;margin-right:-16px!important;padding-bottom:18px!important}

  /* modals and registration */
  .login-modal,.oneup-choice-modal{align-items:stretch!important;padding:8px!important}.login-card,.oneup-choice-card{width:100%!important;max-height:calc(100dvh - 16px)!important;overflow:auto!important;border-radius:20px!important;padding:28px 16px 18px!important}.login-close,.oneup-choice-close{right:10px!important;top:10px!important;width:38px!important;height:38px!important}.login-card h2{font-size:1.55rem!important}.login-card>p{margin-bottom:18px!important}.login-form{gap:12px!important}.login-form label{padding:11px 13px!important;border-radius:14px!important}.login-submit{min-height:50px!important}.oneup-choice-actions{gap:10px!important}.oneup-choice-actions a{min-height:58px!important;padding:10px 14px!important;line-height:1.2!important}.oneup-choice-actions a span{display:block;margin-top:3px;font-size:.78rem;line-height:1.25}.flow-message{grid-template-columns:1fr!important;justify-items:center!important;gap:10px!important;margin-bottom:16px!important}.flow-message span{width:48px!important;height:48px!important}.flow-message p{text-align:center!important;font-size:.96rem!important;padding:12px 14px!important}.flow-fields{gap:12px!important}.flow-grid-2{grid-template-columns:1fr!important;gap:12px!important}.flow-fields input,.flow-fields textarea,.flow-fields select{min-height:46px!important;padding:11px 12px!important}.flow-check{align-items:flex-start!important;font-size:.9rem!important;line-height:1.35!important}.flow-nav{position:sticky;bottom:0;z-index:2;background:linear-gradient(180deg,rgba(247,251,255,0),#f7fbff 24%);padding-top:16px;margin-top:18px!important}.flow-nav button:last-child,.flow-nav button[data-account-finish]{min-height:48px!important;min-width:132px!important}.email-code-actions{display:grid!important;grid-template-columns:1fr!important}.email-code-box button,.reset-form button{width:100%!important}

  /* Login mobile: modal compatto e centrato */
  .login-modal{
    align-items:center!important;
    justify-content:center!important;
  }

  .login-modal .login-card{
    height:auto!important;
    min-height:0!important;
    max-height:calc(100dvh - 32px)!important;
    margin:auto!important;
  }

  /* profile/dashboard */
  .profile-card,.panel,.metric,.card,.summary,.billing,.plan-card{border-radius:18px!important;padding:18px!important}.profile-head,.intro{display:grid!important;grid-template-columns:1fr!important;gap:14px!important}.avatar{width:56px!important;height:56px!important;border-radius:16px!important;font-size:1.35rem!important}.intro h1{font-size:2rem!important;letter-spacing:0!important}.head-actions,.card-footer,.back-actions{display:grid!important;grid-template-columns:1fr!important;width:100%;gap:10px!important}.head-actions .btn,.btn,.primary,.outline,.buy{width:100%!important;justify-content:center!important}.info-row,.metrics,.content-grid,.form-grid,.action-grid,.checkout,.steps,.method-grid{grid-template-columns:1fr!important}.info-row,.metrics{gap:10px!important}.metric strong{font-size:1.55rem!important}.opp-card header{display:grid!important;grid-template-columns:1fr auto!important}.opp-more{width:100%!important;justify-content:center!important;min-height:42px!important}.step{align-items:flex-start!important}.page-head{display:block!important}.page-head h1{font-size:2rem!important;letter-spacing:0!important}.page-head p{margin-top:10px!important}.side-nav{position:static!important;display:flex!important;overflow-x:auto!important;gap:8px!important;padding:10px!important;scroll-snap-type:x proximity}.side-nav a,.side-nav button{flex:0 0 auto!important;white-space:nowrap!important;min-height:42px!important;scroll-snap-align:start}.action-item{display:grid!important;grid-template-columns:1fr!important;align-items:start!important}.action-item .outline{width:100%!important}.payment-method{min-height:78px!important}.method-head{align-items:flex-start!important}.price{font-size:2.35rem!important}

  /* admin */
  .admin-layout{grid-template-columns:1fr!important}.admin-shell .topbar{display:grid!important;grid-template-columns:1fr!important}.admin-shell .brand{display:flex!important;align-items:center!important}.admin-shell .brand span{margin-top:0!important}.admin-shell .top-actions{justify-content:flex-start!important}.stats-grid,.view.active,#view-support.active{grid-template-columns:1fr!important}.workspace{gap:12px!important}.panel,.stat,.side-nav{border-radius:16px!important}.panel-head{align-items:flex-start!important;gap:10px!important}.table-wrap{margin-left:-2px;margin-right:-2px}.user-control{grid-template-columns:1fr!important}.support-list-panel,.support-chat-panel{min-height:0!important}.support-people{max-height:260px!important}.support-person{padding-right:72px!important}.support-messages{height:46dvh!important;min-height:260px!important}.support-message>div{max-width:92%!important}.support-reply{grid-template-columns:1fr!important}.support-reply button{width:100%!important;justify-content:center!important}

  /* AI widget */
  .ai-widget{right:12px!important;bottom:12px!important;left:auto!important}.ai-toggle{width:54px!important;min-width:54px!important;height:54px!important;border-radius:16px!important}.ai-panel{position:fixed!important;left:10px!important;right:10px!important;bottom:76px!important;width:auto!important;max-height:calc(100dvh - 96px)!important;display:flex!important;flex-direction:column!important;border-radius:18px!important}.ai-widget.is-open .ai-panel{opacity:1!important;pointer-events:auto!important;transform:none!important}.ai-head{padding:12px!important}.ai-title small{max-width:150px!important}.ai-body{max-height:none!important;flex:1!important}.ai-form,.ai-support-form{grid-template-columns:1fr 48px!important}.ai-form textarea,.ai-support-form textarea{min-height:48px!important;max-height:118px!important}.ai-widget.is-fullscreen .ai-panel{inset:0!important;left:0!important;right:0!important;bottom:0!important;border-radius:0!important;max-height:none!important}.ai-widget.is-fullscreen .ai-head{padding:12px!important}.ai-widget.is-fullscreen .ai-body{padding:12px!important}.ai-widget.is-fullscreen .ai-form,.ai-widget.is-fullscreen .ai-support-form{padding:10px!important;grid-template-columns:1fr 50px!important}.ai-widget.is-fullscreen .ai-message .ai-bubble,.ai-widget.is-fullscreen .ai-message p{max-width:94%!important;font-size:.94rem!important}.ai-support-top{grid-template-columns:auto 1fr!important}.ai-support-top button[data-ai-refresh]{grid-column:2;justify-self:end}.ai-support-message>div{max-width:94%!important}
}

@media(max-width:390px){
  .hero-btn{right:12px!important;bottom:12px!important;padding:0 18px!important}.social-fixed a{width:35px!important;height:35px!important}.center-logo{width:min(86vw,300px)!important}.top-link,.logout,.logout-btn,.nav a{font-size:.82rem!important;padding-left:10px!important;padding-right:10px!important}.faq-answer{padding-left:16px!important}.support-messages{height:42dvh!important}.ai-title small{max-width:118px!important}
}
/* Mobile form filling refinements */
@media(max-width:680px){
  .oneup-choice-card.is-flowing{padding:18px 12px 12px!important;background:#f7fbff!important}
  .oneup-choice-card.is-flowing .oneup-choice-close{top:8px!important;right:8px!important;background:#fff!important;box-shadow:0 8px 20px rgba(16,35,61,.12)}
  .oneup-flow-panels{padding-top:28px!important}
  .oneup-flow.is-active{
    min-height:0!important;
    display:flex!important;
    flex-direction:column!important;
  }
  .flow-message{margin-bottom:14px!important}.flow-message span{display:none!important}.flow-message p{width:100%!important;border-width:1px!important;border-radius:16px!important;background:#fff!important;text-align:left!important;color:#33445f!important;box-shadow:0 10px 24px rgba(30,70,120,.08)}
  .flow-fields{gap:10px!important;flex:0 0 auto!important}
  .flow-fields label:not(.flow-check){display:grid!important;gap:7px!important;padding:12px!important;border:1px solid #dce7f3!important;border-radius:16px!important;background:#fff!important;color:#40546d!important;font-size:.84rem!important;font-weight:900!important;box-shadow:0 8px 22px rgba(30,70,120,.055)!important}
  .flow-fields label:not(.flow-check):focus-within{border-color:#2f66a5!important;box-shadow:0 0 0 3px rgba(47,102,165,.12),0 10px 24px rgba(30,70,120,.08)!important}
  .flow-fields label:not(.flow-check) input,.flow-fields label:not(.flow-check) select,.flow-fields label:not(.flow-check) textarea{border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;padding:3px 0 0!important;min-height:34px!important;color:#10233d!important;font-weight:760!important;line-height:1.35!important}
  .flow-fields label:not(.flow-check) textarea{min-height:84px!important;padding-top:6px!important}
  .flow-fields label:not(.flow-check) select{min-height:38px!important}.flow-fields label:not(.flow-check) input::placeholder,.flow-fields label:not(.flow-check) textarea::placeholder{color:#93a2b5!important;font-weight:650!important}
  .flow-password{min-height:38px!important;display:flex!important;align-items:center!important}.flow-password input{padding-right:42px!important}.flow-password .password-toggle{right:0!important;width:40px!important;height:40px!important;border-radius:12px!important}
  .vat-feedback{font-size:.8rem!important;line-height:1.35!important;margin-top:4px!important;color:#697b92!important}
  .flow-check{display:grid!important;grid-template-columns:26px 1fr!important;gap:10px!important;padding:12px!important;border:1px solid #dce7f3!important;border-radius:15px!important;background:#fff!important;color:#40546d!important;font-size:.88rem!important;font-weight:800!important;box-shadow:0 8px 22px rgba(30,70,120,.045)!important}.flow-check input{width:24px!important;height:24px!important;margin:0!important;accent-color:#2f66a5!important}
  .flow-legal{padding:10px 12px!important;border-radius:14px!important;background:#eef5ff!important;color:#53677f!important;font-size:.78rem!important;line-height:1.45!important}
  .flow-nav{display:grid!important;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr)!important;gap:10px!important;position:static!important;bottom:0!important;margin:16px -12px 0!important;padding:16px 12px 12px!important;background:linear-gradient(180deg,rgba(247,251,255,0),#f7fbff 28%,#f7fbff 100%)!important;box-shadow:0 -10px 24px rgba(247,251,255,.9)!important}.flow-nav button{min-height:48px!important;border-radius:14px!important;border:1px solid #cfe0f3!important;background:#fff!important;color:#2f66a5!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:0 12px!important}.flow-nav button:last-child,.flow-nav button[data-account-finish]{min-width:0!important;background:#2f66a5!important;border-color:#2f66a5!important;color:#fff!important}.flow-nav button:only-child{grid-column:1/-1}
  .email-code-box,.reset-form{border-radius:16px!important;background:#fff!important}.email-code-box input,.reset-form input{min-height:50px!important;font-size:18px!important;text-align:center!important;letter-spacing:.14em!important}.reset-form label{background:#fff!important;border:1px solid #dce7f3!important;border-radius:15px!important;padding:11px!important}.reset-form label input{text-align:left!important;letter-spacing:0!important;border:0!important;padding:4px 0 0!important}

  .card form .form-grid{gap:10px!important}.card form .field{padding:12px!important;border:1px solid #dce7f3!important;border-radius:16px!important;background:#fff!important;box-shadow:0 8px 22px rgba(30,70,120,.045)!important}.card form .field:focus-within{border-color:#2f66a5!important;box-shadow:0 0 0 3px rgba(47,102,165,.12),0 8px 22px rgba(30,70,120,.06)!important}.card form .field label{font-size:.84rem!important;color:#40546d!important}.card form .field input,.card form .field select,.card form .field textarea{border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;padding:3px 0 0!important;min-height:36px!important;color:#10233d!important;font-weight:760!important}.card form .field textarea{min-height:90px!important}.card form .field.is-missing{background:#fffaf0!important;border-color:#d6b35a!important}.card form .field.is-missing input,.card form .field.is-missing select,.card form .field.is-missing textarea{background:transparent!important}.card form .missing-text{font-size:.76rem!important;margin-top:2px!important}.card form .card-footer{position:sticky!important;bottom:0!important;margin:16px -18px -18px!important;padding:14px 18px 18px!important;background:linear-gradient(180deg,rgba(255,255,255,0),#fff 30%,#fff 100%)!important;border-radius:0 0 18px 18px!important}.card form .message{text-align:center!important;min-height:20px!important}.card form .primary{min-height:50px!important;border-radius:15px!important}
}

@media(max-width:390px){
  .flow-nav{grid-template-columns:1fr!important}.flow-nav button{width:100%!important}.flow-fields label:not(.flow-check),.card form .field{padding:11px!important}.oneup-choice-card.is-flowing{padding-left:10px!important;padding-right:10px!important}.card form .card-footer{margin-left:-18px!important;margin-right:-18px!important}
}
/* New attachment controls */
@media(max-width:760px){.support-reply .support-attach-btn{width:auto!important;justify-content:flex-start!important}.support-reply-tools{justify-content:flex-start!important}.support-file-list,.support-attachments{max-width:100%!important}.ai-input-row{min-width:0!important}.ai-file-chip,.support-file-chip{max-width:100%!important}}