/* Logs — superfícies contínuas, tipografia legível e controles próprios do Lab. */
.lg-page {
  --lg-accent: var(--os-blue);
  --lg-soft: var(--os-blue-soft);
  max-width: 1160px;
  margin: auto;
  padding: 38px 0 64px;
  color: var(--os-ink);
}
.lg-page svg,
.lg-dialog svg,
.lg-filter-popup svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.lg-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  margin-bottom: 30px;
}
.lg-eyebrow {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--os-muted);
}
.lg-eyebrow-mark {
  display: grid;
  place-items: center;
  color: var(--lg-accent);
}
.lg-eyebrow-mark svg {
  width: 15px;
  height: 15px;
}
.lg-heading h1 {
  font-size: 34px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.045em;
  margin: 12px 0 8px;
}
.lg-heading p {
  margin: 0;
  color: var(--os-muted);
  font-size: 14px;
  line-height: 1.6;
}
.lg-heading-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  flex-shrink: 0;
}
.lg-heading-right > .lg-filter-button {
  min-width: 190px;
  justify-content: flex-start;
}
.lg-fresh {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--os-muted);
  font-size: 11px;
}
.lg-live-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--os-green);
  box-shadow: 0 0 0 3px var(--os-green-soft);
}
.lg-fresh button {
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  padding: 2px;
  color: var(--os-muted);
  border-radius: 5px;
}
.lg-fresh button svg {
  width: 13px;
  height: 13px;
}
.lg-fresh button:hover {
  color: var(--os-ink);
}
.lg-filter-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 38px;
  padding: 9px 12px;
  border: 1px solid var(--os-line-strong);
  border-radius: 9px;
  background: var(--os-panel);
  color: var(--os-ink);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
  box-shadow: 0 1px 2px #16213b05;
  white-space: nowrap;
  transition:
    border-color 0.14s,
    background 0.14s,
    box-shadow 0.14s;
}
.lg-filter-button > svg:first-child {
  color: var(--os-muted);
  width: 15px;
  height: 15px;
}
.lg-filter-button > svg:last-child {
  color: var(--os-muted);
  width: 13px;
  height: 13px;
  margin-left: auto;
}
.lg-filter-button:hover,
.lg-filter-button[aria-expanded="true"] {
  border-color: color-mix(in srgb, var(--os-blue) 50%, var(--os-line));
  box-shadow: 0 0 0 3px var(--os-blue-soft);
}
.lg-filter-button.is-active {
  color: var(--os-blue);
  border-color: color-mix(in srgb, var(--os-blue) 32%, var(--os-line));
  background: var(--os-blue-soft);
}
.lg-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--os-line);
  border-radius: 14px;
  background: var(--os-panel);
  box-shadow: 0 2px 6px #17213b03;
  margin-bottom: 32px;
  overflow: hidden;
}
.lg-stat {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto auto;
  gap: 9px;
  text-align: left;
  background: transparent;
  border: 0;
  border-right: 1px solid var(--os-line);
  padding: 21px 23px;
  color: var(--os-ink);
  transition: background 0.14s;
}
.lg-stat:last-child {
  border-right: 0;
}
.lg-stat:hover {
  background: color-mix(in srgb, var(--os-panel-2) 50%, var(--os-panel));
}
.lg-stat-label {
  grid-column: 1/-1;
  grid-row: 1;
  font-size: 12px;
  color: var(--os-muted);
  font-weight: 400;
}
.lg-stat strong {
  grid-row: 2;
  grid-column: 1;
  align-self: center;
  font-size: 34px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.lg-stat-icon {
  grid-row: 2;
  grid-column: 2;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--os-blue);
  background: var(--os-blue-soft);
}
.lg-stat-icon svg {
  width: 16px;
  height: 16px;
}
.lg-stat:nth-child(3) .lg-stat-icon {
  color: var(--os-amber);
  background: var(--os-amber-soft);
}
.lg-stat:nth-child(4) .lg-stat-icon {
  color: var(--os-green);
  background: var(--os-green-soft);
}
.lg-stat-sub {
  grid-row: 3;
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  color: var(--os-muted);
  gap: 4px;
}
.lg-stat-sub svg {
  width: 13px;
  height: 13px;
  opacity: 0;
  transition: opacity 0.14s;
}
.lg-stat:hover .lg-stat-sub svg,
.lg-stat:focus-visible .lg-stat-sub svg {
  opacity: 1;
}
.lg-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 15px;
}
.lg-section-title h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.025em;
}
.lg-section-title > span,
.lg-count {
  font-size: 11px;
  color: var(--os-muted);
}
.lg-section-count {
  display: inline-grid;
  place-items: center;
  min-width: 21px;
  height: 21px;
  padding: 0 6px;
  background: var(--os-panel-2);
  border: 1px solid var(--os-line);
  border-radius: 6px;
  font-size: 10px;
  letter-spacing: 0;
  color: var(--os-muted);
}
.lg-attention {
  margin-bottom: 34px;
}
.lg-problem-grid {
  display: grid;
  gap: 10px;
}
.lg-problem {
  display: flex;
  align-items: center;
  gap: 17px;
  text-align: left;
  width: 100%;
  background: var(--os-panel);
  border: 1px solid color-mix(in srgb, var(--os-amber) 17%, var(--os-line));
  border-radius: 13px;
  padding: 20px;
  box-shadow: 0 2px 5px #17213b02;
  color: var(--os-ink);
  transition:
    border-color 0.14s,
    box-shadow 0.14s;
}
.lg-problem:hover {
  border-color: color-mix(in srgb, var(--os-amber) 45%, var(--os-line));
  box-shadow: 0 4px 12px #17213b05;
}
.lg-problem-symbol {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  align-self: flex-start;
  background: var(--os-amber-soft);
  border: 1px solid color-mix(in srgb, var(--os-amber) 10%, transparent);
  border-radius: 11px;
  color: var(--os-amber);
  flex-shrink: 0;
}
.lg-problem-main {
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
  min-width: 0;
}
.lg-problem-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--os-muted);
  font-size: 10px;
}
.lg-problem-main > strong {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}
.lg-problem-next {
  font-size: 12px;
  color: var(--os-muted);
  line-height: 1.55;
}
.lg-problem-go {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
  flex-shrink: 0;
}
.lg-problem-go > span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 500;
}
.lg-problem-go svg {
  width: 14px;
  height: 14px;
  color: var(--os-muted);
}
.lg-problem-go small {
  font-size: 10px;
  color: var(--os-muted);
}
.lg-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 7px;
  border: 1px solid var(--os-line);
  border-radius: 5px;
  font-size: 10px;
  line-height: 1.5;
  font-weight: 400;
  color: var(--os-muted);
  background: var(--os-panel-2);
  white-space: nowrap;
  width: max-content;
}
.lg-badge i {
  width: 4px;
  height: 4px;
  flex-shrink: 0;
  border-radius: 50%;
  background: currentColor;
}
.lg-badge.lg-aprovado,
.lg-badge.lg-conferida,
.lg-badge.lg-resolvido {
  color: var(--os-green);
  background: var(--os-green-soft);
  border-color: transparent;
}
.lg-badge.lg-falhou,
.lg-badge.lg-reaberto {
  color: var(--os-red);
  background: color-mix(in srgb, var(--os-red) 5%, var(--os-panel));
  border-color: color-mix(in srgb, var(--os-red) 10%, transparent);
}
.lg-badge.lg-relatado,
.lg-badge.lg-investigando,
.lg-badge.lg-aguardando_reteste,
.lg-badge.lg-em_correcao {
  color: var(--os-amber);
  background: var(--os-amber-soft);
  border-color: transparent;
}
.lg-badge.lg-em_andamento,
.lg-badge.lg-aplicada {
  color: var(--os-blue);
  background: var(--os-blue-soft);
  border-color: transparent;
}
.lg-timeline-heading {
  margin-bottom: 17px;
}
.lg-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 22px;
}
.lg-type-tabs {
  display: flex;
  gap: 2px;
  border: 1px solid var(--os-line);
  border-radius: 10px;
  padding: 3px;
  background: color-mix(in srgb, var(--os-panel-2) 65%, var(--os-panel));
  min-width: 0;
}
.lg-type-tabs > button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 15px;
  min-height: 33px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 12px;
  line-height: 1.2;
  color: var(--os-muted);
  background: transparent;
  white-space: nowrap;
  font-weight: 400;
  transition:
    background 0.14s,
    color 0.14s;
}
.lg-type-tabs > button:hover {
  color: var(--os-ink);
}
.lg-type-tabs > button[aria-selected="true"] {
  background: var(--os-panel);
  color: var(--os-ink);
  box-shadow: 0 1px 3px #17213b0c;
  border-color: var(--os-line);
}
.lg-filter-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.lg-clear {
  border: 0;
  background: transparent;
  color: var(--os-muted);
  font-size: 11px;
  padding: 8px;
  white-space: nowrap;
}
.lg-clear:hover {
  color: var(--os-blue);
}
.lg-day {
  margin-bottom: 23px;
}
.lg-day-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 0 0 10px;
  padding: 0 2px;
}
.lg-day-heading h3 {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--os-ink);
  margin: 0;
}
.lg-day-heading > span {
  font-size: 10px;
  color: var(--os-muted);
}
.lg-day-items {
  border: 1px solid var(--os-line);
  border-radius: 12px;
  background: var(--os-panel);
  overflow: hidden;
}
.lg-row {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: var(--os-ink);
  padding: 17px 20px;
  transition: background 0.14s;
}
.lg-row:hover {
  background: color-mix(in srgb, var(--os-panel-2) 50%, var(--os-panel));
}
.lg-row + .lg-row,
.lg-work + .lg-row,
.lg-row + .lg-work,
.lg-work + .lg-work {
  border-top: 1px solid var(--os-line);
}
.lg-row-symbol {
  display: grid;
  place-items: center;
  align-self: flex-start;
  margin-top: 3px;
  width: 32px;
  height: 32px;
  border: 1px solid var(--os-line);
  border-radius: 9px;
  flex-shrink: 0;
  color: var(--os-muted);
}
.lg-row-symbol svg {
  width: 16px;
  height: 16px;
}
.lg-kind-teste {
  color: var(--os-blue);
  background: var(--os-blue-soft);
  border-color: transparent;
}
.lg-kind-problema {
  color: var(--os-amber);
  background: var(--os-amber-soft);
  border-color: transparent;
}
.lg-row-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  gap: 4px;
}
.lg-row-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 10px;
  line-height: 1.4;
  color: var(--os-muted);
}
.lg-row-meta > span {
  opacity: 0.5;
}
.lg-row-body > strong {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.lg-row-summary {
  font-size: 12px;
  line-height: 1.5;
  color: var(--os-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.lg-row-arrow {
  display: flex;
  color: var(--os-muted);
  margin-left: 4px;
}
.lg-row-arrow svg {
  width: 14px;
  height: 14px;
}
.lg-work-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  color: var(--os-muted);
  padding: 13px 20px 0;
}
.lg-work-title > svg {
  width: 13px;
  height: 13px;
}
.lg-work-count {
  margin-left: 8px;
  opacity: 0.65;
}
.lg-history-footer {
  border-top: 1px solid var(--os-line);
  padding: 16px 2px;
  margin-top: 25px;
}
.lg-history-footer details {
  font-size: 11px;
  color: var(--os-muted);
}
.lg-history-footer summary {
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  list-style: none;
  width: max-content;
  max-width: 100%;
}
.lg-history-footer summary::-webkit-details-marker {
  display: none;
}
.lg-history-footer summary svg {
  width: 13px;
  height: 13px;
}
.lg-history-footer summary > svg:last-child {
  width: 11px;
  height: 11px;
  margin-left: 5px;
  transition: transform 0.14s;
}
.lg-history-footer details[open] summary > svg:last-child {
  transform: rotate(180deg);
}
.lg-history-footer p {
  margin: 10px 0 0;
  max-width: 760px;
  line-height: 1.7;
}
.lg-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--os-line-strong);
  background: var(--os-panel);
  color: var(--os-ink);
  border-radius: 8px;
  padding: 9px 14px;
  font-size: 12px;
  line-height: 1.4;
}
.lg-button:hover {
  border-color: var(--os-blue);
}
.lg-button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.lg-button svg {
  width: 14px;
  height: 14px;
}
.lg-more {
  display: flex;
  width: max-content;
  margin: 22px auto;
}
.lg-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid var(--os-line);
  border-radius: 12px;
  background: var(--os-panel);
  padding: 55px 24px;
  text-align: center;
}
.lg-empty > svg {
  color: var(--os-muted);
  width: 27px;
  height: 27px;
}
.lg-empty h3 {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.025em;
  margin: 16px 0 8px;
}
.lg-empty p {
  font-size: 13px;
  line-height: 1.6;
  max-width: 470px;
  color: var(--os-muted);
  margin: 0 0 20px;
}
.lg-skeleton {
  display: grid;
  gap: 10px;
}
.lg-skeleton i {
  height: 100px;
  border-radius: 12px;
  background: var(--os-panel-2);
  animation: lg-pulse 1.6s ease-in-out infinite;
}
.lg-notice {
  font-size: 12px;
  background: var(--os-amber-soft);
  color: var(--os-amber);
  padding: 12px 15px;
  border-radius: 8px;
}
.lg-notice button {
  border: 0;
  background: transparent;
  color: inherit;
  text-decoration: underline;
}
.lg-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--os-line);
  border-radius: 8px;
  background: var(--os-panel);
  color: var(--os-muted);
}
.lg-icon-button:hover {
  color: var(--os-ink);
  border-color: var(--os-line-strong);
}
/* Painéis de filtro: sem selects nativos, com pesquisa, seleção e teclado. */
.lg-filter-popup {
  position: fixed;
  z-index: 120;
  background: var(--os-panel);
  color: var(--os-ink);
  font-family: "Outfit", Arial, sans-serif;
  border: 1px solid var(--os-line-strong);
  border-radius: 13px;
  padding: 7px;
  box-shadow:
    0 12px 40px #16213b1c,
    0 2px 6px #16213b08;
  animation: lg-popup-in 0.13s ease-out;
}
.lg-popup-heading {
  padding: 9px 9px 12px;
  font-size: 11px;
  font-weight: 500;
  color: var(--os-muted);
  line-height: 1.3;
}
.lg-popup-search {
  padding: 0 4px 8px;
}
.lg-popup-search input {
  display: block;
  width: 100%;
  height: 36px;
  border: 1px solid var(--os-line);
  border-radius: 7px;
  background: var(--os-panel-2);
  padding: 8px 10px;
  outline: none;
  font-size: 12px;
  color: var(--os-ink);
  font-family: inherit;
}
.lg-popup-search input:focus {
  border-color: color-mix(in srgb, var(--os-blue) 40%, var(--os-line));
  box-shadow: 0 0 0 2px var(--os-blue-soft);
}
.lg-popup-search input::placeholder {
  color: var(--os-muted);
}
.lg-popup-options {
  max-height: min(315px, 45vh);
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--os-line-strong) transparent;
}
.lg-filter-popup [role="option"] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  background: transparent;
  color: var(--os-ink);
  padding: 10px 11px;
  border: 0;
  border-radius: 7px;
  text-align: left;
  font-family: inherit;
  font-size: 12px;
  line-height: 1.3;
  min-height: 37px;
}
.lg-filter-popup [role="option"]:hover,
.lg-filter-popup [role="option"]:focus-visible {
  background: var(--os-panel-2);
  outline: 0;
}
.lg-filter-popup [role="option"][aria-selected="true"] {
  background: var(--os-blue-soft);
  color: var(--os-blue);
}
.lg-option-check {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.lg-option-check svg {
  width: 14px;
  height: 14px;
  stroke-width: 2;
}
.lg-no-option {
  font-size: 12px;
  color: var(--os-muted);
  padding: 12px;
  margin: 0;
}
.lg-date-range {
  margin: 8px 3px 3px;
  padding: 13px 3px 0;
  border-top: 1px solid var(--os-line);
}
.lg-date-range[hidden] {
  display: none;
}
.lg-date-range > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.lg-date-range label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 10px;
  color: var(--os-muted);
}
.lg-date-range input {
  min-width: 0;
  width: 100%;
  border: 1px solid var(--os-line);
  border-radius: 7px;
  background: var(--os-panel);
  color: var(--os-ink);
  padding: 8px 5px;
  font-size: 11px;
  font-family: inherit;
}
.lg-date-error {
  color: var(--os-red);
  font-size: 11px;
  margin: 7px 0;
}
.lg-date-error:empty {
  display: none;
}
.lg-date-apply {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  background: var(--os-blue);
  color: var(--os-blue-ink);
  font-family: inherit;
  font-size: 12px;
  border: 0;
  border-radius: 7px;
  min-height: 36px;
}
.lg-date-apply svg {
  width: 14px;
  height: 14px;
}
@keyframes lg-popup-in {
  from {
    opacity: 0;
    transform: translateY(-3px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes lg-pulse {
  50% {
    opacity: 0.5;
  }
}
.lg-dialog {
  width: min(920px, 95vw);
  max-width: none;
  max-height: 100dvh;
  height: 100dvh;
  margin: 0 0 0 auto;
  border: 0;
  border-left: 1px solid var(--os-line);
  padding: 0;
  background: var(--os-panel);
  color: var(--os-ink);
  box-shadow: -30px 0 80px #0002;
}
.lg-dialog::backdrop {
  background: var(--os-scrim);
  backdrop-filter: blur(3px);
}
.lg-dialog-expanded {
  width: 100vw;
}
.lg-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 19px 30px;
  border-bottom: 1px solid var(--os-line);
  height: 75px;
}
.lg-detail-head > div {
  display: flex;
  gap: 8px;
}
.lg-detail-scroll {
  height: calc(100dvh - 75px);
  overflow: auto;
  overscroll-behavior: contain;
  padding: 30px;
}
.lg-detail-intro {
  padding-bottom: 25px;
  border-bottom: 1px solid var(--os-line);
}
.lg-detail-intro h2 {
  font-size: 30px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.035em;
  margin: 16px 0 12px;
}
.lg-detail-intro > p {
  font-size: 14px;
  color: var(--os-muted);
}
.lg-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 11px;
  color: var(--os-muted);
  margin-top: 22px;
}
.lg-detail-meta > span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.lg-detail-meta svg {
  width: 14px;
  height: 14px;
}
.lg-detail-section {
  margin-top: 29px;
}
.lg-detail-section > h3,
.lg-limit h3 {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0 0 13px;
}
.lg-detail-section > p,
.lg-detail-section div > p {
  font-size: 13px;
  line-height: 1.7;
  margin: 5px 0;
  color: var(--os-muted);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.lg-diff,
.lg-expect {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.lg-diff > div,
.lg-expect > div {
  background: var(--os-panel-2);
  border: 1px solid var(--os-line);
  border-radius: 11px;
  padding: 16px;
}
.lg-diff > div > span,
.lg-expect > div > span {
  font-size: 10px;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--os-muted);
}
.lg-diff > div:last-child {
  background: var(--os-green-soft);
  border-color: transparent;
}
.lg-map-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
  color: var(--os-muted);
}
.lg-map-toolbar > div {
  display: flex;
  gap: 6px;
}
.lg-map-toolbar .lg-button {
  padding: 4px 12px;
  font-size: 18px;
}
.lg-map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 10px;
  color: var(--os-muted);
  margin: 14px 0;
}
.lg-map-scroll {
  overflow: auto;
  max-height: 500px;
  min-height: 220px;
  border: 1px solid var(--os-line);
  border-radius: 12px;
  background:
    radial-gradient(var(--os-line-strong) 1px, transparent 1px) 0 0/18px 18px,
    var(--os-panel-2);
}
.lg-map {
  position: relative;
}
.lg-map-canvas {
  position: relative;
  transform-origin: top left;
}
.lg-map-canvas > svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  stroke: var(--os-line-strong);
  stroke-width: 1.5;
  fill: none;
}
.lg-map-canvas svg text {
  font-size: 11px;
  fill: var(--os-muted);
  stroke: none;
}
.lg-map-canvas svg .lg-edge-ok {
  stroke: var(--os-green);
}
.lg-map-canvas svg .lg-edge-falhou {
  stroke: var(--os-red);
}
.lg-map-canvas svg .lg-edge-pulado {
  stroke-dasharray: 5 5;
  opacity: 0.5;
}
.lg-node {
  position: absolute;
  width: 230px;
  height: 90px;
  background: var(--os-panel);
  border: 1px solid var(--os-line-strong);
  border-radius: 12px;
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 4px 9px;
  text-align: left;
  padding: 14px;
  color: var(--os-ink);
  box-shadow: var(--os-shadow-sm);
}
.lg-node > span {
  grid-row: 1/3;
  color: var(--os-muted);
  font-size: 16px;
}
.lg-node > strong {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.lg-node > small {
  font-size: 10px;
  color: var(--os-muted);
}
.lg-node-ok {
  border-color: var(--os-green);
}
.lg-node-ok > span {
  color: var(--os-green);
}
.lg-node-falhou {
  border-color: var(--os-red);
}
.lg-node-falhou > span {
  color: var(--os-red);
}
.lg-node-pulado {
  opacity: 0.6;
  border-style: dashed;
}
.lg-node[aria-pressed="true"] {
  outline: 3px solid var(--os-blue);
  outline-offset: 3px;
}
.lg-node-evidence {
  border-left: 2px solid var(--os-blue);
  padding: 12px 15px;
  margin-top: 15px;
  font-size: 12px;
  background: var(--os-blue-soft);
  border-radius: 0 8px 8px 0;
}
.lg-node-evidence > strong {
  font-weight: 500;
}
.lg-cover-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.lg-cover-grid > div {
  padding: 15px;
  border: 1px solid var(--os-line);
  border-radius: 10px;
}
.lg-cover-grid > div > span {
  font-size: 11px;
  font-weight: 500;
}
.lg-checks {
  list-style: none;
  padding: 0;
  margin: 0;
}
.lg-checks li {
  display: flex;
  gap: 12px;
  border-bottom: 1px solid var(--os-line);
  padding: 12px 0;
}
.lg-checks strong {
  font-size: 12px;
  font-weight: 500;
}
.lg-check-mark {
  border: 0;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--os-panel-2);
  flex-shrink: 0;
}
.lg-related {
  border: 1px solid var(--os-line);
  border-radius: 12px;
  overflow: hidden;
}
.lg-history {
  list-style: none;
  padding: 0 0 0 12px;
  margin: 0;
  border-left: 1px solid var(--os-line);
}
.lg-history li {
  position: relative;
  padding: 0 0 20px 14px;
}
.lg-history li:before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--os-blue);
  position: absolute;
  left: -15px;
  top: 6px;
}
.lg-history li > span {
  display: block;
  font-size: 10px;
  color: var(--os-muted);
  margin-bottom: 4px;
}
.lg-history li > strong {
  font-size: 12px;
  font-weight: 500;
}
.lg-history p {
  font-size: 12px;
  color: var(--os-muted);
  margin: 4px 0;
}
.lg-limit {
  background: var(--os-panel-2);
  border-radius: 11px;
  padding: 18px;
  margin: 30px 0 12px;
}
.lg-limit p {
  font-size: 12px;
  color: var(--os-muted);
  line-height: 1.6;
  margin: 5px 0;
}
.lg-dialog-loading {
  padding: 32px;
}
.lg-dialog-loading > .lg-icon-button {
  float: right;
}
.lg-dialog-loading p {
  font-size: 14px;
  color: var(--os-muted);
}

.lg-conversation {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid var(--os-line);
  background: var(--os-panel-2);
  border-radius: 12px;
  padding: 18px;
}
.lg-message {
  padding: 14px 17px;
  background: var(--os-panel);
  border: 1px solid var(--os-line);
  border-radius: 12px;
  max-width: 90%;
  align-self: flex-start;
}
.lg-message-cliente {
  align-self: flex-end;
  background: var(--os-blue-soft);
  border-color: transparent;
}
.lg-message > span {
  font-size: 10px;
  color: var(--os-muted);
}
.lg-message > p {
  font-size: 13px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 6px 0 0;
  line-height: 1.6;
}
.lg-detail-head .lg-eyebrow {
  font-size: 10px;
}
.lg-detail-head {
  padding: 18px 28px;
}
.lg-detail-intro h2 {
  font-size: 28px;
  letter-spacing: -0.035em;
}
.lg-detail-section > h3 {
  font-weight: 500;
  font-size: 14px;
}
.lg-detail-section {
  margin-top: 27px;
}
.lg-dialog .lg-row {
  padding: 16px;
}
@media (max-width: 950px) {
  .lg-toolbar {
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
  }
  .lg-filter-actions {
    margin-left: auto;
  }
  .lg-stat {
    padding: 19px;
  }
  .lg-heading h1 {
    font-size: 31px;
  }
  .lg-problem-go {
    max-width: 140px;
  }
}
@media (max-width: 680px) {
  .lg-page {
    padding: 22px 0 38px;
  }
  .lg-heading {
    align-items: flex-start;
    gap: 21px;
    flex-direction: column;
    margin-bottom: 23px;
  }
  .lg-heading h1 {
    font-size: 29px;
    line-height: 1.2;
    margin-top: 10px;
  }
  .lg-heading p {
    font-size: 13px;
    max-width: 280px;
  }
  .lg-heading-right {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 12px;
  }
  .lg-heading-right > .lg-filter-button {
    min-width: 0;
    font-size: 11px;
    gap: 7px;
    padding: 8px 10px;
  }
  .lg-fresh {
    font-size: 10px;
    gap: 5px;
    white-space: nowrap;
  }
  .lg-fresh button {
    display: none;
  }
  .lg-stats {
    grid-template-columns: 1fr 1fr;
    margin-bottom: 26px;
  }
  .lg-stat {
    padding: 17px 16px;
    gap: 8px;
    border-bottom: 1px solid var(--os-line);
  }
  .lg-stat:nth-child(2) {
    border-right: 0;
  }
  .lg-stat:nth-child(3),
  .lg-stat:nth-child(4) {
    border-bottom: 0;
  }
  .lg-stat strong {
    font-size: 29px;
  }
  .lg-stat-label {
    font-size: 11px;
  }
  .lg-stat-sub {
    font-size: 10px;
  }
  .lg-stat-icon {
    width: 29px;
    height: 29px;
    border-radius: 9px;
  }
  .lg-section-title h2 {
    font-size: 17px;
  }
  .lg-section-title > span {
    font-size: 10px;
  }
  .lg-problem {
    align-items: flex-start;
    gap: 11px;
    padding: 15px;
    flex-wrap: wrap;
  }
  .lg-problem-symbol {
    width: 31px;
    height: 31px;
    border-radius: 9px;
  }
  .lg-problem-symbol svg {
    width: 15px;
    height: 15px;
  }
  .lg-problem-main {
    flex-basis: calc(100% - 45px);
  }
  .lg-problem-main > strong {
    font-size: 13px;
  }
  .lg-problem-next {
    font-size: 11px;
    line-height: 1.6;
  }
  .lg-problem-go {
    max-width: none;
    width: calc(100% - 42px);
    flex-shrink: 1;
    margin-left: 42px;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--os-line);
    padding-top: 12px;
  }
  .lg-problem-go > span {
    font-size: 10px;
  }
  .lg-problem-go small {
    font-size: 9px;
  }
  .lg-attention {
    margin-bottom: 27px;
  }
  .lg-toolbar {
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 20px;
    gap: 12px;
  }
  .lg-type-tabs {
    width: 100%;
  }
  .lg-type-tabs > button {
    flex: 1;
    padding: 8px 6px;
    font-size: 11px;
    min-height: 32px;
  }
  .lg-filter-actions {
    width: 100%;
    justify-content: flex-end;
  }
  .lg-filter-actions .lg-filter-button {
    font-size: 11px;
    min-height: 35px;
    gap: 7px;
  }
  .lg-clear {
    margin-right: auto;
    font-size: 10px;
    padding-left: 0;
  }
  .lg-row {
    gap: 11px;
    flex-wrap: wrap;
    padding: 16px 14px;
  }
  .lg-row-symbol {
    width: 28px;
    height: 28px;
  }
  .lg-row-symbol svg {
    width: 14px;
    height: 14px;
  }
  .lg-row-body {
    flex-basis: calc(100% - 41px);
  }
  .lg-row-meta {
    font-size: 9px;
  }
  .lg-row-body > strong {
    font-size: 12px;
  }
  .lg-row-summary {
    font-size: 11px;
  }
  .lg-row > .lg-badge {
    margin-left: 39px;
  }
  .lg-row-arrow {
    margin-left: auto;
  }
  .lg-badge {
    font-size: 9px;
  }
  .lg-work-title {
    padding: 12px 14px 0;
    font-size: 9px;
  }
  .lg-history-footer summary {
    font-size: 10px;
  }
  .lg-filter-popup {
    border-radius: 11px;
  }
  .lg-dialog {
    width: 100vw;
  }
  .lg-detail-head {
    padding: 16px 18px;
  }
  .lg-detail-scroll {
    padding: 23px 19px;
  }
  .lg-detail-intro h2 {
    font-size: 25px;
  }
  .lg-diff,
  .lg-expect,
  .lg-cover-grid {
    grid-template-columns: 1fr;
  }
  .lg-map-toolbar > span {
    max-width: 170px;
  }
  .lg-map-legend {
    gap: 10px;
  }
  .lg-map-scroll {
    max-height: 380px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .lg-page *,
  .lg-dialog *,
  .lg-filter-popup {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Leitura de operação: cada execução cabe em uma linha, com contexto comparável. */
.lg-page {
  max-width: 1320px;
  padding-top: 26px;
}
.lg-heading {
  margin-bottom: 24px;
}
.lg-heading h1 {
  font-size: 30px;
}
.lg-stats {
  margin-bottom: 26px;
}
.lg-stat {
  padding: 17px 21px;
  gap: 7px;
}
.lg-stat strong {
  font-size: 30px;
}
.lg-timeline-heading {
  margin-bottom: 16px;
}
.lg-toolbar {
  gap: 12px;
  flex-wrap: wrap;
}
.lg-filter-actions {
  gap: 8px;
}
.lg-table-surface {
  border: 1px solid var(--os-line);
  border-radius: 14px;
  background: var(--os-panel);
  overflow: hidden;
  box-shadow: 0 2px 8px #17213b03;
}
.lg-activity-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  text-align: left;
}
.lg-col-activity {
  width: 33%;
}
.lg-col-category {
  width: 13%;
}
.lg-col-result {
  width: 16%;
}
.lg-col-person {
  width: 18%;
}
.lg-col-duration {
  width: 11%;
}
.lg-col-time {
  width: 9%;
}
.lg-activity-table thead {
  background: var(--os-panel);
}
.lg-activity-table thead th {
  padding: 15px 16px;
  font-size: 10px;
  letter-spacing: 0.035em;
  font-weight: 500;
  color: var(--os-muted);
  border-bottom: 1px solid var(--os-line);
  white-space: nowrap;
}
.lg-activity-table thead th:first-child {
  padding-left: 20px;
}
.lg-table-day th {
  padding: 10px 20px;
  background: var(--os-panel-2);
  border-block: 1px solid var(--os-line);
  font-size: 11px;
  font-weight: 500;
}
.lg-table-day small {
  margin-left: 10px;
  font-size: 10px;
  color: var(--os-muted);
  font-weight: 400;
}
.lg-table-row {
  transition: background 0.14s;
  cursor: pointer;
}
.lg-table-row:hover,
.lg-table-row:focus-within {
  background: color-mix(in srgb, var(--os-blue) 3%, var(--os-panel));
}
.lg-table-row td {
  padding: 17px 16px;
  border-bottom: 1px solid var(--os-line);
  vertical-align: middle;
}
.lg-activity-table tbody:last-child tr:last-child td {
  border-bottom: 0;
}
.lg-table-row td:first-child {
  padding-left: 20px;
}
.lg-activity-cell {
  position: relative;
}
.lg-activity-cell > div {
  margin-left: 45px;
  min-width: 0;
}
.lg-table-symbol {
  display: grid;
  place-items: center;
  position: absolute;
  top: 22px;
  left: 20px;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--os-panel-2);
  color: var(--os-muted);
}
.lg-table-symbol.lg-kind-teste {
  color: var(--os-blue);
  background: var(--os-blue-soft);
}
.lg-table-symbol.lg-kind-problema {
  color: var(--os-amber);
  background: var(--os-amber-soft);
}
.lg-table-symbol svg {
  width: 16px;
  height: 16px;
}
.lg-activity-kicker {
  display: block;
  font-size: 9px;
  color: var(--os-muted);
  margin-bottom: 3px;
}
.lg-activity-kicker > span {
  opacity: 0.8;
}
.lg-table-open {
  display: block;
  border: 0;
  border-radius: 3px;
  padding: 0;
  margin: 0;
  font: inherit;
  color: var(--os-ink);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  text-align: left;
  background: none;
  cursor: pointer;
}
.lg-table-row:hover .lg-table-open {
  color: var(--os-blue);
}
.lg-table-open:focus-visible {
  outline: 2px solid var(--os-blue);
  outline-offset: 4px;
}
.lg-activity-summary {
  display: block;
  font-size: 10px;
  color: var(--os-muted);
  line-height: 1.5;
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lg-category {
  display: inline-flex;
  align-items: center;
  padding: 5px 8px;
  border-radius: 6px;
  border: 1px solid var(--os-line);
  color: var(--os-ink);
  font-size: 10px;
  line-height: 1.25;
  background: var(--os-panel);
}
.lg-cat-workflow {
  background: var(--os-blue-soft);
  border-color: transparent;
  color: var(--os-blue);
}
.lg-cat-agente,
.lg-cat-agente_externo,
.lg-cat-especialidade {
  background: color-mix(in srgb, #8156d9 10%, var(--os-panel));
  border-color: transparent;
  color: color-mix(in srgb, #8156d9 85%, var(--os-ink));
}
.lg-cat-nao_identificada {
  color: var(--os-muted);
  border-style: dashed;
}
.lg-category-cell > small {
  display: block;
  margin-top: 6px;
  font-size: 9px;
  color: var(--os-muted);
  line-height: 1.4;
}
.lg-result-cell .lg-badge {
  font-size: 9px;
  padding: 5px 7px;
  white-space: normal;
}
.lg-run-progress {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
  max-width: 125px;
  font-size: 9px;
  line-height: 1.4;
  color: var(--os-muted);
}
.lg-run-track {
  display: flex;
  height: 3px;
  border-radius: 5px;
  background: var(--os-line);
  overflow: hidden;
}
.lg-run-track i {
  background: var(--os-green);
}
.lg-run-track b {
  background: var(--os-red, #cc554d);
}
.lg-run-hint {
  display: block;
  font-size: 9px;
  color: var(--os-muted);
  margin-top: 6px;
}
.lg-person-cell {
  position: relative;
}
.lg-person-cell > div {
  margin-left: 33px;
  min-width: 0;
}
.lg-person-avatar {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid color-mix(in srgb, var(--os-blue) 12%, var(--os-line));
  border-radius: 50%;
  background: var(--os-blue-soft);
  color: var(--os-blue);
  font-size: 9px;
  font-weight: 500;
}
.lg-person-avatar.is-unknown {
  background: var(--os-panel-2);
  color: var(--os-muted);
  border-color: var(--os-line);
}
.lg-person-cell strong {
  display: block;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.lg-person-cell small {
  display: block;
  margin-top: 4px;
  font-size: 9px;
  line-height: 1.4;
  color: var(--os-muted);
}
.lg-duration-cell {
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.lg-duration-cell svg {
  width: 12px;
  height: 12px;
  color: var(--os-muted);
  margin-right: 5px;
  vertical-align: -2px;
}
.lg-duration-cell.is-unknown {
  font-size: 9px;
  color: var(--os-muted);
}
.lg-time-cell {
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--os-muted);
}
.lg-time-cell svg {
  width: 12px;
  height: 12px;
  margin-left: 10px;
  vertical-align: -2px;
  opacity: 0.6;
}
.lg-table-work th {
  padding: 10px 20px;
  font-size: 10px;
  font-weight: 400;
  color: var(--os-muted);
  background: color-mix(in srgb, var(--os-panel-2) 40%, var(--os-panel));
}
.lg-table-work th > svg {
  width: 12px;
  height: 12px;
  margin-right: 7px;
  vertical-align: -2px;
}
.lg-table-work small {
  margin-left: 10px;
  opacity: 0.8;
  font-size: 9px;
}
.lg-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;
}
.lg-detail-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--os-line);
  border-radius: 12px;
  margin-top: 22px;
  overflow: hidden;
  background: var(--os-panel-2);
}
.lg-detail-facts > div {
  padding: 15px;
  border-right: 1px solid var(--os-line);
}
.lg-detail-facts > div:last-child {
  border: 0;
}
.lg-detail-facts span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: var(--os-muted);
  margin-bottom: 9px;
}
.lg-detail-facts svg {
  width: 13px;
  height: 13px;
}
.lg-detail-facts strong {
  display: block;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.lg-detail-facts small {
  display: block;
  font-size: 9px;
  line-height: 1.5;
  color: var(--os-muted);
  margin-top: 4px;
}
.lg-diff:not(.is-applied) > div:last-child {
  background: var(--os-panel-2);
  border-color: var(--os-line);
}
@media (min-width: 681px) and (max-width: 1100px) {
  .lg-activity-table thead th,
  .lg-table-row td {
    padding-inline: 10px;
  }
  .lg-person-avatar {
    left: 10px;
  }
  .lg-person-cell > div {
    margin-left: 30px;
  }
  .lg-col-activity {
    width: 30%;
  }
  .lg-col-category {
    width: 13%;
  }
  .lg-col-result {
    width: 17%;
  }
  .lg-col-person {
    width: 19%;
  }
  .lg-col-duration {
    width: 12%;
  }
  .lg-time-cell svg {
    display: none;
  }
  .lg-category {
    font-size: 9px;
    padding: 4px 6px;
  }
  .lg-filter-actions {
    margin-left: 0;
    flex-wrap: wrap;
  }
  .lg-detail-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .lg-detail-facts > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--os-line);
  }
}
@media (max-width: 680px) {
  .lg-heading h1 {
    font-size: 27px;
  }
  .lg-activity-table,
  .lg-activity-table tbody {
    display: block;
  }
  .lg-activity-table colgroup,
  .lg-activity-table thead {
    display: none;
  }
  .lg-table-day {
    display: block;
  }
  .lg-table-day th {
    display: block;
  }
  .lg-table-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 13px 14px;
    padding: 17px 16px;
    border-bottom: 1px solid var(--os-line);
  }
  .lg-table-row td,
  .lg-table-row td:first-child {
    display: block;
    padding: 0;
    border: 0;
    min-width: 0;
  }
  .lg-table-row .lg-activity-cell {
    grid-column: 1/-1;
    padding-right: 40px;
  }
  .lg-activity-cell > div {
    margin-left: 41px;
  }
  .lg-table-symbol {
    left: 0;
    top: 1px;
  }
  .lg-table-open {
    font-size: 13px;
  }
  .lg-activity-summary {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 11px;
  }
  .lg-table-row td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-size: 9px;
    color: var(--os-muted);
    margin-bottom: 7px;
  }
  .lg-category-cell {
    grid-row: 2;
    grid-column: 1;
  }
  .lg-result-cell {
    grid-row: 2;
    grid-column: 2;
  }
  .lg-person-cell {
    grid-row: 3;
    grid-column: 1;
  }
  .lg-duration-cell {
    grid-row: 3;
    grid-column: 2;
  }
  .lg-person-avatar {
    left: 0;
    top: 25px;
    transform: none;
  }
  .lg-person-cell > div {
    margin-left: 33px;
  }
  .lg-table-row .lg-time-cell {
    position: absolute;
    right: 16px;
    top: 19px;
    font-size: 10px;
  }
  .lg-table-row .lg-time-cell::before,
  .lg-time-cell svg {
    display: none !important;
  }
  .lg-table-row {
    position: relative;
  }
  .lg-duration-cell {
    font-size: 12px;
  }
  .lg-category {
    font-size: 10px;
  }
  .lg-result-cell .lg-badge {
    font-size: 10px;
  }
  .lg-run-progress {
    max-width: 140px;
  }
  .lg-person-cell strong {
    font-size: 11px;
  }
  .lg-person-cell small {
    font-size: 9px;
  }
  .lg-table-work {
    display: block;
  }
  .lg-table-work th {
    display: block;
  }
  .lg-detail-facts {
    grid-template-columns: 1fr 1fr;
  }
  .lg-detail-facts > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--os-line);
  }
  .lg-detail-facts > div:nth-child(2) {
    border-right: 0;
  }
  .lg-filter-actions {
    flex-wrap: wrap;
  }
  .lg-filter-actions .lg-filter-button {
    flex: 1;
  }
}
.lg-single {
  grid-template-columns: 1fr;
}
.lg-evidence-gap {
  display: flex;
  gap: 12px;
  border: 1px dashed var(--os-line-strong);
  border-radius: 10px;
  padding: 16px;
  color: var(--os-muted);
}
.lg-evidence-gap > svg {
  width: 17px;
  height: 17px;
  margin-top: 2px;
}
.lg-evidence-gap strong {
  font-size: 12px;
  font-weight: 500;
  color: var(--os-ink);
}
.lg-evidence-gap p,
.lg-missing-note {
  font-size: 11px !important;
  line-height: 1.6;
}

/* Resultado recente e histórico têm leituras distintas, sem reclassificar evidências. */
.lg-results {
  border: 1px solid var(--os-line);
  border-radius: 14px;
  background: var(--os-panel);
  overflow: hidden;
  margin-bottom: 14px;
}
.lg-results-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 21px 23px 0;
}
.lg-results-heading h2 {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.025em;
  margin: 8px 0 0;
  line-height: 1.4;
}
.lg-results-heading .lg-eyebrow {
  font-size: 9px;
}
.lg-summary-scope {
  font-size: 10px;
  color: var(--os-muted);
  padding: 6px 9px;
  background: var(--os-panel-2);
  border: 1px solid var(--os-line);
  border-radius: 7px;
}
.lg-result-stats {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  margin: 19px 0 0;
}
.lg-result-stats .lg-stat {
  padding-block: 12px 17px;
}
.lg-result-stats .lg-stat:nth-child(2) strong,
.lg-result-stats .lg-stat:nth-child(2) .lg-stat-icon {
  color: var(--os-green);
}
.lg-result-stats .lg-stat:nth-child(2) .lg-stat-icon {
  background: var(--os-green-soft);
}
.lg-result-stats .lg-stat:nth-child(3) .lg-stat-icon {
  background: color-mix(in srgb, #d45a61 10%, var(--os-panel));
  color: #c9535a;
}
.lg-result-stats .lg-stat:nth-child(4) .lg-stat-icon {
  background: var(--os-amber-soft);
  color: var(--os-amber);
}
.lg-result-distribution {
  padding: 0 23px;
}
.lg-result-bar {
  display: flex;
  height: 5px;
  background: var(--os-line);
  border-radius: 5px;
  overflow: hidden;
  margin-top: 9px;
  gap: 2px;
}
.lg-result-bar > i {
  display: block;
  height: 100%;
}
.lg-result-bar .is-passed {
  background: var(--os-green);
}
.lg-result-bar .is-failed {
  background: #ce656b;
}
.lg-result-bar .is-pending {
  background: var(--os-amber);
}
.lg-distribution-caption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 10px;
  font-size: 10px;
  color: var(--os-muted);
  line-height: 1.5;
}
.lg-distribution-caption strong {
  font-weight: 500;
  color: var(--os-green);
}
.lg-results-note {
  font-size: 10px;
  line-height: 1.6;
  color: var(--os-muted);
  padding: 13px 23px 17px;
  margin: 0;
}
.lg-other-progress {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}
.lg-other-progress button {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--os-line);
  border-radius: 9px;
  background: var(--os-panel);
  color: var(--os-ink);
  text-align: left;
}
.lg-other-progress button > span {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: var(--os-muted);
  flex: 1;
}
.lg-other-progress svg {
  width: 14px;
  height: 14px;
  color: var(--os-muted);
}
.lg-other-progress strong {
  font-size: 16px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.lg-other-progress button:hover {
  border-color: var(--os-line-strong);
  background: var(--os-panel-2);
}
.lg-evidence-view {
  margin: 0 0 18px;
}
.lg-view-toggle {
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--os-line);
  border-radius: 10px;
  background: var(--os-panel-2);
  gap: 4px;
}
.lg-view-toggle button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: var(--os-muted);
  background: transparent;
  font-size: 11px;
}
.lg-view-toggle button[aria-pressed="true"] {
  color: var(--os-ink);
  border-color: var(--os-line);
  background: var(--os-panel);
  box-shadow: 0 1px 3px #10203b06;
}
.lg-view-toggle svg {
  width: 14px;
  height: 14px;
}
.lg-evidence-view > p {
  font-size: 10px;
  line-height: 1.6;
  color: var(--os-muted);
  margin: 8px 1px 0;
  max-width: 780px;
}
.lg-attempts-count {
  display: block;
  margin-top: 5px;
  font-size: 9px;
  color: var(--os-blue);
}
@media (max-width: 680px) {
  .lg-results-heading {
    padding: 18px 16px 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
  .lg-results-heading h2 {
    font-size: 17px;
  }
  .lg-result-stats {
    margin-top: 13px;
  }
  .lg-result-stats .lg-stat {
    padding: 14px 16px;
  }
  .lg-result-distribution {
    padding-inline: 16px;
  }
  .lg-results-note {
    padding-inline: 16px;
  }
  .lg-distribution-caption {
    gap: 5px;
  }
  .lg-other-progress {
    grid-template-columns: 1fr;
    gap: 7px;
  }
  .lg-other-progress button {
    padding: 11px 14px;
  }
  .lg-view-toggle {
    display: flex;
  }
  .lg-view-toggle button {
    flex: 1;
    justify-content: center;
    font-size: 10px;
    padding: 8px;
    line-height: 1.5;
  }
}

/* ===== Logs v2 (03/11): ao vivo, números, ritmo, publicações e linha do tempo ===== */
.lv-page { --lv-violet: #6b4ce6; --lv-violet-soft: rgba(107, 76, 230, 0.09); --lv-live: #16a36f; }
:root[data-theme='dark'] .lv-page { --lv-violet: #a08bff; --lv-violet-soft: rgba(160, 139, 255, 0.13); --lv-live: #4cc79a; }
.lg-card { background: var(--os-panel); border: 1px solid var(--os-line); border-radius: 18px; box-shadow: var(--os-shadow-sm); }
.lv-page button { font: inherit; color: inherit; }
.lg-badge.lg-no_ar, .lg-badge.lg-concluida { color: var(--os-green); background: var(--os-green-soft); border-color: transparent; }
.lg-badge.lg-publicando { color: var(--lv-violet); background: var(--lv-violet-soft); border-color: transparent; }
.lg-badge.lg-desfeita { color: var(--os-red); background: rgba(180, 35, 24, 0.08); border-color: transparent; }
.lv-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; background: var(--os-panel-2); color: var(--os-muted); }
.lv-ic-upload { background: var(--lv-violet-soft); color: var(--lv-violet); }
.lv-ic-spark, .lv-ic-test { background: var(--os-blue-soft); color: var(--os-blue); }
.lv-ic-bug, .lv-ic-clock { background: var(--os-amber-soft); color: var(--os-amber); }
.lv-bar { display: flex; height: 6px; border-radius: 9px; background: var(--os-panel-2); overflow: hidden; margin-top: 8px; }
.lv-bar i { background: var(--os-green); }
.lv-bar b { background: var(--os-red); }
.lv-bar u { width: 100%; background: repeating-linear-gradient(90deg, var(--lv-violet) 0 8px, var(--lv-violet-soft) 8px 16px); background-size: 32px 6px; animation: lv-slide 1s linear infinite; }
@keyframes lv-slide { to { background-position: 32px 0; } }
.lv-none { padding: 6px 0; }
.lv-none strong { display: block; font-size: 13.5px; font-weight: 500; }
.lv-none span { display: block; font-size: 12.3px; color: var(--os-muted); margin-top: 3px; line-height: 1.5; }

/* Ao vivo */
.lv-live { display: grid; grid-template-columns: 1.05fr 1.15fr 0.95fr; overflow: hidden; margin-bottom: 18px; }
.lv-live-empty { padding: 22px 24px; color: var(--os-muted); font-size: 13px; }
.lv-col { padding: 22px 24px; min-width: 0; }
.lv-col + .lv-col { border-left: 1px solid var(--os-line); }
.lv-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; gap: 10px; }
.lv-title h2 { font-size: 15px; font-weight: 600; margin: 0; display: flex; align-items: center; gap: 9px; letter-spacing: -0.01em; }
.lv-title small { font-size: 11.5px; color: var(--os-muted); }
.lv-pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--lv-live); position: relative; display: inline-block; }
.lv-pulse::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--lv-live); animation: lv-pulse 1.8s ease-out infinite; }
.lv-pulse.is-off { background: var(--os-line-strong); }
.lv-pulse.is-off::after { display: none; }
@keyframes lv-pulse { from { transform: scale(0.5); opacity: 0.7; } to { transform: scale(1.4); opacity: 0; } }
.lv-who { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; }
.lv-who + .lv-who { border-top: 1px dashed var(--os-line); }
.lv-who > div { min-width: 0; flex: 1; }
.lv-who strong { font-size: 13.5px; font-weight: 600; display: block; }
.lv-who span { font-size: 12px; color: var(--os-muted); display: block; margin-top: 2px; }
.lv-who em { font-style: normal; font-size: 12.5px; display: block; margin-top: 5px; }
.lv-av { width: 34px; height: 34px; border-radius: 50%; background: var(--os-blue-soft); color: var(--os-blue); display: grid; place-items: center; font-size: 12px; font-weight: 600; position: relative; flex-shrink: 0; }
.lv-av.is-ia { background: var(--lv-violet-soft); color: var(--lv-violet); }
.lv-av.is-unknown { background: var(--os-panel-2); color: var(--os-muted); }
.lv-av i { position: absolute; right: -1px; bottom: -1px; width: 10px; height: 10px; border-radius: 50%; background: var(--lv-live); border: 2px solid var(--os-panel); }
.lv-av i.is-idle { background: #d9a13b; }
.lv-run { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 10px 0; cursor: pointer; }
.lv-run + .lv-run { border-top: 1px dashed var(--os-line); }
.lv-run-top { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; }
.lv-run-top strong { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lv-run-top small { color: var(--os-muted); font-size: 11.5px; white-space: nowrap; }
.lv-run-meta { display: flex; gap: 7px; align-items: center; font-size: 12px; color: var(--os-muted); margin-top: 3px; }
.lv-k { font-size: 10px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; padding: 2px 7px; border-radius: 6px; background: var(--os-panel-2); white-space: nowrap; }
.lv-k-publicacao { background: var(--lv-violet-soft); color: var(--lv-violet); }
.lv-k-teste, .lv-k-rodada { background: var(--os-blue-soft); color: var(--os-blue); }
.lv-spark { display: flex; align-items: flex-end; gap: 2px; height: 84px; margin: 6px 0 8px; }
.lv-spark i { flex: 1; background: var(--os-blue); opacity: 0.22; border-radius: 2px 2px 0 0; }
.lv-spark i.is-now { opacity: 0.85; }
.lv-axis { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--os-muted); }
.lv-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.lv-stats div { background: var(--os-panel-2); border-radius: 10px; padding: 9px 10px; }
.lv-stats b { font-size: 18px; font-weight: 600; display: block; letter-spacing: -0.02em; }
.lv-stats span { font-size: 11px; color: var(--os-muted); }

/* Números */
.lv-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.lv-kpi { display: flex; flex-direction: column; text-align: left; padding: 18px 20px; cursor: pointer; transition: border-color 0.15s, transform 0.15s; }
.lv-kpi:hover { border-color: var(--os-line-strong); transform: translateY(-1px); }
.lv-kpi-top { display: flex; justify-content: space-between; align-items: center; color: var(--os-muted); font-size: 12.5px; }
.lv-kpi-top .lv-ic { width: 30px; height: 30px; border-radius: 9px; }
.lv-kpi strong { font-size: 32px; font-weight: 500; letter-spacing: -0.04em; margin: 10px 0 2px; }
.lv-kpi strong small { font-size: 15px; color: var(--os-muted); font-weight: 400; letter-spacing: 0; }
.lv-kpi-sub { font-size: 12px; color: var(--os-muted); margin-top: 6px; }

/* Ritmo e publicações */
.lv-grid2 { display: grid; grid-template-columns: 1.25fr 1fr; gap: 18px; margin-bottom: 18px; }
.lv-sec { padding: 20px 22px; min-width: 0; }
.lv-sec-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.lv-sec-h h2 { font-size: 15px; font-weight: 600; margin: 0; }
.lv-sec-h span, .lv-link { font-size: 12px; color: var(--os-muted); }
.lv-link { border: 0; background: none; cursor: pointer; color: var(--os-blue) !important; }
.lv-chart { display: flex; gap: 4px; align-items: flex-end; height: 150px; border-bottom: 1px solid var(--os-line); }
.lv-chart-col { flex: 1; display: flex; flex-direction: column-reverse; gap: 2px; height: 100%; }
.lv-chart-col i { display: block; border-radius: 3px; }
.lv-c-publicacao { background: var(--lv-violet); }
.lv-c-rodada { background: #4bb4d6; }
.lv-c-teste { background: var(--os-blue); }
.lv-c-alteracao { background: #9db0f9; }
.lv-c-problema { background: #e2a33c; }
.lv-chart-x { display: flex; gap: 4px; font-size: 10px; color: var(--os-muted); margin-top: 6px; }
.lv-chart-x span { flex: 1; text-align: center; white-space: nowrap; overflow: visible; }
.lv-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 11.5px; color: var(--os-muted); margin-top: 12px; }
.lv-legend span { display: flex; gap: 6px; align-items: center; }
.lv-legend i { width: 9px; height: 9px; border-radius: 3px; }
.lv-pub { display: flex; gap: 12px; align-items: center; width: 100%; padding: 10px 0; border: 0; background: none; text-align: left; cursor: pointer; }
.lv-pub + .lv-pub { border-top: 1px solid var(--os-line); }
.lv-pub-b { flex: 1; min-width: 0; }
.lv-pub-b strong { display: block; font-size: 13.5px; font-weight: 500; }
.lv-pub-b span { font-size: 12px; color: var(--os-muted); }

/* Acompanhamento */
.lv-attn-list { display: grid; gap: 10px; margin-bottom: 28px; }
.lv-attn { display: flex; gap: 14px; align-items: center; width: 100%; text-align: left; padding: 16px 20px; border-left: 3px solid #e2a33c; cursor: pointer; }
.lv-attn-b { flex: 1; min-width: 0; }
.lv-attn-b strong { display: block; font-size: 14px; font-weight: 500; }
.lv-attn-b span { font-size: 12.5px; color: var(--os-muted); }
.lv-steps { display: flex; gap: 5px; align-items: center; font-size: 11.5px; color: var(--os-muted); }
.lv-steps b { width: 20px; height: 4px; border-radius: 9px; background: var(--os-panel-2); }
.lv-steps b.on { background: #e2a33c; }
.lv-steps small { margin-left: 4px; }
.lv-go { display: flex; gap: 6px; align-items: center; font-size: 12.5px; font-weight: 500; white-space: nowrap; }

/* Linha do tempo */
.lv-tl-h { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.lv-tl-h h2 { font-size: 20px; font-weight: 500; letter-spacing: -0.02em; margin: 0; display: flex; align-items: baseline; gap: 12px; }
.lv-tl-h h2 .lg-count { font-size: 12px; font-weight: 400; color: var(--os-muted); }
.lv-tl-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.lv-tabs { display: flex; flex-wrap: wrap; background: var(--os-panel); border: 1px solid var(--os-line); border-radius: 12px; padding: 4px; gap: 2px; }
.lv-tabs button { border: 0; background: none; font-size: 12.5px; padding: 7px 11px; border-radius: 9px; color: var(--os-muted) !important; display: flex; gap: 6px; align-items: center; cursor: pointer; }
.lv-tabs button[aria-selected='true'] { background: var(--os-panel-2); color: var(--os-ink) !important; font-weight: 500; }
.lv-tabs small { font-size: 10.5px; background: var(--os-panel-2); padding: 1px 6px; border-radius: 99px; }
.lv-tabs button[aria-selected='true'] small { background: var(--os-panel); }
.lv-view { display: inline-flex; gap: 2px; margin: 0 0 12px; padding: 3px; border-radius: 10px; background: var(--os-panel-2); }
.lv-view button { border: 0; background: none; font-size: 11.5px; padding: 5px 10px; border-radius: 8px; color: var(--os-muted) !important; cursor: pointer; }
.lv-view button[aria-pressed='true'] { background: var(--os-panel); color: var(--os-ink) !important; box-shadow: var(--os-shadow-sm); }
.lv-feed { overflow: hidden; }
.lv-day { display: flex; justify-content: space-between; padding: 11px 22px; background: var(--os-panel-2); font-size: 12.5px; font-weight: 600; border-bottom: 1px solid var(--os-line); }
.lv-day span::first-letter { text-transform: uppercase; }
.lv-day small { font-weight: 400; color: var(--os-muted); }
.lv-it { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto 170px 64px; gap: 14px; align-items: center; padding: 13px 22px; border-bottom: 1px solid var(--os-line); }
.lv-it.is-open { background: linear-gradient(180deg, var(--lv-violet-soft), transparent 70%); }
.lv-it-b { min-width: 0; }
.lv-it-title { display: block; border: 0; background: none; padding: 0; text-align: left; font-size: 14px !important; font-weight: 500; cursor: pointer; }
.lv-it-title:hover { color: var(--os-blue) !important; }
.lv-it-b > span { display: block; font-size: 12.3px; color: var(--os-muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lv-chips { display: flex !important; flex-wrap: wrap; gap: 6px; margin-top: 6px !important; white-space: normal !important; }
.lv-chip { font-size: 10.5px; border: 1px solid var(--os-line); padding: 1px 8px; border-radius: 99px; color: var(--os-muted); background: none; }
.lv-chip-btn { cursor: pointer; color: var(--os-blue) !important; border-color: var(--os-blue-soft); }
.lv-by { display: flex; gap: 8px; align-items: center; min-width: 0; }
.lv-by .lv-av { width: 26px; height: 26px; font-size: 10px; }
.lv-by b { display: block; font-size: 12px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv-by small { display: block; font-size: 11px; color: var(--os-muted); }
.lv-by > span:last-child { min-width: 0; }
.lv-time { font-size: 12.5px; color: var(--os-muted); text-align: right; }
.lv-time small { display: block; font-size: 10.5px; }
.lg-badge.lv-grouped { background: var(--os-panel-2); }
.lv-grp-items { background: var(--os-panel-2); }
.lv-grp-items .lv-it { padding-left: 46px; }
.lv-tech { grid-column: 2 / -1; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 12px; margin-top: 2px; }
.lv-tech > div { border: 1px solid var(--os-line); border-radius: 12px; padding: 12px 14px; background: var(--os-panel); }
.lv-tech h4 { margin: 0 0 6px; font-size: 10.5px; letter-spacing: 0.12em; color: var(--os-muted); font-weight: 600; text-transform: uppercase; }
.lv-tech ul { margin: 0; padding-left: 16px; font-size: 12.5px; line-height: 1.6; }
.lv-tech p { margin: 0; font-size: 12.5px; line-height: 1.6; }
.lv-tech code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11.5px; background: var(--os-panel-2); padding: 1px 5px; border-radius: 5px; }
.lg-dialog .lv-tech { grid-column: auto; }
.lv-filter-groups { display: grid; gap: 12px; padding: 4px 14px 12px; }
.lv-filter-group span { display: block; font-size: 11px; color: var(--os-muted); margin-bottom: 5px; }
.lv-filter-group select { width: 100%; height: 36px; border-radius: 9px; border: 1px solid var(--os-line); background: var(--os-panel); color: var(--os-ink); font: inherit; font-size: 13px; padding: 0 8px; }
@media (max-width: 950px) {
  .lv-live, .lv-grid2 { grid-template-columns: 1fr; }
  .lv-col + .lv-col { border-left: 0; border-top: 1px solid var(--os-line); }
  .lv-kpis { grid-template-columns: 1fr 1fr; }
  .lv-it { grid-template-columns: 36px minmax(0, 1fr) auto; }
  .lv-it .lv-by { grid-column: 2; }
  .lv-it .lv-time { grid-column: 3; grid-row: 2; }
  .lv-tech { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .lv-kpis { grid-template-columns: 1fr; }
  .lv-it { grid-template-columns: 32px minmax(0, 1fr); padding: 12px 16px; }
  .lv-it .lv-it-status, .lv-it .lv-by, .lv-it .lv-time { grid-column: 2; grid-row: auto; text-align: left; }
  .lv-attn { flex-wrap: wrap; }
}

/* 03/11 tarde: dúvida respondida, última entrega e "Com vocês agora" */
.lg-badge.lg-respondida { color: var(--os-green); background: var(--os-green-soft); border-color: transparent; }
.lv-ic-chat { background: var(--os-green-soft); color: var(--os-green); }
.lv-ic-hand { background: var(--os-amber-soft); color: var(--os-amber); width: 42px; height: 42px; border-radius: 12px; }
.lv-last { display: flex; gap: 10px; align-items: center; width: 100%; margin-top: 10px; padding: 10px 12px; border: 1px solid var(--os-line); border-radius: 12px; background: var(--os-panel-2); text-align: left; cursor: pointer; }
.lv-last > span:nth-child(2) { flex: 1; min-width: 0; }
.lv-last strong { display: block; font-size: 13px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lv-last small { display: block; font-size: 11.5px; color: var(--os-muted); margin-top: 2px; }
.lv-client { display: flex; gap: 16px; align-items: flex-start; padding: 20px 24px; margin-bottom: 18px; border-left: 3px solid #e2a33c; background: linear-gradient(90deg, var(--os-amber-soft), var(--os-panel) 55%); }
:root[data-theme='dark'] .lv-client { background: linear-gradient(90deg, rgba(210, 160, 60, 0.12), var(--os-panel) 55%); }
.lv-client-b { flex: 1; min-width: 0; }
.lv-client-k { font-size: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--os-amber); }
.lv-client h2 { margin: 4px 0 10px; font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
.lv-client-it + .lv-client-it { border-top: 1px dashed var(--os-line); margin-top: 10px; padding-top: 10px; }
.lv-client-it strong { display: block; font-size: 14px; font-weight: 500; }
.lv-client-it p { margin: 3px 0 0; font-size: 13px; color: var(--os-ink); line-height: 1.55; }
.lv-client-it small { display: block; margin-top: 4px; font-size: 11.5px; color: var(--os-muted); }
.lv-answer { display: flex; gap: 12px; align-items: flex-start; }
.lv-answer strong { display: block; font-size: 13.5px; }
.lv-answer small { display: block; font-size: 11.5px; color: var(--os-muted); }
.lv-answer p { margin: 8px 0 0; padding: 10px 12px; border-radius: 4px 12px 12px 12px; background: var(--os-green-soft); font-size: 13px; line-height: 1.55; white-space: pre-line; }

/* 03/11 noite: trilha do teste (etapas, fluxograma, diálogo, replay e ao vivo) */
.lv-trail-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.lv-trail-facts { flex: 1; min-width: 0; font-size: 12.5px; color: var(--os-muted); }
.lv-live-tag { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--lv-live, #16a36f); background: var(--os-green-soft); padding: 4px 10px 4px 8px; border-radius: 99px; }
.lv-live-tag .lv-pulse { width: 7px; height: 7px; }
.lv-live-tag.is-replay { color: var(--os-blue); background: var(--os-blue-soft); }
.lv-stages { list-style: none; display: flex; flex-wrap: wrap; gap: 0; margin: 0 0 16px; padding: 0; }
.lv-stages li { flex: 1 1 110px; position: relative; padding: 18px 8px 0 0; font-size: 11.5px; color: var(--os-muted); }
.lv-stages li b { position: absolute; top: 4px; left: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--os-panel-2); border: 2px solid var(--os-line-strong); }
.lv-stages li::after { content: ""; position: absolute; top: 9px; left: 15px; right: 4px; height: 2px; background: var(--os-line); }
.lv-stages li:last-child::after { display: none; }
.lv-stages li span { display: block; color: var(--os-ink); font-weight: 500; }
.lv-stages li small { font-size: 10.5px; }
.lv-stages li.is-ok b { background: var(--os-green); border-color: var(--os-green); }
.lv-stages li.is-ok::after { background: var(--os-green); }
.lv-stages li.is-falhou b { background: var(--os-red); border-color: var(--os-red); }
.lv-stages li.is-rodando b { background: var(--os-blue); border-color: var(--os-blue); box-shadow: 0 0 0 4px var(--os-blue-soft); animation: lv-blink 1.2s ease-in-out infinite; }
.lv-stages li.is-pendente span { color: var(--os-muted); font-weight: 400; }
@keyframes lv-blink { 50% { box-shadow: 0 0 0 7px transparent; } }
.lv-typing { display: inline-flex; gap: 4px; padding: 12px 14px; border-radius: 14px; background: var(--os-panel-2); margin-top: 8px; }
.lv-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--os-muted); animation: lv-dots 1.2s infinite; }
.lv-typing i:nth-child(2) { animation-delay: 0.15s; }
.lv-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes lv-dots { 30% { transform: translateY(-4px); opacity: 1; } 60%, 100% { transform: none; opacity: 0.4; } }
.lv-sub { margin: 16px 0 8px; font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--os-muted); font-weight: 600; }
.lv-actions { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.lv-actions li { font-size: 13px; padding: 8px 12px 8px 30px; border-radius: 10px; background: var(--os-panel-2); position: relative; }
.lv-actions li::before { content: "•"; position: absolute; left: 13px; color: var(--os-muted); }
.lv-actions li.is-ok::before { content: "✓"; color: var(--os-green); }
.lv-actions li.is-falhou::before { content: "!"; color: var(--os-red); font-weight: 700; }
.lv-findings { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; margin-top: 12px; }
.lv-findings div { border: 1px solid var(--os-line); border-radius: 10px; padding: 8px 10px; }
.lv-findings span { display: block; font-size: 11px; color: var(--os-muted); }
.lv-findings b { font-size: 13px; font-weight: 500; }
.lv-reason { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--os-amber-soft); font-size: 13px; }
.lv-follow { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 12px; font-weight: 500; color: var(--os-blue); }
.lv-follow svg { width: 14px !important; height: 14px !important; }
.lg-node-rodando, .lg-node-aguardando { border-color: var(--os-blue); box-shadow: 0 0 0 4px var(--os-blue-soft); animation: lv-blink 1.2s ease-in-out infinite; }
.lg-node-rodando > span, .lg-node-aguardando > span { color: var(--os-blue); }
.lg-node-pendente { opacity: 0.75; }
.lg-node { transition: border-color 0.25s, box-shadow 0.25s; }
.lv-trail .lg-message { animation: lv-in 0.3s ease-out; }
@keyframes lv-in { from { opacity: 0; transform: translateY(6px); } }

/* Fluxograma v2: arrastar, tipos de passo e contexto */
.lg-map-scroll { cursor: grab; user-select: none; touch-action: none; max-height: 560px; }
.lg-map-scroll.is-dragging { cursor: grabbing; }
.lg-map-scroll .lg-node { cursor: pointer; }
.lg-node { height: 96px; grid-template-rows: auto auto 1fr; padding: 12px 14px 12px 16px; overflow: hidden; }
.lg-node::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--os-line-strong); }
.lg-node.lv-kind-gatilho::before { background: #f59e0b; }
.lg-node.lv-kind-condicao::before { background: #8b5cf6; }
.lg-node.lv-kind-acao::before { background: var(--os-blue); }
.lg-node.lv-kind-espera::before { background: #64748b; }
.lg-node.lv-kind-fim::before { background: var(--os-ink); }
.lv-node-kind { font-style: normal; font-size: 9.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--os-muted); }
.lg-node > span { grid-row: 1 / 4; }
.lg-node:hover { transform: translateY(-1px); box-shadow: var(--os-shadow); }
.lg-map-canvas svg path { stroke-width: 1.8; }
.lv-arrow-head { fill: var(--os-line-strong); stroke: none; }
.lv-edge-label rect { fill: var(--os-panel); stroke: var(--os-line-strong); stroke-width: 1; }
.lv-edge-label text { font-size: 10.5px !important; fill: var(--os-ink) !important; font-weight: 500; }
.lv-step-ctx { display: grid; gap: 6px; }
.lv-step-k { font-size: 10px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--os-muted); }
.lv-step-ctx > strong { font-size: 15px; font-weight: 600; }
.lv-step-ctx > p { margin: 0; font-size: 12.5px; color: var(--os-muted); }
.lv-step-ctx dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px 16px; margin: 6px 0 0; }
.lv-step-ctx dt { font-size: 11px; color: var(--os-muted); }
.lv-step-ctx dd { margin: 2px 0 0; font-size: 13px; line-height: 1.5; }
.lv-step-ctx dd button { border: 1px solid var(--os-line); background: var(--os-panel); border-radius: 99px; padding: 2px 10px; font-size: 12px; cursor: pointer; margin: 0 4px 4px 0; }
.lv-step-ctx dd button:hover { border-color: var(--os-blue); color: var(--os-blue); }
.lg-node-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; background: var(--os-line-strong); border: 0 !important; box-shadow: none !important; animation: none !important; }
.lg-node-dot.lg-node-ok { background: var(--os-green); }
.lg-node-dot.lg-node-falhou { background: var(--os-red); }
.lg-node-dot.lg-node-rodando, .lg-node-dot.lg-node-aguardando { background: var(--os-blue); }

/* Conversa fiel ao canal */
.lv-chat-wrap { display: grid; grid-template-columns: minmax(300px, 380px) 1fr; gap: 24px; align-items: start; }
.lv-chat-side { min-width: 0; }
.lv-chat-side .lv-findings { grid-template-columns: 1fr; }
.lv-chat-system { grid-column: 1 / -1; margin: 0 0 4px; font-size: 12px; color: var(--os-muted); }
.lv-phone { position: relative; border-radius: 34px; border: 8px solid #111; background: #111; overflow: hidden; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18); display: flex; flex-direction: column; height: 620px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
.lv-phone-top { display: flex; justify-content: space-between; align-items: center; padding: 6px 18px 4px; font-size: 11px; font-weight: 600; color: #111; background: var(--lv-top, #fff); }
.lv-phone-notch { width: 70px; height: 18px; border-radius: 12px; background: #111; }
.lv-phone-cap { margin: 8px 0 0; font-size: 11.5px; color: var(--os-muted); text-align: center; }
.lv-chat-head { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: var(--lv-head, #fff); color: var(--lv-head-ink, #111); }
.lv-chat-head strong { display: block; font-size: 14.5px; font-weight: 600; line-height: 1.2; }
.lv-chat-head small { display: block; font-size: 11.5px; opacity: 0.8; }
.lv-chat-head-center { flex-direction: column; gap: 3px; padding: 6px 12px 10px; }
.lv-chat-head-center strong { font-size: 12px; font-weight: 500; }
.lv-back { font-size: 26px; line-height: 1; margin-right: -2px; }
.lv-chat-av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 600; background: #cfd8dc; color: #37474f; flex-shrink: 0; }
.lv-chat-body { flex: 1; overflow-y: auto; padding: 10px 10px 14px; display: flex; flex-direction: column; gap: 4px; background: var(--lv-bg, #fff); }
.lv-day-chip { align-self: center; font-size: 11px; padding: 4px 10px; border-radius: 8px; margin: 4px 0 8px; background: var(--lv-chip, rgba(0, 0, 0, 0.06)); color: var(--lv-chip-ink, #54656f); }
.lv-msg { display: flex; flex-direction: column; max-width: 84%; }
.lv-msg-me { align-self: flex-end; align-items: flex-end; }
.lv-msg-them { align-self: flex-start; align-items: flex-start; }
.lv-bubble { position: relative; padding: 7px 10px 18px; border-radius: 10px; font-size: 13.6px; line-height: 1.42; color: #111b21; background: var(--lv-them, #fff); box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13); min-width: 64px; overflow-wrap: anywhere; animation: lv-in 0.25s ease-out; }
.lv-msg-me .lv-bubble { background: var(--lv-me, #d9fdd3); color: var(--lv-me-ink, #111b21); }
.lv-bubble p { margin: 0; }
.lv-bubble p + p, .lv-bubble ul + p, .lv-bubble ol + p, .lv-bubble p + ul, .lv-bubble p + ol { margin-top: 6px; }
.lv-bubble ul, .lv-bubble ol { margin: 4px 0 0; padding-left: 18px; }
.lv-bubble li + li { margin-top: 2px; }
.lv-bubble code { font-family: ui-monospace, Menlo, monospace; font-size: 12px; background: rgba(0, 0, 0, 0.06); padding: 0 4px; border-radius: 4px; }
.lv-chat-link { color: #027eb5; text-decoration: underline; }
.lv-meta { position: absolute; right: 8px; bottom: 3px; font-size: 10.5px; color: rgba(17, 27, 33, 0.5); white-space: nowrap; }
.lv-msg-me .lv-meta { color: var(--lv-me-meta, rgba(17, 27, 33, 0.5)); }
.lv-ticks { margin-left: 3px; color: #53bdeb; letter-spacing: -3px; }
.lv-quick { display: grid; gap: 4px; margin-top: 4px; width: 100%; }
.lv-quick span { display: block; text-align: center; padding: 9px 10px; border-radius: 10px; background: var(--lv-them, #fff); color: var(--lv-btn, #027eb5); font-size: 13.5px; font-weight: 500; box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13); }
.lv-notes { display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 6px 0; }
.lv-note { font-size: 11px; padding: 4px 10px; border-radius: 8px; background: var(--lv-note, #fff5c4); color: #54656f; text-align: center; max-width: 90%; }
.lv-note::before { content: "⚙ "; }
.lv-note.is-failed { background: #fde2e1; color: #b42318; }
.lv-chat-input { padding: 8px 10px 12px; background: var(--lv-input-bg, #f0f2f5); }
.lv-chat-input span { display: block; padding: 9px 14px; border-radius: 22px; background: #fff; color: #8696a0; font-size: 13.5px; }
.lv-bubble.lv-typing { display: inline-flex; gap: 4px; padding: 12px 14px; min-width: 0; }
/* WhatsApp */
.lv-ch-whatsapp { --lv-top: #008069; --lv-head: #008069; --lv-head-ink: #fff; --lv-bg: #efeae2; --lv-chip: #fff; }
.lv-ch-whatsapp .lv-phone-top { color: #fff; }
.lv-ch-whatsapp .lv-chat-body { background-color: #efeae2; background-image: radial-gradient(rgba(0, 0, 0, 0.035) 1.2px, transparent 1.3px), radial-gradient(rgba(0, 0, 0, 0.025) 1px, transparent 1.1px); background-size: 22px 22px, 13px 13px; background-position: 0 0, 7px 9px; }
.lv-ch-whatsapp .lv-msg-me .lv-bubble { border-top-right-radius: 2px; }
.lv-ch-whatsapp .lv-msg-them .lv-bubble { border-top-left-radius: 2px; }
/* Instagram */
.lv-ch-instagram { --lv-them: #efefef; --lv-me: linear-gradient(135deg, #5b51d8, #833ab4 55%, #c13584); --lv-me-ink: #fff; --lv-me-meta: rgba(255, 255, 255, 0.75); --lv-btn: #0095f6; --lv-input-bg: #fff; }
.lv-ch-instagram .lv-bubble { border-radius: 20px; box-shadow: none; padding: 9px 14px 20px; }
.lv-ch-instagram .lv-chat-av { background: linear-gradient(45deg, #f09433, #dc2743, #bc1888); color: #fff; }
.lv-ch-instagram .lv-chat-head { border-bottom: 1px solid #efefef; }
.lv-ch-instagram .lv-chat-input span { border: 1px solid #dbdbdb; background: #fff; }
.lv-ch-instagram .lv-quick span { box-shadow: none; border: 1px solid #dbdbdb; border-radius: 20px; }
/* Messenger */
.lv-ch-messenger { --lv-them: #f0f0f0; --lv-me: linear-gradient(135deg, #0a7cff, #a033ff); --lv-me-ink: #fff; --lv-me-meta: rgba(255, 255, 255, 0.75); --lv-btn: #0a7cff; --lv-input-bg: #fff; }
.lv-ch-messenger .lv-bubble { border-radius: 18px; box-shadow: none; }
/* SMS */
.lv-ch-sms { --lv-them: #e9e9eb; --lv-me: #34c759; --lv-me-ink: #fff; --lv-me-meta: rgba(255, 255, 255, 0.8); --lv-head: #f6f6f6; --lv-input-bg: #fff; }
.lv-ch-sms .lv-bubble { border-radius: 18px; box-shadow: none; }
/* Chat do site */
.lv-ch-webchat { --lv-head: #1746f5; --lv-top: #1746f5; --lv-head-ink: #fff; --lv-bg: #f7f8fa; --lv-them: #fff; --lv-me: #1746f5; --lv-me-ink: #fff; --lv-me-meta: rgba(255, 255, 255, 0.75); --lv-btn: #1746f5; --lv-input-bg: #fff; }
.lv-ch-webchat .lv-phone-top { color: #fff; }
.lv-ch-webchat .lv-bubble { border-radius: 16px; }
.lv-ch-webchat .lv-msg-me .lv-bubble { border-bottom-right-radius: 4px; }
.lv-ch-webchat .lv-msg-them .lv-bubble { border-bottom-left-radius: 4px; }
.lv-ch-webchat .lv-chat-input span { border: 1px solid #e3e6ea; }
/* E-mail */
.lv-mail { border: 1px solid var(--os-line); border-radius: 14px; overflow: hidden; background: #fff; color: #202124; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; }
.lv-mail-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #f2f6fc; border-bottom: 1px solid #e3e6ea; font-size: 12px; color: #5f6368; }
.lv-mail-bar b { width: 10px; height: 10px; border-radius: 50%; background: #dadce0; }
.lv-mail-bar span { margin-left: 8px; }
.lv-mail-item { padding: 14px 18px; border-bottom: 1px solid #eceff1; font-size: 13.5px; line-height: 1.6; }
.lv-mail-item header { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.lv-mail-item header strong { display: block; font-size: 13.5px; }
.lv-mail-item header small { color: #5f6368; font-size: 12px; }
.lv-mail-item p { margin: 0 0 8px; }
.lv-mail-av { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #e8eaed; font-size: 12px; font-weight: 600; }
.lv-mail-av.is-agent { background: #1746f5; color: #fff; }
.lv-mail-wait { padding: 12px 18px; margin: 0; color: #5f6368; font-size: 12.5px; }
@media (max-width: 760px) { .lv-chat-wrap { grid-template-columns: 1fr; } .lv-phone { height: 560px; } }
.lv-chat-wrap { display: flex; flex-wrap: wrap; gap: 20px 24px; }
.lv-chat-system { flex: 1 1 100%; }
.lv-phone-col { flex: 0 1 360px; min-width: 280px; }
.lv-mail.lv-phone-col { flex: 1 1 420px; }
.lv-chat-side { flex: 1 1 220px; }

/* Alterações: antes/depois por mudança */
.lv-version { margin: 0 0 10px; font-size: 12px; color: var(--os-muted); }
.lv-diff { display: grid; gap: 12px; }
.lv-diff-row > strong { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.lv-diff-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lv-diff-cols > div { border-radius: 10px; padding: 10px 12px; font-size: 13px; line-height: 1.55; overflow-wrap: anywhere; }
.lv-diff-cols span { display: block; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; margin-bottom: 4px; }
.lv-diff-cols p { margin: 0; }
.lv-diff-cols p p { margin: 0 0 4px; }
.lv-diff-cols .is-before { background: rgba(180, 35, 24, 0.06); }
.lv-diff-cols .is-before span { color: var(--os-red); }
.lv-diff-cols .is-after { background: var(--os-green-soft); }
.lv-diff-cols .is-after span { color: var(--os-green); }
.lv-diff-cols em { color: var(--os-muted); }
.lv-changes { margin: 0; padding-left: 18px; font-size: 13.5px; line-height: 1.7; }
.lv-backup { display: flex; align-items: center; gap: 6px; margin: 10px 0 0; font-size: 12px; color: var(--os-green); }
.lv-backup svg { width: 14px !important; height: 14px !important; }
@media (max-width: 640px) { .lv-diff-cols { grid-template-columns: 1fr; } }

/* ---------- Acabamento 03/11/2026 (caso TotalDoc) ---------- */
/* Contraste: a regra genérica `.lg-detail-section div > p` (cinza, pre-wrap, margem) vencia `.lv-bubble p` e deixava o
   texto do balão do visitante cinza sobre azul no Chat do site. Dentro do mockup o texto herda a cor do balão. */
.lg-detail-section .lv-bubble p,
.lg-detail-section .lv-mail-item p,
.lg-detail-section .lv-diff-cols p {
  color: inherit;
  font-size: inherit;
  line-height: inherit;
  white-space: normal;
  margin: 0;
}
.lg-detail-section .lv-bubble p + p { margin-top: 6px; }
.lg-detail-section .lv-mail-item p { margin: 0 0 8px; }
.lg-detail-section .lv-msg-me .lv-bubble { color: var(--lv-me-ink, #111b21); }
.lg-detail-section .lv-msg-me .lv-bubble b,
.lg-detail-section .lv-msg-me .lv-bubble i { color: inherit; }
/* Avatar: `.lv-who span` (display:block, cinza, margem) vencia `.lv-av` e jogava as iniciais para o canto do círculo. */
.lv-who .lv-av,
.lv-by .lv-av { display: grid; place-items: center; margin-top: 0; color: var(--os-blue); line-height: 1; text-align: center; }
.lv-who .lv-av.is-ia { color: var(--lv-violet); }
.lv-who .lv-av.is-unknown { color: var(--os-muted); }
.lv-chat-head .lv-chat-av { display: grid; place-items: center; line-height: 1; margin: 0; }
/* Pessoa do "Trabalhando agora" abre o que ela fez. */
button.lv-who { width: 100%; text-align: left; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; border-radius: 10px; }
button.lv-who:hover { background: var(--os-panel-2); }
button.lv-who:focus-visible, .lv-front:focus-visible { outline: 2px solid var(--os-blue); outline-offset: 2px; }
.lv-who .lv-who-go { align-self: center; margin: 0; color: var(--os-muted); opacity: 0; transition: opacity 0.15s; }
.lv-who .lv-who-go svg { width: 16px; height: 16px; }
button.lv-who:hover .lv-who-go, button.lv-who:focus-visible .lv-who-go { opacity: 1; }
.lv-k-frente { background: var(--os-green-soft, #e7f6ec); color: var(--os-green, #1f7a45); }
.lv-run:hover strong { color: var(--os-blue); }
