:root {
  --bg: #f6f8fa;
  --paper: #ffffff;
  --ink: #24292f;
  --muted: #57606a;
  --line: #d0d7de;
  --soft: #f6f8fa;
  --accent: #0969da;
  --accent-soft: #ddf4ff;
  --green: #1a7f37;
  --shadow: 0 1px 0 rgba(27, 31, 36, 0.04);
  color-scheme: light;
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}

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

button,
input {
  font: inherit;
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 16px 0 40px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  background: rgba(246, 248, 250, 0.92);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 6px;
  background: #24292f;
  color: var(--paper);
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  margin-top: 1px;
  color: var(--muted);
  font-size: 12px;
}

.filter {
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  padding: 7px 10px;
  transition:
    transform 160ms ease,
    background 160ms ease,
    color 160ms ease,
    border-color 160ms ease;
}

.filter:hover {
  background: var(--soft);
  color: var(--ink);
}

.filter:focus-visible,
input:focus-visible,
.link-button:focus-visible,
.more-toggle:focus-visible,
.skill-item:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.intro {
  padding: 28px 0 16px;
}

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

h1 {
  max-width: 780px;
  margin-bottom: 8px;
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: 0;
}

.lede {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.status-panel,
.list-pane,
.detail-pane {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.status-panel {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  padding: 8px 10px;
  box-shadow: none;
}

.stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  padding: 0 10px;
  font-size: 13px;
}

.stat-pill b {
  color: var(--ink);
}

.workspace {
  padding-top: 6px;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
  margin-bottom: 12px;
}

.search-block {
  display: grid;
  gap: 8px;
}

.search-block span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

input {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  padding: 0 14px;
}

.segmented {
  display: flex;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
}

.filter:active,
.link-button:active,
.skill-item:active {
  transform: scale(0.98);
}

.filter.active {
  border-color: rgba(9, 105, 218, 0.24);
  background: var(--accent-soft);
  color: var(--accent);
}

.board {
  display: grid;
  grid-template-columns: 390px minmax(0, 1fr);
  gap: 12px;
  min-height: 520px;
}

.list-pane,
.detail-pane {
  min-width: 0;
  padding: 16px;
}

.pane-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.pane-title h2 {
  margin-bottom: 0;
  font-size: 18px;
}

.pane-title span {
  color: var(--muted);
  font-size: 13px;
}

.skill-list {
  display: grid;
  gap: 8px;
}

.skill-item {
  width: 100%;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  padding: 14px;
  text-align: left;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.skill-item:hover {
  border-color: rgba(9, 105, 218, 0.36);
  background: #f1f3f5;
}

.skill-item.active {
  border-color: rgba(9, 105, 218, 0.5);
  background: var(--accent-soft);
}

.skill-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.skill-title {
  display: block;
  font-size: 17px;
  font-weight: 800;
}

.skill-summary {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 0 9px;
  background: var(--soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.badge.watched {
  background: #fff8c5;
  color: #7d4e00;
}

.badge.heard {
  background: #eceae4;
}

.badge.used {
  background: #dafbe1;
  color: var(--green);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.tag {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  padding: 5px 8px;
}

.detail-placeholder {
  display: grid;
  gap: 8px;
  align-content: center;
  justify-items: center;
  min-height: 360px;
  padding: 28px;
  text-align: center;
  color: var(--muted);
}

.detail-placeholder strong {
  color: var(--ink);
  font-size: 16px;
}

.detail-header {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.detail-header .badge {
  margin-bottom: 10px;
}

.detail-header h2 {
  margin-bottom: 8px;
  font-size: clamp(22px, 2.6vw, 30px);
  letter-spacing: 0;
}

.detail-header p {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.75;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid rgba(9, 105, 218, 0.3);
  border-radius: 6px;
  background: var(--accent);
  color: white;
  padding: 0 14px;
  font-weight: 800;
  transition:
    transform 160ms ease,
    background 160ms ease;
}

.link-button.secondary {
  background: var(--paper);
  color: var(--accent);
}

.link-button.download {
  border-color: rgba(26, 127, 55, 0.28);
  background: var(--green);
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

.field {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--soft);
  padding: 13px;
}

.field span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.field strong {
  overflow-wrap: anywhere;
}

.detail-tags {
  margin-top: 16px;
}

.more-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--soft);
  color: var(--accent);
  padding: 9px 14px;
  font-weight: 700;
  transition:
    background 160ms ease,
    border-color 160ms ease;
}

.more-toggle:hover {
  background: var(--accent-soft);
  border-color: rgba(9, 105, 218, 0.24);
}

.detail-section {
  margin-top: 22px;
}

.detail-section h3 {
  margin-bottom: 10px;
  font-size: 16px;
}

.detail-section ul {
  margin: 0;
  padding-left: 19px;
  color: var(--muted);
  line-height: 1.8;
}

.empty-state {
  border: 1px dashed var(--line);
  border-radius: 6px;
  color: var(--muted);
  padding: 24px;
}

.empty-state strong,
.empty-state span {
  display: block;
}

@media (max-width: 860px) {
  .shell {
    width: min(100% - 24px, 720px);
    padding-bottom: 36px;
  }

  .topbar {
    position: static;
    align-items: stretch;
    flex-direction: column;
  }

  .status-panel {
    justify-content: flex-start;
  }

  .intro,
  .toolbar,
  .board {
    grid-template-columns: 1fr;
  }

  .intro {
    padding-top: 24px;
  }

  h1 {
    font-size: 30px;
  }

  .segmented {
    overflow-x: auto;
  }

  .filter {
    flex: 1;
  }

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

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