<style>
  body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f7f7fb;
    color: #222;
    margin: 0;
    padding: 24px;
    line-height: 1.45;
  }

h1 {
    FONT-WEIGHT: bold;
    font-size:3.0em;
    COLOR: #427dff;
    FONT-FAMILY: Verdana, Arial, Sans-Serif;
    BACKGROUND-COLOR: #ffffff;
    text-align: center;
}
h2 {
    FONT-WEIGHT: bold;
    font-size:1.5em;
    COLOR: #427dff;
    FONT-FAMILY: Verdana, Arial, Sans-Serif;
    BACKGROUND-COLOR: #e2ecf5;
}
h3 {
    COLOR: #427dff;
}

  .cheat-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    margin: 20px 0 30px;
  }

  .cheat-table th,
  .cheat-table td {
    border: 1px solid #e5e7eb;
    padding: 8px 10px;
    vertical-align: top;
  }

  .cheat-table th {
    background: #f0f2f5;
    font-weight: 600;
    font-size: 14px;
    color: #333;
    text-align: left;
  }

  .cheat-table tr:hover {
    background: #fafbfc;
  }

  .action-cell {
    width: 20%;
    font-weight: 600;
    font-size: 14px;
    color: #222;
  }

  .code-cell {
    width: 27%;
    position: relative;
  }

  .db-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
  }

  .db-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 4px;
    color: #fff;
  }
  .db-pg { background: #3b82f6; }
  .db-or { background: #C74634; }
  .db-my { background: #00758F; }

  .code-tools {
    display: flex;
    gap: 4px;
  }

  .code-btn {
    appearance: none;
    border: 1px solid #d1d5db;
    background: #f9fafb;
    color: #374151;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 4px;
    cursor: pointer;
    line-height: 1;
  }
  .code-btn:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
  }
  .code-btn:active {
    background: #e5e7eb;
  }

  .code-wrapper {
    position: relative;
  }

  .code-snippet {
    margin: 0;
    padding: 8px 10px;
    background: #f9fafb;
    border: 1px solid #eaeaea;
    border-radius: 4px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 13px;
    line-height: 1.4;
    white-space: pre-wrap;
    word-break: break-word;
    max-width: 100%;
    color: #111827;
    user-select: text;
    overflow: hidden;
    transition: max-height 0.2s ease;
  }

  .code-snippet.collapsed {
    max-height: 3.0em; /* 3 less than 3 rows */
    position: relative;
  }

  .code-snippet.collapsed::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1.8em;
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(249,250,251,1));
    pointer-events: none;
  }

  .code-snippet:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
  }

  .mini-note {
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
  }

  .copy-feedback {
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    background: #111827;
    color: #fff;
    font-size: 13px;
    padding: 6px 12px;
    border-radius: 6px;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    z-index: 9999;
  }
  .copy-feedback.show {
    opacity: 0.9;
  }
</style>
