/*
 * App do líder no padrão console: só restyle por cima de app.css/gan.css/
 * mobile.css, escopado no app autenticado (body.auth-app). Login, gates e
 * fluxos ficam intactos; nenhum id ou data-action muda.
 * Fontes: as mesmas self-hosted do console (/fonts, OFL).
 */
@font-face{font-family:"Outfit";src:url("/fonts/outfit-latin-wght-normal.woff2") format("woff2");font-weight:100 900;font-style:normal;font-display:swap}
@font-face{font-family:"Source Sans 3";src:url("/fonts/source-sans-3-latin-wght-normal.woff2") format("woff2");font-weight:200 900;font-style:normal;font-display:swap}
@font-face{font-family:"IBM Plex Mono";src:url("/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");font-weight:500;font-style:normal;font-display:swap}

body.auth-app{
  --ac-rail:#0d2818; --ac-rail-2:#14381f; --ac-rail-ink:#c9ddd0; --ac-rail-dim:#7fa08b;
  --ac-bg:#f3f6f4; --ac-surface:#fff; --ac-surface-2:#eef3f0; --ac-sel:#e6f1ea;
  --ac-line:rgba(20,80,44,.12); --ac-line-strong:rgba(20,80,44,.24);
  --ac-ink:#122018; --ac-muted:#536559; --ac-faint:#7d8e83;
  --ac-brand:#14502c; --ac-accent:#3d9a5c;
  --ac-ok:#2c7a47; --ac-ok-bg:#e5f2ea; --ac-warn:#a85f0a; --ac-warn-bg:#fbf0e1; --ac-crit:#b42318; --ac-crit-bg:#fcebe9;
  --ac-display:"Outfit",ui-sans-serif,system-ui,"Segoe UI",sans-serif;
  --ac-body:"Source Sans 3",ui-sans-serif,system-ui,"Segoe UI",sans-serif;
  --ac-data:"IBM Plex Mono",ui-monospace,Consolas,monospace;
  /* sem gradiente: botões, faixas e barras herdam a cor sólida da marca */
  --green-gradient:#14502c;
  --border:rgba(20,80,44,.16);
  --text:#122018;
  --muted:#536559;
  --bg:#f3f6f4;
  background:var(--ac-bg);
  color:var(--ac-ink);
  font-family:var(--ac-body);
}
body.auth-app :is(h1,h2,h3,h4,.gan-headline,.app-screen-title,.card-title,.painel-card-title,.wizard-question,.hub-day-title,.planos-fold-title){font-family:var(--ac-display);letter-spacing:-.01em}

/* cabeçalho: faixa verde-escura do console */
body.auth-app .app-header{
  background:var(--ac-rail);border-bottom:0;box-shadow:none;margin:0 0 14px;
  padding:calc(10px + var(--safe-top)) 16px 16px;backdrop-filter:none;-webkit-backdrop-filter:none;
}
body.auth-app .app-header-toolbar{background:none;border:0;box-shadow:none;padding:0;margin-bottom:12px;border-radius:0}
body.auth-app .app-brand-icon{background:var(--ac-rail-2);border:1px solid rgba(255,255,255,.1);box-shadow:none;border-radius:8px;width:32px;height:32px;padding:4px}
body.auth-app .app-brand-name{color:#fff;font-family:var(--ac-display);letter-spacing:0;text-transform:none;font-size:15px}
body.auth-app .app-org-brand{color:var(--ac-rail-dim)}
body.auth-app .app-header-user{background:none;border:0;box-shadow:none;padding:0}
body.auth-app .app-header-help,body.auth-app .app-header-inbox{width:38px;height:38px;border-radius:9px;border:1px solid rgba(255,255,255,.12);background:var(--ac-rail-2);color:var(--ac-rail-ink);box-shadow:none}
body.auth-app .app-header-avatar{width:38px;height:38px;border-radius:9px;background:#e6f1ea;color:#14502c;box-shadow:none;font-family:var(--ac-display);font-weight:700;cursor:pointer}
body.auth-app .app-header-exit{display:none}
body.auth-app .app-screen-title{color:#fff;font-size:20px;font-weight:600}
body.auth-app .app-screen-sub{color:var(--ac-rail-dim);max-width:none}

/* faixas "hero" viram cabeçalho de cartão claro */
body.auth-app :is(.gan-hero,.home-hero,.planos-hero,.gan-result-hero){
  background:var(--ac-surface);color:var(--ac-ink);padding:16px 16px 6px;
}
body.auth-app :is(.gan-hero,.home-hero,.planos-hero,.gan-result-hero)::before,
body.auth-app :is(.gan-hero,.home-hero,.planos-hero,.gan-result-hero)::after{display:none}
body.auth-app :is(.gan-hero,.home-hero,.planos-hero,.gan-result-hero) :is(h1,h2,h3,p,span,label,.gan-headline,.gan-lead,.home-headline,.home-lead,.result-summary,.painel-period-inline,.painel-period-label,.resultado-loading){color:inherit}
body.auth-app :is(.gan-hero,.home-hero,.planos-hero,.gan-result-hero) .gan-lead{color:var(--ac-muted);opacity:1}
body.auth-app :is(.gan-hero,.home-hero,.planos-hero,.gan-result-hero) .gan-kicker,
body.auth-app .gan-kicker{
  background:var(--ac-warn-bg);color:var(--ac-warn);text-transform:none;letter-spacing:.01em;
  font-size:12px;font-weight:700;border-radius:5px;padding:3px 8px;
}
body.auth-app .home-hero .gan-kicker{background:var(--ac-sel);color:var(--ac-brand)}
body.auth-app .gan-headline{font-size:22px;font-weight:700;color:var(--ac-ink)}
body.auth-app .gan-hero-compact .gan-headline{font-size:19px}

/* cartões: borda fina, sem sombra */
body.auth-app :is(.card,.gan-hub,.painel-card,.hub-day-card,.gan-section){
  border:1px solid var(--ac-line);border-radius:10px;box-shadow:none;background:var(--ac-surface);
}
body.auth-app .gan-section-flat{border:0}
body.auth-app .gan-notice{background:var(--ac-surface-2);border:0;color:var(--ac-muted);border-radius:9px}
body.auth-app .gan-notice strong{color:var(--ac-ink)}

/* botões */
body.auth-app .btn{border-radius:10px;font-family:var(--ac-body);font-weight:600;box-shadow:none;background:var(--ac-brand)}
body.auth-app .btn.secondary{background:var(--ac-surface);color:var(--ac-ink);border:1px solid var(--ac-line-strong)}
body.auth-app .btn.ghost{background:var(--ac-surface-2);color:var(--ac-brand)}
body.auth-app .btn-xl{border-radius:10px;font-size:16px}

/* campos */
body.auth-app :is(input,select,textarea){border-radius:9px;border:1px solid var(--ac-line-strong)}
body.auth-app label{font-weight:600;font-size:13.5px}

/* "Para fazer" (hub) */
body.auth-app .hub-day-card{padding:0;overflow:hidden}
body.auth-app .hub-day-title{
  margin:0;padding:14px 16px 10px;font-size:15.5px;font-weight:600;color:var(--ac-ink);
  letter-spacing:-.01em;text-transform:none;display:flex;justify-content:space-between;align-items:baseline;gap:10px
}
body.auth-app .hub-day-title small{font:400 12.5px var(--ac-body);color:var(--ac-faint)}
body.auth-app .hub-day-list{gap:0}
body.auth-app .hub-day-item{border:0;border-top:1px solid var(--ac-line);border-radius:0;background:none;padding:12px 16px;gap:8px 10px;flex-wrap:wrap}
body.auth-app .hub-day-item:first-child{border-top:0}
body.auth-app .hub-day-icon{display:none}
body.auth-app .hub-day-text{font-size:14.5px;line-height:1.35;min-width:0;flex:1 1 100%}
body.auth-app .hub-day-state{flex-shrink:0;font:700 12px var(--ac-body);padding:3px 8px;border-radius:5px;display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
body.auth-app .hub-day-state::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}
body.auth-app .hub-day-state.crit{color:var(--ac-crit);background:var(--ac-crit-bg)}
body.auth-app .hub-day-state.warn{color:var(--ac-warn);background:var(--ac-warn-bg)}
body.auth-app .hub-day-state.ok{color:var(--ac-ok);background:var(--ac-ok-bg)}
body.auth-app .hub-day-state.idle{color:var(--ac-muted);background:var(--ac-surface-2)}
body.auth-app .hub-day-link{min-height:36px;border-radius:8px!important}

/* barra da semana */
.app-week{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;margin:4px 0 2px;padding:3px 4px}
.app-week.has-weekend{grid-template-columns:repeat(6,minmax(0,1fr))}
.app-week div{display:flex;flex-direction:column;align-items:center;gap:4px;font:500 11px var(--ac-data,monospace);color:var(--ac-faint,#7d8e83)}
.app-week i{display:block;width:100%;height:6px;border-radius:3px;background:var(--ac-surface-2,#eef3f0)}
.app-week i.done{background:var(--ac-ok,#2c7a47)}
.app-week i.today{background:var(--ac-line-strong,rgba(20,80,44,.24));outline:2px solid var(--ac-accent,#3d9a5c);outline-offset:1px}
.app-week i.today.done{background:var(--ac-ok,#2c7a47)}
.app-week b{font-weight:600;color:var(--ac-ink,#122018)}

/* checklist */
body.auth-app .progress-fill{background:var(--ac-accent)}
body.auth-app .pillar-badge{background:var(--ac-sel);color:var(--ac-brand);border:0;border-radius:5px;text-transform:none;letter-spacing:0;font-family:var(--ac-display);font-weight:600}
body.auth-app .wizard-question{font-size:19px;font-weight:600;line-height:1.35}
body.auth-app :is(.option,.option-block){border-radius:10px;border:1px solid var(--ac-line-strong);background:var(--ac-surface);color:var(--ac-ink);box-shadow:none}
body.auth-app :is(.option,.option-block).selected{background:var(--ac-sel);border-color:var(--ac-brand);color:var(--ac-ink)}
body.auth-app .option-scale.selected .option-scale-num{border-color:var(--ac-brand);color:var(--ac-brand)}

/* rótulos em caixa-alta viram texto normal */
body.auth-app :is(.kpi-card small,.pdca-trail-item span,.preventive-index-kicker,.painel-card-sub){text-transform:none;letter-spacing:0}
body.auth-app .kpi-card{border:1px solid var(--ac-line);border-radius:10px;box-shadow:none;background:var(--ac-surface)}
body.auth-app .kpi-card strong{font-family:var(--ac-display);font-weight:600}
body.auth-app .pdca-trail-item{border:1px solid var(--ac-line);border-radius:10px;box-shadow:none}
body.auth-app .planos-fold-summary{border-radius:10px}

/* abas */
body.auth-app .mobile-nav{background:var(--ac-surface);border-top:1px solid var(--ac-line);box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none}
body.auth-app .mobile-tab{color:var(--ac-faint);font-weight:600;border-radius:8px}
body.auth-app .mobile-tab.active{background:none;color:var(--ac-brand)}
body.auth-app .mobile-tab small{font-size:12px}

/* perfil (folha inferior) */
.app-profile-sheet{border:0;padding:0;margin:auto 0 0;width:100%;max-width:100%;border-radius:18px 18px 0 0;background:#fff;color:#122018;max-height:85vh}
.app-profile-sheet::backdrop{background:rgba(7,17,11,.45)}
.app-profile-body{padding:18px 16px calc(20px + env(safe-area-inset-bottom,0px));display:flex;flex-direction:column;gap:14px;font-family:"Source Sans 3",system-ui,sans-serif}
.app-profile-head{display:flex;align-items:center;gap:12px}
.app-profile-head b{display:block;font:600 17px "Outfit",system-ui,sans-serif}
.app-profile-head small{color:#536559;font-size:13px}
.app-profile-av{width:44px;height:44px;border-radius:10px;background:#e6f1ea;color:#14502c;display:grid;place-items:center;font:700 15px "Outfit",system-ui,sans-serif;flex-shrink:0}
.app-profile-close{margin-left:auto}
.app-profile-section{border-top:1px solid rgba(20,80,44,.12);padding-top:14px;display:flex;flex-direction:column;gap:10px}
.app-profile-section h4{margin:0;font:600 15px "Outfit",system-ui,sans-serif}
.app-profile-err{color:#b42318;font-size:13px;margin:0;min-height:1em}
.app-profile-hint{color:#7d8e83;font-size:12.5px;margin:0}
/* Fold centralizado: hero claro no console, então seta escura e padding simétrico. */
body.auth-app .planos-fold-summary--center{padding:14px 16px;min-height:52px}
body.auth-app .planos-fold-summary--center::after{display:block;border-color:var(--ac-ink)}
/* Indicadores: espaçamento mais compacto; link do método estava branco sobre fundo claro. */
body.auth-app .painel-dashboard{gap:10px;padding-top:6px}
body.auth-app .painel-method-link{margin:4px 0 0}
body.auth-app .painel-method-link .login-install-link{color:var(--ac-brand);opacity:1}
