/* SKILLS-TABLE (Dima, 2026-11-22): the skill pack tables on /skills/, its category pages and pack pages
   (templates/skills.html pack_table, static/js/skills-table.js). Site tokens only; phones get one card per row. */
.skt-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin: 0 0 10px; }
.skt-search { position: relative; flex: 1 1 280px; min-width: 0; }
.skt-search .skt-i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--meta); pointer-events: none; }
.skt-search input { width: 100%; height: 40px; box-sizing: border-box; padding: 0 12px 0 36px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; font-size: 15px; }
.skt-search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); }
.skt-filters { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.skt-filters::-webkit-scrollbar { display: none; }
.skt-filters button { flex: none; min-height: 36px; padding: 0 13px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--ink-2); font: inherit; font-size: 13.5px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.skt-filters button:hover { border-color: var(--border-strong); color: var(--ink); }
.skt-filters button[aria-pressed="true"] { background: var(--accent-wash); border-color: color-mix(in srgb, var(--link) 35%, transparent); color: var(--link); font-weight: 650; }
.skt-sort { display: none; align-items: center; gap: 6px; font-size: 13.5px; color: var(--meta); }
.skt-sort select { height: 36px; padding: 0 8px; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--surface); color: var(--ink); font: inherit; font-size: 14px; }
.skt-count { margin: 0 0 8px; min-height: 18px; font-size: 13px; color: var(--meta); }
.skt-i { width: 14px; height: 14px; flex: none; fill: currentColor; vertical-align: -2px; }
.skt-i.skt-stroke { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
table.skt { width: 100%; border-collapse: collapse; font-size: 14px; }
.skt thead th { position: sticky; top: 0; z-index: 1; padding: 10px 12px; background: var(--surface); border-bottom: 1px solid var(--border-strong); font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--meta); text-align: left; white-space: nowrap; }
.skt thead th.skt-num { text-align: right; }
.skt thead button { padding: 0; border: 0; background: none; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; }
.skt thead button:hover { color: var(--ink); }
.skt thead button[aria-sort]::after { content: " ↓"; color: var(--link); }
.skt thead button[aria-sort="ascending"]::after { content: " ↑"; }
.skt tbody td { padding: 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.skt tbody tr:last-child td { border-bottom: 0; }
.skt tbody tr { transition: background-color .12s; }
.skt tbody tr:hover { background: var(--surface-2); }
.skt-rank { width: 34px; color: var(--meta); font-variant-numeric: tabular-nums; font-size: 13px; }
.skt-pack { min-width: 0; }
.skt-name { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; min-width: 0; }
.skt-av { position: relative; display: grid; place-items: center; width: 24px; height: 24px; flex: none; overflow: hidden; border-radius: 6px; background: var(--surface-2); color: var(--meta); font-size: 12px; font-weight: 700; }
.skt-av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.skt-link { min-width: 0; font-size: 15px; font-weight: 650; color: var(--ink); overflow-wrap: anywhere; }
.skt-link::before { content: ""; position: absolute; inset: 0; }
.skt tbody tr { position: relative; }
.skt-link:hover { color: var(--link); text-decoration: none; }
.skt-owner { font-weight: 500; color: var(--meta); }
.skt-mark { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 4px; padding: 1px 7px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); font-size: 12px; font-weight: 500; white-space: nowrap; }
.skt-checked { background: var(--accent-wash); color: var(--link); }
.skt-mark .skt-i { width: 12px; height: 12px; }
.skt-what { margin: 4px 0 0 32px; max-width: 80ch; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.skt-cat { margin: 2px 0 0 32px; font-size: 12.5px; }
.skt-cat a { position: relative; z-index: 1; color: var(--meta); }
.skt-cat a:hover { color: var(--link); }
.skt-num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.skt-stars .skt-i { margin-right: 4px; color: var(--meta); }
.skt-gain { min-width: 120px; }
td.skt-gain { display: table-cell; }
.skt-gainv { color: var(--up); font-weight: 600; }
.skt-spark { display: inline-block; width: 64px; height: 20px; margin-left: 8px; vertical-align: middle; overflow: visible; }
.skt-spark polyline { fill: none; stroke: var(--accent); stroke-width: 1.6; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.skt-none { color: var(--meta); }
.skt-date { color: var(--ink-2); font-size: 13px; }
.skt-act { width: 1%; text-align: right; }
.skt-copy { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 10px; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--surface); color: var(--ink-2); font: inherit; font-size: 13px; font-weight: 550; white-space: nowrap; cursor: pointer; }
.skt-copy:hover { border-color: var(--accent); color: var(--link); }
.skt-copy.done { border-color: color-mix(in srgb, var(--up) 50%, transparent); color: var(--up); }
.skt tbody tr[hidden] { display: none; }
.skt-empty { margin: 12px 0 0; color: var(--meta); font-size: 14px; }
@media (max-width: 1000px) { .skt-gain .skt-spark { display: none; } .skt-gain { min-width: 0; } }
@media (max-width: 760px) {
  .skt-sort { display: flex; }
  .skt-bar { gap: 8px; }
  .skt-search { flex-basis: 100%; }
  .skt-filters { flex: 1 1 auto; }
  .skt-wrap { border: 0; background: none; box-shadow: none; overflow: visible; }
  table.skt, .skt tbody { display: block; }
  .skt thead { display: none; }
  .skt tbody tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; grid-template-areas: "pack pack pack pack" "stars gain count act" "date date date act"; gap: 8px 10px;
    margin-bottom: 10px; padding: 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
  .skt tbody tr:hover { background: var(--surface); }
  .skt tbody td { display: block; padding: 0; border: 0; }
  .skt-rank { display: none !important; }
  td.skt-pack { grid-area: pack; }
  td.skt-stars { grid-area: stars; } td.skt-gain { grid-area: gain; } .skt tbody td:nth-child(5) { grid-area: count; } td.skt-date { grid-area: date; }
  td.skt-act { grid-area: act; align-self: center; }
  .skt tbody td.skt-num { text-align: left; font-size: 14px; font-weight: 600; color: var(--ink); }
  .skt tbody td.skt-num::before { content: attr(data-label); display: block; margin-bottom: 1px; font-size: 11.5px; font-weight: 500; letter-spacing: .03em; text-transform: uppercase; color: var(--meta); }
  td.skt-date { font-size: 12.5px; font-weight: 400 !important; color: var(--meta) !important; }
  td.skt-date::before { display: inline !important; content: "Updated " !important; text-transform: none !important; letter-spacing: 0 !important; font-size: 12.5px !important; }
  .skt-what { margin-left: 0; margin-top: 6px; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .skt-cat { margin-left: 0; }
  .skt-copy { min-height: 44px; }
  .skt-copy span { display: none; }
}
/* SKILLS-TABLE-FIT (2026-11-22): on wide screens the pack column takes the room left and the one-line text is cut with
   "…", so the table never scrolls sideways (with max-width 80ch it was 41 px wider than its box at 1440). */
@media (min-width: 761px) { td.skt-pack { width: 100%; max-width: 0; } .skt-what { max-width: none; } }
