.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  align-self: start;
  box-sizing: border-box;
}
.filterbar {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}
.filterbar input,
.filterbar select {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 9px 11px;
  font: inherit;
  min-width: 240px;
}
.weight-check {
  padding: 10px 13px;
  border-radius: 9px;
  margin: -6px 0 14px;
  font-weight: 700;
}
.weight-check.ok {
  background: #eaf9f5;
  color: #08745c;
}
.weight-check.bad {
  background: #fff3dc;
  color: #94601d;
}
.clickable-row {
  cursor: pointer;
}
.clickable-row:hover {
  background: #f5fbf9;
}
a.primary,
a.link {
  text-decoration: none;
  display: inline-block;
}
.relation-checklist {
  margin-top: 7px;
  border: 1px solid var(--line);
  border-radius: 10px;
  max-height: 220px;
  overflow: auto;
  padding: 8px;
  background: #fbfdfd;
}
.relation-checklist label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 7px;
  cursor: pointer;
}
.relation-checklist label:hover {
  background: #edf8f5;
}
.relation-checklist label:has(input:checked) {
  background: #dff5ee;
  color: #08745c;
  font-weight: 700;
}
.relation-checklist input {
  width: 18px;
  height: 18px;
  accent-color: #08745c;
}
.relation-checklist small {
  color: var(--muted);
  font-weight: 500;
}
.result-detail-modal {
  width: min(980px, 100%);
}
.question-score-table {
  margin-top: 12px;
  max-height: 360px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.question-score-table .data-table {
  min-width: 680px;
}
.question-score-table thead {
  position: sticky;
  top: 0;
  z-index: 1;
}
.dashboard-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 24px;
  margin-bottom: 18px;
  background: linear-gradient(135deg, #0b2b3c, #15485a);
  color: #fff;
}
.dashboard-hero h2 {
  margin: 5px 0 2px;
  font-size: 23px;
}
.dashboard-hero p {
  margin: 0;
  color: #b9cbd2;
}
.dashboard-hero-status {
  min-width: 190px;
  display: grid;
  justify-items: end;
  gap: 3px;
}
.dashboard-hero-status .status {
  background: #dff9f1;
}
.dashboard-hero-status b {
  font-size: 18px;
}
.dashboard-hero-status small {
  color: #b9cbd2;
}
.dashboard-stats {
  margin-bottom: 0;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(460px, 1.08fr);
  gap: 20px;
  margin-top: 20px;
}
.dashboard-lower {
  grid-template-columns: minmax(0, 1.42fr) minmax(330px, 0.58fr);
  align-items: start;
}
.dashboard-side {
  display: grid;
  gap: 20px;
}
.dashboard-metrics {
  display: grid;
  gap: 17px;
}
.dashboard-metric-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 7px;
}
.dashboard-metric-head span {
  color: #08745c;
  font-weight: 800;
}
.dashboard-metric-head small {
  color: var(--muted);
  font-weight: 500;
  margin-left: 7px;
}
.dashboard-bar {
  height: 9px;
  background: #e8eef0;
  border-radius: 99px;
  overflow: hidden;
}
.dashboard-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0b8067, #6ce5c3);
}
.dashboard-metric .meta {
  margin-top: 4px;
  font-size: 11px;
}
.dashboard-ranking {
  max-height: 440px;
}
.dashboard-ranking .data-table {
  min-width: 620px;
}
.dashboard-ranking thead,
.dashboard-questions thead {
  position: sticky;
  top: 0;
  z-index: 1;
}
.rank-badge {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: #eef2f3;
  color: #60757f;
  font-weight: 800;
}
.rank-badge.top-1 {
  background: #fff1ca;
  color: #8b5b06;
}
.rank-badge.top-2 {
  background: #edf1f4;
  color: #52646c;
}
.rank-badge.top-3 {
  background: #fae8dc;
  color: #965f3b;
}
.dashboard-score {
  color: #08745c;
  font-size: 17px;
}
.dashboard-questions {
  max-height: 570px;
  overflow: auto;
}
.dashboard-questions .data-table {
  min-width: 760px;
}
.question-score-cell {
  min-width: 145px;
  display: grid;
  grid-template-columns: 1fr 38px;
  align-items: center;
  gap: 9px;
}
.question-score-cell b {
  text-align: right;
  color: #08745c;
}
.role-grid {
  display: grid;
  gap: 9px;
}
.role-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 11px 13px;
  background: #fbfdfd;
}
.role-card strong {
  color: #08745c;
  font-size: 18px;
}
.distribution-bar {
  display: flex;
  height: 13px;
  overflow: hidden;
  border-radius: 99px;
  background: #e8eef0;
}
.distribution-bar i {
  min-width: 0;
}
.distribution-bar .excellent,
.legend-dot.excellent {
  background: #08745c;
}
.distribution-bar .good,
.legend-dot.good {
  background: #6dcdb3;
}
.distribution-bar .steady,
.legend-dot.steady {
  background: #e9a74f;
}
.distribution-bar .attention,
.legend-dot.attention {
  background: #d75e57;
}
.distribution-bar .empty-segment {
  background: #dce5e8;
}
.distribution-legend {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px 12px;
  margin-top: 13px;
  color: var(--muted);
  font-size: 12px;
}
.legend-dot {
  width: 8px;
  height: 8px;
  display: inline-block;
  border-radius: 50%;
  margin-right: 6px;
}
.distribution-legend b {
  color: var(--ink);
}
.insight-list {
  display: grid;
  gap: 9px;
}
.insight-item,
.dashboard-alert {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 10px;
  background: #f5f8f9;
}
.insight-item span {
  color: var(--muted);
  white-space: nowrap;
}
.insight-item b {
  text-align: right;
}
.insight-item.positive {
  background: #eaf9f5;
  color: #08745c;
}
.insight-item.focus {
  background: #fff5e6;
  color: #94601d;
}
.dashboard-alert {
  justify-content: flex-start;
}
.dashboard-alert > span {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e4edf0;
  font-weight: 800;
}
.dashboard-alert p {
  margin: 0;
}
.dashboard-alert.warn {
  background: #fff3dc;
  color: #82571d;
}
.dashboard-alert.info {
  background: #eaf1f8;
  color: #315f8b;
}
.dashboard-alert.ok {
  background: #eaf9f5;
  color: #08745c;
}
.compact-empty {
  padding: 22px 12px;
}
@media (max-width: 1180px) {
  .dashboard-grid,
  .dashboard-lower {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  .dashboard-hero {
    align-items: flex-start;
    flex-direction: column;
  }
  .dashboard-hero-status {
    min-width: 0;
    justify-items: start;
  }
  .distribution-legend {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .filterbar {
    flex-direction: column;
  }
  .filterbar input,
  .filterbar select {
    min-width: 0;
    width: 100%;
  }
}
