.ade-shell{max-width:1280px;margin:40px auto;padding:45px;background:#fff;border-radius:30px;box-shadow:0 25px 70px rgba(0,0,0,.12);font-family:Arial,Inter,sans-serif;color:#07152f;box-sizing:border-box}.ade-shell *{box-sizing:border-box}.ade-hero,.ade-form-head,.ade-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:24px}.ade-hero h2,.ade-form-head h2{font-size:34px;line-height:1.1;margin:7px 0 8px}.ade-hero p,.ade-form-head p{color:#64748b;margin:0;max-width:720px;line-height:1.6}.ade-eyebrow{font-weight:800;text-transform:uppercase;font-size:12px;letter-spacing:.12em;color:#f97316}.ade-badge{padding:10px 16px;border-radius:999px;background:#fff7ed;color:#c2410c;border:1px solid #fed7aa;font-weight:800;white-space:nowrap}.ade-portal-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px;margin:32px 0}.ade-action-card{display:flex;flex-direction:column;gap:9px;padding:28px;border-radius:22px;border:1px solid #e2e8f0;text-decoration:none;color:#07152f;background:linear-gradient(145deg,#fff,#f8fafc);transition:.2s}.ade-action-card:hover{transform:translateY(-3px);box-shadow:0 15px 40px rgba(15,23,42,.1)}.ade-action-card strong{font-size:22px}.ade-action-card small{color:#64748b;font-size:14px;line-height:1.5}.ade-card-icon{width:52px;height:52px;border-radius:16px;background:#082b5c;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:900;font-size:25px}.ade-form{margin-top:28px}.ade-form h3{font-size:20px;margin:30px 0 16px}.ade-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.ade-grid label{display:flex;flex-direction:column;gap:8px;font-size:14px;font-weight:800}.ade-grid input,.ade-grid select{height:56px;border:1px solid #dbe1ea;border-radius:14px;padding:0 16px;background:#f8fafc;color:#0f172a;font-size:16px;outline:none}.ade-grid input:focus,.ade-grid select:focus{border-color:#f59e0b;box-shadow:0 0 0 4px rgba(245,158,11,.14);background:#fff}.ade-grid input[type=file]{height:auto;padding:15px}.ade-grid small{font-weight:400;color:#64748b;line-height:1.4}.ade-span-2{grid-column:1/-1}.ade-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin:16px 0 28px}.ade-kpis>div{padding:22px;border:1px solid #e2e8f0;border-radius:18px;background:#f8fafc}.ade-kpis small{display:block;color:#64748b;margin-bottom:7px}.ade-kpis strong{font-size:24px}.ade-kpis .accent{background:#fff7ed;border-color:#fdba74}.ade-kpis .accent strong{color:#f97316}.ade-btn{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 22px;border-radius:12px;text-decoration:none!important;font-weight:800;border:0;cursor:pointer}.ade-btn-primary{background:linear-gradient(135deg,#fbbf24,#f97316);color:#111827!important}.ade-btn-secondary{background:#082b5c;color:#fff!important}.ade-btn-ghost{border:1px solid #cbd5e1;color:#0f172a!important;background:#fff}.ade-submit{min-width:320px;min-height:56px;font-size:16px}.ade-submit:disabled{opacity:.65;cursor:wait}.ade-section-head{align-items:center;margin-top:26px}.ade-section-head h2,.ade-section-head h3{margin:0}.ade-table-wrap{overflow:auto;border:1px solid #e2e8f0;border-radius:16px;margin-top:16px}.ade-table{border-collapse:collapse;width:100%;min-width:720px}.ade-table th,.ade-table td{padding:14px 16px;border-bottom:1px solid #e2e8f0;text-align:left}.ade-table th{background:#f8fafc;font-size:13px}.ade-mini-btn{display:inline-block;padding:6px 9px;margin:2px;border-radius:8px;background:#082b5c;color:#fff!important;text-decoration:none;font-size:12px;font-weight:700}.ade-status{display:inline-block;padding:5px 9px;border-radius:999px;background:#e2e8f0;font-size:12px;font-weight:800}.ade-status.ok{background:#dcfce7;color:#166534}.ade-status.fail{background:#fee2e2;color:#991b1b}.ade-alert{max-width:1180px;margin:20px auto;padding:18px 22px;border-radius:16px}.ade-alert-success{background:#ecfdf5;border:1px solid #a7f3d0;color:#14532d}.ade-alert-error{background:#fef2f2;border:1px solid #fecaca;color:#991b1b}.ade-alert-warning{background:#fffbeb;border:1px solid #fde68a;color:#854d0e}.ade-download-row{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}.ade-empty,.ade-info{padding:18px;border-radius:14px;background:#f8fafc;color:#64748b;margin-top:18px}.ade-login-card{max-width:560px}.ade-login-card input[type=text],.ade-login-card input[type=password]{width:100%;height:50px;border:1px solid #cbd5e1;border-radius:10px;padding:0 12px}.ade-login-card input[type=submit]{background:#f97316;border:0;border-radius:10px;padding:12px 20px;color:#fff;font-weight:800}.ade-login-card label{font-weight:700}.ade-info{margin:24px 0;border-left:4px solid #f59e0b}

/* v1.2.0 - fundo institucional nas páginas do portal.
 * A imagem é a fornecida para o projeto. O linear-gradient funciona como overlay
 * #141D2E com 87% de opacidade, sem alterar o arquivo original.
 */
body.ade-docs-page{
    background-color:#141D2E;
    background-image:linear-gradient(rgba(20,29,46,.87),rgba(20,29,46,.87)),url('../images/hero-assinatura-da-energia-2.webp');
    background-position:center center;
    background-size:cover;
    background-repeat:no-repeat;
    background-attachment:fixed;
}
body.ade-docs-page #content,
body.ade-docs-page .site-main,
body.ade-docs-page main{
    background:transparent!important;
}
body.ade-docs-page #content{
    padding-top:1px;
    padding-bottom:1px;
    min-height:65vh;
}
/* Mantém o cartão legível sobre o fundo escuro e deixa a fotografia visível nas margens. */
body.ade-docs-page .ade-shell{
    background:rgba(255,255,255,.98);
    box-shadow:0 28px 80px rgba(0,0,0,.30);
}
@media(max-width:1024px){
    body.ade-docs-page{background-attachment:scroll;background-position:center top}
}

/* Navegação rápida entre os dois geradores. */
.ade-form-switcher{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:0 0 34px;padding-bottom:28px;border-bottom:1px solid #e5e7eb}
.ade-switch-btn{display:flex;align-items:center;gap:14px;min-height:76px;padding:14px 18px;border:1px solid #dbe1ea;border-radius:16px;background:#f8fafc;color:#07152f!important;text-decoration:none!important;transition:all .2s ease}
.ade-switch-btn:hover{transform:translateY(-2px);border-color:#f59e0b;box-shadow:0 10px 26px rgba(15,23,42,.08)}
.ade-switch-btn.is-active{background:linear-gradient(135deg,#fff7ed 0%,#fff 100%);border-color:#f59e0b;box-shadow:0 0 0 3px rgba(245,158,11,.10)}
.ade-switch-icon{display:flex;align-items:center;justify-content:center;flex:0 0 46px;width:46px;height:46px;border-radius:13px;background:#082b5c;color:#fff;font-weight:900;font-size:22px}
.ade-switch-btn.is-active .ade-switch-icon{background:linear-gradient(135deg,#fbbf24,#f97316);color:#111827}
.ade-switch-btn>span:last-child{display:flex;flex-direction:column;gap:4px}
.ade-switch-btn strong{font-size:16px;line-height:1.2}
.ade-switch-btn small{font-size:12px;color:#64748b;line-height:1.3}

@media(max-width:800px){.ade-shell{margin:16px;padding:24px;border-radius:20px}.ade-form-switcher{grid-template-columns:1fr;margin-bottom:26px;padding-bottom:22px}.ade-hero,.ade-form-head,.ade-section-head{flex-direction:column}.ade-portal-grid,.ade-grid,.ade-kpis{grid-template-columns:1fr}.ade-span-2{grid-column:auto}.ade-submit{width:100%;min-width:0}.ade-hero h2,.ade-form-head h2{font-size:28px}}

/* v1.4.0 - legibilidade ampliada, números em destaque e navegação com histórico. */
.ade-form h3{font-size:23px;line-height:1.25}
.ade-grid label{font-size:16px;line-height:1.35}
.ade-grid input,.ade-grid select{height:60px;font-size:18px;padding:0 18px}
.ade-grid input[type=file]{font-size:16px}
.ade-grid small{font-size:13px}
.ade-required{color:#dc2626;font-weight:900}
.ade-kpis>div{padding:24px}
.ade-kpis small{font-size:15px;font-weight:700}
.ade-kpis strong{font-size:34px;line-height:1.12;letter-spacing:-.02em}
.ade-submit{font-size:18px;min-height:60px}
.ade-form-switcher{grid-template-columns:repeat(3,1fr)}
.ade-switch-btn strong{font-size:17px}
.ade-switch-btn small{font-size:13px}
.ade-switch-history .ade-switch-icon{font-size:26px}
.ade-table th{font-size:14px}
.ade-table td{font-size:15px}
@media(max-width:1000px){
    .ade-kpis{grid-template-columns:repeat(2,1fr)}
    .ade-kpis strong{font-size:31px}
}
@media(max-width:800px){
    .ade-form-switcher{grid-template-columns:1fr}
    .ade-grid input,.ade-grid select{font-size:17px}
    .ade-kpis{grid-template-columns:1fr}
    .ade-kpis strong{font-size:32px}
}
