:root {
  --background-default: #000;
  --background-paper: #161b22;
  --text-color: #c9d1d9;
  --primary-color: #ffffff;
  --secondary-color: #ffffff;
  --success-color: #0ed273;
  --warning-color: #ffc107;
  --error-color: #ff5252;
  --neutral-color: #888;
  --neutral-dark-color: #555;
  --success-dark-color: #001e0f;
  --warning-dark-color: #9e790c;
  --error-dark-color: #7d2626;
  --border-color: #30363d;
  --header-bg: #161b22;
  --element-opacity: 1;
  --z-background: -1;
  --z-header: 100;
  --z-overlay: 200;
  --z-tooltip: 300;
  --z-palette-icon: 400;
  --z-palette-box: 410;
  --z-alert: 500;
  --z-loading: 1000;
}

body {
  font-family: 'Inter', 'Roboto', Arial, sans-serif;
  margin: 0;
  padding: 0 20px 60px 60px;
  background: radial-gradient(circle at center top, rgba(67, 99, 117, 0.842), var(--background-default) 75%);
  color: var(--text-color);
  overflow-y: hidden;
}

body.show-scroll {
  overflow-y: auto;
}


/* Apply transparency only to the main app content */
#app,
#app * {
  opacity: var(--element-opacity);
}


header {
  opacity: 1;
}


/* Ensure palette overlay remains fully visible */
.palette-box,
.palette-box * {
  opacity: 1 !important;
}

form {
  margin-bottom: 12px;
}

.manager-icons {
  display: flex;
  gap: 10px;
  margin-top: 5px;
  margin-right: 6px;
}

.manager-select {
  margin-top: 0;
  margin-right: 0;
  display: flex;
  align-items: center;
}

.manager-select select {
  height: 32px;
}

.icons-options-row {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}


.search-label {
  font-size: 0.8em;
  margin-bottom: 4px;
}

.manager-icon {
  width: 28px;
  height: 28px;
  cursor: pointer;
  opacity: 0.6;
  filter: brightness(0) invert(1);
}

.manager-icon:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.manager-icon.selected,
.manager-icon:active {
  opacity: 1;
  border: 2px solid var(--primary-color);
  border-radius: 4px;
}

.page-title {
  font-size: 1.25em;
  margin: 0;
  background: var(--header-bg);
  border-bottom: 1px solid var(--border-color);
  text-align: left;
  padding: 12px 24px;
  width: 100%;
  box-sizing: border-box;
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-header);
  font-family: 'Inter', 'Roboto', Arial, sans-serif;
  font-weight: 500;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.title-icon {
  width: 24px;
  height: 24px;
  margin-right: 8px;
  cursor: pointer;
}

.header-divider {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 0 0 10px;
}

.search-box {
  margin-top: 0;
}

.search-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
  margin-top: 5px;
}

.search-row button {
  height: 32px;
}

.cache-indicator {
  display: flex;
  align-items: center;
  font-size: 0.8em;
  gap: 4px;
}

.cache-icon {
  width: 16px;
  height: 16px;
  filter: brightness(0) invert(1);
}

.cache-hit {
  color: var(--success-color);
}

.cache-miss {
  color: var(--error-color);
}

.fields-row {
  display: flex;
  gap: 10px;
  flex-wrap: nowrap;
}

.options-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 5px;
}

.options-row label {
  display: flex;
  align-items: center;
  gap: 4px;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 1);
}

.options-row input[type="checkbox"] {
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.6));
}

.form-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 20px;
}

.form-wrapper form {
  flex: 1;
}

.scorecard-box {
  border: 1px solid var(--border-color);
  background: var(--background-paper);
  padding: 16px;
  padding-right: 24px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  margin-top: 1em;
  text-align: left;
  font-size: 0.9em;
  position: relative;
}

.dependency-box {
  border: 1px solid var(--border-color);
  background: var(--background-paper);
  padding: 16px;
  padding-right: 24px;
  padding-top: 12px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  margin-top: 2px;
  text-align: left;
  font-size: 0.9em;
  position: relative;
}

.dependency-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 25px;
}

.dependency-header-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.dependency-header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: 4px;
  margin-left: auto;
  width: auto;
}

.badge-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cve-list a {
  display: block;
  font-size: 0.75em;
  margin-top: 2px;
}
.cve-list {
  text-align: right;
}

.primary-details {
  margin-top: 8px;
}

.metadata-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px 16px;
  margin-top: 8px;
}

.repo-meta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.repo-columns {
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
  margin-top: 6px;
  border: 1px solid var(--border-color);
  background: var(--background-paper);
  padding: 16px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

/* Remove underline from links inside repo-columns */
.repo-columns a {
  text-decoration: none;
}

.repo-columns a:hover {
  text-decoration: underline;
}

.repo-column {
  flex: 1;
  min-width: 200px;
}

hr.repo-divider {
  border: none;
  border-top: 1px solid rgba(0, 0, 30, 0.65);
  margin: 6px 0;
  width: 100%;
}

.repo-sections {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.repo-section {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.risk-number {
  background: var(--background-paper);
  border: 1px solid var(--border-color);
  padding: 10px 10px;
  border-radius: 4px;
  font-size: 1.75em;
  font-weight: bold;
  color: var(--risk-color);
}

.registry-badge {
  margin-left: 6px;
  background: var(--background-paper);
  border: 1px solid var(--border-color);
  color: #ffffff;
  padding: 2px 4px;
  border-radius: 4px;
  font-size: 0.75em;
  text-decoration: none;
}

.registry-badge:hover {
  text-decoration: underline;
}



.scorecard-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  margin-bottom: 6px;
  padding: 4px 8px;
  font-size: 0.9rem;
}

.scorecard-item img {
  width: 16px;
  height: 16px;
  filter: brightness(0) invert(1);
}

.scorecard-item img.scorecard-icon {
  filter: none;
}

.scorecard-item.info {
  font-size: 0.82rem;
}

.package-title {
  font-size: 2em;
  font-weight: 600;
}

.scorecard-score {
  text-align: center;
  margin-bottom: 10px;
}

.score-value {
  font-size: 2em;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background-image: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.check-category {
  margin-top: 10px;
  border: 1px solid var(--border-color);
  background: var(--background-paper);
  padding: 16px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  width: 100%;
  box-sizing: border-box;
}

.check-category .scorecard-item {
  width: 100%;
  justify-content: space-between;
  text-align: left;
}

.check-name {
  display: flex;
  align-items: center;
  gap: 6px;
}

.check-score-wrapper {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 180px;
}

.check-score {
  width: 24px;
  text-align: right;
}



.scorecard-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--background-paper);
  border: 1px solid var(--border-color);
  padding: 4px;
  border-radius: 4px;
  text-decoration: none;
  color: #ffffff;
  font-size: 0.75em;
}

.scorecard-badge img {
  width: 12px;
  height: 12px;
  filter: none;
}

.scorecard-badge:hover {
  text-decoration: underline;
}

.scorecard-progress {
  flex: 1;
  height: 8px;
  background: var(--background-default);
  border-radius: 4px;
  overflow: hidden;
  margin-left: 6px;
}

.scorecard-progress.small {
  height: 6px;
  width: 150px;
  flex: none;
}

.scorecard-bar {
  height: 100%;
  background: var(--neutral-color);
  width: 0;
}

.check-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
  font-size: 0.9em;
}

.check-list .scorecard-item {
  font-size: 0.9em;
}

.check-list a,
.check-list a:hover {
  text-decoration: none;
}

.input-container {
  position: relative;
  display: flex;
  flex-direction: column;
}

.search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
}

.clear-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  padding: 0;
  line-height: 1;
  color: var(--text-color);
}
.clear-btn:hover,
.clear-btn:focus {
  background: none;
}

.input-tooltip {
  display: none;
  position: absolute;
  top: -1.5em;
  left: 0;
  background: var(--background-paper);
  color: var(--text-color);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 0.7em;
  padding: 2px 6px;
  white-space: nowrap;
  z-index: var(--z-tooltip);
}

.input-container:focus-within .input-tooltip {
  display: block;
}

input, select, button {
  font-family: inherit;
  padding: 6px 8px;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  background: var(--background-paper);
  color: var(--text-color);
  height: 32px;
  box-sizing: border-box;
  transition: border 0.2s ease;
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--primary-color);
}

.input-container input {
  padding-right: 24px;
}

.search-wrapper input {
  padding-right: 24px;
}

button {
  background: var(--primary-color);
  color: #000;
  border: none;
  cursor: pointer;
  opacity: 0.85;
  transition: background 0.2s ease, opacity 0.2s ease;
}

/* primary submit action */
.fetch-button {
  background: var(--background-paper);
  color: var(--primary-color);
  border: 1px solid var(--border-color);
}

button:hover {
  opacity: 1;
  background: var(--primary-color);
}

.fetch-button:hover {
  background: var(--border-color);
  color: var(--primary-color);
}

.previous-btn {
  background: var(--background-paper);
  color: var(--text-color);
  border: 1px solid var(--border-color);
}

.previous-btn:hover {
  background: var(--background-paper);
}

#graph {
  width: 100%;
  height: 585px;
  border: 1px solid var(--border-color);
  background: var(--background-paper);
  margin-top: 2px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.graph-container {
  position: relative;
}

.graph-controls {
  position: absolute;
  top: 6px;
  right: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 6px;
}

li.transitive {
  color: var(--text-color);
}

.columns {
  display: flex;
  gap: 40px;
  width: 100%;
  margin-left: 0;
  margin-right: auto;
}

.columns ul {
  list-style: none;
  padding: 0;
}

.direct-list {
  border: 1px solid var(--border-color);
  background: var(--background-paper);
  padding: 16px;
  padding-right: 24px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  margin-top: 1em;
  text-align: left;
  font-size: 0.9em;
}

.direct-list ul {
  padding-left: 10px;
  margin-left: 4px;
  border-left: 1px dashed var(--border-color);
}

/* Hide dependency levels deeper than two in the direct list */
.direct-list ul ul {
  display: none;
}

.transitive-list ul {
  padding-left: 10px;
  margin-left: 4px;
  border-left: 1px dashed var(--border-color);
}

.transitive-list {
  border: 1px solid var(--border-color);
  background: var(--background-paper);
  padding: 16px;
  padding-right: 24px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  margin-top: 1em;
  text-align: left;
  font-size: 0.9em;
}

.direct-list li,
.transitive-list li {
  font-size: 0.9em;
  padding: 8px;
}

/* Tighter spacing for transitive dependencies */
.transitive-list li {
  padding-top: 4px;
  padding-bottom: 4px;
}

/* Tighter spacing for direct dependencies */
.direct-list li {
  padding-top: 4px;
  padding-bottom: 4px;
}

/* Ensure nested dependency bullets inherit parent font styling */
.direct-list li ul li {
  font-size: inherit;
  font-family: inherit;
}

.transitive-list li ul li {
  font-size: inherit;
  font-family: inherit;
}

.dep-name {
  cursor: pointer;
}

.tree-toggle {
  cursor: pointer;
  margin-right: 4px;
  user-select: none;
}

/* Hide tree toggle icons in the direct dependency site tree */
.direct-list.site-tree .tree-toggle {
  display: none;
}

.risk-link {
  margin-right: 4px;
}

/* Basic site tree connectors for direct dependencies */
.site-tree ul li {
  position: relative;
  padding-left: 8px;
}

.site-tree ul li::before {
  content: "";
  position: absolute;
  top: 0.85em;
  left: -8px;
  width: 8px;
  border-top: 1px dashed var(--border-color);
}

.column {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 0;
}



.graph-row {
  display: flex;
  gap: 40px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  align-items: flex-start;
  position: relative;
  padding-left: 0;
}

.graph-column {
  width: 66%;
}

.scorecard-column {
  /* fixed width for consistent layout */
  width: 450px;
  float: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.list-title {
  font-weight: bold;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.deps-title {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.list-title img {
  width: 16px;
  height: 16px;
  filter: brightness(0) invert(1);
}

#app {
  position: relative;
  min-height: calc(100vh - 60px);
  padding-bottom: 60px;
  margin-top: 60px;
  box-sizing: border-box;
}

#tsparticles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: var(--z-background);
}

#quote-overlay {
  position: fixed;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  text-align: center;
  padding: 20px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  z-index: var(--z-overlay);
  white-space: pre-wrap;
  opacity: 0;
  transition: opacity 4s ease-in-out;
}

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(13,17,23,0.8);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  font-size: 2em;
  padding-top: 10vh;
  z-index: var(--z-loading);
}

.loading-status {
  font-size: 0.5em;
  margin-top: 10px;
  text-align: center;
}

.fade {
  animation: fade-in 0.5s;
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.console-box {
  font-size: 0.4em;
  background: var(--background-paper);
  color: var(--text-color);
  padding: 5px;
  margin: 10px auto 0;
  width: 66%;
  /* allow page scrolling instead of container scroll */
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
  max-height: 20em;
  overflow-y: auto;
  overflow-x: hidden;
  border: 1px solid var(--border-color);
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* Internet Explorer 10+ */
}

.console-box::-webkit-scrollbar {
  display: none; /* Safari and Chrome */
}

.cancel-button {
  margin-top: 0;
  font-size: 0.4em;
  background: var(--background-paper);
  border: 1px solid var(--border-color);
  color: var(--primary-color);
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
}

.cancel-button:hover {
  background: var(--border-color);
  color: var(--primary-color);
}

.console-toggle {
  margin-top: 0;
  font-size: 0.4em;
  background: var(--background-paper);
  border: 1px solid var(--border-color);
  color: var(--primary-color);
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
}

.console-toggle:hover {
  background: var(--border-color);
  color: var(--primary-color);
}

.loading-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 15px;
}

.bounce-char {
  display: inline-block;
  animation: bounce 1s infinite;
}

@keyframes bounce {
  0%, 80%, 100% { transform: translateY(0); }
  /* Reduced bounce amplitude for a smoother effect */
  40% { transform: translateY(-10px); }
}


.cve-inline {
  font-size: 0.8em;
  margin-left: 6px;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  min-width: 0;
}

.cve-column {
  font-size: 0.8em;
  margin-left: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.cve-column-leftright {
  font-size: 0.8em;
  margin-left: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}

.cve-toggle {
  margin-left: 8px;
  cursor: pointer;
  color: var(--warning-color);
  font-weight: bold;
}


.risk-low {
  --risk-color: var(--success-color);
  --risk-dark-color: var(--success-dark-color);
  color: var(--risk-color);
}

.risk-medium {
  --risk-color: var(--warning-color);
  --risk-dark-color: var(--warning-dark-color);
  color: var(--risk-color);
}

.risk-high {
  --risk-color: var(--error-color);
  --risk-dark-color: var(--error-dark-color);
  color: var(--risk-color);
}

.risk-critical {
  --risk-color: var(--error-color);
  --risk-dark-color: var(--error-dark-color);
  color: var(--risk-color);
  font-weight: bold;
}

.risk-none {
  --risk-color: var(--neutral-color);
  --risk-dark-color: var(--neutral-dark-color);
  color: var(--risk-color);
}

.risk-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: currentColor;
  margin-right: 6px;
}

.version-suggestions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  margin-top: 0;
  padding-top: 4px;
  min-height: 32px;
  width: 100%;
}

.version-suggestions button {
  margin: 0;
  background: var(--background-paper);
  color: var(--primary-color);
  border: 1px solid var(--border-color);
}

.version-suggestions button:hover {
  background: var(--border-color);
  color: var(--primary-color);
}

.load-more-btn {
  background: var(--background-paper);
  color: var(--text-color);
  border: 1px solid var(--border-color);
}

.load-more-btn:hover {
  background: var(--background-paper);
}


.page-footer {
  background: var(--header-bg);
  border-top: 1px solid var(--border-color);
  text-align: center;
  font-size: 1em;
  padding: 15px 0;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.4);
}


.page-footer a {
  font-size: 1em;
  color: #ffffff;
  text-decoration: none;
}

.page-footer a.footer-parrot-link {
  display: block;
  width: 32px;
  margin: 0 auto;
}

.page-footer img.footer-parrot {
  width: 32px;
  height: 32px;
  display: block;
  margin: 0 auto;
}

/* Speech bubble for the parrot */
.page-footer a.footer-parrot-link {
  position: relative;
}

.page-footer a.footer-parrot-link::after {
  content: "HELLO!!!";
  position: absolute;
  bottom: 42px;
  left: calc(40% - 15px);
  transform: translateX(-50%);
  background: #ffffff;
  color: #000000;
  border: 2px solid #000000;
  border-radius: 8px;
  padding: 4px 8px;
  font-family: 'Comic Sans MS', 'Comic Neue', cursive;
  font-weight: bold;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease-in-out;
  z-index: var(--z-tooltip);
}

.page-footer a.footer-parrot-link::before {
  content: "";
  position: absolute;
  bottom: 32px;
  left: calc(40% - 15px);
  transform: translateX(-50%);
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid #ffffff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease-in-out;
  z-index: var(--z-tooltip);
}

.page-footer a.footer-parrot-link:hover::after,
.page-footer a.footer-parrot-link:hover::before {
  opacity: 1;
}

a, a:visited {
  color: #ffffff;
}

a:hover {
  color: #d0d7de;
}

.cve-inline a,
.cve-inline a:visited,
.cve-column a,
.cve-column a:visited,
.cve-column-leftright a,
.cve-column-leftright a:visited {
  display: block;
  background: var(--background-paper);
  border: 1px solid var(--border-color);
  color: #ffffff;
  padding: 2px 4px;
  border-radius: 4px;
  font-size: 0.75em;
  text-decoration: none;
}

.cve-inline a:hover,
.cve-column a:hover,
.cve-column-leftright a:hover {
  text-decoration: underline;
}

/* Timeout alert styles */
.alert-icon-container {
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  cursor: pointer;
  z-index: var(--z-alert);
}

.alert-icon {
  width: 24px;
  height: 24px;
  color: #fff;
}

.bell-bounce {
  animation: bell-bounce 0.6s ease;
}

@keyframes bell-bounce {
  0%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-6px); }
}

.notification-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 10px;
  height: 10px;
  background: var(--warning-color);
  border-radius: 50%;
  border: 1px solid #fff;
}

.alert-box {
  display: none;
  position: absolute;
  top: 30px;
  right: 0;
  left: auto;
  background: var(--background-paper);
  color: var(--text-color);
  border-left: 4px solid var(--warning-color);
  padding: 5px 8px;
  width: 220px;
  font-size: 0.6em;
}

.alert-icon-container:hover .alert-box {
  display: block;
}

/* Palette icon and color selector */
.palette-icon-container {
  position: absolute;
  top: 50%;
  right: 60px;
  transform: translateY(-50%);
  cursor: pointer;
  z-index: var(--z-palette-icon);
}

.palette-icon {
  width: 24px;
  height: 24px;
  color: #fff;
}

.palette-box {
  position: fixed;
  top: 60px;
  right: 60px;
  background: var(--background-paper);
  color: var(--text-color);
  padding: 6px 8px;
  width: 220px;
  font-size: 0.6em;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-left: 4px solid var(--primary-color);
  z-index: var(--z-palette-box);
}

.palette-box label {
  display: flex;
  flex-direction: column;
  font-size: 0.8em;
}

.palette-box input[type="range"] {
  width: 100%;
}

.alert-toast {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translate(-50%, -150%);
  background: var(--background-paper);
  color: var(--text-color);
  border-left: 4px solid var(--warning-color);
  padding: 8px 12px;
  font-size: 0.8em;
  z-index: var(--z-alert);
  animation: alert-slide 3s forwards;
}

@keyframes alert-slide {
  0% {
    transform: translate(-50%, -150%);
  }
  10% {
    transform: translate(-50%, 0);
  }
  90% {
    transform: translate(-50%, 0);
  }
  100% {
    transform: translate(-50%, -150%);
  }
}


/* Mobile adjustments */
@media (max-width: 600px) {
  body {
    margin: 10px;
  }

  .columns {
    flex-direction: column;
    gap: 20px;
  }

  .page-title {
    width: 100%;
    margin: 0 0 10px;
    box-sizing: border-box;
    padding: 10px;
    font-family: 'Inter', 'Roboto', Arial, sans-serif;
    font-weight: 500;
  }

  .console-box {
    width: 100%;
  }

  .page-footer {
    position: static;
    margin: 20px -10px 0;
    width: calc(100% + 20px);
  }

  .check-score-wrapper {
    width: 100%;
  }

  .scorecard-progress.small {
    height: 8px;
    width: 100%;
  }

  .fields-row,
  .options-row {
    flex-wrap: wrap;
  }

  .options-row {
    margin-left: 0;
  }

  .repo-columns {
    flex-direction: column;
  }

  .repo-column {
    min-width: 100%;
  }

  .graph-controls {
    position: static;
    margin-top: 10px;
    justify-content: flex-end;
  }
}
