/* ========== 系统设置页面 ========== */
.system-page .fuel-header-spacer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.sys-save-tip {
  font-size: 13px;
  color: #059669;
  padding: 4px 12px;
  border-radius: 999px;
  background: #ecfdf5;
  animation: fadeIn 0.2s ease-out;
}

.sys-body {
  position: relative;
  z-index: 1;
  flex: 1;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0;
  min-height: 0;
  overflow: hidden;
}

.sys-nav {
  padding: 20px 12px;
  border-right: 1px solid rgba(139, 92, 246, 0.12);
  background: rgba(255, 255, 255, 0.5);
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}

.sys-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: #6b7280;
  font-size: 14px;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
}

.sys-nav-item .fa {
  width: 16px;
  text-align: center;
  font-size: 14px;
}

.sys-nav-item:hover {
  background: rgba(139, 92, 246, 0.06);
  color: #7c3aed;
}

.sys-nav-item.active {
  background: rgba(139, 92, 246, 0.12);
  color: #6d28d9;
  font-weight: 500;
}

.sys-content {
  padding: 28px 32px 40px;
  overflow-y: auto;
  max-width: 720px;
}

.sys-section-title {
  font-size: 20px;
  font-weight: 600;
  color: #1f2937;
}

.sys-section-desc {
  font-size: 13px;
  color: #6b7280;
  margin-top: 4px;
  margin-bottom: 20px;
}

.sys-card {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(139, 92, 246, 0.12);
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(139, 92, 246, 0.05);
  overflow: hidden;
  margin-bottom: 16px;
}

.sys-account-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
}

.sys-account-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8b5cf6, #a855f7);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  font-weight: 500;
  flex-shrink: 0;
}

.sys-account-name {
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
}

.sys-account-meta {
  font-size: 13px;
  color: #9ca3af;
  margin-top: 2px;
}

.sys-account-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  color: #7c3aed;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.sys-setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(139, 92, 246, 0.08);
}

.sys-setting-row:last-child {
  border-bottom: none;
}

.sys-setting-row-info {
  flex: 1;
  min-width: 0;
}

.sys-setting-row-label {
  font-size: 14px;
  font-weight: 500;
  color: #1f2937;
}

.sys-setting-row-desc {
  font-size: 12px;
  color: #9ca3af;
  margin-top: 2px;
}

.sys-setting-row-control {
  flex-shrink: 0;
}

.sys-readonly {
  font-size: 14px;
  color: #6b7280;
}

.sys-toggle {
  position: relative;
  width: 44px;
  height: 24px;
  border: none;
  border-radius: 999px;
  background: #e5e7eb;
  cursor: pointer;
  transition: background 0.2s ease;
  padding: 0;
}

.sys-toggle--on {
  background: linear-gradient(135deg, #8b5cf6, #a855f7);
}

.sys-toggle--disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.sys-toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease;
}

.sys-toggle--on .sys-toggle-thumb {
  transform: translateX(20px);
}

.sys-select {
  padding: 6px 28px 6px 12px;
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  color: #374151;
  font-size: 13px;
  cursor: pointer;
  outline: none;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238b5cf6' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  min-width: 120px;
}

.sys-select:focus {
  border-color: rgba(139, 92, 246, 0.45);
}

.sys-depth-hints {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 20px 16px;
}

.sys-depth-tag {
  font-size: 12px;
  color: #9ca3af;
  padding: 4px 0;
}

.sys-depth-tag.active {
  color: #7c3aed;
  font-weight: 500;
}

.sys-privacy-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(139, 92, 246, 0.06);
  border: 1px solid rgba(139, 92, 246, 0.12);
  font-size: 13px;
  color: #6b7280;
  line-height: 1.5;
}

.sys-privacy-note .fa {
  color: #8b5cf6;
  margin-top: 2px;
}

.sys-footer-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  padding-top: 8px;
}

.sys-btn {
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.sys-btn--ghost {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(139, 92, 246, 0.2);
  color: #6b7280;
}

.sys-btn--ghost:hover {
  border-color: rgba(139, 92, 246, 0.35);
  color: #7c3aed;
}

.sys-btn--primary {
  background: linear-gradient(135deg, #8b5cf6, #a855f7);
  color: #fff;
}

.sys-btn--primary:hover {
  opacity: 0.9;
}

@media (max-width: 960px) {
  .sys-body {
    grid-template-columns: 1fr;
  }

  .sys-nav {
    flex-direction: row;
    overflow-x: auto;
    border-right: none;
    border-bottom: 1px solid rgba(139, 92, 246, 0.12);
    padding: 12px;
  }

  .sys-nav-item {
    white-space: nowrap;
    flex-shrink: 0;
  }

  .sys-content {
    padding: 20px 16px 32px;
  }
}

/* ========== 工作台功能页（我的报告 / 尽调记录） ========== */
.ws-page-topbar {
  height: var(--header-bar-height);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 24px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(8px);
  box-sizing: border-box;
}

.sidebar-collapsed .ws-page-topbar {
  padding-left: 20px;
}

.ws-page-topbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.ws-page-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  flex-shrink: 0;
}

.ws-page-heading {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
  overflow: hidden;
}

.ws-page-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.ws-page-subtitle--inline {
  margin-top: 0;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.ws-page-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-page);
  color: var(--text-muted);
  min-width: 240px;
  max-width: 320px;
}

.ws-page-search input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 13px;
  color: var(--text);
  width: 100%;
}

.ws-page-topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.ws-page {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.ws-page-body {
  flex: 1;
  min-width: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 20px 24px 32px;
}

.ws-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.ws-stats--3 {
  grid-template-columns: repeat(3, 1fr);
}

.ws-stat-card {
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-page);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.ws-stat-label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.ws-stat-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.ws-stat-value--primary {
  color: var(--primary);
}

.ws-stat-value--danger {
  color: var(--danger);
}

.ws-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.ws-filters--records .ws-filter-date {
  margin-left: 4px;
}

.ws-filters--records .ws-filter-select-trigger {
  min-width: 148px;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
}

.ws-filter-btn {
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-page);
  color: var(--text-secondary);
  font-size: 13px;
  cursor: pointer;
  transition: all var(--transition);
}

.ws-filter-btn:hover {
  border-color: var(--primary-border);
  color: var(--primary);
}

.ws-filter-btn.active {
  background: var(--primary-light);
  border-color: var(--primary-border);
  color: var(--primary);
  font-weight: 500;
}

.ws-card-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ws-card {
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--bg-page);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.ws-card:hover {
  border-color: var(--primary-border);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.08);
}

.ws-card-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}

.ws-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
}

.ws-card-icon--report {
  background: var(--primary-light);
  color: var(--primary);
}

.ws-card-head-main {
  flex: 1;
  min-width: 0;
}

.ws-card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.ws-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
}

.ws-card-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 12px;
}

.ws-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.ws-tag {
  padding: 2px 10px;
  font-size: 12px;
  border-radius: 999px;
  background: var(--bg-muted);
  color: var(--text-secondary);
}

.ws-tag--status-completed {
  background: #d1fae5;
  color: #059669;
}

.ws-tag--status-processing {
  background: #fef3c7;
  color: #b45309;
}

.ws-tag--edition-premium {
  background: rgba(139, 92, 246, 0.1);
  color: #8b5cf6;
  border: 1px solid rgba(139, 92, 246, 0.2);
  font-weight: 500;
}

.ws-tag--amount {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid rgba(245, 158, 11, 0.22);
  font-weight: 500;
}

.ws-tag--amount-pending {
  background: var(--bg-muted);
  color: var(--text-muted);
  border: 1px dashed var(--border);
  font-weight: 400;
}

.ws-tag--clue {
  background: rgba(139, 92, 246, 0.08);
  color: var(--text-secondary);
}

.ws-tag--edition-basic {
  background: var(--bg-muted);
  color: var(--text-secondary);
}

.ws-card-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
}

.ws-card-foot span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ws-card-value {
  margin-left: auto;
  font-weight: 600;
  color: var(--primary);
}

.ws-card-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.ws-card-actions-label {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1;
}

.ws-card-actions .ws-action-btn-wrap {
  flex: 1;
  min-width: 0;
}

.ws-card-actions .ws-action-btn-wrap.is-disabled {
  cursor: not-allowed;
}

.ws-card-actions .ws-action-btn-wrap.is-disabled .ws-action-btn {
  pointer-events: none;
}

.ws-card-actions .ws-action-btn {
  width: 100%;
  justify-content: center;
  min-width: 0;
  padding: 7px 6px;
  font-size: 11px;
  gap: 4px;
}

.ws-card-actions .ws-action-btn .fa {
  font-size: 12px;
  flex-shrink: 0;
}

.ws-action-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: auto;
}

.ws-action-btn:disabled:hover {
  border-color: var(--border);
  color: var(--text-secondary);
  background: var(--bg-page);
  cursor: not-allowed;
}

.ws-card-actions .ws-action-btn:disabled,
.ws-card-actions .ws-action-btn:disabled:hover {
  cursor: not-allowed;
}

.ws-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-page);
  color: var(--text-secondary);
  font-size: 13px;
  cursor: pointer;
  transition: all var(--transition);
}

.ws-action-btn:hover {
  border-color: var(--primary-border);
  color: var(--primary);
  background: var(--primary-light);
}

.ws-action-btn--primary {
  background: rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.28);
  color: #7c3aed;
}

.ws-action-btn--primary:hover {
  background: rgba(139, 92, 246, 0.16);
  border-color: rgba(139, 92, 246, 0.4);
  color: #6d28d9;
}

.ws-risk-badge {
  flex-shrink: 0;
  padding: 2px 10px;
  font-size: 12px;
  border-radius: 999px;
  font-weight: 500;
}

.ws-risk--low {
  background: #d1fae5;
  color: #059669;
}

.ws-risk--medium {
  background: #fef3c7;
  color: #b45309;
}

.ws-risk--high {
  background: #fee2e2;
  color: #dc2626;
}

.ws-risk--none {
  background: var(--bg-muted);
  color: var(--text-muted);
}

/* —— 我的报告：功能分类 + 筛选栏 —— */
.ws-stats--compact {
  margin-bottom: 16px;
}

.ws-stats--compact .ws-stat-card {
  padding: 12px 16px;
}

.ws-stats--compact .ws-stat-value {
  font-size: 20px;
}

.ws-type-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.ws-type-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-page);
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}

.ws-type-card:hover {
  border-color: var(--primary-border);
  background: var(--primary-light);
}

.ws-type-card.active {
  border-color: var(--primary);
  background: var(--primary-light);
  box-shadow: 0 0 0 1px var(--primary-border);
}

.ws-type-card-icon {
  font-size: 16px;
}

.ws-type-icon--primary { color: var(--primary); }
.ws-type-icon--purple { color: var(--purple-500); }
.ws-type-icon--amber { color: var(--warning); }
.ws-type-icon--green { color: var(--success); }
.ws-type-icon--blue { color: #3b82f6; }
.ws-type-icon--red { color: var(--danger); }

.ws-type-card-name {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.3;
}

.ws-type-card.active .ws-type-card-name {
  color: var(--primary);
  font-weight: 500;
}

.ws-type-card-count {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.ws-filter-bar {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
  margin-bottom: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--bg-page);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.ws-filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.ws-filter-group--search {
  grid-column: span 1;
}

.ws-filter-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}

.ws-select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-page);
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
  outline: none;
  transition: border-color var(--transition);
}

.ws-select:hover,
.ws-select:focus {
  border-color: var(--primary-border);
}

/* 自定义筛选下拉（统一紫色系） */
.ws-filter-select {
  position: relative;
}

.ws-filter-select-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-page);
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
  outline: none;
  transition:
    border-color var(--transition),
    box-shadow var(--transition),
    background var(--transition);
}

.ws-filter-select-trigger:hover,
.ws-filter-select-trigger.open {
  border-color: var(--primary-border);
  background: linear-gradient(180deg, #fdfbff 0%, #ffffff 100%);
}

.ws-filter-select-trigger.open {
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.12);
}

.ws-filter-select-value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
}

.ws-filter-select-chevron {
  flex-shrink: 0;
  font-size: 11px;
  color: var(--text-muted);
  transition: transform var(--transition), color var(--transition);
}

.ws-filter-select-chevron.open {
  transform: rotate(180deg);
  color: var(--primary);
}

.ws-filter-select-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 40;
  margin: 0;
  padding: 4px;
  list-style: none;
  border: 1px solid var(--primary-border);
  border-radius: 8px;
  background: linear-gradient(180deg, #fcfbff 0%, #ffffff 100%);
  box-shadow:
    0 8px 24px rgba(139, 92, 246, 0.14),
    0 2px 8px rgba(0, 0, 0, 0.06);
}

.ws-filter-select-option {
  width: 100%;
  padding: 8px 10px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  transition:
    background var(--transition),
    color var(--transition);
}

.ws-filter-select-option:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.ws-filter-select-option.active {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 500;
}

.ws-filter-bar--reports {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ws-filter-date-icon {
  flex-shrink: 0;
  font-size: 13px;
  color: var(--text-muted);
  transition: color var(--transition);
}

.ws-filter-select-trigger.open .ws-filter-date-icon {
  color: var(--primary);
}

.ws-filter-date-panel {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 40;
  min-width: 280px;
  padding: 10px;
  border: 1px solid var(--primary-border);
  border-radius: 10px;
  background: linear-gradient(180deg, #fcfbff 0%, #ffffff 100%);
  box-shadow:
    0 8px 24px rgba(139, 92, 246, 0.14),
    0 2px 8px rgba(0, 0, 0, 0.06);
}

.ws-filter-date-presets {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  margin-bottom: 10px;
}

.ws-filter-date-fields {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.ws-filter-date-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: var(--text-secondary);
}

.ws-filter-date-field input[type='date'] {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-page);
  color: var(--text);
  font-size: 13px;
  outline: none;
  transition:
    border-color var(--transition),
    box-shadow var(--transition);
}

.ws-filter-date-field input[type='date']:hover,
.ws-filter-date-field input[type='date']:focus {
  border-color: var(--primary-border);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.ws-filter-date-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.ws-filter-date-reset {
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--text-secondary);
  font-size: 13px;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
}

.ws-filter-date-reset:hover {
  background: var(--bg-muted);
}

.ws-filter-date-apply {
  padding: 6px 14px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--purple-500));
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity var(--transition);
}

.ws-filter-date-apply:hover {
  opacity: 0.92;
}

.ws-page-search--inline {
  min-width: 0;
  max-width: none;
  width: 100%;
  border-radius: 8px;
}

.ws-result-meta {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.ws-card-fn-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  color: var(--primary);
  background: var(--primary-light);
  padding: 0 6px;
  border-radius: 4px;
  line-height: 1.6;
}

.ws-card-fn-tag--head {
  flex-shrink: 0;
  padding: 2px 10px;
  font-size: 12px;
  border-radius: 999px;
  line-height: 1.5;
}

.ws-report-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ws-card--grid {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0;
}

.ws-card--grid .ws-card-head {
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.ws-card--grid .ws-card-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 14px;
}

.ws-card--grid .ws-card-title {
  font-size: 15px;
  line-height: 1.45;
  margin-bottom: 0;
}

.ws-card--grid .ws-card-fn-tag--head {
  font-size: 11px;
  padding: 2px 8px;
}

.ws-card-icon--fn {
  background: var(--primary-light);
  color: var(--primary);
}

.ws-tag--muted {
  background: transparent;
  border: 1px dashed var(--border);
  color: var(--text-muted);
}

.ws-card-foot--grid {
  margin-top: auto;
  margin-bottom: 12px;
}

.ws-card--grid .ws-card-actions {
  margin-top: 0;
}

.ws-table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--bg-page);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.ws-records-table {
  width: 100%;
}

.ws-records-row {
  display: grid;
  grid-template-columns: minmax(240px, 2.4fr) 88px 110px 150px 120px 88px;
  align-items: center;
}

.ws-records-row + .ws-records-row {
  border-top: 1px solid var(--border-light);
}

.ws-records-row--head {
  background: var(--bg-muted);
  border-bottom: 1px solid var(--border);
}

.ws-records-row--head > * {
  padding: 12px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
  white-space: nowrap;
}

.ws-records-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 14px 12px;
  font-size: 13px;
  color: var(--text);
  text-align: center;
}

.ws-records-cell--company {
  justify-content: flex-start;
  align-items: flex-start;
  gap: 8px;
  text-align: left;
}

.ws-records-row--head > *:first-child {
  text-align: left;
  padding-left: 16px;
}

.ws-records-cell--company {
  padding-left: 16px;
}

.ws-records-row--empty {
  display: block;
  padding: 28px 16px;
  text-align: center;
  color: var(--text-muted);
}

.ws-records-row:not(.ws-records-row--head):not(.ws-records-row--empty):hover {
  background: rgba(139, 92, 246, 0.03);
}

.ws-table {
  display: table;
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 13px;
}

.ws-table thead {
  display: table-header-group;
}

.ws-table tbody {
  display: table-row-group;
}

.ws-table tr {
  display: table-row;
}

.ws-table th,
.ws-table td {
  display: table-cell;
}

.ws-table--records .ws-table-col--company {
  width: 32%;
}

.ws-table--records .ws-table-col--status {
  width: 14%;
}

.ws-table--records .ws-table-col--version {
  width: 16%;
}

.ws-table--records .ws-table-col--time {
  width: 22%;
}

.ws-table--records .ws-table-col--action {
  width: 16%;
}

.ws-table th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.ws-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
  color: var(--text);
  vertical-align: middle;
}

.ws-table-th--center,
.ws-table-cell--center {
  text-align: center;
}

.ws-table-th--action,
.ws-table-cell--action {
  text-align: left;
  white-space: nowrap;
}

.ws-table-cell--nowrap {
  white-space: nowrap;
}

.ws-table-company-cell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
}

.ws-table-company-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.ws-table-index {
  flex-shrink: 0;
  min-width: 20px;
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
  text-align: right;
}

.ws-table-company-tags {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-left: 28px;
}

.ws-table-company {
  font-weight: 600;
  color: var(--text);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ws-table-company-tags .ws-tag {
  font-size: 11px;
  padding: 2px 8px;
}

.ws-table tbody tr:last-child td {
  border-bottom: none;
}

.ws-table tbody tr:hover {
  background: rgba(139, 92, 246, 0.03);
}

.ws-table-summary {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 280px;
}

.ws-status-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.ws-status--ongoing {
  background: var(--primary-light);
  color: var(--primary);
}

.ws-status--completed {
  background: #d1fae5;
  color: #059669;
}

.ws-status--failed {
  background: #f3f4f6;
  color: var(--text-muted);
}

.ws-link-btn {
  border: none;
  background: none;
  color: var(--primary);
  font-size: 13px;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ws-link-btn:hover {
  color: var(--primary-dark);
}

.ws-text-muted {
  color: var(--text-muted);
}

.ws-records-pagination.ant-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-top: 12px;
  padding: 0 4px;
}

.ws-empty {
  padding: 48px 24px;
  text-align: center;
  color: var(--text-muted);
}

.ws-empty-icon {
  font-size: 36px;
  margin-bottom: 12px;
  opacity: 0.4;
}

@media (max-width: 1100px) {
  .ws-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .ws-type-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .ws-filter-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .ws-report-grid {
    grid-template-columns: 1fr;
  }

  .ws-page-topbar {
    flex-direction: column;
    align-items: stretch;
    height: auto;
    padding: 16px 20px;
    gap: 12px;
  }

  .ws-page-search {
    max-width: none;
  }
}

.ws-report-editor-mask {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.36);
}

.ws-report-editor {
  width: min(860px, 100%);
  max-height: min(84vh, 820px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 20px 16px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.16);
}

.ws-report-editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ws-report-editor-head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.ws-report-editor-label {
  font-size: 12px;
  color: var(--text-muted);
}

.ws-report-editor-input,
.ws-report-editor-md {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 13px;
  color: var(--text);
  background: var(--bg-page);
}

.ws-report-editor-md {
  min-height: 320px;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  line-height: 1.55;
}

.ws-report-editor-error {
  margin: 0;
  font-size: 12px;
  color: #c2410c;
}

.ws-report-editor-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

