@font-face {
  font-family: "SkillHub Sora";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/fonts/sora-regular.ttf") format("truetype");
}

@font-face {
  font-family: "SkillHub Plex";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-400.ttf") format("truetype");
}

@font-face {
  font-family: "SkillHub Plex";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-500.ttf") format("truetype");
}

@font-face {
  font-family: "SkillHub Plex";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-600.ttf") format("truetype");
}

@font-face {
  font-family: "SkillHub Plex";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-700.ttf") format("truetype");
}

@font-face {
  font-family: "SkillHub Plex Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-condensed-600.ttf") format("truetype");
}

@font-face {
  font-family: "SkillHub Plex Condensed";
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-condensed-600-italic.ttf") format("truetype");
}

@font-face {
  font-family: "SkillHub Mono";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/fonts/jetbrains-mono-regular.ttf") format("truetype");
}

:root {
  color-scheme: dark;
  --bg: #0b0f14;
  --bg-2: #11161d;
  --bg-card: #151b23;
  --bg-elevated: #1b2230;
  --bg-hover: #202938;
  --panel: rgba(21, 27, 35, 0.76);
  --panel-solid: #151b23;
  --panel-strong: rgba(27, 34, 48, 0.94);
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f3f6fb;
  --muted: #8d98a7;
  --text-secondary: #c6d0dd;
  --text-disabled: #657080;
  --accent: #5b6cff;
  --accent-hover: #7282ff;
  --accent-soft: rgba(91, 108, 255, 0.16);
  --cyan: #38bdf8;
  --cyan-2: #45a3ff;
  --cyan-soft: rgba(56, 189, 248, 0.14);
  --green: #22c55e;
  --green-soft: rgba(34, 197, 94, 0.14);
  --amber: #f59e0b;
  --amber-soft: rgba(245, 158, 11, 0.14);
  --red: #ef4444;
  --red-soft: rgba(239, 68, 68, 0.14);
  --critical: #ff5d7a;
  --critical-soft: rgba(255, 93, 122, 0.16);
  --shadow: 0 18px 58px rgba(0, 0, 0, 0.28);
  --font-cjk: "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Source Han Sans SC", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  --font-sans: "SkillHub Plex", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI Variable", var(--font-cjk);
  --font-display: "SkillHub Plex", "SkillHub Sora", var(--font-cjk);
  --font-label: "SkillHub Plex Condensed", "SkillHub Plex", var(--font-cjk);
  --mono: "SkillHub Mono", "SFMono-Regular", "Cascadia Mono", "Liberation Mono", Menlo, monospace;
  --type-hero: clamp(3.2rem, 7vw, 6.8rem);
  --type-page-title: clamp(2rem, 4vw, 3.4rem);
  --type-page-title-compact: clamp(1.95rem, 3vw, 3rem);
  --type-section-title: clamp(1.55rem, 3vw, 2.55rem);
  --type-form-title: clamp(1.32rem, 2.1vw, 1.85rem);
  --type-card-title: clamp(1.05rem, 1.2vw, 1.22rem);
  --type-panel-title: 1rem;
  --type-meta-title: 0.72rem;
  --line-hero: 0.92;
  --line-title: 1.08;
  --line-card-title: 1.16;
  --line-meta-title: 1;
  --weight-title: 700;
  --weight-card-title: 700;
  --weight-meta-title: 700;
  --tracking-title: 0;
  --tracking-meta: 0;
  --space-title-tight: 0.35rem;
  --space-title: 0.85rem;
  font-family: var(--font-sans);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  font-family: var(--font-sans);
  background:
    radial-gradient(circle at 82% 10%, rgba(91, 108, 255, 0.18), transparent 28rem),
    radial-gradient(circle at 14% 24%, rgba(56, 189, 248, 0.1), transparent 30rem),
    radial-gradient(circle at 72% 78%, rgba(34, 197, 94, 0.06), transparent 24rem),
    linear-gradient(180deg, var(--bg) 0%, #0d1219 52%, #080c11 100%);
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, black, transparent 86%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 0 49%, rgba(91, 108, 255, 0.04) 50%, transparent 51% 100%),
    radial-gradient(circle at 50% 0, rgba(91, 108, 255, 0.08), transparent 36rem);
  background-size: 100% 7px, auto;
  opacity: 0.28;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.ui-icon {
  flex: 0 0 auto;
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.85;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
.primary-link,
.secondary-link {
  border: 0;
  cursor: pointer;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(270px, 0.9fr) auto minmax(260px, 0.9fr);
  align-items: stretch;
  border-bottom: 1px solid var(--line);
  background: rgba(2, 7, 13, 0.78);
  backdrop-filter: blur(22px);
  box-shadow: 0 12px 50px rgba(0, 0, 0, 0.24);
}

.brand,
.topbar nav,
.topbar-actions,
.hero,
.toolbar,
.drawer-actions,
.signal-list,
.cover-row,
.metrics,
.form-grid,
.card-title,
.review-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 0.72rem;
  min-height: 3.5rem;
  padding: 0 1rem 0 calc(1.25rem + 14px);
  font-family: var(--font-display);
  color: var(--text);
  text-decoration: none;
}

.brand-copy {
  display: grid;
  align-content: center;
  min-width: 0;
  min-height: 2rem;
}

.brand-title {
  overflow: hidden;
  font-size: 1.08rem;
  font-weight: 560;
  letter-spacing: 0;
  line-height: 1.08;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-logo {
  display: block;
  height: 56px;
  width: 56px;
  max-width: 56px;
  flex: 0 0 auto;
  object-fit: contain;
}

.topbar nav {
  align-self: stretch;
}

.topbar nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  min-width: 5.8rem;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
}

.topbar nav a:hover {
  color: var(--text);
  background: rgba(66, 217, 255, 0.09);
}

.topbar nav a:hover::after,
.topbar nav a.active::after {
  content: "";
  position: absolute;
  top: calc(50% + 0.82rem);
  right: 1rem;
  left: 1rem;
  height: 2px;
  background: var(--cyan);
  box-shadow: 0 0 16px rgba(66, 217, 255, 0.7);
}

.topbar nav a.active {
  color: var(--text);
  background: rgba(66, 217, 255, 0.12);
}

.topbar nav a .ui-icon {
  width: 0.9rem;
  height: 0.9rem;
  color: rgba(198, 208, 221, 0.72);
}

.topbar nav a.active .ui-icon,
.topbar nav a:hover .ui-icon {
  color: var(--cyan);
}

.topbar-actions {
  justify-content: flex-end;
  gap: 0.6rem;
  padding: 0.42rem 1rem;
}

.ghost-button,
.publish-button,
.primary-link,
.secondary-link,
.review-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  min-height: 2.45rem;
  padding: 0.58rem 0.9rem;
  border-radius: 0.42rem;
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 900;
}

.ghost-button,
.secondary-link,
.review-actions button {
  border: 1px solid var(--line-strong);
  background: rgba(8, 22, 34, 0.56);
  color: var(--text);
}

.user-avatar-button {
  display: inline-grid;
  grid-template-columns: 2rem minmax(0, auto);
  align-items: center;
  gap: 0.58rem;
  width: auto;
  max-width: 13rem;
  min-width: 0;
  height: 2.55rem;
  min-height: 2.55rem;
  padding: 0.22rem 0.76rem 0.22rem 0.22rem;
  border-color: rgba(91, 108, 255, 0.36);
  border-radius: 999px;
  background:
    radial-gradient(circle at 1.4rem 50%, rgba(91, 108, 255, 0.16), transparent 1.55rem),
    linear-gradient(145deg, rgba(27, 34, 48, 0.94), rgba(11, 15, 20, 0.92));
  box-shadow:
    inset 0 0 0 1px rgba(233, 248, 255, 0.08),
    0 0 22px rgba(66, 217, 255, 0.22);
}

.user-avatar-button:hover {
  border-color: var(--green);
  background:
    radial-gradient(circle at 1.4rem 50%, rgba(88, 245, 168, 0.18), transparent 1.55rem),
    linear-gradient(145deg, rgba(10, 30, 46, 0.96), rgba(2, 7, 13, 0.92));
}

.personas-avatar,
.avatar-fallback {
  display: block;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
}

.personas-avatar[hidden],
.avatar-fallback[hidden] {
  display: none;
}

.personas-avatar {
  background: rgba(233, 248, 255, 0.08);
  object-fit: cover;
}

.avatar-fallback {
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(14, 46, 68, 0.98), rgba(5, 19, 31, 0.96));
  color: var(--text);
  font-weight: 800;
  font-size: 0.95rem;
  box-shadow: inset 0 0 0 1px rgba(233, 248, 255, 0.1);
}

.user-display-name {
  overflow: hidden;
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.publish-button,
.primary-link {
  background: linear-gradient(180deg, var(--accent-hover), var(--accent));
  color: #fff;
  box-shadow: 0 12px 28px rgba(91, 108, 255, 0.28);
}

.primary-link,
.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.primary-link .ui-icon,
.publish-button .ui-icon {
  color: rgba(255, 255, 255, 0.9);
}

.secondary-link .ui-icon,
.ghost-button .ui-icon {
  color: rgba(198, 208, 221, 0.74);
}

main {
  padding-bottom: 2.6rem;
}

.view-page {
  min-height: calc(100vh - 4.4rem);
  padding: 3.2rem clamp(1rem, 5vw, 4rem);
}

html[data-route] .view-page {
  display: none;
}

html[data-route="home"] .view-page[data-view="home"],
html[data-route="skills"] .view-page[data-view="skills"],
html[data-route="repositories"] .view-page[data-view="repositories"],
html[data-route="docs"] .view-page[data-view="docs"],
html[data-route="submit"] .view-page[data-view="submit"],
html[data-route="admin"] .view-page[data-view="admin"] {
  display: block;
}

html[data-route="admin"] .admin-card .card-title {
  gap: 0.72rem;
  margin-bottom: 1rem;
}

html[data-route="admin"] .admin-card .card-title h2 {
  margin: 0;
}

html[data-route="admin"] .admin-card .card-title span {
  width: 2rem;
  height: 2rem;
  font-size: 0.72rem;
}

html[data-route="repositories"] body,
html[data-route="docs"] body,
html[data-route="admin"] body {
  background:
    radial-gradient(circle at 80% 12%, rgba(91, 108, 255, 0.12), transparent 28rem),
    linear-gradient(180deg, #0d1219 0%, #101620 48%, #090d12 100%);
}

html[data-route="repositories"] body::before,
html[data-route="repositories"] body::after,
html[data-route="docs"] body::before,
html[data-route="docs"] body::after,
html[data-route="admin"] body::before,
html[data-route="admin"] body::after {
  opacity: 0.12;
}

html[data-route="repositories"] .view-page[data-view="repositories"],
html[data-route="docs"] .view-page[data-view="docs"],
html[data-route="admin"] .view-page[data-view="admin"] {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-inline: clamp(1rem, 1.65vw, 2rem);
}

html[data-route="docs"] .view-page[data-view="docs"] {
  min-height: calc(100vh - 4.4rem);
  padding: 0;
}

html[data-route="repositories"] .section-heading,
html[data-route="docs"] .section-heading,
html[data-route="admin"] .section-heading {
  border-color: rgba(148, 163, 184, 0.2);
}

html[data-route="login"] .view-page[data-view="login"],
html[data-route="signup"] .view-page[data-view="signup"] {
  display: grid;
}

.sso-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.48rem;
  min-height: 2.8rem;
  border: 1px solid rgba(105, 214, 255, 0.28);
  border-radius: 0.45rem;
  background: rgba(66, 217, 255, 0.08);
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.sso-link:hover {
  border-color: rgba(105, 214, 255, 0.48);
  background: rgba(66, 217, 255, 0.14);
}

.view-page h1 {
  margin-bottom: var(--space-title-tight);
  font-size: var(--type-page-title);
  line-height: var(--line-title);
}

.view-page[hidden] {
  display: none;
}

.hero-page {
  padding-top: clamp(2rem, 5vw, 4.6rem);
}

.page-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
  gap: clamp(1rem, 4vw, 3rem);
  align-items: stretch;
  min-height: min(680px, calc(100vh - 7rem));
  padding-bottom: clamp(3rem, 7vh, 5.8rem);
  border-bottom: 1px solid var(--line);
}

.page-hero::before {
  content: "";
  display: none;
  position: absolute;
  top: -1.15rem;
  left: 0;
  padding: 0.34rem 0.58rem;
  border: 1px solid var(--line-strong);
  background: rgba(66, 217, 255, 0.08);
  color: var(--green);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 900;
}

.page-hero > div:first-child {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-self: start;
  min-height: clamp(27rem, calc(100vh - 8rem), 34rem);
  padding-block: 0 0.35rem;
  animation: home-rise-in 520ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.page-hero > div:first-child > p:not(.eyebrow) {
  max-width: min(100%, 960px);
  color: var(--muted);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.58;
}

.home-title-row {
  --home-robot-gap: clamp(0.85rem, 1.4vw, 1.25rem);
  --home-robot-space: clamp(9.4rem, 15vw, 13.1rem);
  position: relative;
  display: inline-block;
  box-sizing: border-box;
  width: max-content;
  max-width: calc(100% - var(--home-robot-space));
  padding-right: 0;
  margin-bottom: var(--space-title);
}

.home-title-row h1 {
  display: inline-block;
  margin-bottom: 0;
}

.home-robot-illustration {
  position: absolute;
  left: calc(100% + var(--home-robot-gap));
  bottom: 0;
  width: clamp(8.2rem, 13vw, 11.2rem);
  max-height: 10.4rem;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 26px 48px rgba(0, 0, 0, 0.38));
}

.terminal-panel.compact-terminal {
  --compact-terminal-panel-bottom: 0.35rem;
  align-self: start;
  isolation: isolate;
  height: clamp(27rem, calc(100vh - 8rem), 34rem);
  max-height: 34rem;
  margin: 0;
  min-height: 0;
  padding: clamp(1.25rem, 3.6vw, 2.43rem);
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  animation: home-rise-in 580ms cubic-bezier(0.22, 1, 0.36, 1) 90ms both;
}

.terminal-panel.compact-terminal::before {
  top: calc(5% - 1px);
  right: 5%;
  left: 5%;
  background: linear-gradient(90deg, var(--accent) 0%, var(--cyan) 58%, #8aa4c2 100%);
}

.terminal-panel.compact-terminal::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 5% 5% var(--compact-terminal-panel-bottom);
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(27, 34, 48, 0.78), rgba(21, 27, 35, 0.58)),
    rgba(17, 22, 29, 0.66);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.terminal-panel.compact-terminal > * {
  position: relative;
  z-index: 1;
}

.terminal-panel.compact-terminal > span {
  margin-bottom: 0.9rem;
}

.terminal-panel.compact-terminal .terminal-chrome {
  margin-bottom: 1.3rem;
}

.terminal-panel.compact-terminal .terminal-chrome i:nth-child(3) {
  background: #8aa4c2;
}

.terminal-panel.compact-terminal .registry-announcement {
  background: rgba(105, 214, 255, 0.075);
}

.terminal-panel.compact-terminal .registry-announcement time,
.terminal-panel.compact-terminal .registry-day time,
.terminal-panel.compact-terminal .registry-announcement b {
  color: #8dddf2;
}

.route-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.85rem;
  padding-top: clamp(1.1rem, 2.2vh, 1.8rem);
}

.route-card {
  position: relative;
  min-height: 138px;
  overflow: hidden;
  padding: 0.95rem;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.026), rgba(255, 255, 255, 0.012)),
    rgba(21, 27, 35, 0.72);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.16);
  animation: home-rise-in 420ms cubic-bezier(0.22, 1, 0.36, 1) both;
  transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1), border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.route-card:nth-child(1) {
  animation-delay: 120ms;
}

.route-card:nth-child(2) {
  animation-delay: 160ms;
}

.route-card:nth-child(3) {
  animation-delay: 200ms;
}

.route-card:nth-child(4) {
  animation-delay: 240ms;
}

.route-card:nth-child(5) {
  animation-delay: 280ms;
}

.route-card::before,
.submit-workbench::before {
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  left: -1px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--cyan) 48%, var(--green) 100%);
  box-shadow:
    0 0 14px rgba(91, 108, 255, 0.26),
    0 0 22px rgba(56, 189, 248, 0.16);
}

.route-card::after {
  content: "";
  position: absolute;
  top: -1px;
  bottom: -1px;
  left: -35%;
  width: 28%;
  background: linear-gradient(90deg, transparent, rgba(105, 214, 255, 0.13), transparent);
  opacity: 0;
  transform: translateX(0) skewX(-12deg);
  pointer-events: none;
}

.route-card span {
  display: inline-grid;
  width: 2.1rem;
  height: 2.1rem;
  margin-bottom: 0.85rem;
  place-items: center;
  border: 1px solid rgba(91, 108, 255, 0.34);
  color: var(--accent-hover);
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 900;
}

.route-card b {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 1.08rem;
}

.route-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.48;
}

.admin-route {
  border-color: rgba(245, 158, 11, 0.34);
  background: linear-gradient(135deg, var(--amber-soft), rgba(21, 27, 35, 0.72));
}

@media (hover: hover) and (pointer: fine) {
  .route-card:hover {
    transform: translateY(-4px);
    border-color: rgba(105, 214, 255, 0.38);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24), 0 0 24px rgba(56, 189, 248, 0.08);
  }

  .route-card:hover::after {
    opacity: 1;
    transform: translateX(520%) skewX(-12deg);
    transition: opacity 90ms ease, transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
  }
}

.hero {
  position: relative;
  align-items: stretch;
  min-height: min(720px, calc(100vh - 4.4rem));
  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(66, 217, 255, 0.1), transparent 38%),
    radial-gradient(circle at 66% 44%, rgba(66, 217, 255, 0.16), transparent 18rem);
  pointer-events: none;
}

.hero::after {
  content: "SKILL REGISTRY // OPEN CODE // CX REVIEW";
  position: absolute;
  right: 1.4rem;
  bottom: 1.1rem;
  color: rgba(105, 214, 255, 0.22);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 900;
}

.hero-copy {
  position: relative;
  flex: 1 1 56%;
  padding: clamp(3.2rem, 7vw, 6.4rem) clamp(1.5rem, 6vw, 5rem);
}

.hero-copy::before {
  content: "";
  display: none;
  margin-bottom: 1.25rem;
  padding: 0.34rem 0.58rem;
  border: 1px solid var(--line-strong);
  background: rgba(66, 217, 255, 0.08);
  color: var(--green);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 900;
}

.eyebrow {
  margin: 0 0 0.78rem;
  color: var(--cyan);
  font-family: var(--mono);
  font-size: var(--type-meta-title);
  font-weight: var(--weight-meta-title);
  line-height: var(--line-meta-title);
  letter-spacing: var(--tracking-meta);
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3,
.route-card b,
.card-title h2,
.repo-profile-panel h2,
.repo-document-header h2 {
  font-family: var(--font-display);
}

h1 {
  max-width: 920px;
  margin-bottom: var(--space-title);
  font-size: var(--type-hero);
  font-weight: var(--weight-title);
  line-height: var(--line-hero);
  letter-spacing: var(--tracking-title);
  text-shadow: 0 0 36px rgba(66, 217, 255, 0.18);
}

h2 {
  margin-bottom: var(--space-title-tight);
  font-size: var(--type-section-title);
  font-weight: var(--weight-title);
  line-height: var(--line-title);
  letter-spacing: var(--tracking-title);
}

h3 {
  margin-bottom: var(--space-title-tight);
  font-size: var(--type-panel-title);
  font-weight: var(--weight-card-title);
  line-height: var(--line-card-title);
  letter-spacing: var(--tracking-title);
}

.hero p,
.section-note,
.card-body p,
.repo-card p,
.security-band p,
.review-row p {
  color: var(--muted);
  line-height: 1.66;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 720px;
  font-size: 1.05rem;
}

.hero-actions {
  --hero-action-height: 2.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.78rem;
  margin-top: 1.8rem;
}

.hero-search {
  position: relative;
  display: flex;
  flex: 1 1 calc(18rem + 100px);
  height: var(--hero-action-height);
  max-width: calc(24rem + 100px);
}

.hero-search .ui-icon {
  position: absolute;
  top: 50%;
  left: 0.78rem;
  z-index: 1;
  color: rgba(198, 208, 221, 0.72);
  transform: translateY(-50%);
  transition: color 180ms ease, transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.hero-search input {
  height: var(--hero-action-height);
  min-height: 0;
  border-color: rgba(105, 119, 255, 0.34);
  background: rgba(8, 22, 34, 0.74);
  padding: 0 0.9rem 0 2.35rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.hero-search:focus-within .ui-icon {
  color: var(--cyan);
  transform: translate(2px, -50%);
}

.hero-search:focus-within input {
  border-color: rgba(105, 214, 255, 0.58);
  background: rgba(8, 22, 34, 0.88);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 0 3px rgba(56, 189, 248, 0.08);
}

.hero-actions .primary-link,
.hero-actions .secondary-link {
  height: var(--hero-action-height);
  min-height: 0;
  padding: 0 1.08rem;
  line-height: 1;
}

.hero-search input::placeholder {
  color: rgba(198, 208, 221, 0.66);
}

.terminal-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 0 0 min(540px, 43vw);
  align-self: stretch;
  margin: clamp(1rem, 3vw, 2.4rem) clamp(1rem, 4vw, 3rem) clamp(1rem, 3vw, 2.4rem) 0;
  padding: clamp(1.4rem, 4vw, 2.7rem);
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(27, 34, 48, 0.78), rgba(21, 27, 35, 0.58)),
    rgba(17, 22, 29, 0.66);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px);
}

.terminal-panel::before,
.skill-card::before,
.repo-card::before,
.admin-card::before {
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  left: -1px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--cyan) 48%, var(--green) 100%);
  box-shadow:
    0 0 14px rgba(91, 108, 255, 0.24),
    0 0 22px rgba(56, 189, 248, 0.16);
  opacity: 0.9;
}

.terminal-panel > span {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 900;
}

.terminal-chrome {
  display: grid;
  grid-template-columns: repeat(3, 10px) 1fr;
  gap: 0.42rem;
  margin-bottom: 1.45rem;
}

.terminal-chrome::after {
  content: "";
  border-bottom: 1px dashed rgba(105, 214, 255, 0.28);
  transform: translateY(-5px);
}

.terminal-chrome i {
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 50%;
  background: var(--red);
}

.terminal-chrome i:nth-child(2) {
  background: var(--amber);
}

.terminal-chrome i:nth-child(3) {
  background: var(--green);
}

pre {
  overflow-x: auto;
  margin: 0.75rem 0 1.2rem;
  padding: 1rem;
  border: 1px solid rgba(105, 214, 255, 0.2);
  background: rgba(1, 8, 13, 0.86);
  color: #d9fbff;
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.52;
  box-shadow: inset 0 0 36px rgba(66, 217, 255, 0.04);
}

.typewriter-code {
  display: grid;
  gap: 0.1rem;
  min-height: 6.25rem;
}

.registry-log {
  position: relative;
  flex: 1 1 0;
  overflow: hidden;
  margin-top: 0.75rem;
  padding: 1rem;
  min-height: 0;
  border: 1px solid rgba(105, 214, 255, 0.2);
  background: rgba(1, 8, 13, 0.86);
  color: #d9fbff;
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.5;
  box-shadow: inset 0 0 36px rgba(66, 217, 255, 0.04);
  mask-image: linear-gradient(to bottom, transparent, #000 9%, #000 91%, transparent);
}

.registry-log::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 0%, rgba(105, 214, 255, 0.09) 48%, transparent 100%),
    repeating-linear-gradient(180deg, rgba(105, 214, 255, 0.035) 0 1px, transparent 1px 5px);
  opacity: 0.34;
  transform: translateY(-72%);
  animation: terminal-scan 7.5s linear infinite;
  pointer-events: none;
}

.terminal-panel:not(.compact-terminal) .registry-log {
  min-height: clamp(18rem, 36vw, 28rem);
}

.registry-marquee {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  animation: registry-roll 26s linear infinite;
}

.registry-log:hover .registry-marquee,
.registry-log:focus-within .registry-marquee {
  animation-play-state: paused;
}

.registry-track {
  display: grid;
  gap: 1rem;
}

.registry-day {
  display: grid;
  gap: 0.34rem;
}

.registry-announcement {
  display: grid;
  gap: 0.36rem;
  padding: 0.58rem 0.68rem;
  border: 0;
  background: rgba(74, 222, 128, 0.07);
}

.registry-announcement time {
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0;
}

.registry-announcement p {
  margin: 0;
  color: #d9e7ea;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 400;
  line-height: 1.45;
}

.registry-announcement b {
  display: block;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 820;
  line-height: 1.25;
}

.registry-day time {
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
}

.registry-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  gap: 1rem;
  align-items: baseline;
  min-height: 1.8rem;
  padding: 0.2rem 0.38rem;
  border: 1px solid transparent;
  color: inherit;
  text-decoration: none;
}

.registry-entry:hover,
.registry-entry:focus-visible {
  border-color: rgba(105, 214, 255, 0.26);
  background: rgba(66, 217, 255, 0.07);
  outline: none;
}

.registry-entry b {
  overflow: hidden;
  color: #effcff;
  font-size: 0.86rem;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.registry-entry span {
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 650;
  white-space: nowrap;
}

.terminal-line {
  position: relative;
  display: block;
  width: 0;
  max-width: max-content;
  overflow: hidden;
  border-right: 2px solid transparent;
  white-space: pre;
  animation:
    terminal-type 0.82s steps(var(--chars)) var(--delay) forwards,
    terminal-caret 0.82s step-end var(--delay) forwards;
}

.terminal-cursor::after {
  content: "";
  display: inline-block;
  width: 0.55em;
  height: 1.05em;
  margin-left: 0.18em;
  background: var(--green);
  box-shadow: 0 0 14px rgba(88, 245, 168, 0.66);
  vertical-align: -0.16em;
  opacity: 0;
  animation: terminal-cursor-blink 0.82s steps(1) 5.08s infinite;
}

.signal-list {
  align-items: stretch;
  justify-content: space-between;
  gap: 0.7rem;
  margin-top: 1.2rem;
}

.signal-list p {
  flex: 1;
  margin: 0;
  padding: 0.84rem;
  border: 1px solid rgba(105, 214, 255, 0.18);
  background: rgba(66, 217, 255, 0.045);
}

@keyframes terminal-type {
  to {
    width: calc(var(--chars) * 1ch);
  }
}

@keyframes terminal-caret {
  0%,
  99% {
    border-right-color: var(--green);
  }

  100% {
    border-right-color: transparent;
  }
}

@keyframes terminal-cursor-blink {
  0%,
  48% {
    opacity: 1;
  }

  49%,
  100% {
    opacity: 0;
  }
}

@keyframes registry-roll {
  to {
    transform: translateY(calc(-50% - 0.5rem));
  }
}

@keyframes home-rise-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes terminal-scan {
  0%,
  18% {
    transform: translateY(-72%);
  }

  72%,
  100% {
    transform: translateY(72%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-hero > div:first-child,
  .terminal-panel.compact-terminal,
  .route-card {
    animation: none;
  }

  .route-card,
  .hero-search .ui-icon,
  .hero-search input {
    transition: none;
  }

  .registry-log {
    mask-image: none;
  }

  .registry-log::before {
    display: none;
  }

  .registry-marquee {
    animation: none;
  }

  .registry-track[aria-hidden="true"] {
    display: none;
  }

  .terminal-line {
    width: calc(var(--chars) * 1ch);
    animation: none;
  }

  .terminal-cursor::after {
    opacity: 1;
    animation: none;
  }
}

.section {
  padding: 3.2rem clamp(1rem, 5vw, 4rem);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(260px, 0.55fr);
  gap: 2rem;
  align-items: end;
  margin-bottom: 1.2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.page-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.38rem;
  margin-bottom: 0.48rem;
  color: #778494;
  font-size: 0.72rem;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-breadcrumb a {
  color: #a9b5c4;
  text-decoration: none;
}

.page-breadcrumb a:hover {
  color: #f3f7fb;
}

.page-breadcrumb span:last-child {
  color: #d8e0ea;
}

.section-heading h1 {
  margin-bottom: 0;
  color: #e7eef7;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 2.55vw, 2.55rem);
  font-weight: 560;
  line-height: 1.12;
  letter-spacing: 0;
  text-shadow: none;
}

.section-note {
  max-width: 620px;
  justify-self: end;
  margin-bottom: 0;
  color: #96a3b3;
  font-size: 0.92rem;
  font-weight: 450;
  line-height: 1.56;
  text-align: right;
}

.toolbar {
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.1rem;
}

.toolbar label:first-child {
  flex: 1 1 min(100%, 34rem);
}

.toolbar label:last-child {
  flex: 0 1 16.5rem;
}

label {
  display: grid;
  gap: 0.34rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  min-height: 2.58rem;
  border: 1px solid var(--line-strong);
  border-radius: 0.38rem;
  background: rgba(8, 22, 34, 0.72);
  color: var(--text);
  padding: 0.66rem 0.76rem;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(66, 217, 255, 0.18);
}

textarea {
  resize: vertical;
}

.skill-grid,
.repo-grid,
.admin-grid {
  display: grid;
  gap: 1rem;
}

.skill-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

.skills-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.28fr);
  align-items: start;
  gap: clamp(1rem, 2vw, 1.35rem);
}

.skills-main {
  min-width: 0;
}

.skills-insights {
  position: sticky;
  top: 5.3rem;
  display: grid;
  gap: 0.75rem;
  min-width: 0;
}

.insight-panel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.022), rgba(255, 255, 255, 0.01)),
    rgba(11, 17, 25, 0.72);
}

.insight-totals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.insight-totals div {
  min-width: 0;
  padding: 0.72rem 0.65rem;
  border-right: 1px solid rgba(148, 163, 184, 0.12);
}

.insight-totals div:last-child {
  border-right: 0;
}

.insight-totals b {
  display: block;
  color: #e7eef7;
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 720;
  line-height: 1;
}

.insight-totals span {
  display: block;
  margin-top: 0.34rem;
  color: #8996a6;
  font-size: 0.68rem;
  font-weight: 520;
}

.insight-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  padding: 0.74rem 0.78rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.13);
}

.insight-title span,
.insight-title b,
.category-rank p {
  color: #8996a6;
  font-family: var(--font-label);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

.insight-title b {
  color: #c7d2df;
  text-transform: none;
}

.category-rank-list,
.insight-list {
  display: grid;
  gap: 0;
}

.category-rank {
  display: grid;
  gap: 0.1rem;
  padding: 0.65rem 0.72rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.category-rank:last-child {
  border-bottom: 0;
}

.category-rank p {
  margin: 0 0 0.24rem;
  color: #7f8d9d;
}

.insight-skill {
  display: grid;
  grid-template-columns: 1.35rem minmax(0, 1fr) auto;
  gap: 0.48rem;
  align-items: center;
  min-height: 2rem;
  padding: 0.26rem 0;
  color: #cad6e2;
  text-decoration: none;
}

.insight-list .insight-skill {
  padding: 0.48rem 0.72rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.insight-list .insight-skill:last-child {
  border-bottom: 0;
}

.insight-skill:hover {
  color: #f1f7ff;
  background: rgba(91, 108, 255, 0.07);
}

.insight-skill > span {
  display: inline-grid;
  width: 1.25rem;
  height: 1.25rem;
  place-items: center;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(2, 7, 13, 0.32);
  color: #8391a1;
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 700;
}

.insight-skill b {
  min-width: 0;
  overflow: hidden;
  font-size: 0.82rem;
  font-weight: 560;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.insight-skill em {
  display: inline-flex;
  align-items: center;
  gap: 0.24rem;
  color: #f6c86a;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 650;
}

.insight-skill em .ui-icon {
  width: 0.76rem;
  height: 0.76rem;
  fill: rgba(246, 200, 106, 0.22);
}

.insight-empty {
  margin: 0;
  padding: 0.76rem;
  color: #8996a6;
  font-size: 0.82rem;
}

.repo-grid,
.admin-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.repo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.submit-console {
  display: grid;
  grid-template-columns: minmax(0, 1.46fr) minmax(320px, 0.78fr);
  align-items: start;
  gap: clamp(1rem, 2.4vw, 1.5rem);
}

.submit-workbench {
  position: relative;
  display: grid;
  gap: 1rem;
  min-width: 0;
  overflow: hidden;
  padding: clamp(1rem, 3vw, 1.6rem);
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(91, 108, 255, 0.08), transparent 28rem),
    rgba(8, 22, 34, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.submit-form-header,
.submit-command-row,
.assist-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.submit-form-header h2 {
  margin: 0.18rem 0 0;
  font-size: var(--type-form-title);
  line-height: var(--line-title);
}

.submit-source-actions {
  display: flex;
  justify-content: flex-end;
}

.submit-source-actions .secondary-link {
  min-height: 2.2rem;
}

.submit-state-pill {
  display: inline-flex;
  min-width: 5.6rem;
  justify-content: center;
  padding: 0.42rem 0.68rem;
  border: 1px solid rgba(245, 158, 11, 0.34);
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.1);
  color: var(--amber);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 900;
}

.submit-state-pill[data-state="ready"] {
  border-color: rgba(34, 197, 94, 0.44);
  background: rgba(34, 197, 94, 0.12);
  color: var(--green);
}

.submit-state-pill[data-state="attention"] {
  border-color: rgba(239, 68, 68, 0.42);
  background: rgba(239, 68, 68, 0.11);
  color: #ff9faf;
}

.submit-fieldset {
  display: grid;
  gap: 0.82rem;
  min-width: 0;
  margin: 0;
  padding: 0.95rem;
  border: 1px solid rgba(105, 214, 255, 0.18);
  background: rgba(2, 7, 13, 0.24);
}

.submit-fieldset legend {
  padding: 0 0.45rem;
  color: var(--green);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.submit-assist-panel {
  position: sticky;
  top: 4.3rem;
  display: grid;
  min-width: 0;
  gap: 0.9rem;
}

.assist-card {
  position: relative;
  overflow: hidden;
  padding: 1rem;
  border: 1px solid rgba(105, 214, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.034), rgba(255, 255, 255, 0.01)),
    rgba(5, 14, 23, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 16px 42px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(16px);
}

.assist-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-top: 1px solid rgba(66, 217, 255, 0.34);
  opacity: 0.74;
}

.assist-card-header {
  position: relative;
}

.assist-card-header span,
.repo-preview-list dt {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.assist-card-header b {
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 900;
}

.readiness-meter {
  height: 0.46rem;
  margin: 0.85rem 0 0.92rem;
  overflow: hidden;
  border: 1px solid rgba(105, 214, 255, 0.14);
  border-radius: 999px;
  background: rgba(2, 7, 13, 0.54);
}

.readiness-meter span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--green));
  box-shadow: 0 0 18px rgba(34, 197, 94, 0.38);
  transition: width 180ms ease;
}

.submit-checklist {
  display: grid;
  gap: 0.45rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.submit-checklist li {
  display: grid;
  grid-template-columns: 1.2rem minmax(0, 1fr);
  align-items: start;
  gap: 0.48rem;
  color: var(--text-secondary);
  font-size: 0.82rem;
  line-height: 1.35;
}

.submit-checklist li::before {
  content: "";
  width: 0.62rem;
  height: 0.62rem;
  margin-top: 0.24rem;
  border: 1px solid rgba(141, 152, 167, 0.58);
  border-radius: 50%;
  background: rgba(141, 152, 167, 0.1);
}

.submit-checklist li[data-ok="true"] {
  color: var(--text);
}

.submit-checklist li[data-ok="true"]::before {
  border-color: rgba(34, 197, 94, 0.82);
  background: radial-gradient(circle, var(--green) 0 38%, rgba(34, 197, 94, 0.18) 42% 100%);
  box-shadow: 0 0 14px rgba(34, 197, 94, 0.34);
}

.repo-preview-list {
  display: grid;
  gap: 0.55rem;
  margin: 0.82rem 0 0;
}

.repo-preview-list div {
  min-width: 0;
  padding: 0.72rem;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(2, 7, 13, 0.34);
}

.repo-preview-list dd {
  overflow: hidden;
  margin: 0.24rem 0 0;
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-file-tree {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.82rem;
  padding: 0.82rem;
  border: 1px solid rgba(105, 214, 255, 0.14);
  background: rgba(2, 7, 13, 0.42);
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 800;
}

.preview-file-tree span {
  position: relative;
  overflow: hidden;
  color: var(--text-secondary);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-file-tree span[data-state="dir"],
.preview-file-tree span[data-state="file"] {
  padding-left: 1.3rem;
}

.preview-file-tree span[data-state="file"] {
  color: var(--muted);
}

.preview-file-tree span[data-state="dir"]::before,
.preview-file-tree span[data-state="file"]::before {
  content: "";
  position: absolute;
  left: 0.32rem;
  top: -0.1rem;
  width: 0.6rem;
  height: 0.9rem;
  border-left: 1px solid rgba(141, 152, 167, 0.36);
  border-bottom: 1px solid rgba(141, 152, 167, 0.36);
}

.review-pipeline {
  display: grid;
  gap: 0.6rem;
  padding: 0;
  margin: 0.9rem 0 0;
  list-style: none;
}

.review-pipeline li {
  position: relative;
  display: grid;
  gap: 0.12rem;
  padding-left: 1.35rem;
}

.review-pipeline li::before {
  content: "";
  position: absolute;
  top: 0.22rem;
  left: 0;
  width: 0.62rem;
  height: 0.62rem;
  border: 1px solid rgba(105, 214, 255, 0.28);
  border-radius: 50%;
  background: rgba(105, 214, 255, 0.1);
}

.review-pipeline li::after {
  content: "";
  position: absolute;
  top: 0.98rem;
  bottom: -0.58rem;
  left: 0.3rem;
  width: 1px;
  background: rgba(105, 214, 255, 0.16);
}

.review-pipeline li:last-child::after {
  display: none;
}

.review-pipeline li[data-step="active"]::before {
  border-color: var(--cyan);
  background: var(--cyan-soft);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.32);
}

.review-pipeline b {
  font-size: 0.86rem;
}

.review-pipeline span {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.35;
}

.auth-page {
  display: grid;
  place-items: center;
}

.auth-workbench {
  width: min(560px, 100%);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.skill-card,
.repo-card,
.admin-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(25, 34, 48, 0.16), rgba(2, 7, 13, 0.1)),
    var(--panel);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(16px);
}

.repo-card::before {
  display: none;
}

.skill-card::before {
  height: 1px;
  background: linear-gradient(90deg, rgba(91, 108, 255, 0.28) 0%, rgba(56, 189, 248, 0.22) 48%, rgba(34, 197, 94, 0.2) 100%);
  box-shadow: none;
  opacity: 0.58;
}

.skill-card {
  display: flex;
  min-width: 0;
  min-height: 100%;
  flex-direction: column;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.skill-card:hover {
  transform: translateY(-2px);
  border-color: rgba(91, 108, 255, 0.22);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18), 0 0 12px rgba(56, 189, 248, 0.035);
}

.card-cover {
  display: grid;
  min-width: 0;
  min-height: 168px;
  align-content: start;
  gap: 0.8rem;
  padding: 1rem;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(91, 108, 255, 0.038), transparent 56%),
    radial-gradient(circle at 82% 18%, rgba(56, 189, 248, 0.025), transparent 7rem),
    linear-gradient(180deg, rgba(7, 16, 27, 0.18), rgba(0, 0, 0, 0.08));
}

.cover-row,
.metrics {
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 900;
}

.cover-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}

.cover-row span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.cover-row span:last-child {
  justify-self: end;
  text-align: right;
}

.skill-star-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: #f6c86a;
}

.skill-star-pill .ui-icon {
  width: 0.78rem;
  height: 0.78rem;
  fill: rgba(246, 200, 106, 0.24);
  stroke-width: 2;
}

.card-cover h3 {
  min-height: 3.8rem;
  margin: 0;
  font-size: var(--type-card-title);
  font-weight: var(--weight-card-title);
  line-height: var(--line-card-title);
  word-break: break-word;
}

.compat-row,
.tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}

.compat-badge,
.tag {
  max-width: 100%;
  padding: 0.24rem 0.5rem;
  border: 1px solid rgba(91, 108, 255, 0.24);
  border-radius: 999px;
  background: var(--accent-soft);
  color: #d7dcff;
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.compat-badge {
  border-color: rgba(34, 197, 94, 0.32);
  background: var(--green-soft);
  color: var(--green);
}

.tag-badge {
  position: relative;
  min-height: 1.48rem;
  padding: 0.33rem 0.58rem 0.32rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  overflow-wrap: normal;
  border-color: color-mix(in srgb, var(--badge-color, #22c55e) 34%, transparent);
  background:
    linear-gradient(180deg, rgba(14, 24, 38, 0.24), rgba(2, 7, 13, 0.18)),
    color-mix(in srgb, var(--badge-color, #22c55e) 8%, rgba(3, 9, 17, 0.9));
  color: var(--badge-color, #22c55e);
  box-shadow:
    inset 0 0 0 1px rgba(56, 189, 248, 0.018),
    0 0 0 1px rgba(2, 6, 23, 0.28),
    0 8px 18px rgba(0, 0, 0, 0.2);
  text-transform: none;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.tag-badge::before {
  content: "";
  width: 0.28rem;
  height: 0.28rem;
  margin-right: 0.32rem;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.68;
  box-shadow: none;
}

.tag-badge:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--badge-color, #22c55e) 48%, transparent);
  background:
    linear-gradient(180deg, rgba(18, 29, 44, 0.28), rgba(2, 7, 13, 0.2)),
    color-mix(in srgb, var(--badge-color, #22c55e) 8%, rgba(3, 9, 17, 0.9));
}

.compat-badge.badge-cli {
  --badge-color: #42e6a4;
}

.compat-badge.badge-network {
  --badge-color: #62d4ff;
}

.compat-badge.badge-review {
  --badge-color: #45f0d7;
}

.compat-badge.badge-ai {
  --badge-color: #ffb4d8;
}

.compat-badge.badge-document {
  --badge-color: #f6c35b;
}

.compat-badge.badge-package {
  --badge-color: #b99cff;
}

.compat-badge.badge-github {
  --badge-color: #e5edf7;
}

.compat-badge.badge-cisco {
  --badge-color: #42d7ff;
}

.compat-badge.badge-python {
  --badge-color: #ffd666;
}

.compat-badge.badge-docker {
  --badge-color: #5db7ff;
}

.compat-badge.badge-security {
  --badge-color: #7ff0b2;
}

.compat-badge.badge-automation {
  --badge-color: #a8b4ff;
}

.compat-badge.badge-code {
  --badge-color: #d7e2f1;
}

.card-body,
.repo-card,
.admin-card {
  padding: 1rem;
}

.card-body {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
}

.card-body p {
  width: 100%;
}

.source-line {
  display: inline-block;
  max-width: 100%;
  margin-top: 0.8rem;
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  margin-top: auto;
  padding: 0;
  border-top: 1px solid var(--line);
}

.metrics > div {
  display: flex;
  min-height: 4.2rem;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 0.86rem;
  border-right: 1px solid var(--line);
  text-align: center;
}

.metrics > div:last-child {
  border-right: 0;
}

.metrics dt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.26rem;
  color: var(--muted);
  font-size: 0.66rem;
  text-align: center;
}

.metrics dt .ui-icon {
  width: 0.78rem;
  height: 0.78rem;
  color: rgba(141, 152, 167, 0.86);
  stroke-width: 2;
}

.metrics dd {
  margin: 0.16rem 0 0;
  color: var(--text);
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 900;
  text-align: center;
}

.card-title {
  gap: 0.65rem;
  margin-bottom: var(--space-title);
}

.card-title h2 {
  margin: 0;
  font-size: var(--type-card-title);
  font-weight: var(--weight-card-title);
  line-height: var(--line-card-title);
  letter-spacing: var(--tracking-title);
}

.card-title span {
  display: grid;
  width: 2.1rem;
  height: 2.1rem;
  place-items: center;
  border: 1px solid var(--line-strong);
  background: rgba(66, 217, 255, 0.1);
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 900;
}

.repo-card ul,
.repo-block ul {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.repo-layout {
  display: grid;
  grid-template-columns: clamp(240px, 15.5vw, 300px) minmax(0, 1fr) clamp(300px, 18vw, 360px);
  min-height: 680px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(8, 18, 28, 0.8);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.24);
}

.repo-profile-layout {
  display: grid;
  grid-template-columns: clamp(300px, 18vw, 360px) minmax(0, 1fr) 72px;
  gap: clamp(1rem, 1.6vw, 1.4rem);
  align-items: start;
  min-width: 0;
  min-height: 760px;
}

.repo-profile-panel {
  position: sticky;
  top: 5.25rem;
  min-width: 0;
  padding: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(7, 17, 27, 0.86);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.18);
}

.repo-profile-avatar-wrap {
  position: relative;
  width: min(100%, 260px);
  margin: 0 auto 0.85rem;
}

.repo-profile-avatar {
  position: relative;
  overflow: hidden;
  display: grid;
  width: 100%;
  aspect-ratio: 1;
  margin: 0;
  place-items: center;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(66, 217, 255, 0.92), transparent 28%),
    radial-gradient(circle at 70% 72%, rgba(88, 245, 168, 0.72), transparent 30%),
    linear-gradient(145deg, rgba(12, 34, 54, 0.95), rgba(2, 7, 13, 0.98));
  box-shadow: inset 0 0 42px rgba(66, 217, 255, 0.13);
}

.repo-profile-avatar-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.repo-profile-avatar span {
  position: relative;
  z-index: 1;
  color: #eff8ff;
  font-family: var(--mono);
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  font-weight: 950;
  letter-spacing: 0;
}

.repo-profile-avatar span[hidden],
.repo-profile-avatar-image[hidden] {
  display: none;
}

.repo-profile-panel h2 {
  margin: 0;
  font-size: var(--type-form-title);
  font-weight: var(--weight-title);
  line-height: var(--line-title);
  text-align: center;
}

.repo-profile-handle {
  margin: 0.2rem 0 0.85rem;
  color: var(--muted);
  font-size: 1rem;
  text-align: center;
}

.repo-profile-bio {
  margin: 0 0 1rem;
  color: #c3d5e1;
  line-height: 1.6;
}

.repo-profile-action {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.42rem;
  min-height: 2.2rem;
  width: 100%;
  margin-bottom: 0.85rem;
  padding: 0 0.68rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(2, 8, 14, 0.38);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 600;
}

.repo-profile-action .ui-icon {
  color: var(--green);
}

.repo-profile-action:hover {
  border-color: rgba(88, 245, 168, 0.34);
  background: rgba(88, 245, 168, 0.08);
}

.repo-profile-editor {
  display: grid;
  gap: 0.6rem;
  margin: 0 0 1rem;
  padding: 0 0 1rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.repo-profile-editor label {
  display: grid;
  gap: 0.28rem;
}

.repo-profile-editor label span {
  color: var(--muted);
  font-family: var(--font-label);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
}

.repo-profile-editor input {
  min-width: 0;
  height: 2.4rem;
  border: 1px solid rgba(148, 163, 184, 0.26);
  background: rgba(2, 8, 14, 0.72);
  color: var(--text);
  padding: 0 0.7rem;
  font: 500 0.92rem var(--font-sans);
}

.repo-avatar-upload {
  min-width: 0;
}

.repo-avatar-upload-button,
.repo-profile-save-button {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.42rem;
  width: 100%;
  min-height: 2.2rem;
  padding: 0 0.68rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(2, 8, 14, 0.38);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 600;
}

.repo-avatar-upload-button:hover,
.repo-profile-save-button:hover {
  border-color: rgba(66, 217, 255, 0.34);
  background: rgba(66, 217, 255, 0.08);
}

.repo-avatar-upload-button .ui-icon {
  color: var(--green);
}

.repo-profile-save-button .ui-icon {
  color: var(--cyan);
}

.repo-profile-editor > p {
  margin: 0;
  color: #ffb6a0;
  font-size: 0.84rem;
  line-height: 1.45;
}

.repo-profile-follow {
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.repo-profile-follow b {
  color: var(--text);
}

.repo-profile-facts {
  display: grid;
  gap: 0.45rem;
  margin: 0 0 1rem;
  padding: 0 0 1rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.repo-profile-facts div {
  display: grid;
  grid-template-columns: 5.8rem minmax(0, 1fr);
  gap: 0.6rem;
  min-width: 0;
}

.repo-profile-facts dt,
.repo-profile-section > b,
.repo-pinned-meta,
.repo-activity-row em,
.repo-contrib-summary span {
  color: var(--muted);
  font-family: var(--font-label);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
}

.repo-profile-facts dd {
  min-width: 0;
  margin: 0;
  color: #d8e7ef;
  overflow-wrap: anywhere;
}

.repo-profile-section {
  display: grid;
  gap: 0.55rem;
}

.repo-project-list.compact {
  gap: 0.12rem;
  padding: 0.15rem 0;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.repo-project-list.compact .repo-project-item {
  position: relative;
  grid-template-columns: 0.92rem minmax(0, 1fr);
  gap: 0.48rem;
  min-height: 3.65rem;
  padding: 0.46rem 0.5rem 0.46rem 0.62rem;
  border: 0;
  border-radius: 0.28rem;
  background: transparent;
  color: #c8d6df;
}

.repo-project-list.compact .repo-project-item::before {
  content: "";
  position: absolute;
  inset: 0.48rem auto 0.48rem 0;
  width: 2px;
  border-radius: 999px;
  background: transparent;
}

.repo-project-list.compact .repo-project-item:hover {
  background: rgba(148, 163, 184, 0.055);
  color: #edf7ff;
}

.repo-project-list.compact .repo-project-item.is-active {
  background: rgba(66, 217, 255, 0.075);
  color: #f4fbff;
}

.repo-project-list.compact .repo-project-item.is-active::before {
  background: #42d9ff;
}

.repo-project-list.compact .repo-project-item .tree-glyph {
  width: 0.88rem;
  height: 0.72rem;
  opacity: 0.72;
  transform: translateY(-0.03rem);
}

.repo-project-list.compact .repo-project-item.is-active .tree-glyph,
.repo-project-list.compact .repo-project-item:hover .tree-glyph {
  opacity: 0.95;
}

.repo-project-list.compact .repo-project-item b {
  color: inherit;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.15;
}

.repo-project-list.compact .repo-project-item small {
  margin-top: 0.12rem;
  color: #8fa3b2;
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0;
}

.repo-overview-main {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.repo-overview-tabs {
  position: sticky;
  top: 4.5rem;
  z-index: 5;
  display: flex;
  gap: 0.25rem;
  align-items: end;
  min-width: 0;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(5, 11, 18, 0.92);
  backdrop-filter: blur(14px);
}

.repo-overview-tabs a {
  display: inline-flex;
  gap: 0.38rem;
  align-items: center;
  min-height: 2.9rem;
  padding: 0 0.78rem;
  border-bottom: 2px solid transparent;
  color: #cbd8e4;
  font-weight: 700;
}

.repo-overview-tabs .is-active {
  border-bottom-color: #ff7b54;
  color: var(--text);
}

.repo-overview-tabs b {
  display: inline-grid;
  min-width: 1.55rem;
  min-height: 1.25rem;
  place-items: center;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.7rem;
}

.repo-pinned,
.repo-contrib-panel,
.repo-activity {
  margin-bottom: 1.1rem;
}

.repo-overview-title {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.6rem;
  color: #d8e7ef;
  font-family: var(--font-display);
  font-weight: 700;
}

.repo-overview-title b {
  color: var(--muted);
  font-family: var(--font-label);
  font-size: 0.72rem;
  font-style: italic;
  font-weight: 600;
}

.repo-collection-layout .repo-profile-panel {
  min-height: auto;
}

.repo-collection {
  min-width: 0;
}

.repo-package-list,
.repo-star-list {
  display: grid;
  gap: 0.7rem;
}

.repo-package-row,
.repo-star-row {
  display: grid;
  gap: 0.9rem;
  align-items: center;
  min-width: 0;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(7, 17, 27, 0.72);
}

.repo-package-row {
  grid-template-columns: minmax(0, 1fr) minmax(17rem, 0.55fr) auto;
  padding: 0.85rem;
}

.repo-star-row {
  grid-template-columns: 2.4rem minmax(0, 1fr) auto;
  padding: 0.8rem 0.85rem;
}

.repo-package-main,
.repo-star-main {
  min-width: 0;
}

.repo-package-main {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
}

.repo-package-main a,
.repo-star-main a {
  color: #eaf4ff;
  font-weight: 900;
}

.repo-package-main a:hover,
.repo-star-main a:hover {
  color: var(--cyan);
}

.repo-package-main p,
.repo-star-main p {
  margin: 0.3rem 0 0;
  color: #b7c8d3;
  font-size: 0.86rem;
  line-height: 1.48;
}

.repo-package-main code {
  display: block;
  max-width: 100%;
  margin-top: 0.55rem;
  padding: 0.48rem 0.55rem;
  overflow: hidden;
  border: 1px solid rgba(88, 245, 168, 0.16);
  background: rgba(2, 7, 13, 0.45);
  color: #9ff0c5;
  font-family: var(--mono);
  font-size: 0.68rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.repo-package-cube {
  position: relative;
  display: block;
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(66, 217, 255, 0.36);
  border-radius: 0.35rem;
  background:
    linear-gradient(135deg, rgba(66, 217, 255, 0.24), transparent 58%),
    rgba(66, 217, 255, 0.08);
}

.repo-package-cube::after {
  content: "";
  position: absolute;
  inset: 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.22rem;
}

.repo-package-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
  margin: 0;
}

.repo-package-stats div {
  min-width: 0;
  padding: 0.55rem;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(2, 7, 13, 0.28);
}

.repo-package-stats dt {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 900;
  text-transform: uppercase;
}

.repo-package-stats dd {
  min-width: 0;
  margin: 0.18rem 0 0;
  overflow: hidden;
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.repo-star-rank {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.1);
  color: #ffd166;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 900;
}

.repo-star-button {
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
  justify-content: center;
  min-width: auto;
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: #ffd166;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 900;
}

.repo-package-row .secondary-link {
  min-height: 2.35rem;
  padding: 0 0.78rem;
  white-space: nowrap;
}

.docs-word-shell {
  display: grid;
  grid-template-columns: 20rem minmax(0, 1fr);
  align-items: stretch;
  gap: 0;
  width: 100%;
  height: calc(100vh - 4.4rem);
  min-height: 0;
  max-width: none;
  margin: 0 auto;
  overflow: hidden;
  background: #e3e8ef;
}

.docs-index {
  position: relative;
  top: auto;
  display: flex;
  flex-direction: column;
  width: 20rem;
  height: 100%;
  max-height: none;
  overflow: hidden;
  border: 0;
  border-right: 1px solid #cbd5e1;
  border-radius: 0;
  background: #f4f6f8;
  box-shadow: none;
  color: #1f2937;
}

.docs-document-pane {
  min-width: 0;
  height: 100%;
  overflow-y: auto;
  padding: 1.25rem;
  background: #dfe5ec;
}

.docs-index-cover {
  flex: 0 0 auto;
  padding: 1rem 1rem 0.85rem;
  border-bottom: 1px solid #d6dee8;
  background: #ffffff;
}

.docs-index-label {
  display: block;
  margin-bottom: 0.46rem;
  color: #64748b;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
}

.docs-index-title {
  display: block;
  color: #111827;
  font-size: 1.08rem;
  font-weight: 900;
  line-height: 1.3;
  text-decoration: none;
}

.docs-index-title.active {
  color: #0f766e;
}

.docs-chapter-list {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 0;
  min-height: 0;
  padding: 0.35rem 0;
  overflow-y: auto;
  background: #f8fafc;
}

.docs-chapter-link {
  display: flex !important;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.66rem;
  width: 100%;
  min-height: 2.85rem;
  padding: 0.52rem 0.9rem;
  border: 0;
  border-left: 4px solid transparent;
  border-bottom: 1px solid #e2e8f0;
  background: #ffffff;
  color: #253244;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.25;
  text-decoration: none;
  white-space: normal;
}

.docs-chapter-link:hover,
.docs-chapter-link:focus-visible {
  border-left-color: #0f766e;
  background: #eaf5f2;
  color: #0f172a;
}

.docs-chapter-link span {
  display: inline-flex;
  flex: 0 0 2.15rem;
  align-items: center;
  justify-content: center;
  height: 1.55rem;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #64748b;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 900;
}

.docs-chapter-link b {
  display: block;
  min-width: 0;
  color: inherit;
  font-size: 0.88rem;
  font-weight: 850;
  line-height: 1.25;
}

.docs-index-meta {
  flex: 0 0 auto;
  padding: 0.75rem 0.95rem;
  border-top: 1px solid #d6dee8;
  background: #ffffff;
}

.docs-index dl {
  display: grid;
  gap: 0.42rem;
  margin: 0;
}

.docs-index dl div {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 0.7rem;
  align-items: baseline;
  padding-top: 0.42rem;
  border-top: 1px solid #e2e8f0;
}

.docs-index dl div:first-child {
  padding-top: 0;
  border-top: 0;
}

.docs-index dt,
.docs-index dd {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.68rem;
  line-height: 1.35;
}

.docs-index dt {
  color: #64748b;
}

.docs-index dd {
  color: #1f2937;
  text-align: right;
}

.docs-word-page {
  min-width: 0;
  width: 100%;
  min-height: calc(100vh - 7.4rem);
  margin: 0 0 2.4rem;
  padding: clamp(2.2rem, 4vw, 4.4rem);
  border: 1px solid #d6dce5;
  border-radius: 0;
  background: #ffffff;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
  color: #1f2937;
  scroll-margin-top: 6rem;
}

.docs-word-page header {
  padding: 0 0 1.45rem;
  border-bottom: 2px solid #111827;
  background: transparent;
}

.docs-word-page h2,
.docs-word-page h3 {
  margin: 0;
  color: #111827;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0;
}

.docs-word-page h2 {
  max-width: 58rem;
  font-size: clamp(2rem, 2.7vw, 2.65rem);
  font-weight: 700;
  line-height: 1.16;
}

.docs-word-page h3 {
  margin-bottom: 0.72rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid #d9e0ea;
  font-size: 1.28rem;
  font-weight: 700;
  line-height: 1.32;
}

.docs-word-page p {
  margin: 0;
  color: #374151;
  font-size: 0.95rem;
  line-height: 1.78;
}

.docs-word-page header p:last-child {
  max-width: 48rem;
  margin-top: 1rem;
}

.docs-word-page section {
  display: block;
  padding: 1.8rem 0 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  scroll-margin-top: 6rem;
}

.docs-word-page section + section {
  margin-top: 1rem;
}

.docs-feature-grid,
.docs-gap-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem 1.15rem;
}

.docs-feature-grid div,
.docs-gap-board div {
  min-width: 0;
  padding: 0.72rem 0;
  border-top: 1px solid #e2e8f0;
  background: transparent;
}

.docs-feature-grid b,
.docs-gap-board b {
  display: block;
  color: #111827;
  font-size: 0.92rem;
}

.docs-feature-grid p,
.docs-gap-board p {
  margin: 0.42rem 0 0;
  font-size: 0.82rem;
  line-height: 1.58;
}

.docs-gap-board span {
  display: inline-flex;
  margin-bottom: 0.5rem;
  padding: 0.16rem 0.4rem;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  color: #0f766e;
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 900;
}

.docs-signal-list,
.docs-next-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.docs-signal-list li,
.docs-next-list li {
  display: grid;
  grid-template-columns: 8.8rem minmax(0, 1fr);
  gap: 1rem;
  padding: 0.78rem 0;
  border-top: 1px solid #e2e8f0;
  background: transparent;
}

.docs-signal-list b,
.docs-next-list li::before {
  color: #0f766e;
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.docs-signal-list span,
.docs-next-list li {
  color: #475569;
  font-size: 0.86rem;
  line-height: 1.55;
}

.docs-next-list {
  counter-reset: docs-next;
}

.docs-next-list li {
  counter-increment: docs-next;
}

.docs-next-list li::before {
  content: "0" counter(docs-next);
}

.repo-package-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: flex-end;
  min-width: 9rem;
}

.repo-skill-maintenance {
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem;
  justify-content: flex-end;
}

.repo-skill-maintenance .secondary-link,
.repo-skill-maintenance .danger-link {
  min-height: 2.1rem;
  padding: 0 0.62rem;
  font-size: 0.74rem;
  white-space: nowrap;
}

.repo-pinned-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.repo-pinned-card,
.repo-contrib-panel,
.repo-activity-timeline {
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(7, 17, 27, 0.72);
}

.repo-pinned-card {
  display: grid;
  gap: 0.75rem;
  min-width: 0;
  padding: 0.9rem;
}

.repo-pinned-card button {
  display: grid;
  grid-template-columns: 1.1rem minmax(0, 1fr);
  gap: 0.55rem;
  align-items: center;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #45a3ff;
  text-align: left;
  cursor: pointer;
}

.repo-pinned-card button b,
.repo-pinned-card button small {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.repo-pinned-card button small {
  margin-left: 0.45rem;
  padding: 0.08rem 0.38rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.68rem;
}

.repo-card-icon {
  width: 0.78rem;
  height: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.65);
  border-radius: 0.1rem;
}

.repo-pinned-card p {
  margin: 0;
  color: #b7c8d3;
  font-size: 0.9rem;
  line-height: 1.45;
}

.repo-pinned-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.repo-contrib-panel {
  padding: 0.78rem 0.85rem;
}

.repo-heatmap {
  display: grid;
  grid-template-columns: repeat(26, 0.68rem);
  grid-auto-rows: 0.68rem;
  gap: 0.16rem;
  width: max-content;
  max-width: 100%;
  padding: 0.12rem 0 0.68rem;
  overflow-x: auto;
}

.heat-cell {
  width: 0.68rem;
  height: 0.68rem;
  border-radius: 0.12rem;
  background: rgba(148, 163, 184, 0.14);
}

.heat-cell.level-1 {
  background: rgba(22, 73, 42, 0.78);
}

.heat-cell.level-2 {
  background: rgba(30, 110, 55, 0.86);
}

.heat-cell.level-3 {
  background: rgba(45, 165, 82, 0.9);
}

.heat-cell.level-4 {
  background: rgba(88, 245, 168, 0.92);
}

.repo-contrib-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(100%, 38rem);
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.repo-contrib-summary div {
  padding: 0.68rem 0.55rem 0;
}

.repo-contrib-summary b,
.repo-activity-row b {
  display: block;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
}

.repo-activity h3 {
  margin: 1.8rem 0 0.7rem;
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 700;
  line-height: var(--line-card-title);
}

.repo-activity-timeline {
  display: grid;
  padding: 0.2rem 0;
}

.repo-activity-empty {
  margin: 0;
  padding: 0.7rem 0;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  color: var(--muted);
  font-size: 0.86rem;
}

.repo-activity-row {
  display: grid;
  grid-template-columns: 1.1rem minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  min-width: 0;
  padding: 0.9rem;
  border: 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.repo-activity-row:hover {
  background: rgba(66, 217, 255, 0.06);
}

.repo-activity-row small {
  display: block;
  margin-top: 0.18rem;
  color: var(--muted);
  font-family: var(--font-sans);
  font-weight: 600;
}

.repo-activity-row em {
  font-style: italic;
}

.repo-activity-dot {
  width: 0.74rem;
  height: 0.74rem;
  border: 1px solid rgba(88, 245, 168, 0.8);
  border-radius: 50%;
  background: rgba(88, 245, 168, 0.24);
}

.repo-year-rail {
  position: sticky;
  top: 5.25rem;
  display: grid;
  gap: 0.5rem;
}

.repo-year-rail span {
  display: grid;
  min-height: 2.45rem;
  place-items: center;
  border-radius: 0.34rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 900;
}

.repo-year-rail .is-active {
  background: #2775f7;
  color: #fff;
}

.repo-sidebar,
.repo-meta {
  position: sticky;
  top: 5.25rem;
  align-self: start;
  height: calc(100vh - 6.5rem);
  overflow-y: auto;
  background: #07111b;
}

.repo-sidebar {
  border-right: 1px solid rgba(148, 163, 184, 0.22);
}

.repo-meta {
  border-left: 1px solid rgba(148, 163, 184, 0.22);
}

.repo-sidebar-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 2.7rem;
  padding: 0.72rem 0.85rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  background: #07111b;
}

.repo-sidebar-header,
.repo-kicker,
.repo-panel-title {
  color: var(--muted);
  font-family: var(--font-label);
  font-size: 0.78rem;
  font-weight: 600;
}

.repo-sidebar-header span {
  text-transform: uppercase;
}

.repo-sidebar-header.compact {
  position: static;
  min-height: 2.3rem;
  margin-top: 0.55rem;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(2, 7, 13, 0.28);
}

.repo-file-manager {
  padding: 0.35rem 0.3rem 0.85rem;
}

.repo-project-list {
  display: grid;
  gap: 0.08rem;
  padding: 0.35rem;
}

.repo-project-item {
  position: relative;
  display: grid;
  grid-template-columns: 0.9rem minmax(0, 1fr);
  gap: 0.46rem;
  align-items: center;
  min-width: 0;
  min-height: 3rem;
  padding: 0.36rem 0.48rem 0.36rem 0.62rem;
  border: 0;
  border-radius: 0.24rem;
  color: #c8d6df;
}

.repo-project-item::before {
  content: "";
  position: absolute;
  inset: 0.42rem auto 0.42rem 0;
  width: 2px;
  border-radius: 999px;
  background: transparent;
}

.repo-project-item:hover,
.repo-project-item.is-active {
  background: rgba(66, 217, 255, 0.065);
  color: var(--text);
}

.repo-project-item.is-active::before {
  background: #42d9ff;
}

.repo-project-item b,
.repo-project-item small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.repo-project-item b {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.14;
}

.repo-project-item small {
  margin-top: 0.1rem;
  color: #8fa3b2;
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 700;
}

.repo-tree-folder,
.repo-tree-children {
  min-width: 0;
  max-width: 100%;
}

.repo-file-tree {
  min-width: 0;
  overflow: hidden;
}

.repo-tree-root {
  padding: 0.45rem 0.3rem 0.7rem;
  min-width: 0;
  overflow: hidden;
}

.repo-tree-folder summary,
.repo-tree-file {
  position: relative;
  display: grid;
  grid-template-columns: 1rem 1.15rem minmax(0, 1fr) auto;
  gap: 0.42rem;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
  min-height: 1.86rem;
  padding: 0.2rem 0.5rem 0.2rem calc(0.42rem + var(--indent, 0rem));
  border: 1px solid transparent;
  border-radius: 0.18rem;
  color: #cddce7;
  font-family: var(--mono);
  font-size: 0.76rem;
  line-height: 1.2;
  text-align: left;
}

.repo-tree-root > summary {
  --indent: 0rem;
}

.repo-tree-file {
  appearance: none;
  grid-template-columns: 1rem 1.15rem minmax(0, 1fr);
  background: transparent;
  color: #a8bac8;
  cursor: pointer;
}

.repo-tree-folder summary {
  cursor: pointer;
  list-style: none;
}

.repo-tree-folder summary::-webkit-details-marker {
  display: none;
}

.repo-tree-folder summary::before,
.repo-tree-file::before {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
}

.repo-tree-folder summary::before {
  border-right: 1.5px solid #7e93a4;
  border-bottom: 1.5px solid #7e93a4;
  transform: rotate(-45deg) translateX(-0.05rem);
}

.repo-tree-folder[open] > summary::before {
  transform: rotate(45deg) translateY(-0.1rem);
}

.repo-tree-folder summary:hover,
.repo-tree-file:hover {
  border-color: rgba(148, 163, 184, 0.18);
  background: rgba(148, 163, 184, 0.04);
}

.repo-tree-file.is-active {
  border-color: rgba(66, 217, 255, 0.22);
  background: rgba(66, 217, 255, 0.1);
  color: var(--text);
}

.repo-owner-folder > summary {
  color: var(--text);
  font-weight: 850;
}

.repo-owner-folder > summary:hover {
  background: rgba(66, 217, 255, 0.08);
}

.tree-name {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.repo-tree-folder summary small {
  color: #7e93a4;
  font-size: 0.68rem;
  font-weight: 900;
}

.tree-glyph {
  position: relative;
  display: block;
  width: 1rem;
  height: 0.85rem;
}

.folder-glyph::before {
  content: "";
  position: absolute;
  left: 0.08rem;
  top: 0.2rem;
  width: 0.82rem;
  height: 0.56rem;
  border: 1px solid rgba(255, 209, 102, 0.72);
  border-radius: 0.12rem;
  background: rgba(255, 209, 102, 0.14);
}

.folder-glyph::after {
  content: "";
  position: absolute;
  left: 0.12rem;
  top: 0.08rem;
  width: 0.42rem;
  height: 0.2rem;
  border: 1px solid rgba(255, 209, 102, 0.72);
  border-bottom: 0;
  border-radius: 0.1rem 0.1rem 0 0;
  background: rgba(255, 209, 102, 0.1);
}

.file-glyph::before {
  content: "";
  position: absolute;
  left: 0.18rem;
  top: 0.05rem;
  width: 0.58rem;
  height: 0.72rem;
  border: 1px solid rgba(148, 163, 184, 0.68);
  border-radius: 0.1rem;
  background: rgba(148, 163, 184, 0.08);
}

.markdown-glyph::before {
  border-color: rgba(66, 217, 255, 0.62);
  background: rgba(66, 217, 255, 0.09);
}

.json-glyph::before {
  border-color: rgba(88, 245, 168, 0.6);
  background: rgba(88, 245, 168, 0.08);
}

.repo-document {
  min-width: 0;
  min-height: 100%;
  padding: clamp(1rem, 2.4vw, 1.6rem);
  scroll-margin-top: 5.5rem;
}

.repo-document.is-file-focused {
  align-self: stretch;
}

.repo-document.is-file-focused .repo-file-detail {
  margin-top: 0.7rem;
}

.repo-document-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.42fr);
  gap: 1.2rem;
  align-items: start;
  padding-bottom: 1rem;
}

.repo-document-header h2 {
  margin: 0.22rem 0 0.45rem;
  font-size: var(--type-form-title);
  font-weight: var(--weight-title);
  line-height: var(--line-title);
}

.repo-document-header p,
.repo-readme-panel p {
  color: #b5c6d3;
  line-height: 1.7;
}

.repo-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 0;
}

.repo-stats div {
  padding: 0.68rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(2, 7, 13, 0.3);
}

.repo-stats dt {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 900;
}

.repo-stats dd {
  margin: 0.18rem 0 0;
  color: var(--text);
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 900;
}

.repo-tabs {
  display: flex;
  gap: 0;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.repo-tabs span {
  padding: 0.74rem 1rem;
  border-right: 1px solid rgba(148, 163, 184, 0.16);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 900;
}

.repo-tabs span:first-child {
  color: var(--text);
  background: rgba(66, 217, 255, 0.06);
}

.repo-readme-panel,
.repo-file-table,
.repo-preview {
  margin-top: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(2, 7, 13, 0.28);
}

.repo-action-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  min-width: 0;
  margin: 0.25rem 0 1rem;
  padding: 0.9rem;
  border: 1px solid rgba(88, 245, 168, 0.22);
  background:
    linear-gradient(135deg, rgba(88, 245, 168, 0.1), transparent 46%),
    rgba(3, 12, 20, 0.66);
}

.repo-action-panel span,
.repo-action-panel b {
  display: block;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.repo-action-buttons span,
.drawer-actions span,
.detail-source span,
.hero-actions span,
.topbar-actions span {
  display: inline;
}

.repo-action-panel .repo-action-buttons span {
  display: inline;
  color: inherit;
  font: inherit;
  text-transform: none;
}

.repo-action-panel span {
  color: var(--green);
}

.repo-action-panel b {
  margin-top: 0.18rem;
  color: var(--text);
  font-size: 1rem;
  text-transform: none;
}

.repo-action-panel p {
  margin: 0.4rem 0 0;
  color: #b5c6d3;
  line-height: 1.55;
}

.repo-action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: flex-end;
}

.repo-maintainer-form {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(11rem, 1fr) auto;
  gap: 0.55rem;
}

.repo-maintainer-form input,
.admin-filter-input {
  min-height: 2.1rem;
  min-width: 0;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 0.35rem;
  background: rgba(7, 10, 15, 0.72);
  color: var(--text);
  padding: 0.45rem 0.62rem;
}

.repo-maintainer-form p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--red);
  font-size: 0.8rem;
}

.repo-panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 2.8rem;
  margin: 0;
  padding: 0.72rem 0.85rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.repo-panel-title b {
  color: var(--green);
  font-style: italic;
  font-weight: 600;
}

.repo-readme-panel h3 {
  margin: 1rem 1rem 0.6rem;
  font-size: var(--type-card-title);
  font-weight: var(--weight-card-title);
  line-height: var(--line-card-title);
}

.repo-readme-panel p {
  margin: 0 1rem 1rem;
}

.repo-skill-list {
  display: grid;
  gap: 0.42rem;
  margin: 0 1rem 1rem;
  padding: 0;
  list-style: none;
  color: #b5c6d3;
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 850;
}

.repo-skill-list li {
  padding: 0.48rem 0.62rem;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(148, 163, 184, 0.06);
}

.repo-file-table ul {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.repo-file-table li {
  min-width: 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.13);
}

.repo-file-row {
  display: grid;
  grid-template-columns: 1.2rem minmax(0, 1fr) minmax(7rem, 0.3fr) auto;
  gap: 0.7rem;
  align-items: center;
  width: 100%;
  min-width: 0;
  min-height: 2.65rem;
  padding: 0.62rem 0.85rem;
  border: 1px solid transparent;
  background: transparent;
  color: inherit;
  text-align: left;
}

.repo-file-row:hover,
.repo-file-row.is-active {
  border-color: rgba(66, 217, 255, 0.22);
  background: rgba(66, 217, 255, 0.08);
}

.file-kind,
.file-folder,
.file-size {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 900;
}

.file-path {
  min-width: 0;
  color: #d8e7ef;
  font-family: var(--mono);
  font-size: 0.8rem;
  overflow-wrap: anywhere;
}

.repo-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  margin-top: 1rem;
  padding: 0.76rem 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(2, 7, 13, 0.28);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 900;
}

.repo-breadcrumb button {
  border: 0;
  background: transparent;
  color: #42d9ff;
  font: inherit;
  cursor: pointer;
}

.repo-breadcrumb b {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.repo-file-detail {
  margin-top: 0.85rem;
}

.repo-preview pre {
  max-height: 620px;
  margin: 0;
  border: 0;
  border-radius: 0;
  white-space: pre-wrap;
}

.repo-code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.1rem;
  padding: 0.55rem 0.72rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(12, 18, 27, 0.72);
}

.repo-file-title {
  min-width: 0;
}

.repo-file-title b,
.repo-file-title span {
  display: block;
}

.repo-file-title b {
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.88rem;
  line-height: 1.25;
}

.repo-file-title span {
  margin-top: 0.1rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 850;
}

.repo-code-tabs {
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 0.42rem;
  background: rgba(2, 7, 13, 0.55);
}

.repo-code-tabs button {
  min-height: 2rem;
  border: 0;
  border-right: 1px solid rgba(148, 163, 184, 0.18);
  background: transparent;
  color: #d8e7ef;
  padding: 0 0.72rem;
  font-size: 0.78rem;
  font-weight: 850;
}

.repo-code-tabs button:last-child {
  border-right: 0;
}

.repo-code-tabs button:hover,
.repo-code-tabs button.is-active {
  background: rgba(148, 163, 184, 0.16);
  color: #f6fbff;
}

.repo-code-view {
  max-height: 72vh;
  overflow: auto;
  background: #080d14;
  color: #dbe8f0;
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.58;
  tab-size: 2;
}

.repo-code-view code {
  display: table;
  min-width: 100%;
}

.code-line {
  display: table-row;
}

.line-number,
.line-content {
  display: table-cell;
  white-space: pre;
}

.line-number {
  width: 3.2rem;
  padding: 0 1rem 0 0.9rem;
  color: #7e93a4;
  text-align: right;
  user-select: none;
}

.line-content {
  padding-right: 1.5rem;
  color: #cfe0ea;
}

.repo-file-editor {
  display: grid;
  min-width: 0;
  background: #0d1117;
}

.repo-file-editor textarea {
  min-height: 62vh;
  border: 0;
  border-radius: 0;
  background: #080d14;
  color: #dbe8f0;
  padding: 0.9rem 1rem;
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.58;
  resize: vertical;
  tab-size: 2;
}

.repo-monaco-shell {
  height: min(68vh, 760px);
  min-height: 520px;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  background: #0d1117;
}

.repo-file-editor:not(.is-editor-fallback) > textarea[name="content"] {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.repo-file-editor.is-editor-fallback .repo-monaco-shell {
  display: none;
}

.repo-editor-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.6rem;
  min-height: 3.4rem;
  padding: 0.62rem 0.72rem;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(12, 18, 27, 0.72);
}

.repo-editor-actions p {
  flex: 1;
  margin: 0;
  color: #ffb6a0;
  font-size: 0.78rem;
}

.repo-meta-list {
  display: grid;
  gap: 0.62rem;
  margin: 0;
  padding: 0.75rem;
}

.repo-meta-list div {
  min-width: 0;
  padding: 0.7rem;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(2, 7, 13, 0.28);
}

.repo-meta-list dt {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 900;
  text-transform: uppercase;
}

.repo-meta-list dd {
  min-width: 0;
  margin: 0.22rem 0 0;
  color: #d8e7ef;
  overflow-wrap: anywhere;
}

.repo-meta-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0 0.75rem 0.75rem;
}

.repo-meta .detail-source {
  display: inline-flex;
  margin: 0 0.75rem 0.9rem;
}

html[data-route="repositories"] .view-page[data-view="repositories"],
html[data-route="docs"] .view-page[data-view="docs"],
html[data-route="admin"] .view-page[data-view="admin"] {
  color: #d4dee8;
  font-size: 0.92rem;
}

html[data-route="repositories"] .section-note,
html[data-route="docs"] .section-note,
html[data-route="admin"] .section-note {
  color: #8996a6;
  font-size: 0.9rem;
  font-weight: 450;
  line-height: 1.55;
}

html[data-route="skills"] .view-page[data-view="skills"],
html[data-route="repositories"] .view-page[data-view="repositories"],
html[data-route="docs"] .view-page[data-view="docs"],
html[data-route="submit"] .view-page[data-view="submit"],
html[data-route="admin"] .view-page[data-view="admin"] {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-inline: clamp(1rem, 1.65vw, 2rem);
}

html[data-route="skills"] .view-page[data-view="skills"],
html[data-route="repositories"] .view-page[data-view="repositories"],
html[data-route="submit"] .view-page[data-view="submit"],
html[data-route="admin"] .view-page[data-view="admin"] {
  padding-top: 1.4rem;
}

html[data-route="docs"] .view-page[data-view="docs"] {
  padding: 0;
}

html[data-route="docs"] main {
  height: calc(100vh - 4.4rem);
  overflow: hidden;
  padding-bottom: 0;
}

html[data-route="docs"] .site-footer {
  display: none;
}

html[data-route="docs"] .docs-word-shell {
  display: grid !important;
  grid-template-columns: 20rem minmax(0, 1fr) !important;
  width: 100% !important;
  height: calc(100vh - 4.4rem) !important;
  min-height: 0 !important;
  overflow: hidden !important;
  background: #e3e8ef !important;
}

html[data-route="docs"] .docs-index {
  grid-column: 1 !important;
  grid-row: 1 !important;
  position: relative !important;
  top: auto !important;
  width: 20rem !important;
  height: 100% !important;
}

html[data-route="docs"] .docs-document-pane {
  grid-column: 2 !important;
  grid-row: 1 !important;
  min-width: 0 !important;
  height: 100% !important;
  overflow-y: auto !important;
}

html[data-route="docs"] .docs-word-page {
  display: block !important;
  margin-top: 0 !important;
}

html[data-route="repositories"] .repo-layout,
html[data-route="repositories"] .repo-profile-layout {
  font-size: 0.9rem;
}

html[data-route="repositories"] .repo-sidebar-header,
html[data-route="repositories"] .repo-kicker,
html[data-route="repositories"] .repo-panel-title,
html[data-route="repositories"] .repo-profile-facts dt,
html[data-route="repositories"] .repo-profile-section > b,
html[data-route="repositories"] .repo-overview-title b,
html[data-route="repositories"] .repo-meta-list dt {
  color: #8996a6;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0;
}

html[data-route="repositories"] .repo-overview-tabs a {
  min-height: 2.55rem;
  padding-inline: 0.68rem;
  color: #b9c7d4;
  font-size: 0.92rem;
  font-weight: 600;
}

html[data-route="repositories"] .repo-overview-tabs b {
  min-width: 1.4rem;
  min-height: 1.1rem;
  color: #8794a3;
  font-size: 0.62rem;
  font-weight: 500;
}

html[data-route="repositories"] .repo-document {
  padding: clamp(0.85rem, 1.75vw, 1.25rem);
}

html[data-route="repositories"] .repo-document-header h2 {
  font-size: clamp(1.25rem, 1.7vw, 1.58rem);
  font-weight: 650;
}

html[data-route="repositories"] .repo-document-header p,
html[data-route="repositories"] .repo-readme-panel p,
html[data-route="repositories"] .repo-action-panel p {
  color: #abb8c6;
  font-size: 0.92rem;
  font-weight: 400;
  line-height: 1.62;
}

html[data-route="repositories"] .repo-project-item b {
  font-size: 0.78rem;
  font-weight: 560;
}

html[data-route="repositories"] .repo-project-item small,
html[data-route="repositories"] .repo-tree-folder summary,
html[data-route="repositories"] .repo-tree-file,
html[data-route="repositories"] .file-kind,
html[data-route="repositories"] .file-folder,
html[data-route="repositories"] .file-size,
html[data-route="repositories"] .repo-breadcrumb,
html[data-route="repositories"] .repo-file-title span {
  color: #8492a3;
  font-weight: 500;
}

html[data-route="repositories"] .repo-project-item small {
  font-size: 0.55rem;
}

html[data-route="repositories"] .repo-file-row {
  min-height: 2.35rem;
  padding-block: 0.48rem;
}

html[data-route="repositories"] .file-path,
html[data-route="repositories"] .repo-file-title b {
  color: #ccd8e4;
  font-size: 0.76rem;
  font-weight: 520;
}

html[data-route="repositories"] .repo-action-panel {
  padding: 0.78rem 0.85rem;
}

html[data-route="repositories"] .repo-action-panel span,
html[data-route="repositories"] .repo-action-panel b {
  font-family: var(--font-sans);
  font-weight: 600;
}

html[data-route="repositories"] .repo-action-panel span {
  font-size: 0.68rem;
}

html[data-route="repositories"] .repo-action-panel b,
html[data-route="repositories"] .repo-readme-panel h3 {
  font-size: 0.95rem;
  font-weight: 650;
}

html[data-route="repositories"] .repo-stats dt,
html[data-route="repositories"] .repo-tabs span,
html[data-route="repositories"] .repo-skill-list,
html[data-route="repositories"] .repo-meta-list dt {
  font-weight: 550;
}

html[data-route="repositories"] .repo-stats dd,
html[data-route="repositories"] .repo-meta-list dd {
  font-size: 0.88rem;
  font-weight: 520;
}

html[data-route="repositories"] .primary-link,
html[data-route="repositories"] .secondary-link,
html[data-route="repositories"] .repo-code-tabs button {
  font-weight: 600;
}

.admin-shell {
  display: grid;
  gap: 0.85rem;
}

.admin-console-layout {
  display: grid;
  grid-template-columns: 18rem minmax(0, 1fr);
  gap: 0;
  align-items: start;
  min-height: calc(100vh - 10.5rem);
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(11, 15, 22, 0.72);
}

.admin-tab-rail {
  position: sticky;
  top: 4.4rem;
  display: grid;
  align-content: start;
  gap: 0.8rem;
  min-width: 0;
  min-height: calc(100vh - 10.6rem);
  padding: 0.85rem;
  border-right: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(8, 12, 18, 0.86);
}

.admin-tab-list {
  display: grid;
  gap: 0.35rem;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.admin-tab {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: center;
  min-height: 2.7rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid transparent;
  border-radius: 0.35rem;
  background: rgba(255, 255, 255, 0.015);
  color: var(--text-secondary);
  text-align: left;
}

.admin-tab:hover,
.admin-tab.active {
  border-color: rgba(91, 108, 255, 0.28);
  background: rgba(91, 108, 255, 0.12);
  color: var(--text);
}

.admin-tab span,
.admin-tab em {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 900;
}

.admin-tab span {
  color: var(--muted);
}

.admin-tab b {
  overflow: hidden;
  font-size: 0.9rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-tab em {
  min-width: 1.7rem;
  padding: 0.16rem 0.3rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 0.25rem;
  background: rgba(2, 7, 13, 0.34);
  color: var(--muted);
  text-align: center;
}

.admin-tab.active span {
  color: var(--cyan);
}

.admin-tab.active em {
  border-color: rgba(34, 197, 94, 0.3);
  color: var(--green);
}

.admin-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem;
}

.admin-metrics div,
.admin-panel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(15, 21, 30, 0.82);
  box-shadow: none;
  backdrop-filter: none;
}

.admin-metrics div {
  padding: 0.62rem;
}

.admin-metrics b {
  display: block;
  color: var(--text);
  font: 700 1.05rem/1 var(--mono);
}

.admin-metrics span {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.admin-workspace {
  min-width: 0;
  padding: 0.85rem;
}

.admin-panel {
  padding: 0.95rem;
  border: 0;
  background: rgba(18, 24, 33, 0.78);
}

.admin-workspace-panel[hidden] {
  display: none;
}

.admin-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.admin-panel-header span {
  display: block;
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.admin-panel-header h2 {
  margin: 0.18rem 0 0;
  font-size: 1.05rem;
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: flex-end;
}

.admin-filter-input {
  width: min(14rem, 100%);
}

.admin-import-link {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  min-height: 2rem;
  border: 1px solid rgba(34, 197, 94, 0.28);
  border-radius: 0.35rem;
  background: rgba(34, 197, 94, 0.08);
  color: #9af2bd;
  padding: 0.38rem 0.68rem;
  font-size: 0.82rem;
  font-weight: 650;
  text-decoration: none;
}

.admin-import-link .ui-icon {
  width: 0.86rem;
  height: 0.86rem;
}

.admin-import-link:hover {
  border-color: rgba(34, 197, 94, 0.48);
  background: rgba(34, 197, 94, 0.14);
  color: #c8ffdc;
}

.admin-toolbar button,
.admin-detail-actions button {
  min-height: 2rem;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 0.35rem;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  padding: 0.38rem 0.65rem;
}

.admin-toolbar button:hover,
.admin-toolbar button.active,
.admin-detail-actions button:hover {
  border-color: rgba(91, 108, 255, 0.38);
  color: var(--text);
  background: var(--accent-soft);
}

.announcement-form {
  display: grid;
  gap: 0.75rem;
  padding: 0.85rem;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(2, 7, 13, 0.34);
}

.announcement-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.announcement-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.announcement-list {
  display: grid;
  gap: 0.6rem;
  margin-top: 0.85rem;
}

.announcement-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.42rem;
  padding: 0.75rem;
  border: 1px solid rgba(105, 214, 255, 0.14);
  background: rgba(2, 7, 13, 0.34);
}

.announcement-row[data-level="success"] {
  border-color: rgba(34, 197, 94, 0.24);
}

.announcement-row[data-level="warning"],
.announcement-row[data-level="critical"] {
  border-color: rgba(245, 158, 11, 0.3);
}

.announcement-row b {
  display: block;
  color: var(--text);
  font-size: 0.9rem;
}

.announcement-row em {
  display: block;
  margin-bottom: 0.22rem;
  color: var(--green);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 900;
}

.announcement-row p {
  margin: 0.28rem 0 0;
  color: var(--text-secondary);
  font-size: 0.82rem;
  line-height: 1.45;
}

.announcement-row > span {
  grid-column: 1 / -1;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 800;
}

.announcement-row .secondary-link {
  align-self: start;
  min-height: 2rem;
  padding: 0 0.68rem;
}

.announcement-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-end;
}

.announcement-row-actions .secondary-link,
.announcement-row-actions .danger-link {
  min-height: 2rem;
  padding: 0 0.68rem;
}

.danger-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 93, 122, 0.32);
  border-radius: 0.35rem;
  background: rgba(255, 93, 122, 0.08);
  color: #ff9aae;
  font-weight: 700;
}

.danger-link:hover {
  border-color: rgba(255, 93, 122, 0.58);
  background: rgba(255, 93, 122, 0.14);
  color: #ffd0d9;
}

.admin-access-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.85rem;
}

.admin-access-grid h3 {
  margin: 0 0 0.55rem;
  color: var(--muted);
  font-family: var(--font-label);
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
}

.admin-access-grid .table-list {
  gap: 0.42rem;
}

.admin-access-grid .table-row {
  align-items: center;
  min-height: 3.25rem;
  padding: 0.62rem 0.78rem;
  background: rgba(8, 12, 18, 0.42);
}

.admin-access-grid .table-row b {
  min-width: 0;
  color: #e3edf6;
  font-size: 0.94rem;
  font-weight: 560;
  line-height: 1.28;
}

.admin-access-grid .table-row span {
  margin-top: 0;
  color: #8c98a8;
  font-size: 0.84rem;
  font-weight: 450;
  line-height: 1.35;
  text-align: right;
}

.table-list {
  display: grid;
  gap: 0.6rem;
}

.table-row,
.review-row {
  display: flex;
  justify-content: space-between;
  gap: 0.9rem;
  padding: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(8, 12, 18, 0.54);
}

.table-row span,
.review-row span {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.84rem;
}

.review-actions {
  align-items: start;
  flex-wrap: wrap;
  gap: 0.45rem;
  flex: 0 0 min(100%, 17rem);
  min-width: 0;
}

.review-row > div:first-child {
  min-width: 0;
}

.review-actions textarea {
  width: 100%;
  min-height: 4rem;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 0.35rem;
  background: rgba(7, 10, 15, 0.72);
  color: var(--text);
  padding: 0.62rem;
}

.review-actions > div:last-child {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
  width: 100%;
}

.review-checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem 0.5rem;
  width: 100%;
}

.review-checklist label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.review-checklist input {
  width: 0.9rem;
  height: 0.9rem;
  flex: 0 0 auto;
}

.release-rollback-button {
  margin-left: 0.4rem;
  min-height: 1.55rem;
  border: 1px solid rgba(91, 108, 255, 0.3);
  border-radius: 0.3rem;
  background: rgba(91, 108, 255, 0.08);
  color: var(--accent-hover);
  font-size: 0.72rem;
}

.review-actions button {
  min-height: 2.1rem;
  padding: 0.45rem 0.5rem;
  border-radius: 0.35rem;
}

.review-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem 0.75rem;
  margin: 0.75rem 0;
}

.review-meta div {
  min-width: 0;
}

.review-meta dt {
  color: var(--muted);
  font-size: 0.72rem;
}

.review-meta dd {
  margin: 0.12rem 0 0;
  overflow-wrap: anywhere;
  font-size: 0.84rem;
}

.decision-note {
  border-left: 2px solid rgba(34, 197, 94, 0.58);
  padding-left: 0.65rem;
  color: var(--green);
}

.scan-findings {
  display: grid;
  gap: 0.35rem;
  margin: 0.75rem 0;
  padding: 0;
  list-style: none;
}

.scan-findings li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.scan-findings b {
  min-width: 3.4rem;
  color: var(--green);
  font: 700 0.7rem/1 var(--mono);
  text-transform: uppercase;
}

.scan-findings span {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.scan-findings li[data-severity="high"] {
  border-color: rgba(255, 93, 122, 0.46);
  background: var(--critical-soft);
}

.scan-findings li[data-severity="high"] b {
  color: var(--critical);
}

.scan-findings li[data-severity="medium"] b {
  color: var(--amber);
}

.admin-detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0.85rem 0;
  padding: 0.72rem;
  border: 1px solid rgba(245, 158, 11, 0.28);
  background: var(--amber-soft);
}

.admin-detail-actions span {
  color: var(--amber);
  font: 700 0.76rem/1 var(--mono);
  text-transform: uppercase;
}

.security-band {
  margin: 3rem clamp(1rem, 5vw, 4rem);
  padding: clamp(2rem, 5vw, 4rem);
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(135deg, rgba(91, 108, 255, 0.14), rgba(56, 189, 248, 0.08)),
    rgba(21, 27, 35, 0.72);
  box-shadow: var(--shadow);
}

.drawer {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  justify-content: flex-end;
  background: rgba(0, 0, 0, 0.62);
}

.drawer[aria-hidden="false"] {
  display: flex;
}

.modal {
  place-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 2rem);
}

.modal[aria-hidden="false"] {
  display: grid;
}

.drawer-panel,
.dialog-panel {
  position: relative;
  width: min(760px, 100%);
  height: 100%;
  overflow-y: auto;
  padding: 2rem;
  border-left: 1px solid var(--line-strong);
  background: rgba(5, 14, 23, 0.96);
  box-shadow: -18px 0 60px rgba(0, 0, 0, 0.4);
}

.dialog-panel {
  width: min(560px, 100%);
  height: auto;
  max-height: min(720px, calc(100vh - 2rem));
  border: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
  box-shadow:
    0 0 0 1px rgba(66, 217, 255, 0.12) inset,
    0 24px 90px rgba(0, 0, 0, 0.58),
    0 0 46px rgba(66, 217, 255, 0.12);
}

.submit-panel {
  width: min(760px, 100%);
}

.drawer-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 0.38rem;
  background: rgba(66, 217, 255, 0.12);
  color: var(--text);
}

.detail-list {
  display: grid;
  gap: 0.7rem;
  margin: 1.2rem 0;
}

.detail-list-compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 1rem 0 1.1rem;
}

.detail-list div,
.install-block,
.repo-block > div {
  padding: 0.85rem;
  border: 1px solid rgba(105, 214, 255, 0.18);
  background: rgba(2, 7, 13, 0.38);
}

.detail-list-compact div {
  min-width: 0;
  padding: 0.62rem 0.68rem;
}

.detail-list-compact .detail-span {
  grid-column: 1 / -1;
}

.detail-list dt,
.install-block > span,
.install-header span,
.repo-block span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.detail-list dd {
  margin: 0.25rem 0 0;
}

.detail-list-compact dd {
  margin-top: 0.18rem;
  font-size: 0.96rem;
  line-height: 1.32;
  overflow-wrap: anywhere;
}

.install-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.copy-install-button {
  display: inline-grid;
  width: 2rem;
  height: 2rem;
  min-height: 2rem;
  place-items: center;
  padding: 0;
  border-color: rgba(91, 108, 255, 0.28);
  border-radius: 0.35rem;
  background: rgba(17, 22, 29, 0.72);
  color: var(--muted);
}

.copy-install-button:hover {
  border-color: rgba(91, 108, 255, 0.58);
  color: var(--accent-hover);
}

.copy-install-button svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.copy-install-button[data-state="copied"] {
  border-color: rgba(88, 245, 168, 0.7);
  background: rgba(88, 245, 168, 0.14);
  color: var(--green);
}

.copy-install-button[data-state="failed"] {
  border-color: rgba(239, 68, 68, 0.72);
  color: var(--red);
}

.install-block code {
  display: block;
  overflow-x: auto;
  margin-top: 0.55rem;
  color: var(--green);
  font-family: var(--mono);
  font-feature-settings: "liga" 0, "calt" 0, "zero" 1;
  font-size: 0.86rem;
  font-weight: 520;
  line-height: 1.52;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.drawer-actions {
  gap: 0.7rem;
  margin: 1rem 0;
}

.repo-block {
  display: grid;
  gap: 0.8rem;
}

.repo-block li {
  margin: 0.42rem 0;
  line-height: 1.35;
}

.repo-block li b {
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.repo-block li span {
  margin-left: 0.36rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.35;
  text-transform: uppercase;
}

.detail-source,
.load-error,
.locked,
.form-result {
  color: var(--amber);
  font-weight: 900;
}

.drawer-panel > .detail-source {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  width: fit-content;
  max-width: 100%;
  min-height: 2.25rem;
  margin-top: 0.9rem;
  padding: 0.42rem 0.15rem;
  line-height: 1.2;
}

.drawer-panel > .detail-source .ui-icon {
  flex: 0 0 1rem;
}

.drawer-panel > .detail-source span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.form-grid {
  align-items: start;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.form-grid label {
  flex: 1 1 220px;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(260px, auto);
  gap: clamp(1rem, 3vw, 2.4rem);
  align-items: center;
  padding: 1.4rem clamp(1rem, 5vw, 4rem) 1.6rem;
  border-top: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(21, 27, 35, 0.18), rgba(8, 12, 17, 0.72)),
    rgba(2, 7, 13, 0.74);
  color: var(--muted);
}

.footer-brand {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 0.95rem;
}

.footer-brand-logo {
  display: block;
  flex: 0 0 auto;
  width: 5rem;
  height: 2.4rem;
  object-fit: contain;
  border: 1px solid rgba(91, 108, 255, 0.32);
  border-radius: 0.42rem;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
}

.footer-brand-copy {
  display: grid;
  align-content: center;
  min-width: 0;
  min-height: 2.4rem;
}

.footer-brand b {
  display: block;
  overflow: hidden;
  color: var(--text);
  font-size: var(--type-card-title);
  font-weight: var(--weight-card-title);
  line-height: 1.08;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.footer-brand p {
  margin: 0.22rem 0 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 750;
  line-height: 1.12;
}

.footer-meta {
  display: grid;
  gap: 0.48rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.2;
}

.footer-meta {
  justify-items: end;
  text-align: right;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  width: max-content;
  padding: 0.34rem 0.52rem;
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.08);
  color: var(--green);
}

.status-pill i {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.68);
}

@media (max-width: 1120px) {
  .topbar {
    grid-template-columns: 1fr;
  }

  .brand,
  .topbar nav a {
    border-right: 0;
  }

  .skill-grid,
  .repo-grid,
  .route-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .skills-shell {
    grid-template-columns: 1fr;
  }

  .skills-insights {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .skills-insights .insight-totals {
    grid-column: 1 / -1;
  }

  .hero,
  .page-hero {
    grid-template-columns: 1fr;
  }

  .hero {
    flex-direction: column;
  }

  .terminal-panel {
    flex-basis: auto;
    margin: 0 clamp(1rem, 5vw, 4rem) 2rem;
  }

  .home-robot-illustration {
    width: clamp(7.4rem, 18vw, 9.4rem);
    max-height: 8.8rem;
  }

  .terminal-panel.compact-terminal {
    height: clamp(23rem, 64vh, 30rem);
    max-height: 30rem;
    margin: 0;
  }

  .section-heading {
    grid-template-columns: 1fr;
  }

  .section-note {
    justify-self: start;
    text-align: left;
  }

  .repo-layout,
  .repo-profile-layout,
  .repo-document-header,
  .docs-word-shell,
  .submit-console {
    grid-template-columns: 1fr;
  }

  .repo-sidebar,
  .repo-meta,
  .repo-profile-panel,
  .repo-year-rail,
  .repo-overview-tabs,
  .docs-index,
  .submit-assist-panel {
    position: static;
  }

  .docs-word-shell {
    max-width: 62rem;
  }

  .docs-index {
    width: 100%;
    max-height: none;
  }

  .docs-chapter-list {
    max-height: 18rem;
  }

  .repo-sidebar,
  .repo-meta {
    height: auto;
    border-right: 0;
    border-left: 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.22);
  }

  .repo-profile-layout {
    gap: 1rem;
  }

  .repo-profile-panel {
    display: grid;
    grid-template-columns: minmax(180px, 0.35fr) minmax(0, 1fr);
    gap: 1rem;
  }

  .repo-profile-avatar-wrap {
    grid-row: span 5;
    width: min(100%, 220px);
    margin: 0;
  }

  .repo-profile-panel h2,
  .repo-profile-handle {
    text-align: left;
  }

  .repo-profile-section {
    grid-column: 1 / -1;
  }

  .repo-year-rail {
    display: flex;
    flex-wrap: wrap;
    order: 3;
  }

  .repo-year-rail span {
    min-width: 4.5rem;
  }

  .repo-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-console-layout,
  .admin-access-grid {
    grid-template-columns: 1fr;
  }

  .admin-tab-rail {
    position: static;
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  }

  .admin-tab-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-panel-header {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-toolbar {
    justify-content: flex-start;
  }

  .site-footer {
    grid-template-columns: minmax(0, 1fr) minmax(160px, 0.5fr);
  }

  .footer-meta {
    justify-items: start;
    text-align: left;
  }
}

@media (max-width: 760px) {
  .topbar nav,
  .topbar-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .user-avatar-button {
    max-width: none;
    width: 100%;
  }

  .topbar nav a {
    min-height: 2.7rem;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .footer-brand b {
    white-space: normal;
  }

  .submit-form-header,
  .submit-command-row,
  .assist-card-header {
    align-items: stretch;
    flex-direction: column;
  }

  .submit-command-row .primary-link {
    width: 100%;
  }

  h1 {
    font-size: clamp(2rem, 10vw, 3.2rem);
  }

  .skill-grid,
  .repo-grid,
  .admin-grid,
  .route-grid {
    grid-template-columns: 1fr;
  }

  .skills-insights {
    grid-template-columns: 1fr;
  }

  .page-hero {
    min-height: auto;
    padding-bottom: 2.5rem;
  }

  .page-hero > div:first-child {
    min-height: auto;
    padding-block: 1.25rem 0;
  }

  .home-title-row {
    display: inline-block;
    width: auto;
    padding-right: 0;
  }

  .home-robot-illustration {
    display: none;
  }

  .route-grid {
    padding-top: 2.25rem;
  }

  pre {
    font-size: clamp(0.66rem, 2.7vw, 0.82rem);
  }

  .repo-file-row {
    grid-template-columns: 1.2rem minmax(0, 1fr) auto;
  }

  .registry-entry {
    grid-template-columns: 1fr;
    gap: 0.08rem;
    align-items: start;
  }

  .registry-entry b,
  .registry-entry span {
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .repo-profile-panel,
  .repo-pinned-grid,
  .repo-contrib-summary {
    grid-template-columns: 1fr;
  }

  .repo-profile-avatar-wrap {
    grid-row: auto;
    width: min(100%, 290px);
    justify-self: center;
  }

  .repo-profile-panel h2,
  .repo-profile-handle {
    text-align: center;
  }

  .repo-overview-tabs {
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 0.15rem;
    scrollbar-width: none;
  }

  .repo-overview-tabs::-webkit-scrollbar {
    display: none;
  }

  .repo-overview-tabs a {
    flex: 0 0 auto;
  }

  .repo-package-row,
  .repo-star-row,
  .docs-feature-grid,
  .docs-gap-board {
    grid-template-columns: 1fr;
  }

  .docs-word-page {
    padding: 1.35rem;
  }

  .docs-chapter-link {
    min-height: 2.6rem;
  }

  .repo-package-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .docs-signal-list li,
  .docs-next-list li {
    grid-template-columns: 1fr;
  }

  .repo-package-row .secondary-link,
  .repo-star-button {
    justify-self: start;
  }

  .repo-star-rank {
    width: 2.25rem;
  }

  .repo-overview-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.2rem;
  }

  .repo-heatmap {
    grid-template-columns: repeat(13, 0.68rem);
  }

  .repo-activity-row {
    grid-template-columns: 1.1rem minmax(0, 1fr);
  }

  .repo-activity-row em {
    grid-column: 2;
  }

  .repo-action-panel {
    grid-template-columns: 1fr;
  }

  .repo-action-buttons {
    justify-content: stretch;
  }

  .repo-action-buttons a {
    flex: 1 1 12rem;
  }

  .file-folder {
    display: none;
  }

  .admin-card.wide {
    grid-column: auto;
  }

  .admin-card-metrics {
    grid-column: auto;
  }

  .admin-metrics,
  .review-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-list-compact {
    grid-template-columns: 1fr;
  }

  .announcement-controls {
    grid-template-columns: 1fr;
  }

  .table-row,
  .review-row,
  .signal-list {
    flex-direction: column;
  }
}
