.jc-analysis-panel {
  min-height: calc(100vh - 52px);
  background: #101223;
  color: #e8edf4;
}

.jc-analysis-panel .jc-section-header {
  border-color: #4a566b;
  background: #1a2134;
}

.jc-analysis-data-status {
  color: #9facbf;
  font-size: 11px;
}

.jc-analysis-controls {
  display: flex;
  min-width: 0;
  align-items: end;
  gap: 7px;
  flex-wrap: wrap;
  border-bottom: 1px solid #39475a;
  background: #171d2e;
  padding: 7px 10px;
}

.jc-analysis-controls label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #b7c3d2;
  font-size: 11px;
  font-weight: 800;
}

.jc-analysis-controls select,
.jc-analysis-controls input {
  height: 31px;
  border: 1px solid #536177;
  border-radius: 3px;
  background: #2a3346;
  color: #fff;
  padding: 0 7px;
}

.jc-analysis-controls input {
  width: 72px;
  text-align: center;
}

.jc-analysis-zoom-controls {
  display: inline-grid;
  grid-template-columns: 31px 52px 31px;
  align-items: center;
  overflow: hidden;
  border: 1px solid #536177;
  border-radius: 3px;
}

.jc-analysis-zoom-controls .jc-button {
  min-height: 29px;
  border: 0;
  border-radius: 0;
  padding: 0;
  font-size: 18px;
}

.jc-analysis-zoom-controls output {
  height: 29px;
  border-right: 1px solid #536177;
  border-left: 1px solid #536177;
  background: #171d2e;
  color: #fff;
  font: 800 11px/29px Consolas, monospace;
  text-align: center;
}

.jc-analysis-conditions {
  display: flex;
  min-width: 160px;
  flex: 1 1 260px;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  color: #7f8da0;
  font-size: 11px;
}

.jc-analysis-conditions button {
  height: 25px;
  border: 1px solid #da6672;
  border-radius: 3px;
  background: #842f3a;
  color: #fff;
  padding: 0 7px;
  font-size: 11px;
  font-weight: 900;
}

.jc-analysis-summary {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 5px;
  border-bottom: 1px solid #39475a;
  background: #151a2a;
  padding: 7px 10px;
}

.jc-analysis-summary > div {
  display: grid;
  gap: 2px;
  border: 1px solid #3b495e;
  border-radius: 3px;
  background: #20283a;
  padding: 5px 7px;
}

.jc-analysis-summary span {
  color: #8f9eb0;
  font-size: 10px;
}

.jc-analysis-summary strong {
  overflow: hidden;
  color: #f2f5f9;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.jc-analysis-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  min-height: 560px;
  border-bottom: 1px solid #4b596c;
}

.jc-analysis-relation-pane,
.jc-analysis-detail-pane,
.jc-analysis-charts > section {
  min-width: 0;
  background: #15162a;
}

.jc-analysis-relation-pane {
  border-right: 1px solid #4b596c;
}

.jc-analysis-relation-pane > header,
.jc-analysis-detail-pane > header,
.jc-analysis-charts section > header {
  display: flex;
  min-height: 36px;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  border-bottom: 1px solid #39475a;
  background: #1c2435;
  padding: 0 9px;
}

.jc-analysis-relation-pane header strong,
.jc-analysis-detail-pane header strong,
.jc-analysis-charts header strong {
  color: #ffda58;
  font-size: 12px;
}

.jc-analysis-relation-pane header span,
.jc-analysis-charts header span {
  color: #8f9eb0;
  font-size: 10px;
}

.jc-analysis-relation-graph {
  width: 100%;
  height: 524px;
}

.jc-analysis-detail-pane {
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  min-height: 0;
  background: #171d2b;
}

.jc-analysis-detail,
.jc-analysis-integrity {
  border-bottom: 1px solid #39475a;
  padding: 10px;
}

.jc-analysis-detail > strong,
.jc-analysis-integrity > strong,
.jc-analysis-recent > strong {
  color: #7ee0bc;
  font-size: 13px;
}

.jc-analysis-detail p,
.jc-analysis-integrity p,
.jc-analysis-recent p {
  margin: 5px 0 0;
  color: #adb9c7;
  font-size: 11px;
  line-height: 1.6;
}

.jc-analysis-detail dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  margin: 8px 0 0;
}

.jc-analysis-detail dl div {
  display: grid;
  gap: 2px;
  border: 1px solid #3d4b5e;
  background: #20283a;
  padding: 5px;
}

.jc-analysis-detail dt {
  color: #8f9eb0;
  font-size: 9px;
}

.jc-analysis-detail dd {
  margin: 0;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.jc-analysis-integrity {
  background: #2b2630;
}

.jc-analysis-recent {
  min-height: 0;
  overflow: auto;
  padding: 10px;
}

.jc-analysis-recent > div {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 2px 6px;
  border-bottom: 1px solid #354154;
  padding: 6px 0;
}

.jc-analysis-recent div span {
  grid-row: 1 / span 2;
  align-self: center;
  border-radius: 50%;
  background: #a93442;
  color: #fff;
  padding: 4px 0;
  text-align: center;
  font-size: 10px;
  font-weight: 900;
}

.jc-analysis-recent div b {
  overflow: hidden;
  color: #e9edf3;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.jc-analysis-recent div small {
  overflow: hidden;
  color: #8f9eb0;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.jc-analysis-charts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: #f0f1f2;
}

.jc-analysis-chart {
  width: 100%;
  height: 270px;
}

.jc-analysis-method {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  border-top: 1px solid #39475a;
  background: #171d2e;
  padding: 8px 10px;
  color: #aab6c4;
  font-size: 10px;
}

.jc-analysis-method strong {
  color: #ffda58;
}

@media (max-width: 1000px) {
  .jc-analysis-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .jc-analysis-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .jc-analysis-relation-pane {
    border-right: 0;
    border-bottom: 1px solid #4b596c;
  }

  .jc-analysis-detail-pane {
    min-height: 420px;
  }

  .jc-analysis-charts {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  .jc-analysis-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .jc-analysis-controls label {
    flex: 1 1 42%;
  }

  .jc-analysis-controls select,
  .jc-analysis-controls input {
    min-width: 0;
    width: 100%;
  }

  .jc-analysis-conditions {
    flex-basis: 100%;
  }

  .jc-analysis-relation-graph {
    height: 480px;
  }
}
