:root {
  --chrome-bg: #0b1220;
  --chrome-text: #e8eef8;
  --chrome-muted: #9bb0c9;
  --chrome-line: #243552;
  --chrome-accent: #3ecf8e;
  --chrome-link: #8ec8ff;
  --chrome-chip-bg: #1e3a2f;
}

html[data-theme="light"] {
  --chrome-bg: #f4f7fb;
  --chrome-text: #142033;
  --chrome-muted: #5a6f88;
  --chrome-line: #c9d7e8;
  --chrome-accent: #0f8a5f;
  --chrome-link: #1a66b8;
  --chrome-chip-bg: #d8f3e6;
}

html[data-scheme="sand"] {
  --chrome-accent: #e0a45a;
  --chrome-link: #f0c98a;
}
html[data-theme="light"][data-scheme="sand"] {
  --chrome-bg: #f7f1e8;
  --chrome-text: #2a2118;
  --chrome-muted: #7a6550;
  --chrome-line: #e0d2bf;
  --chrome-accent: #b56b2a;
  --chrome-link: #8a5520;
  --chrome-chip-bg: #f3e0c4;
}

html[data-scheme="forest"] {
  --chrome-accent: #5dce8a;
  --chrome-link: #9ad4b0;
}
html[data-theme="light"][data-scheme="forest"] {
  --chrome-bg: #eef6f0;
  --chrome-text: #14241a;
  --chrome-muted: #567263;
  --chrome-line: #c5d9cc;
  --chrome-accent: #1f7a48;
  --chrome-link: #1f6b45;
  --chrome-chip-bg: #d5efe0;
}

html[data-scheme="slate"] {
  --chrome-accent: #7aa2ff;
  --chrome-link: #a8c4ff;
}
html[data-theme="light"][data-scheme="slate"] {
  --chrome-bg: #eef0f4;
  --chrome-text: #1a1e28;
  --chrome-muted: #5c6575;
  --chrome-line: #cfd5e0;
  --chrome-accent: #3a5fc8;
  --chrome-link: #2f56b0;
  --chrome-chip-bg: #dde6ff;
}

.chrome {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.15rem;
  background: var(--chrome-bg);
  color: var(--chrome-text);
  border-bottom: 1px solid var(--chrome-line);
  position: sticky;
  top: 0;
  z-index: 20;
}

.chrome a {
  color: var(--chrome-link);
  text-decoration: none;
}

.chrome .brand {
  font-weight: 700;
  color: var(--chrome-text);
  letter-spacing: -0.02em;
}

.chrome nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.7rem;
  font-size: 0.88rem;
}

.chrome nav a[aria-current="page"] {
  color: var(--chrome-accent);
  font-weight: 600;
}

.chrome-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.65rem;
  align-items: center;
}

.theme-ctrl {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  color: var(--chrome-muted);
}

.theme-ctrl select {
  background: var(--chrome-bg);
  color: var(--chrome-text);
  border: 1px solid var(--chrome-line);
  border-radius: 6px;
  padding: 0.2rem 0.35rem;
  font: inherit;
}

.tier-chip {
  font-size: 0.78rem;
  border: 1px solid var(--chrome-line);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  color: var(--chrome-accent) !important;
  background: var(--chrome-chip-bg);
}

.page-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.1rem 1rem 3rem;
}

.sk-circles {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
}

.sk-circle {
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 50%;
  display: inline-block;
  flex: 0 0 auto;
}

.sk-circle.white {
  background: #f4f6fa;
  box-shadow: inset 0 0 0 1px #c5ced8;
}

.sk-circle.blue { background: #2b7fff; }
.sk-circle.green { background: #34a853; }
.sk-circle.orange { background: #f0a202; }
.sk-circle.red { background: #e53935; }

.skill-caption, .skill-key {
  color: var(--chrome-muted, #9bb0c9);
  font-size: 0.78rem;
}

.skill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.7rem;
  align-items: center;
}
