@font-face {
  font-family: "Manrope";
  src: url("./fonts/manrope-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("./fonts/space-grotesk-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
}
:root {
  color-scheme: light;
  --ink: #171329;
  --muted: #5c526f;
  --line: #e3dcef;
  --paper: #f7f4fb;
  --white: #fff;
  --nav: #090b19;
  --nav-muted: #c5b9dc;
  --accent: #e7d6ff;
  --dark-accent: #451a78;
  --warning: #744814;
  --radius: 17px;
  --font-heading: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  font-family: "Manrope", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #8c37ed;
}
a {
  color: #621cac;
  text-underline-offset: 3px;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.56;
}
button,
a {
  transition:
    background 0.18s,
    color 0.18s;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: var(--font-heading);
}
p {
  line-height: 1.55;
}
svg {
  width: 19px;
  height: 19px;
  flex: none;
}
form {
  display: grid;
  gap: 14px;
}
label {
  display: grid;
  gap: 6px;
  font-size: 0.92rem;
  font-weight: 650;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #c5b9d4;
  border-radius: 9px;
  padding: 11px 12px;
  min-height: 44px;
  color: var(--ink);
  background: #fff;
}
textarea {
  resize: vertical;
  min-height: 100px;
}
summary {
  cursor: pointer;
  min-height: 44px;
  display: list-item;
  padding: 11px 0;
}
ol,
ul {
  padding-left: 1.3rem;
  line-height: 1.65;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 0.88rem;
}
.eyebrow {
  font-size: 0.74rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-weight: 800;
}
.loading {
  padding: 32px;
}
.shell {
  display: grid;
  grid-template-columns: 246px minmax(0, 1fr);
  min-height: 100dvh;
}
.sidebar {
  background: var(--nav);
  color: #fff;
  padding: 25px 17px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: sticky;
  top: 0;
  height: 100dvh;
  overflow: auto;
}
.brand {
  display: flex;
  align-items: center;
}
.brand img {
  display: block;
  width: 144px;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}
.sidebar .brand {
  justify-content: center;
}
.sidebar .brand img {
  width: 124px;
}
.sidebar .eyebrow {
  color: var(--nav-muted);
  margin: 0 9px 6px;
}
.workspace-nav {
  display: grid;
  gap: 5px;
}
.nav-button,
.client-button {
  display: flex;
  align-items: center;
  text-align: left;
  gap: 10px;
  background: transparent;
  border: 0;
  color: #f2eafc;
  padding: 9px 10px;
  min-height: 44px;
  border-radius: 9px;
  width: 100%;
}
.nav-button:hover,
.client-button:hover,
.nav-button[aria-current="page"] {
  background: #291944;
}
.nav-button[aria-current="page"] {
  color: var(--accent);
}
.client-button {
  font-weight: 720;
}
.client-button .chevron {
  margin-left: auto;
}
.client-chip {
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #e7e0f1;
  color: #452d56;
  width: 29px;
  height: 29px;
  font-size: 0.72rem;
  font-weight: 850;
  flex: none;
}
.subnav {
  margin: 4px 0 8px 12px;
  padding-left: 9px;
  border-left: 1px solid #4a3568;
}
.nav-button svg {
  width: 16px;
  height: 16px;
}
.sidebar-footer {
  margin-top: auto;
  display: grid;
  gap: 10px;
}
.sidebar-footer p {
  font-size: 0.79rem;
  color: var(--nav-muted);
  overflow-wrap: anywhere;
  padding: 0 8px;
}
.content {
  min-width: 0;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px clamp(19px, 4vw, 58px);
  border-bottom: 1px solid var(--line);
  background: #fdfbff;
  min-height: 67px;
}
.topbar span {
  display: flex;
  align-items: center;
  gap: 9px;
}
.wrap {
  max-width: 1340px;
  margin: auto;
  padding: 28px clamp(19px, 4vw, 58px) 60px;
  display: grid;
  gap: 22px;
}
.hero {
  background: linear-gradient(115deg, #eee3ff, #fae6f6);
  border: 1px solid #e5d5f6;
  border-radius: 22px;
  padding: clamp(21px, 4vw, 39px);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.hero h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  letter-spacing: -0.045em;
  line-height: 1.04;
  margin: 8px 0 10px;
}
.hero a {
  overflow-wrap: anywhere;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.button {
  min-height: 44px;
  padding: 10px 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 10px;
  background: var(--nav);
  color: #fff;
  border: 1px solid transparent;
  font-size: 0.93rem;
  font-weight: 750;
  text-decoration: none;
  white-space: normal;
}
.button:hover {
  background: #321951;
}
.button.secondary {
  background: white;
  border-color: #d8c9e7;
  color: var(--ink);
}
.button.secondary:hover {
  background: #f2e9fc;
}
.button.accent {
  background: linear-gradient(115deg, #641bd6, #a41983);
  color: #fff;
}
.button.accent:hover {
  background: linear-gradient(115deg, #5112b2, #87116b);
}
.row,
.between {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.between {
  justify-content: space-between;
}
.stack {
  display: grid;
  gap: 15px;
  min-width: 0;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
}
.stat,
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}
.stat {
  padding: 17px;
  display: grid;
  gap: 8px;
}
.stat strong {
  font-family: var(--font-heading);
  font-variant-numeric: tabular-nums;
  font-size: 1.65rem;
  letter-spacing: -0.04em;
}
.stat .eyebrow {
  letter-spacing: 0.08em;
  color: var(--muted);
}
.card {
  padding: 20px;
  min-width: 0;
}
.card h2 {
  font-size: 1.25rem;
  letter-spacing: -0.025em;
}
.card h3 {
  font-size: 1rem;
}
.grid2 {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 17px;
  align-items: start;
}
.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 0.77rem;
  font-weight: 720;
  background: #efe5fb;
  color: #4b2a70;
}
.pill.warn {
  background: #fff0d7;
  color: var(--warning);
}
.pill.danger {
  background: #fce5e3;
  color: #8c2726;
}
.rule {
  border-top: 1px solid var(--line);
  padding-top: 13px;
}
.finding {
  display: grid;
  gap: 9px;
}
.finding details {
  font-size: 0.9rem;
}
.finding details p {
  margin: 8px 0;
  overflow-wrap: anywhere;
}
.check {
  display: grid;
  gap: 4px;
  border-top: 1px solid var(--line);
  padding: 12px 0;
}
.check:last-child {
  padding-bottom: 0;
}
.check p {
  font-size: 0.88rem;
}
.empty {
  border: 1px dashed #cab9e0;
  border-radius: 12px;
  padding: 18px;
  background: #fbf8fe;
}
.prose {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.65;
}
.list-links a {
  overflow-wrap: anywhere;
}
.notice {
  position: fixed;
  bottom: 18px;
  right: 18px;
  background: var(--nav);
  color: white;
  padding: 13px 17px;
  border-radius: 10px;
  z-index: 5;
  max-width: min(450px, calc(100vw - 36px));
  box-shadow: 0 10px 30px #090b192b;
}
.notice.error {
  background: #842d2a;
}
.login {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.85fr);
}
.login-side {
  padding: clamp(27px, 7vw, 108px);
  background: radial-gradient(ellipse at 12% 85%, #26113f 0%, var(--nav) 64%);
  color: #fff;
  display: grid;
  align-content: center;
  gap: 24px;
}
.login-side .brand img {
  width: clamp(120px, 17vw, 184px);
}
.login-side h1 {
  font-size: clamp(2.7rem, 6.2vw, 6.4rem);
  line-height: 0.99;
  letter-spacing: -0.05em;
  max-width: 10.5ch;
  text-wrap: balance;
}
.login-side p {
  color: #e6ddf4;
  max-width: 38ch;
}
.login-panel {
  display: grid;
  place-items: center;
  padding: 30px;
}
.login-panel .card {
  width: min(100%, 430px);
  padding: 28px;
}
.login-panel h2 {
  font-size: 1.7rem;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.menu-toggle {
  display: none;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #69a740;
}
.status-dot.off {
  background: #9b7134;
}
@media (max-width: 1000px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid2 {
    grid-template-columns: 1fr;
  }
  .shell {
    grid-template-columns: 210px minmax(0, 1fr);
  }
}
@media (max-width: 700px) {
  .shell {
    display: block;
  }
  .sidebar {
    display: none;
    position: relative;
    height: auto;
  }
  .shell.menu-open .sidebar {
    display: flex;
  }
  .menu-toggle {
    display: inline-flex;
  }
  .hero {
    display: grid;
  }
  .topbar {
    padding: 11px 18px;
  }
  .wrap {
    padding: 18px 15px 40px;
  }
  .login {
    display: block;
  }
  .login-side {
    padding: 33px 25px;
  }
  .login-side h1 {
    font-size: 3rem;
  }
  .login-panel {
    padding: 20px 15px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .card {
    padding: 16px;
  }
  .stat {
    padding: 13px;
  }
  .stat strong {
    font-size: 1.35rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
