/* Styles only this website needs. The shared look is kit/kit.css; this file uses its tokens only.
   The lighter accent for dark mode is in site.json (accentDark). */

/* Dark mode: lighter green, red and amber so text in those colours stays readable on the dark background. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --good: #4ade80; --bad: #f87171; --warn: #fbbf24; }
}

/* One saved conversation with its verdict: a white card; the messages inside it are plain rows, not cards. */
.ex { border: 1px solid var(--edge); border-radius: 12px; padding: 14px 16px; margin: 14px 0; background: var(--bg); }
.k-sec.try .ex { background: var(--panel-2); }
.ex-head { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; justify-content: space-between; margin-bottom: 2px; }
.ex-head b { font-size: 15px; font-weight: 600; }
.ex-meta { font-size: 13px; color: var(--muted); }
p.ex-meta { margin: 10px 0 0; }
.ex .k-code { margin: 12px 0 4px; }

.ex .k-msg, .version .k-msg {
  margin: 0; padding: 10px 0 11px; border: 0; border-top: 1px solid var(--edge); border-radius: 0; background: none; box-shadow: none;
}
.ex .k-msg:first-of-type, .version .k-msg:first-of-type { margin-top: 10px; }
.ex .k-msg .who, .version .k-msg .who { margin-bottom: 3px; text-transform: uppercase; }
.ex .k-msg.assistant .who, .version .k-msg.assistant .who { color: var(--ink); }
.k-msg.tool .body { word-break: break-word; font-family: var(--mono); font-size: 13px; }

/* Input and output checks in a transcript: the code speaking, in green. */
.k-msg.check .who { color: var(--good); }
.ex .k-msg.check, .version .k-msg.check { font-size: 14.5px; padding-left: 12px; box-shadow: inset 2px 0 0 var(--good); }

/* The two numbers side by side, per level */
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; margin: 14px 0; }
.two .k-stat b small { font: 500 14px/1 var(--body); color: var(--muted); margin-left: 4px; }
.two .k-stat.att { box-shadow: inset 3px 0 0 var(--bad); }
.two .k-stat.nor { box-shadow: inset 3px 0 0 var(--good); }

/* Cells of the level tables. Attack cells: red while an attack gets through. Normal cells: amber when fewer
   normal requests were answered than at the starting level, plain ink otherwise (never green: holding is not a gain). */
.cell-bad, .cell-good, .cell-warn, .cell-plain { font-weight: 600; white-space: nowrap; }
.cell-bad { color: var(--bad); }
.cell-good { color: var(--good); }
.cell-warn { color: var(--warn); }
.k-table td small { color: var(--muted); display: block; font-size: 12px; font-variant-numeric: tabular-nums; }
.k-table tr.total td { border-top: 1.5px solid var(--ink); font-weight: 600; }
.k-table tr.sep td { background: var(--panel-2); font: 600 12px/1.35 var(--body); color: var(--muted); }
.w10-levels th.num { min-width: 5.5em; }

/* The live boxes: one column per run or per version of the assistant */
.versions { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin-top: 14px; }
.versions:empty { display: none; }
.version { border: 1px solid var(--edge); border-radius: 12px; padding: 12px 14px; background: var(--panel-2); min-width: 0; }
.version h4 { margin: 0; font: 600 11.5px/1.3 var(--body); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.verdict { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 14px; }
.version .k-msg { font-size: 14.5px; }
.starter { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.starter span { font-weight: 600; font-size: 14px; margin-right: 4px; align-self: center; }

/* The sorting box: one row, two buttons, our label after the choice */
.w10-pick .ex { margin-top: 0; }
.w10-choice { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.w10-choice button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.w10-pick .k-out p { margin: 12px 0 0; }

/* The guide shape: the "you are done when" line, the "notice" line above a conversation, lists, files */
.w10-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)); }
.w10-notice { margin: 16px 0 -6px; font-size: 15px; }
.k-sec ol > li, .k-sec ul > li { margin-bottom: 6px; }
.k-sec.note { background: var(--warn-soft); }
.k-files li { flex-wrap: wrap; }
.k-files li b { word-break: break-all; font-weight: 600; }
.k-files li span { flex: 1 1 220px; min-width: 0; font-size: 14.5px; color: var(--muted); }
a.k-btn { text-decoration: none; display: inline-block; }
details.k-more summary { font-weight: 600; font-size: 14.5px; }
details.k-more[open] > summary { margin-bottom: 8px; }
.k-try > div:first-child > :last-child { margin-bottom: 16px; }
.k-sec .k-row + p { margin-top: 16px; }
