/* Approved unified direction. Shared across public and authenticated pages. */
@font-face { font-family: Geist; src: url("fonts/geist/geist-400.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: Geist; src: url("fonts/geist/geist-500.ttf") format("truetype"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: Geist; src: url("fonts/geist/geist-600.ttf") format("truetype"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: Geist; src: url("fonts/geist/geist-700.ttf") format("truetype"); font-weight: 700; font-style: normal; font-display: swap; }

.rastreio-ds-1 {
  --workspace-ink: #171b24;
  --workspace-muted: #657084;
  --workspace-line: #e5e8ee;
  --workspace-paper: #fff;
  --color-brand: #075bff;
  --color-brand-hover: #004bd6;
  --color-text: #171b24;
  --color-text-muted: #657084;
  --color-border: #e5e8ee;
  --color-border-strong: #cbd2dd;
  --color-canvas: #f6f7f9;
  --color-surface: #fff;
  --color-text-soft: #596477;
  --v3-ink: #171b24;
  --v3-ink-soft: #29323e;
  --v3-paper: #fff;
  --v3-line: #e5e8ee;
  --v3-blue: #075bff;
  --v3-blue-soft: #e8efff;
  --v3-orange: #f47524;
  --v3-muted: #657084;
  color-scheme: light;
  --color-chart-primary: #075bff;
  --color-chart-press: #f47524;
  --color-chart-grid: #e5e8ee;
  --font-family: Geist, "Segoe UI", sans-serif;
  font-family: var(--font-family);
  color: var(--workspace-ink);
  background: #fff;
  font-synthesis: none;
}
.rastreio-ds-1 :is(h1,h2,h3,h4,button,input,select,textarea) { font-family: inherit; }
.rastreio-ds-1 :is(h1,h2,h3,h4) { color: var(--workspace-ink); }
.rastreio-ds-1 :is(input,select,textarea) { border-color: #dce1e9; border-radius: 7px; box-shadow: none; background: #fff; }
.rastreio-ds-1 :is(button,a,input,select,textarea,summary):focus-visible { outline: 3px solid #6598ff; outline-offset: 3px; }
.rastreio-ds-1 .app-shell-authenticated { grid-template-columns: 14rem minmax(0,1fr); }
.rastreio-ds-1 .app-workspace { background: #fff; }
.rastreio-ds-1 .app-workspace > main { max-width: 88rem; padding: 2rem 2.5rem 3rem; margin-inline: auto; }
.rastreio-ds-1 .app-sidebar { padding: 0 0 1rem; background: #f6f7f9; color: #657084; border-right: 1px solid var(--workspace-line); box-shadow: none; }
.rastreio-ds-1 .sidebar-brand-row { min-height: 72px; box-sizing: border-box; padding: 0 1rem; background: #171e26; border: 0; gap: .5rem; align-items: center; }
.rastreio-ds-1 .app-brand { padding: 0; color: #fff; gap: .6rem; }
.rastreio-ds-1 .app-brand strong { font-size: 1.05rem; letter-spacing: -.04em; }
.rastreio-ds-1 .app-brand small { display: none; }
.rastreio-ds-1 .brand-orbit { width: 1.55rem; height: 1.55rem; flex-basis: 1.55rem; border-color: #fff; box-shadow: none; }
.rastreio-ds-1 .brand-orbit::before { background: #fff; }
.rastreio-ds-1 .sidebar-toggle { background: transparent; border-color: #46505d; color: #c7d0dc; }
.rastreio-ds-1 .app-sidebar .main-nav { padding: .4rem .7rem; gap: .2rem; margin-top: 1.1rem; }
.rastreio-ds-1 .app-sidebar .main-nav a { min-height: 2.65rem; padding: .6rem .7rem; color: #596477; font-size: .82rem; font-weight: 500; border: 1px solid transparent; border-radius: 7px; box-shadow: none; }
.rastreio-ds-1 .app-sidebar .main-nav a:hover { background: #eaeef4; color: #171b24; transform: none; }
.rastreio-ds-1 .app-sidebar .main-nav a.nav-clipping { color: #9c420b; }
.rastreio-ds-1 .app-sidebar .main-nav a.nav-clipping .nav-icon { color: inherit; }
.rastreio-ds-1 .app-sidebar .main-nav a.nav-clipping:is(:hover,:focus-visible) { color: #9c420b; background: #fff0e5; }
.rastreio-ds-1 .app-sidebar .main-nav a[aria-current="page"] { color: #075bff; background: #e8efff; border-color: transparent; box-shadow: none; }
.rastreio-ds-1 .app-sidebar .main-nav a.nav-clipping[aria-current="page"] { color: #9c420b; background: #fff0e5; }
.rastreio-ds-1 .sidebar-footer { margin-inline: 1.4rem; color: #657084; border-color: #e5e8ee; line-height: 1.6; }
.rastreio-ds-1 .sidebar-status { color: #596477; font-size: .7rem; }
.rastreio-ds-1 .app-workspace .app-topbar { min-height: 72px; padding: .65rem 2.5rem; background: #171e26; border: 0; box-shadow: none; color: #fff; backdrop-filter: none; }
.rastreio-ds-1 .topbar-title strong { color: #fff; font-size: 1rem; letter-spacing: -.025em; }
.rastreio-ds-1 .topbar-status { color: #aeb9c8; }
.rastreio-ds-1 .app-topbar .user-info { color: #d5dce6; background: transparent; border: 0; font-size: .75rem; }
.rastreio-ds-1 .app-topbar :is(.btn-outline,.btn-secondary) { background: transparent; border: 1px solid #46505d; color: #e0e6ee; min-height: 2rem; font-size: .75rem; border-radius: 6px; box-shadow: none; }
.rastreio-ds-1 .app-topbar :is(.btn-outline,.btn-secondary):hover { background: #303947; }
.rastreio-ds-1 .topbar-client .client-switcher-form select { background: #29323e; border-color: #46505d; color: #fff; min-height: 2.2rem; font-size: .8rem; font-weight: 500; color-scheme: dark; }
.rastreio-ds-1 .topbar-client .client-switcher-form label { color: #d5dce6; }
.rastreio-ds-1 .mobile-brand { color: #fff; }
.rastreio-ds-1 :is(.btn-primary,.btn-outline,.btn-secondary,.btn-press) { border-radius: 7px; font-size: .8rem; font-weight: 500; min-height: 2.5rem; box-shadow: none; }
.rastreio-ds-1 .btn-primary { background: #075bff; color: #fff; }
.rastreio-ds-1 .btn-primary:hover { background: #004bd6; }
.rastreio-ds-1 .btn-press { background: #b64d0c; color: #fff; }
.rastreio-ds-1 .section-kicker { font-size: .65rem; font-weight: 500; letter-spacing: .06em; color: #657084; }

/* Overview: open metrics, fine dividers and an actionable review queue. */
.rastreio-ds-1 .dashboard-v3 { gap: 1.5rem; }
.rastreio-ds-1 .dashboard-v3 .decision-dashboard-heading { padding: 0; align-items: center; }
.rastreio-ds-1 .dashboard-v3 .decision-dashboard-heading h2 { font-size: clamp(1.45rem,2.3vw,2rem); font-weight: 600; letter-spacing: -.045em; line-height: 1.2; margin: .35rem 0 .45rem; }
.rastreio-ds-1 .dashboard-v3 .decision-dashboard-heading p { font-size: .8rem; max-width: 58ch; }
.rastreio-ds-1 .overview-period { margin-top: .6rem; font-size: .72rem; padding: .35rem .6rem; border: 1px solid var(--workspace-line); border-radius: 6px; background: #fff; font-variant-numeric: tabular-nums; }
.rastreio-ds-1 .dashboard-v3 .decision-kpi-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0; padding: .2rem 0 1.4rem; border-bottom: 1px solid var(--workspace-line); }
.rastreio-ds-1 .dashboard-v3 .channel-card { padding: 0 1.5rem; background: transparent; border: 0; border-radius: 0; box-shadow: none; gap: .45rem; }
.rastreio-ds-1 .dashboard-v3 .channel-card:first-child { padding-left: 0; }
.rastreio-ds-1 .dashboard-v3 .channel-card + .channel-card { border-left: 1px solid var(--workspace-line); }
.rastreio-ds-1 .dashboard-v3 .channel-card-header { display: flex; flex-wrap: wrap; gap: .4rem; }
.rastreio-ds-1 .dashboard-v3 .channel-card-header h3 { font-size: .8rem; font-weight: 500; margin: .25rem 0 0; }
.rastreio-ds-1 .channel-dot { background: #075bff; box-shadow: none; width: 7px; height: 7px; }
.rastreio-ds-1 .channel-press .channel-dot { background: #f47524; }
.rastreio-ds-1 .dashboard-v3 .channel-metrics { margin: .3rem 0 0; }
.rastreio-ds-1 .dashboard-v3 .channel-metrics span { max-width: none; }
.rastreio-ds-1 .dashboard-v3 .channel-metrics strong,.rastreio-ds-1 .overview-negative-total { color: #171b24; font-size: 2.25rem; font-weight: 600; line-height: 1.1; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.rastreio-ds-1 .overview-negative-total { margin-top: .4rem; }
.rastreio-ds-1 .dashboard-v3 .overview-sentiment { grid-column: auto; display: flex; align-items: stretch; }
.rastreio-ds-1 .dashboard-v3 .channel-card :is(p,small) { font-size: .72rem; line-height: 1.55; }
.rastreio-ds-1 .dashboard-v3 .channel-empty { padding: .4rem 0; border: 0; background: transparent; }
.rastreio-ds-1 .dashboard-v3 .channel-empty strong { font-size: .85rem; font-weight: 500; line-height: 1.4; }
.rastreio-ds-1 .channel-status { font-size: .6rem; font-weight: 500; padding: .2rem .4rem; border-radius: 4px; }
.rastreio-ds-1 .overview-drilldown { font-size: .73rem; font-weight: 500; }
.rastreio-ds-1 .attention-banner { display: flex; align-items: center; gap: .7rem; margin: -.2rem 0 0; padding: .85rem 1rem; background: #fff8ef; border: 1px solid #f4dfc5; border-radius: 8px; color: #72501d; font-size: .75rem; }
.rastreio-ds-1 .attention-symbol { display: grid; place-items: center; flex: 0 0 1.25rem; height: 1.25rem; border: 1.5px solid currentColor; border-radius: 50%; font-weight: 600; }
.rastreio-ds-1 .attention-banner p { margin: 0; display: grid; gap: .15rem; }
.rastreio-ds-1 .attention-banner strong { font-weight: 500; }
.rastreio-ds-1 .attention-banner p > span { font-size: .68rem; }
.rastreio-ds-1 .attention-banner a { color: #765019; font-weight: 600; margin-left: auto; white-space: nowrap; text-underline-offset: 3px; }
.rastreio-ds-1 .dashboard-v3 .decision-trend,.rastreio-ds-1 .overview-recent { border: 0; border-radius: 0; padding: 0; box-shadow: none; background: #fff; }
.rastreio-ds-1 .dashboard-v3 .decision-trend h3,.rastreio-ds-1 .overview-recent h3 { font-size: 1rem; font-weight: 600; letter-spacing: -.025em; }
.rastreio-ds-1 .dashboard-v3 .decision-trend-heading p { font-size: .72rem; line-height: 1.6; max-width: 62ch; }
.rastreio-ds-1 .dashboard-v3 .multichannel-chart-wrap { height: 15rem; margin-top: 1rem; }
.rastreio-ds-1 .multichannel-trend-note { font-size: .7rem; }
.rastreio-ds-1 .chart-legend { font-weight: 500; color: #657084; }
.rastreio-ds-1 .chart-legend-social { background: #075bff; }
.rastreio-ds-1 .chart-legend-press { background: #f47524; }
.rastreio-ds-1 .overview-publication { padding: .9rem 0; }
.rastreio-ds-1 .overview-publication p { font-size: .8rem; line-height: 1.55; }
.rastreio-ds-1 .overview-publication small { font-size: .65rem; }
.rastreio-ds-1 .overview-publication strong { font-size: .72rem; font-weight: 500; }
.rastreio-ds-1 .dashboard-v3 .multichannel-operations { margin-top: .5rem; border-top: 1px solid var(--workspace-line); padding-top: 1.4rem; }
.rastreio-ds-1 .dashboard-v3 .operations-heading h3 { font-size: 1rem; font-weight: 600; }
.rastreio-ds-1 .dashboard-v3 .operation-card { background: #f6f7f9; border: 1px solid var(--workspace-line); border-radius: 9px; padding: 1.1rem; }
.rastreio-ds-1 .dashboard-v3 .operation-card strong { font-weight: 500; }

/* Existing lists/forms/dialogs share the same restrained component system. */
.rastreio-ds-1 .panel { border-color: var(--workspace-line); border-radius: 9px; box-shadow: none; }
.rastreio-ds-1 :is(.monitor-shell,.reports-workspace) > .panel-header h2 { color: var(--workspace-ink); font-size: 1.65rem; font-weight: 600; letter-spacing: -.04em; }
.rastreio-ds-1 .monitor-shell { border: 0; padding: 0; background: #fff; }
.rastreio-ds-1 .monitor-shell > .panel-header { padding-bottom: .5rem; }
.rastreio-ds-1 .monitor-shell > .panel-header p { font-size: .8rem; color: #657084; }
.rastreio-ds-1 .monitor-tabs { border-color: var(--workspace-line); gap: 1.5rem; }
.rastreio-ds-1 .monitor-tabs .tab-btn { font-size: .8rem; font-weight: 500; }
.rastreio-ds-1 .monitor-tabs .tab-btn[aria-selected="true"] { color: #075bff; border-bottom-color: #075bff; }
.rastreio-ds-1 .monitor-shell .filters { background: #f6f7f9; padding: .9rem; border: 1px solid var(--workspace-line); border-radius: 8px; }
.rastreio-ds-1 .monitor-results-heading { color: #657084; font-size: .75rem; padding-block: 1rem; }
.rastreio-ds-1 .post-list { border: 0; border-radius: 0; }
.rastreio-ds-1 .monitor-publication { padding: 1.25rem 0; border-color: var(--workspace-line); border-radius: 0; box-shadow: none; background: #fff; }
.rastreio-ds-1 .monitor-publication .post-title { font-weight: 600; letter-spacing: -.015em; }
.rastreio-ds-1 .monitor-publication .post-caption { font-size: .85rem; line-height: 1.65; color: #596477; }
.rastreio-ds-1 .monitor-publication .post-meta { font-size: .72rem; color: #657084; }
.rastreio-ds-1 .publication-media img { border-radius: 8px; }
.rastreio-ds-1 .sentiment { border-radius: 4px; font-size: .65rem; font-weight: 500; }
.rastreio-ds-1 .publication-dialog { border-color: var(--workspace-line); border-radius: 10px; box-shadow: 0 20px 70px #171e2629; }
.rastreio-ds-1 .publication-dialog-heading h2 { font-weight: 600; letter-spacing: -.03em; }
.rastreio-ds-1 .reports-workspace :is(.report-source-choice,.report-mode-choice,.report-purpose-option) { border-radius: 8px; box-shadow: none; border-color: var(--workspace-line); }
.rastreio-ds-1 .reports-workspace .report-command-card { background: #f6f7f9; border-color: var(--workspace-line); border-radius: 9px; box-shadow: none; }

@media (min-width:1051px) {
  .rastreio-ds-1 .dashboard-v3 { grid-template-columns: minmax(0,1.8fr) minmax(15rem,1fr); column-gap: 2rem; }
  .rastreio-ds-1 .overview-recent { border-left: 1px solid var(--workspace-line); padding-left: 1.5rem; }
  .rastreio-ds-1 .dashboard-v3 .multichannel-operations { grid-column: 1 / -1; }
}
@media (min-width:768px) {
  body.rastreio-ds-1.sidebar-compact .app-sidebar { padding-inline: 0; }
  body.rastreio-ds-1.sidebar-compact .app-sidebar .main-nav { padding-inline: .5rem; }
}
@media (min-width:768px) and (max-width:1000px) {
  .rastreio-ds-1 .app-shell-authenticated { grid-template-columns: 12rem minmax(0,1fr); }
  .rastreio-ds-1 .app-workspace > main { padding: 1.5rem; }
  .rastreio-ds-1 .app-workspace .app-topbar { padding-inline: 1.5rem; }
  .rastreio-ds-1 .app-topbar .header-actions .user-info { display: none; }
}
@media (max-width:1050px) {
  .rastreio-ds-1 .overview-analysis-grid { display: grid; grid-template-columns: minmax(0,1fr); gap: 1.6rem; }
  .rastreio-ds-1 .overview-recent { border-top: 1px solid var(--workspace-line); padding-top: 1.2rem; }
}
@media (max-width:767px) {
  .rastreio-ds-1 .app-shell-authenticated { display: block; }
  .rastreio-ds-1 .app-workspace > main { padding: 1.2rem 1.1rem calc(6rem + env(safe-area-inset-bottom)); }
  .rastreio-ds-1 .app-workspace .app-topbar:has(.topbar-client) { min-height: 0; padding: .75rem 1.1rem; flex-wrap: nowrap; gap: 1rem; }
  .rastreio-ds-1 .mobile-brand { flex: 0 0 auto; gap: .4rem; }
  .rastreio-ds-1 .mobile-brand strong { font-size: .9rem; }
  .rastreio-ds-1 .mobile-brand em { color: #aeb9c8; }
  .rastreio-ds-1 .mobile-brand .brand-orbit { border-color: #fff; }
  .rastreio-ds-1 .mobile-brand .brand-orbit::before { background: #fff; }
  .rastreio-ds-1 .topbar-client { flex: 1 1 0; min-width: 0; }
  .rastreio-ds-1 .topbar-client .client-switcher-form select { min-height: 2rem; font-size: .73rem; padding-inline: .5rem; text-overflow: ellipsis; }
  .rastreio-ds-1 .dashboard-v3 { gap: 1.2rem; }
  .rastreio-ds-1 .dashboard-v3 .decision-dashboard-heading { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: .4rem .75rem; }
  .rastreio-ds-1 .dashboard-v3 .decision-dashboard-heading > div { display: contents; }
  .rastreio-ds-1 .dashboard-v3 .decision-dashboard-heading :is(.section-kicker,h2,p) { grid-column: 1 / -1; margin: 0; }
  .rastreio-ds-1 .dashboard-v3 .decision-dashboard-heading .overview-period { grid-column: 1; margin: .35rem 0 0; justify-self: start; }
  .rastreio-ds-1 .dashboard-v3 .decision-dashboard-heading h2 { font-size: 1.4rem; }
  .rastreio-ds-1 .dashboard-v3 .decision-dashboard-heading p { font-size: .75rem; }
  .rastreio-ds-1 .dashboard-v3 .decision-dashboard-heading > .btn-primary { grid-column: 2; grid-row: 4; min-height: 2rem; padding: .4rem .65rem; font-size: .7rem; margin-top: .35rem; }
  .rastreio-ds-1 .dashboard-v3 .decision-kpi-grid { grid-template-columns: repeat(2,minmax(0,1fr)); padding-bottom: 0; }
  .rastreio-ds-1 .dashboard-v3 .channel-card { padding: 0 .85rem 1rem; gap: .35rem; }
  .rastreio-ds-1 .dashboard-v3 .channel-card:first-child { padding-left: 0; }
  .rastreio-ds-1 .dashboard-v3 .channel-card-header h3 { font-size: .72rem; }
  .rastreio-ds-1 .dashboard-v3 .channel-metrics strong { font-size: 2.15rem; }
  .rastreio-ds-1 .dashboard-v3 .overview-sentiment { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0,1fr) auto auto; border-left: 0; border-top: 1px solid var(--workspace-line); padding: .8rem 0; gap: .25rem .85rem; }
  .rastreio-ds-1 .overview-sentiment .overview-negative-total { grid-column: 2; grid-row: 1 / 3; font-size: 1.6rem; margin: 0; }
  .rastreio-ds-1 .overview-sentiment .channel-card-header h3 { margin: 0; }
  .rastreio-ds-1 .overview-sentiment .channel-card-header .section-kicker { display: none; }
  .rastreio-ds-1 .overview-sentiment p { margin: 0; grid-column: 1; grid-row: 2; }
  .rastreio-ds-1 .overview-sentiment .overview-drilldown { grid-column: 3; grid-row: 1 / 3; margin: 0; font-size: .68rem; }
  .rastreio-ds-1 .attention-banner { flex-wrap: nowrap; gap: .55rem; padding: .7rem .8rem; }
  .rastreio-ds-1 .attention-banner p { flex: 1; min-width: 0; }
  .rastreio-ds-1 .attention-banner a { margin-left: 0; }
  .rastreio-ds-1 .dashboard-v3 .decision-trend h3 { font-size: .95rem; }
  .rastreio-ds-1 .dashboard-v3 .multichannel-chart-wrap { height: 11.5rem; }
  .rastreio-ds-1 .dashboard-v3 .operations-heading { display: block; }
  .rastreio-ds-1 .monitor-publication { padding: 1rem 0; }
  .rastreio-ds-1 .monitor-shell > .panel-header { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: .35rem .6rem; margin-bottom: 1rem; }
  .rastreio-ds-1 .monitor-shell > .panel-header > div { display: contents; }
  .rastreio-ds-1 .monitor-shell > .panel-header .section-kicker { grid-column: 1 / -1; }
  .rastreio-ds-1 .monitor-shell > .panel-header h2 { grid-column: 1; margin: 0; font-size: 1.4rem; }
  .rastreio-ds-1 .monitor-shell > .panel-header p { grid-column: 1 / -1; grid-row: 3; margin: .2rem 0 0; }
  .rastreio-ds-1 .monitor-shell > .panel-header > a { grid-column: 2; grid-row: 2; margin: 0; min-height: 2rem; padding: .35rem .6rem; font-size: .68rem; }
  .rastreio-ds-1 .monitor-tabs { gap: .8rem; margin-bottom: 1rem; }
  .rastreio-ds-1 .monitor-tabs .tab-btn { font-size: .72rem; flex-direction: row; padding-block: .65rem; }
  /* app.css has a legacy !important mobile rule; keep this override narrowly scoped. */
  .rastreio-ds-1 .monitor-shell .filters { grid-template-columns: minmax(0,1fr) auto !important; gap: .65rem; padding: .8rem; }
  .rastreio-ds-1 .monitor-search { grid-column: 1 / -1; }
  .rastreio-ds-1 .monitor-shell .filters label { font-size: .72rem; min-width: 0; }
  .rastreio-ds-1 .monitor-shell .filters :is(input,select) { min-height: 2.5rem; font-size: .75rem; }
  .rastreio-ds-1 .monitor-shell .filters > .btn-primary { font-size: .7rem; padding-inline: .65rem; min-height: 2.5rem; align-self: end; }
  .rastreio-ds-1 .monitor-clear { font-size: .7rem; }
  .rastreio-ds-1 .publication-dialog { border-radius: 0; }
  .rastreio-ds-1 .mobile-bottom-nav { background: #fff; border-color: var(--workspace-line); box-shadow: none; border-radius: 0; }
  .rastreio-ds-1 .mobile-bottom-nav :is(a,button) { color: #657084; font-weight: 500; }
  .rastreio-ds-1 .mobile-bottom-nav [aria-current="page"] { color: #075bff; background: transparent; box-shadow: none; }
}
@media (max-width:370px) {
  .rastreio-ds-1 .app-workspace > main { padding-inline: .85rem; }
  .rastreio-ds-1 .app-workspace .app-topbar:has(.topbar-client) { padding-inline: .85rem; gap: .65rem; }
  .rastreio-ds-1 .mobile-brand .brand-orbit { display: none; }
  .rastreio-ds-1 .dashboard-v3 .decision-dashboard-heading h2 { font-size: 1.3rem; }
}
