.gk-pilot{border:1px solid #b9cbd0;border-radius:12px;padding:1rem;margin:1.2rem 0;background:var(--main-background,#f7faf9);color:var(--text-color,inherit)}.gk-pilot-controls{display:flex;flex-wrap:wrap;gap:1rem;margin-bottom:1rem}.gk-pilot label{display:grid;gap:.3rem;font-size:.95rem}.gk-pilot input{max-width:7rem;padding:.35rem;border:1px solid #9aaeb5;border-radius:6px;background:transparent;color:inherit}.gk-pilot svg{width:100%;max-width:440px;height:auto}.gk-pilot-output{font-weight:700;margin:.6rem 0}.gk-pilot-note{font-size:.88rem}.gk-pilot button{padding:.4rem .8rem;border:1px solid #77959a;border-radius:6px;background:transparent;color:inherit;cursor:pointer}@media(max-width:480px){.gk-pilot{padding:.7rem}.gk-pilot-controls{gap:.5rem}}
.gk-pilot .gk-matrix-table{width:100%;border-collapse:collapse;margin:.7rem 0}.gk-matrix-table th,.gk-matrix-table td{padding:.45rem;border:1px solid #9bb4bb;text-align:center}.gk-matrix-table input{width:5rem;max-width:100%;box-sizing:border-box}.gk-attention-bar{display:grid;grid-template-columns:4rem 1fr 3rem;align-items:center;gap:.6rem;margin:.6rem 0}.gk-attention-track{height:1.1rem;background:#d8e3e5;border-radius:4px;overflow:hidden}.gk-attention-fill{display:block;height:100%;background:#6b9caa}.gk-pilot select{padding:.4rem;border:1px solid #9aaeb5;border-radius:6px;background:transparent;color:inherit}.gk-pilot select option{color:#222;background:#fff}
.gk-pilot .gk-demo-slider{display:grid;grid-template-columns:minmax(7rem,12rem) minmax(6rem,1fr) 3.5rem;gap:.6rem;align-items:center;margin:.6rem 0}.gk-pilot .gk-demo-slider input[type=range]{max-width:none;width:100%;accent-color:#658e9b}.gk-pilot .gk-demo-number{max-width:6rem}.gk-pilot .gk-demo-output{padding:.7rem;background:rgba(120,155,165,.12);border-radius:6px;font-weight:650}@media(max-width:480px){.gk-pilot .gk-demo-slider{grid-template-columns:6rem minmax(4rem,1fr) 3rem;font-size:.9rem;gap:.3rem}}
/* Confusion matrix: keep the row headers visible on narrow screens and emphasize the guided cell. */
.gk-pilot .gk-matrix-guided{table-layout:fixed;max-width:100%}
.gk-pilot .gk-matrix-guided th:first-child{width:4.8rem;overflow-wrap:anywhere}
.gk-pilot .gk-matrix-guided th,.gk-pilot .gk-matrix-guided td{min-width:0;overflow-wrap:anywhere}
.gk-pilot .gk-matrix-guided label{min-width:0}
.gk-pilot .gk-matrix-guided input{width:100%;min-width:0}
.gk-pilot .gk-matrix-target{background:rgba(107,156,170,.13);outline:2px solid #658e9b;outline-offset:-2px}
@media(max-width:480px){.gk-pilot .gk-matrix-guided th:first-child{width:3.5rem}.gk-pilot .gk-matrix-guided th,.gk-pilot .gk-matrix-guided td{padding:.3rem .2rem;font-size:.85rem}.gk-pilot .gk-matrix-guided input{font-size:1rem}}
/* Override the article-wide scrollable-table rule only for this narrow guided matrix.
   A zero-minimum label track also lets the number fields shrink with their cells. */
@media(max-width:480px){
  .gk-pilot .gk-matrix-guided{display:table;white-space:normal}
  .gk-pilot .gk-matrix-guided label{grid-template-columns:minmax(0,1fr)}
}
/* CNN invalid inputs: make the unavailable advance action visible as such. */
[data-gk-cnn-demo] [data-next]:disabled{opacity:.45;cursor:not-allowed}
