/* 管控端套件详情与文件更新：延续现有白底、紫色交互样式。 */
.suv-suite-link { padding: 0; border: 0; background: transparent; color: var(--accent); font: inherit; font-weight: 600; cursor: pointer; text-align: left; }
.suv-suite-link:hover { text-decoration: underline; }
.suv-source { display: block; margin-top: 5px; color: var(--ink-3); font-size: 12px; }
.suv-preview-version { margin-bottom: 16px; color: var(--ink-3); font-size: 12px; }
.suv-empty { padding: 60px 12px; text-align: center; color: var(--ink-3); }
.suv-version-number { padding: 0; border: 0; background: transparent; cursor: pointer; font-family: inherit; }
.suv-version-number:hover { color: var(--accent); }
.suv-header-actions .btn:disabled, .suv-upload-footer .btn:disabled { cursor: not-allowed; opacity: .45; }
.modal.suv-detail-modal > [role="dialog"] { display: flex; flex-direction: column; min-height: 0; max-height: calc(100dvh - 80px); }
.modal.suv-detail-modal {
  width: calc(100vw - 48px);
  max-width: 1000px;
  max-height: calc(100vh - 80px);
  max-height: calc(100dvh - 80px);
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
}
.suv-header {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 0 0 auto;
  padding: 30px 32px 0;
}
.suv-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 56px;
  height: 56px;
  border: 1px solid var(--line, #e5e6eb);
  border-radius: 12px;
  background: #fff;
  color: var(--ink, #1d2129);
  font-size: 28px;
  box-shadow: inset 0 0 0 2px var(--bg, #f5f6f8);
}
.suv-icon svg { width: 32px; height: 32px; }
.suv-identity { flex: 1; min-width: 0; }
.suv-title-line {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.suv-title-line h2 {
  margin: 0;
  color: var(--ink, #1d2129);
  font-size: 22px;
  font-weight: 600;
  line-height: 32px;
  overflow-wrap: anywhere;
}
.suv-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 1px 7px;
  border-radius: 4px;
  background: var(--bg, #f5f6f8);
  color: var(--ink-3, #86909c);
  font-size: 12px;
  font-weight: 400;
  line-height: 20px;
  white-space: nowrap;
}
.suv-badge.current { background: var(--accent-soft, #eef0ff); color: var(--accent, #4040ff); }
.suv-badge.draft { background: var(--bg, #f5f6f8); color: var(--ink-3, #86909c); }
.suv-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex: none;
}
.suv-header-actions .btn { justify-content: center; min-width: 82px; height: 36px; border-radius: 6px; }
.suv-header-actions .btn-pri { background: var(--accent, #4040ff); color: #fff; }
.suv-header-actions .btn-pri:not(:disabled):hover { background: var(--accent-2, #5b5bff); }
.suv-close {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  flex: none;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink-3, #86909c);
  cursor: pointer;
}
.suv-close:hover { background: var(--bg, #f5f6f8); color: var(--ink, #1d2129); }
.suv-close svg { width: 20px; height: 20px; }
.suv-description {
  flex: 0 0 auto;
  margin: 20px 32px 22px;
  color: var(--ink-2, #4e5969);
  font-size: 13px;
  line-height: 1.8;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.suv-tabs {
  display: flex;
  align-items: stretch;
  gap: 28px;
  min-height: 46px;
  margin: 0 32px;
  flex: 0 0 auto;
  border-bottom: 1px solid var(--line, #e5e6eb);
}
.suv-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0 1px;
  border: 0;
  background: transparent;
  color: var(--ink-2, #4e5969);
  font: inherit;
  font-size: 14px;
  line-height: 22px;
  cursor: pointer;
}
.suv-tab:hover, .suv-tab.active { color: var(--accent, #4040ff); }
.suv-tab.active { font-weight: 500; }
.suv-tab.active::after { content: ""; position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; background: var(--accent, #4040ff); }
.suv-panel {
  flex: 1 1 auto;
  min-height: 240px;
  padding: 24px 32px 32px;
  overflow: auto;
  overscroll-behavior: contain;
}
.suv-skill-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.suv-skill-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
  min-height: 88px;
  padding: 18px 16px;
  border: 1px solid var(--line, #e5e6eb);
  border-radius: 8px;
  background: #fff;
}
.suv-skill-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line-2, #eff0f2);
  border-radius: 7px;
  color: var(--ink, #1d2129);
  background: #fff;
  font-size: 22px;
}
.suv-skill-icon svg { width: 23px; height: 23px; }
.suv-skill-card > div { min-width: 0; }
.suv-skill-card h3 {
  margin: 0;
  overflow: hidden;
  color: var(--ink, #1d2129);
  font-size: 14px;
  font-weight: 500;
  line-height: 22px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.suv-skill-card p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  margin: 7px 0 0;
  overflow: hidden;
  color: var(--ink-3, #86909c);
  font-size: 12px;
  line-height: 20px;
  overflow-wrap: anywhere;
}
.suv-version-list { min-width: 0; background: #fff; }
.suv-version-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-2, #eff0f2);
}
.suv-version-row:first-child { padding-top: 6px; min-height: 56px; }
.suv-version-row:last-child { border-bottom: 0; }
.suv-version-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; min-width: 0; }
.suv-version-number { color: var(--ink, #1d2129); font-size: 14px; font-weight: 500; line-height: 22px; overflow-wrap: anywhere; }
.suv-version-date { color: var(--ink-3, #86909c); font-size: 13px; line-height: 22px; white-space: nowrap; }
.suv-tab:focus-visible, .suv-close:focus-visible { outline: 2px solid var(--accent, #4040ff); outline-offset: 3px; }

.modal.suv-upload-modal {
  width: 540px;
  max-width: calc(100vw - 48px);
  max-height: calc(100vh - 80px);
  max-height: calc(100dvh - 80px);
  padding: 30px 32px 28px;
  overflow-y: auto;
  border-radius: 12px;
  background: #fff;
}
.suv-upload-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex: none; margin-bottom: 24px; color: var(--ink, #1d2129); font-size: 22px; font-weight: 600; line-height: 30px; }
.suv-upload-header h2, .suv-upload-header h3 { margin: 0; font: inherit; }
.suv-drop {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  flex-direction: column;
  min-height: 164px;
  padding: 24px;
  border: 1px dashed #d3d6dc;
  border-radius: 8px;
  background: #f7f8fa;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.suv-drop:hover, .suv-drop:focus-within, .suv-drop.dragging, .suv-drop[dragging]:not([dragging="false"]) { border-color: var(--accent, #4040ff); background: var(--accent-soft, #eef0ff); }
.suv-drop:focus-within { outline: 2px solid var(--accent, #4040ff); outline-offset: 3px; }
.suv-drop input[type="file"] { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; padding: 0; opacity: 0; cursor: pointer; }
.suv-upload-icon { display: grid; place-items: center; margin-bottom: 12px; color: var(--ink-3, #86909c); }
.suv-upload-icon svg { display: block; width: 28px; height: 28px; }
.suv-upload-title { max-width: 100%; color: var(--ink, #1d2129); font-size: 16px; font-weight: 500; line-height: 25px; overflow-wrap: anywhere; }
.suv-upload-subtitle { margin-top: 4px; color: var(--ink-3, #86909c); font-size: 14px; line-height: 22px; }
.suv-upload-help { margin-top: 20px; color: var(--ink-3, #86909c); font-size: 14px; line-height: 1.8; }
.suv-upload-help > p, .suv-upload-help > strong { display: block; margin: 0 0 10px; font-size: inherit; font-weight: 400; }
.suv-upload-help ol { margin: 0; padding-left: 21px; }
.suv-upload-help li { margin-top: 4px; padding-left: 1px; }
.suv-upload-error { margin-top: 10px; color: var(--red, #f53f3f); font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.suv-upload-error:empty { display: none; }
.suv-upload-footer { display: flex; align-items: center; justify-content: flex-end; gap: 14px; flex: none; margin-top: 30px; }
.suv-upload-footer .btn { justify-content: center; min-width: 94px; height: 40px; border-radius: 6px; font-size: 15px; font-weight: 400; }
.suv-upload-footer .btn-pri { background: var(--accent, #4040ff); color: #fff; }
.suv-upload-footer .btn-pri:not(:disabled):hover { background: var(--accent-2, #5b5bff); }
.suv-upload-footer .btn-pri:disabled { border-color: #f7f7f9; background: #f7f7f9; color: #b7bac2; opacity: 1; }

@media (max-width: 900px) {
  .suv-header { padding: 26px 24px 0; }
  .suv-description { margin-right: 24px; margin-left: 24px; }
  .suv-tabs { margin-right: 24px; margin-left: 24px; }
  .suv-panel { padding: 22px 24px 28px; }
  .suv-skill-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .modal.suv-detail-modal { width: calc(100vw - 32px); max-height: calc(100dvh - 32px); }
  .suv-header { flex-wrap: wrap; gap: 12px; padding: 22px 20px 0; }
  .suv-icon { width: 48px; height: 48px; border-radius: 10px; }
  .suv-icon svg { width: 28px; height: 28px; }
  .suv-title-line { gap: 7px; }
  .suv-title-line h2 { font-size: 19px; line-height: 28px; }
  .suv-header-actions { flex-wrap: wrap; margin-left: auto; }
  .suv-header-actions .btn { min-width: 70px; }
  .suv-description { margin: 18px 20px; }
  .suv-tabs { margin-right: 20px; margin-left: 20px; }
  .suv-panel { min-height: 180px; padding: 20px; }
  .suv-skill-grid { grid-template-columns: 1fr; gap: 12px; }
  .suv-skill-card { min-height: 96px; padding: 16px; }
  .suv-version-row { gap: 12px; }
  .suv-version-meta { gap: 8px; }
  .suv-version-date { font-size: 12px; }
  .modal.suv-upload-modal { max-width: calc(100vw - 32px); max-height: calc(100dvh - 32px); padding: 24px 20px; }
  .suv-upload-header { margin-bottom: 20px; font-size: 20px; }
  .suv-drop { min-height: 154px; padding: 20px 12px; }
  .suv-upload-help { font-size: 13px; }
  .suv-upload-footer { margin-top: 26px; gap: 12px; }
}

/* 套件管理列表：与管控端参考图一致的页签、工具栏与分发表格。 */
.page:has(> .sml-page) { padding: 0; background: #fff; }
.sml-page {
  display: flex;
  flex-direction: column;
  min-height: calc(100dvh - 56px);
  background: #fff;
  color: #1d2129;
  font-family: 'PingFang SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
}
.sml-heading { flex: none; padding: 24px 32px 20px; }
.sml-heading h1 { margin: 0; color: #111; font-size: 20px; font-weight: 600; line-height: 30px; }
.sml-source-tabs {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  min-height: 40px;
  flex: none;
  padding: 0 32px;
  border-bottom: 1px solid #e5e6eb;
}
.sml-source-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  min-width: 110px;
  margin-bottom: -1px;
  padding: 0 16px;
  border: 1px solid #e1e5eb;
  border-radius: 6px 6px 0 0;
  background: #f6f7fa;
  color: #5d697c;
  font: inherit;
  white-space: nowrap;
  cursor: pointer;
}
.sml-source-tab.active { border-bottom-color: #fff; background: #fff; color: #4034ff; font-weight: 600; }
.sml-source-tab.active::before { position: absolute; top: -1px; right: -1px; left: -1px; height: 2px; border-radius: 6px 6px 0 0; background: #493cff; content: ''; }
.sml-source-tab:not(.active):hover { color: #4034ff; background: #fafaff; }
.sml-body { display: flex; flex: 1; flex-direction: column; min-width: 0; padding: 20px 32px 0; }
.sml-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex: none; margin-bottom: 20px; }
.sml-toolbar-left, .sml-toolbar-right { display: flex; align-items: center; gap: 8px; }
.sml-toolbar-left { min-width: 0; }
.sml-toolbar-right { margin-left: auto; flex: none; }
.sml-search { position: relative; width: 240px; height: 32px; flex: none; }
.sml-search input { width: 100%; height: 100%; padding: 0 34px 0 12px; border: 1px solid #e0e4eb; border-radius: 6px; background: #fff; color: #1d2129; font: inherit; font-size: 13px; outline: none; }
.sml-search input::placeholder { color: #a6b0c3; opacity: 1; }
.sml-search input:focus { border-color: #776cff; box-shadow: 0 0 0 2px rgba(64,64,255,.06); }
.sml-search > svg { position: absolute; top: 9px; right: 12px; width: 15px; height: 15px; color: #59667b; pointer-events: none; }
.sml-pending-filter { display: inline-flex; align-items: center; gap: 8px; color: #151515; font-size: 13px; line-height: 20px; white-space: nowrap; cursor: pointer; }
.sml-page input[type='checkbox'] { appearance: none; display: inline-grid; place-content: center; width: 16px; height: 16px; margin: 0; flex: none; border: 1px solid #dfe5ee; border-radius: 4px; background: #fff; vertical-align: middle; cursor: pointer; }
.sml-page input[type='checkbox']:checked { border-color: #4034ff; background: #4034ff; }
.sml-page input[type='checkbox']:checked::after { width: 8px; height: 4px; margin-top: -2px; transform: rotate(-45deg); border-bottom: 1.5px solid #fff; border-left: 1.5px solid #fff; content: ''; }
.sml-page input[type='checkbox']:indeterminate { border-color: #4034ff; background: #4034ff; }
.sml-page input[type='checkbox']:indeterminate::after { width: 8px; height: 1.5px; background: #fff; content: ''; }
.sml-page input[type='checkbox']:disabled { background: #f6f7f9; cursor: not-allowed; }
.sml-toolbar-right > button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 32px;
  padding: 0 14px;
  border: 1px solid #dfe3eb;
  border-radius: 6px;
  background: #fff;
  color: #111;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
  cursor: pointer;
}
.sml-toolbar-right > button svg { width: 16px; height: 16px; flex: none; }
.sml-toolbar-right > button.sml-refresh { width: 32px; padding: 0; }
.sml-toolbar-right > button.sml-refresh svg { width: 18px; height: 18px; }
.sml-toolbar-right > button.sml-push { padding: 0 16px; }
.sml-toolbar-right > button.sml-create { padding: 0 16px; border-color: #4030ff; background: #4030ff; color: #fff; box-shadow: 0 2px 4px rgba(51,40,220,.13); }
.sml-toolbar-right > button.sml-create svg { width: 15px; height: 15px; }
.sml-toolbar-right > button:hover:not(:disabled) { border-color: #8b83ff; color: #4034ff; }
.sml-toolbar-right > button.sml-create:hover:not(:disabled) { background: #5145ff; color: #fff; }
.sml-toolbar-right > button:disabled { border-color: #eff1f5; color: #aaa; background: #fff; box-shadow: none; cursor: not-allowed; }
.sml-table-card { display: flex; flex: 1; flex-direction: column; min-width: 0; min-height: 380px; overflow: hidden; border: 1px solid #e8eaf0; border-radius: 6px 6px 0 0; background: #fff; }
.sml-table-scroll { flex: 1; overflow-x: auto; }
.sml-table { width: 100%; min-width: 920px; border-collapse: collapse; table-layout: fixed; }
.sml-table th { height: 42px; padding: 0 12px; border-bottom: 1px solid #e9ecf1; background: #f7f8fb; color: #5b6578; font-size: 13px; font-weight: 600; text-align: left; white-space: nowrap; }
.sml-table th:first-child, .sml-table td:first-child { padding-left: 12px; padding-right: 6px; }
.sml-table td { height: 60px; padding: 10px 12px; border-bottom: 1px solid #e9ecf1; background: #fff; color: #171717; vertical-align: middle; }
.sml-col-title { display: inline-flex; align-items: center; gap: 6px; }
.sml-col-title > svg { width: 14px; height: 14px; color: #8792a5; }
.sml-icon-button { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 20px; padding: 0; border: 0; background: transparent; color: #8792a5; vertical-align: middle; cursor: pointer; }
.sml-icon-button svg { display: block; width: 14px; height: 14px; }
.sml-icon-button:hover { color: #4034ff; }
.sml-table th:first-child .sml-icon-button { margin-left: 3px; }
.sml-name-cell { display: flex; align-items: center; gap: 12px; min-width: 0; }
.sml-suite-icon { display: grid; place-items: center; width: 26px; height: 26px; flex: none; border: 1px solid #e8ebf1; border-radius: 6px; background: #fff; color: #080808; }
.sml-suite-icon svg { display: block; width: 19px; height: 19px; }
.sml-name-copy { flex: 1; min-width: 0; }
.sml-name-line { display: flex; align-items: center; gap: 8px; min-width: 0; }
.sml-name-line .suv-suite-link { overflow: hidden; color: #493bff; font-size: 13px; font-weight: 400; line-height: 20px; text-overflow: ellipsis; white-space: nowrap; }
.sml-pending-tag { display: inline-flex; align-items: center; flex: none; min-height: 18px; padding: 0 8px; border: 1px solid #ffdab6; border-radius: 10px; background: #fff5e9; color: #ff9238; font-size: 10px; font-weight: 400; line-height: 16px; white-space: nowrap; }
.sml-description { margin-top: 1px; overflow: hidden; color: #959dad; font-size: 12px; line-height: 20px; text-overflow: ellipsis; white-space: nowrap; }
.sml-location-select { appearance: none; width: 142px; height: 32px; padding: 0 32px 0 12px; border: 1px solid #e0e5ed; border-radius: 6px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='m3 4.5 3 3 3-3' stroke='%235b6578' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center; color: #111; font: inherit; font-size: 13px; cursor: pointer; outline: none; }
.sml-location-select:focus { border-color: #776cff; }
.sml-location-select:disabled { background-color: #fafbfc; color: #9aa2b1; cursor: not-allowed; }
.sml-department-text { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; font-size: 13px; line-height: 22px; white-space: nowrap; }
.sml-department-text .sml-icon-button { width: 17px; }
.sml-department-text .sml-icon-button svg { width: 15px; height: 15px; }
.sml-created { font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sml-table .sml-empty { height: 130px; color: #959dad; text-align: center; }
.sml-pagination { display: flex; align-items: center; justify-content: flex-end; gap: 12px; min-height: 72px; flex: none; padding: 20px 32px; color: #111; font-size: 13px; }
.sml-pagination button { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: 0; border-radius: 6px; background: transparent; color: #626e81; font: inherit; }
.sml-pagination button.active, .sml-pagination button[aria-current='page'] { background: #f3f4f9; color: #111; font-weight: 500; }
.sml-pagination button:disabled { color: #bdc4d0; cursor: not-allowed; }
.sml-pagination button svg { width: 14px; height: 14px; }
.sml-pagination select { height: 32px; margin-left: 8px; padding: 0 10px; border: 1px solid #e0e5ed; border-radius: 6px; background: #fff; font: inherit; }
.sml-page button:focus-visible, .sml-page input[type='checkbox']:focus-visible { outline: 2px solid #756bff; outline-offset: 2px; }
@media (max-width: 1120px) {
  .sml-toolbar { flex-wrap: wrap; gap: 12px; }
  .sml-toolbar-right { margin-left: auto; }
  .sml-search { width: 220px; }
}
@media (max-width: 640px) {
  .sml-heading { padding: 20px 20px 16px; }
  .sml-source-tabs { padding-right: 20px; padding-left: 20px; }
  .sml-body { padding: 16px 20px 0; }
  .sml-toolbar-left, .sml-toolbar-right { flex-wrap: wrap; }
  .sml-toolbar-right { margin-left: 0; }
  .sml-search { width: min(220px, 52vw); }
  .sml-pagination { padding-right: 16px; padding-left: 16px; gap: 8px; }
}
.sml-select-all { display:flex; align-items:center; }
.sml-help { display:inline-flex; color:#8792a5; }
.sml-help svg { width:14px; height:14px; }
.sml-icon-button.active { color:#493bff; }
.sml-sort { display:inline-flex; align-items:center; gap:6px; padding:0; border:0; background:transparent; color:inherit; font:inherit; cursor:pointer; }
.sml-sort-arrows { display:flex; flex-direction:column; gap:2px; }
.sml-sort-arrows i { width:0; height:0; border-left:4px solid transparent; border-right:4px solid transparent; border-bottom:5px solid #c4cbd7; }
.sml-sort-arrows i:last-child { transform:rotate(180deg); }
.sml-sort-arrows i.active { border-bottom-color:#493bff; }
.sml-department { display:flex; align-items:center; gap:5px; min-width:0; }
.sml-department-text { display:block; overflow:hidden; text-overflow:ellipsis; }
.sml-table tr.selected td { background:#fafaff; }
.sml-table col:last-child { width:154px !important; }
.sml-page { min-height:100%; }

/* 版本操作与技能版本列表一致：历史还原、原包下载。 */
.suv-version-actions { display:flex; align-items:center; justify-content:flex-end; gap:20px; flex:none; }
.suv-version-actions .btn { justify-content:center; height:34px; padding:0 16px; border-radius:6px; font-size:14px; font-weight:400; white-space:nowrap; }
.suv-version-actions .suv-download { min-width:92px; }
.suv-version-actions .suv-restore { min-width:138px; gap:6px; }
.suv-version-actions .suv-restore svg { width:16px; height:16px; }
.suv-version-actions .btn:disabled { opacity:.45; cursor:not-allowed; }
@media (max-width:640px) {
  .suv-version-row { flex-wrap:wrap; }
  .suv-version-actions { gap:10px; margin-left:auto; }
  .suv-version-actions .btn { padding:0 12px; font-size:13px; }
}
