﻿:root {
  --bg: #F3F0EB;
  --card: #ffffff;
  --text: #2E3740;
  --muted: #66717C;
  --line: #E2DDD5;
  --brand: #3A444F;
  --graphite: #3A444F;
  --graphite-deep: #2B333C;
  --graphite-darker: #20262D;
  --gold: #E0AE77;
  --gold-dark: #C99556;
  --gold-soft: rgba(224, 174, 119, 0.16);
  --danger: #b42318;
  --ok: #067647;
  --shadow: 0 10px 28px rgba(32, 38, 45, 0.08);
  --radius: 18px;
  --radius-sm: 12px;
  --font: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --rail: 76px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--gold-dark); }

/* Login profissional ------------------------------------------------------- */
.auth-page {
  min-height: 100vh;
  margin: 0;
  background: #11161c;
}
.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
}
.auth-side {
  position: relative;
  overflow: hidden;
  color: #f3efe8;
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    linear-gradient(145deg, rgba(26,31,37,.92), rgba(43,51,60,.88)),
    radial-gradient(circle at 20% 20%, rgba(224,174,119,.28), transparent 42%),
    radial-gradient(circle at 80% 80%, rgba(224,174,119,.12), transparent 40%),
    linear-gradient(160deg, #1a1f25, #3a444f);
}
.auth-side__glow {
  position: absolute; inset: auto -20% -30% auto;
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(224,174,119,.22), transparent 68%);
  pointer-events: none;
}
.auth-side__inner { position: relative; z-index: 1; max-width: 460px; }
.auth-side__logo {
  width: 190px; height: auto; display: block; margin-bottom: 42px;
  filter: drop-shadow(0 10px 24px rgba(0,0,0,.25));
}
.auth-side__eyebrow {
  margin: 0 0 14px;
  font-size: 0.75rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--gold);
}
.auth-side__title {
  margin: 0 0 16px;
  font-size: clamp(1.7rem, 2.4vw, 2.25rem);
  line-height: 1.2; font-weight: 650; letter-spacing: -0.02em;
  color: #fff;
}
.auth-side__text {
  margin: 0 0 28px;
  color: rgba(243,239,232,.78);
  font-size: 1.02rem; line-height: 1.7;
}
.auth-side__list {
  list-style: none; margin: 0; padding: 0; display: grid; gap: 12px;
}
.auth-side__list li {
  position: relative;
  padding-left: 28px;
  color: rgba(243,239,232,.9);
  font-size: 0.95rem;
}
.auth-side__list li::before {
  content: "";
  position: absolute; left: 0; top: 0.45em;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(224,174,119,.18);
}
.auth-side__copy {
  position: relative; z-index: 1;
  margin: 40px 0 0;
  color: rgba(243,239,232,.45);
  font-size: 0.82rem;
}

.auth-main {
  display: grid;
  place-items: center;
  padding: 40px 28px;
  background:
    radial-gradient(circle at 100% 0%, rgba(224,174,119,.08), transparent 35%),
    #f5f2ed;
}
.auth-panel {
  width: min(420px, 100%);
  background: #fff;
  border: 1px solid rgba(58,68,79,.08);
  border-radius: 18px;
  padding: 36px 34px 30px;
  box-shadow: 0 18px 50px rgba(26,31,37,.08);
}
.auth-panel__mobile-brand {
  display: none;
  justify-content: center;
  margin-bottom: 22px;
}
.auth-panel__mobile-brand img { width: 140px; height: auto; }
.auth-panel__head { margin-bottom: 26px; }
.auth-panel__badge {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(224,174,119,.16);
  color: #8a6230;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.auth-panel__head h1 {
  margin: 0 0 8px;
  font-size: 1.7rem;
  color: var(--brand);
  letter-spacing: -0.03em;
}
.auth-panel__head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.55;
}
.auth-form { display: grid; gap: 16px; }
.field { display: grid; gap: 8px; }
.field label {
  font-size: 0.84rem;
  font-weight: 650;
  color: var(--brand);
}
/* Remove icones antigos (caso o HTML em cache ainda tenha) */
.auth-form .field__icon,
.auth-form .field__control > span {
  display: none !important;
}
.auth-form .field input[type="text"],
.auth-form .field input[type="password"],
.auth-form .field__control input[type="text"],
.auth-form .field__control input[type="password"] {
  width: 100% !important;
  border: 1.5px solid #dde3ea !important;
  border-radius: 12px !important;
  padding: 14px 16px !important;
  font: inherit;
  background: #fbfcfd;
  color: var(--text);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.auth-form .field input::placeholder { color: #9aa6b2; }
.auth-form .field input:focus {
  outline: none;
  border-color: var(--gold) !important;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(201,149,86,.15);
}
.btn-auth {
  margin-top: 6px;
  width: 100%;
  padding: 15px 18px;
  border-radius: 12px;
  background: linear-gradient(180deg, #45515d, #3a444f);
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 10px 22px rgba(58,68,79,.22);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.btn-auth:hover {
  background: linear-gradient(180deg, #505d6a, #2f3842);
  filter: none;
  transform: translateY(-1px);
}
.auth-panel__note {
  margin: 22px 0 0;
  text-align: center;
  color: #8a95a1;
  font-size: 0.82rem;
}

@media (max-width: 960px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .auth-panel__mobile-brand { display: flex; }
  .auth-main {
    min-height: 100vh;
    background:
      radial-gradient(ellipse 80% 40% at 50% 0%, rgba(224,174,119,.2), transparent 55%),
      linear-gradient(180deg, #1a1f25, #2b333c 40%, #f5f2ed 40%);
  }
  .auth-panel { box-shadow: 0 24px 60px rgba(0,0,0,.18); }
}


/* Painel interno — bento / marca Ana -------------------------------------- */
.admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  background: var(--bg);
}
.rail {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 10px;
  background: var(--graphite-darker);
  color: #fff;
  z-index: 20;
}
.rail__brand {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: rgba(224,174,119,.12);
  overflow: hidden;
  margin-bottom: 10px;
}
.rail__brand img {
  width: 38px; height: auto; display: block;
  filter: brightness(1.05);
}
.rail__nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  width: 100%;
}
.rail__nav a {
  display: grid;
  justify-items: center;
  gap: 3px;
  padding: 10px 6px;
  border-radius: 14px;
  color: rgba(255,255,255,.62);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: .02em;
  transition: background .15s, color .15s;
}
.rail__nav a svg { width: 20px; height: 20px; }
.rail__nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.rail__nav a.is-active {
  background: var(--gold);
  color: var(--graphite-darker);
}
.rail__nav a.rail__ext { margin-top: 4px; color: rgba(255,255,255,.42); }
.rail__nav a.rail__ext:hover { color: var(--gold); background: transparent; }
.rail__foot {
  display: grid;
  justify-items: center;
  gap: 8px;
  width: 100%;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.rail__avatar {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--gold-soft);
  color: var(--gold);
  font-weight: 700; font-size: 0.85rem;
}
.rail__logout {
  color: rgba(255,255,255,.5);
  font-size: 0.7rem; font-weight: 600;
}
.rail__logout:hover { color: #fff; }

.admin-frame {
  min-width: 0;
  padding: 22px 28px 40px;
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}
.topbar__eyebrow {
  margin: 0 0 4px;
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted);
}
.topbar h1 {
  margin: 0;
  font-size: clamp(1.45rem, 2vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--graphite-darker);
  line-height: 1.15;
}
.topbar__actions { display: flex; gap: 8px; flex-shrink: 0; }

.pill-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.pill-nav a {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--graphite);
  font-size: 0.86rem;
  font-weight: 600;
  transition: background .15s, color .15s, border-color .15s;
}
.pill-nav a:hover { border-color: var(--gold-dark); color: var(--graphite-darker); }
.pill-nav a.is-active {
  background: var(--graphite-darker);
  border-color: var(--graphite-darker);
  color: #fff;
}

.admin-main { min-width: 0; }

.dash-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 16px;
}
.dash-head h2 {
  margin: 0 0 4px;
  font-size: 1.35rem;
  font-weight: 750;
  color: var(--graphite-darker);
  letter-spacing: -0.02em;
}
.dash-head p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.bento {
  display: grid;
  grid-template-columns: 1.1fr 1.1fr 1.2fr 240px;
  grid-template-areas:
    "total pub feature side"
    "draft ga recent side";
  gap: 14px;
  align-items: stretch;
}
.bento-card {
  background: var(--card);
  border: 1px solid rgba(58,68,79,.06);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  min-width: 0;
}
.bento-card--metric { grid-area: total; }
.bento-card--accent {
  grid-area: pub;
  background: linear-gradient(145deg, #E0AE77, #C99556);
  border: 0;
  color: var(--graphite-darker);
}
.bento-card--feature {
  grid-area: feature;
  background: linear-gradient(145deg, #20262D, #3A444F);
  border: 0;
  color: #fff;
}
.bento-card--draft { grid-area: draft; }
.bento-card--ga { grid-area: ga; }
.bento-card--table {
  grid-area: recent;
  padding: 0;
  overflow: hidden;
}
.ga-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 10px;
  margin-top: 4px;
}
.ga-grid strong {
  display: block;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--graphite-darker);
  line-height: 1.1;
}
.ga-grid span {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
}
.bento-metric--sm { font-size: 1.4rem; }
.bento-card--ga code {
  font-size: 0.72rem;
  word-break: break-all;
}
.bento-side {
  grid-area: side;
  display: grid;
  gap: 10px;
  align-content: start;
}
.bento-card__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}
.bento-card--table .bento-card__top {
  padding: 16px 18px 0;
  margin-bottom: 4px;
}
.bento-card__top h3 {
  margin: 0 0 2px;
  font-size: 1rem;
  color: var(--graphite-darker);
}
.bento-card__label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
}
.bento-card--accent .bento-card__label,
.bento-card--feature .bento-card__label { color: rgba(32,38,45,.7); }
.bento-card--feature .bento-card__label { color: rgba(255,255,255,.55); }
.bento-metric {
  margin: 0 0 14px;
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--graphite-darker);
}
.bento-metric span {
  font-size: 1rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0;
}
.bento-card--accent .bento-metric { color: var(--graphite-darker); }
.bento-card--accent .bento-metric span { color: rgba(32,38,45,.55); }
.bento-card__hint { margin: 8px 0 0; color: var(--muted); font-size: 0.86rem; }
.bento-card--accent .bento-card__hint { color: rgba(32,38,45,.65); }

.pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}
.pill--muted { background: #F3F0EB; color: var(--graphite); }
.pill--light { background: rgba(255,255,255,.55); color: var(--graphite-darker); }
.pill--warn { background: #fff4e5; color: #9a5b12; }

.meter {
  display: flex;
  gap: 5px;
  align-items: end;
  height: 34px;
}
.meter span {
  flex: 1;
  height: 100%;
  border-radius: 999px;
  background: #E8E3DB;
}
.meter span.is-on { background: var(--graphite-darker); }

.progress {
  height: 8px;
  border-radius: 999px;
  background: rgba(32,38,45,.15);
  overflow: hidden;
}
.progress__bar {
  height: 100%;
  border-radius: inherit;
  background: var(--graphite-darker);
}

.bento-feature {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: end;
  height: 100%;
}
.bento-feature h3 {
  margin: 8px 0 6px;
  font-size: 1.15rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.bento-feature p {
  margin: 0 0 14px;
  color: rgba(255,255,255,.68);
  font-size: 0.88rem;
}
.bento-feature img {
  width: 84px; height: 84px;
  object-fit: cover;
  border-radius: 18px;
  border: 2px solid rgba(224,174,119,.45);
}

.quick-card {
  display: grid;
  gap: 4px;
  padding: 14px;
  border-radius: var(--radius-sm);
  background: #fff;
  border: 1px solid rgba(58,68,79,.06);
  box-shadow: var(--shadow);
  color: var(--text);
  transition: transform .15s, border-color .15s;
}
.quick-card:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
  color: var(--text);
}
.quick-card__ico {
  width: 28px; height: 28px;
  border-radius: 8px;
  display: grid; place-items: center;
  background: #F3F0EB;
  color: var(--graphite);
  font-size: 0.9rem;
  margin-bottom: 4px;
}
.quick-card strong { font-size: 0.92rem; color: var(--graphite-darker); }
.quick-card small { color: var(--muted); font-size: 0.78rem; line-height: 1.35; }
.quick-card--gold {
  background: linear-gradient(145deg, #E0AE77, #C99556);
  border: 0;
}
.quick-card--gold .quick-card__ico { background: rgba(32,38,45,.12); color: var(--graphite-darker); }
.quick-card--gold strong,
.quick-card--gold small { color: var(--graphite-darker); }
.quick-card--gold small { opacity: .75; }

.text-link {
  display: inline-block;
  margin-top: 12px;
  font-weight: 650;
  font-size: 0.88rem;
  color: var(--gold-dark);
}
.text-link:hover { color: var(--graphite-darker); }

.card {
  background: var(--card);
  border: 1px solid rgba(58,68,79,.06);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 20px;
}
.card--table { padding: 0; overflow: hidden; }
.card__head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
  padding: 16px 20px 8px;
}
.card__head--flush {
  padding: 0 0 12px;
  margin: 0 0 14px;
  border-bottom: 1px solid var(--line);
  min-height: 46px;
}
.card__head h2 { margin: 0 0 2px; font-size: 1rem; color: var(--graphite-darker); line-height: 1.3; }
.card__head .muted { margin: 0; font-size: 0.84rem; }

.flash {
  padding: 12px 14px; border-radius: 12px; margin-bottom: 16px; font-size: 0.95rem;
}
.flash-ok { background: #ecfdf3; color: var(--ok); border: 1px solid #abefc6; }
.flash-error { background: #fef3f2; color: var(--danger); border: 1px solid #fecdca; }

.form-grid { display: grid; gap: 12px; }
.form-grid.two { grid-template-columns: 1fr 1fr; gap: 12px; }
.field-label,
label {
  display: grid; gap: 5px;
  font-size: 0.84rem; font-weight: 600;
  color: var(--brand); margin: 0;
}
input[type="text"], input[type="email"], input[type="password"], input[type="date"], input[type="search"],
input[type="file"], select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  font-size: 0.92rem;
  background: #fff;
  color: var(--text);
  line-height: 1.4;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--gold-dark);
  box-shadow: 0 0 0 3px var(--gold-soft);
}
textarea { min-height: 90px; resize: vertical; }
.ta-sm { min-height: 72px !important; }
.ta-lg { min-height: 280px; }

.btn, button.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 999px; padding: 11px 16px;
  font: inherit; font-weight: 650; cursor: pointer;
  background: var(--graphite); color: #fff;
  text-decoration: none;
}
.btn:hover { filter: brightness(1.05); color: #fff; }
.btn-dark { background: var(--graphite-darker); color: #fff; }
.btn-dark:hover { color: #fff; }
.btn-secondary, .btn-ghost { background: #fff; color: var(--graphite); border: 1px solid var(--line); }
.btn-secondary:hover, .btn-ghost:hover { color: var(--graphite-darker); border-color: var(--gold-dark); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-gold { background: var(--gold); color: var(--graphite-darker); }
.btn-gold:hover { background: var(--gold-dark); color: var(--graphite-darker); }
.btn-sm { padding: 8px 12px; font-size: 0.86rem; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }

.table-wrap { overflow: auto; }
table, .data-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid #efebe5; vertical-align: middle; }
th {
  font-size: 0.7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
  background: #FAF8F5;
}
.data-table tbody tr:hover { background: #FBF9F6; }
.post-cell { display: flex; align-items: center; gap: 12px; min-width: 200px; }
.post-cell strong { display: block; color: var(--graphite-darker); font-size: 0.92rem; line-height: 1.35; }
.post-cell small { display: block; margin-top: 2px; }
.td-actions { text-align: right; white-space: nowrap; display: flex; justify-content: flex-end; gap: 6px; }
.link-action {
  display: inline-flex; padding: 6px 11px; border-radius: 999px;
  background: #F3F0EB; color: var(--graphite); font-weight: 650; font-size: 0.82rem;
}
.link-action:hover { background: var(--gold-soft); color: var(--gold-dark); }
.link-action--ghost { background: transparent; border: 1px solid var(--line); }
.link-action--danger {
  background: #fef3f2; color: var(--danger); border: 0; cursor: pointer; font: inherit;
}
.link-action--danger:hover { background: #fee4e2; color: var(--danger); }
.badge {
  display: inline-block; padding: 5px 10px; border-radius: 999px; font-size: 0.72rem; font-weight: 700;
}
.badge-published { background: #ecfdf3; color: var(--ok); }
.badge-draft { background: #fff4e5; color: #9a5b12; }
.tools {
  display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px;
  padding: 14px; background: #FAF8F5; border-radius: 12px;
}
.tools--inset { margin: 8px 18px 12px; }
.tools input, .tools select { min-width: 170px; }
.muted { color: var(--muted); font-size: 0.88rem; }
.thumb {
  width: 52px; height: 38px; object-fit: cover; border-radius: 8px;
  background: #E2DDD5; flex-shrink: 0;
}
.help { font-weight: 400; color: var(--muted); font-size: 0.8rem; }
.inline-form { display: inline; }

.post-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 14px;
  align-items: start;
}
.post-layout__main,
.post-layout__side { display: grid; gap: 14px; min-width: 0; }
.post-layout__side .card { position: sticky; top: 12px; }
.editor-wrap { display: grid; gap: 6px; }
.editor-fallback {
  margin: 0; padding: 10px 12px; border-radius: 10px;
  background: #fff7ed; color: #9a3412; font-size: 0.86rem;
}
.tox-tinymce { border-radius: 12px !important; border: 1px solid var(--line) !important; }
.tox .tox-toolbar__primary { background: #FAF8F5 !important; }
.cover-box { display: grid; gap: 8px; }
.cover-drop {
  position: relative; display: grid; place-items: center;
  min-height: 140px; border: 1.5px dashed #D4CFC6; border-radius: 12px;
  background: #FAF8F5; overflow: hidden; cursor: pointer;
}
.cover-drop:hover, .cover-drop.is-drag {
  border-color: var(--gold-dark); background: var(--gold-soft);
}
.cover-drop input[type="file"] {
  position: absolute; inset: 0; opacity: 0; cursor: pointer;
  width: 100%; height: 100%; padding: 0; border: 0; margin: 0;
}
.cover-drop__hint {
  text-align: center; padding: 14px 12px; color: var(--muted);
  font-size: 0.8rem; line-height: 1.4; pointer-events: none;
}
.cover-drop__hint strong { display: block; color: var(--graphite); margin-bottom: 3px; font-size: 0.86rem; }
.cover-drop__preview { display: none; width: 100%; height: 140px; object-fit: cover; }
.cover-drop.has-preview .cover-drop__hint { display: none; }
.cover-drop.has-preview .cover-drop__preview { display: block; }
.sticky-actions {
  display: grid; gap: 8px; margin-top: 4px;
  padding-top: 12px; border-top: 1px solid var(--line);
}
.sticky-actions .btn { width: 100%; border-radius: 12px; }

@media (max-width: 1200px) {
  .bento {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "total pub"
      "feature draft"
      "ga recent"
      "side side";
  }
  .bento-side { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 900px) {
  .admin-shell { grid-template-columns: 1fr; }
  .rail {
    position: sticky; top: 0; height: auto;
    flex-direction: row; flex-wrap: wrap;
    justify-content: center; padding: 10px;
  }
  .rail__nav { flex-direction: row; flex: none; width: auto; }
  .rail__nav a span { display: none; }
  .rail__foot { border: 0; padding: 0; display: flex; align-items: center; gap: 8px; width: auto; }
  .admin-frame { padding: 14px; }
  .topbar, .dash-head { flex-direction: column; align-items: flex-start; }
  .bento { grid-template-columns: 1fr; grid-template-areas: "total" "pub" "feature" "draft" "ga" "recent" "side"; }
  .bento-side { grid-template-columns: 1fr 1fr; }
  .post-layout { grid-template-columns: 1fr; }
  .post-layout__side .card { position: static; }
  .form-grid.two { grid-template-columns: 1fr; }
}

/* Estatísticas ------------------------------------------------------------- */
.stats-hero {
  display: flex; justify-content: space-between; align-items: end; gap: 16px;
  margin-bottom: 14px;
}
.stats-hero h2 {
  margin: 0 0 4px; font-size: 1.45rem; font-weight: 800;
  color: var(--graphite-darker); letter-spacing: -0.03em;
}
.stats-hero p { margin: 0; color: var(--muted); }
.stats-online {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
  font-size: 0.9rem; color: var(--graphite);
  box-shadow: var(--shadow);
}
.stats-online strong { color: var(--graphite-darker); font-size: 1.05rem; }
.stats-online__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #12b76a;
  box-shadow: 0 0 0 4px rgba(18,183,106,.18);
}
.period-nav {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 18px;
}
.period-nav a {
  display: inline-flex; padding: 8px 14px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
  color: var(--graphite); font-size: 0.86rem; font-weight: 650;
}
.period-nav a:hover { border-color: var(--gold-dark); }
.period-nav a.is-active {
  background: var(--graphite-darker); border-color: var(--graphite-darker); color: #fff;
}
.period-nav__refresh { margin-left: auto; color: var(--gold-dark) !important; }

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.kpi-card {
  background: #fff; border: 1px solid rgba(58,68,79,.06);
  border-radius: var(--radius); padding: 16px;
  box-shadow: var(--shadow);
  display: grid; gap: 6px;
}
.kpi-card__label {
  font-size: 0.72rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted);
}
.kpi-card__value {
  font-size: 1.8rem; font-weight: 800; letter-spacing: -0.03em;
  color: var(--graphite-darker); line-height: 1.1;
}
.kpi-card__hint { color: var(--muted); font-size: 0.84rem; }

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.stats-panel h3 {
  margin: 0 0 14px; font-size: 1rem; color: var(--graphite-darker);
}
.stats-panel--wide { grid-column: 1 / -1; }

.bar-list { display: grid; gap: 7px; }
.bar-list--hours { max-height: 420px; overflow: auto; padding-right: 4px; }
.bar-row {
  display: grid;
  grid-template-columns: 56px 1fr 36px;
  gap: 8px; align-items: center;
}
.bar-row__label { font-size: 0.78rem; color: var(--muted); font-weight: 600; }
.bar-row__track {
  height: 8px; border-radius: 999px; background: #EFEBE5; overflow: hidden;
}
.bar-row__track span {
  display: block; height: 100%; border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--gold-dark));
}
.bar-row__value {
  text-align: right; font-size: 0.8rem; font-weight: 700; color: var(--graphite);
}

.timeline {
  display: flex; gap: 6px; align-items: end;
  overflow-x: auto; min-height: 170px; padding-bottom: 4px;
}
.timeline__item {
  flex: 0 0 42px; display: grid; justify-items: center; gap: 4px;
}
.timeline__bar {
  width: 18px; border-radius: 999px 999px 4px 4px;
  background: linear-gradient(180deg, var(--graphite-darker), var(--gold));
  align-self: end;
}
.timeline__date { font-size: 0.62rem; color: var(--muted); }
.timeline__val { font-size: 0.72rem; font-weight: 700; color: var(--graphite); }

.rank-list { display: grid; gap: 10px; }
.rank-item { display: grid; gap: 2px; }
.rank-item strong {
  font-size: 0.92rem; color: var(--graphite-darker);
  word-break: break-word;
}
.rank-item span { font-size: 0.82rem; color: var(--muted); }
.rank-item--inline {
  grid-template-columns: 1fr auto; align-items: center;
}
.city-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.stats-footnote { margin: 16px 0 0; font-size: 0.8rem; }

@media (max-width: 1100px) {
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .stats-hero { flex-direction: column; align-items: flex-start; }
  .kpi-grid, .stats-grid, .city-grid { grid-template-columns: 1fr; }
  .period-nav__refresh { margin-left: 0; }
}
