/* PGWEB — Painel administrativo. Design system próprio, sem dependências externas (exceto a fonte Inter). */
:root {
  --bg: #f4f5f7;
  --surface: #ffffff;
  --surface-2: #f8f9fb;
  --surface-3: #f1f3f6;
  --ink: #0e1726;
  --ink-2: #2b3648;
  --muted: #667085;
  --faint: #98a2b3;
  --line: #e4e7ec;
  --line-2: #eef0f3;
  --navy: #0b1a2b;
  --navy-2: #13263d;
  --navy-3: #1c3452;
  --brand: #d8161e;
  --brand-600: #b5121a;
  --brand-50: #fdeced;
  --blue: #2f5f9e;
  --blue-50: #eaf1fb;
  --green: #0f7b4a;
  --green-50: #e7f6ee;
  --amber: #a15c00;
  --amber-50: #fff4e0;
  --red: #c4231c;
  --red-50: #fdeceb;
  --focus: #2f6fdb;
  --radius: 10px;
  --radius-sm: 7px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow: 0 1px 3px rgba(16, 24, 40, .06), 0 1px 2px rgba(16, 24, 40, .04);
  --shadow-lg: 0 20px 48px -12px rgba(16, 24, 40, .22), 0 4px 10px rgba(16, 24, 40, .06);
  --sidebar: 260px;
  --topbar: 64px;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: Charter, "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.adm { margin: 0; background: var(--bg); color: var(--ink); font: 400 14px/1.5 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--navy); }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); letter-spacing: -.01em; }
p { margin: 0; }
code, kbd { font: 500 12px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
kbd { display: inline-block; padding: 3px 6px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; background: var(--surface); color: var(--muted); }
code { padding: 2px 5px; border-radius: 4px; background: var(--surface-3); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -48px; z-index: 100; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--navy); color: #fff; }
.skip-link:focus { top: 12px; color: #fff; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.i { width: 18px; height: 18px; flex: none; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.strong { font-weight: 600; color: var(--ink); }
.nowrap { white-space: nowrap; }
.center { text-align: center; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.text-accent { color: var(--brand); font-weight: 600; }
.text-warning { color: var(--amber); }
.text-ok { color: var(--green); }
.text-warning .i { width: 14px; height: 14px; vertical-align: -2px; }
.spacer { flex: 1; }
.danger { color: var(--red) !important; }
.optional { margin-left: 4px; font-weight: 400; color: var(--faint); font-size: 12px; }

/* ------------------------------------------------------------ shell */
.shell { min-height: 100vh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; z-index: 40; width: var(--sidebar); display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--navy) 0%, #0d1f33 100%); color: #c9d3e0; border-right: 1px solid rgba(255,255,255,.04);
}
.sidebar-brand { display: flex; align-items: center; justify-content: space-between; height: var(--topbar); padding: 0 18px; border-bottom: 1px solid rgba(255,255,255,.07); }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; }
.brand img { border-radius: 7px; background: #fff; padding: 2px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 15px; font-weight: 700; color: #fff; letter-spacing: -.01em; }
.brand-text small { font-size: 11.5px; color: #8fa1b8; }
.sidebar .sidebar-close { display: none; color: #c9d3e0; }
.nav { flex: 1; overflow-y: auto; padding: 14px 12px; display: flex; flex-direction: column; gap: 2px; }
.nav-label { margin: 16px 10px 6px; font-size: 10.5px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: #6f829b; }
.nav-item {
  position: relative; display: flex; align-items: center; gap: 11px; width: 100%; padding: 9px 12px; border: 0; border-radius: 8px;
  background: none; color: #c3cedb; font: 500 13.5px/1.3 var(--sans); cursor: pointer; text-align: left; transition: background .15s, color .15s;
}
.nav-item .i { color: #8093ab; transition: color .15s; }
.nav-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-item:hover .i { color: #d8e1ec; }
.nav-item.is-active { background: rgba(255,255,255,.1); color: #fff; }
.nav-item.is-active .i { color: #fff; }
.nav-item.is-active::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--brand); }
.nav-sub { display: none; flex-direction: column; margin: 2px 0 6px 21px; padding-left: 14px; border-left: 1px solid rgba(255,255,255,.1); }
.nav-sub.is-open { display: flex; }
.nav-subitem { padding: 6px 10px; border-radius: 6px; color: #9fb0c5; font-size: 13px; }
.nav-subitem:hover { color: #fff; background: rgba(255,255,255,.05); }
.nav-subitem.is-active { color: #fff; font-weight: 600; }
.sidebar-foot { padding: 12px; border-top: 1px solid rgba(255,255,255,.07); display: flex; flex-direction: column; gap: 2px; }
.sidebar-foot form { margin: 0; }
.sidebar-backdrop { display: none; }

.main { margin-left: var(--sidebar); min-width: 0; }
.topbar {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 14px; height: var(--topbar); padding: 0 28px;
  background: rgba(255,255,255,.88); backdrop-filter: saturate(180%) blur(10px); -webkit-backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--line);
}
.topbar .menu-btn { display: none; }
.crumbs { display: flex; align-items: center; gap: 6px; min-width: 0; flex: 1; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.crumb-sep { width: 14px; height: 14px; color: var(--faint); }
.topbar-search { position: relative; display: flex; align-items: center; width: min(320px, 30vw); }
.topbar-search .i { position: absolute; left: 11px; width: 16px; height: 16px; color: var(--faint); pointer-events: none; }
.topbar-search input { width: 100%; height: 36px; padding: 0 36px 0 34px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-2); font: inherit; color: var(--ink); }
.topbar-search input:focus { background: #fff; border-color: #b9c6d8; outline: none; box-shadow: 0 0 0 3px rgba(47,111,219,.12); }
.topbar-search kbd { position: absolute; right: 8px; padding: 2px 6px; }
.user-menu { position: relative; }
.user-btn { display: flex; align-items: center; gap: 10px; padding: 4px 8px 4px 4px; border: 1px solid transparent; border-radius: 10px; background: none; cursor: pointer; font: inherit; color: var(--ink); }
.user-btn:hover, .user-btn[aria-expanded="true"] { background: var(--surface-3); }
.user-meta { display: flex; flex-direction: column; line-height: 1.2; text-align: left; }
.user-meta strong { font-size: 13px; font-weight: 600; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-meta small { font-size: 11.5px; color: var(--muted); }
.avatar { display: inline-grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 50%; background: linear-gradient(135deg, #1c3452, #0b1a2b); color: #fff; font-size: 12.5px; font-weight: 600; letter-spacing: .02em; }
.avatar-lg { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--line); }

.content { max-width: 1240px; margin: 0 auto; padding: 28px 28px 64px; }
.content-wide { max-width: 1480px; }
.content:focus { outline: none; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-title { font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.page-subtitle { margin-top: 4px; color: var(--muted); }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ------------------------------------------------------------ botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 15px; border: 1px solid transparent; border-radius: 9px;
  font: 600 13.5px/1 var(--sans); white-space: nowrap; cursor: pointer; transition: background .15s, border-color .15s, color .15s, box-shadow .15s, transform .05s; user-select: none;
}
.btn .i { width: 17px; height: 17px; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--navy); color: #fff; box-shadow: 0 1px 2px rgba(11,26,43,.25), inset 0 1px 0 rgba(255,255,255,.08); }
.btn-primary:hover { background: var(--navy-3); color: #fff; }
.btn-secondary { background: var(--surface); border-color: var(--line); color: var(--ink-2); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { border-color: #cfd6e0; background: var(--surface-2); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--surface-3); color: var(--ink); }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { background: #a51c16; color: #fff; }
.btn-sm { height: 32px; padding: 0 11px; font-size: 12.5px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn.is-loading { pointer-events: none; opacity: .75; }
.btn.is-loading::after { content: ""; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.btn-row form { margin: 0; }
.icon-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; flex: none; padding: 0; border: 0; border-radius: 8px; background: none; color: var(--muted); cursor: pointer; transition: background .15s, color .15s; }
.icon-btn:hover { background: var(--surface-3); color: var(--ink); }
.icon-btn.danger:hover { background: var(--red-50); }
.link { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; }
.link .i { width: 15px; height: 15px; }

/* ------------------------------------------------------------ cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 20px 22px; margin-bottom: 20px; }
.card-flush { padding: 0; overflow: hidden; }
.card-pad { padding: 18px 22px 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.card-head h2 { font-size: 15px; font-weight: 600; }
.card-subtitle { margin: 18px 0 8px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.eyebrow { font-size: 12px; color: var(--muted); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }

/* KPIs */
.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.kpi {
  position: relative; display: grid; grid-template-columns: 1fr auto; grid-template-areas: "value icon" "label icon"; align-items: center; gap: 2px 12px;
  padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); color: var(--ink); transition: border-color .15s, box-shadow .15s, transform .15s;
}
a.kpi:hover { border-color: #cdd5df; box-shadow: 0 6px 18px -8px rgba(16,24,40,.18); transform: translateY(-1px); color: var(--ink); }
.kpi-value { grid-area: value; font-size: 28px; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.kpi-label { grid-area: label; font-size: 13px; color: var(--muted); font-weight: 500; }
.kpi-icon { grid-area: icon; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; background: var(--surface-3); color: var(--ink-2); }
.kpi-success .kpi-icon { background: var(--green-50); color: var(--green); }
.kpi-accent .kpi-icon { background: var(--brand-50); color: var(--brand); }
.kpi-neutral .kpi-icon { background: var(--blue-50); color: var(--blue); }

.notice-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.notice { display: inline-flex; align-items: center; gap: 9px; padding: 10px 14px; border-radius: 10px; font-size: 13px; border: 1px solid; color: var(--ink-2); }
.notice .i { width: 17px; height: 17px; }
.notice-info { background: var(--blue-50); border-color: #cddcf1; }
.notice-info .i { color: var(--blue); }
.notice-warning { background: var(--amber-50); border-color: #f3dcb0; }
.notice-warning .i { color: var(--amber); }
.notice-neutral { background: var(--surface); border-color: var(--line); }
.notice:hover { color: var(--ink); filter: brightness(.99); }

.dash-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 20px; }
.dash-grid > .card { margin-bottom: 20px; }
.lead-preview { display: grid; grid-template-columns: 200px 1fr; gap: 18px; align-items: center; }
.lead-preview img { width: 200px; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; }
.lead-preview h3 { font: 700 18px/1.3 var(--serif); margin: 6px 0; }
.lead-preview h3 a { color: var(--ink); }
.quick-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.quick { display: flex; flex-direction: column; gap: 10px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink-2); font-weight: 600; font-size: 13.5px; transition: border-color .15s, background .15s; }
.quick .i { width: 22px; height: 22px; color: var(--brand); }
.quick:hover { border-color: #cdd5df; background: var(--surface-2); color: var(--ink); }

/* Gráficos (série única: uma cor, sem legenda; valores no hover e em tabela) */
.vbars { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; align-items: end; height: 220px; padding-top: 8px; }
.vbar-track { border-bottom: 1px solid var(--line); background-image: linear-gradient(var(--line-2) 1px, transparent 1px); background-size: 100% 25%; }
.vbar { position: relative; display: flex; flex-direction: column; align-items: stretch; height: 100%; outline: none; }
.vbar-track { flex: 1; display: flex; align-items: flex-end; justify-content: center; }
.vbar-fill { width: min(100%, 26px); border-radius: 4px 4px 0 0; background: var(--blue); transition: background .15s; }
.vbar:hover .vbar-fill, .vbar:focus .vbar-fill { background: var(--navy); }
.vbar-label { margin-top: 6px; font-size: 11px; color: var(--muted); text-align: center; white-space: nowrap; overflow: hidden; }
.hbars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.hbar { display: grid; grid-template-columns: 120px 1fr 44px; align-items: center; gap: 10px; outline: none; }
.hbar-label { font-size: 13px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar-track { height: 10px; border-radius: 5px; background: var(--surface-3); overflow: hidden; }
.hbar-fill { display: block; height: 100%; border-radius: 5px; background: var(--blue); }
.hbar:hover .hbar-fill, .hbar:focus .hbar-fill { background: var(--navy); }
.hbar-value { text-align: right; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.chart-table { margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.chart-table summary { cursor: pointer; }
[data-tip] { position: relative; }
[data-tip]:hover::after, [data-tip]:focus-visible::after {
  content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); z-index: 60;
  padding: 6px 9px; border-radius: 7px; background: var(--ink); color: #fff; font: 500 12px/1.3 var(--sans); white-space: nowrap; pointer-events: none; box-shadow: var(--shadow-lg);
}

.post-mini-list { list-style: none; margin: 0; padding: 0; }
.post-mini-list li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line-2); }
.post-mini-list li:first-child { border-top: 0; padding-top: 2px; }
.post-mini-list li > div { flex: 1; min-width: 0; }
.post-mini-list .strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.35; }
.post-mini-list p { margin-top: 3px; display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; }
.post-mini-list form { margin: 0; }
.activity-list { list-style: none; margin: 0; padding: 0; }
.activity-list li { display: grid; grid-template-columns: 10px 1fr auto; gap: 10px; align-items: baseline; padding: 7px 0; font-size: 13px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.dot-create, .dot-publish, .dot-upload { background: var(--green); }
.dot-delete, .dot-unpublish { background: var(--red); }
.dot-feature, .dot-unfeature { background: var(--brand); }
.dot-update, .dot-duplicate { background: var(--blue); }

/* ------------------------------------------------------------ badges */
.badge { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; white-space: nowrap; border: 1px solid transparent; }
.badge .i { width: 12px; height: 12px; }
.badge-success { background: var(--green-50); color: var(--green); border-color: #c7ead7; }
.badge-neutral { background: var(--surface-3); color: var(--ink-2); border-color: var(--line); }
.badge-muted { background: var(--surface-2); color: var(--muted); border-color: var(--line); }
.badge-info { background: var(--blue-50); color: var(--blue); border-color: #cddcf1; }
.badge-warning { background: var(--amber-50); color: var(--amber); border-color: #f3dcb0; }
.badge-accent { background: var(--brand-50); color: var(--brand-600); border-color: #f7c8ca; }
.chip { display: inline-block; padding: 3px 9px; border-radius: 6px; background: var(--surface-3); color: var(--ink-2); font-size: 12.5px; font-weight: 500; }
.chip:hover { background: #e6e9ee; color: var(--ink); }

/* ------------------------------------------------------------ tabs, filtros */
.tabs { display: flex; gap: 2px; padding: 0 16px; border-bottom: 1px solid var(--line); overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.tab { position: relative; padding: 14px 12px 13px; color: var(--muted); font-weight: 600; font-size: 13.5px; white-space: nowrap; }
.tab:hover { color: var(--ink); }
.tab.is-active { color: var(--ink); }
.tab.is-active::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--brand); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.filter-search { position: relative; display: flex; align-items: center; flex: 1 1 240px; min-width: 200px; }
.filter-search.grow { flex: 1; }
.filter-search .i { position: absolute; left: 11px; width: 16px; height: 16px; color: var(--faint); pointer-events: none; }
.filter-search input { width: 100%; padding-left: 34px !important; }
.filter-date { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.filters select, .filters input { height: 36px; min-height: 36px; }
.filters select { width: auto; min-width: 150px; max-width: 220px; }
.filters input[type="date"] { width: auto; }
.inline-form { display: flex; gap: 10px; margin-bottom: 12px; }

/* ------------------------------------------------------------ tabelas */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { position: sticky; top: 0; padding: 11px 14px; background: var(--surface); border-bottom: 1px solid var(--line); color: var(--muted); font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; text-align: left; white-space: nowrap; }
.table th .i { width: 14px; height: 14px; vertical-align: -2px; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tbody tr { transition: background .12s; }
.table tbody tr:hover { background: #fafbfc; }
.table tbody tr:last-child td { border-bottom: 0; }
.table-compact td, .table-compact th { padding: 6px 8px; }
.col-id { width: 64px; font-variant-numeric: tabular-nums; }
.col-thumb { width: 84px; padding-right: 0 !important; }
.col-star { width: 44px; text-align: center !important; }
.col-actions { width: 1%; white-space: nowrap; }
.col-title { min-width: 240px; max-width: 420px; }
.row-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 600; color: var(--ink); line-height: 1.35; }
.row-title:hover { color: var(--blue); }
.row-meta { display: block; margin-top: 3px; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 320px; }
.row-actions { display: flex; align-items: center; gap: 2px; justify-content: flex-end; }
.user-cell { display: flex; align-items: center; gap: 12px; }
.thumb { position: relative; display: block; width: 72px; aspect-ratio: 16 / 10; border-radius: 7px; overflow: hidden; background: var(--surface-3); flex: none; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-sm { width: 64px; }
.thumb-wide { width: 100%; border-radius: 10px 10px 0 0; }
.thumb-empty { display: grid; place-items: center; color: var(--faint); }
.thumb-play { position: absolute; right: 4px; bottom: 4px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 5px; background: rgba(11,26,43,.78); color: #fff; }
.thumb-play .i { width: 12px; height: 12px; }
.star-btn { display: inline-grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 8px; background: none; color: #c4cad3; cursor: pointer; }
.star-btn:hover { background: var(--brand-50); color: var(--brand); }
.star-btn.is-on { color: var(--brand); }
.star-btn.is-on .i { fill: currentColor; }
.col-star form { margin: 0; }

.pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border-top: 1px solid var(--line); }
.pagination-info { font-size: 12.5px; color: var(--muted); }
.pagination ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.pagination a, .pagination span { display: inline-grid; place-items: center; min-width: 34px; height: 34px; padding: 0 8px; border-radius: 8px; color: var(--ink-2); font-weight: 600; font-size: 13px; }
.pagination a:hover { background: var(--surface-3); color: var(--ink); }
.pagination .is-current { background: var(--navy); color: #fff; }
.pagination .is-disabled { color: var(--faint); }
.pagination .gap { color: var(--faint); }

/* ------------------------------------------------------------ dropdown, menus */
.menu { position: relative; }
.dropdown { position: absolute; top: calc(100% + 6px); right: 0; z-index: 50; min-width: 220px; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); }
.dropdown[hidden] { display: none; }
.dropdown form { margin: 0; }
.dropdown a, .dropdown button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 8px; background: none; color: var(--ink-2); font: 500 13.5px/1.2 var(--sans); cursor: pointer; text-align: left; }
.dropdown a:hover, .dropdown button:hover { background: var(--surface-3); color: var(--ink); }
.dropdown .i { width: 16px; height: 16px; color: var(--muted); }
.dropdown .danger .i { color: var(--red); }
.dropdown-head { padding: 8px 10px 10px; margin-bottom: 4px; border-bottom: 1px solid var(--line-2); font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }

/* ------------------------------------------------------------ formulários */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; min-width: 0; }
.field:last-child { margin-bottom: 0; }
label, .label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.label-lg { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
input[type="text"], input[type="email"], input[type="password"], input[type="url"], input[type="search"], input[type="number"], input[type="date"], input[type="datetime-local"], input:not([type]), select, textarea {
  width: 100%; min-height: 40px; padding: 8px 12px; border: 1px solid #d5dbe3; border-radius: 9px; background: var(--surface); color: var(--ink);
  font: 400 14px/1.45 var(--sans); transition: border-color .15s, box-shadow .15s; box-shadow: var(--shadow-sm);
}
textarea { resize: vertical; }
select { appearance: none; padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 16px; }
input:hover, select:hover, textarea:hover { border-color: #bfc8d4; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px rgba(47,111,219,.15); }
[aria-invalid="true"] { border-color: var(--red) !important; box-shadow: 0 0 0 3px rgba(196,35,28,.1) !important; }
input[readonly] { background: var(--surface-2); color: var(--ink-2); }
input[disabled], select[disabled] { background: var(--surface-2); color: var(--muted); cursor: not-allowed; }
.hint { font-size: 12.5px; color: var(--muted); }
.field-error { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--red); font-weight: 500; }
.field-error .i { width: 14px; height: 14px; }
.field-foot { display: flex; justify-content: space-between; gap: 8px; min-height: 16px; }
.counter { margin-left: auto; font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }
.counter.is-near { color: var(--amber); }
.input-group { position: relative; display: flex; align-items: center; }
.input-group input { padding-right: 44px; }
.input-group .icon-btn { position: absolute; right: 3px; }
.input-prefix { display: flex; align-items: stretch; border: 1px solid #d5dbe3; border-radius: 9px; box-shadow: var(--shadow-sm); background: var(--surface); overflow: hidden; }
.input-prefix:focus-within { border-color: var(--focus); box-shadow: 0 0 0 3px rgba(47,111,219,.15); }
.input-prefix .prefix { display: flex; align-items: center; padding: 0 10px; background: var(--surface-2); border-right: 1px solid var(--line); color: var(--muted); font-size: 12.5px; white-space: nowrap; max-width: 45%; overflow: hidden; text-overflow: ellipsis; }
.input-prefix input { border: 0; box-shadow: none !important; border-radius: 0; min-width: 0; }
.input-title { font: 700 22px/1.3 var(--serif) !important; padding: 10px 12px !important; min-height: 0 !important; resize: none; letter-spacing: -.01em; }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 500; color: var(--ink-2); }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-ui { position: relative; width: 38px; height: 22px; flex: none; border-radius: 999px; background: #cfd6e0; transition: background .2s; }
.switch-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .2s; }
.switch input:checked + .switch-ui { background: var(--brand); }
.switch input:checked + .switch-ui::after { transform: translateX(16px); }
.switch input:focus-visible + .switch-ui { outline: 2px solid var(--focus); outline-offset: 2px; }
.checkbox { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--ink-2); cursor: pointer; }
.checkbox input { width: 16px; height: 16px; accent-color: var(--navy); }
.form-card { max-width: 920px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.form-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid .field { margin-bottom: 16px; }
.span-2 { grid-column: 1 / -1; }
.fieldset { margin: 8px 0 0; padding: 16px 0 0; border: 0; border-top: 1px solid var(--line-2); }
.fieldset legend { padding: 0; font-weight: 600; font-size: 14px; }
.fieldset .hint { margin-bottom: 12px; }
.form-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--line-2); }
.sticky-actions { position: sticky; bottom: 0; z-index: 5; padding: 14px 18px; margin: 0; background: rgba(255,255,255,.95); backdrop-filter: blur(6px); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); justify-content: space-between; max-width: 920px; }
.settings-form .card { max-width: 920px; }
.inline-media { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.copy-field { display: flex; gap: 8px; }

/* ------------------------------------------------------------ alertas / toasts / estados */
.alert { display: flex; gap: 10px; padding: 12px 14px; border-radius: 10px; border: 1px solid; margin-bottom: 16px; font-size: 13.5px; }
.alert .i { width: 18px; height: 18px; margin-top: 1px; }
.alert ul { margin: 6px 0 0; padding-left: 18px; }
.alert-error { background: var(--red-50); border-color: #f5c9c6; color: #7a1712; }
.alert-success { background: var(--green-50); border-color: #c7ead7; color: #0b5a36; }
.alert-warning { background: var(--amber-50); border-color: #f3dcb0; color: #6b3d00; }
.alert-info { background: var(--blue-50); border-color: #cddcf1; color: #1c3f6e; }
.toasts { position: fixed; top: 76px; right: 24px; z-index: 80; display: flex; flex-direction: column; gap: 10px; width: min(420px, calc(100vw - 32px)); }
.toast { display: flex; align-items: flex-start; gap: 10px; padding: 12px 10px 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); animation: toast-in .25s ease-out; }
.toast p { flex: 1; padding-top: 1px; font-weight: 500; }
.toast > .i { width: 20px; height: 20px; }
.toast .icon-btn { width: 26px; height: 26px; }
.toast-success > .i { color: var(--green); }
.toast-error { border-color: #f5c9c6; }
.toast-error > .i { color: var(--red); }
.toast-warning > .i { color: var(--amber); }
.toast-info > .i { color: var(--blue); }
.toast.is-leaving { opacity: 0; transform: translateY(-6px); transition: opacity .2s, transform .2s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } }
.state { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 48px 24px; }
.state-icon { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 6px; border-radius: 16px; background: var(--surface-3); color: var(--muted); }
.state-icon .i { width: 26px; height: 26px; }
.state h2 { font-size: 17px; }
.state p { max-width: 440px; color: var(--muted); }
.state-actions { margin-top: 10px; }
.state-code { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.state-error { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.error-detail { max-width: 100%; overflow: auto; text-align: left; font-size: 11px; background: var(--surface-3); padding: 12px; border-radius: 8px; }

/* ------------------------------------------------------------ modais */
.modal, .drawer { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 20px; background: rgba(14, 23, 38, .5); backdrop-filter: blur(2px); animation: fade .15s ease-out; }
.modal[hidden], .drawer[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }
.modal-card { width: min(560px, 100%); max-height: calc(100vh - 40px); overflow: auto; padding: 24px; background: var(--surface); border-radius: 16px; box-shadow: var(--shadow-lg); animation: pop .18s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.modal-sm { width: min(440px, 100%); }
.modal-lg { width: min(1040px, 100%); display: flex; flex-direction: column; padding: 0; }
.modal-icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 14px; border-radius: 12px; background: var(--red-50); color: var(--red); flex: none; }
.modal-icon.is-primary { background: var(--brand-50); color: var(--brand); }
.modal-title { font-size: 17px; margin-bottom: 6px; }
.modal-text { color: var(--muted); margin-bottom: 20px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.modal-head h2 { font-size: 16px; }
.modal-foot { display: flex; align-items: center; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--line); background: var(--surface-2); }
.media-toolbar { display: flex; gap: 12px; align-items: center; padding: 14px 20px 0; flex-wrap: wrap; }
.modal-lg .dropzone { margin: 12px 20px 0; }
.modal-lg .media-status { padding: 8px 20px 0; min-height: 26px; }
.media-grid-modal { padding: 4px 20px 20px; overflow-y: auto; max-height: 52vh; }
.drawer { place-items: stretch end; padding: 0; }
.drawer-panel { width: min(440px, 100vw); height: 100%; background: var(--surface); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; animation: slide .2s ease-out; }
@keyframes slide { from { transform: translateX(24px); opacity: .6; } }
.drawer-body { padding: 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }
.drawer-preview { border-radius: 12px; overflow: hidden; background: var(--surface-3) repeating-conic-gradient(#eceff3 0% 25%, #f7f8fa 0% 50%) 50% / 16px 16px; }
.drawer-preview img { width: 100%; max-height: 300px; object-fit: contain; }
.meta-list { display: grid; grid-template-columns: 110px 1fr; gap: 6px 12px; margin: 0; font-size: 13px; }
.meta-list dt { color: var(--muted); }
.meta-list dd { margin: 0; word-break: break-all; }
.usage-list { margin: 0; padding-left: 18px; font-size: 13px; }
.usage-list li { margin: 4px 0; }
.drawer-danger { padding-top: 12px; border-top: 1px solid var(--line-2); margin: 0; }

/* ------------------------------------------------------------ mídia */
.dropzone { display: flex; align-items: center; gap: 10px; justify-content: center; padding: 14px; border: 1.5px dashed #c9d2de; border-radius: 12px; color: var(--muted); background: var(--surface-2); text-align: center; transition: border-color .15s, background .15s; }
.dropzone .i { width: 22px; height: 22px; color: var(--faint); }
.dropzone.is-over { border-color: var(--focus); background: var(--blue-50); }
.dropzone-big { flex-direction: column; padding: 30px 20px; cursor: pointer; }
.dropzone-big strong { color: var(--ink-2); }
.dropzone-big .i { width: 30px; height: 30px; }
.upload-card { padding: 16px; }
.media-status { margin-top: 8px; min-height: 18px; }
.media-status.is-error { color: var(--red); }
.media-status.is-ok { color: var(--green); }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 14px; padding: 18px; }
.media-item { display: flex; flex-direction: column; gap: 4px; padding: 0 0 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); text-align: left; cursor: pointer; overflow: hidden; font: inherit; color: var(--ink); transition: border-color .15s, box-shadow .15s, transform .15s; }
.media-item:hover { border-color: #c5cfdb; box-shadow: 0 8px 20px -10px rgba(16,24,40,.25); transform: translateY(-1px); }
.media-item.is-selected { border-color: var(--focus); box-shadow: 0 0 0 3px rgba(47,111,219,.25); }
.media-thumb { display: block; aspect-ratio: 4 / 3; background: var(--surface-3); overflow: hidden; }
.media-thumb img { width: 100%; height: 100%; object-fit: cover; }
.media-name { padding: 4px 10px 0; font-size: 12.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.media-meta { padding: 0 10px; font-size: 11.5px; }

/* ------------------------------------------------------------ formulário de notícia */
.post-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.post-side { position: sticky; top: calc(var(--topbar) + 16px); max-height: calc(100vh - var(--topbar) - 32px); overflow-y: auto; padding-right: 2px; scrollbar-width: thin; }
.side-card { padding: 16px 18px; margin-bottom: 14px; }
.side-card .card-head { margin-bottom: 12px; }
.side-card .card-head h2 { font-size: 13.5px; }
.publish-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.cover-preview { position: relative; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: var(--surface-3); border: 1px solid var(--line); }
.cover-preview img { width: 100%; height: 100%; object-fit: cover; }
.cover-empty { position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--faint); font-size: 12.5px; }
.cover-preview.is-empty .cover-empty { display: flex; }
.cover-name { margin: 6px 0 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cover-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.video-preview { margin-top: 8px; border-radius: 10px; overflow: hidden; }
.video-preview img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.side-danger { padding: 10px; }
.serp { padding: 14px 16px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface-2); font-family: Arial, sans-serif; }
.serp-url { font-size: 12.5px; color: #4d5156; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.serp-title { margin: 4px 0; font-size: 19px; line-height: 1.3; color: #1a0dab; }
.serp-desc { font-size: 13.5px; color: #4d5156; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Editor visual */
.card-editor { padding: 16px 18px; }
.editor { border: 1px solid #d5dbe3; border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-sm); }
.editor:focus-within { border-color: #aebbd0; }
.editor-toolbar { position: sticky; top: var(--topbar); z-index: 6; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 6px; border-bottom: 1px solid var(--line); background: rgba(248,249,251,.97); border-radius: 12px 12px 0 0; }
.tb-group { display: flex; gap: 1px; padding-right: 5px; margin-right: 1px; border-right: 1px solid var(--line); }
.tb-group:last-child { border-right: 0; }
.tb-right { margin-left: auto; }
.tb-btn { display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 7px; background: none; color: var(--ink-2); cursor: pointer; }
.tb-btn .i { width: 17px; height: 17px; }
.tb-btn:hover { background: #e9edf2; color: var(--ink); }
.tb-btn.is-active, .tb-btn[aria-pressed="true"] { background: var(--navy); color: #fff; }
.editor-area {
  min-height: 420px; padding: 22px 26px; outline: none; font: 400 17px/1.7 var(--serif); color: #1b2430; overflow-wrap: anywhere;
}
.editor-area:empty::before { content: attr(data-placeholder); color: var(--faint); font-style: italic; }
.editor-area > * { margin: 0 0 1em; }
.editor-area h2 { font: 700 24px/1.3 var(--serif); margin-top: 1.4em; }
.editor-area h3 { font: 700 20px/1.3 var(--serif); margin-top: 1.2em; }
.editor-area h4 { font: 700 18px/1.3 var(--serif); }
.editor-area blockquote { margin-left: 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--brand); color: var(--ink-2); font-style: italic; }
.editor-area ul, .editor-area ol { padding-left: 1.4em; }
.editor-area a { color: #1a55a8; text-decoration: underline; }
.editor-area img { max-width: 100%; height: auto; border-radius: 6px; margin: 0 auto; }
.editor-area img.is-selected { outline: 3px solid var(--focus); }
.editor-area img[data-missing] { outline: 2px dashed var(--red); min-height: 40px; }
.editor-area figure { margin: 1.2em 0; }
.editor-area figcaption { font: 400 13px/1.4 var(--sans); color: var(--muted); text-align: center; margin-top: 6px; }
.editor-area hr { border: 0; border-top: 1px solid var(--line); margin: 1.5em 0; }
.editor-area .pg-align-center { text-align: center; }
.editor-area .pg-align-right { text-align: right; }
.editor-area p.is-video { position: relative; padding: 14px 14px 14px 52px; border: 1px dashed #c9d2de; border-radius: 10px; background: var(--surface-2); font: 500 13px/1.4 var(--sans); color: var(--ink-2); }
.editor-area p.is-video::before { content: "▶"; position: absolute; left: 14px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: #e33; color: #fff; font-size: 11px; }
.editor-area iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 8px; }
.editor-source { display: block; width: 100%; min-height: 420px; padding: 18px; border: 0 !important; border-radius: 0 0 12px 12px !important; box-shadow: none !important; font: 400 13px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: #0f1826; color: #dbe5f1; }
.editor-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 8px 14px; border-top: 1px solid var(--line-2); font-size: 12px; color: var(--muted); }

/* Destaques */
.featured-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; }
.hero-preview { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px; align-items: center; }
.hero-media { aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; background: var(--surface-3); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-body h3 { font: 700 22px/1.25 var(--serif); margin: 8px 0 12px; }
.hero-body .btn-row { margin-top: 14px; }
.info-card h2 { display: flex; align-items: center; gap: 8px; font-size: 15px; margin-bottom: 10px; }
.info-card h2 .i { color: var(--blue); }
.info-card ol { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: 13px; display: flex; flex-direction: column; gap: 8px; }
.candidate-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; padding: 4px 22px 22px; }
.candidate { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); }
.candidate.is-lead { border-color: #f1b4b7; box-shadow: 0 0 0 3px var(--brand-50); }
.candidate-body { padding: 12px 14px 0; flex: 1; }
.candidate-body h3 { font: 600 14px/1.35 var(--sans); margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.candidate-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px; }
.candidate-foot form { margin: 0; }

/* Categorias / configurações */
.danger-card { max-width: 720px; }
.danger-head { display: flex; gap: 16px; margin-bottom: 18px; }
.danger-head h2 { font-size: 18px; margin-bottom: 6px; }
.danger-head p { color: var(--ink-2); }
.ad-setting { display: grid; grid-template-columns: 240px 1fr; gap: 20px; padding: 16px 0; border-top: 1px solid var(--line-2); }
.ad-setting:first-of-type { border-top: 0; padding-top: 0; }
.ad-preview { display: grid; place-items: center; border: 1px dashed var(--line); border-radius: 10px; background: var(--surface-2); overflow: hidden; min-height: 80px; }
.ad-preview img { width: 100%; height: 100%; object-fit: contain; }
.ad-preview-sidebar { aspect-ratio: 3 / 4; max-width: 180px; }
.ad-preview-top { aspect-ratio: 1600 / 260; align-self: start; width: 100%; }
.ad-setting > * { min-width: 0; }

/* ------------------------------------------------------------ login */
body.adm.auth-page { min-height: 100vh; background: radial-gradient(1200px 600px at 10% -10%, #1c3452 0%, transparent 60%), radial-gradient(900px 500px at 110% 110%, #3a1418 0%, transparent 55%), var(--navy); }
.auth-wrap { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 16px; }
.auth-wrap .state-error { max-width: 560px; }
.auth-card { width: min(420px, 100%); padding: 32px; background: var(--surface); border-radius: 18px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.5); }
.auth-brand { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-bottom: 24px; }
.auth-brand img { height: 44px; width: auto; }
.auth-brand span { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.auth-title { font-size: 20px; text-align: center; }
.auth-sub { margin: 6px 0 20px; text-align: center; color: var(--muted); }
.form-stack { display: flex; flex-direction: column; gap: 4px; }
.form-stack .btn { margin-top: 10px; height: 42px; }
.auth-foot { margin-top: 18px; }
.auth-foot a { display: inline-flex; align-items: center; gap: 6px; color: #b7c4d4; font-size: 13px; }
.auth-foot a:hover { color: #fff; }
.auth-foot .i { width: 15px; height: 15px; }

/* ------------------------------------------------------------ responsivo */
@media (max-width: 1280px) {
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post-grid { grid-template-columns: minmax(0, 1fr) 300px; }
}
@media (max-width: 1100px) {
  .sidebar { transform: translateX(-100%); transition: transform .25s ease; box-shadow: var(--shadow-lg); }
  body.sidebar-open .sidebar { transform: none; }
  body.sidebar-open .sidebar-backdrop { display: block; position: fixed; inset: 0; z-index: 35; background: rgba(14,23,38,.45); }
  .sidebar .sidebar-close { display: inline-grid; }
  .main { margin-left: 0; }
  .topbar .menu-btn { display: inline-grid; }
  .dash-grid, .featured-layout { grid-template-columns: minmax(0, 1fr); }
  .topbar { padding: 0 18px; }
  .content { padding: 22px 18px 56px; }
}
@media (max-width: 900px) {
  .post-grid { grid-template-columns: minmax(0, 1fr); }
  .post-side { position: static; max-height: none; overflow: visible; }
  .topbar-search { display: none; }
  .hero-preview, .lead-preview { grid-template-columns: minmax(0, 1fr); }
  .lead-preview img { width: 100%; }
  .ad-setting { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .kpi-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
  .kpi { padding: 14px; grid-template-columns: 1fr; grid-template-areas: "icon" "value" "label"; }
  .kpi-icon { width: 34px; height: 34px; margin-bottom: 6px; }
  .form-grid, .form-grid-3 { grid-template-columns: minmax(0, 1fr); }
  .user-meta, .topbar-new span { display: none; }
  .page-title { font-size: 21px; }
  .card { padding: 16px; border-radius: 12px; }
  .editor-area { padding: 16px; font-size: 16px; }
  .col-id, .table-posts th:nth-child(7), .table-posts td:nth-child(7), .table-posts th:nth-child(8), .table-posts td:nth-child(8) { display: none; }
  .hbar { grid-template-columns: 90px 1fr 36px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Anunciantes (Configurações) */
.ad-card-top { display: grid; grid-template-columns: 220px 1fr; gap: 20px; align-items: start; margin-bottom: 8px; }
.input-suffix { display: inline-flex; max-width: 220px; align-items: stretch; border: 1px solid #d5dbe3; border-radius: 9px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow-sm); }
.input-suffix input { border: 0 !important; box-shadow: none !important; border-radius: 0; width: 90px; }
.input-suffix span { display: flex; align-items: center; padding: 0 12px; background: var(--surface-2); border-left: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.ad-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ad-row { display: grid; grid-template-columns: 220px 1fr; gap: 18px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.ad-row-new { background: var(--blue-50); border-color: #cddcf1; border-style: dashed; }
.ad-thumb { display: grid; place-items: center; border-radius: 8px; overflow: hidden; background: #fff repeating-conic-gradient(#eef1f4 0% 25%, #fff 0% 50%) 50% / 14px 14px; border: 1px solid var(--line); color: var(--faint); align-self: start; }
.ad-thumb img { width: 100%; height: 100%; object-fit: contain; }
.ad-thumb-top { aspect-ratio: 1600 / 260; }
.ad-thumb-sidebar { aspect-ratio: 3 / 4; max-width: 150px; }
.ad-fields { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.ad-fields .form-grid .field { margin-bottom: 8px; }
.field-inline { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13px; }
.input-xs { width: 70px !important; min-height: 32px !important; padding: 4px 8px !important; }
.ad-new { margin-top: 12px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.ad-new .ad-list { width: 100%; }
.ad-empty { padding: 10px 0; }
.checkbox.danger span { color: var(--red); }
@media (max-width: 900px) {
  .ad-card-top, .ad-row { grid-template-columns: minmax(0, 1fr); }
}
