/* Análises */
.hbar {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.hbar .r {
  display: grid;
  grid-template-columns: 140px 1fr 64px;
  gap: 12px;
  align-items: center;
  font-size: 14.5px;
}
.hbar .t {
  height: 12px;
  background: #eef0f5;
  border-radius: 999px;
  overflow: hidden;
}
.hbar .t span {
  display: block;
  height: 100%;
  border-radius: 999px;
}
.hbar .v {
  text-align: right;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.chart-legend {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  color: var(--fg-2);
}
.chart-legend span {
  display: flex;
  align-items: center;
  gap: 8px;
}
.chart-legend i {
  width: 11px;
  height: 11px;
  border-radius: 3px;
  display: inline-block;
}
.chart-row {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.chart-row > svg {
  flex: 1;
  min-width: 0;
}
.tech {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}
.tech.mob {
  background: #fff1e3;
  color: #b4540a;
}
.tech.api {
  background: #e3effd;
  color: #1d5fc2;
}
.tech.all {
  background: var(--primary-soft);
  color: var(--primary);
}
.tgrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 12px;
}
.tech.web {
  background: #dff5ec;
  color: #0f7a5a;
}
.t-web .tc-bar span {
  background: #10b981;
}
.sub-h {
  margin: 0 0 12px;
  font-size: 16px;
}
.seg {
  display: inline-flex;
  border: 1px solid #d9dbe5;
  border-radius: 10px;
  padding: 3px;
  background: var(--card);
  margin-left: auto;
}
.seg button {
  border: 0;
  background: none;
  padding: 8px 14px;
  border-radius: 7px;
  font-weight: 600;
  color: var(--muted);
}
.seg button.on {
  background: var(--primary-soft);
  color: var(--primary);
}
.psum {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  background: var(--head);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 16px;
  font-size: 15px;
}
.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.chip {
  border: 1px solid transparent;
  background: none;
  padding: 2px;
  border-radius: 999px;
}
.chip.on {
  border-color: var(--primary);
}
.chip .tech {
  font-size: 13.5px;
  padding: 5px 11px;
}
.folder {
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 14px;
  overflow: hidden;
}
.f-head {
  all: unset;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  width: calc(100% - 32px);
  flex-wrap: wrap;
}
.f-head:hover {
  background: #fafafd;
}
.f-head:focus-visible {
  outline: 2px solid var(--primary-2);
  outline-offset: -2px;
}
.f-chev {
  color: var(--muted);
  transition: transform 0.15s;
}
.f-head[aria-expanded='true'] .f-chev {
  transform: rotate(90deg);
}
.f-txt {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 180px;
  flex: 1;
}
.f-name {
  font-weight: 700;
  font-size: 17px;
}
.f-desc {
  color: var(--muted);
  font-size: 14px;
}
.f-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.f-meta {
  display: flex;
  gap: 14px;
  color: var(--muted);
  font-size: 13.5px;
  flex-wrap: wrap;
}
.f-bar {
  display: flex;
  height: 4px;
  gap: 2px;
}
.f-bar span {
  display: block;
}
.f-bar .api {
  background: #3b82f6;
}
.f-bar .mob {
  background: #f59e0b;
}
.f-bar .web {
  background: #10b981;
}
.f-body {
  border-top: 1px solid var(--line);
  padding: 6px 10px 4px;
}
.f-body thead th {
  background: none;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 520px) {
  .seg {
    margin-left: 0;
  }
}
.tcard {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  min-width: 0;
}
.tcard.t-all {
  background: var(--primary-softer);
  border-color: #e1ddfb;
}
.tc-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.tc-sub {
  color: var(--muted);
  font-size: 13px;
}
.tc-v {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 14px 0 2px;
  font-variant-numeric: tabular-nums;
}
.tc-l {
  color: var(--muted);
  font-size: 13.5px;
}
.tc-bar {
  height: 8px;
  background: #eef0f5;
  border-radius: 999px;
  overflow: hidden;
  margin: 14px 0;
}
.tc-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--primary-2);
}
.t-mob .tc-bar span {
  background: #f59e0b;
}
.t-api .tc-bar span {
  background: #3b82f6;
}
.tc-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 12px;
  font-size: 13.5px;
  color: var(--muted);
}
.tc-stats b {
  color: var(--fg);
  font-variant-numeric: tabular-nums;
}
.tc-range {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  font-size: 12.5px;
  color: var(--muted);
}
@media (max-width: 1300px) {
  .tgrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .tgrid {
    grid-template-columns: 1fr;
  }
}
.nav-live {
  margin-left: auto;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  padding: 2px 7px;
  line-height: 1.4;
}
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  display: inline-block;
  flex: none;
  animation: pulse 1.4s infinite;
  vertical-align: middle;
}
.pill.run .live-dot {
  background: var(--primary);
}
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(239, 68, 68, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes blink {
  50% {
    opacity: 0.45;
  }
}
.live-tag {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-weight: 600;
  color: var(--red-ink);
  background: var(--red-soft);
  padding: 7px 13px;
  border-radius: 999px;
}
.switch-inline {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-weight: 500;
}
.switch-inline input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}
.lv-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 22px;
  align-items: start;
}
.lv-sec {
  margin: 0 0 12px;
  font-size: 17px;
}
.lv-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}
.lcard {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.lc-h {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}
.lc-id {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.lc-id b {
  font-size: 15.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lc-id small {
  color: var(--muted);
  font-size: 12.5px;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.lc-id .tech {
  font-size: 11.5px;
}
.lc-id small {
  overflow: hidden;
}
.lc-time {
  font-size: 13.5px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.lc-clock {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.lc-clock b {
  font-size: 24px;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.lc-meta {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 13px;
}
.lc-prog {
  display: flex;
  gap: 2px;
  height: 10px;
}
.lc-prog i {
  flex: 1;
  border-radius: 2px;
  background: #e7e8ef;
}
.lc-prog i.pass {
  background: var(--green-2);
}
.lc-prog i.fail {
  background: var(--red-2);
}
.lc-prog i.run {
  background: var(--primary-2);
  animation: blink 1s infinite;
}
.lc-prog i.skip {
  background: #d4d6e0;
}
.lc-stats {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: var(--muted);
}
.lc-stats b {
  color: var(--fg);
}
.lc-scen {
  list-style: none;
  margin: 0;
  padding: 0;
  height: 232px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  position: relative;
}
.lc-scen li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto 36px;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
}
.lc-scen li:last-child {
  border-bottom: 0;
}
.lc-scen li.run {
  background: var(--primary-softer);
  font-weight: 600;
}
.lc-scen li.fail {
  background: #fff6f6;
}
.lc-scen li.pend,
.lc-scen li.skip {
  color: var(--muted);
}
.lc-scen .n {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lc-scen .ms {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-size: 12.5px;
  text-align: right;
  font-weight: 500;
}
.lc-scen .ms.slow {
  color: var(--red);
}
.spin {
  display: block;
  width: 14px;
  height: 14px;
  border: 2px solid var(--primary-soft);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.lc-f {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
}
.lc-f .btn-out {
  padding: 8px 11px;
  font-size: 13.5px;
}
.lc-stats {
  white-space: nowrap;
}
.feed {
  padding: 20px;
}
.feed ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 10px 28px;
  max-height: 300px;
  overflow-y: auto;
}
.feed li {
  display: grid;
  grid-template-columns: 62px 8px minmax(0, 1fr);
  gap: 8px;
  font-size: 13.5px;
  align-items: baseline;
  line-height: 1.4;
}
.feed li.pass {
  color: var(--muted);
}
.feed li.pass b {
  font-weight: 500;
}
.feed time {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-size: 12.5px;
}
.feed .dt {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  align-self: center;
}
.delta {
  font-weight: 600;
}
.delta.up {
  color: var(--red);
}
.delta.dn {
  color: var(--green);
}
.proj {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
tr.is-live td {
  background: var(--primary-softer);
}
@media (max-width: 1300px) {
  .lv-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .lv-cards {
    grid-template-columns: 1fr;
  }
  .feed ol {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  .live-dot,
  .spin,
  .lc-prog i.run {
    animation: none;
  }
}
.formula {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--primary-softer);
  border: 1px solid #e1ddfb;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 18px;
  font-size: 14px;
  color: var(--fg-2);
}
.formula > b {
  margin-bottom: 4px;
}
.au-r {
  grid-template-columns: 110px 1fr 120px !important;
}
.au-t {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.au-r .v small {
  display: block;
  color: var(--muted);
  font-weight: 500;
  font-size: 12px;
}
.au-table small.calc {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}
.au-table tr.sub td {
  background: var(--head);
  font-weight: 600;
  color: var(--fg-2);
}
.au-table tr.total td {
  background: var(--primary-soft);
  font-weight: 700;
  color: var(--fg);
  border-bottom: 0;
}
.cf {
  position: relative;
}
.cf summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #d9dbe5;
  background: var(--card);
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 500;
}
.cf summary::-webkit-details-marker {
  display: none;
}
.cf[open] summary {
  border-color: var(--primary-2);
}
.cf-pop {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  left: 0;
  width: min(420px, calc(100vw - 32px));
  max-height: 380px;
  overflow-y: auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(20, 20, 60, 0.14);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cf-act {
  display: flex;
  gap: 8px;
}
.cf-g {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cf-g > b {
  font-size: 12.5px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.cf-g label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  cursor: pointer;
}
.cf-g input {
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
}
.tc-cmp {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 8px;
  font-size: 13.5px;
  color: var(--muted);
}
.tc-bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 10px 0 12px;
}
.tc-bars .tc-bar {
  margin: 0;
  height: 7px;
}
.tc-bar span.now {
  background: var(--primary-2) !important;
}
.tc-bar span.avg {
  background: #c9c5ef !important;
}
.tc-stats span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.tc-stats span b {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tc-live {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  font-size: 12.5px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.tc-live.on {
  color: var(--primary);
  font-weight: 600;
}
.t-empty {
  opacity: 0.6;
}
.tc-stats span.wide {
  grid-column: 1/-1;
  flex-direction: row;
  justify-content: space-between;
  gap: 10px;
}
.an-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  margin: 30px 0 16px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.an-head h2 {
  margin: 0;
  font-size: 19px;
}
.an-head span {
  color: var(--muted);
  font-size: 14.5px;
}
.an-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.an-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  min-width: 0;
}
.an-card.wide {
  grid-column: 1/-1;
}
.an-card h3 {
  margin: 0 0 16px;
  font-size: 16px;
}
.an-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.heat-wrap {
  overflow-x: auto;
}
.heat {
  display: grid;
  gap: 4px;
  min-width: 480px;
}
.heat i {
  display: block;
  height: 24px;
  border-radius: 5px;
}
.heat .hl {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  align-self: center;
}
.heat .dl {
  text-align: left;
}
.mini {
  display: inline-block;
  width: 80px;
  height: 8px;
  background: #eef0f5;
  border-radius: 999px;
  overflow: hidden;
  margin-right: 10px;
  vertical-align: middle;
}
.mini span {
  display: block;
  height: 100%;
  background: var(--red-2);
}
@media (max-width: 900px) {
  .an-grid {
    grid-template-columns: 1fr;
  }
}
