/* Original Skills Lab: App.vue */

.site-container {
  max-width: 85em;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg-base);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 100px rgba(0, 0, 0, 0.5);
}

main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

/* Original Skills Lab: components/SiteHeader.vue */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 1rem;
  padding: 0 2rem;
  height: 56px;
  background: rgba(10, 11, 14, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-primary);
  text-decoration: none;
}

.nav-logo-text {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.nav-logo-icon {
  font-size: 1.3rem;
}

.nav-logo-icon-img {
  width: 7rem;
  height: auto;
  justify-self: center;
  align-self: center;
  display: flex;
}

.nav-logo-divider {
  color: var(--text-muted);
  font-weight: 300;
}

.nav-brand-suffix {
  display: none;
}

.nav-links {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.875rem;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-sm);
  transition:
    color 0.15s,
    background 0.15s;
}

.nav-links a:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.nav-links a.is-nav-active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
  font-weight: 500;
  text-decoration: none;
}

.nav-right {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-switcher {
  position: relative;
}

.lang-switcher > summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.3rem 0.55rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: transparent;
  transition:
    background 0.15s,
    border-color 0.15s;
}

.lang-switcher > summary::-webkit-details-marker {
  display: none;
}

.lang-switcher > summary:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}

.lang-chevron {
  opacity: 0.75;
}

.lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 9rem;
  padding: 0.35rem 0;
  margin: 0;
  list-style: none;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  z-index: 200;
}

.lang-menu a {
  display: block;
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition:
    background 0.12s,
    color 0.12s;
}

.lang-menu a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
}

.lang-menu a.is-current {
  color: var(--accent-soft);
  font-weight: 600;
  pointer-events: none;
}

.btn-upload {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-on-accent);
  background: var(--accent);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-sm);
  transition: opacity 0.15s;
}

.btn-upload:hover {
  opacity: 0.88;
}

.mobile-nav {
  display: none;
}

.mobile-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  color: var(--text-primary);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.mobile-toggle::-webkit-details-marker {
  display: none;
}

.mobile-nav[open] .icon-open {
  display: none;
}

.mobile-nav:not([open]) .icon-close {
  display: none;
}

.mobile-panel {
  display: none;
}

.mobile-panel a {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 0.9rem;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition:
    color 0.15s,
    background 0.15s;
}

.mobile-panel a:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.mobile-panel a.is-nav-active {
  color: var(--accent-soft);
  font-weight: 600;
  background: rgba(255, 255, 255, 0.06);
}

.mobile-locale > summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 2.75rem;
  padding: 0 0.9rem;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: var(--radius-sm);
}

.mobile-locale > summary::-webkit-details-marker {
  display: none;
}

.mobile-locale-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.mobile-locale-chevron {
  opacity: 0.75;
  transition: transform 0.15s ease;
}

.mobile-locale[open] .mobile-locale-chevron {
  transform: rotate(180deg);
}

.mobile-locale-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem 0.1rem;
}

.mobile-locale-links a {
  min-height: auto;
  padding: 0.35rem 0.7rem;
  font-size: 0.82rem;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.mobile-locale-links a.is-current {
  color: var(--accent-soft);
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

.mobile-upload {
  justify-content: center;
  gap: 0.45rem;
  margin-top: 0.2rem;
  font-weight: 600;
  color: var(--text-on-accent) !important;
  background: var(--accent);
}

@media (max-width: 700px) {
  .nav {
    grid-template-columns: 1fr auto;
    padding: 0 1rem;
  }

  .nav-brand-suffix {
    display: inline;
  }

  .nav-links,
  .nav-right {
    display: none;
  }

  .mobile-nav {
    display: block;
    justify-self: end;
    position: relative;
  }

  .mobile-nav[open] .mobile-panel {
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    width: min(18rem, calc(100vw - 2rem));
    padding: 0.8rem;
    background: rgba(18, 20, 24, 0.97);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(14px);
    z-index: 200;
  }
}

/* Original Skills Lab: components/SiteFooter.vue */

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  border-top: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent 65%), rgba(10, 11, 14, 0.82);
  backdrop-filter: blur(10px);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.footer-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: color 0.15s;
}

.footer-text-highlight {
  font-weight: 600;
}

.footer-brand:hover .footer-text {
  color: var(--text-secondary);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.footer-links a {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-links a:hover {
  color: var(--text-secondary);
}

@media (max-width: 700px) {
  .footer {
    flex-direction: column;
    gap: 0.9rem;
    text-align: center;
    padding: 1rem 1.25rem 1.25rem;
  }
}

/* Original Skills Lab: views/HomeView.vue */

.home {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.hero {
  display: flex;
  justify-content: center;
  border-bottom: 1px solid var(--border);
  background: radial-gradient(ellipse at 50% 80%, rgba(232, 54, 45, 0.04) 0%, transparent 60%);
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 3.5rem 2rem 2.5rem;
  max-width: 680px;
  width: 100%;
  gap: 2rem;
}

.hero-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.3;
  color: var(--text-primary);
}

.hero-highlight {
  color: var(--accent-soft);
}

.main-content {
  display: flex;
  flex: 1;
  min-height: 0;
  min-width: 0;
}

@media (max-width: 900px) {
  .main-content {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-content {
    padding: 2.5rem 1.5rem 2rem;
  }
}

/* Original Skills Lab: components/SearchBar.vue */

.search-bar {
  width: 100%;
  max-width: 540px;
  position: relative;
}

.search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 1rem;
  color: var(--text-muted);
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 0.75rem 3rem 0.75rem 2.75rem;
  font-size: 0.95rem;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  font-family: inherit;
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(232, 54, 45, 0.1);
}

.search-shortcut {
  position: absolute;
  right: 1rem;
  font-size: 0.75rem;
  font-family: 'IBM Plex Mono', monospace;
  color: var(--text-muted);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.1rem 0.4rem;
  pointer-events: none;
}

.search-input:focus ~ .search-shortcut {
  opacity: 0;
}

.search-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 4px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  z-index: 100;
  padding: 0.5rem 0;
  animation: dropdown-in 0.12s ease-out;
}

@keyframes dropdown-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-header {
  padding: 0.25rem 0.75rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.syntax-hint-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.375rem 0.75rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: 4px;
  margin: 0 0.25rem;
  transition: background 0.1s;
}

.syntax-hint-row:hover {
  background: var(--bg-input);
}

.hint-example {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.15rem 0.4rem;
  color: var(--text-primary);
  white-space: nowrap;
  min-width: 5.5rem;
  text-align: left;
}

.hint-prefix {
  color: var(--accent);
  font-weight: 600;
}

.hint-desc {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.suggestions-dropdown {
  max-height: 200px;
  overflow-y: auto;
  padding: 0.25rem 0;
}

.suggestion-item {
  padding: 0.4rem 0.75rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.82rem;
  color: var(--text-primary);
  cursor: pointer;
  border-radius: 4px;
  margin: 0 0.25rem;
  transition: background 0.1s;
  text-align: left;
}

.suggestion-prefix {
  color: var(--accent);
  font-weight: 600;
}

.suggestion-item:hover,
.suggestion-item.selected {
  background: var(--bg-input);
}

/* Original Skills Lab: components/CategorySidebar.vue */

.sidebar {
  display: flex;
  flex-direction: column;
  min-width: 160px;
  padding: 1rem 0;
  border-right: 1px solid var(--border);
  position: sticky;
  top: 56px;
  align-self: flex-start;
  max-height: calc(100vh - 56px);
  overflow-y: auto;
}

.sidebar-divider {
  height: 1px;
  background: var(--border);
  margin: 0.25rem 0;
}

.sidebar-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.6rem 1.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  background: none;
  border: none;
  border-left: 2px solid transparent;
  cursor: pointer;
  transition:
    color 0.15s,
    background 0.15s,
    border-color 0.15s;
  font-family: inherit;
}

.sidebar-item:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.03);
}

.sidebar-item.active {
  color: var(--accent-soft);
  border-left-color: var(--accent);
  background: var(--accent-dim);
  font-weight: 600;
}

@media (max-width: 900px) {
  .sidebar {
    flex-direction: row;
    align-self: stretch;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    border-right: none;
    border-bottom: 1px solid var(--border);
    position: static;
    max-height: none;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0.5rem 1rem;
    gap: 0.25rem;
  }

  .sidebar-divider {
    width: 1px;
    height: auto;
    margin: 0 0.25rem;
  }

  .sidebar-item {
    width: auto;
    flex-shrink: 0;
    white-space: nowrap;
    padding: 0.4rem 0.8rem;
    border-left: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    font-size: 0.8rem;
  }

  .sidebar-item.active {
    border-left-color: transparent;
    border-bottom-color: var(--accent);
  }
}

/* Original Skills Lab: components/SkillGrid.vue */

.skill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  flex: 1;
  align-content: flex-start;
}

.skill-grid > * {
  flex: 1 1 100%;
  min-width: 0;
}

.empty-state {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  flex-basis: 100%;
  max-width: 100%;
  text-align: center;
}

@media (min-width: 720px) {
  .skill-grid > * {
    flex-basis: calc(50% - 0.375rem);
    max-width: calc(50% - 0.375rem);
  }

  .skill-grid > .empty-state {
    flex-basis: 100%;
    max-width: 100%;
  }
}

@media (min-width: 1200px) {
  .skill-grid > * {
    flex-basis: calc((100% - 1.5rem) / 3);
    max-width: calc((100% - 1.5rem) / 3);
  }

  .skill-grid > .empty-state {
    flex-basis: 100%;
    max-width: 100%;
  }
}

/* Original Skills Lab: components/SkillCard.vue */

.skill-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 1rem;
  cursor: pointer;
  transition:
    background 0.2s,
    border-color 0.2s;
  position: relative;
  overflow: hidden;
  min-height: 9rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
}

.skill-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.skill-card:hover,
.skill-card:focus-visible {
  background: var(--bg-card);
  border-color: var(--border-accent);
}

.skill-card:hover::before,
.skill-card:focus-visible::before {
  transform: scaleX(1);
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
}

.card-identity {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  flex: 1;
}

.card-copy {
  min-width: 0;
  flex: 1;
}

.card-actions {
  display: inline-flex;
  align-items: stretch;
  gap: 0.45rem;
  flex-shrink: 0;
}

.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.card-author {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0.3rem 0 0;
}

.install-btn,
.sim-btn {
  display: inline-flex;
  align-items: center;
  align-self: stretch;
  gap: 0.3rem;
  padding: 0.1rem 0.65rem;
  height: 2.1rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    background-position 0.4s ease;
}

.install-btn {
  border: 0.1rem solid var(--accent);
  background: linear-gradient(135deg, var(--accent) 50%, transparent 50%);
  background-size: 300% 300%;
  background-position: 100% 100%;
  color: var(--accent);
}

.install-btn:hover,
.install-btn:focus-visible {
  background-position: 0 0;
  color: #fff;
}

.sim-btn {
  border: 0.1rem solid #54b68b;
  background: rgba(84, 182, 139, 0.12);
  color: #75d7aa;
}

.sim-btn:hover,
.sim-btn:focus-visible {
  background: rgba(84, 182, 139, 0.22);
  color: #dffbed;
}

.card-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
  flex: 0 1 auto;
  min-width: 0;
  min-height: 0;
  max-height: calc(1.55em * 2);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  overflow-wrap: break-word;
}

@media (max-width: 720px) {
  .card-top {
    flex-direction: column;
  }

  .card-actions {
    width: 100%;
  }

  .install-btn,
  .sim-btn {
    justify-content: center;
    flex: 1;
  }
}

/* Original Skills Lab: views/DetailView.vue */

.detail {
  display: flex;
  flex: 1;
  min-height: 0;
  min-width: 0;
}

.detail-sidebar {
  min-width: 180px;
  max-width: 200px;
  border-right: 1px solid var(--border);
  padding: 1rem 0;
  position: sticky;
  top: 56px;
  align-self: flex-start;
  max-height: calc(100vh - 56px);
}

.back-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.25rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.15s;
  margin-bottom: 0.75rem;
}

.back-btn:hover {
  color: var(--text-primary);
}

.back-label {
  display: inline;
}

.detail-nav-scroll {
  min-width: 0;
}

.detail-nav {
  display: flex;
  flex-direction: column;
}

.nav-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.55rem 1.25rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  background: none;
  border: none;
  border-left: 2px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition:
    color 0.15s,
    background 0.15s,
    border-color 0.15s;
}

.nav-item:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.03);
}

.nav-item.active {
  color: var(--accent-soft);
  border-left-color: var(--accent);
  background: var(--accent-dim);
  font-weight: 600;
}

.detail-main {
  flex: 1;
  min-width: 0;
  padding: 2rem 2.5rem;
  overflow-y: auto;
}

.section {
  margin-bottom: 3rem;
}

.section-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.section-title-row .section-title {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: var(--accent-soft);
  text-decoration: none;
  white-space: nowrap;
}

.section-link:hover {
  color: var(--text-primary);
}

.overview-info {
  min-width: 0;
}

.title-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.skill-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin: 0;
}

.skill-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1rem;
  align-items: center;
}

.meta-item {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-family: 'IBM Plex Mono', monospace;
}

.meta-link {
  color: inherit;
  text-decoration: none;
}

.meta-link:hover {
  color: var(--text-primary);
  text-decoration: underline;
}

.meta-counts {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  min-width: 0;
}

.meta-count-button {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0;
  border: none;
  background: none;
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-family: 'IBM Plex Mono', monospace;
  cursor: help;
}

.meta-total {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-family: 'IBM Plex Mono', monospace;
}

.skill-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.skill-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-right: 0.25rem;
}

.tag {
  font-size: 0.72rem;
  padding: 0.15rem 0.55rem;
  border-radius: 100px;
  font-weight: 500;
}

.title-id {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: 'IBM Plex Mono', monospace;
}

.tag-button {
  cursor: pointer;
  font-family: inherit;
  transition:
    transform 0.15s,
    opacity 0.15s;
}

.tag-button:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

.category-tag {
  background: var(--accent-dim);
  color: var(--accent-soft);
  border: 1px solid var(--border-accent);
}

.periph-tag {
  background: rgba(255, 196, 61, 0.14);
  color: #ffcf5a;
  border: 1px solid rgba(255, 196, 61, 0.35);
}

.plain-tag {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.empty-text {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.install-instruction {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.simulator-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
  padding: 0.55rem 0.9rem;
  font-size: 0.84rem;
  font-family: inherit;
  color: #75d7aa;
  background: rgba(84, 182, 139, 0.12);
  border: 1px solid rgba(84, 182, 139, 0.45);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s;
}

.simulator-btn:hover {
  background: rgba(84, 182, 139, 0.22);
  color: #dffbed;
}

.install-note {
  font-size: 0.86rem;
  color: #e1bb62;
  background: rgba(255, 196, 61, 0.16);
  border: 1px solid rgba(255, 196, 61, 0.35);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.85rem;
  margin-bottom: 0.85rem;
}

.install-code-block {
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem;
}

.install-code-block code {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.82rem;
  color: var(--text-primary);
  word-break: break-all;
  line-height: 1.6;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: 0.5rem;
  padding: 0.45rem 0.85rem;
  font-size: 0.78rem;
  font-family: inherit;
  background: var(--accent-dim);
  color: var(--accent-soft);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s;
}

.copy-btn:hover {
  background: rgba(232, 54, 45, 0.15);
}

.copy-btn.copied {
  color: var(--green);
  border-color: rgba(104, 211, 145, 0.3);
  background: var(--green-dim);
}

.loading-state {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .detail {
    flex-direction: column;
  }

  .detail-sidebar {
    position: sticky;
    top: 56px;
    z-index: 90;
    align-self: stretch;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    max-height: none;
    border-right: none;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0.5rem 0 0.5rem 1rem;
    gap: 0.5rem;
    overflow-x: visible;
    background: rgba(10, 11, 14, 0.92);
    backdrop-filter: blur(10px);
  }

  .back-btn {
    margin-bottom: 0;
    flex-shrink: 0;
    padding: 0.5rem 0.65rem;
  }

  .back-label {
    display: none;
  }

  .detail-nav-scroll {
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-right: 1rem;
  }

  .detail-nav {
    flex-direction: row;
    flex-wrap: nowrap;
    flex-shrink: 0;
    gap: 0.25rem;
    width: max-content;
    min-width: 100%;
    box-sizing: border-box;
  }

  .nav-item {
    width: auto;
    flex-shrink: 0;
    white-space: nowrap;
    padding: 0.4rem 0.8rem;
    border-left: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    font-size: 0.8rem;
  }

  .nav-item.active {
    border-left-color: transparent;
    border-bottom-color: var(--accent);
  }

  .detail-main {
    padding: 1.5rem;
  }

  .section-title-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .skill-meta {
    gap: 0.75rem 1.25rem;
  }

  .meta-counts {
    flex-basis: 100%;
  }
}
