/* Paged KV cache: loaded only on its Learn page, after style.css. */
.pg-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 24px; align-items: start; }
.pg-tables { display: grid; gap: 10px; }
.pg-row { display: grid; gap: 6px; padding: 10px 12px; border: 1px solid var(--border); border-left-width: 3px; border-radius: 8px; background: var(--surface); }
.pg-row.req-A { border-left-color: var(--red); }
.pg-row.req-B { border-left-color: var(--purple); }
.pg-row.req-C { border-left-color: var(--soft); }
.pg-req { font-size: 13px; font-weight: 600; }
.pg-list { display: flex; flex-wrap: wrap; gap: 6px; min-height: 28px; }
.pg-chip.shared { border-style: dashed; border-color: var(--fg); }
.pg-none { font: 13px var(--mono); color: var(--quiet); }
.pg-pool { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.pg-cell { position: relative; height: 58px; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--surface); overflow: hidden; transition: border-color .3s, box-shadow .3s; }
.pg-cell.free { border-style: dashed; border-color: var(--border); }
.pg-fill { position: absolute; left: 0; right: 0; bottom: 0; height: 0; transition: height .6s cubic-bezier(.2, .8, .2, 1), background .3s; }
.pg-cell.own-A .pg-fill { background: var(--red); }
.pg-cell.own-B .pg-fill { background: var(--purple); }
.pg-cell.own-C .pg-fill { background: var(--soft); }
.pg-cell.shared .pg-fill { background: repeating-linear-gradient(135deg, var(--red) 0 7px, var(--purple) 7px 14px); }
.pg-cell.flash { box-shadow: 0 0 0 3px var(--glow); border-color: var(--purple); }
.pg-no, .pg-refs { position: absolute; top: 5px; padding: 0 4px; border-radius: 4px; background: var(--surface); font: 600 11px var(--mono); color: var(--fg); }
.pg-no { left: 5px; }
.pg-refs { right: 5px; }
.pg-refs:empty { display: none; }
.pg-cell.free .pg-no { color: var(--quiet); background: none; }

@media (max-width: 600px) {
  .pg-wrap { grid-template-columns: 1fr; }
}
