.sa-hc-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.sa-hc-subnav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--sa-border);
  background: #fff;
  color: var(--sa-muted);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.sa-hc-subnav-link:hover,
.sa-hc-subnav-link:focus {
  color: var(--sa-primary);
  border-color: rgba(29, 127, 214, 0.28);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  transform: translateY(-1px);
  outline: none;
}

.sa-hc-subnav-link.is-active {
  background: linear-gradient(135deg, rgba(29, 127, 214, 0.12), rgba(29, 127, 214, 0.04));
  color: var(--sa-primary);
  border-color: rgba(29, 127, 214, 0.26);
}

.sa-hc-hero-card {
  padding: 24px;
  border-radius: 26px;
  border: 1px solid rgba(29, 127, 214, 0.12);
  background: linear-gradient(135deg, #ffffff 0%, #f6fbff 56%, #eef5ff 100%);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.06);
}

.sa-hc-hero-meta {
  color: var(--sa-muted);
  margin: 10px 0 0;
  max-width: 760px;
}

.sa-hc-kpi {
  height: 100%;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid var(--sa-border);
  background: #fff;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.05);
}

.sa-hc-kpi-label {
  color: var(--sa-muted);
  font-size: 0.92rem;
  margin-bottom: 10px;
}

.sa-hc-kpi-value {
  font-family: "Space Grotesk", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  margin: 0;
}

.sa-hc-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.sa-hc-link-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  border-radius: 22px;
  border: 1px solid var(--sa-border);
  background: #fff;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.05);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.sa-hc-link-card:hover,
.sa-hc-link-card:focus {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.08);
  border-color: rgba(29, 127, 214, 0.24);
  outline: none;
}

.sa-hc-link-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sa-hc-link-card-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  height: 54px;
  padding: 0 12px;
  border-radius: 18px;
  background: rgba(29, 127, 214, 0.12);
  color: var(--sa-primary);
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
}

.sa-hc-link-card h3 {
  font-size: 1.05rem;
  margin: 0;
}

.sa-hc-link-card p {
  color: var(--sa-muted);
  margin: 0;
}

.sa-hc-link-card small {
  color: var(--sa-primary);
  font-weight: 700;
}

.sa-hc-table-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: end;
}

.sa-hc-table-summary {
  color: var(--sa-muted);
  margin: 0;
}

.sa-hc-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.38rem 0.74rem;
  border-radius: 999px;
  font-size: 0.79rem;
  font-weight: 700;
}

.sa-hc-badge.is-active {
  background: rgba(22, 163, 74, 0.12);
  color: var(--sa-success);
}

.sa-hc-badge.is-inactive {
  background: rgba(100, 116, 139, 0.12);
  color: #475569;
}

.sa-hc-badge.is-featured {
  background: rgba(245, 158, 11, 0.16);
  color: #b45309;
}

.sa-hc-badge.is-plain {
  background: rgba(15, 23, 42, 0.06);
  color: #334155;
}

.sa-hc-empty {
  padding: 28px 20px;
  text-align: center;
  color: var(--sa-muted);
}

.sa-hc-mini-list {
  display: grid;
  gap: 10px;
}

.sa-hc-mini-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--sa-border);
  background: #fff;
}

.sa-hc-mini-item-title {
  font-weight: 600;
  margin: 0;
}

.sa-hc-mini-item-meta {
  color: var(--sa-muted);
  font-size: 0.9rem;
  margin-top: 4px;
}

.sa-hc-editor-card {
  border-radius: 22px;
  border: 1px solid var(--sa-border);
  background: #fff;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.05);
}

.sa-hc-editor {
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
}

.sa-hc-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  background: #f8fafc;
}

.sa-hc-editor-toolbar .btn {
  min-width: 42px;
  border-radius: 12px;
}

.sa-hc-editor-surface {
  min-height: 260px;
  padding: 14px;
  outline: none;
}

.sa-hc-editor-source {
  display: none;
  width: 100%;
  min-height: 260px;
  border: 0;
  padding: 14px;
  font-family: Consolas, monospace;
  font-size: 0.9rem;
  resize: vertical;
}

.sa-hc-editor.is-source .sa-hc-editor-surface {
  display: none;
}

.sa-hc-editor.is-source .sa-hc-editor-source {
  display: block;
}

.sa-hc-editor.is-tinymce .sa-hc-editor-toolbar,
.sa-hc-editor.is-tinymce .sa-hc-editor-surface {
  display: none;
}

.sa-hc-edit-section {
  display: none;
}

.sa-hc-edit-section.is-active {
  display: block;
}

.sa-hc-form-note {
  color: var(--sa-muted);
  font-size: 0.92rem;
}

@media (max-width: 767.98px) {
  .sa-hc-hero-card {
    padding: 20px;
  }

  .sa-hc-link-card {
    padding: 18px;
  }
}
