/* ===== HOME INICIAL · V1.2 ===== */
body.john-home-v1 #johnBoasVindasOverlay,
body.john-home-v1 #avisoNovidadeOverlay{display:none!important}

/* Na Home não existe menu contextual: usa somente o rail de 72px. */
@media(min-width:901px){
  body.john-home-active.system-pro-v3 .sidebar{
    width:72px!important;
    min-width:72px!important;
  }
  body.john-home-active.system-pro-v3 .sb-v228-context{
    display:none!important;
  }
}

.john-home-page{min-height:calc(100vh - 54px);background:var(--bg)}

/* Home alinhada à esquerda, logo depois do rail. */
.john-home-main{
  width:min(1080px,100%);
  margin:0;
  padding:38px 32px 64px;
}

.john-home-hero{max-width:700px;margin-bottom:28px}
.john-home-eyebrow{font-size:.61rem;font-weight:800;letter-spacing:1.35px;color:var(--ac);margin-bottom:10px}
.john-home-title{font-size:clamp(2rem,4vw,3rem);font-weight:760;letter-spacing:-1.35px;line-height:1.08;color:var(--tx);margin:0}
.john-home-subtitle{max-width:620px;margin-top:9px;color:var(--t2);font-size:.9rem;line-height:1.6;font-weight:450}

.john-home-notice{position:relative;display:flex;align-items:center;gap:15px;margin:0 0 30px;padding:17px 18px;border:1px solid rgba(103,61,230,.28);border-radius:14px;background:linear-gradient(135deg,rgba(103,61,230,.08),rgba(103,61,230,.025));box-shadow:0 1px 3px rgba(0,0,0,.14)}
.john-home-notice:before{content:'';position:absolute;left:-1px;top:12px;bottom:12px;width:3px;border-radius:0 3px 3px 0;background:var(--ac)}
.john-home-notice-icon{width:38px;height:38px;flex:0 0 38px;border-radius:10px;display:flex;align-items:center;justify-content:center;background:rgba(103,61,230,.12);color:var(--ac)}
.john-home-notice-icon svg{width:18px;height:18px}
.john-home-notice-copy{min-width:0;flex:1}
.john-home-notice-label{font-size:.56rem;font-weight:800;letter-spacing:1.05px;color:var(--ac);margin-bottom:3px}
.john-home-notice-title{font-size:.88rem;font-weight:720;color:var(--tx);line-height:1.35}
.john-home-notice-message{font-size:.76rem;color:var(--t2);line-height:1.5;margin-top:3px;white-space:pre-line}
body.john-home-v1 .john-home-notice-action{height:34px!important;min-height:34px!important;flex:0 0 auto;align-items:center;justify-content:center;padding:0 12px!important;border:1px solid rgba(103,61,230,.30)!important;border-radius:9px;background:rgba(103,61,230,.08)!important;color:var(--ac);font:700 .7rem 'Inter',sans-serif;cursor:pointer;transition:.16s ease}
body.john-home-v1 .john-home-notice-action:hover{background:rgba(103,61,230,.14)!important;border-color:rgba(103,61,230,.48)!important;transform:none}

.john-home-access{margin-top:2px;max-width:980px}
.john-home-section-head{display:flex;align-items:end;justify-content:space-between;gap:16px;margin-bottom:14px}
.john-home-section-title{font-size:.92rem;font-weight:720;color:var(--tx);letter-spacing:-.15px}
.john-home-section-sub{font-size:.7rem;color:var(--t3);margin-top:4px}

.john-home-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}

/*
 * O painel possui uma regra global muito específica que força botões a 32px.
 * O ID do container garante prioridade somente para os atalhos da Home.
 */
body.john-home-v1 #johnHomeCards > button.john-home-card{
  min-width:0!important;
  width:100%!important;
  min-height:104px!important;
  height:auto!important;
  position:relative!important;
  display:flex!important;
  align-items:center!important;
  gap:14px!important;
  padding:16px 44px 16px 16px!important;
  border:1px solid var(--bd)!important;
  border-radius:12px!important;
  background:var(--sf)!important;
  color:var(--tx)!important;
  font-family:'Inter',sans-serif!important;
  text-align:left!important;
  cursor:pointer!important;
  box-shadow:none!important;
  overflow:hidden!important;
  transition:border-color .15s ease,background .15s ease,box-shadow .15s ease!important;
}

/* Hover/seleção neutros — sem laranja nos atalhos. */
body.john-home-v1 #johnHomeCards > button.john-home-card:hover,
body.john-home-v1 #johnHomeCards > button.john-home-card:active{
  transform:none!important;
  border-color:rgba(226,232,240,.28)!important;
  background:rgba(226,232,240,.065)!important;
  box-shadow:0 4px 16px rgba(0,0,0,.12)!important;
}
body.john-home-v1 #johnHomeCards > button.john-home-card:focus-visible{
  outline:2px solid #9ca3af!important;
  outline-offset:2px!important;
}

.john-home-card-icon{
  width:38px;height:38px;flex:0 0 38px;border-radius:9px;
  display:flex;align-items:center;justify-content:center;
  background:var(--s2);border:1px solid var(--bd);color:var(--t2);transition:.15s ease;
}
body.john-home-v1 #johnHomeCards > button.john-home-card:hover .john-home-card-icon,
body.john-home-v1 #johnHomeCards > button.john-home-card:active .john-home-card-icon{
  color:#d1d5db;
  border-color:rgba(226,232,240,.20);
  background:rgba(226,232,240,.07);
}
.john-home-card-icon svg{width:18px;height:18px}
.john-home-card-copy{display:flex;min-width:0;flex:1;flex-direction:column;justify-content:center;padding:0}
.john-home-card-title{display:block;white-space:normal;overflow:visible;font-size:.84rem;font-weight:720;color:var(--tx);line-height:1.3}
.john-home-card-desc{display:block;white-space:normal;overflow:visible;max-width:340px;margin-top:6px;font-size:.7rem;line-height:1.45;color:var(--t3);font-weight:450}
.john-home-card-arrow{position:absolute;right:15px;top:50%;transform:translateY(-50%);width:18px;height:18px;display:flex;align-items:center;justify-content:center;color:var(--t3);opacity:.55;transition:.15s ease}
.john-home-card-arrow svg{width:14px;height:14px}
body.john-home-v1 #johnHomeCards > button.john-home-card:hover .john-home-card-arrow,
body.john-home-v1 #johnHomeCards > button.john-home-card:active .john-home-card-arrow{
  color:#d1d5db;
  opacity:1;
  transform:translateY(-50%) translateX(2px);
}
.john-home-empty{grid-column:1/-1;display:flex;flex-direction:column;gap:5px;padding:26px;border:1px dashed var(--bd);border-radius:13px;background:var(--sf);color:var(--t2);font-size:.75rem}
.john-home-empty strong{color:var(--tx);font-size:.82rem}

body[data-theme=light] .john-home-notice{box-shadow:0 1px 4px rgba(0,0,0,.04)}
body[data-theme=light].john-home-v1 #johnHomeCards > button.john-home-card:hover,
body[data-theme=light].john-home-v1 #johnHomeCards > button.john-home-card:active{
  border-color:#cfd3d8!important;
  background:#f1f2f4!important;
  box-shadow:0 4px 14px rgba(0,0,0,.06)!important;
}
body[data-theme=light].john-home-v1 #johnHomeCards > button.john-home-card:hover .john-home-card-icon,
body[data-theme=light].john-home-v1 #johnHomeCards > button.john-home-card:active .john-home-card-icon{
  color:#4b5563;
  border-color:#d4d7db;
  background:#e7e9ec;
}
body[data-theme=light].john-home-v1 #johnHomeCards > button.john-home-card:hover .john-home-card-arrow,
body[data-theme=light].john-home-v1 #johnHomeCards > button.john-home-card:active .john-home-card-arrow{color:#6b7280}

@media(max-width:900px){
  .john-home-main{width:100%;margin:0;padding:34px 22px 52px}
  .john-home-access{max-width:none}
}
@media(max-width:760px){
  .john-home-main{padding:30px 18px 46px}
  .john-home-hero{margin-bottom:24px}
  .john-home-subtitle{font-size:.82rem}
  .john-home-notice{align-items:flex-start;flex-wrap:wrap;padding:15px 15px 15px 17px}
  body.john-home-v1 .john-home-notice-action{margin-left:53px}
  .john-home-grid{grid-template-columns:1fr}
  body.john-home-v1 #johnHomeCards > button.john-home-card{
    min-height:96px!important;
    padding:15px 42px 15px 15px!important;
  }
}
@media(max-width:420px){
  .john-home-title{font-size:1.9rem}
  body.john-home-v1 .john-home-notice-action{width:100%!important;margin-left:0}
}
