@import url("https://fonts.googleapis.com/css2?family=Archivo+Black&family=Space+Mono:ital,wght@0,400;0,700;1,400&display=swap");

.page-profile-pages-show {
  --pv-paper: #f2f2f2;
  --pv-ink: #080808;
  --pv-grid-line: 1px solid var(--pv-ink);
  --pv-hover: #e8e8e8;
  --pv-hover-strong: #dedede;
  --pv-cell-floor: 0.12;
  --pv-repo-row-height: 4.1rem;
  --pv-repo-scrollbar-width: 8px;
  --pv-heat-r: 17;
  --pv-heat-g: 44;
  --pv-heat-b: 89;
  --pv-heat-floor: 0.2;
  --pv-scrollbar-thumb: rgba(74, 116, 168, 0.62);
  --pv-scrollbar-thumb-hover: rgba(74, 116, 168, 0.82);
  --pv-scrollbar-track: rgba(74, 116, 168, 0.14);
  --pv-brand-hover: #0096ff;

  color: var(--pv-ink);
  font-family: "Space Mono", monospace;
}

.page-profile-pages-show::before,
.page-profile-pages-show::after {
  content: none;
}

.page-profile-pages-show .app-shell {
  width: 85vw;
  max-width: 1560px;
  padding: 1.25rem 1rem 2.5rem;
}

.page-profile-pages-show .page-content {
  gap: 0;
}

.page-profile-pages-show .provault-shell {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  overflow: visible;
}

.page-profile-pages-show .provault-shell::before {
  content: none;
}

.page-profile-pages-show .profile-frame {
  border: var(--pv-grid-line);
  background: var(--pv-paper);
}

.page-profile-pages-show .display-text {
  font-family: "Archivo Black", sans-serif;
  text-transform: uppercase;
  line-height: 0.85;
  letter-spacing: -0.02em;
}

.page-profile-pages-show .mono-label {
  font-family: "Space Mono", monospace;
  text-transform: uppercase;
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  color: inherit;
}

.page-profile-pages-show .plus-divider {
  display: flex;
  gap: 1rem;
  font-family: "Space Mono", monospace;
  font-size: 1.2rem;
  line-height: 1;
}

.page-profile-pages-show .container {
  width: 100%;
  display: grid;
  grid-template-columns: 300px 1fr;
  min-height: 740px;
  background: var(--pv-paper);
}

.page-profile-pages-show .profile-top-strip {
  border-bottom: var(--pv-grid-line);
  padding: 1.5rem 2rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.25rem;
}

.page-profile-pages-show .profile-top-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.page-profile-pages-show .profile-top-link {
  text-decoration: none;
}

.page-profile-pages-show .profile-top-link:hover {
  text-decoration: underline;
}

.page-profile-pages-show .topbar .brand {
  color: #fff;
}

.page-profile-pages-show .topbar .brand:hover {
  color: var(--pv-brand-hover);
  text-decoration-color: rgba(0, 150, 255, 0.45);
}

.page-profile-pages-show .profile-col {
  border-right: var(--pv-grid-line);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.page-profile-pages-show .user-handle {
  margin-top: 0;
  margin-bottom: 0.7rem;
  font-size: clamp(2rem, 4.2vw, 3rem);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-profile-pages-show .profile-plus-divider {
  margin-top: 0;
}

.page-profile-pages-show .repo-list--sidebar {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex: 1;
}

.page-profile-pages-show .repo-list-scroll {
  max-height: calc(var(--pv-repo-row-height) * 15);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: var(--pv-scrollbar-thumb) var(--pv-scrollbar-track);
}

.page-profile-pages-show .repo-list-scroll::-webkit-scrollbar {
  width: var(--pv-repo-scrollbar-width);
}

.page-profile-pages-show .repo-list-scroll::-webkit-scrollbar-track {
  background: var(--pv-scrollbar-track);
}

.page-profile-pages-show .repo-list-scroll::-webkit-scrollbar-thumb {
  background: var(--pv-scrollbar-thumb);
  border-radius: 0;
}

.page-profile-pages-show .repo-list-scroll::-webkit-scrollbar-thumb:hover {
  background: var(--pv-scrollbar-thumb-hover);
}

.page-profile-pages-show .meta-item {
  padding: 1rem 1.8rem;
  border-bottom: var(--pv-grid-line);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.8rem;
}

.page-profile-pages-show .meta-item .mono-label:last-child {
  font-weight: 700;
}

.page-profile-pages-show .meta-item--badge {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
}

.page-profile-pages-show .profile-badge-tools {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  min-width: 0;
}

.page-profile-pages-show .profile-badge-link {
  display: inline-flex;
  text-decoration: none;
}

.page-profile-pages-show .profile-badge-preview {
  display: block;
  height: 1.25rem;
  width: auto;
  border: 1px solid rgba(8, 8, 8, 0.2);
}

.page-profile-pages-show .profile-badge-copy {
  appearance: none;
  border: 1px solid var(--pv-ink);
  background: transparent;
  color: var(--pv-ink);
  border-radius: 0;
  padding: 0.22rem 0.45rem;
  cursor: pointer;
  font-family: "Space Mono", monospace;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.25;
  white-space: nowrap;
}

.page-profile-pages-show .profile-badge-copy:hover {
  background: var(--pv-hover);
}

.page-profile-pages-show .profile-badge-copy[data-copied="true"] {
  background: var(--pv-ink);
  color: var(--pv-paper);
}

.page-profile-pages-show .meta-item--link .mono-label {
  text-decoration: none;
}

.page-profile-pages-show .meta-item--link .mono-label:hover {
  text-decoration: underline;
}

.page-profile-pages-show .meta-item:last-child {
  border-bottom: none;
}

.page-profile-pages-show .stats-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.page-profile-pages-show .hero-section {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  border-bottom: var(--pv-grid-line);
}

.page-profile-pages-show .slop-score-box {
  padding: 2rem;
  border-right: var(--pv-grid-line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 265px;
  overflow: hidden;
}

.page-profile-pages-show .slop-score-val {
  font-size: clamp(5.8rem, 9.5vw, 8.6rem);
  margin-left: -0.05em;
}

.page-profile-pages-show .stat-box {
  padding: 1.5rem;
  border-right: var(--pv-grid-line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 265px;
}

.page-profile-pages-show .stat-box:last-child {
  border-right: none;
}

.page-profile-pages-show .stat-val {
  font-size: clamp(2.2rem, 5vw, 3rem);
  font-family: "Archivo Black", sans-serif;
  line-height: 0.95;
}

.page-profile-pages-show .meta-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: var(--pv-grid-line);
}

.page-profile-pages-show .meta-summary .meta-item {
  border-bottom: none;
  border-right: var(--pv-grid-line);
}

.page-profile-pages-show .meta-summary .meta-item:last-child {
  border-right: none;
}

.page-profile-pages-show .heatmap-section {
  border-bottom: var(--pv-grid-line);
  min-height: 400px;
}

.page-profile-pages-show .chart-container {
  padding: 1.5rem;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-profile-pages-show .chart-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.page-profile-pages-show .chart-callout {
  margin-bottom: 1rem;
  color: rgba(8, 8, 8, 0.6);
}

.page-profile-pages-show .heatmap-empty {
  text-transform: none;
  font-size: 0.75rem;
  line-height: 1.45;
  max-width: 32rem;
}

.page-profile-pages-show .heatmap-empty + .heatmap-empty {
  margin-top: 0.6rem;
}

.page-profile-pages-show .grid-texture {
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  border-top: var(--pv-grid-line);
  border-left: var(--pv-grid-line);
  width: 100%;
  max-width: none;
}

.page-profile-pages-show .cell {
  border-right: var(--pv-grid-line);
  border-bottom: var(--pv-grid-line);
  min-height: 1.75rem;
  aspect-ratio: 1 / 1;
  position: relative;
}

.page-profile-pages-show .activity-cell {
  appearance: none;
  background: rgba(
    var(--pv-heat-r),
    var(--pv-heat-g),
    var(--pv-heat-b),
    calc(var(--pv-heat-floor) + (var(--activity-strength, 0.2) * 0.75))
  );
  color: transparent;
  cursor: pointer;
  border-radius: 0;
  margin: 0;
  padding: 0;
  text-decoration: none;
  transition: background-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.page-profile-pages-show .activity-cell:hover,
.page-profile-pages-show .activity-cell:focus-visible,
.page-profile-pages-show .activity-cell.is-active {
  background: rgba(9, 32, 70, 0.96);
  transform: translateY(-1px);
  box-shadow: inset 0 0 0 2px rgba(242, 242, 242, 0.96);
  outline: none;
}

.page-profile-pages-show .heatmap-tooltip {
  position: absolute;
  left: 0;
  top: 0;
  max-width: min(24rem, 86vw);
  background: rgba(8, 8, 8, 0.95);
  color: var(--pv-paper);
  border: 1px solid rgba(8, 8, 8, 0.95);
  box-shadow: 0 7px 20px rgba(8, 8, 8, 0.25);
  pointer-events: none;
  font-size: 0.74rem;
  line-height: 1.4;
  letter-spacing: 0.02em;
  padding: 0.45rem 0.6rem;
  white-space: nowrap;
  transform: translate(0, -100%);
  z-index: 3;
}

.page-profile-pages-show .repo-list {
  display: flex;
  flex-direction: column;
}

.page-profile-pages-show .repo-item {
  padding: 1rem 1.5rem;
  min-height: var(--pv-repo-row-height);
  border-bottom: var(--pv-grid-line);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  gap: 1.2rem;
  align-items: center;
  transition: background 0.18s ease;
}

.page-profile-pages-show .repo-item:hover {
  background: var(--pv-hover);
}

.page-profile-pages-show .repo-item:last-child {
  border-bottom: none;
}

.page-profile-pages-show .repo-item--header,
.page-profile-pages-show .repo-item--header:hover {
  background: transparent;
  cursor: default;
  padding-right: calc(1.5rem + var(--pv-repo-scrollbar-width));
}

.page-profile-pages-show .repo-item--empty {
  grid-template-columns: 1fr;
}

.page-profile-pages-show .repo-list--sidebar .repo-item {
  grid-template-columns: minmax(0, 1fr) 2.25rem 2.25rem;
  column-gap: 0.65rem;
}

.page-profile-pages-show .repo-col-label {
  text-transform: none;
}

.page-profile-pages-show .repo-icon-label {
  width: 2.25rem;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
}

.page-profile-pages-show .repo-header-icon {
  width: 0.95rem;
  height: 0.95rem;
  fill: currentColor;
}

.page-profile-pages-show .repo-item-name {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-profile-pages-show .repo-item-link {
  color: inherit;
  text-decoration: none;
}

.page-profile-pages-show .repo-item-link:hover {
  text-decoration: underline;
}

.page-profile-pages-show .repo-metric {
  width: 2.25rem;
  justify-self: end;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.page-profile-pages-show .repo-item.is-active {
  background: var(--pv-hover-strong);
}

.page-profile-pages-show .status-pill {
  border: 1px solid var(--pv-ink);
  padding: 0.2rem 0.6rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  font-weight: 700;
  justify-self: end;
}

.page-profile-pages-show .status-pill--low {
  background: transparent;
  color: var(--pv-ink);
}

.page-profile-pages-show .status-pill--med,
.page-profile-pages-show .status-pill--high {
  background: var(--pv-ink);
  color: var(--pv-paper);
}

.page-profile-pages-show .dashboard-footer {
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.page-profile-pages-show .plus-divider--footer {
  font-size: 0.8rem;
}

.page-profile-pages-show .profile-frame--missing {
  min-height: 420px;
}

.page-profile-pages-show .profile-missing-body {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(250px, 1fr);
  min-height: 300px;
}

.page-profile-pages-show .profile-state-copy {
  display: grid;
  align-content: start;
  gap: 0.72rem;
  padding: 2rem;
  border-right: var(--pv-grid-line);
}

.page-profile-pages-show .profile-missing-title {
  font-size: clamp(2rem, 4.3vw, 3rem);
  line-height: 0.86;
}

.page-profile-pages-show .profile-missing-note {
  text-transform: none;
  font-size: 0.76rem;
  line-height: 1.45;
  max-width: 54ch;
}

.page-profile-pages-show .profile-missing-warning {
  margin-top: 0.15rem;
}

.page-profile-pages-show .profile-missing-actions {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.58rem;
}

.page-profile-pages-show .profile-missing-actions form {
  margin: 0;
}

.page-profile-pages-show .profile-missing-actions .button {
  width: 100%;
  border: 1px solid var(--pv-ink);
  border-radius: 0;
  box-shadow: none;
  min-height: 2.1rem;
  background: var(--pv-ink);
  color: var(--pv-paper);
  font-family: "Space Mono", monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.page-profile-pages-show .profile-missing-actions .button:hover {
  border-color: var(--pv-brand-hover);
  background: var(--pv-brand-hover);
  color: #fff;
  transform: none;
}

.page-profile-pages-show .profile-missing-actions .button.secondary {
  background: transparent;
  color: var(--pv-ink);
}

.page-profile-pages-show .profile-missing-actions .button.secondary:hover {
  background: rgba(0, 150, 255, 0.12);
  color: var(--pv-ink);
}

.page-profile-pages-show .profile-missing-status {
  text-transform: none;
  font-size: 0.74rem;
  line-height: 1.4;
  margin-top: 0.2rem;
}

@media (max-width: 900px) {
  .page-profile-pages-show .app-shell {
    width: min(100vw - 1.25rem, 100%);
  }

  .page-profile-pages-show .container {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .page-profile-pages-show .profile-col {
    border-right: none;
    border-bottom: var(--pv-grid-line);
    min-height: 0;
  }

  .page-profile-pages-show .profile-top-strip {
    padding: 1.15rem 1.25rem 1rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .page-profile-pages-show .profile-missing-body {
    grid-template-columns: 1fr;
  }

  .page-profile-pages-show .profile-state-copy {
    border-right: none;
    border-bottom: var(--pv-grid-line);
    padding: 1.25rem;
  }

  .page-profile-pages-show .profile-missing-actions {
    padding: 1.25rem;
  }

  .page-profile-pages-show .repo-list-scroll {
    max-height: calc(360px - var(--pv-repo-row-height));
  }

  .page-profile-pages-show .meta-summary {
    grid-template-columns: 1fr;
  }

  .page-profile-pages-show .meta-summary .meta-item {
    border-right: none;
    border-bottom: var(--pv-grid-line);
  }

  .page-profile-pages-show .meta-summary .meta-item:last-child {
    border-bottom: none;
  }

  .page-profile-pages-show .hero-section {
    grid-template-columns: 1fr 1fr;
  }

  .page-profile-pages-show .slop-score-box {
    grid-column: span 2;
    border-right: none;
    border-bottom: var(--pv-grid-line);
    height: auto;
    min-height: 0;
  }

  .page-profile-pages-show .slop-score-val {
    font-size: clamp(4.6rem, 18vw, 6rem);
  }

  .page-profile-pages-show .stat-box {
    min-height: 210px;
  }

  .page-profile-pages-show .chart-container {
    min-height: 360px;
  }
}

@media (max-width: 640px) {
  .page-profile-pages-show .app-shell {
    width: min(100vw - 0.75rem, 100%);
    padding: 0.75rem 0.5rem 2rem;
  }

  .page-profile-pages-show .profile-top-strip {
    padding: 0.9rem;
    gap: 0.75rem;
  }

  .page-profile-pages-show .hero-section {
    grid-template-columns: 1fr;
  }

  .page-profile-pages-show .slop-score-box {
    grid-column: auto;
    border-bottom: var(--pv-grid-line);
  }

  .page-profile-pages-show .stat-box {
    border-right: none;
    border-bottom: var(--pv-grid-line);
    min-height: 0;
    padding: 1rem;
  }

  .page-profile-pages-show .stat-box:last-child {
    border-bottom: none;
  }

  .page-profile-pages-show .meta-item {
    padding: 0.9rem;
  }

  .page-profile-pages-show .profile-badge-tools {
    flex-wrap: wrap;
  }

  .page-profile-pages-show .repo-item {
    padding: 0.8rem 0.9rem;
    gap: 0.55rem;
  }

  .page-profile-pages-show .repo-item--header,
  .page-profile-pages-show .repo-item--header:hover {
    padding-right: calc(0.9rem + var(--pv-repo-scrollbar-width));
  }

  .page-profile-pages-show .repo-list--sidebar .repo-item {
    grid-template-columns: minmax(0, 1fr) 2rem 2rem;
  }

  .page-profile-pages-show .repo-icon-label,
  .page-profile-pages-show .repo-metric {
    width: 2rem;
  }

  .page-profile-pages-show .repo-list-scroll {
    max-height: calc(320px - var(--pv-repo-row-height));
  }

  .page-profile-pages-show .heatmap-section {
    min-height: 0;
  }

  .page-profile-pages-show .chart-container {
    min-height: 0;
    padding: 1rem;
  }

  .page-profile-pages-show .grid-texture {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .page-profile-pages-show .cell {
    min-height: 1.5rem;
  }

  .page-profile-pages-show .dashboard-footer {
    padding: 0.9rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}
