/* SkillPool Page Styles - Referenced from Skills */

/* ─── Page Layout ─────────────────────────────────────────────────────────── */
.skillsPage {
  padding: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

/* ─── Header ──────────────────────────────────────────────────────────────── */
.pageHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  padding: 20px;
  border-bottom: 1px solid #eae9e7;
  flex-shrink: 0;
}

/* ─── Scrollable Content ─────────────────────────────────────────────────── */
.content {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}

.breadcrumbHeader {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  flex: 1;
}

.breadcrumbParent {
  color: #999;
  font-weight: 400;
}

.breadcrumbSeparator {
  color: #ccc;
  margin: 0 4px;
}

.breadcrumbCurrent {
  color: #333;
  font-weight: 600;
  font-size: 20px;
}

.headerRight {
  display: flex;
  align-items: center;
  gap: 12px;
}

.headerActionsLeft {
  display: flex;
  align-items: center;
  gap: 8px;
}

.languageToggle {
  display: flex;
  gap: 6px;
}

.importToolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.importToolbarDivider {
  width: 1px;
  height: 16px;
  background: rgba(0, 0, 0, 0.12);
  margin: 0 4px;

  :global(.dark-mode) & {
    background: rgba(255, 255, 255, 0.15);
  }
}

.headerActionsRight {
  display: flex;
  align-items: center;
  gap: 8px;
}

.primaryTransferButton {
  min-width: 108px;
}

.primaryActionButton {
  min-width: 108px;
}

.builtinNoticeSummary {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid rgba(245, 34, 45, 0.18);
  background: rgba(255, 244, 240, 0.96);
}

.builtinNoticeTitle {
  font-size: 14px;
  font-weight: 600;
  color: #cf1322;
}

.builtinNoticeList {
  display: grid;
  gap: 4px;
  font-size: 13px;
  color: rgba(20, 20, 19, 0.88);
}

/* ─── Loading State ───────────────────────────────────────────────────────── */
.loading {
  text-align: center;
  padding: 84px 60px;
}

.loadingText {
  color: #999;
}

.noSearchResults {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 80px 24px;
  color: rgba(20, 20, 19, 0.45);
}

.noSearchResultsIcon {
  font-size: 40px;
  opacity: 0.6;
}

.noSearchResultsText {
  font-size: 14px;
}

/* ─── Toolbar (search + view toggle) ─────────────────────────────────────── */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 0;
  gap: 12px;
}

.searchContainer {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  max-width: 600px;
}

.searchInput {
  flex: 1;
  min-width: 0;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--color-border-secondary, #d9d9d9);
  border-radius: 6px;
  font-size: 14px;
  color: rgba(20, 20, 19, 0.88);
  background: var(--color-bg-base, #ffffff);
  outline: none;
  transition: border-color 0.2s;

  &::placeholder {
    color: rgba(20, 20, 19, 0.25);
  }

  &:focus {
    border-color: #ff7f16;
  }
}

.tagSelect {
  min-width: 160px;
  max-width: 240px;

  :global {
    .ant-select-selector {
      height: 36px !important;
      min-height: 36px;
      padding: 2px 4px;
    }

    .ant-select-selection-search {
      margin-inline-start: 4px;
    }

    .ant-select-selection-item {
      background: rgba(22, 119, 255, 0.08);
      border: 1px solid rgba(22, 119, 255, 0.18);
      color: #1677ff;
      border-radius: 4px;
      padding: 0 8px;
      margin: 2px 4px 2px 0;
      font-size: 12px;
    }
  }
}

.tagSelectEmpty {
  padding: 24px 16px;
  text-align: center;
  color: rgba(20, 20, 19, 0.35);
  font-size: 13px;
}

.filterGroup {
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;

  &:last-child {
    border-bottom: none;
  }
}

.filterGroupTitle {
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.45);
}

.filterOptions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px 12px;
}

.filterOption {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  font-size: 12px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.04);
  color: rgba(0, 0, 0, 0.65);
  cursor: pointer;
  transition: all 0.2s;

  &:hover {
    background: rgba(22, 119, 255, 0.08);
    color: #1677ff;
  }
}

.filterOptionActive {
  background: rgba(22, 119, 255, 0.12);
  color: #1677ff;
  font-weight: 500;
}

.toolbarRight {
  display: flex;
  align-items: center;
  gap: 12px;
}

.viewToggle {
  display: flex;
  align-items: center;
  gap: 4px;
}

.viewToggleBtn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: rgba(20, 20, 19, 0.45);
  cursor: pointer;
  border-radius: 4px;
  font-size: 16px;
  transition: all 0.2s;

  &:hover {
    color: rgba(20, 20, 19, 0.88);
    background: rgba(0, 0, 0, 0.04);
  }

  &.viewToggleBtnActive {
    color: rgba(20, 20, 19, 0.88);
    background: rgba(0, 0, 0, 0.06);
  }
}

/* ─── List Mode ─────────────────────────────────────────────────────────── */
.skillsList {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 16px;
}

.skillListItem {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--color-border-secondary, #eae8e7);
  border-bottom: none;
  background: var(--color-bg-base, #ffffff);
  cursor: pointer;
  transition: background 0.15s ease;
  position: relative;

  &:first-child {
    border-radius: 8px 8px 0 0;
  }

  &:last-child {
    border-bottom: 1px solid var(--color-border-secondary, #eae8e7);
    border-radius: 0 0 8px 8px;
  }

  &:only-child {
    border-radius: 8px;
    border-bottom: 1px solid var(--color-border-secondary, #eae8e7);
  }

  &:hover {
    background: rgba(0, 0, 0, 0.02);
  }
}

.listItemLeft {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.listItemInfo {
  flex: 1;
  min-width: 0;
}

.listItemHeader {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;

  .skillTitle {
    flex: unset;
    min-width: unset;
  }
}

/* List view Built-in badge */
.typeBadge {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 500;
  padding: 1px 8px;
  border-radius: 4px;
  white-space: nowrap;
  background-color: rgba(239, 240, 243, 0.9);
  color: rgba(20, 20, 19, 0.65);
}

/* List view status value badge */
.statusValue {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 500;
  padding: 1px 8px;
  border-radius: 4px;
  white-space: nowrap;

  &.synced {
    background-color: rgba(82, 196, 26, 0.1);
    color: #389e0d;
  }

  &.outdated {
    background-color: rgba(250, 173, 20, 0.12);
    color: #d48806;
  }

  &.neutral {
    background-color: rgba(239, 240, 243, 0.8);
    color: rgba(20, 20, 19, 0.65);
  }
}

.listItemTime {
  font-size: 12px;
  color: rgba(20, 20, 19, 0.45);
}

.listItemDesc {
  margin: 4px 0 0;
  font-size: 13px;
  color: rgba(20, 20, 19, 0.65);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.listItemRight {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  margin-left: 24px;
}

/* ─── Skills Grid ─────────────────────────────────────────────────────────── */
.skillsGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  padding: 16px;
}

/* ─── Status with Select (batch selection) ───────────────────────────────── */
.statusWithSelect {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.selectedListItem {
  background: rgba(255, 127, 22, 0.02);
}

.selectedCard {
  box-shadow: 0 0 0 1px rgba(255, 127, 22, 0.2) !important;
}

.batchActions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.batchCount {
  font-size: 13px;
  color: #666;
  margin-right: 4px;
}

/* ─── Skill Card ──────────────────────────────────────────────────────────── */
.skillCard {
  min-height: 240px;
  height: auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-radius: var(--border-radius, 12px);
  background: var(--color-bg-base, #ffffff);
  border: 1px solid var(--color-border-secondary, #eae8e7);
  box-sizing: border-box;
  transition: all 0.2s ease-in-out;
  position: relative;
  overflow: hidden;

  :global {
    .ant-card-body {
      padding: 0 !important;
    }

    .qwenpaw-spark-card-wrapper {
      padding: 16px !important;
    }
  }

  &:hover {
    border-color: var(--color-border, #d9d9d9);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  }
}

/* Top row: large icon (left) + status badge + checkbox (right) */
.cardTopRow {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.cardTopRight {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

/* Status badge: dot + text */
.statusBadge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;

  &.status_synced {
    color: #17b26a;

    .statusDot {
      background-color: #17b26a;
    }
  }

  &.status_outdated {
    color: #d48806;

    .statusDot {
      background-color: #f5a623;
    }
  }

  &.status_neutral {
    color: rgba(20, 20, 19, 0.45);

    .statusDot {
      background-color: rgba(20, 20, 19, 0.25);
    }
  }
}

.statusDot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.fileIcon {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: #f7f5f3;
  font-size: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.skillEmoji {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: #f7f5f3;
  font-size: 28px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.titleRow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: nowrap;
}

.skillTitle {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: rgba(20, 20, 19, 0.88);
  line-height: 22px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}

/* Built-in / Custom tags */
.builtinTag {
  font-size: 11px;
  padding: 1px 8px;
  border-radius: 4px;
  font-weight: 500;
  background-color: rgba(239, 240, 243, 0.9);
  color: #8e8c99;
  flex-shrink: 0;
  white-space: nowrap;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.customTag {
  font-size: 11px;
  padding: 1px 8px;
  border-radius: 4px;
  font-weight: 500;
  background-color: rgba(255, 247, 230, 0.9);
  color: #d48806;
  flex-shrink: 0;
  white-space: nowrap;
  border: 1px solid rgba(250, 173, 20, 0.2);
}

.autoUpdateTag {
  font-size: 11px;
  padding: 1px 8px;
  border-radius: 4px;
  font-weight: 500;
  background-color: rgba(240, 249, 235, 0.9);
  color: #389e0d;
  flex-shrink: 0;
  white-space: nowrap;
  border: 1px solid rgba(82, 196, 26, 0.2);
}

/* Meta info rows: Updated / Tags */
.metaInfoRow {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  margin-bottom: 6px;

  .metaInfoLabel {
    color: rgba(20, 20, 19, 0.55);
    min-width: 72px;
    flex-shrink: 0;
    padding-top: 2px;
  }

  .metaInfoValue {
    display: flex;
    align-items: center;
    gap: 4px;
    color: rgba(20, 20, 19, 0.88);
    font-weight: 500;
    padding: 1px 8px;
    border-radius: 4px;
    background-color: rgba(239, 240, 243, 0.6);
  }

  .calendarIcon {
    font-size: 11px;
    color: rgba(26, 23, 22, 0.45);
  }
}

/* Description section */
.descriptionSection {
  margin-top: 8px;
  flex: 1;
}

/* preserved for drawer usage */
.metaStack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.infoSection {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.infoLabel {
  font-size: 12px;
  color: rgba(26, 23, 22, 0.65);
}

.infoBlock {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid transparent;

  &.synced {
    background-color: rgba(82, 196, 26, 0.12);
    color: #389e0d;
    border-color: rgba(82, 196, 26, 0.24);
  }

  &.outdated {
    background-color: rgba(250, 173, 20, 0.14);
    color: #d48806;
    border-color: rgba(250, 173, 20, 0.28);
  }

  &.neutral {
    background-color: rgba(239, 240, 243, 0.8);
    color: rgba(20, 20, 19, 0.65);
    border-color: rgba(20, 20, 19, 0.08);
  }
}

/* ─── Tags ────────────────────────────────────────────────────────────────── */

// Tags container above description
.tagsContainer {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 8px;
}

.metaRow {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.metaIcon {
  font-size: 12px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  margin-top: 1px;
}

.metaContent {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  flex: 1;
}

.categoryChip {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 500;
  line-height: 16px;
  padding: 0 6px;
  border-radius: 3px;
  background: rgba(22, 119, 255, 0.08);
  color: #1677ff;
  border: 1px solid rgba(22, 119, 255, 0.18);
  white-space: nowrap;
}

// tag chips: 放在 description 下方，描边无填充，辅助信息
.tagChips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}

.tagChip {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  line-height: 16px;
  padding: 1px 8px;
  border-radius: 4px;
  font-weight: 500;
  background-color: rgba(239, 240, 243, 0.6);
  color: rgba(20, 20, 19, 0.88);
  white-space: nowrap;
}

/* ─── Tags ────────────────────────────────────────────────────────────────── */
.descriptionText {
  border-radius: 4px;
  background: rgba(43, 18, 0, 0.02);
  box-sizing: border-box;
  border: 1px solid #f3f1f0;
  padding: 2px 4px;
  line-height: 20px;
  margin: 0;
  font-size: 13px;
  color: rgba(20, 20, 19, 0.65);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* ─── Meta Info ───────────────────────────────────────────────────────────── */
.metaContainer {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}

.metaItem {
  display: flex;
  align-items: center;
  gap: 8px;
}

.metaLabel {
  font-size: 11px;
  color: rgba(26, 23, 22, 0.65);
  min-width: 60px;
}

.metaValue {
  font-size: 11px;
  color: rgba(20, 20, 19, 0.65);
}

/* ─── Card Footer ─────────────────────────────────────────────────────────── */
.cardFooter {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #fff;
}

.actionButton {
  flex: 1;
  height: 34px;
  font-size: 14px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background-color: #ffffff;
  color: rgba(20, 20, 19, 0.88);
  cursor: pointer;
  border-radius: 8px;
}

.deleteButton {
  flex: 1;
  height: 34px;
  font-size: 14px;
  cursor: pointer;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background-color: #ffffff;
  color: rgba(20, 20, 19, 0.55);
}

.autoUpdateButton {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  cursor: pointer;
  border-radius: 8px;
}

/* ─── Dark Mode ───────────────────────────────────────────────────────────── */
:global(.dark-mode) {
  .fileIcon {
    background: rgba(26, 23, 22, 0.88);
  }

  .pageHeader {
    border-bottom-color: rgba(255, 255, 255, 0.2);
  }

  .breadcrumbParent {
    color: rgba(255, 255, 255, 0.7);
  }

  .breadcrumbSeparator {
    color: rgba(255, 255, 255, 0.5);
  }

  .breadcrumbCurrent {
    color: rgba(255, 255, 255, 1);
  }

  .loadingText {
    color: rgba(255, 255, 255, 0.35);
  }

  .noSearchResults {
    color: rgba(255, 255, 255, 0.45);
  }

  .tagSelectEmpty {
    color: rgba(255, 255, 255, 0.35);
  }

  /* Search input - dark mode */
  .searchInput {
    background: #2a2a2a;
    border-color: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.88);

    &::placeholder {
      color: rgba(255, 255, 255, 0.25);
    }

    &:focus {
      border-color: #ff7f16;
    }
  }

  /* Tag select - dark mode */
  .tagSelect {
    :global {
      .ant-select-selector {
        background: #2a2a2a;
        border-color: rgba(255, 255, 255, 0.15);
      }

      .ant-select-selection-item {
        background: rgba(22, 119, 255, 0.15);
        border-color: rgba(22, 119, 255, 0.3);
        color: #4da3ff;
      }

      .ant-select-selection-placeholder {
        color: rgba(255, 255, 255, 0.25);
      }
    }
  }

  .filterGroup {
    border-bottom-color: rgba(255, 255, 255, 0.1);
  }

  .filterGroupTitle {
    color: rgba(255, 255, 255, 0.45);
  }

  .filterOption {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.65);

    &:hover {
      background: rgba(22, 119, 255, 0.15);
      color: #4da3ff;
    }
  }

  .filterOptionActive {
    background: rgba(22, 119, 255, 0.2);
    color: #4da3ff;
  }

  .selectedCard {
    border-color: #ff7f16 !important;
    box-shadow: 0 0 0 1px rgba(255, 127, 22, 0.3) !important;
  }

  .batchCount {
    color: rgba(255, 255, 255, 0.65);
  }

  .skillCard {
    background: #1f1f1f;
    border-color: rgba(255, 255, 255, 0.15);

    &:hover {
      border-color: rgba(255, 255, 255, 0.3);
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    }
  }

  .skillTitle {
    color: rgba(255, 255, 255, 1);
  }

  .statusBadge {
    &.status_synced {
      color: #4ade80;

      .statusDot {
        background-color: #4ade80;
      }
    }

    &.status_outdated {
      color: #ffc53d;

      .statusDot {
        background-color: #ffc53d;
      }
    }

    &.status_neutral {
      color: rgba(255, 255, 255, 0.45);

      .statusDot {
        background-color: rgba(255, 255, 255, 0.3);
      }
    }
  }

  .builtinTag {
    background-color: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.7);
    border-color: rgba(255, 255, 255, 0.1);
  }

  .customTag {
    background-color: rgba(255, 247, 230, 0.15);
    color: #ffc53d;
    border-color: rgba(250, 173, 20, 0.25);
  }

  .autoUpdateTag {
    background-color: rgba(82, 196, 26, 0.15);
    color: #73d13d;
    border-color: rgba(82, 196, 26, 0.25);
  }

  .metaInfoRow {
    .metaInfoLabel {
      color: rgba(255, 255, 255, 0.5);
    }

    .metaInfoValue {
      color: rgba(255, 255, 255, 0.88);
      background-color: rgba(255, 255, 255, 0.1);
    }

    .calendarIcon {
      color: rgba(255, 255, 255, 0.45);
    }
  }

  .descriptionText {
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
  }

  .infoLabel {
    color: rgba(255, 255, 255, 0.7);
  }

  .infoBlock {
    &.synced {
      background-color: rgba(82, 196, 26, 0.18);
      color: #b7eb8f;
      border-color: rgba(82, 196, 26, 0.32);
    }

    &.outdated {
      background-color: rgba(250, 173, 20, 0.2);
      color: #ffd666;
      border-color: rgba(250, 173, 20, 0.34);
    }

    &.neutral {
      background-color: rgba(255, 255, 255, 0.08);
      color: rgba(255, 255, 255, 0.8);
      border-color: rgba(255, 255, 255, 0.14);
    }
  }

  .cardFooter {
    background: #1f1f1f;
  }

  /* Action button */
  .actionButton {
    background-color: #3a3a3a !important;
    color: rgba(255, 255, 255, 0.88) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
  }

  .deleteButton {
    background-color: #3a3a3a !important;
    color: rgba(255, 255, 255, 0.55) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
  }

  .viewToggleBtn {
    color: rgba(255, 255, 255, 0.45);

    &:hover {
      color: rgba(255, 255, 255, 0.85);
      background: rgba(255, 255, 255, 0.08);
    }

    &.viewToggleBtnActive {
      color: rgba(255, 255, 255, 0.85);
      background: rgba(255, 255, 255, 0.12);
    }
  }

  .skillListItem {
    background: #1f1f1f;
    border-color: rgba(255, 255, 255, 0.15);

    &:hover {
      background: #2a2a2a;
    }
  }

  .listItemTime {
    color: rgba(255, 255, 255, 0.45);
  }

  .listItemDesc {
    color: rgba(255, 255, 255, 0.65);
  }

  .selectedListItem {
    background: rgba(255, 127, 22, 0.05);
  }

  .tagChip {
    background-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.88);
    border-color: rgba(255, 255, 255, 0.15);
  }

  .categoryChip {
    background: rgba(22, 119, 255, 0.15);
    color: #69b1ff;
    border-color: rgba(105, 177, 255, 0.3);
  }

  /* List view status badge */
  .typeBadge {
    background-color: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.8);
  }

  .statusValue {
    &.synced {
      background-color: rgba(82, 196, 26, 0.15);
      color: #67cf22;
    }

    &.outdated {
      background-color: rgba(250, 173, 20, 0.15);
      color: #ffc53d;
    }

    &.neutral {
      background-color: rgba(255, 255, 255, 0.08);
      color: rgba(255, 255, 255, 0.65);
    }
  }

  .metaIcon {
    filter: brightness(1.2);
  }
}

/* ─── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .pageHeader {
    flex-direction: column;
    align-items: stretch;
  }

  .headerRight {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
  }

  .headerActionsLeft,
  .headerActionsRight,
  .batchActions {
    flex-wrap: wrap;
    width: 100%;

    > * {
      flex: 1 0 auto;
      min-width: 0;
    }

    :global(.qwenpaw-btn) {
      min-width: 0;
    }
  }

  .primaryTransferButton,
  .primaryActionButton {
    min-width: 0;
  }

  .importToolbar {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .searchContainer {
    max-width: none;
    width: 100%;
  }

  .searchInput {
    :global(input) {
      text-align: center;
    }
  }

  .tagSelect {
    :global {
      .qwenpaw-select-selection-placeholder,
      .ant-select-selection-placeholder {
        text-align: center;
      }

      .qwenpaw-select-selection-overflow,
      .ant-select-selection-overflow {
        justify-content: center;
      }
    }
  }

  .toolbarRight {
    justify-content: space-between;
    width: 100%;
  }

  .skillsGrid {
    /* Grid columns/gap are handled by the shared .responsive-grid utility. */
    padding: 12px;
  }

  .skillCard {
    min-height: auto;
  }

  :global(.dark-mode) {
    .descriptionText {
      background: rgba(255, 255, 255, 0.04);
      border-color: rgba(255, 255, 255, 0.1);
      color: rgba(255, 255, 255, 0.65);
    }
  }

  .cardFooter {
    position: static;
    margin-top: 12px;
    padding: 0;
    background: transparent;
  }

  .cardTopRight {
    gap: 6px;
  }

  .metaInfoRow {
    flex-wrap: wrap;

    .metaInfoLabel {
      min-width: 64px;
    }
  }
}
