/* Styles only this website needs. The shared look is in kit/kit.css; this file uses its tokens only. */
.small { font-size: 14px; color: var(--muted); }

/* placeholders for numbers that wait for the Colab run */
.ph { border: 1px solid color-mix(in srgb, var(--warn) 30%, var(--edge)); background: var(--warn-soft); border-radius: 12px; padding: 12px 16px; margin: 12px 0; font-size: 15px; }
.ph-tag {
  display: inline-block; font: 600 11px/1.6 var(--body); letter-spacing: 0.06em; text-transform: uppercase; color: var(--warn);
  border: 1px solid color-mix(in srgb, var(--warn) 40%, var(--edge)); border-radius: 999px; padding: 0 8px; background: var(--bg);
  white-space: nowrap; vertical-align: 1px;
}
.ph-where { display: block; color: var(--muted); font-size: 14px; margin-top: 4px; }

/* loading results.json */
.upload { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 18px; padding-top: 14px; border-top: 1px solid color-mix(in srgb, var(--accent) 20%, var(--edge)); }
.upload label.k-btn { display: inline-block; }
.up-status { font-size: 14px; color: var(--muted); }

/* link buttons: no underline; the intro of a try-it box keeps a gap above its first field */
a.k-btn { display: inline-block; text-decoration: none; }
.k-try > div:first-child { margin-bottom: 16px; }
.k-sec-body p > a.k-btn, .k-files li > a.k-btn { margin: 2px 4px 2px 0; }

/* loss charts */
.chart { width: 100%; height: auto; display: block; margin: 10px 0 6px; font: 12px var(--body); fill: var(--muted); background: var(--bg); border: 1px solid var(--edge); border-radius: 12px; padding: 8px; }
.chart .grid { stroke: var(--edge); stroke-width: 1; }
.chart .axis { stroke: var(--muted); stroke-width: 1.2; }
.chart .st { font-weight: 600; fill: var(--ink); font-size: 13px; }
.chart .l-train { fill: none; stroke: var(--ink); stroke-width: 2.25; stroke-linecap: round; }
.chart .l-val { fill: none; stroke: var(--accent); stroke-width: 2.25; stroke-dasharray: 6 4; stroke-linecap: round; }
.chart .d-val { fill: var(--accent); }
.legend { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; margin-bottom: 10px; }
.legend .sw { display: inline-block; width: 22px; height: 0; border-top: 2.5px solid var(--ink); margin-right: -8px; }
.legend .sw.val { border-top: 2.5px dashed var(--accent); }

/* row-length histogram */
.hist { display: grid; gap: 6px; margin: 12px 0; }
.hb { display: grid; grid-template-columns: 96px 1fr 40px; gap: 10px; align-items: center; font-size: 13px; font-variant-numeric: tabular-nums; }
.hbar { background: var(--bg); border: 1px solid var(--edge); border-radius: 999px; height: 10px; overflow: hidden; }
.hbar i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.hn { text-align: right; color: var(--muted); }

/* two cards side by side */
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin: 12px 0; }
.two > .k-msg { margin: 0; }
.esc { min-width: 0; }
.esc .k-table-wrap { margin-top: 6px; }
.esc p { font-size: 14.5px; margin: 6px 0 0; }
.esc-h { font: 600 14px/1.4 var(--body); margin-top: 6px; }

/* the sorting and rejected-row exercises */
.sort-item { border-top: 1px solid var(--edge); padding: 14px 0; }
.sort-item:last-of-type { padding-bottom: 6px; }
.sort-item p { margin: 0 0 8px; }
.sort-item .k-select { max-width: 320px; width: auto; flex: 1 1 200px; }
.sort-item > .k-select { display: block; width: 100%; }
.sort-item > .k-msg { margin: 0 0 10px; }
.fb { margin-top: 8px; font-size: 14.5px; }
.fb p { margin: 4px 0; }

.cmp { font-size: 14px; margin: 6px 0 16px; line-height: 2; }
.cmp code { white-space: normal; word-break: break-word; }
.rank { margin-top: 8px; }
.rank input[type=range] { width: 100%; accent-color: var(--accent); }

.k-files li { flex-wrap: wrap; }
.k-files li span { color: var(--muted); font-size: 14px; flex: 1; min-width: 160px; }
.k-files li b { font-weight: 600; }
.k-table td code { white-space: normal; word-break: break-word; }
@media (max-width: 600px) { .k-table { min-width: 540px; } .hb { grid-template-columns: 82px 1fr 32px; } }

/* customer emails: a white card on the tinted part, a grey one on the white try-it part */
.k-sec:not(.try) .k-msg.user { background: var(--bg); }

/* the guide shape: the "You are done when" line, one-at-a-time cards, choice rows */
.w6-done { margin: 16px 0 0; padding: 10px 14px; border-radius: 10px; background: var(--bg); border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--edge)); }
.w6-card { background: var(--panel-2); border: 1px solid var(--edge); border-radius: 12px; padding: 14px 16px; margin: 0 0 12px; }
.w6-card-head { font-weight: 600; margin-bottom: 6px; }
.w6-card p { margin: 0 0 8px; }
.w6-card .k-msg { margin: 8px 0; }
.w6-card .k-out p { margin: 12px 0 0; }
.w6-choice { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.w6-choice .k-select { width: auto; flex: 1 1 180px; max-width: 320px; }
.w6-choice button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.w6-predict { margin: 4px 0 14px; }
.w6-predict p { margin: 0 0 8px; }
.k-sec.you ol > li, .k-sec.note ul > li { margin-bottom: 6px; }
.k-stat b { overflow-wrap: anywhere; }
