@font-face {
  font-family: Roboto;
  src: url("roboto-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
}

* { box-sizing: border-box; }
:root { color-scheme: light; --ink: #090909; --muted: #626262; --line: #dedede; --paper: #fff; --ground: #f6f6f6; --accent: #afa5cd; --accent-tint: #f0edf7; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 15px/1.45 Roboto, system-ui, sans-serif; }
a { color: inherit; text-underline-offset: 4px; }
.top { background: var(--paper); color: var(--ink); border-bottom: 1px solid var(--line); }
.top-inner, main { width: min(1340px, 100%); margin: auto; padding: 0 30px; }
.top-inner, nav, .page-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.top-inner { min-height: 68px; }
.brand { font-size: 30px; font-weight: 800; letter-spacing: -1.4px; text-decoration: none; }

nav a { text-decoration: none; }
main { padding-top: 32px; padding-bottom: 50px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(27px, 5vw, 43px); letter-spacing: -.035em; line-height: 1.12; margin-bottom: 8px; }
h2 { font-size: 19px; letter-spacing: -.025em; margin-bottom: 14px; }
p, .note { color: var(--muted); }
.panel, .kpis > div { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 22px; margin-bottom: 16px; }
.filters, .fields, .actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
label { display: grid; gap: 5px; color: #3f3f3f; font-size: 13px; }
input, select, button, .button { font: inherit; padding: 8px 12px; border-radius: 7px; border: 1px solid #c8c8c8; background: #fff; min-width: 0; }
button, .button { background: var(--ink); color: #fff; cursor: pointer; text-decoration: none; border-color: var(--ink); text-align: center; }
.quiet { background: transparent; color: var(--ink); border-color: #aaa; border-radius: 999px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(185px, 1fr)); gap: 12px; }
.kpis > div { margin-bottom: 0; }
.kpis small { display: block; color: var(--muted); margin-bottom: 7px; }
.kpis strong { font-size: 27px; font-variant-numeric: tabular-nums; }
.note { margin: 10px 0 16px; font-size: 13px; }
table { border-collapse: collapse; width: 100%; text-align: left; }
th, td { padding: 12px; border-bottom: 1px solid #e8e8e8; }
th { font-size: 13px; background: #f6f6f5; }
td { font-variant-numeric: tabular-nums; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.scroll { overflow: auto; }
.bar { display: grid; grid-template-columns: 90px minmax(30px, 1fr) 95px 90px; align-items: center; gap: 10px; margin: 7px 0; font-size: 13px; }
meter { width: 100%; height: 18px; }
meter::-webkit-meter-optimum-value { background: #343434; }
meter::-moz-meter-bar { background: #343434; }
.auth { max-width: 460px; margin: 30px auto; }
.auth form { display: grid; gap: 12px; }
.auth input { width: 100%; }
.auth-img { width: 180px; height: 180px; }
.error { color: #962323; }
details { border-top: 1px solid var(--line); padding: 12px 0; }
summary { cursor: pointer; font-weight: 650; }
details form { margin: 12px 0; }
@media (max-width: 720px) {
  .top-inner, main { padding-left: 14px; padding-right: 14px; }
  .page-head { align-items: start; flex-direction: column; gap: 4px; margin-bottom: 12px; }
  .split { grid-template-columns: 1fr; gap: 0; }
  .panel { padding: 13px; }
  nav { gap: 9px; }
  .bar { grid-template-columns: 70px minmax(24px, 1fr) 63px 62px; gap: 4px; }
}

tr.below-target > td { background: #fde8e7; color: #821b19; }

.top nav a { color: #3f3f3f; white-space: nowrap; }
.top nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-underline-offset: 7px; }
.page-head { margin-bottom: 20px; }
.page-head p:last-child { margin-bottom: 0; }
.report-nav { justify-content: flex-start; gap: 18px; overflow-x: auto; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.report-nav a { color: var(--muted); white-space: nowrap; padding: 10px 2px; border-bottom: 2px solid transparent; }
.report-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); font-weight: 700; }
.button-secondary { background: var(--paper); color: var(--ink); white-space: nowrap; }
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); align-items: end; }
.filters select, .filters input { width: 100%; }
.filters button { min-height: 40px; }
.kpis strong { font-size: 32px; }
th { background: #f1f1f1; }
td a { font-weight: 600; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

@media (max-width: 720px) {
  .report-nav { gap: 14px; }
  .top nav { font-size: 13px; flex-wrap: wrap; justify-content: flex-end; }
  .split > .panel { min-width: 0; overflow: auto; }
}


.button, .filters button { border-radius: 999px; }
.scan-notice { background: var(--accent-tint); color: var(--ink); border-radius: 10px; padding: 12px 16px; }

.employee-cell { min-width: 10rem; }
.employee-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.employee-link:hover, .employee-link:focus-visible { background: var(--accent-tint); }
.employee-link > span:last-child { font-size: 1.35rem; }
.employee-back { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 720px) {
  .picker-table th:first-child, .picker-table .employee-cell {
    position: sticky;
    left: 0;
    z-index: 1;
    max-width: 11rem;
    background: var(--paper);
    box-shadow: 1px 0 var(--line);
  }
  .picker-table th:first-child { background: var(--ground); }
  .picker-table tr.below-target .employee-cell { background: #fde8e7; }
}

.team-picker { flex: 1 1 22rem; min-width: 0; border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.team-picker-list { max-height: 20rem; overflow: auto; border-top: 1px solid var(--line); }
.team-picker-option { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 8px; border-bottom: 1px solid var(--line); cursor: pointer; }
.team-picker-option[hidden] { display: none; }
.team-picker-option:has(input:checked) { background: var(--accent-tint); }
.team-picker-option input { width: 18px; height: 18px; flex: none; }
.team-picker-option small { display: block; color: var(--muted); }

[data-team-search][hidden], .team-member[hidden] { display: none; }
[data-team-search] { margin: 16px 0; }
[data-picker-count] { margin: 0; }
.team-member { border-bottom: 1px solid var(--line); }
.team-member .team-picker-option { border-bottom: 0; }
.team-member details { padding: 0 8px 8px 38px; border: 0; }
.team-member summary { font-size: .85rem; color: var(--muted); cursor: pointer; }
