/* ============================================================
   HML17 — UX mobile, histórico, ajuda e renovação
   ============================================================ */
.billing-renew-btn{display:inline-flex!important;margin-top:12px;text-decoration:none!important;align-items:center;justify-content:center;min-width:170px}
.payment-waiting-alert{position:relative;padding-right:44px}
.payment-waiting-alert:after{content:"";position:absolute;right:16px;top:50%;width:14px;height:14px;margin-top:-7px;border:2px solid rgba(124,78,0,.25);border-top-color:#7c4e00;border-radius:50%;animation:vf-spin .8s linear infinite}
@keyframes vf-spin{to{transform:rotate(360deg)}}

.module-howto-tip{display:flex;align-items:center;justify-content:space-between;gap:14px;border:1px solid #dbe8f4;background:#f8fbff;border-radius:12px;padding:11px 13px;margin:0 0 14px;min-width:0}
.module-howto-tip>div:first-child{display:flex;flex-direction:column;gap:3px;min-width:0}.module-howto-tip b{font-size:11px}.module-howto-tip span{font-size:9px;color:var(--muted);line-height:1.45}.module-howto-actions{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}

.howto-content{min-width:0}.howto-quick-links{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 16px}.howto-quick-links a{display:inline-flex;padding:8px 10px;border:1px solid var(--line);border-radius:999px;background:#fff;font-size:10px;font-weight:800;color:var(--text);text-decoration:none}.howto-quick-links a:hover{border-color:#84adff;color:var(--brand)}
.howto-card{scroll-margin-top:92px;margin-bottom:16px}.howto-head{display:flex;align-items:center;gap:11px;margin-bottom:16px}.howto-head h2{margin:3px 0 0}.howto-steps{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;list-style:none;counter-reset:vf-howto;padding:0;margin:0}.howto-steps li{counter-increment:vf-howto;display:grid;grid-template-columns:30px minmax(0,1fr);column-gap:9px;row-gap:2px;border:1px solid var(--line);border-radius:11px;padding:10px;background:#fafbfc;min-width:0}.howto-steps li:before{content:counter(vf-howto, decimal-leading-zero);grid-row:1/3;display:flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:9px;background:#eef4ff;color:var(--brand);font-size:9px;font-weight:900}.howto-steps b{font-size:10px;line-height:1.3}.howto-steps span{font-size:9px;line-height:1.5;color:var(--muted);overflow-wrap:anywhere}.howto-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}

/* Proteção estrutural contra overflow em cards e módulos. */
.account-content,.app-panel,.account-product-card,.solution-card,.plan-card-modern,.plan-card-title,.plan-card-labels,.dashboard-grid>*{min-width:0;max-width:100%}
.account-product-card *,.solution-card *,.plan-card-modern *,.app-panel *{overflow-wrap:anywhere}
.image-converter-demo,.converter-controls,.drop-field,.ml-generated-results,.ml-generated-actions{max-width:100%;min-width:0}
.image-converter-demo{overflow:hidden}.converter-controls>*{min-width:0}.drop-field>div{min-width:0}.drop-field small{white-space:normal;overflow-wrap:anywhere}

@media(max-width:620px){
  html,body{max-width:100%;overflow-x:hidden}
  .container,.dashboard,.dashboard-grid,.account-content,.app-panel{max-width:100%;min-width:0}
  .dashboard{padding-left:0;padding-right:0}.dashboard>.container{padding-left:12px;padding-right:12px}
  .app-heading{align-items:flex-start;gap:10px}.app-heading>div{min-width:0}.app-heading h1{overflow-wrap:anywhere}.status-pill{flex-shrink:0;max-width:100%}
  .module-howto-tip{align-items:flex-start;flex-direction:column}.module-howto-actions,.module-howto-tip .btn{width:100%}.module-howto-actions .btn{flex:1 1 100%}
  .howto-steps{grid-template-columns:1fr}.howto-actions{flex-direction:column}.howto-actions .btn{width:100%}

  /* Histórico vira cartões legíveis; não depende de scroll horizontal. */
  .history-table-card{overflow:visible!important;padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important}
  .history-table-card .archive-section{overflow:visible!important}
  .history-table-card table.mobile-card-table,.history-table-card table.history-doc-table{display:block!important;width:100%!important;min-width:0!important;max-width:100%!important;border:0!important;background:transparent!important}
  .history-table-card table.mobile-card-table thead{display:none!important}
  .history-table-card table.mobile-card-table tbody{display:grid!important;gap:10px!important;width:100%!important}
  .history-table-card table.mobile-card-table tr{display:block!important;width:100%!important;min-width:0!important;padding:6px 12px!important;border:1px solid var(--line)!important;border-radius:13px!important;background:#fff!important;box-shadow:0 4px 14px rgba(16,24,40,.035)!important}
  .history-table-card table.mobile-card-table td{display:grid!important;grid-template-columns:minmax(92px,34%) minmax(0,1fr)!important;align-items:start!important;gap:9px!important;width:100%!important;max-width:100%!important;padding:8px 0!important;border:0!important;border-bottom:1px solid #eef1f4!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;min-width:0!important;text-align:left!important}
  .history-table-card table.mobile-card-table td:last-child{border-bottom:0!important}
  .history-table-card table.mobile-card-table td:before{content:attr(data-label);font-size:8px;line-height:1.35;font-weight:900;text-transform:uppercase;letter-spacing:.035em;color:#667085;min-width:0}
  .history-table-card table.mobile-card-table td>*{min-width:0;max-width:100%}
  .history-table-card table.mobile-card-table td b,.history-file-cell b{display:block!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;overflow-wrap:anywhere!important;word-break:break-word!important;max-width:100%!important}
  .history-table-card .history-actions{min-width:0!important;width:100%;justify-content:flex-start;flex-wrap:wrap;gap:7px}.history-table-card .history-actions .btn{flex:1 1 110px;min-width:0!important}
  .history-download-cell{width:auto!important}.history-deleted-note{white-space:normal}
  .history-tabs{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;overflow:visible!important}.history-tab{min-width:0!important;padding:9px!important}.history-tab>div{min-width:0}.history-tab b,.history-tab small{white-space:normal!important;overflow-wrap:anywhere}
  .archive-section-head,.history-subheading{align-items:flex-start!important;gap:8px}.archive-section-head>div,.history-subheading>span{min-width:0;overflow-wrap:anywhere}

  /* ImageFlow: controles empilham sem ultrapassar 360 px. */
  .image-converter-demo{display:flex!important;flex-wrap:wrap!important;gap:6px!important;padding:10px!important}.image-converter-demo .quality-mini{flex:1 1 100%;min-width:0}.image-converter-demo>span{flex:0 0 auto}
  .converter-controls{display:grid!important;grid-template-columns:1fr!important;gap:10px!important}.converter-controls label{min-width:0!important}.range-row{min-width:0}.range-row input[type=range]{min-width:0;width:100%}
  .drop-field{grid-template-columns:auto minmax(0,1fr)!important;gap:9px!important;padding:11px!important}.drop-field input[type=file]{grid-column:1/-1!important;max-width:100%!important;width:100%!important}
  .ml-generated-results,.ml-generated-actions{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:8px!important}.ml-generated-actions .btn{width:100%}

  /* Home/visão geral: nenhum elemento decorativo pode ampliar o card. */
  .account-product-card,.solution-card{overflow:hidden!important;width:100%!important}.account-product-card>*,.solution-card>*{max-width:100%!important}.account-product-card .market-badge,.solution-card .market-badge{flex-shrink:0}
  .dashboard-overview .four-products{grid-template-columns:1fr!important}.dashboard-overview .four-products .account-product-card{width:100%!important;min-width:0!important}
  .product-explainer{display:flex!important;flex-wrap:wrap!important;gap:6px!important;max-width:100%!important}.product-explainer>*{min-width:0!important}.mini-step{white-space:normal!important;flex:1 1 120px!important}

  .billing-renew-btn{width:100%;margin-top:12px}
}

/* HML17 — escolha de renovação mais compacta */
.stripe-choice-form .renewal-choice{padding:9px 10px;margin-bottom:8px;border-radius:10px}
.stripe-choice-form .renewal-choice legend{font-size:.78rem;padding:0 5px}
.renewal-choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.stripe-choice-form .renewal-choice-option{align-items:center;gap:7px;padding:7px 8px;border:1px solid var(--line,#dbe2e8);border-radius:9px;background:#fff;min-width:0}
.stripe-choice-form .renewal-choice-option:has(input:checked){border-color:#84adff;background:#f6f9ff;box-shadow:0 0 0 2px rgba(23,92,211,.06)}
.stripe-choice-form .renewal-choice-option input{margin:0;flex:0 0 auto}
.stripe-choice-form .renewal-choice-option span{gap:1px}.stripe-choice-form .renewal-choice-option b{font-size:.75rem;line-height:1.25}.stripe-choice-form .renewal-choice-option small{font-size:.68rem;line-height:1.35}
.plan-direct-focus{max-width:680px;margin:0 auto;grid-column:1/-1!important;width:100%}
@media(max-width:620px){.renewal-choice-grid{grid-template-columns:1fr}.stripe-choice-form .renewal-choice-option{padding:7px}.plan-direct-focus{max-width:100%}}

@media(max-width:620px){
  .account-product-card .product-card-top{display:flex;flex-wrap:wrap;justify-content:flex-start;gap:7px}.account-product-card .product-card-top .market-badge{margin-right:0}.account-product-card .product-card-top .tiny-pill{white-space:normal;max-width:calc(100% - 52px)}
  .account-product-card .product-card-bottom{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:8px}.account-product-card .product-card-bottom .access-badge{white-space:normal;max-width:100%;overflow-wrap:anywhere}.account-product-card .product-card-bottom>span:last-child{margin-left:auto;white-space:nowrap}
  .account-product-card h2{font-size:17px;line-height:1.2}.account-product-card>p{min-height:0!important}
}
