.cheat-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  margin: 1.5rem 0;
  padding: 1rem 1.2rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}

.cheat-search {
  flex: 1 1 260px;
  padding: 0.6rem 0.9rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.95rem;
  color: #0f172a;
  background: #ffffff;
}

.cheat-search:focus {
  outline: 2px solid rgba(15, 118, 110, 0.25);
  border-color: #0f766e;
}

.print-btn {
  border: none;
  background: #0f766e;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.65rem 1.15rem;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
}

.print-btn:hover {
  background: #115e59;
}

.cheat-count {
  font-size: 0.85rem;
  color: #475569;
  width: 100%;
}

.cheat-category {
  margin-bottom: 2rem;
}

.cheat-category.hidden-section {
  display: none;
}

.cheat-table-wrap {
  overflow-x: auto;
}

.cheat-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  background: #ffffff;
}

.cheat-table th,
.cheat-table td {
  border: 1px solid #e2e8f0;
  padding: 0.6rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

.cheat-table th {
  background: #f1f5f9;
  color: #0f172a;
  font-weight: 700;
}

.cheat-table tr.hidden-row {
  display: none;
}

.platform-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: #f0fdfa;
  color: #115e59;
  border: 1px solid #99f6e4;
  white-space: nowrap;
}

.platform-tag.sheets-only {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
}

.platform-tag.excel-365 {
  background: #fef3c7;
  color: #92400e;
  border-color: #fde68a;
}

@media print {
  header,
  footer,
  .breadcrumb,
  .cheat-toolbar,
  .hero-actions,
  .author-note {
    display: none !important;
  }

  body {
    background: #ffffff !important;
    color: #000000 !important;
    font-size: 10pt;
  }

  main {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .home-hero {
    padding: 0 0 0.75rem 0 !important;
    border: none !important;
    box-shadow: none !important;
  }

  .cheat-category {
    page-break-inside: avoid;
    margin-bottom: 1rem;
  }

  .cheat-table {
    font-size: 8.5pt;
  }

  .cheat-table th,
  .cheat-table td {
    padding: 0.35rem 0.45rem;
    border-color: #94a3b8;
  }

  a {
    color: #000000 !important;
    text-decoration: none !important;
  }
}
