.stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:18px}
.stat-card{
    background:#fff;border:1px solid var(--border);border-radius:var(--radius);padding:17px;display:flex;align-items:flex-start;gap:13px;
    box-shadow:var(--shadow);min-width:0
}
.stat-icon{width:38px;height:38px;border-radius:7px;background:var(--primary-soft);color:var(--primary);display:flex;align-items:center;justify-content:center;flex:0 0 auto}
.stat-content{min-width:0;display:flex;flex-direction:column}
.stat-content span{font-size:12px;color:var(--muted);font-weight:600}
.stat-content strong{font-size:22px;margin:7px 0 4px;letter-spacing:-.025em;white-space:nowrap}
.stat-content small{font-size:11px;color:#767D87}

.content-grid{display:grid;gap:18px;margin-bottom:18px}
.content-grid.two-one{grid-template-columns:minmax(0,2fr) minmax(290px,1fr)}
.chart-placeholder{height:250px;padding-top:14px;display:flex;flex-direction:column}
.bars{height:190px;border-bottom:1px solid var(--border);display:flex;align-items:flex-end;gap:10px;padding:0 8px}
.bars span{flex:1;background:linear-gradient(to top,#E31B23,#F36B70);border-radius:4px 4px 0 0;min-width:8px}
.bars span:nth-child(even){opacity:.72}
.chart-legend{display:flex;gap:18px;margin-top:14px;color:var(--muted);font-size:12px}
.legend-dot{display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:6px}
.legend-dot.red{background:var(--primary)}.legend-dot.dark{background:#20242A}
.finance-list{display:flex;flex-direction:column;margin-bottom:15px}
.finance-list>div{display:flex;justify-content:space-between;align-items:center;padding:13px 0;border-bottom:1px solid var(--border)}
.finance-list>div:last-child{border-bottom:0}
.finance-list span{color:var(--muted);font-size:12px}
.finance-list strong{font-size:13px}
.referral-panel{margin-bottom:18px}
.referral-box{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:10px}
.referral-url{height:42px;border:1px solid var(--border-dark);background:#F8F9FA;border-radius:var(--radius-sm);display:flex;align-items:center;padding:0 13px;overflow:hidden}
.referral-url span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#444C57}
.funnel{display:flex;flex-direction:column;gap:15px;padding:10px 0 18px}
.funnel-item{display:grid;grid-template-columns:80px 100px 1fr;align-items:center;gap:10px}
.funnel-item strong{font-size:18px}.funnel-item span{font-size:12px;color:var(--muted)}
.funnel-item i{display:block;height:9px;background:var(--primary);border-radius:10px}
.conversion-rate{border-top:1px solid var(--border);padding-top:15px;display:flex;justify-content:space-between}
.conversion-rate span{color:var(--muted)}.conversion-rate strong{font-size:16px}
.ds-section{margin-bottom:18px}
.component-row{display:flex;flex-wrap:wrap;gap:10px}
.alerts{display:grid;gap:10px;margin-top:18px}

@media (max-width:1180px){
    .stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:860px){
    .content-grid.two-one{grid-template-columns:1fr}
}
@media (max-width:620px){
    .stat-grid{grid-template-columns:1fr}
    .stat-card{padding:15px}
    .referral-box{grid-template-columns:1fr}
    .referral-box .btn{width:100%}
    .funnel-item{grid-template-columns:65px 80px 1fr}
}

.page-heading-standard{margin-bottom:22px}
.page-heading-standard h1{margin-bottom:5px}
.page-breadcrumb{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin:0 0 8px;font-size:11px;color:#8A919B}
.page-breadcrumb a{color:var(--muted)}.page-breadcrumb a:hover{color:var(--primary)}
.page-breadcrumb>*+*::before{content:"/";margin-right:7px;color:#C2C7CF}
.page-breadcrumb span:last-child{color:#444B55;font-weight:600}
.empty-state{min-height:240px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:28px;color:var(--muted)}
.empty-state.compact{min-height:180px}.empty-state strong{color:var(--text);font-size:15px;margin-top:12px}.empty-state p{max-width:520px;line-height:1.5;margin:7px 0 15px}.empty-icon{width:54px;height:54px;border-radius:50%;display:grid;place-items:center;background:var(--primary-soft);color:var(--primary)}

/* Perfil — mesma lógica estrutural do Master do Conta Certa. */
.profile-card{max-width:900px!important;margin-left:0!important}
.profile-form{display:grid;gap:18px}.profile-section-title{margin:0 0 4px;font-size:16px}.profile-section-copy{margin:0;color:var(--muted);font-size:12px}.profile-divider{height:1px;background:var(--border);margin:2px 0 0}
.profile-photo-row{display:flex;align-items:center;gap:18px;padding:16px;border:1px solid var(--border);border-radius:14px;background:#FBFCFE}.profile-photo-preview{width:82px;height:82px;flex:0 0 82px;border-radius:50%;overflow:hidden;display:grid;place-items:center;background:var(--primary-soft);color:var(--primary);font-size:24px;font-weight:700;border:1px solid rgba(227,27,35,.13)}.profile-photo-preview img{width:100%;height:100%;display:block;object-fit:cover}.profile-photo-copy{display:grid;gap:8px;min-width:0}.profile-photo-copy strong{font-size:14px}.profile-photo-copy small{color:var(--muted);font-size:12px;line-height:1.45}.profile-photo-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.profile-file{max-width:360px;height:auto!important;padding:7px 10px!important;font-size:12px}.remove-photo{display:flex;align-items:center;gap:7px;font-size:12px;color:var(--muted);font-weight:400}.remove-photo input{width:16px;height:16px;accent-color:var(--primary)}.profile-grid{grid-template-columns:1fr 1fr}.profile-security{padding:12px 14px;border:1px solid var(--border);border-radius:10px;background:#F8FAFD;color:var(--muted);font-size:12px;line-height:1.5}.profile-actions{display:flex;justify-content:flex-end}.profile-actions .btn{min-width:170px}

/* Atualizações */
.update-grid{align-items:start}.build-pill{display:inline-flex;align-items:center;height:28px;padding:0 10px;border-radius:999px;background:var(--primary-soft);color:var(--primary);font-size:11px;font-weight:700;white-space:nowrap}.update-form{display:grid;gap:16px}.update-drop{position:relative;min-height:160px;border:1px dashed #C6CBD3;border-radius:10px;background:#FBFCFE;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:24px;cursor:pointer;transition:.16s ease}.update-drop:hover{border-color:var(--primary);background:var(--primary-soft)}.update-drop input{position:absolute;inset:0;opacity:0;cursor:pointer}.update-icon{width:46px;height:46px;border-radius:50%;display:grid;place-items:center;background:#fff;border:1px solid var(--border);color:var(--primary);margin-bottom:10px}.update-drop strong{font-size:14px}.update-drop small{color:var(--muted);margin-top:5px}.update-actions{display:flex;justify-content:flex-end}.protection-list{display:grid}.protection-list>div{display:flex;align-items:center;gap:9px;padding:12px 0;border-bottom:1px solid var(--border);font-size:12px}.protection-list>div:last-child{border-bottom:0}.protection-list .icon{color:var(--success)}

/* Login */
.auth-body{min-height:100vh;background:#F4F5F7}.auth-shell{min-height:100vh;display:grid;grid-template-columns:minmax(360px,42%) minmax(0,1fr)}.auth-brand-panel{background:#0D0D0D;color:#fff;padding:48px clamp(34px,5vw,76px);display:flex;flex-direction:column;justify-content:space-between;gap:40px;position:relative;overflow:hidden}.auth-brand-panel::after{content:"";position:absolute;width:320px;height:320px;border-radius:50%;background:var(--primary);opacity:.12;right:-120px;bottom:-130px}.auth-logo{width:auto;max-width:240px;max-height:82px;object-fit:contain;object-position:left center;filter:brightness(0) invert(1)}.auth-brand-panel>div{position:relative;z-index:1}.auth-kicker{display:inline-flex;color:#FF5C61;font-weight:700;font-size:11px;letter-spacing:.14em;margin-bottom:14px}.auth-brand-panel h1{font-size:clamp(30px,3.4vw,48px);line-height:1.08;margin:0 0 16px;letter-spacing:-.035em;max-width:620px}.auth-brand-panel p{color:#B7BCC4;line-height:1.65;max-width:580px;margin:0;font-size:14px}.auth-brand-panel small{color:#777F8A;position:relative;z-index:1}.auth-card-wrap{display:grid;place-items:center;padding:28px}.auth-card{width:min(430px,100%);background:#fff;border:1px solid var(--border);border-radius:12px;padding:28px;display:grid;gap:17px;box-shadow:0 10px 35px rgba(16,24,40,.06)}.auth-card-head{display:flex;align-items:center;gap:12px;margin-bottom:3px}.auth-card-head img{width:46px;height:46px;object-fit:contain}.auth-card-head h2{margin:0 0 3px;font-size:22px}.auth-card-head p{margin:0;color:var(--muted);font-size:12px}

@media(max-width:860px){.auth-shell{grid-template-columns:1fr}.auth-brand-panel{min-height:230px;padding:28px}.auth-brand-panel h1{font-size:30px}.auth-brand-panel p{display:none}.auth-logo{max-width:190px}.auth-card-wrap{padding:22px}.profile-grid{grid-template-columns:1fr}}
@media(max-width:640px){.profile-photo-row{align-items:flex-start}.profile-photo-preview{width:68px;height:68px;flex-basis:68px}.profile-photo-actions{align-items:flex-start;flex-direction:column}.profile-file{max-width:100%}.profile-actions .btn,.update-actions .btn{width:100%}.auth-card{padding:22px 18px}.auth-brand-panel{min-height:190px}.auth-brand-panel small{display:none}}

/* Build 004 — painel profissional integrado, sem excesso de cards */
.overview-strip{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    background:#fff;
    border-top:1px solid var(--border);
    border-bottom:1px solid var(--border);
    margin:0 0 26px;
}
.overview-metric{
    min-width:0;
    display:flex;
    align-items:flex-start;
    gap:12px;
    padding:18px 20px;
    position:relative;
}
.overview-metric:not(:last-child)::after{
    content:"";
    position:absolute;
    right:0;
    top:18px;
    bottom:18px;
    width:1px;
    background:var(--border);
}
.overview-icon{
    width:34px;height:34px;flex:0 0 34px;
    display:grid;place-items:center;
    color:var(--primary);
}
.overview-copy{min-width:0;display:flex;flex-direction:column}
.overview-copy span{font-size:12px;color:var(--muted);font-weight:600}
.overview-copy strong{font-size:21px;letter-spacing:-.02em;margin:5px 0 3px;white-space:nowrap}
.overview-copy small{font-size:11px;color:#7A818B}

.dashboard-section{
    padding:24px 0;
    border-top:1px solid var(--border);
    background:transparent;
}
.dashboard-section:last-of-type{border-bottom:1px solid var(--border)}
.section-heading{
    display:flex;align-items:flex-start;justify-content:space-between;gap:18px;
    margin-bottom:20px;
}
.section-heading h2{font-size:16px;margin:0 0 5px;font-weight:700}
.section-heading p{font-size:13px;color:var(--muted);margin:0;line-height:1.5}
.dashboard-split{
    display:grid;
    grid-template-columns:minmax(0,2fr) minmax(280px,.82fr);
    gap:0;
}
.dashboard-primary{padding-right:28px;min-width:0}
.dashboard-aside{
    border-left:1px solid var(--border);
    padding-left:28px;
    min-width:0;
}
.aside-title{
    display:flex;align-items:center;gap:9px;
    margin-bottom:7px;color:#343A43;
}
.aside-title svg{color:var(--primary)}
.finance-list.flat{margin:0 0 10px}
.finance-list.flat>div{padding:11px 0}
.text-action{
    display:inline-flex;align-items:center;gap:5px;
    color:var(--primary);font-size:12px;font-weight:700;
}
.text-action svg{order:2}
.flat-chart{padding:0;height:235px}
.flat-chart .bars{height:175px}
.flat-funnel{padding:3px 0 17px}
.flat-referral{padding:0}
.flat-table{border-left:0;border-right:0;border-radius:0}
.flat-table .table th:first-child,.flat-table .table td:first-child{padding-left:0}
.flat-table .table th:last-child,.flat-table .table td:last-child{padding-right:0}
.flat-table .table th{background:transparent}
.flat-table .table{background:transparent}
.referral-section{padding-top:22px}
.referral-url svg{color:var(--muted);margin-right:9px;flex:0 0 auto}
.referral-url{background:#fff}

/* Antigos cartões de indicador deixam de ser o padrão visual do dashboard. */
.stat-grid{display:none}

@media (max-width:1100px){
    .overview-strip{grid-template-columns:repeat(2,minmax(0,1fr))}
    .overview-metric:nth-child(2)::after{display:none}
    .overview-metric:nth-child(-n+2){border-bottom:1px solid var(--border)}
}
@media (max-width:860px){
    .dashboard-split{grid-template-columns:1fr}
    .dashboard-primary{padding-right:0}
    .dashboard-aside{border-left:0;border-top:1px solid var(--border);padding:22px 0 0;margin-top:22px}
}
@media (max-width:620px){
    .overview-strip{grid-template-columns:1fr}
    .overview-metric{padding:15px 4px}
    .overview-metric::after{display:none!important}
    .overview-metric:not(:last-child){border-bottom:1px solid var(--border)}
    .section-heading{flex-direction:column;align-items:stretch}
    .section-heading .btn,.section-heading .select{width:100%}
    .dashboard-section{padding:21px 0}
}

/* Build 006 — autenticação, DM Sans e experiência PWA */
.auth-body{
    min-height:100dvh;
    background:#F5F6F8;
    color:var(--text);
    overscroll-behavior-y:contain;
}
.auth-shell{
    min-height:100dvh;
    display:grid;
    grid-template-columns:minmax(0,1.08fr) minmax(440px,.92fr);
}
.auth-visual{
    position:relative;
    min-height:100dvh;
    background:#111;
    overflow:hidden;
    isolation:isolate;
}
.auth-slide{
    position:absolute;
    inset:0;
    margin:0;
    width:100%;
    height:100%;
    opacity:0;
    transition:opacity .9s ease;
    pointer-events:none;
}
.auth-slide.is-active{opacity:1}
.auth-slide img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}
.auth-slide::after{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(180deg,rgba(0,0,0,.08) 28%,rgba(0,0,0,.72) 100%);
}
.auth-slide-caption{
    position:absolute;
    left:clamp(28px,5vw,70px);
    right:clamp(28px,5vw,70px);
    bottom:clamp(34px,6vw,70px);
    z-index:2;
    color:#fff;
}
.auth-slide-caption strong{
    display:block;
    font-size:clamp(26px,3vw,42px);
    line-height:1.05;
    letter-spacing:-.035em;
    font-weight:700;
}
.auth-slide-caption span{
    display:flex;
    align-items:center;
    gap:7px;
    margin-top:9px;
    font-size:14px;
    color:rgba(255,255,255,.86);
}
.auth-visual-fallback{
    position:absolute;
    inset:0;
    display:grid;
    place-items:center;
    background:
      radial-gradient(circle at 18% 22%,rgba(227,27,35,.28),transparent 35%),
      radial-gradient(circle at 82% 78%,rgba(227,27,35,.18),transparent 34%),
      #111;
}
.auth-visual-fallback::before,
.auth-visual-fallback::after{
    content:"";
    position:absolute;
    background:var(--primary);
    opacity:.92;
}
.auth-visual-fallback::before{width:132px;height:132px;border-radius:50%;top:9%;right:10%}
.auth-visual-fallback::after{width:110px;height:44px;transform:rotate(-34deg);left:-20px;bottom:24%}
.auth-visual-fallback-copy{
    position:absolute;
    left:clamp(28px,5vw,70px);
    right:clamp(28px,5vw,70px);
    bottom:clamp(34px,6vw,70px);
    color:#fff;
    z-index:2;
}
.auth-visual-fallback-copy strong{font-size:clamp(26px,3vw,40px);letter-spacing:-.035em}
.auth-visual-fallback-copy span{display:block;color:#B9BEC8;margin-top:8px}

.auth-form-side{
    min-height:100dvh;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:48px clamp(24px,5vw,72px);
    background:#F7F8FA;
}
.auth-form-wrap{
    width:min(100%,430px);
}
.auth-form-brand{
    display:flex;
    justify-content:center;
    margin-bottom:28px;
}
.auth-form-brand img{
    display:block;
    width:auto;
    max-width:220px;
    max-height:78px;
    object-fit:contain;
}
.auth-form-heading{
    text-align:center;
    margin-bottom:24px;
}
.auth-form-heading h1{
    margin:0;
    font-size:25px;
    letter-spacing:-.025em;
    font-weight:700;
}
.auth-form-heading p{
    margin:7px 0 0;
    color:var(--muted);
    font-size:13px;
}
.auth-form{
    display:grid;
    gap:16px;
}
.password-wrap{position:relative}
.password-wrap .input{padding-right:46px}
.password-toggle{
    position:absolute;
    right:4px;
    top:50%;
    transform:translateY(-50%);
    width:36px;height:36px;
    display:grid;place-items:center;
    border:0;background:transparent;
    color:#667085;
    border-radius:6px;
}
.password-toggle:hover{background:#F1F3F5;color:var(--primary)}
.auth-inline{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
    margin-top:-2px;
}
.remember-control{
    display:flex;
    align-items:center;
    gap:8px;
    font-size:12px;
    font-weight:500;
    color:#4A5260;
    cursor:pointer;
}
.remember-control input{
    width:16px;height:16px;
    accent-color:var(--primary);
}
.auth-link{
    color:var(--primary);
    font-size:12px;
    font-weight:650;
}
.auth-link:hover{text-decoration:underline}
.auth-submit{margin-top:2px}
.auth-helper{
    margin-top:18px;
    padding-top:16px;
    border-top:1px solid var(--border);
    text-align:center;
    font-size:11px;
    color:#8B929C;
}
.auth-back{
    display:inline-flex;
    align-items:center;
    gap:6px;
    margin-top:18px;
    color:#5E6672;
    font-size:12px;
    font-weight:600;
}
.auth-back:hover{color:var(--primary)}
.auth-pwa-install{
    display:none;
    width:100%;
    margin-top:12px;
}
.auth-pwa-install.is-visible{display:inline-flex}
.auth-success{
    border-top:1px solid #CDEBD8;
    border-bottom:1px solid #CDEBD8;
    background:var(--success-soft);
    color:var(--success);
    padding:12px 0;
    font-size:12px;
    font-weight:600;
}
.auth-error{
    border-top:1px solid #F5CBC7;
    border-bottom:1px solid #F5CBC7;
    background:var(--danger-soft);
    color:var(--danger);
    padding:12px 0;
    font-size:12px;
    font-weight:600;
}

.login-slides-grid{
    display:grid;
    gap:0;
    border-top:1px solid var(--border);
}
.login-slide-row{
    display:grid;
    grid-template-columns:120px minmax(0,1fr) 130px 110px;
    gap:16px;
    align-items:center;
    padding:14px 0;
    border-bottom:1px solid var(--border);
}
.login-slide-thumb{
    width:120px;height:72px;
    overflow:hidden;
    background:#F2F3F5;
    border:1px solid var(--border);
}
.login-slide-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.login-slide-copy strong{display:block;font-size:13px}
.login-slide-copy span{display:block;color:var(--muted);font-size:11px;margin-top:4px}
.login-slide-actions{display:flex;justify-content:flex-end}
.login-slide-area{font-size:11px;color:#5D6470}
.settings-note{
    border-left:3px solid var(--primary);
    padding:2px 0 2px 12px;
    color:#626A76;
    font-size:12px;
    line-height:1.5;
}
.pwa-install-button[hidden]{display:none!important}

@media(max-width:900px){
    .auth-shell{display:block}
    .auth-visual{display:none}
    .auth-form-side{min-height:100dvh;padding:32px 18px calc(32px + env(safe-area-inset-bottom))}
    .auth-form-brand{margin-bottom:22px}
    .auth-form-brand img{max-width:190px;max-height:66px}
    .auth-form-heading h1{font-size:23px}
    .login-slide-row{grid-template-columns:92px minmax(0,1fr) 90px}
    .login-slide-thumb{width:92px;height:62px}
    .login-slide-area{display:none}
}
@media(max-width:560px){
    .auth-inline{align-items:flex-start;flex-direction:column;gap:10px}
    .login-slide-row{grid-template-columns:78px minmax(0,1fr);gap:12px}
    .login-slide-thumb{width:78px;height:58px}
    .login-slide-actions{grid-column:2;justify-content:flex-start}
}

/* modo aplicativo instalado */
@media(display-mode:standalone){
    html,body{min-height:100dvh}
    .system-mobile-topbar{padding-top:env(safe-area-inset-top);height:calc(64px + env(safe-area-inset-top))}
    .system-main{padding-bottom:calc(36px + env(safe-area-inset-bottom))}
    .auth-form-side{padding-top:calc(32px + env(safe-area-inset-top));padding-bottom:calc(32px + env(safe-area-inset-bottom))}
}
@media(max-width:900px){
    body.system-body{
        overscroll-behavior-y:contain;
        -webkit-tap-highlight-color:transparent;
    }
    .system-icon-button,.system-nav-link,.btn{touch-action:manipulation}
}


/* Build 011 — PWA configurável e imagem total no login */
.auth-visual,.auth-slide,.auth-slide img{width:100%;height:100%}
.auth-slide img{min-width:100%;min-height:100%;object-fit:cover;object-position:center center}
.settings-toggle-list{border-top:1px solid var(--border);margin-top:18px}
.settings-toggle-row{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:18px 0;border-bottom:1px solid var(--border);cursor:pointer}
.settings-toggle-copy{min-width:0;display:block}
.settings-toggle-copy strong{display:block;font-size:14px;color:var(--text)}
.settings-toggle-copy small{display:block;margin-top:5px;color:var(--muted);font-size:12px;line-height:1.5;max-width:720px}
.switch-control{flex:0 0 auto;position:relative;display:inline-flex}
.switch-control input{position:absolute;opacity:0;pointer-events:none}
.switch-control>span{width:46px;height:26px;border-radius:999px;background:#D7DBE0;position:relative;transition:background .18s ease;box-shadow:inset 0 0 0 1px rgba(16,24,40,.05)}
.switch-control>span::after{content:"";position:absolute;width:20px;height:20px;left:3px;top:3px;border-radius:50%;background:#fff;transition:transform .18s ease;box-shadow:0 1px 3px rgba(16,24,40,.22)}
.switch-control input:checked+span{background:var(--primary)}
.switch-control input:checked+span::after{transform:translateX(20px)}
.switch-control input:focus-visible+span{outline:3px solid rgba(227,27,35,.18);outline-offset:2px}
.pwa-settings-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-top:18px}
.settings-help{margin:12px 0 0;color:var(--muted);font-size:11px;line-height:1.55}
@media(max-width:620px){.settings-toggle-row{align-items:flex-start;gap:16px}.pwa-settings-actions .btn{width:100%}}


/* Build 012 — Upload global */
input[type="file"].global-file-native{
    position:absolute!important;
    width:1px!important;
    height:1px!important;
    opacity:0!important;
    overflow:hidden!important;
    pointer-events:none!important;
}
.global-file-upload{
    display:flex;
    align-items:center;
    gap:12px;
    min-height:66px;
    padding:10px 12px;
    border:1px solid var(--border);
    border-radius:8px;
    background:#fff;
    transition:border-color .16s ease,box-shadow .16s ease,background .16s ease;
}
.global-file-upload:hover{border-color:#c9cfd7;background:#fcfcfd}
.global-file-upload.is-dragover{border-color:var(--primary);box-shadow:0 0 0 3px rgba(227,27,35,.08);background:#fffafa}
.global-file-trigger{
    flex:0 0 auto;
    border:1px solid var(--border-strong,#cfd4dc);
    background:#f8f9fb;
    color:var(--text);
    border-radius:7px;
    min-height:38px;
    padding:0 14px;
    font-family:inherit;
    font-size:12px;
    font-weight:700;
    cursor:pointer;
}
.global-file-trigger:hover{background:#f1f3f6}
.global-file-info{min-width:0;display:flex;flex-direction:column;gap:3px}
.global-file-info strong{font-size:12px;font-weight:700;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:560px}
.global-file-info small{font-size:11px;line-height:1.4;color:var(--muted)}
.global-file-upload.has-file{border-color:#bfc6cf}
.global-file-upload.has-file .global-file-info strong{color:#111827}
.global-file-meta{display:flex;flex-wrap:wrap;gap:6px 10px;margin-top:2px}
.global-file-meta span{font-size:10px;color:var(--muted);padding-right:10px;border-right:1px solid var(--border)}
.global-file-meta span:last-child{border-right:0;padding-right:0}
.update-upload-heading{display:flex;align-items:center;gap:10px;margin-bottom:12px}
.update-upload-heading>div{display:flex;flex-direction:column;gap:3px}
.update-upload-heading strong{font-size:13px}
.update-upload-heading small{font-size:11px;color:var(--muted)}
.compact-alert{margin-top:12px}
.update-form .global-file-upload{min-height:78px}
.update-form .global-file-info strong{font-size:13px}

/* Build 012 — olho fechado/aberto */
.password-toggle [data-password-icon]{display:inline-flex;align-items:center;justify-content:center}
.password-toggle [data-password-icon][hidden]{display:none!important}

/* Build 012 — PWA como card inferior */
.pwa-install-card{
    position:fixed;
    left:50%;
    bottom:max(18px,env(safe-area-inset-bottom));
    transform:translateX(-50%);
    width:min(720px,calc(100vw - 28px));
    z-index:1200;
    display:grid;
    grid-template-columns:auto 1fr auto auto;
    align-items:center;
    gap:12px;
    padding:12px 14px;
    border:1px solid var(--border);
    border-radius:12px;
    background:rgba(255,255,255,.98);
    box-shadow:0 14px 36px rgba(15,23,42,.16);
    backdrop-filter:blur(10px);
}
.pwa-install-card[hidden]{display:none!important}
.pwa-install-mark{
    width:42px;height:42px;border-radius:10px;
    display:grid;place-items:center;background:#f7f7f8;border:1px solid var(--border)
}
.pwa-install-mark img{width:28px;height:28px;object-fit:contain}
.pwa-install-copy{display:flex;flex-direction:column;gap:3px;min-width:0}
.pwa-install-copy strong{font-size:13px;color:var(--text)}
.pwa-install-copy span{font-size:11px;color:var(--muted);line-height:1.4}
.pwa-install-actions{display:flex;gap:8px;align-items:center}
.pwa-card-close{
    width:30px;height:30px;border:0;background:transparent;border-radius:7px;
    display:grid;place-items:center;color:var(--muted);cursor:pointer
}
.pwa-card-close:hover{background:#f3f4f6;color:var(--text)}
.btn-sm{min-height:34px;padding:0 12px;font-size:11px}

/* Menos poluição em cabeçalhos */
.page-heading-standard>div>p{
    font-size:11px;
    line-height:1.45;
    margin-top:5px;
    max-width:720px;
    color:var(--muted);
}
.page-heading-standard>div>p:empty{display:none}

@media(max-width:640px){
    .global-file-upload{align-items:flex-start;flex-direction:column}
    .global-file-trigger{width:100%}
    .global-file-info strong{max-width:calc(100vw - 70px)}
    .pwa-install-card{
        grid-template-columns:auto 1fr auto;
        gap:10px;
        padding:11px;
    }
    .pwa-install-actions{
        grid-column:1/-1;
        width:100%;
    }
    .pwa-install-actions .btn{flex:1}
    .pwa-card-close{grid-column:3;grid-row:1}
}
