.common-tools-panel[hidden] { display: none !important; }
body.tools-catalog-mode #cardsScroll,
body.tools-catalog-mode .lottery-inline-panel,
body.tools-catalog-mode .collector-catalog-panel { display: none !important; }
body.tools-catalog-mode .page-shell > .site-footer { display: none !important; }

.common-tools-panel {
  margin-top: 0;
  padding: 0 0 22px;
}

.common-tools-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.common-tools-heading .pk16-category-title { margin-bottom: 8px; }
.common-tools-heading p,
.common-tools-group-head p {
  margin: 0;
  color: #6b7890;
  font-size: 14px;
}

.common-tools-group {
  margin-top: 14px;
  padding: 18px;
  border: 1px solid #e0e7f0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(16, 24, 40, .05);
}

.common-tools-group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.common-tools-group-head h3 {
  margin: 0;
  color: #172338;
  font-size: 18px;
}

.common-tools-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.common-tool-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 11px;
  min-width: 0;
  padding: 14px;
  border: 1px solid #e2e8f2;
  border-radius: 15px;
  background: #f9fbff;
}

.common-tool-mark {
  display: grid;
  grid-row: span 2;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: linear-gradient(145deg, #2f6bff, #5b91ff);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -.02em;
  box-shadow: 0 8px 18px rgba(47, 107, 255, .22);
}
.common-tool-mark img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }

.common-tool-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
}

.common-tool-copy strong {
  overflow: hidden;
  color: #18243a;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.common-tool-copy span {
  overflow: hidden;
  margin-top: 3px;
  color: #758198;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.common-tool-download {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  margin-top: 2px;
  border: 1px solid #cbdafe;
  border-radius: 10px;
  background: #edf3ff;
  color: #285edb;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: color .18s ease, border-color .18s ease, background .18s ease;
}

.common-tool-download:hover {
  border-color: #2f6bff;
  background: #2f6bff;
  color: #fff;
}

.common-tools-warning {
  display: flex;
  gap: 12px;
  margin-top: 14px;
  padding: 13px 15px;
  border: 1px solid #f4ddb0;
  border-radius: 14px;
  background: #fffaf0;
  color: #815b18;
  font-size: 13px;
  line-height: 1.6;
}
.common-tools-empty { padding: 42px 20px; border: 1px dashed #cfd9e8; border-radius: 16px; background: #fff; color: #718096; text-align: center; }

.common-tools-warning strong { flex: 0 0 auto; }

@media (max-width: 820px) {
  .common-tools-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .common-tools-panel { margin-top: 0; padding-right: 8px; padding-left: 8px; }
  .common-tools-heading { align-items: flex-start; }
  .common-tools-heading p { max-width: 240px; font-size: 12px; }
  .common-tools-group { padding: 12px; border-radius: 15px; }
  .common-tools-group-head { display: block; }
  .common-tools-group-head p { margin-top: 4px; font-size: 12px; }
  .common-tools-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .common-tool-card { grid-template-columns: 38px minmax(0, 1fr); gap: 8px; padding: 10px; }
  .common-tool-mark { width: 38px; height: 38px; border-radius: 11px; font-size: 12px; }
  .common-tool-copy strong { font-size: 13px; }
  .common-tool-copy span { font-size: 10px; }
  .common-tool-download { min-height: 32px; font-size: 12px; }
  .common-tools-warning { display: block; font-size: 12px; }
  .common-tools-warning strong { display: block; margin-bottom: 3px; }
}
