.admin-shell {
  padding-top: 32px;
  padding-bottom: 60px;
}

.admin-login-wrap {
  display: grid;
  min-height: calc(100vh - 130px);
  place-items: center;
}

.admin-login-panel {
  display: grid;
  width: min(420px, 100%);
  gap: 18px;
  padding: 30px;
}

.admin-login-heading {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 4px;
}

.brand-mark.large {
  width: 48px;
  height: 48px;
  font-size: 16px;
}

.admin-login-heading h1 {
  margin: 0;
  font-size: 23px;
}

.admin-login-heading p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.dashboard-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.dashboard-head h1 {
  margin: 6px 0 5px;
  font-size: 30px;
}

.dashboard-head p {
  margin: 0;
  font-size: 13px;
}

.eyebrow {
  color: var(--green);
  font-size: 13px;
  font-weight: 750;
}

.head-actions {
  display: flex;
  gap: 9px;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.kpi {
  position: relative;
  min-height: 136px;
  padding: 23px;
}

.kpi span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.kpi strong {
  display: inline-block;
  margin-top: 18px;
  color: var(--green);
  font-size: 36px;
  line-height: 1;
}

.kpi small {
  margin-left: 5px;
  color: var(--muted);
}

.analytics-band {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 30px;
  align-items: center;
  margin-top: 16px;
  padding: 24px;
}

.analytics-band > div:first-child span,
.analytics-band > div:first-child small {
  color: var(--muted);
  font-size: 13px;
}

.analytics-band > div:first-child strong {
  display: inline-block;
  margin: 0 5px 0 12px;
  font-size: 27px;
}

.accuracy-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
}

.accuracy-label strong {
  color: var(--green);
}

.bar-track {
  height: 12px;
  overflow: hidden;
  border-radius: 6px;
  background: #dfe9e2;
}

.bar-fill {
  width: 0;
  height: 100%;
  border-radius: 6px;
  background: var(--green);
  transition: width 220ms ease;
}

.tabs {
  display: flex;
  gap: 26px;
  margin-top: 28px;
  border-bottom: 1px solid var(--line);
}

.tab {
  min-height: 48px;
  padding: 0 2px;
  border: 0;
  border-bottom: 3px solid transparent;
  color: var(--muted);
  background: transparent;
}

.tab.active {
  border-bottom-color: var(--green);
  color: var(--green);
  font-weight: 700;
}

.filter-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0 14px;
}

.search-box {
  position: relative;
  width: min(360px, 100%);
}

.search-box svg {
  position: absolute;
  top: 50%;
  left: 13px;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  fill: none;
  stroke: #718178;
  stroke-linecap: round;
  stroke-width: 2;
}

.search-box input {
  width: 100%;
  height: 42px;
  padding: 0 13px 0 40px;
  border: 1px solid #cad8cf;
  border-radius: 7px;
  outline: none;
  background: #fff;
}

.search-box input:focus {
  border-color: var(--green);
}

.filter-select {
  width: 170px;
}

.data-table-wrap {
  overflow-x: auto;
  box-shadow: none;
}

.data-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 16px 18px;
  border-bottom: 1px solid #e8eee9;
  text-align: left;
  white-space: nowrap;
}

.data-table th {
  color: #5f7066;
  background: #f6f8f6;
  font-size: 12px;
  font-weight: 700;
}

.data-table td {
  font-size: 14px;
}

.data-table tbody tr:hover {
  background: #f8fbf9;
}

.employee-name {
  font-weight: 700;
}

.accuracy-pill {
  display: inline-block;
  min-width: 58px;
  padding: 5px 8px;
  border-radius: 5px;
  color: var(--green);
  background: var(--green-soft);
  font-weight: 700;
  text-align: center;
}

.accuracy-pill.low {
  color: var(--danger);
  background: var(--danger-soft);
}

.attempt-list {
  margin-top: 18px;
  overflow: hidden;
  box-shadow: none;
}

.attempt-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 140px 120px 160px;
  gap: 16px;
  align-items: center;
  padding: 17px 20px;
  border-bottom: 1px solid #e8eee9;
}

.attempt-row:last-child {
  border-bottom: 0;
}

.attempt-person strong,
.attempt-person span {
  display: block;
}

.attempt-person span,
.attempt-time,
.attempt-count {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.attempt-score {
  color: var(--green);
  font-size: 21px;
  font-weight: 750;
  text-align: right;
}

@media (max-width: 820px) {
  .dashboard-head {
    align-items: flex-start;
  }

  .kpi-grid {
    grid-template-columns: 1fr 1fr;
  }

  .analytics-band {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .attempt-row {
    grid-template-columns: 1fr auto;
  }

  .attempt-count,
  .attempt-time {
    text-align: left;
  }
}

@media (max-width: 600px) {
  .admin-shell {
    padding-top: 22px;
  }

  .dashboard-head {
    display: block;
  }

  .head-actions {
    margin-top: 18px;
  }

  .head-actions .btn {
    flex: 1;
  }

  .kpi {
    min-height: 118px;
    padding: 18px;
  }

  .kpi strong {
    font-size: 31px;
  }

  .filter-row {
    display: grid;
  }

  .filter-select {
    width: 100%;
  }

  .attempt-row {
    grid-template-columns: 1fr auto;
  }
}
