.ss-page { padding-bottom: 40px; }
.ss-hint { color: #6b7280; font-size: 13px; margin: -8px 0 16px; }
.ss-toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.ss-toolbar input {
  flex: 1;
  min-width: 200px;
  padding: 10px 16px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
}
.ss-meta { color: #6b7280; font-size: 13px; }
.ss-list { display: flex; flex-direction: column; gap: 12px; }
.ss-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 14px 16px;
}
.ss-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
}
.ss-name { font-size: 16px; font-weight: 600; color: #111827; }
.ss-code { font-size: 13px; color: #6b7280; margin-left: 8px; }
.ss-source { font-size: 12px; color: #9ca3af; }
.ss-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ss-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #f9fafb;
  font-size: 13px;
}
.ss-chip.is-primary { border-color: #111827; background: #111827; color: #fff; }
.ss-chip button {
  border: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
  padding: 0 2px;
  font-size: 12px;
  line-height: 1;
}
.ss-sector,
.ss-sector-input {
  min-width: 180px;
  padding: 6px 10px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 13px;
  background: #fff;
}
.ss-sector-input { cursor: pointer; }
.ss-reset {
  padding: 6px 10px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
  cursor: pointer;
  color: #6b7280;
}
.ss-ops { display: flex; gap: 6px; flex-wrap: wrap; }
.ss-del { color: #dc2626; border-color: #fecaca; }
.ss-views-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid #e5e7eb;
}
.ss-views {
  display: flex;
  gap: 8px;
  margin-bottom: 0;
  border-bottom: none;
}
.ss-ths-btn {
  margin-bottom: 6px;
  padding: 6px 12px;
  border: 1px solid #dc2626;
  border-radius: 8px;
  background: #fff;
  color: #dc2626;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.ss-ths-btn:disabled { opacity: 0.6; cursor: wait; }
.ss-progress {
  margin: -4px 0 16px;
  padding: 12px 14px;
  border: 1px solid #fecaca;
  border-radius: 10px;
  background: #fff7f7;
}
.ss-progress-track {
  height: 8px;
  background: #fee2e2;
  border-radius: 999px;
  overflow: hidden;
}
.ss-progress-track i {
  display: block;
  height: 100%;
  width: 0;
  background: #dc2626;
  transition: width 0.2s;
}
.ss-progress-status { margin: 8px 0 0; font-size: 13px; color: #991b1b; }
.ss-progress-log {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  max-height: 180px;
  overflow: auto;
  font-size: 12px;
  color: #6b7280;
}
.ss-progress-log li { padding: 3px 0; border-bottom: 1px solid #fee2e2; }
.ss-view {
  padding: 8px 4px;
  margin-bottom: -1px;
  border: none;
  border-bottom: 2px solid transparent;
  background: none;
  color: #6b7280;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.ss-view.is-active { color: #111827; border-bottom-color: #111827; }
.ss-map-wrap {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: auto;
}
.ss-map-h { margin: 16px 12px 8px; font-size: 14px; color: #374151; }
.ss-map-h:first-child { margin-top: 12px; }
.ss-origin {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
}
.ss-origin-video { background: #eff6ff; color: #1d4ed8; }
.ss-origin-ths { background: #fef3c7; color: #92400e; }
.ss-map-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ss-map-table th, .ss-map-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid #f3f4f6;
}
.ss-map-table th { background: #f9fafb; color: #6b7280; font-weight: 600; }
.ss-map-table input {
  width: 100%;
  min-width: 160px;
  padding: 6px 8px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
}
.ss-map-ok { color: #047857; }
.ss-map-empty { color: #b45309; }
.ss-sw-input { cursor: pointer; background: #fff; }
.ss-sw-picker {
  position: fixed;
  z-index: 30;
  width: min(360px, calc(100vw - 24px));
  max-height: 380px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.12);
}
.ss-sw-picker[hidden] { display: none; }
.ss-sw-picker input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 13px;
}
.ss-sw-list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow: auto;
  max-height: 260px;
}
.ss-sw-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
}
.ss-sw-list li:hover,
.ss-sw-list li.is-current { background: #f3f4f6; }
.ss-sw-sub { color: #6b7280; font-size: 12px; white-space: nowrap; }
@media (max-width: 480px) {
  .ss-head { flex-direction: column; align-items: flex-start; }
  .ss-sector,
  .ss-sector-input { width: 100%; }
}
