:root{
  --bg:#0b0d14;
  --panel:#11141e;
  --panel2:#141824;
  --input:#09172c;

  --border:rgba(255,255,255,.09);

  --text:#f8fafc;
  --muted:#8fa3bf;
  --muted2:#607693;

  --gold:#67e8f9;

  --instagram:#f472b6;
  --facebook:#60a5fa;

  --positive:#43d6a3;
  --danger:#ff7b8a;
  --warning:#f59e0b;
}


*{
  box-sizing:border-box;
}


html,
body{
  min-height:100%;
}


body{
  margin:0;

  font-family:
    "Plus Jakarta Sans",
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  color:var(--text);

  background:
    radial-gradient(
      circle at 10% 0%,
      rgba(81,126,255,.13),
      transparent 28%
    ),
    var(--bg);
}


body.modal-open{
  overflow:hidden;
}


.hidden{
  display:none !important;
}


button,
input{
  font:inherit;
}


button{
  cursor:pointer;
}


button:disabled{
  cursor:not-allowed;
  opacity:.46;
}


.logo-fallback,
.brand-mark{
  display:flex;
  align-items:center;
  justify-content:center;

  color:#0b0d14;

  font-weight:900;

  background:var(--gold);
}


.logo-fallback{
  width:72px;
  height:72px;

  border-radius:22px;

  font-size:23px;
}


.login-kicker,
.brand-kicker,
.kicker{
  color:var(--gold);

  font-size:9px;
  font-weight:900;
  letter-spacing:.16em;
}


.login-subtitle{
  margin:5px 0 27px;

  color:var(--muted);
}


.remember{
  display:flex;
  align-items:center;

  gap:8px;

  margin-top:15px;

  text-align:left;
}


.remember span{
  margin:0 !important;

  font-size:11px !important;
}


#login-button{
  width:100%;
  height:46px;

  margin-top:21px;

  border:0;
  border-radius:12px;

  color:#0b0d14;

  font-weight:900;

  background:var(--gold);
}


.login-footer{
  margin-top:20px;

  color:var(--muted2);

  font-size:10px;
}


/* ==========================================================
   HEADER
========================================================== */

.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;

  min-height:78px;

  padding:
    13px
    max(20px,calc((100vw - 1200px)/2));

  border-bottom:1px solid var(--border);

  background:
    rgba(11,13,20,.93);

  backdrop-filter:blur(17px);
}


.brand{
  display:flex;
  align-items:center;

  gap:12px;
}


.brand-mark{
  width:44px;
  height:44px;

  border-radius:14px;
}


.brand h1{
  margin:2px 0 0;

  font-size:19px;
}


/* ==========================================================
   LAYOUT
========================================================== */

.shell{
  width:min(1200px,100%);

  margin:auto;

  padding:24px;
}


.mode-banner{
  display:flex;
  align-items:center;
  justify-content:space-between;

  gap:18px;

  margin-bottom:18px;

  padding:14px 16px;

  border:
    1px solid rgba(67,214,163,.18);

  border-radius:14px;

  background:
    rgba(67,214,163,.055);
}


.mode-banner > div:first-child{
  display:flex;
  align-items:center;

  gap:14px;
}


.mode-banner strong{
  color:var(--positive);

  font-size:12px;
}


.mode-banner span{
  color:var(--muted);

  font-size:11px;
}


.dirty-status{
  min-width:115px;

  padding:7px 10px;

  border-radius:999px;

  text-align:center;

  font-size:9px;
  font-weight:850;
}


.dirty-status.clean{
  color:#b8cadf;

  background:
    rgba(255,255,255,.055);
}


.dirty-status.dirty{
  color:#ffe9b9;

  background:
    rgba(245,158,11,.13);
}


.panel{
  padding:22px;

  border:1px solid var(--border);
  border-radius:20px;

  background:var(--panel);

  box-shadow:
    0 20px 55px rgba(0,0,0,.22);
}


.panel + .panel{
  margin-top:18px;
}


.panel-title h2,
.audit-header h2{
  margin:4px 0 0;

  font-size:20px;
}


/* ==========================================================
   DATA
========================================================== */

.date-row{
  display:flex;
  align-items:flex-end;

  gap:8px;

  margin-top:22px;
}


.date-row label{
  flex:0 0 220px;
}


.date-row label span{
  display:block;

  margin-bottom:6px;

  color:var(--muted);

  font-size:10px;
}


.date-row input{
  width:100%;
  height:42px;

  padding:0 11px;

  border:1px solid var(--border);
  border-radius:11px;

  outline:none;

  color:#fff;
  background:var(--input);
}


.nav-date{
  width:42px;
  height:42px;

  padding:0;

  border:1px solid var(--border);
  border-radius:11px;

  color:#fff;

  font-size:25px;

  background:
    rgba(255,255,255,.035);
}


.load-button{
  height:42px;

  padding:0 18px;

  border:0;
  border-radius:11px;

  color:#0b0d14;

  font-weight:850;

  background:var(--gold);
}


/* ==========================================================
   MENSAGENS
========================================================== */

.message{
  margin-top:17px;

  padding:12px 14px;

  border-radius:11px;

  font-size:11px;
}


.message.error{
  color:#ffd9dd;

  border:
    1px solid rgba(255,123,138,.22);

  background:
    rgba(255,123,138,.08);
}


.message.ok{
  color:#c9f8e7;

  border:
    1px solid rgba(67,214,163,.20);

  background:
    rgba(67,214,163,.07);
}


.message.warning{
  color:#ffe9b9;

  border:
    1px solid rgba(245,158,11,.22);

  background:
    rgba(245,158,11,.075);
}


/* ==========================================================
   EDITORIAL
========================================================== */

.editorial{
  display:grid;

  grid-template-columns:
    2fr 1fr 1fr 2fr;

  gap:10px;

  margin-top:22px;
}


.editorial > div{
  padding:13px;

  border:1px solid var(--border);
  border-radius:13px;

  background:
    rgba(255,255,255,.018);
}


.editorial span{
  display:block;

  margin-bottom:5px;

  color:var(--muted);

  font-size:9px;
}


.editorial strong{
  display:block;

  font-size:11px;
  line-height:1.4;
}


/* ==========================================================
   PLATAFORMAS
========================================================== */

.platform-grid{
  display:grid;

  grid-template-columns:
    repeat(2,1fr);

  gap:14px;

  margin-top:14px;
}


.platform{
  padding:18px;

  border:1px solid var(--border);
  border-radius:17px;

  background:
    rgba(255,255,255,.015);
}


.platform.instagram{
  border-color:
    rgba(244,114,182,.20);
}


.platform.facebook{
  border-color:
    rgba(96,165,250,.20);
}


.platform-head{
  display:flex;
  align-items:center;
  justify-content:space-between;

  gap:10px;

  margin-bottom:15px;
}


.platform-head small{
  display:block;

  margin-top:7px;

  color:var(--muted2);

  font-size:9px;
}


.platform-total{
  text-align:right;
}


.platform-total span{
  display:block;

  color:var(--muted2);

  font-size:8px;
  font-weight:850;
}


.platform-total strong{
  display:block;

  margin-top:3px;

  font-size:23px;
}


.pill{
  display:inline-flex;
  align-items:center;

  min-height:27px;

  padding:0 10px;

  border-radius:999px;

  font-size:10px;
  font-weight:850;
}


.pill.instagram{
  color:#ffd5f6;

  background:
    rgba(244,114,182,.13);
}


.pill.facebook{
  color:#d8eaff;

  background:
    rgba(96,165,250,.13);
}


/* ==========================================================
   CAMPOS S1-S5
========================================================== */

.story-fields{
  display:grid;

  grid-template-columns:
    repeat(5,1fr);

  gap:7px;
}


.story-input-wrap{
  min-width:0;
}


.story-input-wrap label{
  display:block;

  margin-bottom:6px;

  text-align:center;

  color:var(--muted);

  font-size:9px;
  font-weight:850;
}


.story-input-wrap input{
  width:100%;
  height:48px;

  padding:0 5px;

  border:1px solid var(--border);
  border-radius:11px;

  outline:none;

  text-align:center;

  color:#fff;

  font-size:15px;
  font-weight:850;

  background:var(--input);
}


.story-input-wrap input:focus{
  border-color:
    rgba(34,211,238,.55);
}


.story-input-wrap input.changed{
  border-color:
    rgba(245,158,11,.55);

  background:
    rgba(245,158,11,.07);
}


/*
  Segurança visual adicional:
  mesmo que no futuro algum campo volte a ser type=number,
  nunca mostramos os botões +/- do browser.
*/

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button{
  -webkit-appearance:none;

  margin:0;
}


input[type="number"]{
  -moz-appearance:textfield;
  appearance:textfield;
}


.story-input-wrap.extra label::after{
  content:" extra";

  color:var(--muted2);

  font-weight:500;
}


.story-input-wrap.extra input{
  border-style:dashed;
}


/* ==========================================================
   ESTADO / ACÇÕES
========================================================== */

.record-info{
  display:grid;

  grid-template-columns:
    repeat(3,1fr);

  gap:9px;

  margin-top:15px;
}


.record-info > div{
  padding:12px;

  border-top:
    1px solid var(--border);
}


.record-info span{
  display:block;

  color:var(--muted2);

  font-size:9px;
}


.record-info strong{
  display:block;

  margin-top:4px;

  font-size:12px;
}


.actions{
  display:flex;
  align-items:center;
  justify-content:space-between;

  gap:12px;

  margin-top:17px;
}


.actions-right{
  display:flex;

  gap:9px;
}


.actions button,
.audit-refresh,
.modal-actions button{
  height:43px;

  padding:0 17px;

  border-radius:11px;

  font-size:11px;
  font-weight:850;
}


.secondary-button{
  border:1px solid var(--border);

  color:#fff;

  background:
    rgba(255,255,255,.035);
}


.save-button{
  border:0;

  color:#0b0d14;

  background:var(--gold);
}


.danger-button{
  border:
    1px solid rgba(255,123,138,.32);

  color:#ffb5be;

  background:
    rgba(255,123,138,.055);
}


.danger-button:not(:disabled):hover{
  background:
    rgba(255,123,138,.12);
}


.safety-note{
  margin-top:12px;

  text-align:right;

  color:var(--muted2);

  font-size:9px;
}


/* ==========================================================
   AUDITORIA
========================================================== */

.audit-panel{
  overflow:hidden;
}


.audit-header{
  display:flex;
  align-items:center;
  justify-content:space-between;

  gap:15px;
}


.audit-head-actions{
  display:flex;
  align-items:center;

  gap:9px;
}


.audit-count{
  display:inline-flex;
  align-items:center;

  min-height:29px;

  padding:0 10px;

  border-radius:999px;

  color:#c6d5e8;

  font-size:9px;
  font-weight:800;

  background:
    rgba(255,255,255,.055);
}


.audit-refresh{
  height:34px;

  padding:0 11px;

  font-size:9px;
}


.audit-empty{
  margin-top:20px;

  padding:24px;

  border:
    1px dashed rgba(255,255,255,.10);

  border-radius:13px;

  text-align:center;

  color:var(--muted);

  font-size:11px;
}


.audit-table-wrap{
  margin-top:18px;

  overflow:auto;

  border:
    1px solid var(--border);

  border-radius:13px;
}


.audit-table{
  width:100%;

  min-width:780px;

  border-collapse:collapse;
}


.audit-table th,
.audit-table td{
  padding:11px 12px;

  border-bottom:
    1px solid rgba(255,255,255,.055);

  text-align:left;

  font-size:10px;
}


.audit-table th{
  color:var(--muted);

  font-size:8px;
  font-weight:850;

  text-transform:uppercase;

  letter-spacing:.06em;

  background:
    rgba(255,255,255,.025);
}


.audit-table tr:last-child td{
  border-bottom:0;
}


.audit-action{
  display:inline-flex;
  align-items:center;

  min-height:23px;

  padding:0 8px;

  border-radius:999px;

  font-size:8px;
  font-weight:900;
}


.audit-action.create{
  color:#baf8e1;

  background:
    rgba(67,214,163,.11);
}


.audit-action.update{
  color:#ffe8b1;

  background:
    rgba(245,158,11,.11);
}


.audit-action.delete{
  color:#ffc0c7;

  background:
    rgba(255,123,138,.11);
}


.audit-action.other{
  color:#cfdaea;

  background:
    rgba(255,255,255,.065);
}


.audit-platform{
  font-weight:750;
}


.audit-change{
  white-space:nowrap;
}


.audit-old{
  color:var(--muted);
}


.audit-arrow{
  padding:0 5px;

  color:var(--muted2);
}


.audit-new{
  color:#fff;

  font-weight:800;
}


/* ==========================================================
   MODAL DELETE
========================================================== */

.modal{
  position:fixed;

  inset:0;

  z-index:9999;

  display:flex;
  align-items:center;
  justify-content:center;

  padding:20px;
}


.modal-backdrop{
  position:absolute;

  inset:0;

  background:
    rgba(1,8,20,.80);

  backdrop-filter:
    blur(7px);
}


.modal-card{
  position:relative;

  z-index:2;

  width:min(470px,100%);

  padding:30px;

  border:
    1px solid rgba(255,123,138,.20);

  border-radius:20px;

  background:var(--panel);

  box-shadow:
    0 30px 100px rgba(0,0,0,.45);
}


.modal-danger-icon{
  display:flex;
  align-items:center;
  justify-content:center;

  width:46px;
  height:46px;

  margin-bottom:17px;

  border-radius:50%;

  color:#fff;

  font-size:21px;
  font-weight:900;

  background:var(--danger);
}


.modal-card h2{
  margin:0;

  font-size:21px;
}


.modal-card p{
  margin:12px 0 0;

  color:#ced9e7;

  font-size:12px;
  line-height:1.55;
}


.modal-card .modal-secondary{
  color:var(--muted);

  font-size:10px;
}


.delete-confirmation-box{
  margin-top:20px;

  padding:13px;

  border:
    1px solid var(--border);

  border-radius:11px;

  background:var(--input);
}


.delete-confirmation-box span{
  display:block;

  color:var(--muted);

  font-size:9px;
}


.delete-confirmation-box strong{
  display:block;

  margin-top:6px;

  color:#fff;

  font-size:12px;
}


.delete-confirmation-input{
  width:100%;
  height:43px;

  margin-top:10px;

  padding:0 12px;

  border:
    1px solid rgba(255,123,138,.28);

  border-radius:11px;

  outline:none;

  color:#fff;

  background:var(--input);
}


.delete-confirmation-input:focus{
  border-color:var(--danger);
}


.modal-actions{
  display:flex;
  justify-content:flex-end;

  gap:9px;

  margin-top:20px;
}


.danger-solid-button{
  border:0;

  color:#fff;

  background:var(--danger);
}


/* ==========================================================
   FOOTER
========================================================== */

.footer-actions{
  margin-top:17px;
}


.footer-actions a{
  color:var(--muted);

  font-size:11px;

  text-decoration:none;
}


/* ==========================================================
   RESPONSIVE
========================================================== */

@media(max-width:800px){

  .shell{
    padding:15px;
  }

  .mode-banner{
    align-items:flex-start;
  }

  .mode-banner > div:first-child{
    flex-direction:column;
    align-items:flex-start;

    gap:4px;
  }

  .editorial{
    grid-template-columns:
      repeat(2,1fr);
  }

  .platform-grid{
    grid-template-columns:1fr;
  }

  .actions{
    align-items:stretch;

    flex-direction:column;
  }

  .actions-right{
    justify-content:flex-end;
  }

}


@media(max-width:520px){

  .topbar{
    padding:11px 13px;
  }

  .brand h1{
    font-size:16px;
  }

  .date-row{
    display:grid;

    grid-template-columns:
      42px 1fr 42px;
  }

  .date-row label{
    flex:auto;
  }

  .load-button{
    grid-column:1 / -1;
  }

  .editorial{
    grid-template-columns:1fr;
  }

  .story-fields{
    grid-template-columns:
      repeat(5,minmax(0,1fr));
  }

  .story-input-wrap input{
    height:45px;

    padding:0 2px;

    font-size:13px;
  }

  .record-info{
    grid-template-columns:1fr;
  }

  .actions-right{
    flex-direction:column-reverse;
  }

  .actions button{
    width:100%;
  }

  .safety-note{
    text-align:left;
  }

  .audit-header{
    align-items:flex-start;

    flex-direction:column;
  }

  .audit-head-actions{
    width:100%;

    justify-content:space-between;
  }

  .modal-actions{
    flex-direction:column-reverse;
  }

  .modal-actions button{
    width:100%;
  }

}


/* ==========================================================
   FOLLOWERS V1
========================================================== */

.followers-panel{
  position:relative;
}


.followers-title{
  display:flex;
  align-items:center;
  justify-content:space-between;

  gap:14px;
}


.followers-refresh{
  min-height:38px;
}


.followers-date-row{
  display:flex;
  align-items:flex-end;

  gap:14px;

  margin-top:22px;
}


.followers-date-row label{
  width:220px;
}


.followers-date-row label > span,
.followers-input-label > span{
  display:block;

  margin-bottom:6px;

  color:var(--muted);

  font-size:10px;
}


.followers-date-row input,
.followers-input-label input{
  width:100%;
  height:44px;

  padding:0 12px;

  border:1px solid var(--border);
  border-radius:11px;

  outline:none;

  color:#fff;

  background:var(--input);
}


.followers-date-row input:focus,
.followers-input-label input:focus{
  border-color:
    rgba(34,211,238,.55);
}


.followers-date-help{
  padding-bottom:11px;

  color:var(--muted2);

  font-size:10px;
}


.followers-grid{
  display:grid;

  grid-template-columns:
    repeat(2,minmax(0,1fr));

  gap:14px;

  margin-top:18px;
}


.followers-card{
  padding:20px;

  border:1px solid var(--border);
  border-radius:17px;

  background:
    rgba(255,255,255,.015);
}


.followers-card.instagram{
  border-color:
    rgba(244,114,182,.22);
}


.followers-card.facebook{
  border-color:
    rgba(96,165,250,.22);
}


.followers-card-head{
  display:flex;
  align-items:center;
  justify-content:space-between;

  gap:12px;
}


.followers-latest-date{
  color:var(--muted2);

  font-size:10px;
}


.followers-current{
  margin-top:23px;
}


.followers-current span,
.followers-variation span{
  display:block;

  color:var(--muted);

  font-size:10px;
}


.followers-current strong{
  display:block;

  margin-top:5px;

  font-size:30px;
  line-height:1;
}


.followers-input-label{
  display:block;

  margin-top:21px;
}


.followers-variation{
  display:flex;
  align-items:center;
  justify-content:space-between;

  gap:12px;

  margin-top:13px;
}


.followers-variation strong{
  font-size:12px;
}


.followers-positive{
  color:var(--positive);
}


.followers-negative{
  color:var(--danger);
}


.followers-neutral{
  color:var(--muted);
}


.followers-warning{
  color:var(--warning);
}


.followers-actions{
  display:flex;
  align-items:center;
  justify-content:space-between;

  gap:20px;

  margin-top:20px;

  padding-top:17px;

  border-top:
    1px solid rgba(255,255,255,.06);
}


.followers-help{
  color:var(--muted2);

  font-size:10px;
  line-height:1.6;
}


.followers-history{
  margin-top:25px;
  padding-top:20px;

  border-top:
    1px solid rgba(255,255,255,.06);
}


.followers-history-head h3{
  margin:4px 0 0;

  font-size:16px;
}


.followers-history-list{
  display:flex;
  flex-direction:column;

  gap:7px;

  margin-top:13px;
}


.followers-history-row{
  display:grid;

  grid-template-columns:
    145px 90px 120px 1fr;

  gap:12px;

  align-items:center;

  padding:10px 12px;

  border:1px solid rgba(255,255,255,.055);
  border-radius:10px;

  background:
    rgba(255,255,255,.015);

  font-size:10px;
}


.followers-history-platform{
  font-weight:850;
}


.followers-history-change{
  font-weight:750;
}


.followers-history-meta{
  color:var(--muted2);
}


.followers-history-empty{
  padding:15px;

  border:
    1px dashed rgba(255,255,255,.08);

  border-radius:10px;

  color:var(--muted2);

  text-align:center;

  font-size:10px;
}


@media(max-width:760px){

  .followers-grid{
    grid-template-columns:1fr;
  }


  .followers-date-row{
    align-items:stretch;
    flex-direction:column;
  }


  .followers-date-row label{
    width:100%;
  }


  .followers-date-help{
    padding-bottom:0;
  }


  .followers-actions{
    align-items:stretch;
    flex-direction:column;
  }


  .followers-actions .save-button{
    width:100%;
  }


  .followers-history-row{
    grid-template-columns:1fr 1fr;
  }

}


/* ==========================================================
   FOLLOWERS UI V1.1
   Uniformização visual da Gestão
========================================================== */


/* ----------------------------------------------------------
   Botões do módulo Seguidores
---------------------------------------------------------- */

.followers-actions{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;

  gap:20px;
}


.followers-actions-buttons{
  display:flex;
  align-items:center;
  justify-content:flex-end;

  gap:10px;

  flex:0 0 auto;
}


#followers-refresh,
#followers-save{
  appearance:none;
  -webkit-appearance:none;

  height:42px;

  padding:0 18px;

  border-radius:11px;

  font-size:11px;
  font-weight:850;

  line-height:1;

  white-space:nowrap;
}


/* Mesmo conceito visual de Repor / Actualizar */

#followers-refresh{
  border:
    1px solid var(--border);

  color:var(--text);

  background:
    rgba(255,255,255,.035);
}


#followers-refresh:hover:not(:disabled){
  background:
    rgba(255,255,255,.07);
}


/* Mesmo conceito visual de Guardar métricas */

#followers-save{
  border:0;

  color:#0b0d14;

  background:var(--gold);
}


#followers-save:hover:not(:disabled){
  filter:brightness(1.04);
}


/* ----------------------------------------------------------
   Cabeçalho Seguidores
---------------------------------------------------------- */

.followers-title{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;

  gap:14px;
}


/* ----------------------------------------------------------
   Separação entre módulos
---------------------------------------------------------- */

#audit-panel{
  margin-top:18px;
}


#followers-panel{
  margin-top:28px;
}


/* O histórico dos seguidores pertence ao próprio módulo */

.followers-history{
  margin-top:24px;
}


/* ----------------------------------------------------------
   Mobile
---------------------------------------------------------- */

@media(max-width:760px){

  .followers-actions{
    align-items:stretch;
    flex-direction:column;
  }


  .followers-actions-buttons{
    width:100%;

    display:grid;

    grid-template-columns:
      1fr 1fr;
  }


  #followers-refresh,
  #followers-save{
    width:100%;
  }

}


@media(max-width:480px){

  .followers-actions-buttons{
    grid-template-columns:1fr;
  }

}


/* ==========================================================
   FOLLOWERS UI V1.2
   Alinhado com a área Visualizações
========================================================== */

.followers-panel{
  margin-top:28px;
}

.followers-title{
  margin-bottom:18px;
}

.followers-controls{
  display:flex;
  align-items:flex-end;
  gap:14px;
}

.followers-date-field{
  display:flex;
  flex-direction:column;
  gap:6px;
}

.followers-date-field > span{
  color:var(--muted);
  font-size:10px;
}

.followers-date-inline{
  display:flex;
  align-items:center;
  gap:8px;
}

.followers-date-nav{
  width:42px;
  height:42px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid var(--border);
  border-radius:12px;
  background:rgba(255,255,255,.03);
  color:#fff;
  font-size:24px;
  line-height:1;
  cursor:pointer;
}

.followers-date-nav:hover{
  background:rgba(255,255,255,.06);
}

#followers-date{
  width:220px;
  height:42px;
  padding:0 14px;
  border:1px solid var(--border);
  border-radius:12px;
  outline:none;
  color:#fff;
  background:var(--input);
}

#followers-date:focus{
  border-color:rgba(34,211,238,.55);
}

.followers-load-button{
  height:42px;
  padding:0 22px;
  border:0;
  border-radius:12px;
  background:var(--gold);
  color:#0b0d14;
  font-size:12px;
  font-weight:850;
  cursor:pointer;
}

.followers-load-button:hover{
  filter:brightness(1.04);
}

#followers-message{
  margin-top:14px;
}

.followers-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
  margin-top:18px;
}

.followers-card{
  padding:18px 18px 16px;
  border:1px solid var(--border);
  border-radius:18px;
  background:rgba(255,255,255,.015);
}

.followers-card.instagram{
  border-color:rgba(244,114,182,.22);
}

.followers-card.facebook{
  border-color:rgba(96,165,250,.22);
}

.followers-card-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.followers-latest-date{
  color:var(--muted2);
  font-size:10px;
}

.followers-current{
  margin-top:22px;
}

.followers-current span,
.followers-variation span,
.followers-input-label > span{
  display:block;
  color:var(--muted);
  font-size:10px;
}

.followers-current strong{
  display:block;
  margin-top:6px;
  font-size:32px;
  line-height:1;
}

.followers-input-label{
  display:block;
  margin-top:22px;
}

.followers-input-label input{
  width:100%;
  height:44px;
  margin-top:6px;
  padding:0 14px;
  border:1px solid var(--border);
  border-radius:12px;
  outline:none;
  color:#fff;
  background:var(--input);
}

.followers-input-label input:focus{
  border-color:rgba(34,211,238,.55);
}

.followers-variation{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-top:14px;
}

.followers-variation strong{
  font-size:12px;
}

.followers-positive{
  color:var(--positive);
}

.followers-negative{
  color:var(--danger);
}

.followers-neutral{
  color:var(--muted);
}

.followers-warning{
  color:var(--warning);
}

.followers-actions{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:20px;
  margin-top:20px;
  padding-top:18px;
  border-top:1px solid rgba(255,255,255,.06);
}

.followers-help{
  color:var(--muted2);
  font-size:10px;
  line-height:1.6;
}

.followers-history{
  margin-top:24px;
  padding-top:20px;
  border-top:1px solid rgba(255,255,255,.06);
}

.followers-history-head h3{
  margin:4px 0 0;
  font-size:16px;
}

.followers-history-list{
  display:flex;
  flex-direction:column;
  gap:8px;
  margin-top:14px;
}

.followers-history-row{
  display:grid;
  grid-template-columns:145px 90px 120px 1fr;
  gap:12px;
  align-items:center;
  padding:10px 12px;
  border:1px solid rgba(255,255,255,.055);
  border-radius:10px;
  background:rgba(255,255,255,.015);
  font-size:10px;
}

.followers-history-platform{
  font-weight:850;
}

.followers-history-change{
  font-weight:750;
}

.followers-history-meta{
  color:var(--muted2);
}

.followers-history-empty{
  padding:16px;
  border:1px dashed rgba(255,255,255,.08);
  border-radius:10px;
  color:var(--muted2);
  text-align:center;
  font-size:10px;
}

@media(max-width:760px){

  .followers-controls{
    flex-direction:column;
    align-items:stretch;
  }

  .followers-date-inline{
    width:100%;
  }

  #followers-date{
    width:100%;
    min-width:0;
    flex:1 1 auto;
  }

  .followers-load-button{
    width:100%;
  }

  .followers-grid{
    grid-template-columns:1fr;
  }

  .followers-actions{
    flex-direction:column;
    align-items:stretch;
  }

  .followers-actions .save-button{
    width:100%;
  }

  .followers-history-row{
    grid-template-columns:1fr 1fr;
  }

}


/* ==========================================================
   FOLLOWERS V1.3
========================================================== */

/* Data exactamente como nas Visualizações */

.followers-controls{
  display:flex;
  align-items:flex-end;

  gap:8px;

  margin-top:20px;
}


.followers-date-field{
  display:flex;
  flex-direction:column;

  gap:6px;

  width:220px;
}


.followers-date-field > span{
  padding-left:0;

  color:var(--muted);

  font-size:10px;
}


#followers-date{
  width:100%;
  height:42px;

  padding:0 12px;

  border:1px solid var(--border);
  border-radius:11px;

  color:#fff;

  background:var(--input);
}


.followers-date-nav{
  width:42px;
  height:42px;

  display:flex;
  align-items:center;
  justify-content:center;

  padding:0;

  border:1px solid var(--border);
  border-radius:11px;

  color:#fff;

  font-size:25px;

  background:
    rgba(255,255,255,.035);
}


.followers-load-button{
  height:42px;

  padding:0 18px;

  border:0;
  border-radius:11px;

  color:#0b0d14;

  font-weight:850;

  background:var(--gold);
}


/* ----------------------------------------------------------
   Mensagem de carregamento igual à das Visualizações
---------------------------------------------------------- */

#followers-message.message{
  display:block;

  width:100%;

  margin-top:17px;

  padding:12px 14px;

  border-radius:11px;

  font-size:11px;
}


#followers-message.message.success{
  border:
    1px solid rgba(67,214,163,.30);

  color:#c8f8e8;

  background:
    rgba(67,214,163,.10);
}


#followers-message.message.error{
  border:
    1px solid rgba(255,123,138,.30);

  color:#ffd5da;

  background:
    rgba(255,123,138,.10);
}


#followers-message.hidden{
  display:none !important;
}


/* Estado das setas nos extremos */

.followers-date-nav:disabled{
  opacity:.35;
  cursor:not-allowed;
}


/* Mobile */

@media(max-width:760px){

  .followers-controls{
    display:grid;

    grid-template-columns:
      42px minmax(0,1fr) 42px;

    align-items:end;
  }


  .followers-date-field{
    width:100%;
  }


  .followers-load-button{
    grid-column:1 / -1;

    width:100%;
  }

}


/* ============================================================
   B3B — BOTÃO STORY EXTRA AO LADO DE CARREGAR
============================================================ */

.date-row .add-manual-story-inline{
  align-self:flex-end;
  white-space:nowrap;
  min-height:42px;
  padding-left:16px;
  padding-right:16px;
}


/*
  Mantém hierarquia:
  Carregar = acção principal
  Adicionar Story = acção secundária
*/

.date-row .add-manual-story-inline:not(:disabled){
  cursor:pointer;
}


@media(max-width:760px){

  .date-row .add-manual-story-inline{
    width:auto;
    min-width:0;
    padding-left:13px;
    padding-right:13px;
  }

}


@media(max-width:520px){

  .date-row .add-manual-story-inline{
    font-size:0;
  }


  .date-row .add-manual-story-inline::after{
    content:"+ Adicionar";
    font-size:13px;
  }

}


body.auth-pending #app {
  visibility:hidden !important;
}


/*
  Não usamos display:none no body para evitar alterações
  de layout ou medições durante o arranque.
*/

body.auth-pending{
  overflow:hidden;
}


/* ============================================================
   FOTO MARIA HELENA
   ============================================================ */

.brand-mark.brand-mark-photo,
.login-brand-photo{
  overflow:hidden;
  padding:0 !important;

  background:none !important;

  border-radius:50% !important;

  color:transparent !important;

  flex:0 0 auto;
}


.brand-mark.brand-mark-photo img,
.login-brand-photo img{
  display:block;

  width:100%;
  height:100%;

  object-fit:cover;

  border-radius:inherit;
}


/*
  Header Gestão:
  mantém aproximadamente o mesmo peso visual
  da fotografia usada na Dashboard principal.
*/

.brand-mark.brand-mark-photo{
  width:46px;
  height:46px;
}


/*
  Login real, caso a sessão expire.
*/

.login-brand-photo{
  width:66px;
  height:66px;

  margin-left:auto;
  margin-right:auto;
}


/* ============================================================
   POLIMENTO DO HEADER
   ============================================================ */

header .brand{
  display:flex;
  align-items:center;
  gap:12px;
}


header .brand-kicker{
  margin-bottom:2px;
}


/* ============================================================
   MOBILE
   ============================================================ */

@media(max-width:700px){

  .brand-mark.brand-mark-photo{
    width:42px;
    height:42px;
  }


  .login-brand-photo{
    width:58px;
    height:58px;
  }

}


/* ============================================================
   GESTÃO — BOTÕES ESTILO "FILTROS"
============================================================ */

.filter-style-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;

  min-height:42px;

  padding:0 16px;

  border:
    1px solid rgba(34,211,238,.48) !important;

  border-radius:12px !important;

  background:
    rgba(255,255,255,.035) !important;

  color:#ffffff !important;

  font-weight:800 !important;

  line-height:1;

  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.015);

  transition:
    background .15s ease,
    border-color .15s ease,
    transform .15s ease;
}


.filter-style-button:hover{
  background:
    rgba(34,211,238,.08) !important;

  border-color:
    rgba(34,211,238,.75) !important;

  transform:
    translateY(-1px);
}


.filter-style-button:active{
  transform:
    translateY(0);
}


/*
  Mantém o botão de adicionar alinhado
  com Carregar na mesma linha.
*/

.date-row .filter-style-button{
  align-self:flex-end;
  white-space:nowrap;
}


/*
  Se o selector Excel for um LABEL,
  mantém o cursor de botão.
*/

label.filter-style-button{
  cursor:pointer;
}


/*
  Não alterar visualmente input file interno,
  caso exista dentro do label.
*/

.filter-style-button input[type="file"]{
  display:none;
}


/* MOBILE */

@media(max-width:700px){

  .filter-style-button{
    min-height:40px;
    padding-left:13px;
    padding-right:13px;
  }

}
