:root {
  color-scheme: light;
  --ink: #182437;
  --muted: #6c788a;
  --line: #e5eaf0;
  --paper: #f5f7fa;
  --accent: #136f63;
  --dark: #142637;
  --white: #fff;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 14px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid #60c2ab;
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -1px;
  margin-bottom: 12px;
}
h2 {
  font-size: 18px;
  margin: 0;
}
h3 {
  font-size: 17px;
}
small {
  font-size: 12px;
}
.muted,
.fine-print {
  color: var(--muted);
}
.fine-print {
  font-size: 12px;
  margin-top: 24px;
}
.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.6px;
  color: var(--muted);
  margin-bottom: 14px;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 240px;
  background: var(--dark);
  color: #edf4fa;
  padding: 38px 24px;
  display: flex;
  flex-direction: column;
}
.brand {
  font-size: 21px;
  letter-spacing: 1.2px;
  font-weight: 800;
  color: #fff;
}
.brand span {
  color: #77d5c0;
}
.brand small {
  display: block;
  font-weight: 400;
  letter-spacing: 0;
  color: #9fb1c1;
  margin-top: 5px;
}
.sidebar nav {
  margin-top: 52px;
}
.nav-item {
  padding: 13px 15px;
  border-radius: 8px;
  background: #244052;
  color: #fff;
  display: flex;
  justify-content: space-between;
}
.account {
  margin-top: auto;
  padding-top: 32px;
  display: flex;
  gap: 12px;
  align-items: center;
}
.account strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 13px;
}
.account small {
  color: #9fb1c1;
}
.avatar {
  display: grid;
  place-items: center;
  background: #335063;
  width: 35px;
  height: 35px;
  border-radius: 50%;
}
.logout {
  margin-top: 18px;
}
.logout button {
  color: #bdccd8;
  background: transparent;
  border: 0;
  padding: 0;
  font-size: 12px;
}
.workspace {
  margin-left: 240px;
  padding: 42px clamp(24px, 5vw, 76px);
  max-width: 1640px;
}
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}
.page-head .muted {
  margin-bottom: 0;
}
.badge {
  display: inline-block;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 11px;
  white-space: nowrap;
  background: #fff;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 24px;
  overflow: hidden;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
  padding: 24px;
}
.project-card {
  display: block;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
}
.project-card:hover {
  border-color: #84bdae;
  text-decoration: none;
  background: #f8fcfb;
}
.project-icon {
  display: inline-grid;
  place-items: center;
  color: var(--accent);
  background: #eaf5f1;
  border-radius: 8px;
  width: 36px;
  height: 36px;
  margin-bottom: 24px;
}
.project-card p {
  font-size: 12px;
  margin: 0;
}
.empty {
  padding: 56px 24px;
  text-align: center;
  color: var(--muted);
}
.empty h3 {
  color: var(--ink);
}
.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: radial-gradient(ellipse at top left, #e6f3ed, transparent 70%);
}
.login-card {
  max-width: 480px;
  width: 100%;
  padding: 42px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 24px 70px #152a3b0c;
}
.login-form {
  display: flex;
  flex-direction: column;
  margin-top: 30px;
  gap: 10px;
}
.login-form label {
  font-weight: 600;
  font-size: 12px;
  margin-top: 8px;
}
.login-form input,
input,
select {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #ccd5df;
  background: #fff;
  border-radius: 6px;
  color: var(--ink);
}
.primary {
  border: 0;
  border-radius: 6px;
  padding: 12px 16px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
}
.notice {
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f3f7fa;
}
.danger {
  color: #933c35;
  border-color: #edccc5;
  background: #fff6f4;
}
.error {
  max-width: 640px;
  margin: 15vh auto;
  padding: 32px;
}
@media (max-width: 760px) {
  .sidebar {
    position: static;
    width: auto;
    padding: 18px 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
  }
  .brand {
    font-size: 17px;
  }
  .brand small,
  .sidebar nav,
  .account,
  .logout {
    display: none;
  }
  .sidebar .logout {
    display: block;
    margin: 0 0 0 auto;
  }
  .workspace {
    margin-left: 0;
    padding: 26px 18px;
  }
  .page-head {
    align-items: flex-start;
  }
  h1 {
    font-size: 27px;
  }
  .login-card {
    padding: 30px 24px;
  }
  .badge {
    white-space: normal;
  }
}

.breadcrumbs {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.period-filter {
  display: flex;
  gap: 14px;
  align-items: end;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.period-filter label {
  display: flex;
  flex-direction: column;
  font-size: 11px;
  font-weight: 600;
  gap: 5px;
}
.period-filter .muted {
  font-size: 11px;
  padding-bottom: 10px;
}
.filter-button {
  border: 1px solid #bcc9d2;
  background: #fff;
  border-radius: 6px;
  padding: 10px 18px;
  color: var(--ink);
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}
.metric {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 20px;
}
.metric span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.metric strong {
  display: block;
  font-size: 30px;
  font-weight: 650;
  letter-spacing: -1px;
  margin-top: 8px;
}
.context-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 32px;
}
.table-wrap {
  width: 100%;
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
  min-width: 500px;
  font-size: 12px;
}
th {
  text-align: left;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
  background: #f8fafc;
  font-weight: 600;
  padding: 12px 22px;
}
td {
  padding: 16px 22px;
  border-top: 1px solid var(--line);
}
td:first-child {
  font-weight: 500;
}
td code {
  font-size: 11px;
  color: var(--muted);
}
.right {
  text-align: right;
}
.pager {
  padding: 16px 24px;
  font-size: 11px;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.pager > div {
  display: flex;
  gap: 20px;
}
.verdict-grid {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  padding: 24px;
}
.verdict-grid > div {
  display: flex;
  align-items: center;
  gap: 15px;
}
.verdict-grid strong {
  font-size: 22px;
}
.badge.good {
  background: #edf8f1;
  color: #247754;
  border-color: #cce6d7;
}
.badge.warn {
  background: #fff8e8;
  color: #97671b;
  border-color: #f0dfb4;
}
.badge.bad {
  background: #fff0ed;
  color: #a84e40;
  border-color: #efccc5;
}
.badge.neutral {
  background: #f0f3f7;
  color: #687587;
}
.distribution-grid,
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.distribution {
  padding: 20px 24px;
}
.distribution > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  font-size: 12px;
  border-bottom: 1px solid var(--line);
}
.details {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) 1fr;
  gap: 14px 20px;
  margin: 0;
  padding: 24px;
  font-size: 12px;
}
.details dt {
  color: var(--muted);
}
.details dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.panel-note {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
  padding: 0 24px 24px;
}
.content {
  padding: 24px;
}
.content > p:last-child {
  margin-bottom: 0;
}
.assessment-score {
  padding: 24px 24px 0;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.assessment-score strong {
  font-size: 44px;
  letter-spacing: -2px;
}
.assessment-score span {
  font-size: 11px;
  color: var(--muted);
}
.reason-list {
  margin: 0;
  padding-left: 20px;
}
.reason-list li + li {
  margin-top: 10px;
}
.shadow-result {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 20px 0;
}
.fingerprint {
  display: block;
  font-family: monospace;
  font-size: 22px;
  color: var(--accent);
  overflow-wrap: anywhere;
  margin-bottom: 16px;
}
.page-head h1,
.project-card h3 {
  overflow-wrap: anywhere;
}
@media (max-width: 1000px) {
  .metric-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .detail-grid,
  .distribution-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  .metric {
    padding: 16px;
  }
  .metric strong {
    font-size: 27px;
  }
  .section-head {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .section-head .muted {
    font-size: 11px;
  }
  .details {
    grid-template-columns: 1fr 1fr;
    padding: 20px;
  }
  .breadcrumbs {
    margin-bottom: 22px;
  }
  .pager {
    padding: 14px 18px;
  }
  .period-filter input {
    max-width: 145px;
  }
  th,
  td {
    padding: 12px 16px;
  }
  .content {
    padding: 20px;
  }
  .verdict-grid {
    padding: 20px;
  }
}
