:root {
  --bg: #f3f5f3;
  --card: #fff;
  --soft: #f5f7f5;
  --ink: #1c2921;
  --muted: #7b8580;
  --border: #e5eae5;
  --accent: #c4f169;
  --green: #527a24;
  --red: #c2614b;
  --sidebar: #18201c;
  --shadow: 0 4px 22px #24392a04;
  --radius: 18px;
  font:
    14px -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
}
body.dark {
  --bg: #111814;
  --card: #1c2720;
  --soft: #243129;
  --ink: #ecf3ed;
  --muted: #9daa9f;
  --border: #314035;
  --green: #b4dd76;
  color-scheme: dark;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea,
summary {
  outline-offset: 4px;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.6;
}
button {
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--ink);
  border-radius: 9px;
  padding: 9px 14px;
  font-weight: 550;
  transition:
    background 0.15s,
    transform 0.15s;
}
button:hover {
  background: var(--soft);
}
button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #26351b;
}
button.primary:hover {
  background: #b4e258;
}
button.ghost {
  border-color: transparent;
  background: transparent;
}
.icon {
  width: 19px;
  height: 19px;
  display: inline-block;
  vertical-align: middle;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.icon-button {
  padding: 8px;
  display: grid;
  place-items: center;
}
.skip {
  position: fixed;
  top: -60px;
  z-index: 20;
  background: var(--accent);
  padding: 12px;
}
.skip:focus {
  top: 0;
}
.shell {
  display: grid;
  grid-template-columns: 238px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: var(--sidebar);
  color: #b3c1b6;
  position: fixed;
  inset: 0 auto 0 0;
  width: 238px;
  padding: 30px 18px 20px;
  display: flex;
  flex-direction: column;
  z-index: 5;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px 29px;
  color: white;
}
.brand-mark {
  background: var(--accent);
  color: #1e2b20;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  font-weight: 900;
  font-size: 21px;
  display: grid;
  place-items: center;
  letter-spacing: -2px;
}
.brand strong {
  font-size: 18px;
  letter-spacing: -0.5px;
}
.brand small {
  display: block;
  font-size: 9px;
  letter-spacing: 2px;
  color: #8a9d8d;
  margin-top: 1px;
}
.nav-label {
  font-size: 9px;
  letter-spacing: 1.8px;
  margin: 16px 14px 9px;
  color: #778c7c;
  font-weight: 700;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  margin-bottom: 4px;
  border-radius: 9px;
  font-size: 12px;
}
.nav-link:hover {
  background: #26332a;
  color: white;
}
.nav-link.active {
  background: var(--accent);
  color: #25351c;
  font-weight: 650;
}
.nav-link .count {
  margin-left: auto;
  font-size: 10px;
  background: #33452d;
  padding: 1px 6px;
  border-radius: 4px;
  color: #d1e4ca;
}
.subnav {
  padding-left: 17px;
}
.subnav .nav-link {
  font-size: 11px;
  padding: 7px 14px;
  gap: 9px;
}
.subnav .dot {
  width: 4px;
  height: 4px;
  background: #6d8371;
  border-radius: 50%;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 30px;
}
.workspace-badge {
  margin: 15px 8px 0;
  padding: 12px;
  border: 1px solid #354137;
  border-radius: 9px;
  font-size: 10px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #b9df7a;
  display: inline-block;
  flex-shrink: 0;
}
.workspace-badge small {
  display: block;
  color: #7f9383;
  font-size: 9px;
}
.workspace-badge .icon {
  width: 16px;
}
.main-shell {
  grid-column: 2;
  min-width: 0;
}
.topbar {
  height: 80px;
  padding: 0 34px;
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--card);
  border-bottom: 1px solid var(--border);
}
.breadcrumb {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}
.breadcrumb strong {
  color: var(--ink);
  font-weight: 500;
}
.topbar-spacer {
  flex: 1;
}
.search-button {
  width: 240px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 11px;
  padding: 9px 12px;
  background: var(--soft);
  font-weight: 400;
}
.search-button kbd {
  margin-left: auto;
  font-size: 9px;
  border: 1px solid var(--border);
  padding: 1px 4px;
  border-radius: 4px;
}
.avatar {
  height: 34px;
  width: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e9eedf;
  color: #415433;
  font-size: 11px;
  font-weight: 700;
  border: 3px solid var(--card);
}
.avatar-group {
  display: flex;
  align-items: center;
}
.avatar-group .avatar {
  margin-left: -7px;
  width: 30px;
  height: 30px;
  font-size: 9px;
}
main {
  padding: 30px 34px 40px;
  max-width: 1920px;
  margin: auto;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 25px;
}
.eyebrow {
  text-transform: uppercase;
  font-size: 9px;
  letter-spacing: 1.5px;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 6px;
}
.page-heading h1 {
  font-size: 29px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -1.1px;
  margin: 0 0 7px;
}
.page-heading p {
  margin: 0;
  font-size: 11px;
  color: var(--muted);
}
.heading-actions {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
}
.heading-actions button {
  font-size: 11px;
}
.filters {
  display: flex;
  gap: 8px;
  align-items: center;
}
select,
input,
textarea {
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--ink);
  border-radius: 8px;
  padding: 9px 11px;
  max-width: 100%;
}
select {
  font-size: 11px;
  cursor: pointer;
}
input[type="checkbox"] {
  accent-color: #6e9c36;
}
input[type="number"] {
  min-width: 70px;
}
textarea {
  min-height: 90px;
  resize: vertical;
}
.client-select {
  max-width: 200px;
  font-weight: 550;
}
.period-select {
  background: var(--card);
  min-width: 145px;
}
.date-input {
  font-size: 11px;
  width: 135px;
}
.notice {
  display: flex;
  gap: 8px;
  align-items: center;
  border: 1px solid #dee9cf;
  background: #edf4e2;
  color: #60713f;
  border-radius: 9px;
  font-size: 10px;
  padding: 8px 12px;
  margin-bottom: 22px;
}
.dark .notice {
  background: #273421;
  border-color: #405332;
  color: #c2d5a4;
}
.notice .right {
  margin-left: auto;
  white-space: nowrap;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  line-height: 1.5;
  font-weight: 550;
  padding: 3px 7px;
  border-radius: 5px;
  background: var(--soft);
  color: var(--muted);
  white-space: nowrap;
}
.badge.green {
  background: #eef6e7;
  color: #61883e;
}
.badge.orange {
  background: #fbf0de;
  color: #ad8240;
}
.badge.red {
  background: #fcf0ed;
  color: #b46451;
}
.badge.gray {
  background: var(--soft);
}
.dark .badge.green {
  background: #2e3d23;
  color: #b3d58e;
}
.dark .badge.orange {
  background: #41341f;
  color: #d8b170;
}
.dark .badge.red {
  background: #422a25;
  color: #e3a393;
}
.stats {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 22px;
  box-shadow: var(--shadow);
  padding: 20px 0;
}
.stats.four {
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: 0 20px;
  border-right: 1px solid var(--border);
  min-width: 0;
}
.stat:last-child {
  border: 0;
}
.stat-label {
  font-size: 10px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}
.stat-label .icon {
  width: 13px;
  height: 13px;
  color: #8a9b87;
}
.stat-value {
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -1px;
  line-height: 1.2;
  white-space: nowrap;
}
.stat-foot {
  font-size: 9px;
  margin-top: 7px;
  color: var(--muted);
}
.positive {
  color: var(--green);
}
.negative {
  color: var(--red);
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 22px;
  align-items: start;
}
.stack {
  display: grid;
  gap: 22px;
  min-width: 0;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 0;
  overflow: hidden;
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 21px 22px 0;
}
.card-head h2 {
  font-size: 13px;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.2px;
}
.card-head p {
  font-size: 10px;
  color: var(--muted);
  margin: 4px 0 0;
}
.card-head button {
  padding: 5px 8px;
  font-size: 9px;
}
.card-body {
  padding: 20px 22px;
}
.legend {
  display: flex;
  gap: 18px;
  font-size: 10px;
  color: var(--muted);
  align-items: center;
}
.legend i {
  width: 7px;
  height: 7px;
  display: inline-block;
  border-radius: 50%;
  margin-right: 5px;
}
.chart-container {
  padding: 20px 14px 12px;
}
.chart-container svg {
  width: 100%;
  height: auto;
  display: block;
  max-height: 250px;
  overflow: visible;
}
.chart-container svg text {
  font-size: 9px;
  fill: var(--muted);
  font-family: inherit;
}
.chart-container svg .gridline {
  stroke: var(--border);
}
.chart-note {
  font-size: 9px;
  color: var(--muted);
  margin: 9px 8px 0;
}
.chart-empty {
  padding: 60px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}
.tabs {
  display: flex;
  gap: 19px;
  padding: 0 22px;
  border-bottom: 1px solid var(--border);
  overflow: auto;
}
.tabs button {
  white-space: nowrap;
  border: 0;
  border-radius: 0;
  padding: 18px 0 13px;
  font-size: 10px;
  background: transparent;
  color: var(--muted);
  border-bottom: 2px solid transparent;
}
.tabs button[aria-selected="true"] {
  color: var(--ink);
  border-bottom-color: #6e963a;
}
.table-wrap {
  overflow: auto;
  padding: 0 20px 8px;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 10px;
  white-space: nowrap;
}
th {
  padding: 14px 8px;
  text-align: left;
  color: var(--muted);
  font-size: 9px;
  font-weight: 500;
  background: transparent;
  border-bottom: 1px solid var(--border);
}
td {
  padding: 15px 8px;
  border-bottom: 1px solid var(--border);
  color: var(--ink);
}
tbody tr:last-child td {
  border-bottom: 0;
}
td strong {
  font-weight: 550;
}
.table-wrap button {
  font-size: 9px;
  padding: 4px 7px;
}
tr.clickable {
  cursor: pointer;
}
tr.clickable:hover {
  background: var(--soft);
}
.platform {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.platform-dot {
  width: 6px;
  height: 6px;
  border-radius: 2px;
  display: inline-block;
  background: #89a459;
}
.platform-dot.meta {
  background: #879bd4;
}
.platform-dot.google {
  background: #d4b06b;
}
.progress {
  height: 4px;
  background: var(--soft);
  border-radius: 8px;
  overflow: hidden;
  margin: 5px 0;
}
.progress span {
  height: 100%;
  display: block;
  background: #8eb65d;
  border-radius: 8px;
}
.progress.warning span {
  background: #d5a351;
}
.metric-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 10px;
  gap: 10px;
}
.metric-row:last-child {
  border: 0;
}
.metric-row span {
  color: var(--muted);
}
.metric-row strong {
  font-weight: 550;
}
.social-summary {
  padding: 15px;
  background: var(--soft);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.social-summary p {
  font-size: 9px;
  color: var(--muted);
  margin: 0;
}
.social-summary strong {
  font-size: 24px;
  letter-spacing: -0.7px;
  font-weight: 600;
}
.ring {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: conic-gradient(#90b95a 0 72%, var(--border) 72%);
  display: grid;
  place-items: center;
}
.ring:after {
  content: "";
  background: var(--soft);
  width: 47px;
  height: 47px;
  border-radius: 50%;
}
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-top: 12px;
}
.post-tile {
  height: 76px;
  border-radius: 8px;
  background: linear-gradient(145deg, #c5d4b8, #6b8063);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 9px;
  overflow: hidden;
  font-size: 8px;
  font-weight: 600;
}
.post-tile:nth-child(2) {
  background: linear-gradient(145deg, #c5b89c, #766e55);
}
.post-tile:nth-child(3) {
  background: linear-gradient(145deg, #b6c2ca, #5f747a);
}
.post-tile span {
  font-size: 8px;
  opacity: 0.8;
}
.subheading {
  font-size: 10px;
  font-weight: 600;
  margin: 18px 0 7px;
}
.mini-kpi {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.mini-kpi:last-child {
  border: 0;
}
.mini-kpi span {
  font-size: 10px;
  color: var(--muted);
}
.mini-kpi strong {
  font-size: 24px;
  display: block;
  font-weight: 550;
  letter-spacing: -0.6px;
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-bottom: 22px;
}
.four-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 22px;
}
.three-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 22px;
}
.source-card .source-logo {
  width: 39px;
  height: 39px;
  background: var(--soft);
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #67804d;
  margin-bottom: 18px;
}
.source-card h3 {
  font-size: 14px;
  margin: 0 0 4px;
}
.source-card p {
  font-size: 10px;
  color: var(--muted);
  margin: 0 0 17px;
  min-height: 28px;
}
.source-card .button-row {
  display: flex;
  gap: 7px;
  margin-top: 20px;
}
.source-card button {
  font-size: 10px;
  flex: 1;
}
.source-card .badge {
  margin-top: 10px;
}
.creative {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--soft);
  padding: 10px;
  border-radius: 10px;
  margin: 9px 0;
}
.creative-art {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: -1px;
  background: #c8d8b8;
  color: #495e3a;
}
.creative:nth-child(2) .creative-art {
  background: #ded6c2;
  color: #7b6b44;
}
.creative:nth-child(3) .creative-art {
  background: #cbd7dd;
  color: #536b78;
}
.creative strong {
  font-size: 10px;
  font-weight: 550;
  display: block;
}
.creative small {
  font-size: 9px;
  color: var(--muted);
}
.creative .creative-rate {
  margin-left: auto;
  text-align: right;
  font-size: 13px;
  white-space: nowrap;
}
.empty {
  padding: 30px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 11px;
}
.empty strong {
  display: block;
  color: var(--ink);
  margin-bottom: 6px;
  font-size: 13px;
}
.empty button {
  margin-top: 12px;
  font-size: 10px;
}
.client-initials {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #edf2e8;
  color: #61744e;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 650;
}
.client-cell {
  display: flex;
  gap: 11px;
  align-items: center;
}
.client-cell small {
  display: block;
  color: var(--muted);
  font-size: 9px;
  margin-top: 2px;
}
.row-tools {
  display: flex;
  gap: 5px;
  align-items: center;
}
.toggle {
  width: 31px;
  height: 18px;
  border: 0;
  padding: 2px;
  background: #d9dfd9;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
}
.toggle span {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: white;
  display: block;
}
.toggle.on {
  background: #93b95c;
}
.toggle.on span {
  margin-left: 13px;
}
.settings-grid {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 22px;
}
.settings-menu {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 11px;
}
.settings-menu a {
  padding: 10px 14px;
  border-radius: 8px;
}
.settings-menu a:hover {
  background: var(--card);
}
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 13px;
  font-size: 11px;
  color: var(--muted);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font-size: 12px;
  color: var(--ink);
}
.field small {
  font-size: 10px;
}
.field.full {
  grid-column: 1/-1;
}
.check-label {
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 11px;
  padding: 9px 0;
}
.form-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 15px;
  border-top: 1px solid var(--border);
  margin-top: 12px;
}
.settings-grid .card {
  scroll-margin-top: 20px;
}
.settings-grid .card-body > p {
  font-size: 11px;
  color: var(--muted);
}
.report-sections {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}
.info-box {
  padding: 14px;
  border: 1px dashed var(--border);
  border-radius: 10px;
  font-size: 11px;
  color: var(--muted);
  margin: 14px 0;
}
.inline-form {
  display: flex;
  gap: 10px;
  align-items: center;
}
.inline-form input {
  flex: 1;
}
.lead-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  font-size: 11px;
}
.lead-details .info-box {
  margin: 0;
}
.notes {
  max-height: 240px;
  overflow: auto;
}
.note {
  background: var(--soft);
  padding: 12px;
  border-radius: 8px;
  margin: 8px 0;
  font-size: 11px;
  white-space: pre-wrap;
}
.note small {
  display: block;
  color: var(--muted);
  font-size: 9px;
  margin-top: 6px;
}
.budget-text {
  font-size: 9px;
  color: var(--muted);
}
.budget-text strong {
  color: var(--ink);
}
.insight {
  display: flex;
  gap: 11px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.insight:last-child {
  border: 0;
}
.insight .icon {
  color: #93ac65;
  width: 16px;
  height: 16px;
}
.insight p {
  font-size: 10px;
  color: var(--muted);
  margin: 3px 0 0;
}
.insight strong {
  font-size: 11px;
  font-weight: 550;
}
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 15px 22px;
}
.toolbar input {
  font-size: 10px;
  max-width: 220px;
}
.toolbar select {
  font-size: 10px;
}
.footer {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 9px;
  margin-top: 26px;
  padding: 0 2px;
}
.loading {
  display: grid;
  place-items: center;
  min-height: 100vh;
  letter-spacing: 2px;
  font-size: 12px;
}
dialog {
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--ink);
  border-radius: 18px;
  padding: 0;
  width: min(620px, 94vw);
  max-height: 90vh;
  box-shadow: 0 20px 100px #0003;
}
dialog::backdrop {
  background: #10231870;
  backdrop-filter: blur(3px);
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 25px;
  border-bottom: 1px solid var(--border);
}
.modal-head h2 {
  font-size: 18px;
  letter-spacing: -0.5px;
  margin: 0;
}
.modal-body {
  padding: 22px 25px;
  max-height: 72vh;
  overflow: auto;
}
.modal-body p {
  font-size: 12px;
  color: var(--muted);
}
.modal-body h3 {
  font-size: 12px;
}
.form-error {
  font-size: 11px;
  color: var(--red);
  margin: 10px 0;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #203327;
  color: white;
  padding: 12px 20px;
  border-radius: 11px;
  z-index: 50;
  box-shadow: 0 8px 30px #0002;
  font-size: 12px;
  transition: transform 0.2s;
  max-width: 90vw;
}
#toast.show {
  transform: translateX(-50%) translateY(0);
}
.mobile-menu {
  display: none;
}
.heatmap {
  display: grid;
  grid-template-columns: 45px repeat(6, 1fr);
  gap: 5px;
  font-size: 9px;
  color: var(--muted);
}
.heat-cell {
  height: 27px;
  border-radius: 3px;
  background: var(--soft);
  display: grid;
  place-items: center;
  color: #47622d;
}
.vital {
  display: flex;
  justify-content: space-between;
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 10px;
  align-items: center;
  margin: 10px 0;
}
.vital strong {
  font-size: 21px;
}
.vital small {
  display: block;
  color: var(--muted);
  font-size: 9px;
}
.compact td {
  padding: 9px 8px;
}
.compact .card-body {
  padding: 14px 18px;
}
.reduce-motion * {
  animation: none !important;
  transition: none !important;
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
.error-banner {
  padding: 25px;
  background: #fcf0ed;
  color: #9e4f3d;
  border-radius: 12px;
}
.danger {
  color: #b55d49;
}
.link {
  color: var(--green);
  text-decoration: underline;
}
.search-results {
  display: grid;
  gap: 8px;
}
.search-results a {
  padding: 13px;
  background: var(--soft);
  border-radius: 8px;
  font-size: 12px;
  display: flex;
  justify-content: space-between;
}
.archive-note {
  font-size: 10px;
  color: var(--muted);
}
@media (min-width: 1500px) {
  main {
    padding: 35px 40px;
  }
  .dashboard-grid {
    grid-template-columns: minmax(0, 1fr) 320px;
  }
  .stat-value {
    font-size: 29px;
  }
  .chart-container svg {
    max-height: 280px;
  }
}
@media (max-width: 1180px) {
  .shell {
    grid-template-columns: 210px 1fr;
  }
  .sidebar {
    width: 210px;
    padding: 24px 12px;
  }
  .topbar {
    padding: 0 22px;
  }
  .search-button {
    width: 180px;
  }
  main {
    padding: 24px 22px;
  }
  .dashboard-grid {
    grid-template-columns: minmax(0, 1fr) 245px;
    gap: 16px;
  }
  .stack {
    gap: 16px;
  }
  .stats {
    padding: 17px 0;
  }
  .stat {
    padding: 0 12px;
  }
  .stat-value {
    font-size: 21px;
  }
  .stat-label {
    font-size: 9px;
  }
  .three-grid,
  .four-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .tabs {
    gap: 12px;
    padding: 0 14px;
  }
  .tabs button {
    font-size: 9px;
  }
  .card-head {
    padding: 17px 17px 0;
  }
  .card-body {
    padding: 17px;
  }
  .breadcrumb {
    display: none;
  }
}
@media (max-width: 950px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-grid > aside {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px 0;
  }
  .stat:nth-child(3) {
    border: 0;
  }
  .stats.four {
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
  }
  .page-heading {
    align-items: start;
  }
  .page-heading h1 {
    font-size: 26px;
  }
  .heading-actions {
    justify-content: flex-end;
  }
  .date-input {
    display: none;
  }
  .search-button {
    width: 150px;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .settings-menu {
    flex-direction: row;
    overflow: auto;
  }
  .split {
    gap: 16px;
  }
}
@media (max-width: 700px) {
  .shell {
    grid-template-columns: 1fr;
  }
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s;
    width: 238px;
    box-shadow: 20px 0 80px #0002;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .main-shell {
    grid-column: 1;
  }
  .mobile-menu {
    display: grid;
  }
  .topbar {
    height: 65px;
    padding: 0 16px;
    gap: 12px;
  }
  .topbar-spacer {
    display: none;
  }
  .search-button {
    width: 34px;
    padding: 8px;
    justify-content: center;
    border: 0;
    background: transparent;
  }
  .search-button span,
  .search-button kbd {
    display: none;
  }
  .client-select {
    flex: 1;
    max-width: none;
  }
  .topbar .avatar {
    margin-left: auto;
  }
  main {
    padding: 22px 16px;
  }
  .page-heading {
    flex-direction: column;
    gap: 16px;
  }
  .page-heading h1 {
    font-size: 27px;
  }
  .heading-actions {
    justify-content: start;
    width: 100%;
  }
  .stats {
    border-radius: 13px;
    margin-bottom: 16px;
  }
  .stats.four {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 0;
  }
  .stats.four .stat:nth-child(2) {
    border: 0;
  }
  .stat-value {
    font-size: 23px;
  }
  .stat-foot {
    font-size: 8px;
  }
  .notice {
    font-size: 9px;
    margin-bottom: 16px;
    align-items: start;
  }
  .notice .right {
    display: none;
  }
  .dashboard-grid > aside {
    grid-template-columns: 1fr;
  }
  .split,
  .three-grid,
  .four-grid {
    grid-template-columns: 1fr;
  }
  .card {
    border-radius: 13px;
  }
  .field-grid {
    grid-template-columns: 1fr;
  }
  .lead-details {
    grid-template-columns: 1fr;
  }
  .footer {
    font-size: 8px;
  }
  .settings-menu a {
    padding: 8px 10px;
    white-space: nowrap;
  }
  .table-wrap {
    padding: 0 12px 8px;
  }
  .card-head {
    padding: 17px 16px 0;
  }
  .tabs {
    gap: 17px;
  }
  .tabs button {
    font-size: 10px;
  }
  .date-input {
    display: block;
  }
  .toolbar {
    padding: 12px 16px;
  }
  .toolbar input {
    max-width: 170px;
  }
}
@media print {
  .sidebar,
  .topbar,
  .heading-actions,
  .notice,
  .footer,
  button {
    display: none !important;
  }
  .shell {
    display: block;
  }
  .main-shell {
    grid-column: 1;
  }
  main {
    padding: 0;
  }
  .card,
  .stats {
    break-inside: avoid;
    box-shadow: none;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .card {
    margin-bottom: 15px;
  }
}

.brand-mark {
  flex-shrink: 0;
}
.brand small {
  font-size: 8px;
  letter-spacing: 1.4px;
  max-width: 140px;
}
.brand {
  gap: 9px;
}
.sidebar {
  overflow-y: auto;
}

.meta-error {
  background: #fbede9;
  border-color: #ead0c8;
  color: #9b5847;
}
.notice .heading-actions button {
  font-size: 10px;
}
.notice strong {
  font-size: 11px;
}

/* Detalhamento da Meta: métricas do período e exploração por nível. */
.meta-analysis-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 6px 0 19px;
  font-size: 11px;
  color: var(--muted);
}
.meta-analysis-caption > span {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
}
.meta-analysis-caption small {
  font-size: 10px;
}
.meta-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 23px;
}
.meta-kpi {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 19px 21px;
  box-shadow: var(--shadow);
}
.meta-kpi > strong {
  font-size: 29px;
  font-weight: 600;
  letter-spacing: -1px;
  line-height: 1.4;
  display: block;
}
.meta-kpi:first-child {
  background: #e9f2dc;
  border-color: #dce8ca;
}
.dark .meta-kpi:first-child {
  background: #2a3b20;
  border-color: #3d532f;
}
.meta-kpi-foot {
  font-size: 9px;
  color: var(--muted);
  min-height: 15px;
  margin-top: 5px;
}
.meta-analysis-context {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(280px, 1fr);
  gap: 22px;
  margin-bottom: 27px;
  align-items: start;
}
.meta-analysis-context .stack {
  gap: 0;
}
.meta-analysis-context .chart-note {
  padding: 0 8px;
}
.meta-analysis-context .insight {
  padding: 13px 0;
}
.meta-analysis-context .insight p {
  overflow-wrap: anywhere;
}
.meta-explorer-heading {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  padding: 24px 24px 10px;
}
.meta-explorer-heading h2 {
  font-size: 18px;
  letter-spacing: -0.5px;
  margin: 0;
}
.meta-explorer-heading button {
  font-size: 10px;
}
.meta-tabs {
  gap: 23px;
}
.meta-tabs button {
  font-size: 11px;
}
.meta-tabs button span {
  margin-left: 4px;
  background: var(--soft);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 9px;
}
.meta-detail-toolbar {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
}
.meta-detail-toolbar input {
  width: 230px;
  font-size: 11px;
}
.meta-detail-toolbar select {
  max-width: 280px;
}
.meta-detail-toolbar > span {
  font-size: 9px;
  color: var(--muted);
  margin-left: auto;
}
.meta-entity {
  min-width: 190px;
  max-width: 285px;
  white-space: normal;
  overflow-wrap: anywhere;
}
.meta-entity > strong {
  font-size: 11px;
  display: block;
  line-height: 1.5;
}
.meta-entity > small {
  font-size: 9px;
  color: var(--muted);
  display: block;
  margin-top: 5px;
  line-height: 1.4;
}
.meta-explorer table td {
  padding-top: 19px;
  padding-bottom: 19px;
}
.meta-explorer table th {
  padding-top: 15px;
  padding-bottom: 15px;
}
.meta-explorer table td:nth-child(3) {
  background: #90b65c06;
}
.meta-explorer .table-wrap {
  padding-bottom: 14px;
}
.meta-cut-layout {
  padding: 22px;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(0, 1.7fr);
  gap: 25px;
}
.meta-cut-layout h3 {
  font-size: 13px;
  margin: 0 0 10px;
}
.meta-cut-layout .table-wrap {
  padding: 0;
}
.meta-cut-row {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.meta-cut-row > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: 10px;
}
.meta-cut-row > div:first-child strong {
  font-weight: 550;
}
.meta-cut-row > small {
  display: block;
  font-size: 9px;
  color: var(--muted);
  margin-top: 6px;
}
.meta-cut-row .progress {
  height: 6px;
  margin-top: 9px;
}
.meta-creative-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  padding: 24px;
}
.meta-creative-card {
  border: 1px solid var(--border);
  border-radius: 13px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--card);
}
.meta-creative-media {
  height: 245px;
  background: #e9ece6;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.dark .meta-creative-media {
  background: #111814;
}
.meta-creative-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.meta-creative-media > .badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #fffffff0;
  color: #4e6042;
  box-shadow: 0 2px 8px #0001;
}
.meta-image-empty {
  font-size: 11px;
  color: #7c8975;
  padding: 20px;
  text-align: center;
}
.image-unavailable:after {
  content: "Imagem indisponível no momento";
  font-size: 11px;
  color: var(--muted);
  padding: 20px;
  display: block;
  text-align: center;
}
.meta-creative-info {
  padding: 17px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.meta-creative-info > small {
  font-size: 9px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.meta-creative-info h3 {
  font-size: 13px;
  line-height: 1.45;
  margin: 8px 0;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.meta-creative-info > p {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
  margin: 0 0 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: pre-wrap;
  min-height: 45px;
}
.meta-creative-info > button {
  margin-top: auto;
  font-size: 10px;
  width: 100%;
}
.meta-creative-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  border-top: 1px solid var(--border);
  padding: 15px 0;
  margin-top: auto;
}
.meta-creative-metrics small {
  display: block;
  font-size: 9px;
  color: var(--muted);
}
.meta-creative-metrics strong {
  font-size: 15px;
  display: block;
  font-weight: 550;
  margin-top: 3px;
}
.meta-bottom-note {
  font-size: 9px;
  color: var(--muted);
  padding: 15px 4px;
  text-align: center;
}
.meta-analysis-loading {
  text-align: center;
  padding: 65px 20px;
}
.meta-analysis-loading h2 {
  font-size: 17px;
  margin: 20px 0 6px;
}
.meta-analysis-loading p {
  font-size: 11px;
  color: var(--muted);
}
.meta-loading-ring {
  margin: auto;
  width: 29px;
  height: 29px;
  border: 3px solid var(--border);
  border-top-color: #8aaa59;
  border-radius: 50%;
  animation: meta-spin 1.1s linear infinite;
}
@keyframes meta-spin {
  to {
    transform: rotate(360deg);
  }
}
.wide-modal {
  width: min(1150px, 96vw);
}
.wide-modal .modal-body {
  max-height: 76vh;
}
.meta-modal-status {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
}
.meta-modal-status > span:last-child {
  font-size: 10px;
  color: var(--muted);
}
.meta-modal-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 23px;
}
.meta-modal-metrics > div {
  padding: 15px 17px;
  background: var(--card);
}
.meta-modal-metrics small {
  display: block;
  font-size: 9px;
  color: var(--muted);
}
.meta-modal-metrics strong {
  font-size: 20px;
  display: block;
  letter-spacing: -0.5px;
  margin-top: 4px;
}
.meta-ad-preview {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 25px;
  padding: 20px;
  background: var(--soft);
  border-radius: 12px;
  margin-top: 20px;
}
.meta-ad-preview img {
  width: 100%;
  max-height: 380px;
  object-fit: contain;
  border-radius: 8px;
}
.meta-ad-preview h3 {
  font-size: 17px;
  margin: 0 0 15px;
}
.meta-ad-copy {
  font-size: 12px !important;
  white-space: pre-wrap;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.wide-modal h3 {
  margin-top: 20px;
}
.wide-modal .table-wrap {
  padding: 0;
}
.wide-modal .meta-entity {
  max-width: 270px;
}
@media (min-width: 1500px) {
  .meta-creative-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .meta-creative-media {
    height: 250px;
  }
}
@media (max-width: 1180px) {
  .meta-analysis-context {
    grid-template-columns: minmax(0, 1.5fr) minmax(230px, 1fr);
    gap: 16px;
  }
  .meta-kpi {
    padding: 16px;
  }
  .meta-kpi > strong {
    font-size: 24px;
  }
  .meta-creative-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .meta-tabs {
    gap: 16px;
  }
  .meta-detail-toolbar input {
    width: 180px;
  }
  .meta-detail-toolbar select {
    max-width: 210px;
  }
  .meta-cut-layout {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 800px) {
  .meta-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
  }
  .meta-analysis-context {
    grid-template-columns: 1fr;
  }
  .meta-analysis-caption {
    align-items: start;
    flex-direction: column;
    gap: 8px;
  }
  .meta-explorer-heading {
    padding: 20px 17px 8px;
  }
  .meta-explorer-heading h2 {
    font-size: 16px;
  }
  .meta-detail-toolbar {
    padding: 14px;
    gap: 7px;
  }
  .meta-detail-toolbar input {
    width: 100%;
  }
  .meta-detail-toolbar select {
    flex: 1;
    max-width: 48%;
    font-size: 10px;
  }
  .meta-detail-toolbar > span {
    display: none;
  }
  .meta-creative-grid {
    padding: 15px;
    gap: 13px;
  }
  .meta-creative-media {
    height: 180px;
  }
  .meta-modal-metrics {
    grid-template-columns: repeat(3, 1fr);
  }
  .meta-ad-preview {
    grid-template-columns: 1fr;
  }
  .meta-ad-preview img {
    max-height: 300px;
  }
  .meta-cut-layout {
    padding: 17px;
  }
  .meta-tabs button {
    font-size: 10px;
  }
}
@media (max-width: 450px) {
  .meta-kpi {
    padding: 14px;
  }
  .meta-kpi > strong {
    font-size: 23px;
  }
  .meta-creative-grid {
    grid-template-columns: 1fr;
  }
  .meta-creative-media {
    height: 290px;
  }
  .meta-modal-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .meta-explorer-heading > button {
    padding: 7px;
    font-size: 9px;
  }
  .meta-tabs {
    gap: 19px;
  }
}

.meta-analysis-caption .row-tools button {
  font-size: 10px;
  white-space: nowrap;
}
/* Portal de acesso e convidados. */
.login-layout{min-height:100vh;display:grid;grid-template-columns:1.1fr 1fr;background:#111713;color:#eef3ed}.login-intro{padding:64px 8vw;display:flex;flex-direction:column;justify-content:space-between;min-height:100vh;background:radial-gradient(ellipse at 20% 75%,#344831 0,transparent 65%)}.login-intro h1{font-size:clamp(38px,4vw,68px);line-height:1.05;letter-spacing:-2.5px;margin:20px 0}.login-intro p{max-width:410px;font-size:16px;line-height:1.8;color:#afbbad}.login-intro>small{color:#81917f}.login-pills{display:flex;flex-wrap:wrap;gap:9px;margin-top:30px}.login-pills span{padding:9px 13px;border:1px solid #465341;border-radius:30px;font-size:11px;color:#c2d3bc}.login-panel{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:24px;padding:48px;background:#171d19}.login-panel>small{color:#758773;font-size:10px}.login-card{width:100%;max-width:400px}.login-card h2{font-size:30px;letter-spacing:-1px;margin:12px 0}.login-card>p{font-size:13px;line-height:1.7;color:#a5b2a2}.login-card form{display:grid;gap:20px;margin:30px 0}.login-card input{font-size:14px;padding:14px;background:#202921;color:#f0f3ef;border:1px solid #394536}.login-card button{width:100%;justify-content:center;padding:15px;font-size:13px}.login-card small,.login-help{font-size:11px!important;color:#93a18e}.guest-clients{display:grid;gap:12px;padding:16px;border:1px solid var(--line);border-radius:8px;margin:12px 0 22px}.invite-email{display:inline-flex;padding:9px 12px;color:var(--text);font-size:11px;border:1px solid var(--line);border-radius:6px}.sidebar-bottom>button{width:100%;margin-top:12px}.login-layout .brand{color:#f1f3ee}.login-layout .brand-mark{background:#b6d0a9;color:#1c271a}.login-layout .brand small{color:#a7b5a2}
@media(max-width:850px){.login-layout{grid-template-columns:1fr}.login-intro{min-height:260px;padding:30px}.login-intro>small,.login-pills{display:none}.login-intro h1{font-size:36px;margin:24px 0 12px}.login-intro p{font-size:13px}.login-panel{padding:36px 24px;min-height:60vh}}
