/* The interactive tools inside a viki's pages (tools.js, render/tool.go). Colors come from app.css's
 * variables, so a tool follows the reader's light or dark theme like the rest of the page. */

.viki-tool { margin: 1.5rem 0; padding: 1rem; border: 1px solid var(--line); border-radius: 10px; background: var(--tint); }
.viki-tool .tool-wait { margin: 0; color: var(--muted); }
.viki-tool h3 { margin: 0 0 .5rem; font-size: 1.05rem; }
.viki-tool h4 { margin: .75rem 0 .35rem; font-size: .95rem; }
.viki-tool p { margin: .4rem 0; }

.tool-form { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: flex-end; }
.tool-form > form { display: contents; }
.tool-field { display: flex; flex-direction: column; gap: .25rem; min-width: 9rem; flex: 1 1 9rem; }
.tool-label { font-size: .85rem; color: var(--muted); }
.tool-hint { font-size: .78rem; color: var(--muted); }
.viki-tool input, .viki-tool select {
  font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line);
  border-radius: 6px; padding: .45rem .55rem; min-width: 0; width: 100%; box-sizing: border-box;
}
.tool-button {
  font: inherit; cursor: pointer; border: 0; border-radius: 6px; padding: .5rem .9rem;
  background: var(--link); color: var(--on-link); font-weight: 600;
}
.tool-button.secondary { background: transparent; color: var(--link); border: 1px solid var(--line); }
.tool-link { font: inherit; background: none; border: 0; padding: 0; color: var(--link); cursor: pointer; text-align: left; }
.tool-link:hover, .tool-button:hover { text-decoration: underline; }

.tool-status { min-height: 1.2em; color: var(--muted); }
/* Waiting on NC (George, Oct 8, 2026: "show a loading spinner when waiting for data from NC"). */
.tool-spinner { display: inline-block; width: 1em; height: 1em; margin-right: .5em; vertical-align: -.15em;
  border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: tool-spin .7s linear infinite; }
@keyframes tool-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .tool-spinner { animation-duration: 2s; } }
.tool-char-link { margin: .35em 0 0; }
.tool-results { display: grid; gap: .35rem; margin: .5rem 0; }
.tool-hit {
  font: inherit; text-align: left; cursor: pointer; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: 6px; padding: .45rem .6rem;
}
.tool-hit span { color: var(--muted); font-size: .9rem; }
.tool-hit:hover, .tool-hit:focus-visible { border-color: var(--link); }
.tool-try { display: flex; flex-wrap: wrap; gap: .4rem .5rem; align-items: center; margin: .75rem 0 .25rem; }
.tool-try .tool-label { margin-right: .15rem; }
.tool-try .tool-button { padding: .35rem .7rem; font-weight: 600; }
.tool-example {
  display: inline-flex; gap: .3rem; align-items: baseline; padding: .3rem .65rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink); text-decoration: none; font-size: .9rem;
}
.tool-example span { color: var(--muted); font-size: .82rem; }
.tool-example:hover, .tool-example:focus-visible { border-color: var(--link); }
.tool-manual { margin: .5rem 0 1rem; }
.tool-manual summary { cursor: pointer; color: var(--link); }
.tool-manual .tool-form { margin-top: .5rem; }

.tool-output { margin-top: .75rem; }
.tool-section { margin: 1rem 0 0; padding-top: .75rem; border-top: 1px solid var(--line); }
.tool-muted { color: var(--muted); font-size: .9rem; }
.tool-note { color: var(--muted); }
.tool-note.error { color: var(--accent); }
.tool-note.warn { color: var(--moment); font-weight: 600; }
.tool-flag {
  display: inline-block; font-size: .72rem; line-height: 1.4; padding: 0 .4rem; margin-left: .35rem;
  border-radius: 999px; border: 1px solid var(--line); color: var(--muted); vertical-align: middle;
}

.tool-char { display: flex; gap: 1rem; align-items: center; }
.tool-char img { border-radius: 50%; background: var(--bg); flex: none; }
.tool-char-name { font-size: 1.2rem; font-weight: 700; margin: 0; }
.tool-char-power { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.tool-char-power strong { font-size: 1.15rem; color: var(--strong); }
/* Gear and Skills, after the numbers: down to that section. */
.tool-char-power { align-items: baseline; }
.tool-jump {
  border: 1px solid var(--line); border-radius: 999px; background: none; color: var(--link);
  padding: .1rem .7rem; font: inherit; font-size: .9rem; cursor: pointer;
}
.tool-jump:hover, .tool-jump:focus-visible { border-color: var(--link); outline: none; }
/* A section jumped to clears the page's sticky header; in the viewer nothing covers the top. */
.tool-section { scroll-margin-top: calc(var(--header-h, 0px) + .75rem); }
.cw-detail .tool-section { scroll-margin-top: .75rem; }
.tool-advice { padding-left: 1.3rem; }
.tool-advice li { margin: .55rem 0; }

.tool-scroll { overflow-x: auto; }
.tool-table { border-collapse: collapse; width: 100%; font-size: .92rem; }
.tool-table th, .tool-table td { text-align: left; padding: .35rem .5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.tool-table thead th { color: var(--muted); font-weight: 600; }
.tool-table tr.is-here td { background: color-mix(in srgb, var(--link) 14%, transparent); }
.tool-table tr.is-done td { color: var(--muted); }
.tool-icon { vertical-align: middle; margin-right: .4rem; border-radius: 4px; background: var(--bg); }
.tool-item-detail { margin-top: .5rem; }
.grade-common { color: var(--muted); }
.grade-rare { color: #5aa9ff; }
.grade-legend, .grade-legendary { color: #b98cff; }
.grade-unique { color: #f0b429; }
.grade-epic, .grade-hero { color: #ff7a59; }

.tool-skills { list-style: none; padding: 0; margin: 0; display: grid; gap: .3rem; }
ol.tool-skills { list-style: decimal; padding-left: 1.4rem; }
.tool-skills li { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; }
.tool-skills li.is-priority span:first-of-type { font-weight: 700; }
.tool-level { color: var(--muted); font-size: .88rem; margin-left: auto; }

.tool-bar-row { display: grid; grid-template-columns: 6rem 1fr 5rem; gap: .5rem; align-items: center; margin: .3rem 0; font-size: .92rem; }
.tool-bar { height: .55rem; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); overflow: hidden; }
.tool-bar span { display: block; height: 100%; background: var(--link); }

.tool-tabs { display: flex; flex-wrap: wrap; gap: .35rem; margin: .25rem 0 .75rem; }
.tool-tab {
  font: inherit; cursor: pointer; padding: .35rem .7rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink);
}
.tool-tabs.small .tool-tab { font-size: .88rem; padding: .25rem .6rem; }
.tool-tab.is-on { background: var(--link); color: var(--on-link); border-color: var(--link); }

/* The Daevanion board: one square per cell, nodes colored by grade as the game colors them. */
.dv-wrap { overflow-x: auto; padding-bottom: .25rem; }
.dv-grid { display: grid; grid-template-columns: repeat(var(--cols, 15), minmax(1.35rem, 1fr)); gap: 3px; max-width: 34rem; margin: 0 auto; }
.dv-cell { aspect-ratio: 1; border-radius: 4px; border: 1px solid transparent; padding: 0; font-size: .7rem; line-height: 1; color: var(--ink); }
.dv-cell.empty { visibility: hidden; }
button.dv-cell { cursor: pointer; background: var(--bg); opacity: .55; border-color: var(--line); }
button.dv-cell.grade-C { border-color: #4f9a62; }
button.dv-cell.grade-R { border-color: #3d7fd6; }
button.dv-cell.grade-U { border-color: #9a6cd6; }
button.dv-cell.grade-L { border-color: #e0782f; }
button.dv-cell.is-open { opacity: 1; color: #fff; }
button.dv-cell.is-open.grade-C { background: #4f9a62; }
button.dv-cell.is-open.grade-R { background: #3d7fd6; }
button.dv-cell.is-open.grade-U { background: #9a6cd6; }
button.dv-cell.is-open.grade-L { background: #e0782f; }
button.dv-cell.type-S { background: var(--strong); color: var(--bg); opacity: 1; }
button.dv-cell:hover, button.dv-cell:focus-visible { opacity: 1; outline: 2px solid var(--link); outline-offset: 1px; }
.tool-node-info { min-height: 2.6em; font-size: .9rem; color: var(--muted); }

.tool-clocks p { margin: .25rem 0; }
.tool-checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.tool-checklist label { display: flex; gap: .5rem; align-items: baseline; cursor: pointer; }
.tool-checklist input { width: auto; }
.tool-checklist .tool-muted { display: block; margin-left: 1.6rem; }
.tool-sources { font-size: .85rem; color: var(--muted); }

@media (max-width: 40rem) {
  .viki-tool { padding: .75rem; }
  .tool-char { align-items: flex-start; }
  .tool-bar-row { grid-template-columns: 5rem 1fr 4.5rem; }
  .dv-grid { gap: 2px; }
}

/* The Characters wall and its viewer (tools.js characterWall), in Heart Photos' terms
   (photoweb/gallery.css): tiles with rounded corners and the caption under the picture; the one in
   hand lifted with no easing while the others slide (.16s, the same curve); a row of thumbnails
   along the top with a 2px bar of the accent on the edge facing the character below. */
.viki-tool .cw-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px;
  margin-top: .75rem;
}
.cw-tile {
  position: relative; display: flex; flex-direction: column; text-align: left;
  font: inherit; color: var(--ink); background: var(--bg); padding: 0; cursor: zoom-in;
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden; user-select: none;
  transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease;
}
.cw-tile:hover, .cw-tile:focus-visible { border-color: var(--link); box-shadow: 0 6px 18px rgb(0 0 0 / .35); }
.cw-pic { display: block; aspect-ratio: 1; background: var(--line); overflow: hidden; }
.cw-pic img, .cw-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.cw-none {
  display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
  font-size: 2.2rem; font-weight: 700; color: var(--muted);
}
.cw-cap { display: grid; gap: .1rem; padding: .45rem .6rem .55rem; font-size: .86rem; line-height: 1.3; }
.cw-cap strong { font-size: .95rem; }
.cw-cap span { color: var(--muted); }
.cw-cap .cw-nums { font-size: .78rem; }
.cw-grid.rearranging { overflow-anchor: none; }
.cw-grid.rearranging .cw-tile:hover { box-shadow: none; }
.cw-tile.shifting { transition: transform .16s cubic-bezier(.2, .7, .3, 1); }
.cw-tile.tile-dragging {
  cursor: grabbing; z-index: 4; transition: none; will-change: transform; pointer-events: none;
  box-shadow: 0 14px 34px rgb(0 0 0 / .55); outline: 2px solid var(--accent); outline-offset: -2px;
}
.cw-tile.tile-landing {
  z-index: 4; box-shadow: 0 14px 34px rgb(0 0 0 / .55);
  transition: transform .22s cubic-bezier(.2, .7, .3, 1), box-shadow .22s ease;
}

html.cw-open { overflow: hidden; }
.cw-viewer {
  position: fixed; inset: 0; z-index: 1000; display: flex; flex-direction: column;
  background: var(--bg); color: var(--ink);
}
.cw-viewer[hidden] { display: none; }
.cw-top { position: relative; flex: none; }
/* Moving along the row, as Heart Photos' row does with Browse off: a band at each end, only when
   there is more that way, narrow enough that the thumbnail under it is still a picture. */
.cw-page {
  position: absolute; top: 0; bottom: 0; z-index: 3; width: 58px;
  border: 0; padding: 0; cursor: pointer; color: #fff; line-height: 1;
  display: grid; place-items: center;
  background: linear-gradient(to right, rgb(0 0 0 / .75), rgb(0 0 0 / 0));
  transition: opacity .15s ease; opacity: .92;
}
/* A disc under the chevron, so it reads as a button rather than as a shadow on the picture. */
.cw-page::before {
  content: ""; position: absolute; z-index: -1;
  width: 34px; height: 34px; border-radius: 999px;
  background: rgb(18 18 22 / .82); border: 1px solid rgb(255 255 255 / .22);
}
.cw-page:hover::before { background: rgb(30 30 36 / .92); border-color: rgb(255 255 255 / .5); }
.cw-page.next { background: linear-gradient(to left, rgb(0 0 0 / .72), rgb(0 0 0 / 0)); }
.cw-page.prev { left: 0; }
.cw-page.next { right: 0; }
.cw-page:hover, .cw-page:focus-visible { opacity: 1; outline: none; }
.cw-page:focus-visible { box-shadow: inset 0 0 0 1px #fff; }
.cw-page[hidden] { display: none; }
@media (hover: none), (pointer: coarse) { .cw-page { display: none; } }
.cw-strip {
  --cw-strip-h: 156px; /* 104px until George asked for half again (Oct 8, 2026) */
  display: flex; gap: 2px; height: var(--cw-strip-h); overflow-x: auto; overflow-y: hidden;
  justify-content: safe center; align-items: flex-start;
  background: linear-gradient(to bottom, rgb(0 0 0 / .78), rgb(0 0 0 / .2)); scrollbar-width: none;
}
.cw-strip::-webkit-scrollbar { display: none; }
.cw-thumb {
  position: relative; flex: 0 0 auto; width: var(--cw-strip-h); height: var(--cw-strip-h);
  padding: 0; border: 0; border-radius: 0; background: #1a1a20; cursor: pointer; overflow: hidden;
  touch-action: none;
}
.cw-thumb::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 0 0 transparent; transition: box-shadow .15s ease;
}
.cw-thumb:hover::after { box-shadow: inset 0 -2px 0 0 rgb(255 255 255 / .7); }
.cw-thumb:focus-visible::after { box-shadow: inset 0 0 0 1px #fff; }
.cw-thumb.on::after { box-shadow: inset 0 -2px 0 0 var(--accent); }
.cw-thumb.shifting { transition: transform .16s cubic-bezier(.2, .7, .3, 1); }
.cw-thumb.dragging { transition: none; z-index: 3; box-shadow: 0 10px 26px rgb(0 0 0 / .6); cursor: grabbing; }
@media (hover: none), (pointer: coarse) { .cw-thumb { touch-action: pan-x; } .cw-tile { touch-action: pan-y; } }
/* The text takes the window's width, so its scrollbar is at the window's edge; Back sits above
   it, where the text starts. */
.cw-body { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; }
.cw-bar {
  flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem;
  padding: .8rem max(1rem, calc((100% - 48rem) / 2)) 0;
}
.cw-back {
  height: 2.1rem; border: 1px solid var(--line); border-radius: 999px; background: none; color: var(--ink);
  padding: 0 .9rem; font: inherit; font-size: .95rem; cursor: pointer;
}
.cw-back:hover, .cw-back:focus-visible { border-color: var(--link); color: var(--link); outline: none; }
/* "‹ 3 of 9 ›" and the Clickless pill, drawn as Vi.ki's photo viewer draws them (wall.css .v-nav,
   .v-switch), on the page's own ground rather than over a picture. */
.cw-nav {
  display: inline-flex; align-items: center; gap: .1rem; height: 2.1rem; padding: 0 .35rem;
  border-radius: 999px; background: var(--tint); color: var(--ink);
}
.cw-nav-btn {
  width: 1.9rem; height: 1.9rem; padding: 0; border: 0; border-radius: 999px; cursor: pointer;
  background: none; color: inherit; display: grid; place-items: center;
}
.cw-nav-btn:hover, .cw-nav-btn:focus-visible { background: var(--line); outline: none; }
.cw-nav-btn svg { display: block; }
.cw-tally { padding: 0 .35rem; font-size: .82rem; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cw-switch {
  display: inline-flex; align-items: center; gap: 7px; height: 2.1rem; padding: 0 .7rem;
  border: 0; border-radius: 999px; cursor: pointer; font: inherit; font-size: .82rem; line-height: 1;
  color: var(--ink); background: var(--tint);
}
.cw-switch:hover, .cw-switch:focus-visible { background: var(--line); outline: none; }
.cw-pill {
  flex: 0 0 auto; display: inline-flex; align-items: center; pointer-events: none;
  width: 34px; height: 19px; padding: 2px; border-radius: 999px;
  background: rgb(127 127 127 / .3); transition: background .15s ease;
}
.cw-knob { width: 15px; height: 15px; border-radius: 50%; background: rgb(255 255 255 / .7); transition: transform .15s ease, background .15s ease; }
.cw-switch.on .cw-pill { background: var(--accent); }
.cw-switch.on .cw-knob { transform: translateX(15px); background: #fff; }
@media (prefers-reduced-motion: reduce) { .cw-pill, .cw-knob { transition: none; } }
@media (hover: none), (pointer: coarse) { .cw-switch { display: none; } }
/* One line, above Where to focus next; none between the sections after it. */
.char-section ~ .char-section { border-top: 0; }
.cw-detail { flex: 1; min-height: 0; overflow-y: auto; padding: 1rem max(1rem, calc((100% - 48rem) / 2)) 1.25rem; }
@media (max-width: 40rem) {
  .viki-tool .cw-grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
  .cw-strip { --cw-strip-h: 114px; }
}
.cw-load-row { margin: .6rem 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .8rem; }
.cw-load-row .tool-status { min-height: 0; }
.tool-refresh { font-size: inherit; }
.tool-refresh[disabled] { cursor: default; opacity: .8; }
.tool-refresh-error { color: var(--accent); }

/* A button that is a link: the calendar file and the calendar site are addresses, so a long press
 * and a middle click do what a reader expects of them. */
a.tool-button { display: inline-block; text-decoration: none; }

/* Character Compare: the two finders side by side, one above the other on a phone. */
.cmp-pick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.5rem; }
.cmp-chosen { min-height: 1.4em; }
.cmp-heads { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.5rem; margin-top: .5rem; }
.cmp-table th[scope="row"] { font-weight: 400; color: var(--muted); white-space: nowrap; }
.cmp-diff { white-space: nowrap; font-variant-numeric: tabular-nums; }
/* A difference is the second character's lead (up) or the first's (down); the sign says it too,
 * so the color is never the only way to tell. */
.cmp-diff.up { color: var(--ok); }
.cmp-diff.down { color: var(--accent); }
.cmp-lead { background: color-mix(in srgb, var(--ok) 14%, transparent); }
@media (max-width: 40rem) { .cmp-pick, .cmp-heads { grid-template-columns: 1fr; } }

/* Unlock Time: the reader's own hour first, large, and the countdown under it in figures that do
 * not change width as they tick. */
.tool-unlock-when strong { font-size: 1.35rem; color: var(--strong); }
.tool-count { font-size: 1.15rem; font-variant-numeric: tabular-nums; }

/* Alt Energy Planner: the energy is a field in its row, typed over when the reader looks again. */
.viki-tool input.roster-set { width: 5.5rem; display: inline-block; }
.tool-table.roster th[scope="row"] { font-weight: 600; }

/* Moment Finder: each answer is the second to play, then the words that earned it. */
.mf-list { list-style: none; padding: 0; margin: .5rem 0 0; display: grid; gap: .75rem; }
.mf-list li { padding-top: .6rem; border-top: 1px solid var(--line); }
.mf-play { text-decoration: none; font-weight: 600; }
.mf-play:hover .moment-label, .mf-play:focus-visible .moment-label { text-decoration: underline; }
.mf-clock { color: var(--moment); font-variant-numeric: tabular-nums; margin-right: .25rem; }

/* Timers (Aion 2): one card per repeating time, its countdown large and steady in width. */
.tm-list { display: grid; gap: .75rem; }
.tm-event { border: 1px solid var(--line); border-radius: 8px; padding: .6rem .8rem; }
.tm-event h3 { margin: 0 0 .25rem; font-size: 1.05rem; }
.tm-event p { margin: .3rem 0; }
.tm-count { font-size: 1.15rem; font-variant-numeric: tabular-nums; color: var(--strong); }
.tm-remind { display: inline-flex; gap: .35rem; align-items: center; cursor: pointer; }
.tm-remind input { width: auto; }
.tm-src summary { cursor: pointer; color: var(--muted); font-size: .85rem; }
.tm-mine { list-style: none; padding: 0; display: grid; gap: .35rem; }
.tm-alerts { margin: .5rem 0 .75rem; }
/* Share links (Oct 16, 2026): the button that copies a tool's own address, and the link shown to
   copy by hand where the clipboard is refused. */
.tool-share-row { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.tool-share { padding: .3rem .7rem; }
.tool-share-said { color: var(--muted); font-size: .9em; overflow-wrap: anywhere; }
.tool-share-url { width: min(32rem, 100%); font: inherit; padding: .25rem .4rem; }

/* The progress chart (Oct 16, 2026): item level and Combat Power over the days a reader read the
   character from NC, each line on its own scale. */
.tool-progress-chart { display: block; width: 100%; max-width: 600px; height: auto; margin: .5rem 0 .25rem; }
.tool-progress-chart .line-il { stroke: var(--ok); stroke-width: 2.5; }
.tool-progress-chart .line-cp { stroke: var(--link); stroke-width: 2.5; stroke-dasharray: 6 4; }
.tool-progress-chart .dot-il { fill: var(--ok); }
.tool-progress-chart .dot-cp { fill: var(--link); }
.tool-progress-key .key-il::before, .tool-progress-key .key-cp::before { content: ""; display: inline-block; width: 1.2em; height: 0; border-top: 3px solid var(--ok); vertical-align: middle; margin-right: .3em; }
.tool-progress-key .key-cp::before { border-top: 3px dashed var(--link); }

/* Enshrouded Recipes (Nov 6, 2026): a material is a button that opens "What can I make" on it; what a
   reader lacks for a recipe is struck through. */
.rc-table td { font-size: .9rem; }
.rc-table td:first-child { min-width: 9rem; }
.rc-inputs .tool-link { color: var(--link); }
.rc-missing { text-decoration: line-through; opacity: .65; }
.rc-chips { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.rc-src { font-size: .8rem; }
.rc-input { display: block; white-space: nowrap; }
.rc-inline .rc-inputs, .rc-inline .rc-input { display: inline-block; }
.rc-inline .rc-input { margin-right: .9rem; }
.rc-note { font-size: .82rem; margin-top: .15rem; }

/* The player analysis (server/playerstats.go): a bar per UTC hour against the day's average. */
.pa-hours { display: flex; align-items: flex-end; gap: 2px; height: 90px; margin: .5rem 0 0; }
.pa-bar { flex: 1; min-height: 2px; background: color-mix(in srgb, currentColor 35%, transparent); border-radius: 2px 2px 0 0; }
.pa-bar.is-hi { background: #e5484d; }
.pa-bar.is-lo { background: color-mix(in srgb, currentColor 18%, transparent); }
.pa-axis { display: flex; justify-content: space-between; font-size: .8em; opacity: .7; margin: .2rem 0 1rem; }
.pa-facts th { text-align: left; font-weight: 600; }

/* Class Changes (Nov 8, 2026): each change wears its kind as a small badge, colored so buffs and nerfs
   read at a glance; the words carry the meaning too, so color is never the only signal. */
.tool-check { display: flex; gap: .4rem; align-items: center; font-size: .9rem; cursor: pointer; align-self: end; }
.cc-list { margin: .25rem 0 .5rem; padding-left: 1.1rem; }
.cc-list li { margin: .3rem 0; }
.cc-kind { display: inline-block; min-width: 3.6em; padding: 0 .35em; border-radius: 4px; font-size: .78em; font-weight: 600; text-align: center; border: 1px solid var(--line); }
.cc-buff { color: #1f9d55; border-color: color-mix(in srgb, #1f9d55 45%, transparent); }
.cc-nerf { color: #e5484d; border-color: color-mix(in srgb, #e5484d 45%, transparent); }
.cc-rework, .cc-new { color: #3b82f6; border-color: color-mix(in srgb, #3b82f6 45%, transparent); }
.cc-fix { color: var(--muted); }
