:root {
  --cream: #fbf8ef;
  --cream-2: #f1ebe0;
  --card: #fffdf8;
  --green: #2d4e39;
  --green-deep: #1e3528;
  --green-hover: #243f2e;
  --green-soft: rgba(45, 78, 57, 0.1);
  --text: #2c2a26;
  --muted: #6a645c;
  --border: #e4ddd0;
  --error: #9b3a32;
  --error-bg: #f8ece9;
  --ok: #2d4e39;
  --ok-bg: #e7efe9;
  --radius: 12px;
  --shadow: 0 18px 40px rgba(45, 78, 57, 0.08);
  --s8: 8px; --s12: 12px; --s16: 16px; --s24: 24px; --s32: 32px; --s48: 48px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body {
  margin: 0; min-height: 100%;
  background: var(--cream);
  color: var(--text);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px; line-height: 1.5;
}
h1, .brand-title, .panel-kicker {
  font-family: Georgia, "Palatino Linotype", Palatino, serif;
  color: var(--green);
  font-weight: 600;
}

/* Login: split, not a floating stamp */
.login-overlay {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(420px, 1.1fr);
}
.login-brand {
  background: var(--green-deep);
  color: var(--cream);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px 40px;
}
.login-brand img { width: 96px; height: 96px; border-radius: 12px; object-fit: cover; background: var(--cream); }
.login-brand h1 { color: var(--cream); font-size: 2rem; margin: 20px 0 8px; }
.login-brand p { margin: 0; color: rgba(251,248,239,0.78); max-width: 28ch; }
.login-form-wrap {
  display: flex; align-items: center; justify-content: center;
  padding: 48px 40px;
  background:
    radial-gradient(ellipse at 80% 0%, rgba(45,78,57,0.06), transparent 50%),
    var(--cream);
}
.login-card { width: 100%; max-width: 420px; background: transparent; border: none; box-shadow: none; padding: 0; }
.login-card h2 { margin: 0 0 8px; font-size: 1.7rem; color: var(--green); }

.login-modes {
  display: flex;
  gap: 8px;
  margin: 0 0 20px;
}
.login-mode {
  border: none;
  background: transparent;
  color: var(--muted);
  padding: 8px 4px;
  font-size: 0.95rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}
.login-mode:hover { color: var(--green); }
.login-mode.active {
  color: var(--green);
  font-weight: 650;
  border-bottom-color: var(--green);
}

.login-card .lede { margin: 0 0 32px; }

.shell { min-height: 100vh; display: flex; flex-direction: column; }
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s24); padding: 18px 36px;
  border-bottom: 1px solid var(--border); background: var(--cream);
}
.brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.logo { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; display: block; }
.brand h1 { margin: 0; font-size: 1.35rem; line-height: 1.15; }
.tagline { margin: 4px 0 0; color: var(--muted); font-size: 0.82rem; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 4px; }
.nav-btn {
  border: none; background: transparent; color: var(--muted);
  padding: 10px 14px; font-size: 0.92rem; cursor: pointer;
  border-bottom: 2px solid transparent;
}
.nav-btn:hover { color: var(--green); }
.nav-btn.active { color: var(--green); font-weight: 650; border-bottom-color: var(--green); }

main { flex: 1; padding: 32px 36px 48px; }
.view { width: 100%; }
.novo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.85fr);
  gap: 24px; align-items: start;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.card.fill { width: 100%; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
h2 { margin: 0 0 8px; font-size: 1.28rem; font-weight: 650; color: var(--green); }
.lede { margin: 0 0 24px; color: var(--muted); }
.muted, .muted-title { color: var(--muted); font-weight: 400; }
.stack { display: flex; flex-direction: column; gap: 16px; }

.dropzone {
  display: flex; align-items: center; gap: 16px; width: 100%; text-align: left;
  border: 1.5px dashed var(--border); background: var(--cream);
  border-radius: var(--radius); padding: 18px 20px; cursor: pointer; color: inherit;
}
.dropzone:hover { border-color: var(--green); background: var(--green-soft); }
.dz-copy { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.dz-label { font-size: 0.95rem; font-weight: 700; color: var(--green); }
.dz-text { color: var(--muted); font-size: 0.9rem; word-break: break-all; }
.dropzone-media #photo-preview {
  width: 80px; height: 80px; border-radius: 10px; object-fit: cover; background: var(--cream-2); flex-shrink: 0;
}
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 600; }
.field em { font-weight: 400; color: var(--muted); font-style: normal; }
input[type="text"], input[type="password"], input[type="email"], select {
  font: inherit; padding: 12px 14px; border-radius: 8px;
  border: 1px solid var(--border); background: #fff; color: var(--text);
}
input:focus, select:focus { outline: 2px solid var(--green); outline-offset: 1px; }

.quality { border: none; padding: 0; margin: 0; }
.quality legend { padding: 0 0 8px; font-size: 0.95rem; font-weight: 700; color: var(--green); }
.quality-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.qcard { display: block; cursor: pointer; }
.qcard input { position: absolute; opacity: 0; pointer-events: none; }
.qcard span {
  display: flex; flex-direction: column; gap: 2px;
  border: 1.5px solid var(--border); border-radius: 10px; padding: 14px 16px; background: var(--cream);
}
.qcard strong { color: var(--green); }
.qcard small { color: var(--muted); }
.qcard:hover span { border-color: var(--green); }
.qcard input:checked + span {
  border-color: var(--green); background: var(--green-soft); box-shadow: inset 0 0 0 1px var(--green);
}

button.primary, button.secondary, button.ghost, a.primary {
  border-radius: 8px; padding: 12px 18px; font: inherit; font-weight: 600; cursor: pointer;
}
button.primary, a.primary {
  background: var(--green); color: var(--cream); border: none; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center;
}
button.primary:hover:not(:disabled), a.primary:hover { background: var(--green-hover); }
button.primary:disabled { opacity: 0.55; cursor: not-allowed; }
button.secondary { background: transparent; color: var(--green); border: 1.5px solid var(--green); }
button.secondary:hover { background: var(--green-soft); }
button.ghost { background: transparent; border: 1px solid var(--border); color: var(--text); }
button.danger { background: transparent; border: 1px solid #ead2cd; color: var(--error); border-radius: 8px; padding: 8px 12px; font: inherit; cursor: pointer; }
button.danger:hover { background: var(--error-bg); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }

.error, .ok, .banner {
  border-radius: 8px; padding: 12px 14px; margin: 16px 0 0;
}
.error { color: var(--error); background: var(--error-bg); border: 1px solid #ead2cd; }
.ok { color: var(--ok); background: var(--ok-bg); border: 1px solid #cfe0d4; }

.avatar-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.avatar-slot {
  aspect-ratio: 1; border-radius: 10px; border: 1.5px dashed var(--border);
  background: var(--cream); padding: 0; overflow: hidden;
}
button.avatar-slot {
  display: block; width: 100%; height: 100%; padding: 0;
  border: 1.5px solid var(--border); cursor: pointer; background: var(--cream-2);
}
button.avatar-slot:hover, button.avatar-slot.selected { border-color: var(--green); }
button.avatar-slot img { width: 100%; height: 100%; object-fit: cover; display: block; }
button.avatar-slot.rejected { opacity: 0.55; cursor: not-allowed; position: relative; }
button.avatar-slot.rejected:hover { border-color: var(--border); }
.avatar-card { position: relative; min-width: 0; }
.avatar-card .avatar-slot { width: 100%; }
.avatar-delete {
  position: absolute; top: 6px; right: 6px; z-index: 2;
  border: 0; border-radius: 999px; cursor: pointer;
  background: #fff; color: #8a3b32;
  font-size: 0.72rem; font-weight: 700;
  padding: 4px 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.16);
}
.avatar-card.rejected .avatar-delete { background: #8a3b32; color: #fff; }
.avatar-rejected-label {
  position: absolute; left: 6px; right: 6px; bottom: 6px;
  background: #f4e4e1; color: #8a3b32;
  font-size: 0.68rem; font-weight: 650; text-align: center;
  border-radius: 6px; padding: 2px 4px;
}
.photo-hint { margin: -8px 0 0; font-size: 0.8rem; }

.status-hero { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.status-hero h3 { margin: 0; font-size: 1.1rem; color: var(--green); }
.fields { display: grid; grid-template-columns: 180px 1fr; gap: 10px 16px; margin: 20px 0 0; }
.fields dt { color: var(--muted); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em; }
.fields dd { margin: 0; word-break: break-word; font-family: ui-monospace, Consolas, monospace; font-size: 0.88rem; }
.badge {
  display: inline-flex; align-items: center; padding: 6px 14px; border-radius: 999px;
  font-size: 0.85rem; font-weight: 700; background: var(--green-soft); color: var(--green);
}
.badge.running, .badge.pending, .badge.processing, .badge.waiting { background: #efe7d4; color: #6a5428; }
.badge.completed { background: var(--ok-bg); color: var(--ok); }
.badge.failed, .badge.error { background: var(--error-bg); color: var(--error); }
.badge.off { background: var(--error-bg); color: var(--error); }
.progress-wrap { margin: 8px 0 16px; }
.progress-bar { height: 8px; background: var(--cream-2); border-radius: 999px; overflow: hidden; }
.progress-bar span { display: block; height: 100%; width: 8%; background: var(--green); border-radius: 999px; }
.json-panel { margin-top: 24px; border: 1px solid var(--border); border-radius: 8px; padding: 8px 14px 12px; background: var(--cream); }
.json-panel summary { cursor: pointer; font-weight: 600; color: var(--green); padding: 6px 0; }
.json-panel pre { margin: 8px 0 0; overflow: auto; max-height: 280px; font-size: 0.78rem; white-space: pre-wrap; }

.hist-list { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.hist-row {
  display: grid; grid-template-columns: 72px 1fr auto; gap: 16px; align-items: center;
  border: 1px solid var(--border); border-radius: 10px; padding: 12px 16px;
  background: var(--cream); cursor: pointer; text-align: left; width: 100%; color: inherit;
}
.hist-row:hover { border-color: var(--green); }
.hist-thumb { width: 72px; height: 72px; border-radius: 8px; object-fit: cover; background: var(--cream-2); }
.hist-thumb.placeholder { border: 1.5px dashed var(--border); }
.hist-row h3 { margin: 0 0 4px; font-size: 1rem; color: var(--green); }
.hist-row .card-error { margin: 6px 0 0; font-size: 0.78rem; color: var(--error); }

.config-card { max-width: 420px; flex: 0 1 420px; }
.who { font-size: 0.95rem; color: var(--text); margin: 0; }

.conta-page { width: 100%; }
.conta-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: stretch;
}
.usage-card {
  flex: 1 1 220px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow);
}
.usage-kicker { margin: 0 0 10px; color: var(--muted); font-size: 0.82rem; }
.usage-value {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.usage-value strong { font-size: 1.7rem; font-weight: 700; color: var(--green); }
.usage-hint { margin: 12px 0 0; color: var(--muted); font-size: 0.8rem; }
.usage-card .error { margin-top: 10px; }

.activity { margin-top: 22px; }
.activity-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.activity-tabs { display: flex; gap: 8px; }
.activity-tab {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
}
.activity-tab.active { background: var(--green); color: var(--cream); }
.activity-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.activity-card-head { padding: 16px 20px 8px; }
.activity-card-head h2 { margin: 0; font-size: 1rem; }
.activity-empty { padding: 8px 20px 20px; }
.activity-table-wrap { overflow-x: auto; }
.activity-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.activity-table th, .activity-table td {
  padding: 14px 20px;
  text-align: left;
  border-top: 1px solid var(--border);
  vertical-align: middle;
}
.activity-table th {
  color: var(--muted);
  font-weight: 650;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.activity-table th.num, .activity-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.activity-table tbody tr:hover { background: var(--cream); }
.req-cell { display: flex; align-items: center; gap: 12px; min-width: 220px; }
.req-thumb {
  width: 40px; height: 40px; border-radius: 50%;
  object-fit: cover; background: var(--cream-2); flex: 0 0 40px;
}
.req-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.req-copy strong { font-weight: 600; color: var(--text); overflow-wrap: anywhere; }
.req-copy .req-sub { color: var(--muted); font-size: 0.78rem; }
.req-copy .card-error { margin: 0; font-size: 0.75rem; color: var(--error); }

/* Admin */
.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 24px; align-items: start;
}
.user-table { width: 100%; border-collapse: collapse; }
.user-table th, .user-table td {
  text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--border); vertical-align: middle;
}
.user-table th { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); font-weight: 650; }
.user-table td.email { font-weight: 600; }
.role-pill {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  background: var(--green-soft); color: var(--green); font-size: 0.8rem; font-weight: 650;
}

@media (max-width: 900px) {
  .login-overlay, .novo-grid, .admin-grid { grid-template-columns: 1fr; }
  .conta-grid, .config-card, .usage-card { max-width: none; width: 100%; }
  .login-brand { min-height: 220px; padding: 32px 24px; }
  .topbar { flex-direction: column; align-items: flex-start; padding: 16px 20px; }
  main { padding: 20px; }
  .fields { grid-template-columns: 1fr; }
}

/* === hub-criativos overlay begin === */
/* Home + Criativos — extends Hub tokens in app.css */
.mock-banner {
  margin: 0 0 18px;
  padding: 10px 14px;
  border-radius: 8px;
  background: #efe7d4;
  color: #6a5428;
  border: 1px solid #e4d6b3;
  font-size: 0.88rem;
}
.home-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.2fr);
  gap: 24px;
  align-items: start;
}
.pie-wrap {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding-top: 8px;
}
#home-pie.pie,
.pie {
  width: 220px;
  height: 220px;
  min-width: 220px;
  min-height: 220px;
  flex: 0 0 220px;
  border-radius: 50%;
  background: var(--cream-2);
  box-shadow: inset 0 0 0 18px var(--card);
  border: 1px solid var(--border);
}
#home-legend.pie-legend,
.pie-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1 1 220px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pie-legend li {
  display: flex;
  align-items: center;
  gap: 12px;
}
.legend-swatch {
  width: 14px;
  height: 14px;
  padding: 0;
  flex: 0 0 14px;
  border-radius: 50%;
  border: none;
}
.legend-swatch.band-pill.band-escalando { background: #2d4e39; color: #2d4e39; }
.legend-swatch.band-pill.band-estavel { background: #c4a35a; color: #c4a35a; }
.legend-swatch.band-pill.band-caindo { background: #9b3a32; color: #9b3a32; }
.pie-legend strong { display: block; color: var(--green); font-size: 0.95rem; }
#home-ranking.rank-list,
.rank-list {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 8px;
  margin-top: 8px;
  width: 100%;
}
#home-ranking .rank-row,
#home-ranking > button,
button.rank-row,
.rank-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  max-width: 100%;
  float: none;
  text-align: left;
  border: 1px solid var(--border);
  background: var(--cream);
  border-radius: 10px;
  padding: 12px 14px;
  cursor: pointer;
  color: inherit;
  font: inherit;
  box-sizing: border-box;
}
.rank-row:hover { border-color: var(--green); }
.rank-n {
  font-weight: 700;
  color: var(--green);
  font-variant-numeric: tabular-nums;
}
.rank-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rank-copy strong {
  font-size: 0.88rem;
  color: var(--text);
  overflow-wrap: anywhere;
}
.rank-metrics {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  font-variant-numeric: tabular-nums;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
  margin: 0 0 20px;
}
.filters .field { min-width: 140px; }
.filters .field.grow { flex: 1 1 220px; }
.chip {
  border: 1px solid var(--border);
  background: var(--cream);
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  height: 42px;
}
.chip:hover { color: var(--green); border-color: var(--green); }
.chip.active { background: var(--green); color: var(--cream); border-color: var(--green); }
.kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin: 0 0 20px;
}
.kpi-card { padding: 14px 16px; box-shadow: none; }
.kpi-card .usage-value strong { font-size: 1.15rem; }
.criativos-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.criativos-table th, .criativos-table td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.criativos-table th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  font-weight: 650;
  white-space: nowrap;
}
.criativos-table th.num, .criativos-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.criativos-table tbody tr { cursor: pointer; }
.criativos-table tbody tr:hover { background: var(--cream); }
.criativos-table tbody tr.band-group { cursor: default; }
.criativos-table tbody tr.band-group:hover { background: transparent; }
.criativos-table tbody tr.band-group td {
  padding-top: 18px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}
.nome-cell { display: inline; font-size: 0.82rem; overflow-wrap: anywhere; }
.band-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--green-soft);
  color: var(--green);
}
.band-pill.band-escalando { background: var(--ok-bg); color: var(--ok); }
.band-pill.band-estavel { background: #efe7d4; color: #6a5428; }
.band-pill.band-caindo { background: var(--error-bg); color: var(--error); }
.dead-badge {
  display: inline-flex;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--error-bg);
  color: var(--error);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.sheet {
  position: fixed;
  inset: 0;
  z-index: 40;
}
.sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(30, 53, 40, 0.28);
}
.sheet-panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(560px, 100%);
  overflow: auto;
  border-radius: 12px 0 0 12px;
  box-shadow: var(--shadow);
}
.sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.sheet-head h2 { margin: 0; font-size: 1.05rem; overflow-wrap: anywhere; }
.sheet-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0 24px;
}
.sheet-kpi {
  border: 1px solid var(--border);
  background: var(--cream);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sheet-kpi span { color: var(--muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; font-weight: 650; }
.sheet-kpi strong { color: var(--green); font-variant-numeric: tabular-nums; }
.dead-banner {
  background: var(--error-bg);
  color: var(--error);
  border: 1px solid #ead2cd;
  border-radius: 8px;
  padding: 10px 12px;
  font-weight: 650;
}
.oscillation {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: baseline;
  margin: 0 0 8px;
  font-size: 0.86rem;
}
.osc-delta { font-weight: 650; color: var(--green); }
.osc-delta.down { color: var(--error); }
.osc-delta.flat { color: var(--muted); font-weight: 550; }
.osc-vol { color: var(--muted); }
.spark-wrap { margin: 8px 0 8px; }
.spark { width: 100%; height: 188px; background: var(--cream); border: 1px solid var(--border); border-radius: 10px; }
.spark-line { stroke: var(--green); stroke-width: 2.5; }
.spark-bar { fill: var(--green); opacity: 0.55; }
.spark-bar.peak { fill: var(--green); opacity: 1; }
.spark-peak-label { fill: var(--green-deep); font-size: 11px; font-weight: 700; }
.spark-axis { fill: var(--muted); font-size: 10px; }
.peak-list { margin: 6px 0 24px; font-size: 0.82rem; color: var(--green); font-weight: 650; }
.ad-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ad-link {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  text-decoration: none;
  color: inherit;
  background: var(--cream);
}
.ad-link:hover { border-color: var(--green); }
.drive-hint { margin: 0 0 8px; }
.drive-cta { display: inline-flex; text-decoration: none; margin-top: 4px; }
.mock-foot { margin-top: 24px; color: var(--muted); font-size: 0.8rem; }
body.sheet-open { overflow: hidden; }
.demo-accounts {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--cream);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--muted);
}
.demo-accounts strong { color: var(--green); }
@media (max-width: 900px) {
  .home-grid { grid-template-columns: 1fr; }
  .sheet-panel { width: 100%; border-radius: 12px 12px 0 0; top: auto; height: min(92vh, 100%); }
}
.equipe-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.home-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  margin: 4px 0 8px;
}
.home-toolbar .field { margin: 0; }
.criativos-table.restricted th[data-fin] {
  display: none;
}
.equipe-table select.equipe-user {
  width: 100%;
  min-width: 180px;
  font: inherit;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--cream);
  color: var(--text);
}
.equipe-table .equipe-display { color: var(--green); font-weight: 650; }
#equipe-unassigned { margin: 0 0 16px; }
/* === hub-criativos overlay end === */

/* Lipsync monthly usage (editor) */
.usage-bar { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.usage-track { height: 6px; border-radius: 3px; background: rgba(127,127,127,.25); overflow: hidden; }
.usage-fill { height: 100%; width: 0; background: #2e9d5b; transition: width .3s; }
.usage-bar.over .usage-fill { background: #d33; }
.usage-bar.over .usage-text { color: #d33; font-weight: 600; }


/* Atalhos Guias internos */
.guias-atalho{position:fixed;right:20px;bottom:20px;z-index:30;display:flex;align-items:center;gap:8px;padding:8px 10px;background:#FAF6EE;border:1px solid #1F3D2B33;border-radius:999px;box-shadow:0 4px 14px rgba(31,61,43,.14);font-family:Inter,system-ui,sans-serif}
.guias-atalho-label{font-size:.72rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#1F3D2B;opacity:.7;padding:0 4px 0 6px}
.guias-atalho a{display:inline-flex;align-items:center;gap:6px;padding:7px 14px;border-radius:999px;background:#1F3D2B;color:#FAF6EE;font-size:.84rem;font-weight:600;text-decoration:none;white-space:nowrap}
.guias-atalho a:hover{background:#2c5a3e}
.guias-atalho a:focus-visible{outline:2px solid #1F3D2B;outline-offset:2px}
.guias-atalho svg{width:14px;height:14px;fill:currentColor}
@media (max-width:600px){.guias-atalho{left:12px;right:12px;bottom:12px;justify-content:center}.guias-atalho-label{display:none}.guias-atalho a{flex:1;justify-content:center;padding:9px 10px}}
