@font-face {
  font-family:Montserrat;
  src:url("assets/Montserrat-Regular.ttf") format("truetype");
  font-weight:400;
  font-display:swap
}

@font-face {
  font-family:Montserrat;
  src:url("assets/Montserrat-Medium.ttf") format("truetype");
  font-weight:500;
  font-display:swap
}

@font-face {
  font-family:Montserrat;
  src:url("assets/Montserrat-SemiBold.ttf") format("truetype");
  font-weight:600;
  font-display:swap
}

@font-face {
  font-family:Montserrat;
  src:url("assets/Montserrat-Bold.ttf") format("truetype");
  font-weight:700;
  font-display:swap
}

:root {
  color-scheme:light;
  --navy:#091c31;
  --gold:#c9a961;
  --paper:#f6f2ea;
  --ink:#102335;
  --muted:#526272;
  --line:#cbd4db;
  --white:#fff;
  --surface:#fff;
  --surface-subtle:#f0f3f5;
  --surface-hover:#edf1f5;
  --surface-message:#f0f4f6;
  --surface-client:#f7f0f2;
  --surface-event:#f7f6f1;
  --surface-avatar:#e6edf2;
  --surface-future:#e9eef2;
  --surface-partial:#fff5da;
  --surface-missing:#fff1d2;
  --surface-transcript:#fff8e6;
  --skeleton:#e4e9ed;
  --green:#146a4e;
  --green-wash:#e8f4ed;
  --amber:#775009;
  --amber-wash:#fff3d4;
  --red:#983835;
  --red-wash:#fceceb;
  --burgundy:#310516;
  --labor:#073129;
  --blue-wash:#edf1f5;
  --neutral-text:#455466;
  --variation-text:#364f83;
  --variation-wash:#e8ecf8;
  --accent-text:#715421;
  --accent-label:#84662f;
  --note-green:#174e3c;
  --note-amber:#69490d;
  --note-red:#7e302c;
  --brand-symbios:#091c31;
  --brand-cidadania:#310516;
  --brand-trabalhista:#073129;
  --focus:#3b73ba;
  --radius:7px;
  --brand:var(--brand-symbios)
}

:root[data-theme=dark] {
  color-scheme:dark;
  --paper:#101820;
  --ink:#edf2f7;
  --muted:#bac7d3;
  --line:#536577;
  --surface:#182530;
  --surface-subtle:#233442;
  --surface-hover:#2b3d4d;
  --surface-message:#233642;
  --surface-client:#3a2733;
  --surface-event:#293038;
  --surface-avatar:#304453;
  --surface-future:#283743;
  --surface-partial:#3d331e;
  --surface-missing:#493822;
  --surface-transcript:#3d331e;
  --skeleton:#334654;
  --green:#93e5bb;
  --green-wash:#183d30;
  --amber:#f4d28a;
  --amber-wash:#42351f;
  --red:#ffb7b0;
  --red-wash:#472b30;
  --blue-wash:#2b3b4c;
  --neutral-text:#d7e3ed;
  --variation-text:#d2ddff;
  --variation-wash:#303e60;
  --accent-text:#eed298;
  --accent-label:#dfc184;
  --note-green:#b7ebd0;
  --note-amber:#f4dba4;
  --note-red:#ffcbc5;
  --brand-symbios:#d5b66e;
  --brand-cidadania:#e0a0b7;
  --brand-trabalhista:#83cdb3;
  --focus:#8bbcff
}

* {
  box-sizing:border-box
}
body {
  margin:0;
  color:var(--ink);
  background:var(--paper);
  font:400 14px/1.6 Montserrat,sans-serif
}
h1,h2,h3,p {
  margin:0
}
h1 {
  font-size:clamp(25px,2.4vw,36px);
  line-height:1.2;
  font-weight:600;
  letter-spacing:-.7px
}
h2 {
  font-size:20px;
  line-height:1.35;
  font-weight:600;
  letter-spacing:-.3px
}
h3 {
  font-size:15px;
  line-height:1.4;
  font-weight:600
}
a {
  color:inherit;
  text-underline-offset:4px
}
button,input,select {
  font:inherit
}
button,select {
  cursor:pointer
}
button,a,input,select,summary {
  touch-action:manipulation
}
button {
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:10px 14px;
  color:var(--ink);
  background:var(--surface);
  font-weight:600;
  line-height:1.4;
  min-height:42px
}
button:hover {
  background:var(--surface-hover)
}
button:disabled {
  cursor:default;
  opacity:.5
}
button.primary,.primary {
  background:var(--navy);
  color:#fff;
  border-color:var(--navy)
}
button.primary:hover {
  background:#17334f
}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible,audio:focus-visible {
  outline:3px solid var(--focus);
  outline-offset:3px
}
main:focus {
  outline:none
}
.skip {
  position:fixed;
  left:16px;
  top:-100px;
  z-index:20;
  background:var(--surface);
  padding:12px;
  border:2px solid var(--focus)
}
.skip:focus {
  top:12px
}
.demo-strip {
  background:#ecdfbc;
  color:#473911;
  padding:7px 4%;
  display:flex;
  gap:14px;
  font-size:11px;
  letter-spacing:.1px
}
.demo-strip strong {
  letter-spacing:1.5px;
  font-size:10px;
  flex-shrink:0
}
.masthead {
  background:var(--navy);
  color:#fff;
  display:flex;
  align-items:center;
  padding:22px 4%;
  gap:24px
}
.brand-home {
  width:160px;
  flex-shrink:0;
  display:block
}
.brand-home img {
  display:block;
  width:100%;
  height:auto;
  max-height:58px;
  object-fit:contain;
  object-position:left
}
.brand-caption {
  border-left:1px solid #576878;
  padding-left:22px;
  font-size:12px;
  line-height:1.5
}
.clock {
  margin-left:auto;
  text-align:right;
  font-size:12px;
  display:grid;
  gap:2px
}
.clock span {
  color:#d2dbe3;
  font-size:11px
}
.ghost-dark {
  border-color:#688095;
  color:#fff;
  background:transparent;
  font-size:11px;
  max-width:180px
}
.ghost-dark:hover {
  background:#21384e
}
.main-nav {
  display:flex;
  padding:0 4%;
  background:var(--surface);
  border-bottom:1px solid var(--line);
  gap:30px
}
.main-nav a {
  min-height:57px;
  display:flex;
  align-items:center;
  text-decoration:none;
  font-size:13px;
  font-weight:600;
  border-bottom:3px solid transparent;
  padding:8px 0
}
.main-nav a[aria-current=page] {
  border-color:var(--accent-label);
  color:var(--accent-text)
}
.main-nav a:hover {
  color:var(--accent-text)
}
main {
  max-width:1500px;
  margin:auto;
  padding:36px 4% 50px;
  min-height:65vh
}
.page-head {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  margin-bottom:28px
}
.eyebrow {
  font-size:10px;
  font-weight:700;
  letter-spacing:1.6px;
  color:var(--accent-label);
  margin-bottom:10px
}
.page-head p:not(.eyebrow) {
  color:var(--muted);
  max-width:790px;
  margin-top:12px;
  font-size:13px
}
.head-meta {
  display:grid;
  gap:8px;
  text-align:right;
  flex-shrink:0
}
.small {
  font-size:11px;
  color:var(--muted)
}
.filters {
  display:flex;
  align-items:flex-end;
  gap:20px;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  padding:18px 0;
  margin-bottom:24px;
  flex-wrap:wrap
}
.filters>div {
  min-width:200px
}
.filters label,label.field {
  font-size:10px;
  font-weight:700;
  display:block;
  letter-spacing:.4px;
  margin-bottom:6px;
  color:var(--muted)
}
select,input[type=date] {
  min-height:43px;
  background:var(--surface);
  color:var(--ink);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:8px 34px 8px 11px;
  max-width:100%
}
.filters select {
  width:100%;
  font-size:12px
}
.filters .cadence {
  margin-left:auto;
  display:grid;
  text-align:right;
  gap:5px;
  font-size:11px
}
.cadence span {
  color:var(--muted)
}
.text-button {
  border:0;
  background:transparent;
  min-height:30px;
  padding:0 0 0 7px;
  text-decoration:underline;
  text-underline-offset:4px;
  font-size:inherit;
  color:var(--ink)
}
.pill {
  display:inline-flex;
  gap:6px;
  align-items:center;
  font-size:10px;
  font-weight:600;
  padding:4px 8px;
  border-radius:4px;
  width:max-content;
  max-width:100%
}
.pill.good {
  color:var(--green);
  background:var(--green-wash)
}
.pill.busy,.pill.warn {
  color:var(--amber);
  background:var(--amber-wash)
}
.pill.offline,.pill.neutral {
  background:var(--blue-wash);
  color:var(--neutral-text)
}
.pill.unknown,.pill.bad {
  background:var(--red-wash);
  color:var(--red)
}
.pill.variavel {
  background:var(--variation-wash);
  color:var(--variation-text)
}
.dot {
  width:6px;
  height:6px;
  border-radius:50%;
  background:currentColor;
  display:inline-block;
  flex-shrink:0
}
.cards {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  border:1px solid var(--line);
  background:var(--surface);
  border-radius:var(--radius);
  margin-bottom:26px;
  overflow:hidden
}
.metric {
  padding:21px 22px;
  display:grid;
  gap:3px;
  align-content:start;
  border-right:1px solid var(--line)
}
.metric:last-child {
  border:0
}
.metric .value {
  font-size:32px;
  line-height:1.3;
  font-weight:600;
  letter-spacing:-.7px
}
.metric .label {
  font-size:11px;
  color:var(--muted)
}
.metric .small {
  font-size:10px;
  margin-top:4px
}
.metric a {
  text-decoration:none;
  display:grid;
  gap:3px
}
.metric a:hover .label {
  text-decoration:underline
}
.panel {
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:23px;
  margin-bottom:24px
}
.panel-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:20px
}
.panel-head p {
  font-size:11px;
  color:var(--muted);
  margin-top:5px
}
.grid-2 {
  display:grid;
  grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);
  gap:24px
}
.grid-equal {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:24px
}
.grid-equal .panel,.grid-2 .panel {
  min-width:0
}
.source-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
  margin-bottom:24px
}
.source-card {
  border:1px solid var(--line);
  border-top:3px solid var(--brand);
  padding:16px 18px;
  background:var(--surface);
  border-radius:var(--radius);
  display:grid;
  gap:6px
}
.brandline {
  display:flex;
  align-items:center;
  gap:9px;
  font-weight:600;
  font-size:12px
}
.brand-dot {
  width:8px;
  height:8px;
  border-radius:50%;
  background:var(--brand);
  display:inline-block;
  flex-shrink:0
}
.source-card p {
  font-size:10px;
  color:var(--muted)
}
.source-card .pill {
  margin-top:3px
}
.table-shell {
  overflow-x:auto;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:var(--surface);
  margin-bottom:22px
}
.data-table {
  width:100%;
  border-collapse:collapse;
  font-size:11px
}
.data-table th {
  text-align:left;
  padding:13px 15px;
  background:var(--surface-subtle);
  border-bottom:1px solid var(--line);
  color:var(--muted);
  font-size:9px;
  letter-spacing:.4px;
  text-transform:uppercase;
  white-space:nowrap;
  font-weight:600
}
.data-table td {
  padding:18px 15px;
  border-bottom:1px solid var(--line);
  vertical-align:middle
}
.data-table tr:last-child td {
  border-bottom:0
}
.data-table .person-name {
  font-weight:600;
  font-size:12px
}
.data-table .sub {
  display:block;
  color:var(--muted);
  font-size:10px;
  margin-top:4px
}
.data-table .action {
  white-space:nowrap;
  font-weight:600
}
.data-table .source-lines {
  min-width:205px;
  display:grid;
  gap:4px;
  font-size:10px
}
.source-lines>div {
  display:flex;
  gap:6px;
  align-items:center;
  justify-content:space-between
}
.source-lines .pill {
  padding:2px 6px;
  font-size:9px
}
.note {
  background:var(--green-wash);
  border:1px solid var(--line);
  color:var(--note-green);
  border-radius:var(--radius);
  padding:13px 16px;
  font-size:11px;
  margin:0 0 22px
}
.note.warn {
  background:var(--amber-wash);
  border-color:#deca98;
  color:var(--note-amber)
}
.note.bad {
  background:var(--red-wash);
  border-color:#dfb7b4;
  color:var(--note-red)
}
.note h2 {
  font-size:16px;
  margin-bottom:6px
}
.note p+p {
  margin-top:7px
}
.note button {
  margin-top:12px
}
.disclaimer {
  font-size:10px;
  color:var(--muted);
  margin:14px 0 0
}
.avatar {
  display:grid;
  place-items:center;
  width:44px;
  height:44px;
  border-radius:50%;
  font-weight:600;
  background:var(--surface-avatar);
  border:1px solid var(--line);
  flex-shrink:0
}
.person-title {
  display:flex;
  gap:14px;
  align-items:center
}
.person-title .small {
  display:block;
  margin-top:4px
}
.chips {
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-bottom:22px
}
.chips a {
  border:1px solid var(--line);
  background:var(--surface);
  border-radius:5px;
  padding:8px 12px;
  font-size:11px;
  text-decoration:none;
  min-height:38px;
  display:flex;
  align-items:center
}
.chips a[aria-current=true] {
  border-color:var(--navy);
  background:var(--navy);
  color:#fff
}
.presence-axis {
  display:flex;
  justify-content:space-between;
  font-size:10px;
  color:var(--muted);
  margin:24px 0 9px
}
.timeline-bar {
  display:flex;
  height:35px;
  border-radius:4px;
  overflow:hidden;
  background:var(--surface-future)
}
.timeline-bar span {
  min-width:0
}
.timeline-bar .available {
  background:#1b7959
}
.timeline-bar .busy {
  background:#c9a54c
}
.timeline-bar .offline {
  background:#6e7c8a
}
.timeline-bar .unknown {
  background:repeating-linear-gradient(45deg,#d9a09b,#d9a09b 4px,#f9e3df 4px,#f9e3df 8px)
}
.timeline-bar .future {
  background:repeating-linear-gradient(45deg,#f3f5f6,#f3f5f6 5px,#e6ebef 5px,#e6ebef 10px)
}
.legend {
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  font-size:9px;
  color:var(--muted);
  margin:12px 0 22px
}
.legend .swatch {
  display:inline-block;
  width:9px;
  height:9px;
  margin-right:5px
}
.time-totals {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  border-top:1px solid var(--line);
  padding-top:17px;
  gap:10px
}
.time-totals strong {
  display:block;
  font-size:20px;
  font-weight:600
}
.time-totals span {
  font-size:9px;
  color:var(--muted)
}
.facts {
  margin:0
}
.facts>div {
  display:flex;
  justify-content:space-between;
  gap:18px;
  border-bottom:1px solid var(--line);
  padding:12px 0;
  font-size:11px
}
.facts>div:last-child {
  border:0
}
.facts dt {
  color:var(--muted)
}
.facts dd {
  font-weight:600;
  text-align:right;
  margin:0
}
.agent-card {
  border-top:3px solid var(--brand)
}
.agent-card img {
  height:40px;
  width:110px;
  object-fit:contain;
  object-position:left;
  margin-bottom:16px
}
.agent-card .metrics-mini {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
  margin-top:24px
}
.metrics-mini strong {
  font-size:24px;
  font-weight:600;
  display:block
}
.metrics-mini span {
  font-size:10px;
  color:var(--muted)
}
.agent-card a {
  font-size:11px;
  display:inline-block;
  margin-top:20px;
  font-weight:600
}
.episodes-list {
  display:grid;
  gap:12px
}
.episode-row {
  padding:16px;
  border:1px solid var(--line);
  border-left:3px solid var(--brand);
  border-radius:5px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:15px;
  text-decoration:none;
  font-size:12px
}
.episode-row:hover {
  background:var(--surface-hover)
}
.episode-row span {
  display:block;
  color:var(--muted);
  font-size:10px;
  margin-top:5px
}
.episode-row .arrow {
  font-size:18px;
  margin:0;
  color:var(--ink)
}
.messages-metrics {
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin:15px 0
}
.messages-metrics button {
  font-size:10px;
  padding:8px 11px;
  min-height:36px
}
.messages-metrics button[aria-pressed=true] {
  background:var(--navy);
  color:#fff;
  border-color:var(--navy)
}
.conversation-grid {
  display:grid;
  grid-template-columns:minmax(0,1.7fr) minmax(0,1fr);
  gap:24px
}
.conversation {
  list-style:none;
  padding:0;
  margin:0
}
.message {
  display:grid;
  grid-template-columns:50px minmax(0,1fr);
  gap:12px;
  padding:0 0 24px
}
.message time {
  font-size:10px;
  color:var(--muted);
  padding-top:3px
}
.message-content {
  position:relative;
  padding-left:18px;
  border-left:1px solid var(--line);
  min-width:0
}
.message-content:before {
  content:"";
  position:absolute;
  left:-4px;
  top:7px;
  width:7px;
  height:7px;
  border-radius:50%;
  background:#b39045
}
.message strong {
  font-size:11px
}
.message .bubble {
  margin-top:8px;
  background:var(--surface-message);
  padding:12px 14px;
  border-radius:4px;
  font-size:11px
}
.message .bubble.client {
  background:var(--surface-client);
  border-left:3px solid var(--burgundy)
}
.message .bubble p+p {
  margin-top:9px
}
.message .bubble a {
  font-size:10px
}
.message audio {
  width:100%;
  height:34px;
  margin:8px 0
}
.message .audio-note {
  font-size:9px;
  color:var(--muted)
}
.message details {
  margin-top:9px
}
.message summary {
  font-size:10px;
  font-weight:600;
  cursor:pointer;
  min-height:28px;
  padding-top:4px
}
.message details p {
  padding:9px 0;
  font-size:11px
}
.stage-row {
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  margin:16px 0 23px
}
.stage-row a {
  text-decoration:none
}
.outcome {
  padding:15px;
  background:var(--green-wash);
  border-left:3px solid var(--green);
  margin-bottom:20px;
  border-radius:4px;
  font-size:11px
}
.outcome a {
  display:inline-block;
  margin-top:8px;
  font-weight:600
}
.timeline-event {
  background:var(--surface-event);
  padding:13px 15px;
  border:1px solid var(--line);
  border-radius:5px;
  margin-bottom:12px;
  font-size:11px
}
.timeline-event time {
  font-size:10px;
  color:var(--muted);
  display:block
}
.transcript-state {
  border:1px dashed #bda46d;
  background:var(--surface-transcript);
  border-radius:4px;
  padding:12px;
  margin-top:8px;
  font-size:11px
}
.history-toolbar {
  display:flex;
  gap:16px;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  margin:0 0 22px
}
.segmented {
  display:flex;
  gap:6px;
  flex-wrap:wrap
}
.segmented a {
  display:flex;
  align-items:center;
  padding:9px 19px;
  border:1px solid var(--line);
  border-radius:5px;
  font-size:12px;
  font-weight:600;
  text-decoration:none;
  background:var(--surface);
  min-height:42px
}
.segmented a[aria-current=true] {
  color:#fff;
  background:var(--navy);
  border-color:var(--navy)
}
.date-nav {
  display:flex;
  align-items:center;
  gap:10px
}
.date-nav button {
  padding:8px 12px
}
.date-nav .small {
  font-size:12px;
  font-weight:600;
  min-width:170px;
  text-align:center
}
.date-input {
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap
}
.date-input label {
  font-size:11px
}
.calendar-layout {
  display:grid;
  grid-template-columns:minmax(0,1.8fr) minmax(0,1fr);
  gap:24px
}
.calendar-panel {
  background:transparent;
  border:0;
  padding:0;
  min-width:0
}
.calendar-grid {
  display:grid;
  grid-template-columns:repeat(7,minmax(0,1fr));
  gap:7px
}
.weekday {
  font-size:9px;
  color:var(--muted);
  text-align:left;
  padding:8px 7px;
  font-weight:600
}
.calday {
  min-height:103px;
  padding:10px 11px;
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
  align-items:flex-start;
  text-align:left;
  gap:5px;
  font-weight:400;
  border-color:var(--line);
  background:var(--surface)
}
.calday .day-num {
  font-size:15px;
  font-weight:600
}
.calday .cal-count {
  font-size:10px;
  font-weight:600;
  margin-top:auto
}
.calday .cal-status {
  font-size:8px;
  font-weight:500
}
.calday.complete .cal-status {
  color:var(--green)
}
.calday.partial {
  background:var(--surface-partial)
}
.calday.missing {
  background:var(--surface-missing);
  border-color:#d4bd81
}
.calday.pre,.calday.future {
  background:var(--surface-future);
  color:var(--muted)
}
.calday.selected {
  background:var(--navy);
  color:#fff;
  border-color:var(--navy)
}
.calday.selected .cal-status {
  color:#fff
}
.cal-blank {
  min-height:103px
}
.months {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px
}
.month-card {
  min-height:133px;
  display:flex;
  align-items:flex-start;
  flex-direction:column;
  text-align:left;
  gap:9px
}
.month-card strong {
  font-size:23px;
  font-weight:600
}
.month-card span {
  font-size:10px;
  color:var(--muted)
}
.month-card.pre,.month-card.future {
  background:var(--surface-future)
}
.month-card.selected {
  background:var(--navy);
  color:#fff
}
.month-card.selected span {
  color:#fff
}
.revisions {
  display:grid;
  gap:12px;
  font-size:11px
}
.revisions>div {
  border-left:2px solid #c9a961;
  padding-left:14px
}
.revisions strong,.revisions span {
  display:block
}
.revisions span {
  font-size:10px;
  color:var(--muted);
  margin-top:4px
}
.range-bar {
  display:flex;
  gap:14px;
  align-items:flex-end;
  flex-wrap:wrap;
  margin-bottom:22px
}
.range-bar label {
  font-size:10px;
  display:block;
  margin-bottom:5px
}
.empty {
  padding:35px 20px;
  text-align:center;
  color:var(--muted);
  border:1px dashed #a6b3bd;
  border-radius:var(--radius);
  background:var(--surface)
}
.empty h2 {
  color:var(--ink);
  font-size:18px
}
.empty p {
  font-size:12px;
  margin-top:8px
}
.empty button {
  margin-top:17px
}
.error-box {
  max-width:700px;
  padding:35px;
  margin:30px auto;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius)
}
.error-box h2 {
  margin-bottom:10px
}
.error-box p {
  font-size:13px;
  color:var(--muted)
}
.error-box button {
  margin-top:20px
}
.skeleton {
  height:105px;
  background:var(--skeleton);
  border-radius:var(--radius);
  margin-bottom:20px
}
.skeleton.slim {
  height:40px
}
.loading-stack {
  background:var(--surface);
  padding:25px;
  border:1px solid var(--line);
  border-radius:var(--radius)
}
footer {
  border-top:1px solid var(--line);
  padding:22px 4%;
  display:flex;
  justify-content:space-between;
  gap:20px;
  color:var(--muted);
  font-size:10px;
  background:var(--surface)
}
dialog {
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:10px;
  padding:25px;
  max-width:650px;
  width:calc(100% - 32px);
  color:var(--ink);
  font-size:13px
}
dialog::backdrop {
  background:#07192ab8
}
.dialog-head {
  display:flex;
  align-items:center;
  gap:18px;
  justify-content:space-between;
  padding-bottom:17px;
  border-bottom:1px solid var(--line);
  margin-bottom:20px
}
.dialog-head h2 {
  font-size:20px
}
.dialog-head button {
  min-width:95px;
  font-size:11px
}
dialog p+p {
  margin-top:12px
}
dialog ul {
  padding-left:22px
}
dialog li+li {
  margin-top:8px
}
.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0
}

@media(min-width:1600px) {
  main {
  padding-left:32px;
  padding-right:32px
}

}

@media(max-width:1100px) {
  .head-meta {
  display:none
}
.brand-caption {
  display:none
}
.grid-2,.conversation-grid {
  grid-template-columns:minmax(0,1.3fr) minmax(0,1fr)
}
.metric {
  padding:17px
}
.metric .value {
  font-size:27px
}
.calendar-layout {
  grid-template-columns:1fr
}
.calendar-side {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px
}
.calendar-side .panel {
  margin:0
}
.calday {
  min-height:105px
}
.data-table th,.data-table td {
  padding:13px 11px
}
.filters .cadence {
  margin-left:0;
  text-align:left
}

}

@media(max-width:800px) {
  .masthead {
  gap:15px;
  padding:18px 4%
}
.brand-home {
  width:135px
}
.clock {
  font-size:10px
}
.clock span {
  font-size:9px
}
.ghost-dark {
  display:none
}
.main-nav {
  gap:20px
}
.main-nav a {
  font-size:11px
}
.grid-2,.grid-equal,.conversation-grid {
  grid-template-columns:1fr;
  gap:0
}
.source-grid {
  grid-template-columns:1fr;
  gap:10px
}
.source-card {
  grid-template-columns:1fr 1fr
}
.source-card .brandline {
  grid-column:1/3
}
.source-card p {
  margin:0
}
.source-card .pill {
  margin:0;
  justify-self:end;
  align-self:start
}
.source-card .source-text {
  grid-column:1/3
}
.cards {
  grid-template-columns:repeat(2,minmax(0,1fr))
}
.metric {
  border-bottom:1px solid var(--line)
}
.metric:nth-child(even) {
  border-right:0
}
.metric:nth-last-child(-n+2) {
  border-bottom:0
}
.calendar-side {
  grid-template-columns:1fr
}
.months {
  grid-template-columns:repeat(2,minmax(0,1fr))
}
.page-head {
  margin-bottom:22px
}
.filters {
  gap:13px
}
.filters>div {
  min-width:0;
  flex:1 1 200px
}
.filters .cadence {
  flex:1 1 100%;
  font-size:10px
}
.data-table.operators thead {
  display:none
}
.data-table.operators,.data-table.operators tbody,.data-table.operators tr,.data-table.operators td {
  display:block
}
.data-table.operators tr {
  padding:15px;
  border-bottom:1px solid var(--line)
}
.data-table.operators tr:last-child {
  border:0
}
.data-table.operators td {
  padding:5px 0;
  border:0;
  display:flex;
  gap:10px;
  justify-content:space-between;
  align-items:flex-start
}
.data-table.operators td::before {
  content:attr(data-label);
  font-size:10px;
  color:var(--muted);
  flex-shrink:0;
  min-width:95px;
  text-align:left
}
.data-table.operators td.cell-person {
  display:block;
  margin-bottom:8px
}
.data-table.operators td.cell-person::before {
  display:none
}
.data-table.operators .source-lines {
  min-width:0;
  max-width:65%;
  width:100%;
  gap:7px
}
.panel {
  padding:20px
}
.data-table.operators .sub {
  font-size:9px
}
.data-table.operators .source-lines .pill {
  font-size:8px
}
.data-table.operators .person-name {
  font-size:14px
}

}

@media(max-width:500px) {
  body {
  font-size:13px
}
.demo-strip {
  font-size:9px;
  gap:8px;
  line-height:1.5
}
.demo-strip strong {
  font-size:8px;
  letter-spacing:.5px
}
.brand-home {
  width:120px
}
.masthead {
  padding-top:16px;
  padding-bottom:16px;
  gap:10px
}
.clock {
  font-size:9px;
  max-width:158px
}
.clock span {
  font-size:8px
}
.main-nav {
  gap:0;
  justify-content:space-between;
  padding:0 3%
}
.main-nav a {
  font-size:9px;
  max-width:100px;
  min-height:55px;
  text-align:center;
  justify-content:center;
  padding:8px 7px;
  line-height:1.4
}
main {
  padding-top:25px;
  padding-bottom:30px
}
.eyebrow {
  font-size:8px;
  letter-spacing:1.2px
}
h1 {
  font-size:25px
}
h2 {
  font-size:18px
}
.page-head p:not(.eyebrow) {
  font-size:11px
}
.filters>div {
  flex:1 1 100%
}
.filters select {
  font-size:11px
}
.metric {
  padding:17px 14px
}
.metric .value {
  font-size:27px
}
.metric .label {
  font-size:10px
}
.metric .small {
  font-size:9px
}
.source-card {
  padding:15px;
  grid-template-columns:1fr
}
.source-card .brandline,.source-card .source-text {
  grid-column:auto
}
.source-card .pill {
  justify-self:start;
  margin-top:2px
}
.panel {
  padding:17px
}
.panel-head {
  gap:10px;
  align-items:flex-start;
  flex-wrap:wrap
}
.panel-head p {
  font-size:10px
}
.time-totals {
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px
}
.time-totals strong {
  font-size:19px
}
.presence-axis {
  font-size:8px
}
.legend {
  gap:8px;
  font-size:8px
}
.facts>div {
  font-size:10px;
  gap:13px
}
.chips {
  gap:6px
}
.chips a {
  font-size:10px;
  padding:8px 10px
}
.data-table.operators td::before {
  min-width:75px;
  font-size:9px
}
.data-table.operators td {
  font-size:10px
}
.data-table.operators .source-lines {
  max-width:70%
}
.data-table.operators .source-lines>div {
  gap:4px;
  font-size:9px
}
.message {
  grid-template-columns:40px minmax(0,1fr);
  gap:7px
}
.message time {
  font-size:9px
}
.message-content {
  padding-left:13px
}
.message .bubble {
  padding:10px;
  font-size:10px
}
.message .audio-note {
  font-size:8px
}
.messages-metrics {
  gap:6px
}
.messages-metrics button {
  font-size:9px;
  padding:8px
}
.segmented {
  width:100%;
  gap:5px
}
.segmented a {
  flex:1;
  justify-content:center;
  padding:9px 10px;
  font-size:10px
}
.date-nav {
  width:100%;
  justify-content:space-between
}
.date-nav .small {
  min-width:0;
  font-size:11px
}
.calendar-grid {
  gap:4px
}
.weekday {
  font-size:8px;
  padding:5px 2px
}
.calday {
  min-height:83px;
  padding:6px 4px;
  gap:3px
}
.calday .day-num {
  font-size:13px
}
.calday .cal-count {
  font-size:8px;
  line-height:1.35;
  overflow-wrap:normal
}
.calday .cal-status {
  font-size:7px;
  line-height:1.35;
  overflow-wrap:normal
}
.cal-blank {
  min-height:83px
}
.months {
  gap:10px
}
.month-card {
  min-height:120px;
  padding:13px;
  font-size:11px
}
.month-card strong {
  font-size:20px
}
.month-card span {
  font-size:9px
}
.episode-row {
  padding:12px;
  font-size:11px
}
.episode-row span {
  font-size:9px
}
.note {
  font-size:10px;
  padding:12px
}
.error-box {
  padding:23px
}
.error-box p {
  font-size:11px
}
.dialog-head {
  align-items:flex-start;
  gap:12px
}
.dialog-head h2 {
  font-size:17px
}
.dialog-head button {
  min-width:78px;
  font-size:10px;
  padding:9px
}
footer {
  flex-direction:column;
  gap:8px;
  font-size:9px
}

}

@media(prefers-reduced-motion:reduce) {
  * {
  scroll-behavior:auto!important;
  animation:none!important;
  transition:none!important
}

}

@media print {
  .demo-strip {
  background:#fff
}
.masthead {
  background:#fff;
  color:#102335
}
.brand-home,.filters,.main-nav,button,footer {
  display:none
}
main {
  padding:0;
  max-width:none
}
.page-head {
  margin-top:20px
}
.panel,.cards,.table-shell {
  break-inside:avoid
}
.clock span {
  color:#526272
}
body {
  background:#fff
}
.conversation-grid,.calendar-layout,.grid-2 {
  display:block
}
.data-table {
  font-size:9px
}
a {
  text-decoration:none
}
.pill {
  border:1px solid #9aabba
}

}



.cal-weekday { display: none; }
@media (max-width: 500px) {
  .calendar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .weekday, .cal-blank { display: none; }
  .calday { min-height: 112px; padding: 12px; }
  .calday .day-num { font-size: 19px; }
  .calday .cal-count { font-size: 11px; }
  .calday .cal-status { font-size: 10px; }
  .cal-weekday { display: inline; font-size: 10px; margin-left: 5px; font-weight: 400; }
}

.theme-control {
  display:grid;
  gap:3px;
  min-width:105px;
  font-size:10px;
  color:#e4ecf3
}
.theme-control select {
  min-height:38px;
  font-size:11px;
  padding:7px 25px 7px 9px;
  color:#fff;
  background:#132c43;
  border-color:#879aab
}
.theme-control option {
  color:var(--ink);
  background:var(--surface)
}
:root[data-theme=dark] .brand-caption { border-color:#879aab }
:root[data-theme=dark] .main-nav a[aria-current=page] { border-color:var(--gold) }
:root[data-theme=dark] .primary,
:root[data-theme=dark] .chips a[aria-current=true],
:root[data-theme=dark] .segmented a[aria-current=true],
:root[data-theme=dark] .messages-metrics button[aria-pressed=true],
:root[data-theme=dark] .calday.selected,
:root[data-theme=dark] .month-card.selected {
  background:#d5b66e;
  border-color:#d5b66e;
  color:#091c31
}
:root[data-theme=dark] .calday.selected .cal-status,
:root[data-theme=dark] .month-card.selected span { color:#091c31 }
:root[data-theme=dark] .agent-card img {
  background:#fff;
  padding:5px;
  box-sizing:content-box;
  border-radius:4px
}
:root[data-theme=dark] .timeline-bar .future {
  background:repeating-linear-gradient(45deg,#283743,#283743 5px,#3c4c5a 5px,#3c4c5a 10px)
}
:root[data-theme=dark] .timeline-bar .unknown {
  background:repeating-linear-gradient(45deg,#824d54,#824d54 4px,#c58b8a 4px,#c58b8a 8px)
}
@media(max-width:800px) {
  .masthead { flex-wrap:wrap }
  .theme-control { margin-left:auto }
}
@media(max-width:500px) {
  .theme-control {
    display:flex;
    align-items:center;
    gap:10px;
    width:100%;
    justify-content:flex-end
  }
  .theme-control select { min-width:110px }
}
@media print {
  .theme-control { display:none }
}

/* Scope identity uses the selected workspace throughout navigation. */
:root {
  --identity-deep:#091c31;
  --identity-nav:#102b46;
  --identity-gold:#c9a961;
  --identity-accent:#715421;
  --identity-wash:#e9eef3;
  --identity-text:#091c31;
  --paper:#edf1f4;
  --line:#b8c5d0;
  --surface-subtle:#e7edf2;
  --muted:#415468
}
:root[data-brand=cidadania] {
  --identity-deep:#310516;
  --identity-nav:#4b1028;
  --identity-gold:#d6ae63;
  --identity-accent:#7c2849;
  --identity-wash:#f5e9ef;
  --identity-text:#310516;
  --paper:#f4edf0;
  --line:#d0b9c3;
  --surface-subtle:#f0e2e8;
  --focus:#924460
}
:root[data-brand=trabalhista] {
  --identity-deep:#073129;
  --identity-nav:#0d493b;
  --identity-gold:#d9a94f;
  --identity-accent:#1c624e;
  --identity-wash:#e6f1eb;
  --identity-text:#073129;
  --paper:#edf3ef;
  --line:#b4ccc1;
  --surface-subtle:#e0eee6;
  --focus:#28795f
}
:root[data-theme=dark] {
  --paper:#080f17;
  --surface:#122333;
  --surface-subtle:#1b3449;
  --surface-hover:#24435a;
  --line:#668096;
  --muted:#c0cfdd;
  --identity-accent:#ecd18f;
  --identity-wash:#263b50;
  --identity-text:#f2d89c
}
:root[data-theme=dark][data-brand=cidadania] {
  --paper:#180a12;
  --surface:#2c1522;
  --surface-subtle:#462337;
  --surface-hover:#593044;
  --surface-message:#3c2332;
  --surface-client:#482e40;
  --surface-event:#37222f;
  --line:#977288;
  --muted:#dec6d3;
  --identity-wash:#512b3f;
  --identity-accent:#edc77c;
  --identity-text:#f6d79d;
  --focus:#f1b3ce
}
:root[data-theme=dark][data-brand=trabalhista] {
  --paper:#071712;
  --surface:#102f26;
  --surface-subtle:#1b493b;
  --surface-hover:#285d4d;
  --surface-message:#1e4034;
  --surface-client:#293e36;
  --surface-event:#1c392f;
  --line:#6b9586;
  --muted:#c0dace;
  --identity-wash:#245240;
  --identity-accent:#edc77c;
  --identity-text:#f6d79d;
  --focus:#9ce3c8
}
.masthead {
  display:grid;
  grid-template-columns:210px minmax(220px,1fr) auto auto auto;
  min-height:154px;
  padding:28px 4%;
  gap:24px;
  background:var(--identity-deep);
  border-bottom:4px solid var(--identity-gold)
}
.brand-home {
  width:210px;
  min-height:76px;
  display:flex;
  align-items:center;
  padding:6px 0
}
.brand-home img { max-height:84px; width:100%; height:80px }
:root[data-brand=cidadania] .brand-home,
:root[data-brand=trabalhista] .brand-home {
  background:#fff;
  border:1px solid var(--identity-gold);
  border-radius:6px;
  padding:10px 12px
}
.brand-caption {
  display:grid;
  gap:5px;
  border-left:1px solid var(--identity-gold);
  padding-left:24px;
  line-height:1.35
}
.brand-product {
  font-size:9px;
  letter-spacing:1.4px;
  color:#efd9a8;
  font-weight:600
}
#brand-scope { font-size:24px; font-weight:600; letter-spacing:-.4px }
#brand-context { font-size:11px; color:#e0e7eb }
.clock { margin:0; font-size:11px; min-width:155px }
.theme-control select { background:var(--identity-nav); border-color:#c3b38f }
.main-nav {
  background:var(--identity-nav);
  color:#fff;
  border:0;
  gap:12px;
  padding-top:0
}
.main-nav a {
  padding:16px 21px;
  min-height:58px;
  font-size:13px;
  border-bottom:4px solid transparent
}
.main-nav a[aria-current=page] {
  color:#f5dc9e;
  background:var(--identity-deep);
  border-color:var(--identity-gold)
}
:root[data-theme=dark] .main-nav a[aria-current=page] { border-color:var(--identity-gold) }
main { padding-top:32px }
.page-head {
  align-items:flex-start;
  padding:0 0 24px;
  border-bottom:1px solid var(--line);
  margin-bottom:22px
}
h1 { font-size:clamp(28px,2.7vw,40px); font-weight:700; letter-spacing:-1px }
h2 { font-weight:700; font-size:21px }
.eyebrow { color:var(--identity-accent); margin-bottom:11px; letter-spacing:1.5px }
.page-head p:not(.eyebrow) { margin-top:11px; font-size:13px }
.scope-tag {
  padding:5px 9px;
  background:var(--identity-wash);
  border-left:3px solid var(--identity-gold);
  color:var(--identity-text);
  font-size:11px;
  font-weight:700
}
.head-meta { gap:8px; padding-top:3px }
.filters {
  background:var(--surface);
  padding:17px 20px;
  border:1px solid var(--line);
  border-left:4px solid var(--identity-gold);
  border-radius:5px;
  margin-bottom:24px
}
.filters>div { min-width:210px }
.filters select { font-size:12px; min-height:44px }
.source-card { padding:18px 20px; border-top-width:4px; box-shadow:0 2px 0 var(--line) }
.source-card .brandline { font-size:13px }
.source-card p { font-size:11px }
.cards {
  background:transparent;
  border:0;
  border-radius:0;
  overflow:visible;
  gap:14px;
  margin-bottom:28px
}
.metric {
  border:1px solid var(--line);
  border-radius:6px;
  background:var(--surface);
  padding:21px 22px 19px;
  gap:5px
}
.metric:last-child { border:1px solid var(--line) }
.metric:first-child { background:var(--identity-deep); border:1px solid var(--identity-gold); color:#fff }
.metric:first-child .label { color:#fff }
.metric:first-child .small { color:#e1e9ee }
:root[data-theme=dark] .metric:first-child { background:var(--identity-wash); color:var(--ink) }
:root[data-theme=dark] .metric:first-child .label { color:var(--ink) }
:root[data-theme=dark] .metric:first-child .small { color:var(--muted) }
.metric .value { font-size:38px; font-weight:700; letter-spacing:-1.1px }
.metric .label { font-size:12px; color:var(--ink); font-weight:600 }
.metric .small { font-size:10px; line-height:1.5 }
.panel,.table-shell { border-color:var(--line); box-shadow:0 3px 0 var(--line) }
.panel { padding:25px }
.panel-head { border-bottom:1px solid var(--line); padding-bottom:16px; margin-bottom:20px }
.data-table th { padding-top:16px; padding-bottom:16px; font-size:10px; color:var(--ink) }
.data-table td { padding-top:21px; padding-bottom:21px }
.data-table .person-name { font-size:14px; font-weight:700 }
.action,.episode-row .arrow { color:var(--identity-accent) }
.chips a { font-weight:600; border-width:1px; min-height:42px }
.chips a[aria-current=true],.segmented a[aria-current=true],
.messages-metrics button[aria-pressed=true],.primary {
  background:var(--identity-deep);
  border-color:var(--identity-deep);
  color:#fff
}
:root[data-theme=dark] .primary,
:root[data-theme=dark] .chips a[aria-current=true],
:root[data-theme=dark] .segmented a[aria-current=true],
:root[data-theme=dark] .messages-metrics button[aria-pressed=true],
:root[data-theme=dark] .calday.selected,
:root[data-theme=dark] .month-card.selected {
  background:var(--identity-gold);
  border-color:var(--identity-gold);
  color:#091c31
}
.episode-row { background:var(--surface-subtle); padding:19px; border-left-width:4px }
.timeline-event { border-left:3px solid var(--identity-gold); padding:16px; margin-bottom:14px }
.message .bubble { padding:15px 17px; font-size:12px; line-height:1.7 }
.message strong { font-size:12px }
.outcome { border-left-width:4px; padding:18px }
.transcript-state { border-width:1px; font-size:12px }
.calday { border-top:3px solid var(--line) }
.calday.selected,.month-card.selected { background:var(--identity-deep); border-color:var(--identity-gold); color:#fff }
footer { border-top:3px solid var(--identity-gold); margin-top:8px }
@media(max-width:1200px) {
  .masthead { grid-template-columns:190px minmax(220px,1fr) auto auto; gap:20px }
  .brand-home { width:190px }
  .brand-caption { display:grid; padding-left:20px }
  .masthead .ghost-dark { display:none }
  #brand-scope { font-size:22px }
}
@media(max-width:800px) {
  .masthead { grid-template-columns:180px minmax(0,1fr); gap:18px 20px; padding:22px 4% }
  .brand-home { width:180px }
  .brand-caption { display:grid; padding-left:18px }
  .clock { text-align:left; min-width:0; font-size:10px }
  .theme-control { display:flex; justify-content:flex-end; align-items:center; gap:10px; width:auto; margin:0 }
  .theme-control select { min-width:110px }
  .main-nav { gap:0; justify-content:space-between }
  .main-nav a { padding:13px 10px; font-size:11px }
  .metric .value { font-size:30px }
  .cards { gap:10px }
  .panel { padding:20px }
}
@media(max-width:500px) {
  .masthead { grid-template-columns:1fr; gap:14px; padding:22px 5% 18px }
  .brand-home { width:190px; min-height:67px }
  .brand-home img { height:68px }
  .brand-caption { padding-left:14px; gap:5px }
  .brand-product { font-size:8px; letter-spacing:1.2px }
  #brand-scope { font-size:24px }
  #brand-context { font-size:10px }
  .clock { margin-top:4px; max-width:none; font-size:10px }
  .clock span { font-size:10px }
  .theme-control { width:100%; justify-content:flex-start }
  .main-nav { padding:0 2% }
  .main-nav a { font-size:9px; padding:12px 6px; min-height:58px; max-width:90px }
  main { padding-top:26px }
  h1 { font-size:29px; letter-spacing:-.8px }
  h2 { font-size:20px }
  .filters { padding:16px; border-left-width:4px }
  .filters>div { min-width:0; width:100% }
  .metric { padding:17px 13px }
  .metric .value { font-size:30px }
  .metric .label { font-size:11px }
  .source-card { padding:17px }
  .panel { padding:18px }
  .message .bubble { padding:12px; font-size:11px }
}

.main-nav a:hover:not([aria-current=page]) {
  color:#fff;
  background:#ffffff0f;
  border-color:transparent
}
:root:not([data-brand=todos]) .source-grid { grid-template-columns:minmax(0,1fr) }
:root:not([data-brand=todos]) .source-card {
  grid-template-columns:minmax(180px,1.1fr) minmax(200px,1.5fr) minmax(180px,1fr) auto;
  align-items:center;
  gap:15px;
  padding:15px 20px
}
:root:not([data-brand=todos]) .source-card .pill { margin-top:0 }
@media(max-width:1100px) {
  :root:not([data-brand=todos]) .source-card { grid-template-columns:1fr 1fr }
}
@media(max-width:500px) {
  .masthead { grid-template-columns:140px minmax(0,1fr); gap:15px 13px; padding:18px 5% }
  .brand-home { width:140px; min-height:67px }
  .brand-home img { height:58px }
  :root[data-brand=cidadania] .brand-home,
  :root[data-brand=trabalhista] .brand-home { padding:7px }
  .brand-caption { padding-left:12px; gap:4px }
  .brand-product { font-size:7px; letter-spacing:.6px }
  #brand-scope { font-size:19px; line-height:1.2 }
  #brand-context { font-size:9px }
  .clock { font-size:8px; margin-top:0 }
  .clock span { font-size:8px }
  .theme-control { display:grid; gap:3px; justify-content:stretch; align-items:start; font-size:8px }
  .theme-control select { min-width:0; width:100%; min-height:34px; font-size:10px }
  :root:not([data-brand=todos]) .source-card { grid-template-columns:1fr; gap:7px; padding:16px }
}

:root[data-brand=symbios] {
  --identity-deep:#040e32;
  --identity-nav:#101f57;
  --identity-gold:#d7b76b;
  --identity-accent:#324e8d;
  --identity-wash:#e8edf9;
  --identity-text:#101f57;
  --paper:#edf0f9;
  --line:#bdc8e0;
  --surface-subtle:#e5eaf7;
  --focus:#3d5ec0
}
:root[data-theme=dark][data-brand=symbios] {
  --paper:#080e24;
  --surface:#132140;
  --surface-subtle:#1e3155;
  --surface-hover:#293f68;
  --line:#6f83a8;
  --muted:#c5d1e8;
  --identity-accent:#ecd18f;
  --identity-wash:#253b66;
  --identity-text:#f2d89c;
  --focus:#a5bbff
}
/* O RP18 conserva os tokens e a composição aprovados no RP12. */
.timeline-bar .pre,.timeline-bar .pending{background:var(--surface-future)}
.source-lines .small{overflow-wrap:anywhere}
.data-table .text-button{display:block}
.person-name{overflow-wrap:anywhere}
