/* Adapted from Viafactor globals.css kv-* tokens and WorkspaceShell spacing. */
:root {
  color: #334155;
  background: #f6f8fb;
  color-scheme: light;
  -webkit-font-smoothing: antialiased;
}
body {
  color: #334155;
  background: #f6f8fb;
}
.kv-header {
  display: block;
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid #e2e8f0;
  background: #fffffff2;
  backdrop-filter: blur(8px);
  margin: 0;
}
.header-inner {
  max-width: 1600px;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 700;
  color: #007f86;
  text-decoration: none;
}
#auth {
  display: flex;
  align-items: center;
  gap: 16px;
}
.workspace-shell {
  max-width: 1600px;
  margin: auto;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 40px;
  padding: 32px 24px;
}
.workspace-sidebar {
  position: sticky;
  top: 112px;
  align-self: start;
  max-height: calc(100dvh - 128px);
  overflow: auto;
}
.workspace-title {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  margin-bottom: 28px;
  font-weight: 600;
  color: #1e293b;
}
.workspace-title span {
  background: #ccfbf1;
  color: #115e59;
  padding: 8px;
  border-radius: 12px;
}
.workspace-shell main {
  padding: 0;
  margin: 0;
  max-width: none;
  min-width: 0;
}
main,
section,
.metrics > * {
  min-width: 0;
}
.nav-group-title {
  margin-bottom: 8px;
  padding: 0 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #64748b;
}
.workspace-sidebar nav,
#mobile-navigation nav {
  display: block;
}
.kv-nav-link {
  display: flex;
  min-height: 44px;
  box-sizing: border-box;
  align-items: center;
  gap: 12px;
  border-radius: 12px;
  padding: 8px 12px;
  margin: 4px 0;
  font-size: 14px;
  font-weight: 500;
  color: #475569;
  text-decoration: none;
}
.kv-nav-link:hover {
  background: white;
  color: #0f172a;
}
.kv-nav-link[aria-current='page'] {
  background: #115e59;
  color: white;
  box-shadow: 0 1px 3px #0002;
}
.kv-nav-link.unavailable {
  color: #64748b;
  opacity: 0.65;
  cursor: not-allowed;
}
.card {
  border-radius: 16px;
  border-color: #e2e8f0;
  box-shadow: 0 1px 2px #0000000d;
}
.page-intro h1 {
  font-size: 36px;
  letter-spacing: -0.025em;
  font-weight: 700;
  color: #0f172a;
  margin: 8px 0;
}
.page-intro p {
  line-height: 1.65;
}
.eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #0f766e;
}
.muted {
  color: #475569;
}
button,
.button {
  min-height: 44px;
  box-sizing: border-box;
  border-radius: 12px;
  background: #115e59;
  font-size: 14px;
  font-weight: 600;
}
button:hover,
.button:hover {
  background: #134e4a;
}
button.secondary {
  border: 1px solid #cbd5e1;
  background: white;
  color: #334155;
}
button.secondary:hover {
  background: #f8fafc;
}
input,
select {
  min-height: 44px;
  border-radius: 12px;
  border-color: #cbd5e1;
  color: #0f172a;
}
a {
  color: #0f766e;
}
#selection {
  border-left-color: #0f766e;
}
.rankings button {
  background: #f0fdfa;
  color: #115e59;
}
.kv-skip {
  position: absolute;
  left: 16px;
  top: -100px;
}
.kv-skip:focus {
  top: 16px;
  background: white;
  padding: 12px;
  border-radius: 8px;
  z-index: 100;
}
:where(a, button, input, select, summary):focus-visible {
  outline: 3px solid #0f766e;
  outline-offset: 3px;
}
html {
  scroll-padding-top: 100px;
}
#mobile-menu {
  display: none;
}
h1,
h2,
h3 {
  overflow-wrap: anywhere;
}
@media (max-width: 1023px) {
  .workspace-shell {
    grid-template-columns: minmax(0, 1fr);
    padding: 20px 16px;
    gap: 24px;
  }
  .workspace-sidebar {
    display: none;
  }
  #mobile-menu {
    display: block;
  }
  .header-inner {
    padding: 10px 16px;
  }
  .page-intro h1 {
    font-size: 30px;
  }
}
@media (max-width: 760px) {
  .header-inner {
    padding: 8px 12px;
  }
  .workspace-shell {
    padding: 20px 12px;
  }
  #auth span {
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}
