:root {
  color-scheme: dark;
  --bg: #060b15;
  --bg-elevated: rgba(11, 18, 32, 0.8);
  --bg-elevated-strong: rgba(14, 23, 40, 0.94);
  --bg-soft: rgba(255, 255, 255, 0.045);
  --bg-soft-strong: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #edf4ff;
  --text-muted: #a1b0cf;
  --text-soft: #7f90b3;
  --accent: #69d2ff;
  --accent-strong: #35bcff;
  --accent-alt: #7483ff;
  --accent-mint: #6ee8c1;
  --warning: #ffca72;
  --danger: #ff9aa0;
  --success: #7fe4ad;
  --shadow: 0 22px 56px rgba(0, 0, 0, 0.28);
  --shadow-soft: 0 14px 32px rgba(0, 0, 0, 0.18);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --max-width: 1320px;
}

body[data-theme="light"] {
  color-scheme: light;
  --bg: #eef4ff;
  --bg-elevated: rgba(255, 255, 255, 0.72);
  --bg-elevated-strong: rgba(255, 255, 255, 0.96);
  --bg-soft: rgba(12, 25, 48, 0.045);
  --bg-soft-strong: rgba(12, 25, 48, 0.08);
  --border: rgba(12, 25, 48, 0.1);
  --border-strong: rgba(12, 25, 48, 0.16);
  --text: #10203a;
  --text-muted: #506585;
  --text-soft: #6b82a0;
  --accent: #1181d5;
  --accent-strong: #0069ca;
  --accent-alt: #635cf1;
  --accent-mint: #139977;
  --warning: #aa6d00;
  --danger: #cf4a63;
  --success: #0d8b5f;
  --shadow: 0 20px 48px rgba(26, 53, 97, 0.16);
  --shadow-soft: 0 14px 28px rgba(26, 53, 97, 0.1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(105, 210, 255, 0.1), transparent 32%),
    radial-gradient(circle at 82% 12%, rgba(116, 131, 255, 0.09), transparent 26%),
    linear-gradient(180deg, #07101b 0%, var(--bg) 48%, #050912 100%);
  overflow-x: hidden;
}

body[data-theme="light"] {
  background:
    radial-gradient(circle at top left, rgba(105, 210, 255, 0.16), transparent 32%),
    radial-gradient(circle at 82% 12%, rgba(116, 131, 255, 0.14), transparent 24%),
    linear-gradient(180deg, #f8fbff 0%, #edf3ff 48%, #eef4ff 100%);
}

img {
  display: block;
  max-width: 100%;
}

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

button,
select {
  cursor: pointer;
}

button:disabled,
input:disabled,
select:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 50;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  color: #07111d;
  background: linear-gradient(135deg, var(--accent), #e5fbff);
  box-shadow: 0 12px 26px rgba(53, 188, 255, 0.24);
  transform: translateY(-180%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

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

.background-glow {
  position: fixed;
  border-radius: 999px;
  filter: blur(100px);
  opacity: 0.32;
  pointer-events: none;
  z-index: 0;
  animation: drift 18s ease-in-out infinite alternate;
}

.background-glow-1 {
  top: 6%;
  left: -6%;
  width: 260px;
  height: 260px;
  background: rgba(66, 203, 255, 0.3);
}

.background-glow-2 {
  top: 28%;
  right: -5%;
  width: 300px;
  height: 300px;
  background: rgba(118, 94, 255, 0.22);
  animation-delay: -5s;
}

.background-glow-3 {
  bottom: 8%;
  left: 36%;
  width: 260px;
  height: 260px;
  background: rgba(110, 232, 193, 0.18);
  animation-delay: -9s;
}

.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at center, black 44%, transparent 92%);
}

.app-shell {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 1.5rem), var(--max-width));
  margin: 0 auto;
  padding: 1rem 0 2.5rem;
}

.panel {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  background-color: var(--bg-elevated);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.12), transparent 48%, rgba(105, 210, 255, 0.14));
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  pointer-events: none;
}

.hero {
  padding: 1.1rem;
  margin-bottom: 1.25rem;
}

.hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 3rem;
  aspect-ratio: 1;
  border-radius: 1rem;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #04111d;
  background: linear-gradient(135deg, var(--accent), #d7fbff);
  box-shadow:
    0 10px 24px rgba(53, 188, 255, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.eyebrow,
.section-kicker,
.mini-label,
.highlight-card__eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
}

.brand-copy h1,
.section-heading h2 {
  margin: 0.25rem 0 0;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  letter-spacing: -0.03em;
}

.brand-copy h1 {
  font-size: clamp(1.65rem, 1.8vw + 1rem, 2.35rem);
}

.hero-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.toggle-group {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.toggle-chip {
  min-height: 2.65rem;
  min-width: 3rem;
  padding: 0 0.9rem;
  border: none;
  border-radius: 999px;
  color: var(--text-soft);
  background: transparent;
  font-weight: 700;
  transition:
    transform 180ms ease,
    background 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.toggle-chip:hover {
  color: var(--text);
}

.toggle-chip.is-active {
  color: var(--text);
  background: linear-gradient(135deg, rgba(105, 210, 255, 0.18), rgba(116, 131, 255, 0.16));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hero-content {
  display: grid;
  gap: 1rem;
}

.hero-copy {
  display: grid;
  gap: 0.95rem;
  align-content: start;
  max-width: 940px;
}

.hero-lead,
.section-copy,
.profile-bio,
.state-card p,
.state-card__detail,
.highlight-card__description,
.repo-card__description,
.meta-value,
.repo-insights-bar,
.profile-panel__hint,
.highlight-card__reason {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.58;
}

.hero-lead {
  font-size: clamp(1rem, 0.78rem + 0.62vw, 1.12rem);
  max-width: 54ch;
}

.search-form {
  display: grid;
  gap: 0.75rem;
  max-width: 920px;
  padding: 0.9rem;
  border-radius: calc(var(--radius-lg) + 2px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.03));
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.search-input-wrap,
.control-field input,
.control-field select {
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: var(--bg-elevated-strong);
  color: var(--text);
  transition:
    border-color 180ms ease,
    transform 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0 1rem;
  min-height: 3.2rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.search-input-wrap:focus-within,
.control-field input:focus,
.control-field select:focus {
  border-color: var(--accent);
  box-shadow:
    0 0 0 4px rgba(105, 210, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transform: translateY(-1px);
}

.search-input-wrap__icon,
.repo-stat svg,
.repo-meta svg,
.meta-row svg,
.state-card__icon svg,
.button-icon svg {
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 auto;
}

.search-input-wrap__icon {
  color: var(--text-soft);
}

.search-input-wrap input,
.control-field input,
.control-field select {
  width: 100%;
  min-height: 3.1rem;
  border: none;
  outline: none;
  background: transparent;
  color: inherit;
}

.search-input-wrap input::placeholder,
.control-field input::placeholder {
  color: var(--text-soft);
}

.hero-pills,
.repo-insights-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.hero-pill,
.subtle-pill,
.status-pill,
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  width: fit-content;
  padding: 0.42rem 0.78rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.hero-pill,
.subtle-pill {
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}

.primary-button,
.secondary-button,
.icon-button,
.ghost-button {
  border-radius: 999px;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.primary-button,
.secondary-button,
.icon-button {
  min-height: 3.1rem;
  padding: 0 1rem;
}

.primary-button {
  border: none;
  font-weight: 700;
  color: #06101c;
  background: linear-gradient(135deg, var(--accent), #dff9ff);
  box-shadow:
    0 12px 28px rgba(53, 188, 255, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.58);
}

.secondary-button,
.icon-button,
.ghost-button {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.ghost-button {
  min-height: 2.7rem;
  padding: 0 0.95rem;
  font-size: 0.92rem;
}

.primary-button:hover,
.secondary-button:hover,
.icon-button:hover,
.ghost-button:hover,
.repo-card:hover,
.highlight-card:hover {
  transform: translateY(-2px);
}

.primary-button:hover {
  box-shadow:
    0 16px 30px rgba(53, 188, 255, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.secondary-button:hover,
.icon-button:hover,
.ghost-button:hover {
  border-color: var(--border-strong);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.16);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding-inline: 0.95rem 1.15rem;
}

.theme-toggle__icon {
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 999px;
  background:
    radial-gradient(circle at 30% 30%, #fff4cc 0%, #ffd971 48%, rgba(255, 217, 113, 0.15) 52%),
    linear-gradient(135deg, var(--accent-alt), var(--accent));
  box-shadow: 0 0 16px rgba(255, 212, 91, 0.32);
}

.dashboard {
  display: grid;
  gap: 1.25rem;
}

.profile-column,
.repo-column {
  display: grid;
  gap: 1.25rem;
  align-content: start;
}

.profile-panel,
.insight-panel,
.highlights-panel,
.repositories-panel {
  padding: 1.1rem;
}

.profile-card {
  display: grid;
  gap: 1.15rem;
}

.profile-card__top {
  display: grid;
  gap: 0.95rem;
}

.profile-card__head {
  display: flex;
  align-items: center;
  gap: 0.95rem;
}

.profile-card__identity {
  display: grid;
  gap: 0.15rem;
}

.profile-avatar-wrap {
  position: relative;
  width: 5rem;
  height: 5rem;
  padding: 0.16rem;
  border-radius: 1.5rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-alt), var(--accent-mint));
  box-shadow: 0 14px 26px rgba(53, 188, 255, 0.22);
}

.profile-avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1.35rem;
  border: 2px solid rgba(8, 12, 18, 0.36);
}

.status-pill {
  color: var(--accent);
  background: rgba(105, 210, 255, 0.08);
  border: 1px solid rgba(105, 210, 255, 0.18);
}

.profile-name {
  margin: 0.35rem 0 0;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 1.6rem;
  letter-spacing: -0.03em;
}

.profile-username {
  margin: 0.1rem 0 0;
  color: var(--text-soft);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.92rem;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.stat-card {
  padding: 0.9rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}

.stat-card__label {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--text-soft);
  font-size: 0.8rem;
}

.stat-card strong {
  display: block;
  font-size: 1.08rem;
  letter-spacing: -0.03em;
}

.meta-list {
  display: grid;
  gap: 0.75rem;
}

.meta-row {
  display: grid;
  grid-template-columns: 1.05rem 1fr;
  gap: 0.7rem;
  align-items: start;
  color: var(--text-muted);
}

.meta-row svg {
  margin-top: 0.18rem;
  color: var(--accent);
}

.meta-label {
  display: block;
  margin-bottom: 0.1rem;
  color: var(--text-soft);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.meta-value a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: rgba(105, 210, 255, 0.35);
  text-underline-offset: 0.18rem;
}

.profile-actions {
  display: grid;
  gap: 0.75rem;
}

.profile-actions .primary-button,
.profile-actions .secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
}

.button-icon {
  display: inline-flex;
  align-items: center;
}

.section-heading {
  display: grid;
  gap: 0.35rem;
}

.insight-grid {
  display: grid;
  gap: 0.8rem;
}

.insight-card {
  padding: 0.95rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.03));
  border: 1px solid var(--border);
}

.insight-card__label {
  margin: 0;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
}

.insight-card strong {
  display: block;
  margin-top: 0.45rem;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

.insight-card p {
  margin: 0.32rem 0 0;
  color: var(--text-muted);
  line-height: 1.5;
  font-size: 0.9rem;
}

.repositories-panel,
.highlights-panel {
  min-height: 1px;
}

.repositories-panel__header {
  display: grid;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.repo-controls {
  display: grid;
  gap: 0.75rem;
}

.control-field {
  display: grid;
  gap: 0.45rem;
}

.control-field span {
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: 700;
}

.control-field input,
.control-field select {
  padding: 0 1rem;
}

.repo-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 0.9rem;
}

.repo-state {
  min-height: 1px;
}

.highlight-grid {
  display: grid;
  gap: 0.85rem;
}

.highlight-card,
.repo-card {
  position: relative;
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
  border-radius: calc(var(--radius-lg) + 2px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.025)),
    rgba(10, 17, 31, 0.74);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
  animation: fade-up 460ms ease both;
}

body[data-theme="light"] .highlight-card,
body[data-theme="light"] .repo-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.68)),
    rgba(255, 255, 255, 0.84);
}

.highlight-card::before,
.repo-card::before {
  content: "";
  position: absolute;
  inset: -42% auto auto -10%;
  width: 6rem;
  height: 6rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(105, 210, 255, 0.18), transparent 72%);
  opacity: 0;
  transition: opacity 180ms ease;
  pointer-events: none;
}

.highlight-card:hover,
.repo-card:hover {
  border-color: rgba(105, 210, 255, 0.24);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.highlight-card:hover::before,
.repo-card:hover::before {
  opacity: 1;
}

.highlight-card__head,
.repo-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
}

.highlight-card__title,
.repo-card__title {
  margin: 0.2rem 0 0;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.highlight-card__title a,
.repo-card__title a {
  color: var(--text);
}

.highlight-card__title a:hover,
.repo-card__title a:hover {
  color: var(--accent);
}

.highlight-card__description,
.repo-card__description {
  font-size: 0.93rem;
}

.highlight-card__badges,
.repo-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.badge {
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--border);
}

.badge--language {
  color: #071422;
  background: linear-gradient(135deg, rgba(105, 210, 255, 0.92), rgba(110, 232, 193, 0.92));
  border: none;
}

.badge--muted {
  color: var(--text-muted);
}

.highlight-card__metrics,
.repo-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 0.86rem;
}

.highlight-card__metric,
.repo-stat,
.repo-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
}

.highlight-card__footer,
.repo-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.highlight-card__reason,
.repo-card__updated {
  color: var(--text-soft);
  font-size: 0.84rem;
}

.repo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  color: var(--accent);
  font-weight: 700;
}

.repositories-panel__footer {
  display: flex;
  justify-content: center;
  margin-top: 1.1rem;
}

.state-card {
  display: grid;
  justify-items: start;
  gap: 0.8rem;
  padding: 0.95rem;
  margin-bottom: 0.9rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.03));
  border: 1px solid var(--border);
}

.state-card--error {
  border-color: rgba(255, 154, 160, 0.28);
  background: linear-gradient(180deg, rgba(255, 154, 160, 0.08), rgba(255, 255, 255, 0.03));
}

.state-card--warning {
  border-color: rgba(255, 202, 114, 0.28);
  background: linear-gradient(180deg, rgba(255, 202, 114, 0.08), rgba(255, 255, 255, 0.03));
}

.state-card__icon {
  display: grid;
  place-items: center;
  width: 2.65rem;
  aspect-ratio: 1;
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.06);
  color: var(--accent);
}

.state-card--error .state-card__icon {
  color: var(--danger);
}

.state-card--warning .state-card__icon {
  color: var(--warning);
}

.state-card h3 {
  margin: 0;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 1.06rem;
}

.state-card__detail {
  font-size: 0.9rem;
}

.state-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.skeleton {
  position: relative;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent);
  animation: shimmer 1.45s linear infinite;
}

.skeleton-card {
  display: grid;
  gap: 1rem;
}

.skeleton-avatar {
  width: 5rem;
  height: 5rem;
  border-radius: 1.45rem;
}

.skeleton-line {
  height: 0.92rem;
  border-radius: 999px;
}

.skeleton-line--sm {
  width: 38%;
}

.skeleton-line--md {
  width: 64%;
}

.skeleton-line--lg {
  width: 88%;
}

.skeleton-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.skeleton-stat {
  height: 4.2rem;
  border-radius: var(--radius-md);
}

.skeleton-highlight,
.skeleton-repo {
  min-height: 220px;
  border-radius: calc(var(--radius-lg) + 2px);
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}

.muted {
  color: var(--text-soft);
}

.space-top-sm {
  margin-top: 0.65rem;
}

.space-top-md {
  margin-top: 0.7rem;
}

.space-top-lg {
  margin-top: 1rem;
}

.space-top-xl {
  margin-top: 1.6rem;
}

.stagger-1 {
  animation-delay: 0ms;
}

.stagger-2 {
  animation-delay: 50ms;
}

.stagger-3 {
  animation-delay: 100ms;
}

.stagger-4 {
  animation-delay: 150ms;
}

.stagger-5 {
  animation-delay: 200ms;
}

.stagger-6 {
  animation-delay: 250ms;
}

.stagger-7 {
  animation-delay: 300ms;
}

.stagger-8 {
  animation-delay: 350ms;
}

.stagger-9 {
  animation-delay: 400ms;
}

.stagger-10 {
  animation-delay: 450ms;
}

.stagger-11 {
  animation-delay: 500ms;
}

.stagger-12 {
  animation-delay: 550ms;
}

@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }

  to {
    transform: translate3d(16px, -18px, 0) scale(1.05);
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

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

@media (min-width: 720px) {
  .app-shell {
    width: min(calc(100% - 2.5rem), var(--max-width));
    padding-top: 1.25rem;
  }

  .hero {
    padding: 1.2rem;
  }

  .search-form {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

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

  .repo-controls {
    grid-template-columns: minmax(180px, 210px) minmax(180px, 210px) minmax(0, 1fr);
    align-items: end;
  }

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

@media (min-width: 1040px) {
  .dashboard {
    grid-template-columns: minmax(320px, 360px) minmax(0, 1fr);
    align-items: start;
  }

  .repositories-panel__header {
    grid-template-columns: minmax(0, 1fr) minmax(520px, 620px);
    align-items: end;
  }
}

@media (max-width: 719px) {
  .app-shell {
    width: min(calc(100% - 1rem), var(--max-width));
    padding-bottom: 2rem;
  }

  .hero,
  .profile-panel,
  .insight-panel,
  .highlights-panel,
  .repositories-panel {
    padding: 1rem;
    border-radius: 24px;
  }

  .hero-top,
  .profile-card__head,
  .highlight-card__footer,
  .repo-card__footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-toolbar {
    width: 100%;
    justify-content: space-between;
  }

  .theme-toggle {
    justify-content: center;
  }

  .profile-actions {
    grid-template-columns: 1fr;
  }

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

  .repo-toolbar {
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .profile-stats,
  .skeleton-stat-grid {
    grid-template-columns: 1fr;
  }

  .search-form {
    grid-template-columns: 1fr;
  }

  .theme-toggle {
    width: 100%;
  }

  .highlight-card__metrics,
  .repo-card__meta {
    gap: 0.6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
