Reskin: CRT-pixel technical-instrument UI (dense option table, roofline centerpiece, pixel icons, phosphor-green, no emoji/em-dash)
Browse files- static/app.js +32 -32
- static/icons.js +82 -55
- static/index.html +13 -9
- static/style.css +372 -329
static/app.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
/* ============================================================
|
| 2 |
-
FitCheck
|
| 3 |
Gathers inputs, calls the /api/advise connector, renders results.
|
| 4 |
The backend currently returns input-aware PLACEHOLDER data; the
|
| 5 |
real engine plugs into the same /api/advise contract later.
|
|
@@ -113,7 +113,7 @@ function sanitizeHtml(html) {
|
|
| 113 |
return tpl.innerHTML;
|
| 114 |
}
|
| 115 |
const state = { mode: "have", task: "run", computer: "Windows laptop", provider: "none", priority: "balanced", usecases: ["chat"], checked: false };
|
| 116 |
-
let lastAdvice = null; // the most recent /api/advise result
|
| 117 |
let multiCache = null; // {ucs, results} when several goals are checked at once
|
| 118 |
|
| 119 |
// ---- Buy-vs-check mode -----------------------------------------------------
|
|
@@ -185,7 +185,7 @@ function setActive(id, val) {
|
|
| 185 |
$(id).querySelectorAll(".seg-btn").forEach(b => b.classList.toggle("active", b.dataset.val === val));
|
| 186 |
}
|
| 187 |
|
| 188 |
-
// Run vs Train sliding switch
|
| 189 |
function wireTaskToggle() {
|
| 190 |
const tog = $("#task-toggle");
|
| 191 |
if (!tog) return;
|
|
@@ -249,7 +249,7 @@ function findSpecsText() {
|
|
| 249 |
<ul style="margin:0;padding-left:18px">
|
| 250 |
<li><b>RAM:</b> press <code>Ctrl + Shift + Esc</code>, then <b>Performance</b>, then <b>Memory</b>.</li>
|
| 251 |
<li><b>Graphics card:</b> same window, <b>GPU</b>. The name is top-right (e.g. <i>NVIDIA RTX 3060</i>).</li>
|
| 252 |
-
<li>No real GPU listed? You have built-in graphics. Pick
|
| 253 |
</ul>`;
|
| 254 |
}
|
| 255 |
|
|
@@ -321,7 +321,7 @@ async function check() {
|
|
| 321 |
// finetune that walks to a catalogue base) re-renders the full breakdown; a
|
| 322 |
// model we don't know falls back to clearly-labelled raw parameter math.
|
| 323 |
async function lookupRepo(payload) {
|
| 324 |
-
$("#results").innerHTML = `<div class="reveal"><div class="ans-loading"><span class="spinner"></span> Looking up ${esc(payload.repo)} on Hugging Face
|
| 325 |
let d;
|
| 326 |
try {
|
| 327 |
const res = await fetch("/api/lookup", {
|
|
@@ -363,7 +363,7 @@ async function lookupRepo(payload) {
|
|
| 363 |
if (wrap) {
|
| 364 |
const banner = document.createElement("div");
|
| 365 |
banner.className = "lookup-banner estimate";
|
| 366 |
-
banner.innerHTML = `<span class="live-tag">Live Hugging Face lookup
|
| 367 |
wrap.prepend(banner);
|
| 368 |
}
|
| 369 |
return;
|
|
@@ -383,7 +383,7 @@ function renderMulti(results) {
|
|
| 383 |
<div class="goal-card" data-i="${i}" style="--status:${v.cls};--status-soft:${v.soft}">
|
| 384 |
<div class="goal-top"><span class="badge"><span class="dot"></span>${esc(d.verdict_word || v.word)}</span></div>
|
| 385 |
<div class="goal-name">${esc(d.use_case || "")}</div>
|
| 386 |
-
<div class="goal-pick">${d.headline_model ? `
|
| 387 |
<div class="goal-need">${esc(need)}</div>
|
| 388 |
<div class="goal-more">See full breakdown</div>
|
| 389 |
</div>`;
|
|
@@ -402,7 +402,7 @@ function renderMulti(results) {
|
|
| 402 |
$("#results").querySelectorAll(".goal-card").forEach(c => c.addEventListener("click", () => {
|
| 403 |
render(multiCache.results[parseInt(c.dataset.i, 10)]);
|
| 404 |
}));
|
| 405 |
-
$("#cat-version").textContent = (results[0] || {}).catalogue_version || "
|
| 406 |
}
|
| 407 |
|
| 408 |
// ---- Buy-advice render: multi-platform, click any card for what to look for -
|
|
@@ -413,7 +413,7 @@ function renderBuy(d) {
|
|
| 413 |
const tierCard = (t, kind) => {
|
| 414 |
if (!t) return `<div class="buy-card empty">
|
| 415 |
<div class="bc-head"><span class="bc-kind ${kind}">${kind === "min" ? "Minimum" : "Comfortable"}</span></div>
|
| 416 |
-
<p class="bc-none">No build on this platform ${ft ? "trains" : "runs"} ${multi ? "all of these" : "this"}${ft ? "" : " well"}
|
| 417 |
</div>`;
|
| 418 |
const goalsHtml = multi
|
| 419 |
? `<ul class="bc-goals">${t.goals.map(g => `<li><span>${esc(g.goal)}</span><b>${esc(g.model)}</b>${g.verdict === "tight" ? " <i>(tight)</i>" : ""}</li>`).join("")}</ul>`
|
|
@@ -435,7 +435,7 @@ function renderBuy(d) {
|
|
| 435 |
$("#results").innerHTML = `
|
| 436 |
<div class="reveal">
|
| 437 |
<div class="verdict" style="--status:var(--accent);--status-soft:var(--accent-soft)">
|
| 438 |
-
<span class="badge"><span class="dot"></span>Buying advice
|
| 439 |
<h2>What to buy to ${verb} ${esc((d.use_case || "this").toLowerCase())}</h2>
|
| 440 |
<p>${esc(d.disclaimer || "")}</p>
|
| 441 |
${d.note ? `<div class="note">${sanitizeHtml(d.note)}</div>` : ""}
|
|
@@ -449,21 +449,21 @@ function renderBuy(d) {
|
|
| 449 |
if (opening) det.removeAttribute("hidden"); else det.setAttribute("hidden", "");
|
| 450 |
b.classList.toggle("open", opening);
|
| 451 |
}));
|
| 452 |
-
$("#cat-version").textContent = d.catalogue_version || "
|
| 453 |
}
|
| 454 |
|
| 455 |
// ---- Render results -------------------------------------------------------
|
| 456 |
const VMAP = {
|
| 457 |
-
great: { cls: "var(--ok)", soft: "var(--ok-soft)", word: "Runs great",
|
| 458 |
-
tight: { cls: "var(--warn)", soft: "var(--warn-soft)", word: "Tight, but works",
|
| 459 |
-
no: { cls: "var(--no)", soft: "var(--no-soft)", word: "Won't fit",
|
| 460 |
};
|
| 461 |
|
| 462 |
function render(d) {
|
| 463 |
lastAdvice = d;
|
| 464 |
const v = VMAP[d.verdict] || VMAP.tight;
|
| 465 |
const g = d.gauge || {};
|
| 466 |
-
$("#cat-version").textContent = d.catalogue_version || "
|
| 467 |
|
| 468 |
const licChip = (o) => {
|
| 469 |
if (!o.license) return "";
|
|
@@ -481,9 +481,9 @@ function render(d) {
|
|
| 481 |
? `<a href="${safeUrl(o.url)}" target="_blank" rel="noopener">${esc(o.model)}</a>` : esc(o.model);
|
| 482 |
const cur = o.model === current ? " opt-current" : "";
|
| 483 |
return `<div class="opt${cur}" data-model="${esc(o.model)}" style="--status:${ov.cls};--status-soft:${ov.soft}">
|
| 484 |
-
<div class="vdot">${ov.
|
| 485 |
<div><div class="name">${name}${licChip(o)}</div><div class="desc">${esc(o.desc)}</div></div>
|
| 486 |
-
<div class="meta"><b>${esc(o.memory)}</b><div class="feel">${esc(o.setting)}${o.feel && o.feel !== "
|
| 487 |
</div>`;
|
| 488 |
}).join("");
|
| 489 |
|
|
@@ -531,8 +531,8 @@ function render(d) {
|
|
| 531 |
<div class="gauge" style="--pct:${g.fill_pct};--gcolor:${v.cls}">
|
| 532 |
<div class="gauge-fill"></div>
|
| 533 |
</div>
|
| 534 |
-
${g.has_fast && g.fast_label ? `<div class="gmark gmark-gpu" style="left:${g.mark_pct}%" data-tip="${esc(g.fast_label)}
|
| 535 |
-
<div class="gmark gmark-total" style="left:${g.total_pct}%" data-tip="${g.has_fast ? "Everything available: GPU memory plus the system RAM a model can spill into (the spilled part runs slower)." : "Your system RAM
|
| 536 |
</div>
|
| 537 |
<div class="gauge-legend">
|
| 538 |
${(g.breakdown||[]).map(b=>`<span class="item"><span class="sw" style="background:${esc(b.color)}"></span>${esc(b.label)}</span>`).join("")}
|
|
@@ -549,18 +549,18 @@ function render(d) {
|
|
| 549 |
<p class="viz-caption">
|
| 550 |
Every grey dot is a <b>real benchmark run</b> from the
|
| 551 |
<a href="https://www.localscore.ai" target="_blank" rel="noopener">LocalScore</a> community database.
|
| 552 |
-
Generation speed tracks <b>memory bandwidth</b>
|
| 553 |
(<a href="https://kipp.ly/transformer-inference-arithmetic/" target="_blank" rel="noopener">why</a>).
|
| 554 |
The dashed line is the theoretical ceiling for <b>${esc(d.speed.model)}</b> at your setting;
|
| 555 |
-
your machine is the marked dot at
|
| 556 |
(${d.speed.method === "measured-model"
|
| 557 |
? `predicted by a model trained on these measurements, following IBM's <a href="https://arxiv.org/abs/2410.02425" target="_blank" rel="noopener">LLM-Pilot</a> methodology`
|
| 558 |
-
: `an analytical estimate; a learned predictor trained on these runs
|
| 559 |
</p>
|
| 560 |
</div>
|
| 561 |
</details>` : ""}
|
| 562 |
|
| 563 |
-
${opts ? `<div class="section-title">${isFT ? "What you can fine-tune" : "What you can run"} <span class="sub">biggest to smallest
|
| 564 |
<div class="opt-grid">${opts}</div>` : ""}
|
| 565 |
|
| 566 |
${tools ? `<div class="section-title">${isFT ? "How to fine-tune it" : "How to actually run it"}</div>
|
|
@@ -591,7 +591,7 @@ function render(d) {
|
|
| 591 |
if (multiCache) {
|
| 592 |
const back = document.createElement("button");
|
| 593 |
back.className = "back-link";
|
| 594 |
-
back.
|
| 595 |
back.addEventListener("click", () => renderMulti(multiCache.results));
|
| 596 |
$("#results").firstElementChild.prepend(back);
|
| 597 |
}
|
|
@@ -599,7 +599,7 @@ function render(d) {
|
|
| 599 |
if (d.speed) drawRoofline(d.speed);
|
| 600 |
$("#results").querySelectorAll(".copy-btn").forEach(b => b.addEventListener("click", () => {
|
| 601 |
navigator.clipboard.writeText(decodeURIComponent(b.dataset.code));
|
| 602 |
-
b.textContent = "Copied
|
| 603 |
setTimeout(() => { b.textContent = "Copy"; b.classList.remove("done"); }, 1500);
|
| 604 |
}));
|
| 605 |
// Click any option card to re-render the whole breakdown for THAT model.
|
|
@@ -683,7 +683,7 @@ async function drawRoofline(speed) {
|
|
| 683 |
// flip the label to the left when the dot sits near the right edge
|
| 684 |
const flip = ux > W * 0.72;
|
| 685 |
s += `<circle cx="${ux}" cy="${uy}" r="6" class="rl-you" data-you="1" data-m="${esc(speed.model)}" data-t="${esc(speed.tps)}" data-b="${esc(Math.round(speed.eff_bw || speed.bw))}"/>` +
|
| 686 |
-
`<text x="${flip ? ux - 10 : ux + 10}" y="${uy + 4}" class="rl-you-label" text-anchor="${flip ? "end" : "start"}">you
|
| 687 |
}
|
| 688 |
s += `</svg>
|
| 689 |
<div class="rl-legend">
|
|
@@ -709,8 +709,8 @@ async function drawRoofline(speed) {
|
|
| 709 |
if (!cls || (!cls.includes("rl-dot") && !cls.includes("rl-you"))) { tip.hidden = true; return; }
|
| 710 |
const d = t.dataset;
|
| 711 |
tip.innerHTML = d.you
|
| 712 |
-
? `<b>Your machine</b><br>${esc(d.m || "your pick")}
|
| 713 |
-
: `<b>${esc(d.m || "model")}</b>${d.p ? `
|
| 714 |
tip.hidden = false;
|
| 715 |
const r = host.getBoundingClientRect();
|
| 716 |
const x = e.clientX - r.left, y = e.clientY - r.top;
|
|
@@ -728,7 +728,7 @@ function startTicker(el, base) {
|
|
| 728 |
const tick = () => {
|
| 729 |
if (el.dataset.ticking !== "1") return;
|
| 730 |
const s = Math.round((Date.now() - t0) / 1000);
|
| 731 |
-
el.innerHTML = `<span class="spinner"></span> ${base}
|
| 732 |
(s > 8 ? " <span class='tick-note'>(cold start: the model is waking, up to ~1 min)</span>" : "");
|
| 733 |
setTimeout(tick, 500);
|
| 734 |
};
|
|
@@ -742,7 +742,7 @@ async function parsePaste() {
|
|
| 742 |
const hint = $("#parse-hint");
|
| 743 |
const btn = $("#parse-btn");
|
| 744 |
if (!text) { hint.textContent = "Type or paste something first."; return; }
|
| 745 |
-
if (btn.disabled) return; // one in-flight call, ever
|
| 746 |
btn.disabled = true;
|
| 747 |
const stop = startTicker(hint, "Reading your description");
|
| 748 |
try {
|
|
@@ -793,8 +793,8 @@ function applyParsed(d, hint) {
|
|
| 793 |
got.push(`${d.ram_gb} GB RAM`);
|
| 794 |
}
|
| 795 |
hint.textContent = got.length
|
| 796 |
-
? `Understood: ${got.join(", ")}. Anything you didn't mention stayed blank
|
| 797 |
-
: "Couldn't find any specs in that text
|
| 798 |
maybeLiveUpdate();
|
| 799 |
}
|
| 800 |
|
|
|
|
| 1 |
/* ============================================================
|
| 2 |
+
FitCheck, frontend logic (UI brick)
|
| 3 |
Gathers inputs, calls the /api/advise connector, renders results.
|
| 4 |
The backend currently returns input-aware PLACEHOLDER data; the
|
| 5 |
real engine plugs into the same /api/advise contract later.
|
|
|
|
| 113 |
return tpl.innerHTML;
|
| 114 |
}
|
| 115 |
const state = { mode: "have", task: "run", computer: "Windows laptop", provider: "none", priority: "balanced", usecases: ["chat"], checked: false };
|
| 116 |
+
let lastAdvice = null; // the most recent /api/advise result, facts the model explains
|
| 117 |
let multiCache = null; // {ucs, results} when several goals are checked at once
|
| 118 |
|
| 119 |
// ---- Buy-vs-check mode -----------------------------------------------------
|
|
|
|
| 185 |
$(id).querySelectorAll(".seg-btn").forEach(b => b.classList.toggle("active", b.dataset.val === val));
|
| 186 |
}
|
| 187 |
|
| 188 |
+
// Run vs Train sliding switch, recomputes the recommendations for training.
|
| 189 |
function wireTaskToggle() {
|
| 190 |
const tog = $("#task-toggle");
|
| 191 |
if (!tog) return;
|
|
|
|
| 249 |
<ul style="margin:0;padding-left:18px">
|
| 250 |
<li><b>RAM:</b> press <code>Ctrl + Shift + Esc</code>, then <b>Performance</b>, then <b>Memory</b>.</li>
|
| 251 |
<li><b>Graphics card:</b> same window, <b>GPU</b>. The name is top-right (e.g. <i>NVIDIA RTX 3060</i>).</li>
|
| 252 |
+
<li>No real GPU listed? You have built-in graphics. Pick "None / built-in".</li>
|
| 253 |
</ul>`;
|
| 254 |
}
|
| 255 |
|
|
|
|
| 321 |
// finetune that walks to a catalogue base) re-renders the full breakdown; a
|
| 322 |
// model we don't know falls back to clearly-labelled raw parameter math.
|
| 323 |
async function lookupRepo(payload) {
|
| 324 |
+
$("#results").innerHTML = `<div class="reveal"><div class="ans-loading"><span class="spinner"></span> Looking up ${esc(payload.repo)} on Hugging Face...</div></div>`;
|
| 325 |
let d;
|
| 326 |
try {
|
| 327 |
const res = await fetch("/api/lookup", {
|
|
|
|
| 363 |
if (wrap) {
|
| 364 |
const banner = document.createElement("div");
|
| 365 |
banner.className = "lookup-banner estimate";
|
| 366 |
+
banner.innerHTML = `<span class="live-tag">Live Hugging Face lookup / estimate</span><p>${sanitizeHtml(d.explain || "")}</p>`;
|
| 367 |
wrap.prepend(banner);
|
| 368 |
}
|
| 369 |
return;
|
|
|
|
| 383 |
<div class="goal-card" data-i="${i}" style="--status:${v.cls};--status-soft:${v.soft}">
|
| 384 |
<div class="goal-top"><span class="badge"><span class="dot"></span>${esc(d.verdict_word || v.word)}</span></div>
|
| 385 |
<div class="goal-name">${esc(d.use_case || "")}</div>
|
| 386 |
+
<div class="goal-pick">${d.headline_model ? `<span class="ic" data-ic="arrow"></span>${esc(d.headline_model)}` : "Nothing realistic on this machine"}</div>
|
| 387 |
<div class="goal-need">${esc(need)}</div>
|
| 388 |
<div class="goal-more">See full breakdown</div>
|
| 389 |
</div>`;
|
|
|
|
| 402 |
$("#results").querySelectorAll(".goal-card").forEach(c => c.addEventListener("click", () => {
|
| 403 |
render(multiCache.results[parseInt(c.dataset.i, 10)]);
|
| 404 |
}));
|
| 405 |
+
$("#cat-version").textContent = (results[0] || {}).catalogue_version || "local";
|
| 406 |
}
|
| 407 |
|
| 408 |
// ---- Buy-advice render: multi-platform, click any card for what to look for -
|
|
|
|
| 413 |
const tierCard = (t, kind) => {
|
| 414 |
if (!t) return `<div class="buy-card empty">
|
| 415 |
<div class="bc-head"><span class="bc-kind ${kind}">${kind === "min" ? "Minimum" : "Comfortable"}</span></div>
|
| 416 |
+
<p class="bc-none">No build on this platform ${ft ? "trains" : "runs"} ${multi ? "all of these" : "this"}${ft ? "" : " well"}, it wants more than this ladder offers.</p>
|
| 417 |
</div>`;
|
| 418 |
const goalsHtml = multi
|
| 419 |
? `<ul class="bc-goals">${t.goals.map(g => `<li><span>${esc(g.goal)}</span><b>${esc(g.model)}</b>${g.verdict === "tight" ? " <i>(tight)</i>" : ""}</li>`).join("")}</ul>`
|
|
|
|
| 435 |
$("#results").innerHTML = `
|
| 436 |
<div class="reveal">
|
| 437 |
<div class="verdict" style="--status:var(--accent);--status-soft:var(--accent-soft)">
|
| 438 |
+
<span class="badge"><span class="dot"></span>Buying advice, to ${verb}</span>
|
| 439 |
<h2>What to buy to ${verb} ${esc((d.use_case || "this").toLowerCase())}</h2>
|
| 440 |
<p>${esc(d.disclaimer || "")}</p>
|
| 441 |
${d.note ? `<div class="note">${sanitizeHtml(d.note)}</div>` : ""}
|
|
|
|
| 449 |
if (opening) det.removeAttribute("hidden"); else det.setAttribute("hidden", "");
|
| 450 |
b.classList.toggle("open", opening);
|
| 451 |
}));
|
| 452 |
+
$("#cat-version").textContent = d.catalogue_version || "local";
|
| 453 |
}
|
| 454 |
|
| 455 |
// ---- Render results -------------------------------------------------------
|
| 456 |
const VMAP = {
|
| 457 |
+
great: { cls: "var(--ok)", soft: "var(--ok-soft)", word: "Runs great", ic: "check" },
|
| 458 |
+
tight: { cls: "var(--warn)", soft: "var(--warn-soft)", word: "Tight, but works", ic: "approx" },
|
| 459 |
+
no: { cls: "var(--no)", soft: "var(--no-soft)", word: "Won't fit", ic: "x" },
|
| 460 |
};
|
| 461 |
|
| 462 |
function render(d) {
|
| 463 |
lastAdvice = d;
|
| 464 |
const v = VMAP[d.verdict] || VMAP.tight;
|
| 465 |
const g = d.gauge || {};
|
| 466 |
+
$("#cat-version").textContent = d.catalogue_version || "local";
|
| 467 |
|
| 468 |
const licChip = (o) => {
|
| 469 |
if (!o.license) return "";
|
|
|
|
| 481 |
? `<a href="${safeUrl(o.url)}" target="_blank" rel="noopener">${esc(o.model)}</a>` : esc(o.model);
|
| 482 |
const cur = o.model === current ? " opt-current" : "";
|
| 483 |
return `<div class="opt${cur}" data-model="${esc(o.model)}" style="--status:${ov.cls};--status-soft:${ov.soft}">
|
| 484 |
+
<div class="vdot"><span class="ic" data-ic="${ov.ic}"></span></div>
|
| 485 |
<div><div class="name">${name}${licChip(o)}</div><div class="desc">${esc(o.desc)}</div></div>
|
| 486 |
+
<div class="meta"><b>${esc(o.memory)}</b><div class="feel">${esc(o.setting)}${o.feel && o.feel !== "-" ? " / " + esc(o.feel) : ""}</div></div>
|
| 487 |
</div>`;
|
| 488 |
}).join("");
|
| 489 |
|
|
|
|
| 531 |
<div class="gauge" style="--pct:${g.fill_pct};--gcolor:${v.cls}">
|
| 532 |
<div class="gauge-fill"></div>
|
| 533 |
</div>
|
| 534 |
+
${g.has_fast && g.fast_label ? `<div class="gmark gmark-gpu" style="left:${g.mark_pct}%" data-tip="${esc(g.fast_label)}, your graphics card's own memory. A model that fits left of this line runs at full GPU speed."><span class="gmark-lab">${esc(g.fast_label.replace("On the GPU ","").replace("GPU can use","GPU"))} ${esc(g.fast_gb)}</span></div>` : ""}
|
| 535 |
+
<div class="gmark gmark-total" style="left:${g.total_pct}%" data-tip="${g.has_fast ? "Everything available: GPU memory plus the system RAM a model can spill into (the spilled part runs slower)." : "Your system RAM, with no graphics card the model runs here on the processor."}"><span class="gmark-lab">${esc(g.total_label)} ${esc(g.total_gb)}</span></div>
|
| 536 |
</div>
|
| 537 |
<div class="gauge-legend">
|
| 538 |
${(g.breakdown||[]).map(b=>`<span class="item"><span class="sw" style="background:${esc(b.color)}"></span>${esc(b.label)}</span>`).join("")}
|
|
|
|
| 549 |
<p class="viz-caption">
|
| 550 |
Every grey dot is a <b>real benchmark run</b> from the
|
| 551 |
<a href="https://www.localscore.ai" target="_blank" rel="noopener">LocalScore</a> community database.
|
| 552 |
+
Generation speed tracks <b>memory bandwidth</b>, that's the one number that matters most for local AI
|
| 553 |
(<a href="https://kipp.ly/transformer-inference-arithmetic/" target="_blank" rel="noopener">why</a>).
|
| 554 |
The dashed line is the theoretical ceiling for <b>${esc(d.speed.model)}</b> at your setting;
|
| 555 |
+
your machine is the marked dot at about <b>${esc(d.speed.tps)} tok/s</b>
|
| 556 |
(${d.speed.method === "measured-model"
|
| 557 |
? `predicted by a model trained on these measurements, following IBM's <a href="https://arxiv.org/abs/2410.02425" target="_blank" rel="noopener">LLM-Pilot</a> methodology`
|
| 558 |
+
: `an analytical estimate; a learned predictor trained on these runs, <a href="https://arxiv.org/abs/2410.02425" target="_blank" rel="noopener">LLM-Pilot</a> methodology, takes over once trained`}).
|
| 559 |
</p>
|
| 560 |
</div>
|
| 561 |
</details>` : ""}
|
| 562 |
|
| 563 |
+
${opts ? `<div class="section-title">${isFT ? "What you can fine-tune" : "What you can run"} <span class="sub">biggest to smallest, click any model for its full breakdown; names link to Hugging Face</span></div>
|
| 564 |
<div class="opt-grid">${opts}</div>` : ""}
|
| 565 |
|
| 566 |
${tools ? `<div class="section-title">${isFT ? "How to fine-tune it" : "How to actually run it"}</div>
|
|
|
|
| 591 |
if (multiCache) {
|
| 592 |
const back = document.createElement("button");
|
| 593 |
back.className = "back-link";
|
| 594 |
+
back.innerHTML = '<span class="ic" data-ic="arrow"></span>All goals';
|
| 595 |
back.addEventListener("click", () => renderMulti(multiCache.results));
|
| 596 |
$("#results").firstElementChild.prepend(back);
|
| 597 |
}
|
|
|
|
| 599 |
if (d.speed) drawRoofline(d.speed);
|
| 600 |
$("#results").querySelectorAll(".copy-btn").forEach(b => b.addEventListener("click", () => {
|
| 601 |
navigator.clipboard.writeText(decodeURIComponent(b.dataset.code));
|
| 602 |
+
b.textContent = "Copied"; b.classList.add("done");
|
| 603 |
setTimeout(() => { b.textContent = "Copy"; b.classList.remove("done"); }, 1500);
|
| 604 |
}));
|
| 605 |
// Click any option card to re-render the whole breakdown for THAT model.
|
|
|
|
| 683 |
// flip the label to the left when the dot sits near the right edge
|
| 684 |
const flip = ux > W * 0.72;
|
| 685 |
s += `<circle cx="${ux}" cy="${uy}" r="6" class="rl-you" data-you="1" data-m="${esc(speed.model)}" data-t="${esc(speed.tps)}" data-b="${esc(Math.round(speed.eff_bw || speed.bw))}"/>` +
|
| 686 |
+
`<text x="${flip ? ux - 10 : ux + 10}" y="${uy + 4}" class="rl-you-label" text-anchor="${flip ? "end" : "start"}">you ~${speed.tps} tok/s</text>`;
|
| 687 |
}
|
| 688 |
s += `</svg>
|
| 689 |
<div class="rl-legend">
|
|
|
|
| 709 |
if (!cls || (!cls.includes("rl-dot") && !cls.includes("rl-you"))) { tip.hidden = true; return; }
|
| 710 |
const d = t.dataset;
|
| 711 |
tip.innerHTML = d.you
|
| 712 |
+
? `<b>Your machine</b><br>${esc(d.m || "your pick")} ~ <b>${esc(d.t)} tok/s</b><br><span class="rl-tip-sub">at ~${esc(d.b)} GB/s memory bandwidth</span>`
|
| 713 |
+
: `<b>${esc(d.m || "model")}</b>${d.p ? ` / ${esc(d.p)}B` : ""}<br>${esc(d.a || "")}<br><b>${esc(d.t)} tok/s</b> <span class="rl-tip-sub">at ~${esc(d.b)} GB/s</span>`;
|
| 714 |
tip.hidden = false;
|
| 715 |
const r = host.getBoundingClientRect();
|
| 716 |
const x = e.clientX - r.left, y = e.clientY - r.top;
|
|
|
|
| 728 |
const tick = () => {
|
| 729 |
if (el.dataset.ticking !== "1") return;
|
| 730 |
const s = Math.round((Date.now() - t0) / 1000);
|
| 731 |
+
el.innerHTML = `<span class="spinner"></span> ${base}, ${s}s` +
|
| 732 |
(s > 8 ? " <span class='tick-note'>(cold start: the model is waking, up to ~1 min)</span>" : "");
|
| 733 |
setTimeout(tick, 500);
|
| 734 |
};
|
|
|
|
| 742 |
const hint = $("#parse-hint");
|
| 743 |
const btn = $("#parse-btn");
|
| 744 |
if (!text) { hint.textContent = "Type or paste something first."; return; }
|
| 745 |
+
if (btn.disabled) return; // one in-flight call, ever, GPU time is real money
|
| 746 |
btn.disabled = true;
|
| 747 |
const stop = startTicker(hint, "Reading your description");
|
| 748 |
try {
|
|
|
|
| 793 |
got.push(`${d.ram_gb} GB RAM`);
|
| 794 |
}
|
| 795 |
hint.textContent = got.length
|
| 796 |
+
? `Understood: ${got.join(", ")}. Anything you didn't mention stayed blank, confirm and press Check.`
|
| 797 |
+
: "Couldn't find any specs in that text, nothing was filled in (the parser doesn't guess).";
|
| 798 |
maybeLiveUpdate();
|
| 799 |
}
|
| 800 |
|
static/icons.js
CHANGED
|
@@ -1,55 +1,82 @@
|
|
| 1 |
-
/*
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
"
|
| 18 |
-
"
|
| 19 |
-
"
|
| 20 |
-
"
|
| 21 |
-
"
|
| 22 |
-
"
|
| 23 |
-
"
|
| 24 |
-
|
| 25 |
-
"
|
| 26 |
-
"
|
| 27 |
-
"
|
| 28 |
-
"
|
| 29 |
-
"
|
| 30 |
-
"
|
| 31 |
-
|
| 32 |
-
"
|
| 33 |
-
"
|
| 34 |
-
"
|
| 35 |
-
"
|
| 36 |
-
"
|
| 37 |
-
|
| 38 |
-
"
|
| 39 |
-
"
|
| 40 |
-
"
|
| 41 |
-
|
| 42 |
-
"
|
| 43 |
-
"
|
| 44 |
-
"
|
| 45 |
-
|
| 46 |
-
"
|
| 47 |
-
"
|
| 48 |
-
"
|
| 49 |
-
|
| 50 |
-
"
|
| 51 |
-
"
|
| 52 |
-
"
|
| 53 |
-
"
|
| 54 |
-
"
|
| 55 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/* Pixel-art icon set. Crisp integer-grid blocky forms (shape-rendering=crispEdges).
|
| 2 |
+
Same icon NAMES + API as before: <span class="ic" data-ic="NAME"> still works.
|
| 3 |
+
Line icons are drawn on an 8x8 grid with rect "pixels"; brand marks keep their
|
| 4 |
+
real silhouette but render crisp. All use currentColor so theme tints apply. */
|
| 5 |
+
(function () {
|
| 6 |
+
// helper: build an 8x8 pixel icon from a list of [x,y] (optionally [x,y,w,h]) cells
|
| 7 |
+
function px(cells) {
|
| 8 |
+
var r = cells.map(function (c) {
|
| 9 |
+
var x = c[0], y = c[1], w = c[2] || 1, h = c[3] || 1;
|
| 10 |
+
return '<rect x="' + x + '" y="' + y + '" width="' + w + '" height="' + h + '"/>';
|
| 11 |
+
}).join("");
|
| 12 |
+
return '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 8 8" fill="currentColor" shape-rendering="crispEdges">' + r + '</svg>';
|
| 13 |
+
}
|
| 14 |
+
|
| 15 |
+
window.ICONS = {
|
| 16 |
+
// ---- text & chat ----
|
| 17 |
+
"chat": px([[0,1,8,4],[1,5],[2,6,2,1],[2,2],[4,2],[6,2],[2,3,4,1]]),
|
| 18 |
+
"run": px([[0,1,8,5],[3,6,2,1],[2,7,4,1]]), // monitor/run = screen + stand
|
| 19 |
+
"writing": px([[5,0],[4,1],[3,2],[2,3],[1,4],[0,5],[0,6,2,1],[1,7]]), // pencil diagonal
|
| 20 |
+
"coding": px([[1,2],[0,3,1,2],[1,5],[6,2],[7,3,1,2],[6,5],[4,1],[3,3],[4,5]]), // < / >
|
| 21 |
+
"agents": px([[1,1,6,5],[2,2,1,2],[5,2,1,2],[3,5,2,1],[0,3],[7,3],[2,6],[5,6]]), // bot head
|
| 22 |
+
"rag": px([[1,1,2,6],[5,1,2,6],[3,1,2,1],[3,6,2,1]]), // open book
|
| 23 |
+
"translate": px([[0,1,4,1],[1,2,2,1],[1,3],[5,4],[4,5,3,1],[3,6,5,1]]), // A / character
|
| 24 |
+
// ---- vision ----
|
| 25 |
+
"detect": px([[0,0,3,1],[5,0,3,1],[0,1],[7,1],[0,6],[7,6],[0,7,3,1],[5,7,3,1],[3,3,2,2]]), // crop + target
|
| 26 |
+
"segment": px([[1,1,3,3],[5,1,2,2],[1,5,2,2],[4,4,3,3]]), // tiles
|
| 27 |
+
"pose": px([[2,1,4,1],[1,2,1,5],[6,2,1,5],[2,7,4,1],[3,3,2,2]]), // cube/box
|
| 28 |
+
"classify": px([[1,1,4,1],[1,2,1,4],[5,2],[2,3,4,3],[5,5],[5,6],[6,4,1,3]]), // tag
|
| 29 |
+
"depth": px([[3,1],[2,2,2,1],[5,3,1,3],[1,4,6,1],[0,6,8,1]]), // mountain depth
|
| 30 |
+
"ocr": px([[0,0,3,1],[5,0,3,1],[0,1],[7,1],[0,6],[7,6],[0,7,3,1],[5,7,3,1],[2,3,4,1],[2,4,3,1]]), // frame + text lines
|
| 31 |
+
// ---- create ----
|
| 32 |
+
"imagegen": px([[0,1,8,6],[2,3,2,2],[5,4,2,2],[1,5,6,1]]), // picture
|
| 33 |
+
"inpaint": px([[5,0],[4,1],[3,2],[2,3],[1,4],[0,5,1,2],[1,6],[6,1,1,1]]), // brush
|
| 34 |
+
"upscale": px([[0,0,1,2],[0,0,2,1],[6,6,2,1],[7,5,1,2],[2,2],[3,3],[4,4],[5,5]]), // expand arrows
|
| 35 |
+
"videogen": px([[0,1,8,6],[1,1,1,6],[6,1,1,6],[3,3,2,2]]), // film frame
|
| 36 |
+
"bgremove": px([[1,1],[2,2],[3,3],[4,4],[5,5],[6,6],[1,6],[2,5],[5,2],[6,1]]), // scissors X
|
| 37 |
+
// ---- audio ----
|
| 38 |
+
"stt": px([[3,0,2,4],[2,1],[5,1],[1,3],[6,3],[3,5,2,1],[3,6,2,2]]), // mic
|
| 39 |
+
"tts": px([[0,3,1,2],[1,2,1,4],[2,3,1,2],[4,1,1,6],[5,2,1,4],[6,3,1,2],[7,4,1,1]]), // waveform
|
| 40 |
+
"music": px([[6,0,1,5],[3,1,3,1],[1,4,2,2],[4,4,2,2]]), // note
|
| 41 |
+
// ---- data ----
|
| 42 |
+
"embed": px([[3,0,2,1],[2,1],[5,1],[1,2],[6,2],[1,5],[6,5],[2,6],[5,6],[3,7,2,1],[3,3,2,2]]), // node graph
|
| 43 |
+
"forecast": px([[0,6],[1,5],[2,6],[3,4],[4,5],[5,2],[6,3],[7,1],[6,0],[5,0]]), // trend up
|
| 44 |
+
"tabular": px([[0,1,8,1],[0,3,8,1],[0,5,8,1],[3,1,1,5],[5,1,1,5]]), // table grid
|
| 45 |
+
// ---- training / custom ----
|
| 46 |
+
"finetune": px([[1,1,1,6],[1,1,5,1],[1,3,4,1],[1,5,3,1],[6,2],[6,5]]), // sliders
|
| 47 |
+
"train-vision": px([[5,0],[4,1],[3,2],[2,3],[1,4],[0,5,1,2],[1,6],[6,1]]),
|
| 48 |
+
"custom": px([[5,0],[4,1],[3,2],[2,3],[1,4],[0,5,1,2],[1,6],[6,1]]), // pencil
|
| 49 |
+
// ---- category headers ----
|
| 50 |
+
"cat-text": px([[0,1,8,4],[1,5],[2,6,2,1],[2,2,4,1]]),
|
| 51 |
+
"cat-vision": px([[0,3,8,2],[2,1,4,1],[2,5,4,1],[3,2,2,4]]), // eye
|
| 52 |
+
"cat-gen": px([[1,1,6,1],[1,1,1,6],[6,1,1,5],[2,6,4,1],[3,3,2,2]]),
|
| 53 |
+
"cat-audio": px([[0,3,1,2],[2,1,1,6],[4,0,1,8],[6,2,1,4]]),
|
| 54 |
+
"cat-data": px([[0,1,8,6],[1,4,1,2],[3,3,1,3],[5,2,1,4]]), // bar chart
|
| 55 |
+
"cat-train": px([[1,1,1,6],[1,1,5,1],[1,3,4,1],[1,5,3,1]]),
|
| 56 |
+
"cat-custom": px([[5,0],[4,1],[3,2],[2,3],[1,4],[0,5,1,2],[1,6]]),
|
| 57 |
+
// ---- ui / status ----
|
| 58 |
+
"check": px([[0,4],[1,5],[2,6],[3,5],[4,4],[5,3],[6,2],[7,1]]), // checkmark
|
| 59 |
+
"approx": px([[0,2],[1,1],[2,2],[3,3],[4,2],[0,5],[1,4],[2,5],[3,6],[4,5]]), // ~ approx
|
| 60 |
+
"x": px([[0,1],[1,2],[2,3],[3,4],[4,5],[5,6],[6,7],[6,1],[5,2],[4,3],[2,5],[1,6],[0,7]]), // X
|
| 61 |
+
"search": px([[1,1,4,1],[1,2],[1,3],[5,2],[5,3],[1,4,4,1],[5,5],[6,6],[7,7]]), // magnifier
|
| 62 |
+
"book": px([[1,1,2,6],[5,1,2,6],[3,1,2,1],[3,6,2,1]]),
|
| 63 |
+
"balanced": px([[3,0,2,1],[0,2,8,1],[1,3,2,2],[6,3,2,2],[3,1,2,5],[2,6,4,1]]), // scales
|
| 64 |
+
"quality": px([[3,0,2,1],[3,7,2,1],[0,3,1,2],[7,3,1,2],[2,2],[5,2],[2,5],[5,5],[3,3,2,2]]), // sparkle/star
|
| 65 |
+
"speed": px([[5,0],[4,1],[3,2],[2,3,3,1],[5,4],[4,5],[3,6,1,1],[2,7]]), // lightning bolt
|
| 66 |
+
"offline": px([[2,0,4,1],[1,1],[6,1],[1,2,6,4],[2,6,4,1],[3,7,2,1]]), // shield
|
| 67 |
+
"monitor": px([[0,1,8,5],[3,6,2,1],[2,7,4,1],[2,3],[3,4],[4,3,2,1],[5,2]]), // monitor + check
|
| 68 |
+
"download": px([[3,0,2,4],[1,3,2,1],[5,3,2,1],[2,4],[5,4],[3,5,2,1],[0,7,8,1]]), // download arrow
|
| 69 |
+
"chevron": px([[0,2],[1,3],[2,4],[3,5],[4,4],[5,3],[6,2]]), // down chevron
|
| 70 |
+
"arrow": px([[0,3,6,2],[4,1,1,1],[5,2,1,1],[6,3,1,2],[5,5,1,1],[4,6,1,1]]), // right arrow
|
| 71 |
+
|
| 72 |
+
// ---- brand marks: crisp pixel silhouettes, ALL same neutral tone via currentColor ----
|
| 73 |
+
// Each provider rendered in the SAME style so none is favoured.
|
| 74 |
+
"brand-windows": px([[0,0,3,3],[5,0,3,3],[0,5,3,3],[5,5,3,3]]),
|
| 75 |
+
"brand-apple": px([[4,0],[3,1,2,1],[1,2,6,1],[1,3,6,4],[2,7],[5,7]]),
|
| 76 |
+
"brand-linux": px([[3,0,2,2],[2,2,4,1],[2,3,1,2],[5,3,1,2],[3,4,2,1],[1,5,6,1],[0,6,3,2],[5,6,3,2],[3,6,2,1]]),
|
| 77 |
+
"brand-raspberrypi": px([[2,0],[5,0],[2,1,4,1],[1,2,6,1],[0,3,3,2],[5,3,3,2],[1,5,6,1],[2,6,4,2]]),
|
| 78 |
+
"brand-nvidia": px([[1,1,6,6],[2,2,2,3],[4,3,2,2],[1,1,3,1]]),
|
| 79 |
+
"brand-amd": px([[0,0,2,8],[2,0,4,2],[6,2,2,2],[3,3,2,2]]),
|
| 80 |
+
"brand-intel": px([[0,2,8,4],[2,3],[4,3,2,2]])
|
| 81 |
+
};
|
| 82 |
+
})();
|
static/index.html
CHANGED
|
@@ -3,10 +3,10 @@
|
|
| 3 |
<head>
|
| 4 |
<meta charset="utf-8" />
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
| 6 |
-
<title>FitCheck
|
| 7 |
<meta name="description" content="Tell FitCheck about your computer in plain words. Get an honest answer about what AI you can actually run on it, from chatbots to object detection, and how to start." />
|
| 8 |
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
| 9 |
-
<link href="https://fonts.googleapis.com/css2?family=
|
| 10 |
<link rel="stylesheet" href="/static/style.css" />
|
| 11 |
</head>
|
| 12 |
<body>
|
|
@@ -20,6 +20,7 @@
|
|
| 20 |
<a href="#how">How it works</a>
|
| 21 |
<a href="#glossary-anchor">Jargon, explained</a>
|
| 22 |
</nav>
|
|
|
|
| 23 |
</header>
|
| 24 |
|
| 25 |
<main class="container">
|
|
@@ -32,6 +33,8 @@
|
|
| 32 |
<div class="layout">
|
| 33 |
<!-- ============================== INPUTS ============================== -->
|
| 34 |
<aside class="panel form-panel">
|
|
|
|
|
|
|
| 35 |
<!-- Mode: check what I own, or advise what to buy -->
|
| 36 |
<div class="field" style="margin-bottom:var(--s-5)">
|
| 37 |
<div class="segmented" id="mode-seg">
|
|
@@ -46,9 +49,9 @@
|
|
| 46 |
|
| 47 |
<div class="field">
|
| 48 |
<span class="label">Describe it in your own words <span class="optional">(fastest)</span></span>
|
| 49 |
-
<textarea id="paste" placeholder="'Dell XPS, RTX 3050, 16GB'
|
| 50 |
<button class="parse-btn" id="parse-btn">Fill the form from this</button>
|
| 51 |
-
<div class="hint" id="parse-hint">A small model fine-tuned for this reads your text and fills the pickers below. It's trained not to invent specs (
|
| 52 |
</div>
|
| 53 |
|
| 54 |
<div class="field">
|
|
@@ -69,7 +72,7 @@
|
|
| 69 |
<option selected>16 GB</option><option>24 GB</option><option>32 GB</option>
|
| 70 |
<option>48 GB</option><option>64 GB</option><option>96 GB</option><option>128 GB</option>
|
| 71 |
</select>
|
| 72 |
-
<div class="hint">Not sure? See
|
| 73 |
</div>
|
| 74 |
|
| 75 |
<div class="field" id="provider-field">
|
|
@@ -110,7 +113,7 @@
|
|
| 110 |
<div class="field" id="repo-field" style="margin-top:var(--s-3); margin-bottom:0; display:none">
|
| 111 |
<span class="label">Paste the model to check</span>
|
| 112 |
<input type="text" id="repo-check" placeholder="Hugging Face model id or link, e.g. lerobot/smolvla_base" />
|
| 113 |
-
<div class="hint">FitCheck gives a full breakdown for <b>many</b> models
|
| 114 |
</div>
|
| 115 |
</div>
|
| 116 |
|
|
@@ -139,15 +142,16 @@
|
|
| 139 |
<summary><span class="ic sum-ic" data-ic="book"></span>What do these words mean? <span class="chev ic" data-ic="chevron"></span></summary>
|
| 140 |
<div class="disc-body">
|
| 141 |
<dl>
|
| 142 |
-
<div><dt>Model</dt><dd>The AI
|
| 143 |
<div><dt>Parameters (e.g. 7B)</dt><dd>How big the brain is. 7B is 7 billion. More means smarter and hungrier for memory.</dd></div>
|
| 144 |
<div><dt>Quantisation (4-bit, 8-bit)</dt><dd>Shrinking a model so it fits. 4-bit is the popular sweet spot: much smaller, barely-noticeable quality loss.</dd></div>
|
| 145 |
<div><dt>VRAM</dt><dd>The fast memory on a graphics card. The biggest factor in what runs quickly.</dd></div>
|
| 146 |
-
<div><dt>RAM</dt><dd>Your computer
|
| 147 |
<div><dt>GGUF</dt><dd>A single-file model format made for running locally.</dd></div>
|
| 148 |
</dl>
|
| 149 |
</div>
|
| 150 |
</details>
|
|
|
|
| 151 |
</aside>
|
| 152 |
|
| 153 |
<!-- ============================== RESULTS ============================== -->
|
|
@@ -164,7 +168,7 @@
|
|
| 164 |
<p>FitCheck gives <b>conservative</b> estimates from a transparent rules engine.
|
| 165 |
GGUF sizes are <b>real Hugging Face file sizes</b> (shown rounded); other sizes and all chat-memory
|
| 166 |
figures are deliberately pessimistic estimates. It would rather under-promise than over-promise. Real speed depends on your exact chip, drivers and settings.</p>
|
| 167 |
-
<p style="margin-top:
|
| 168 |
</footer>
|
| 169 |
</main>
|
| 170 |
|
|
|
|
| 3 |
<head>
|
| 4 |
<meta charset="utf-8" />
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
| 6 |
+
<title>FitCheck - what AI can your computer run?</title>
|
| 7 |
<meta name="description" content="Tell FitCheck about your computer in plain words. Get an honest answer about what AI you can actually run on it, from chatbots to object detection, and how to start." />
|
| 8 |
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
| 9 |
+
<link href="https://fonts.googleapis.com/css2?family=Press+Start+2P&family=VT323&family=Inter:wght@400;500;600&display=swap" rel="stylesheet">
|
| 10 |
<link rel="stylesheet" href="/static/style.css" />
|
| 11 |
</head>
|
| 12 |
<body>
|
|
|
|
| 20 |
<a href="#how">How it works</a>
|
| 21 |
<a href="#glossary-anchor">Jargon, explained</a>
|
| 22 |
</nav>
|
| 23 |
+
<div class="statuschip"><span class="dot"></span><span class="lbl">engine</span> <b id="cat-version-chip">local</b></div>
|
| 24 |
</header>
|
| 25 |
|
| 26 |
<main class="container">
|
|
|
|
| 33 |
<div class="layout">
|
| 34 |
<!-- ============================== INPUTS ============================== -->
|
| 35 |
<aside class="panel form-panel">
|
| 36 |
+
<div class="panel-head"><span class="lbl">input</span><span class="lbl">01</span></div>
|
| 37 |
+
<div class="panel-body">
|
| 38 |
<!-- Mode: check what I own, or advise what to buy -->
|
| 39 |
<div class="field" style="margin-bottom:var(--s-5)">
|
| 40 |
<div class="segmented" id="mode-seg">
|
|
|
|
| 49 |
|
| 50 |
<div class="field">
|
| 51 |
<span class="label">Describe it in your own words <span class="optional">(fastest)</span></span>
|
| 52 |
+
<textarea id="paste" placeholder="'Dell XPS, RTX 3050, 16GB' - or paste your dxdiag / Task Manager output..."></textarea>
|
| 53 |
<button class="parse-btn" id="parse-btn">Fill the form from this</button>
|
| 54 |
+
<div class="hint" id="parse-hint">A small model fine-tuned for this reads your text and fills the pickers below. It's trained not to invent specs (about 1% invented-field rate on our dev set); anything you didn't say stays blank.</div>
|
| 55 |
</div>
|
| 56 |
|
| 57 |
<div class="field">
|
|
|
|
| 72 |
<option selected>16 GB</option><option>24 GB</option><option>32 GB</option>
|
| 73 |
<option>48 GB</option><option>64 GB</option><option>96 GB</option><option>128 GB</option>
|
| 74 |
</select>
|
| 75 |
+
<div class="hint">Not sure? See "How do I find my specs?" below.</div>
|
| 76 |
</div>
|
| 77 |
|
| 78 |
<div class="field" id="provider-field">
|
|
|
|
| 113 |
<div class="field" id="repo-field" style="margin-top:var(--s-3); margin-bottom:0; display:none">
|
| 114 |
<span class="label">Paste the model to check</span>
|
| 115 |
<input type="text" id="repo-check" placeholder="Hugging Face model id or link, e.g. lerobot/smolvla_base" />
|
| 116 |
+
<div class="hint">FitCheck gives a full breakdown for <b>many</b> models, memory, and for text models speed and a comparison, <b>even ones not in our catalogue</b>, via a live Hugging Face lookup (needs Safetensors metadata). The lookup needs network; the deterministic advice is local.</div>
|
| 117 |
</div>
|
| 118 |
</div>
|
| 119 |
|
|
|
|
| 142 |
<summary><span class="ic sum-ic" data-ic="book"></span>What do these words mean? <span class="chev ic" data-ic="chevron"></span></summary>
|
| 143 |
<div class="disc-body">
|
| 144 |
<dl>
|
| 145 |
+
<div><dt>Model</dt><dd>The AI's "brain". Bigger means smarter, but heavier.</dd></div>
|
| 146 |
<div><dt>Parameters (e.g. 7B)</dt><dd>How big the brain is. 7B is 7 billion. More means smarter and hungrier for memory.</dd></div>
|
| 147 |
<div><dt>Quantisation (4-bit, 8-bit)</dt><dd>Shrinking a model so it fits. 4-bit is the popular sweet spot: much smaller, barely-noticeable quality loss.</dd></div>
|
| 148 |
<div><dt>VRAM</dt><dd>The fast memory on a graphics card. The biggest factor in what runs quickly.</dd></div>
|
| 149 |
+
<div><dt>RAM</dt><dd>Your computer's normal memory. Models can use it too, but it is slower.</dd></div>
|
| 150 |
<div><dt>GGUF</dt><dd>A single-file model format made for running locally.</dd></div>
|
| 151 |
</dl>
|
| 152 |
</div>
|
| 153 |
</details>
|
| 154 |
+
</div>
|
| 155 |
</aside>
|
| 156 |
|
| 157 |
<!-- ============================== RESULTS ============================== -->
|
|
|
|
| 168 |
<p>FitCheck gives <b>conservative</b> estimates from a transparent rules engine.
|
| 169 |
GGUF sizes are <b>real Hugging Face file sizes</b> (shown rounded); other sizes and all chat-memory
|
| 170 |
figures are deliberately pessimistic estimates. It would rather under-promise than over-promise. Real speed depends on your exact chip, drivers and settings.</p>
|
| 171 |
+
<p style="margin-top:var(--s-2)">Catalogue of real models last verified <b id="cat-version">local</b>. Built for the Hugging Face Build Small hackathon.</p>
|
| 172 |
</footer>
|
| 173 |
</main>
|
| 174 |
|
static/style.css
CHANGED
|
@@ -1,50 +1,58 @@
|
|
| 1 |
/* ============================================================
|
| 2 |
-
FitCheck
|
| 3 |
-
Dark-
|
| 4 |
-
|
|
|
|
|
|
|
|
|
|
| 5 |
============================================================ */
|
| 6 |
|
| 7 |
:root {
|
| 8 |
-
/*
|
| 9 |
-
--
|
| 10 |
-
--
|
| 11 |
-
--
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
--
|
| 17 |
-
--
|
| 18 |
-
--
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
--accent
|
| 23 |
-
--accent-
|
|
|
|
|
|
|
|
|
|
| 24 |
|
| 25 |
/* Status */
|
| 26 |
-
--ok: #
|
| 27 |
-
--warn: #
|
| 28 |
-
--no: #
|
| 29 |
-
--ok-soft: rgba(
|
| 30 |
-
--warn-soft: rgba(
|
| 31 |
-
--no-soft: rgba(
|
| 32 |
|
| 33 |
/* Spacing scale (4px base) */
|
| 34 |
--s-1:4px; --s-2:8px; --s-3:12px; --s-4:16px;
|
| 35 |
--s-5:24px; --s-6:32px; --s-7:48px; --s-8:64px;
|
| 36 |
|
| 37 |
-
/*
|
| 38 |
-
--r-sm:
|
| 39 |
|
| 40 |
-
|
| 41 |
-
--shadow-
|
| 42 |
-
--shadow-
|
| 43 |
-
--
|
| 44 |
-
--glow: 0 0 0 1px var(--accent-soft), 0 8px 24px rgba(99,102,241,0.22);
|
| 45 |
|
| 46 |
-
--font-
|
| 47 |
-
--font-
|
|
|
|
|
|
|
|
|
|
| 48 |
}
|
| 49 |
|
| 50 |
*, *::before, *::after { box-sizing: border-box; }
|
|
@@ -53,92 +61,112 @@
|
|
| 53 |
html { scroll-behavior: smooth; }
|
| 54 |
body {
|
| 55 |
font-family: var(--font-body);
|
| 56 |
-
background:
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
var(--
|
|
|
|
| 60 |
color: var(--text-primary);
|
| 61 |
font-size: 16px;
|
| 62 |
-
line-height: 1.
|
| 63 |
-webkit-font-smoothing: antialiased;
|
| 64 |
min-height: 100vh;
|
| 65 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 66 |
|
| 67 |
-
h1,h2,h3 { font-family: var(--font-head); line-height: 1.
|
| 68 |
a { color: var(--accent); text-decoration: none; }
|
| 69 |
a:hover { text-decoration: underline; }
|
| 70 |
button { font-family: inherit; cursor: pointer; }
|
| 71 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 72 |
.label {
|
| 73 |
display: block;
|
| 74 |
-
font-size:
|
| 75 |
-
text-transform: uppercase; letter-spacing: 0.
|
| 76 |
-
color: var(--text-
|
| 77 |
margin-bottom: var(--s-2);
|
| 78 |
}
|
| 79 |
.hint { font-size: 13px; color: var(--text-muted); margin-top: var(--s-1); }
|
| 80 |
|
| 81 |
-
/* Icons (
|
| 82 |
.ic { display: inline-flex; align-items: center; justify-content: center; line-height: 0; flex: none; }
|
| 83 |
-
.ic svg { width: 1em; height: 1em; display: block; }
|
| 84 |
-
.optional { font-weight:
|
| 85 |
|
| 86 |
/* ----------------------------------------------------------- Topbar */
|
| 87 |
.topbar {
|
| 88 |
display: flex; align-items: center; gap: var(--s-3);
|
| 89 |
-
padding:
|
| 90 |
max-width: 1180px; margin: 0 auto;
|
|
|
|
| 91 |
}
|
| 92 |
.logo {
|
| 93 |
display: flex; align-items: center; gap: var(--s-2);
|
| 94 |
-
font-family: var(--font-
|
| 95 |
-
letter-spacing:
|
| 96 |
}
|
| 97 |
.logo-mark {
|
| 98 |
-
width:
|
| 99 |
-
background:
|
| 100 |
display: grid; place-items: center;
|
| 101 |
-
box-shadow: var(--
|
| 102 |
-
color:
|
| 103 |
}
|
| 104 |
-
.logo-mark .ic { font-size:
|
| 105 |
-
.logo
|
| 106 |
-
.logo .tick { color: var(--ok); }
|
| 107 |
.topbar .spacer { flex: 1; }
|
| 108 |
-
.topbar nav a { color: var(--text-secondary); font-size:
|
| 109 |
-
.topbar nav a:hover { color: var(--
|
|
|
|
|
|
|
|
|
|
|
|
|
| 110 |
|
| 111 |
/* ----------------------------------------------------------- Layout */
|
| 112 |
.container { max-width: 1180px; margin: 0 auto; padding: 0 var(--s-5) var(--s-8); }
|
| 113 |
|
| 114 |
-
.hero {
|
| 115 |
-
|
| 116 |
-
|
| 117 |
-
font-size: 13px; font-weight: 600; color: var(--accent);
|
| 118 |
-
background: var(--accent-soft); padding: 5px 12px; border-radius: var(--r-pill);
|
| 119 |
-
margin-bottom: var(--s-4);
|
| 120 |
}
|
| 121 |
-
.hero h1 { font-size: clamp(
|
| 122 |
-
.hero h1 .accent { color: var(--accent); }
|
| 123 |
-
.hero p { color: var(--text-secondary); font-
|
| 124 |
|
| 125 |
.layout {
|
| 126 |
display: grid;
|
| 127 |
-
grid-template-columns:
|
| 128 |
gap: var(--s-5);
|
| 129 |
align-items: start;
|
| 130 |
}
|
| 131 |
@media (max-width: 900px) { .layout { grid-template-columns: 1fr; } }
|
| 132 |
|
|
|
|
| 133 |
.panel {
|
| 134 |
background: var(--bg-raised);
|
| 135 |
border: 1px solid var(--border);
|
| 136 |
-
border-radius: var(--r-
|
| 137 |
-
box-shadow: var(--shadow-md);
|
| 138 |
}
|
| 139 |
-
.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 140 |
@media (min-width: 901px) {
|
| 141 |
-
/* tall forms (long descriptions, many pickers) scroll inside the panel */
|
| 142 |
.form-panel { max-height: calc(100vh - 32px); overflow-y: auto; scrollbar-width: thin; }
|
| 143 |
}
|
| 144 |
@media (max-width: 900px) { .form-panel { position: static; } }
|
|
@@ -146,37 +174,37 @@ button { font-family: inherit; cursor: pointer; }
|
|
| 146 |
.step { margin-bottom: var(--s-5); }
|
| 147 |
.step-head { display: flex; align-items: center; gap: var(--s-3); margin-bottom: var(--s-4); }
|
| 148 |
.step-num {
|
| 149 |
-
width:
|
| 150 |
-
background: var(--accent
|
| 151 |
-
display: grid; place-items: center; font-weight:
|
| 152 |
-
font-family: var(--font-
|
| 153 |
}
|
| 154 |
-
.step-head h2 { font-size:
|
| 155 |
|
| 156 |
.field { margin-bottom: var(--s-4); }
|
| 157 |
|
| 158 |
-
/* Segmented control */
|
| 159 |
.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); }
|
| 160 |
.segmented.cols-3 { grid-template-columns: repeat(3, 1fr); }
|
| 161 |
.seg-btn {
|
| 162 |
background: var(--bg-inset); border: 1px solid var(--border);
|
| 163 |
color: var(--text-secondary); border-radius: var(--r-sm);
|
| 164 |
-
padding: 10px
|
| 165 |
display: flex; align-items: center; gap: var(--s-2); justify-content: center;
|
| 166 |
-
transition:
|
| 167 |
}
|
| 168 |
.seg-btn:hover { border-color: var(--border-hi); color: var(--text-primary); }
|
| 169 |
.seg-btn.active {
|
| 170 |
-
background: var(--accent
|
| 171 |
-
color:
|
| 172 |
}
|
| 173 |
-
.seg-btn .ic { font-size:
|
| 174 |
-
.seg-btn.active .ic { color:
|
| 175 |
.seg-btn .ic.brand { color: var(--text-secondary); }
|
| 176 |
-
.seg-btn.active .ic.brand { color:
|
| 177 |
.seg-btn.disabled { opacity: .3; pointer-events: none; }
|
| 178 |
|
| 179 |
-
/* Hover tooltip
|
| 180 |
[data-tip] { position: relative; }
|
| 181 |
[data-tip]:hover::after, [data-tip]:focus-visible::after {
|
| 182 |
content: attr(data-tip);
|
|
@@ -184,456 +212,465 @@ button { font-family: inherit; cursor: pointer; }
|
|
| 184 |
width: max-content; max-width: 240px; z-index: 30;
|
| 185 |
background: var(--bg-raised); color: var(--text-secondary);
|
| 186 |
border: 1px solid var(--border-hi); border-radius: var(--r-sm);
|
| 187 |
-
padding: 8px 10px; font-size: 12px; font-weight:
|
| 188 |
box-shadow: var(--shadow-lg); pointer-events: none; white-space: normal;
|
| 189 |
}
|
| 190 |
|
| 191 |
-
/*
|
| 192 |
-
line icons stay line icons. */
|
| 193 |
-
.segmented .seg-btn:nth-child(1) { --segc: #60A5FA; }
|
| 194 |
-
.segmented .seg-btn:nth-child(2) { --segc: #4ADE80; }
|
| 195 |
-
.segmented .seg-btn:nth-child(3) { --segc: #F472B6; }
|
| 196 |
-
.segmented .seg-btn:nth-child(4) { --segc: #FBBF24; }
|
| 197 |
-
.segmented .seg-btn:nth-child(5) { --segc: #2DD4BF; }
|
| 198 |
-
.segmented .seg-btn:nth-child(6) { --segc: #C084FC; }
|
| 199 |
-
.seg-btn.active {
|
| 200 |
-
border-color: var(--segc, var(--accent)) !important;
|
| 201 |
-
background: color-mix(in srgb, var(--segc, var(--accent)) 13%, transparent);
|
| 202 |
-
}
|
| 203 |
-
|
| 204 |
-
/* Native select / input styling */
|
| 205 |
select, input[type="text"], input[type="number"], textarea {
|
| 206 |
-
width: 100%; font-family:
|
| 207 |
color: var(--text-primary);
|
| 208 |
background: var(--bg-inset);
|
| 209 |
border: 1px solid var(--border); border-radius: var(--r-sm);
|
| 210 |
-
padding:
|
| 211 |
transition: border-color .15s, box-shadow .15s;
|
| 212 |
}
|
|
|
|
| 213 |
select:hover, input:hover, textarea:hover { border-color: var(--border-hi); }
|
| 214 |
select:focus, input:focus, textarea:focus {
|
| 215 |
-
outline: none; border-color: var(--accent); box-shadow: 0 0 0
|
| 216 |
}
|
| 217 |
select {
|
| 218 |
appearance: none;
|
| 219 |
-
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='
|
| 220 |
background-repeat: no-repeat; background-position: right 12px center;
|
| 221 |
-
padding-right:
|
| 222 |
}
|
| 223 |
textarea { resize: vertical; min-height: 70px; line-height: 1.5; }
|
| 224 |
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
|
| 225 |
|
| 226 |
-
/* Run vs Train toggle
|
|
|
|
| 227 |
.task-toggle {
|
| 228 |
position: relative; display: grid; grid-template-columns: 1fr 1fr;
|
| 229 |
gap: 0; background: var(--bg-inset); border: 1px solid var(--border);
|
| 230 |
-
border-radius: var(--r-
|
| 231 |
}
|
| 232 |
.tt-opt {
|
| 233 |
position: relative; z-index: 2; background: transparent; border: 0;
|
| 234 |
-
color: var(--text-secondary); font-size:
|
| 235 |
-
padding: 8px 12px; border-radius: var(--r-
|
| 236 |
display: inline-flex; align-items: center; justify-content: center; gap: 7px;
|
| 237 |
transition: color .2s;
|
| 238 |
}
|
| 239 |
.tt-opt .ic { font-size: 16px; }
|
| 240 |
-
.tt-opt.active { color: #
|
| 241 |
.tt-slider {
|
| 242 |
position: absolute; z-index: 1; top: 3px; bottom: 3px; left: 3px;
|
| 243 |
-
width: calc(50% - 3px); border-radius: var(--r-
|
| 244 |
-
background:
|
| 245 |
-
|
| 246 |
-
}
|
| 247 |
-
.task-toggle.train .tt-slider { transform: translateX(100%); }
|
| 248 |
-
.task-toggle.train .tt-slider {
|
| 249 |
-
background: linear-gradient(135deg, #F472B6, #FB923C);
|
| 250 |
}
|
|
|
|
| 251 |
|
| 252 |
-
/* Use-case picker */
|
| 253 |
.uc-group { margin-bottom: var(--s-4); }
|
| 254 |
.uc-cat {
|
| 255 |
-
font-size:
|
| 256 |
color: var(--text-muted); margin-bottom: var(--s-2); display: flex; align-items: center; gap: 6px;
|
| 257 |
}
|
| 258 |
.uc-grid { display: flex; flex-wrap: wrap; gap: var(--s-2); }
|
| 259 |
.uc-pill {
|
| 260 |
background: var(--bg-inset); border: 1px solid var(--border);
|
| 261 |
-
color: var(--text-secondary); border-radius: var(--r-
|
| 262 |
-
padding:
|
| 263 |
display: inline-flex; align-items: center; gap: 6px;
|
| 264 |
-
transition:
|
| 265 |
}
|
| 266 |
-
.uc-pill:hover { border-color: var(--border-hi); color: var(--text-primary);
|
| 267 |
.uc-pill.active {
|
| 268 |
background: var(--accent-soft); border-color: var(--accent); color: var(--text-primary);
|
|
|
|
| 269 |
}
|
| 270 |
.uc-pill .pic { font-size: 15px; color: var(--text-muted); }
|
| 271 |
.uc-pill:hover .pic { color: var(--text-secondary); }
|
| 272 |
.uc-pill.active .pic { color: var(--accent); }
|
| 273 |
.uc-cat .ic { font-size: 14px; color: var(--text-muted); }
|
| 274 |
|
| 275 |
-
/* Same coloured-boundary treatment as the segmented rows: each position in a
|
| 276 |
-
group gets its own accent when selected (palette cycles past 6 items). */
|
| 277 |
-
.uc-grid .uc-pill:nth-child(6n+1) { --segc: #60A5FA; }
|
| 278 |
-
.uc-grid .uc-pill:nth-child(6n+2) { --segc: #4ADE80; }
|
| 279 |
-
.uc-grid .uc-pill:nth-child(6n+3) { --segc: #F472B6; }
|
| 280 |
-
.uc-grid .uc-pill:nth-child(6n+4) { --segc: #FBBF24; }
|
| 281 |
-
.uc-grid .uc-pill:nth-child(6n+5) { --segc: #2DD4BF; }
|
| 282 |
-
.uc-grid .uc-pill:nth-child(6n) { --segc: #C084FC; }
|
| 283 |
-
.uc-pill.active {
|
| 284 |
-
border-color: var(--segc, var(--accent));
|
| 285 |
-
background: color-mix(in srgb, var(--segc, var(--accent)) 13%, transparent);
|
| 286 |
-
}
|
| 287 |
-
.uc-pill.active .pic { color: var(--segc, var(--accent)); }
|
| 288 |
-
|
| 289 |
/* Disclosure (advanced / accordions) */
|
| 290 |
details.disc {
|
| 291 |
border: 1px solid var(--border); border-radius: var(--r-md);
|
| 292 |
background: var(--bg-inset); margin-top: var(--s-3); overflow: hidden;
|
| 293 |
}
|
| 294 |
details.disc > summary {
|
| 295 |
-
list-style: none; cursor: pointer; padding:
|
| 296 |
-
font-size:
|
| 297 |
display: flex; align-items: center; gap: var(--s-2);
|
| 298 |
}
|
| 299 |
details.disc > summary::-webkit-details-marker { display: none; }
|
| 300 |
-
details.disc > summary .chev { margin-left: auto; transition: transform .2s; color: var(--text-muted); font-size:
|
| 301 |
details.disc[open] > summary .chev { transform: rotate(180deg); }
|
| 302 |
details.disc > summary .sum-ic { font-size: 16px; color: var(--text-muted); }
|
| 303 |
details.disc > summary:hover { color: var(--text-primary); }
|
| 304 |
-
.disc-body { padding: 0 14px 14px; font-size: 14px; color: var(--text-secondary); line-height: 1.6; }
|
| 305 |
.disc-body code {
|
| 306 |
-
background: var(--bg-base); border: 1px solid var(--border); border-radius:
|
| 307 |
-
padding: 1px 6px; font-size:
|
| 308 |
}
|
| 309 |
.disc-body dl { display: grid; gap: var(--s-3); }
|
| 310 |
-
.disc-body dt { font-weight:
|
| 311 |
.disc-body dd { color: var(--text-muted); }
|
| 312 |
|
| 313 |
.parse-btn {
|
| 314 |
margin-top: var(--s-2); width: 100%;
|
| 315 |
-
background: var(--
|
| 316 |
-
color: var(--
|
| 317 |
-
padding: 9px 12px; font-size:
|
| 318 |
-
transition:
|
| 319 |
}
|
| 320 |
-
.parse-btn:hover {
|
| 321 |
|
| 322 |
-
/* Primary CTA */
|
| 323 |
.cta {
|
| 324 |
-
width: 100%; border:
|
| 325 |
-
background:
|
| 326 |
-
color: #
|
| 327 |
-
padding:
|
| 328 |
display: flex; align-items: center; justify-content: center; gap: var(--s-2);
|
| 329 |
-
|
|
|
|
| 330 |
}
|
| 331 |
-
.cta:hover {
|
| 332 |
-
.cta:active {
|
| 333 |
-
.cta .ic { font-size:
|
| 334 |
|
| 335 |
/* ----------------------------------------------------------- Results */
|
| 336 |
-
.results-panel { padding: var(--s-
|
| 337 |
|
| 338 |
.empty-state { text-align: center; color: var(--text-muted); padding: var(--s-8) var(--s-4); }
|
| 339 |
.empty-state .big { font-size: 46px; margin-bottom: var(--s-3); color: var(--text-muted); display: flex; justify-content: center; }
|
| 340 |
-
.empty-state
|
|
|
|
| 341 |
|
|
|
|
| 342 |
.verdict {
|
| 343 |
-
border: 1px solid var(--border); border-
|
| 344 |
-
|
| 345 |
-
|
|
|
|
|
|
|
|
|
|
| 346 |
}
|
| 347 |
.verdict .badge {
|
| 348 |
-
display: inline-flex; align-items: center; gap:
|
| 349 |
-
padding:
|
| 350 |
-
|
| 351 |
-
|
| 352 |
-
|
| 353 |
-
}
|
| 354 |
-
.verdict
|
| 355 |
-
.verdict
|
| 356 |
-
.verdict p { color: var(--text-secondary); margin-bottom: var(--s-2); }
|
| 357 |
.verdict .note {
|
| 358 |
-
font-size:
|
| 359 |
-
padding-top: var(--s-3); border-top: 1px
|
| 360 |
}
|
| 361 |
|
| 362 |
.section-title {
|
| 363 |
-
font-
|
| 364 |
-
color: var(--text-
|
| 365 |
-
display: flex; align-items: center; gap: var(--s-
|
| 366 |
}
|
| 367 |
-
.section-title
|
|
|
|
| 368 |
|
| 369 |
-
/* Gauge */
|
| 370 |
.gauge-card { background: var(--bg-inset); border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--s-4) var(--s-4) var(--s-3); }
|
| 371 |
-
.gauge-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom:
|
| 372 |
-
.gauge-top .need { font-
|
| 373 |
-
/* Marker labels sit above the bar, so leave headroom. */
|
| 374 |
.gauge-wrap { position: relative; padding-top: 22px; }
|
| 375 |
.gauge {
|
| 376 |
-
position: relative; height:
|
| 377 |
background: var(--bg-base); overflow: hidden; border: 1px solid var(--border);
|
| 378 |
}
|
| 379 |
.gauge-fill {
|
| 380 |
-
height: 100%; width: calc(var(--pct,0) * 1%); border-radius:
|
| 381 |
-
background:
|
| 382 |
transition: width .8s cubic-bezier(.22,1,.36,1), background .4s;
|
| 383 |
}
|
| 384 |
-
/* Vertical "what you have" markers, each labelled, drawn over the bar. */
|
| 385 |
.gmark {
|
| 386 |
-
position: absolute; top: 22px; height:
|
| 387 |
transition: left .8s cubic-bezier(.22,1,.36,1);
|
| 388 |
}
|
| 389 |
-
.gmark::before {
|
| 390 |
-
content: ""; position: absolute; top: -4px; bottom: -4px; left: 0; width: 2px; border-radius:
|
| 391 |
}
|
| 392 |
.gmark-gpu::before { background: var(--text-primary); opacity: .9; }
|
| 393 |
.gmark-total::before { background: var(--text-muted); }
|
| 394 |
.gmark-gpu { border-left: 0; }
|
| 395 |
.gmark-lab {
|
| 396 |
position: absolute; bottom: calc(100% + 6px); left: 0; transform: translateX(-50%);
|
| 397 |
-
white-space: nowrap; font-size:
|
| 398 |
background: var(--bg-inset); padding: 1px 5px; border-radius: var(--r-sm);
|
| 399 |
}
|
| 400 |
.gmark-total .gmark-lab { color: var(--text-muted); }
|
| 401 |
-
/* Keep edge labels from clipping out of the card. */
|
| 402 |
.gmark[style*="left: 0%"] .gmark-lab, .gmark-gpu .gmark-lab { transform: translateX(-20%); }
|
| 403 |
.gmark-total .gmark-lab { transform: translateX(-80%); }
|
| 404 |
.gauge-hint { font-style: italic; color: var(--text-muted); }
|
| 405 |
-
.gauge-legend { display: flex; flex-wrap: wrap; gap: var(--s-4); margin-top:
|
| 406 |
.gauge-legend .item { display: inline-flex; align-items: center; gap: 6px; }
|
| 407 |
-
.gauge-legend .sw { width: 10px; height: 10px; border-radius:
|
| 408 |
.gauge-legend .marker { font-weight: 600; color: var(--text-secondary); }
|
| 409 |
|
| 410 |
-
/* Option
|
| 411 |
-
.opt-grid
|
| 412 |
-
.opt
|
| 413 |
-
|
| 414 |
-
|
| 415 |
-
|
| 416 |
-
|
| 417 |
-
|
| 418 |
}
|
| 419 |
-
.opt
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 420 |
.opt .vdot {
|
| 421 |
-
width:
|
| 422 |
-
background:
|
| 423 |
-
display: grid; place-items: center; font-size:
|
| 424 |
}
|
| 425 |
-
.opt .
|
|
|
|
| 426 |
.opt .name a { color: var(--text-primary); }
|
| 427 |
.opt .name a:hover { color: var(--accent); text-decoration: none; }
|
| 428 |
.lic {
|
| 429 |
-
display: inline-block; margin-left: 8px; padding:
|
| 430 |
-
border-radius: var(--r-
|
| 431 |
-
font:
|
| 432 |
color: var(--text-muted); text-transform: uppercase;
|
| 433 |
}
|
| 434 |
-
.lic.warn { color: var(--warn); border-color: var(--warn);
|
| 435 |
.lic.gatechip { color: var(--accent); border-color: var(--accent); }
|
| 436 |
.prov {
|
| 437 |
-
margin-top: 10px; padding-top: 10px; border-top: 1px
|
| 438 |
-
font-size: 12px; color: var(--text-muted); line-height: 1.55;
|
| 439 |
-
}
|
| 440 |
-
.opt .desc { font-size:
|
| 441 |
-
.opt .meta { text-align: right; font-size:
|
| 442 |
-
.opt .meta b { color: var(--text-primary); font-family: var(--font-
|
| 443 |
-
.opt .feel { font-size:
|
| 444 |
-
/* Every option card is clickable: re-renders the full breakdown for that model. */
|
| 445 |
.opt[data-model] { cursor: pointer; }
|
| 446 |
-
.opt[data-model]:hover {
|
|
|
|
| 447 |
.opt-current {
|
| 448 |
-
|
| 449 |
-
box-shadow: inset
|
|
|
|
| 450 |
}
|
| 451 |
|
| 452 |
-
/* Tool cards */
|
| 453 |
.tool-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: var(--s-3); }
|
| 454 |
.tool {
|
| 455 |
-
background: var(--bg-
|
| 456 |
border-radius: var(--r-md); padding: var(--s-4);
|
| 457 |
-
transition:
|
| 458 |
}
|
| 459 |
-
.tool:hover {
|
| 460 |
.tool .tool-head { display: flex; align-items: center; justify-content: space-between; }
|
| 461 |
-
.tool .tname { font-
|
| 462 |
-
.tool .tag { font-size:
|
| 463 |
-
.tool .tag.best { background: var(--ok-soft); color: var(--ok); }
|
| 464 |
-
.tool .tag.mid { background: var(--
|
| 465 |
-
.tool .twhat { font-size:
|
| 466 |
-
.tool .tinstall { font-size:
|
| 467 |
.tool .tinstall .ic { font-size: 14px; }
|
| 468 |
|
| 469 |
-
/* Buy advice
|
| 470 |
.buy-platform { margin-top: var(--s-5); }
|
| 471 |
.bp-head { display: flex; align-items: center; gap: 9px; }
|
| 472 |
-
.bp-head .ic { font-size:
|
| 473 |
-
.bp-head .ic.brand { color: var(--text-
|
| 474 |
-
.bp-name { font-family: var(--font-
|
| 475 |
-
.bp-blurb { font-size: 13px; color: var(--text-muted); margin: 4px 0 var(--s-3); line-height: 1.5; }
|
| 476 |
.buy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
|
| 477 |
@media (max-width: 620px) { .buy-grid { grid-template-columns: 1fr; } }
|
| 478 |
.buy-card {
|
| 479 |
-
background: var(--bg-
|
| 480 |
border-radius: var(--r-md); padding: var(--s-3) var(--s-4);
|
| 481 |
}
|
| 482 |
.buy-card.empty { opacity: .7; }
|
| 483 |
.bc-head { display: flex; align-items: center; justify-content: space-between; }
|
| 484 |
-
.bc-kind { font-size:
|
| 485 |
.bc-kind.min { color: var(--warn); } .bc-kind.comfy { color: var(--ok); }
|
| 486 |
-
.bc-label { font-family: var(--font-
|
| 487 |
-
.bc-runs { font-size:
|
| 488 |
.bc-runs b { color: var(--text-primary); }
|
| 489 |
-
.bc-none { font-size: 13px; color: var(--text-muted); margin: 6px 0 0; line-height: 1.5; }
|
| 490 |
.bc-goals { margin: 6px 0 0; padding: 0; list-style: none; font-size: 13px; }
|
| 491 |
-
.bc-goals li { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; border-top: 1px
|
| 492 |
.bc-goals li:first-child { border-top: 0; }
|
| 493 |
-
.bc-goals b { color: var(--text-primary); font-weight: 600; text-align: right; }
|
| 494 |
.bc-more {
|
| 495 |
margin-top: var(--s-3); background: none; border: 0; cursor: pointer; padding: 0;
|
| 496 |
-
color: var(--accent); font-size:
|
| 497 |
display: inline-flex; align-items: center; gap: 5px;
|
| 498 |
}
|
| 499 |
-
.bc-more .chev { font-size:
|
| 500 |
.bc-more.open .chev { transform: rotate(180deg); }
|
| 501 |
-
.bc-detail { margin-top: var(--s-3); border-top: 1px
|
| 502 |
.bc-spec {
|
| 503 |
-
font-family:
|
| 504 |
color: var(--text-secondary); background: var(--bg-base);
|
| 505 |
border: 1px solid var(--border); border-radius: var(--r-sm); padding: 7px 10px; margin-bottom: var(--s-2);
|
| 506 |
}
|
| 507 |
-
.bc-detail p { font-size: 13px; color: var(--text-secondary); line-height: 1.6; margin: 0; }
|
| 508 |
|
| 509 |
-
/* Command block */
|
| 510 |
-
.cmd-intro { font-size: 14px; color: var(--text-secondary); margin: var(--s-2) 0 var(--s-3); }
|
| 511 |
.cmd { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
|
| 512 |
@media (max-width: 620px) { .cmd { grid-template-columns: 1fr; } }
|
| 513 |
.cmd-box { background: var(--bg-base); border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; }
|
| 514 |
-
.cmd-box .cmd-label { font-size:
|
| 515 |
-
.cmd-box pre { padding:
|
| 516 |
-
.cmd-box code { font-family:
|
| 517 |
.copy-btn {
|
| 518 |
background: var(--bg-inset); border: 1px solid var(--border); color: var(--text-secondary);
|
| 519 |
-
border-radius:
|
|
|
|
| 520 |
}
|
| 521 |
.copy-btn:hover { color: var(--text-primary); border-color: var(--border-hi); }
|
| 522 |
.copy-btn.done { color: var(--ok); border-color: var(--ok); }
|
| 523 |
-
|
| 524 |
-
|
| 525 |
-
|
| 526 |
-
.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 527 |
.roofline-wrap svg { width: 100%; height: auto; display: block; }
|
| 528 |
-
.rl-grid { stroke: var(--
|
| 529 |
-
.rl-tick { fill: var(--text-muted); font:
|
| 530 |
-
.rl-axis { fill: var(--text-secondary); font:
|
| 531 |
-
.rl-dot { opacity: .
|
| 532 |
.rl-dot:hover { opacity: 1; r: 4.5; }
|
| 533 |
.rl-you { cursor: pointer; }
|
| 534 |
-
/* Hover info bubble for chart points */
|
| 535 |
.rl-tip {
|
| 536 |
position: absolute; z-index: 20; pointer-events: none;
|
| 537 |
background: var(--bg-raised); border: 1px solid var(--border-hi);
|
| 538 |
-
border-radius: var(--r-sm); padding: 7px 10px; font-size:
|
| 539 |
-
color: var(--text-primary); box-shadow: var(--shadow-lg); max-width:
|
| 540 |
}
|
| 541 |
.rl-tip-sub { color: var(--text-muted); }
|
| 542 |
-
|
| 543 |
-
.rl-
|
| 544 |
-
.rl-
|
| 545 |
-
.rl-
|
| 546 |
-
.rl-
|
| 547 |
-
.rl-
|
| 548 |
-
.rl-you
|
| 549 |
-
.rl-
|
|
|
|
| 550 |
.rl-legend .item { display: inline-flex; align-items: center; gap: 6px; }
|
| 551 |
-
.rl-legend .sw { width: 10px; height: 10px; border-radius:
|
| 552 |
-
.rl-p1-sw { background: #
|
| 553 |
-
.rl-roof-sw { background: var(--warn); border-radius:
|
| 554 |
-
.rl-you-sw { background: var(--accent); }
|
| 555 |
-
.viz-caption { font-size: 13px; color: var(--text-secondary); line-height: 1.6; margin-top: var(--s-3); }
|
| 556 |
|
| 557 |
-
/* Multi-goal overview */
|
| 558 |
.goal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: var(--s-3); }
|
| 559 |
.goal-card {
|
| 560 |
-
background: var(--bg-
|
| 561 |
-
border-left:
|
| 562 |
padding: var(--s-4); cursor: pointer;
|
| 563 |
-
transition:
|
| 564 |
}
|
| 565 |
-
.goal-card:hover {
|
| 566 |
.goal-card .badge {
|
| 567 |
display: inline-flex; align-items: center; gap: 6px;
|
| 568 |
-
padding:
|
| 569 |
-
|
| 570 |
-
|
| 571 |
-
}
|
| 572 |
-
.goal-
|
| 573 |
-
.goal-
|
| 574 |
-
.goal-pick { font-size:
|
| 575 |
-
.goal-need { font-size:
|
| 576 |
-
.goal-more { font-size:
|
| 577 |
.back-link {
|
| 578 |
background: var(--bg-inset); border: 1px solid var(--border); color: var(--text-secondary);
|
| 579 |
-
border-radius: var(--r-
|
| 580 |
-
margin-bottom: var(--s-4); display: inline-
|
| 581 |
}
|
| 582 |
.back-link:hover { color: var(--text-primary); border-color: var(--border-hi); }
|
|
|
|
| 583 |
.goal-lines { list-style: none; padding: 0; margin: var(--s-2) 0 0; }
|
| 584 |
.goal-lines li {
|
| 585 |
display: flex; justify-content: space-between; gap: var(--s-3);
|
| 586 |
-
font-size: 13px; color: var(--text-secondary); padding: 3px 0;
|
| 587 |
border-bottom: 1px dashed var(--border);
|
| 588 |
}
|
| 589 |
.goal-lines li:last-child { border-bottom: none; }
|
| 590 |
-
.goal-lines li b { color: var(--text-primary); font-weight: 600; text-align: right; }
|
| 591 |
.goal-lines li i { color: var(--text-muted); font-style: normal; font-size: 12px; }
|
| 592 |
|
| 593 |
/* Live single-model lookup card */
|
| 594 |
.lookup-card {
|
| 595 |
-
border: 1px solid var(--border); border-left:
|
| 596 |
-
border-radius: var(--r-md); background: var(--bg-
|
| 597 |
padding: var(--s-4) var(--s-5); margin-bottom: var(--s-5);
|
| 598 |
}
|
| 599 |
.lookup-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s-2); }
|
| 600 |
.live-tag {
|
| 601 |
-
font:
|
| 602 |
-
color: var(--accent); border: 1px dashed var(--accent); border-radius: var(--r-
|
| 603 |
-
padding:
|
| 604 |
}
|
| 605 |
-
.lookup-explain { color: var(--text-secondary); font-size:
|
| 606 |
-
.lookup-meta { display: flex; gap: var(--s-4); margin-top: var(--s-2); font-size:
|
| 607 |
-
/* Banner above a remade breakdown when the answer came from a live lookup. */
|
| 608 |
.lookup-banner {
|
| 609 |
display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap;
|
| 610 |
background: var(--accent-soft); border: 1px solid var(--accent);
|
| 611 |
border-radius: var(--r-md); padding: var(--s-3) var(--s-4); margin-bottom: var(--s-4);
|
| 612 |
}
|
| 613 |
-
.lookup-banner p { color: var(--text-secondary); font-size:
|
| 614 |
.lookup-banner.estimate { background: var(--warn-soft); border-color: var(--warn); }
|
| 615 |
-
|
| 616 |
-
#repo-field.required input { border-color: var(--accent); box-shadow: 0 0 0
|
| 617 |
|
| 618 |
/* Ask a follow-up (the model brick) */
|
| 619 |
.ask-row { display: flex; gap: var(--s-2); }
|
| 620 |
.ask-row input {
|
| 621 |
flex: 1; background: var(--bg-inset); border: 1px solid var(--border);
|
| 622 |
-
border-radius: var(--r-md); padding:
|
| 623 |
}
|
| 624 |
.ask-btn {
|
| 625 |
-
flex: none; width: 46px; border:
|
| 626 |
-
background:
|
| 627 |
-
color: #
|
| 628 |
-
|
| 629 |
-
|
| 630 |
-
|
| 631 |
-
.ask-btn
|
|
|
|
| 632 |
.ask-chips { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-3); }
|
| 633 |
.ask-chip {
|
| 634 |
background: var(--bg-inset); border: 1px solid var(--border);
|
| 635 |
-
color: var(--text-secondary); border-radius: var(--r-
|
| 636 |
-
padding: 6px 13px; font-size:
|
| 637 |
transition: border-color .15s, color .15s, background .15s;
|
| 638 |
}
|
| 639 |
.ask-chip:hover { border-color: var(--accent); color: var(--text-primary); background: var(--accent-soft); }
|
|
@@ -641,20 +678,20 @@ details.disc > summary:hover { color: var(--text-primary); }
|
|
| 641 |
.ask-answer { margin-top: var(--s-4); }
|
| 642 |
.ans-card {
|
| 643 |
background: var(--bg-inset); border: 1px solid var(--border);
|
| 644 |
-
border-left:
|
| 645 |
padding: var(--s-4) var(--s-5);
|
| 646 |
}
|
| 647 |
-
.ans-card h3 { font-size:
|
| 648 |
-
.ans-card p { color: var(--text-secondary); font-size:
|
| 649 |
.ans-next {
|
| 650 |
display: flex; align-items: center; gap: var(--s-2); margin-top: var(--s-3);
|
| 651 |
-
font-size:
|
| 652 |
}
|
| 653 |
-
.ans-next .ic { font-size:
|
| 654 |
.ans-card.ans-error { border-left-color: var(--no); }
|
| 655 |
.ans-card.ans-error h3 { color: var(--no); }
|
| 656 |
-
.ans-card.ans-error p { color: var(--text-secondary); font-size:
|
| 657 |
-
.ans-loading { display: flex; align-items: center; gap: var(--s-2); color: var(--text-muted); font-size:
|
| 658 |
.ans-cold { font-size: 12px; color: var(--text-muted); opacity: .75; }
|
| 659 |
.tick-note { font-size: 12px; color: var(--text-muted); opacity: .8; }
|
| 660 |
#parse-hint .spinner, .ans-loading .spinner { display: inline-block; vertical-align: -2px; margin-right: 6px; }
|
|
@@ -666,13 +703,19 @@ details.disc > summary:hover { color: var(--text-primary); }
|
|
| 666 |
@keyframes spin { to { transform: rotate(360deg); } }
|
| 667 |
|
| 668 |
/* Footer */
|
| 669 |
-
.foot { text-align:
|
|
|
|
| 670 |
.foot b { color: var(--text-secondary); }
|
| 671 |
|
| 672 |
-
/* Reveal animation */
|
| 673 |
-
.reveal { animation: reveal .
|
| 674 |
-
@keyframes reveal { from { opacity: 0; transform: translateY(
|
| 675 |
|
| 676 |
@media (prefers-reduced-motion: reduce) {
|
| 677 |
*, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 678 |
}
|
|
|
|
| 1 |
/* ============================================================
|
| 2 |
+
FitCheck - design system :: CRT pixel "technical instrument"
|
| 3 |
+
Dark phosphor-green. Hairline-bordered panels, ruled rows, a
|
| 4 |
+
dense option table, monospace numerics. Class/id names are kept
|
| 5 |
+
identical to the prior build so app.js keeps working unchanged.
|
| 6 |
+
Green is FitCheck's identity (NOT a vendor's); deliberately
|
| 7 |
+
away from NVIDIA olive #76B900.
|
| 8 |
============================================================ */
|
| 9 |
|
| 10 |
:root {
|
| 11 |
+
/* Ink */
|
| 12 |
+
--text-primary: #d7f5e4;
|
| 13 |
+
--text-secondary: #8fb6a3;
|
| 14 |
+
--text-muted: #5d7d6e;
|
| 15 |
+
|
| 16 |
+
/* Background layers (matte, no gradient blooms) */
|
| 17 |
+
--bg-base: #070b08;
|
| 18 |
+
--bg-raised: #0c120d;
|
| 19 |
+
--bg-inset: #0a0f0b;
|
| 20 |
+
--border: #1c2a20;
|
| 21 |
+
--border-hi: #2bbf5f;
|
| 22 |
+
--line-2: #152019;
|
| 23 |
+
|
| 24 |
+
/* Phosphor accent (identity colour) */
|
| 25 |
+
--accent: #43f57f;
|
| 26 |
+
--accent-strong: #2bbf5f;
|
| 27 |
+
--accent-soft: rgba(67,245,127,0.10);
|
| 28 |
+
--glow: rgba(67,245,127,0.35);
|
| 29 |
+
--grid: rgba(67,245,127,0.045);
|
| 30 |
|
| 31 |
/* Status */
|
| 32 |
+
--ok: #43f57f;
|
| 33 |
+
--warn: #ffb000;
|
| 34 |
+
--no: #ff5a48;
|
| 35 |
+
--ok-soft: rgba(67,245,127,0.10);
|
| 36 |
+
--warn-soft: rgba(255,176,0,0.12);
|
| 37 |
+
--no-soft: rgba(255,90,72,0.12);
|
| 38 |
|
| 39 |
/* Spacing scale (4px base) */
|
| 40 |
--s-1:4px; --s-2:8px; --s-3:12px; --s-4:16px;
|
| 41 |
--s-5:24px; --s-6:32px; --s-7:48px; --s-8:64px;
|
| 42 |
|
| 43 |
+
/* Squarer radii - an instrument is not a soft card */
|
| 44 |
+
--r-sm:3px; --r-md:4px; --r-lg:5px; --r-pill:3px;
|
| 45 |
|
| 46 |
+
--shadow-sm: 0 1px 2px rgba(0,0,0,0.40);
|
| 47 |
+
--shadow-md: 0 2px 10px rgba(0,0,0,0.45);
|
| 48 |
+
--shadow-lg: 0 4px 18px rgba(0,0,0,0.55);
|
| 49 |
+
--glowshadow: 0 0 14px var(--glow);
|
|
|
|
| 50 |
|
| 51 |
+
--font-pixel: 'Press Start 2P', monospace; /* wordmark, verdict word, labels, CTA */
|
| 52 |
+
--font-crt: 'VT323', ui-monospace, monospace; /* numerics, data table, inputs, hero */
|
| 53 |
+
--font-head: 'VT323', ui-monospace, monospace; /* headings live in the CRT face */
|
| 54 |
+
--font-body: 'Inter', system-ui, sans-serif; /* body sentences only */
|
| 55 |
+
--font-mono: 'VT323', ui-monospace, monospace;
|
| 56 |
}
|
| 57 |
|
| 58 |
*, *::before, *::after { box-sizing: border-box; }
|
|
|
|
| 61 |
html { scroll-behavior: smooth; }
|
| 62 |
body {
|
| 63 |
font-family: var(--font-body);
|
| 64 |
+
background: var(--bg-base);
|
| 65 |
+
background-image:
|
| 66 |
+
linear-gradient(var(--grid) 1px, transparent 1px),
|
| 67 |
+
linear-gradient(90deg, var(--grid) 1px, transparent 1px);
|
| 68 |
+
background-size: 32px 32px;
|
| 69 |
color: var(--text-primary);
|
| 70 |
font-size: 16px;
|
| 71 |
+
line-height: 1.55;
|
| 72 |
-webkit-font-smoothing: antialiased;
|
| 73 |
min-height: 100vh;
|
| 74 |
}
|
| 75 |
+
/* Subtle CRT scanline overlay - low opacity, must not hurt readability. */
|
| 76 |
+
body::after {
|
| 77 |
+
content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 9;
|
| 78 |
+
background: repeating-linear-gradient(0deg, rgba(0,0,0,0.16) 0 1px, transparent 1px 3px);
|
| 79 |
+
opacity: .30; mix-blend-mode: multiply;
|
| 80 |
+
}
|
| 81 |
|
| 82 |
+
h1,h2,h3 { font-family: var(--font-head); line-height: 1.1; letter-spacing: .01em; font-weight: 400; }
|
| 83 |
a { color: var(--accent); text-decoration: none; }
|
| 84 |
a:hover { text-decoration: underline; }
|
| 85 |
button { font-family: inherit; cursor: pointer; }
|
| 86 |
|
| 87 |
+
/* Numeric face + small uppercase labels (the instrument grammar) */
|
| 88 |
+
.num, .crt { font-family: var(--font-crt); }
|
| 89 |
+
.lbl {
|
| 90 |
+
font-family: var(--font-crt); font-size: 15px; letter-spacing: .12em;
|
| 91 |
+
text-transform: uppercase; color: var(--text-muted);
|
| 92 |
+
}
|
| 93 |
+
.pixel { font-family: var(--font-pixel); }
|
| 94 |
+
|
| 95 |
.label {
|
| 96 |
display: block;
|
| 97 |
+
font-family: var(--font-crt); font-size: 16px; font-weight: 400;
|
| 98 |
+
text-transform: uppercase; letter-spacing: 0.10em;
|
| 99 |
+
color: var(--text-muted);
|
| 100 |
margin-bottom: var(--s-2);
|
| 101 |
}
|
| 102 |
.hint { font-size: 13px; color: var(--text-muted); margin-top: var(--s-1); }
|
| 103 |
|
| 104 |
+
/* Icons (pixel SVG; currentColor tints) */
|
| 105 |
.ic { display: inline-flex; align-items: center; justify-content: center; line-height: 0; flex: none; }
|
| 106 |
+
.ic svg { width: 1em; height: 1em; display: block; shape-rendering: crispEdges; }
|
| 107 |
+
.optional { font-weight: 400; color: var(--text-muted); font-size: 13px; font-family: var(--font-crt); }
|
| 108 |
|
| 109 |
/* ----------------------------------------------------------- Topbar */
|
| 110 |
.topbar {
|
| 111 |
display: flex; align-items: center; gap: var(--s-3);
|
| 112 |
+
padding: 0 var(--s-5); height: 56px;
|
| 113 |
max-width: 1180px; margin: 0 auto;
|
| 114 |
+
border-bottom: 1px solid var(--border);
|
| 115 |
}
|
| 116 |
.logo {
|
| 117 |
display: flex; align-items: center; gap: var(--s-2);
|
| 118 |
+
font-family: var(--font-pixel); font-weight: 400; font-size: 14px;
|
| 119 |
+
letter-spacing: .02em;
|
| 120 |
}
|
| 121 |
.logo-mark {
|
| 122 |
+
width: 26px; height: 26px; border-radius: 0;
|
| 123 |
+
background: transparent; border: 2px solid var(--accent);
|
| 124 |
display: grid; place-items: center;
|
| 125 |
+
box-shadow: var(--glowshadow);
|
| 126 |
+
color: var(--accent);
|
| 127 |
}
|
| 128 |
+
.logo-mark .ic { font-size: 14px; }
|
| 129 |
+
.logo .tick { color: var(--accent); text-shadow: 0 0 8px var(--glow); }
|
|
|
|
| 130 |
.topbar .spacer { flex: 1; }
|
| 131 |
+
.topbar nav a { color: var(--text-secondary); font-size: 17px; font-weight: 400; font-family: var(--font-crt); margin-left: var(--s-4); }
|
| 132 |
+
.topbar nav a:hover { color: var(--accent); text-decoration: none; }
|
| 133 |
+
.statuschip { display: flex; align-items: center; gap: 7px; font-family: var(--font-crt); font-size: 16px; color: var(--text-muted); margin-left: var(--s-4); }
|
| 134 |
+
.statuschip b { color: var(--text-secondary); font-weight: 400; }
|
| 135 |
+
.statuschip .dot { width: 8px; height: 8px; background: var(--ok); box-shadow: var(--glowshadow); }
|
| 136 |
+
.statuschip .lbl { font-size: 13px; }
|
| 137 |
|
| 138 |
/* ----------------------------------------------------------- Layout */
|
| 139 |
.container { max-width: 1180px; margin: 0 auto; padding: 0 var(--s-5) var(--s-8); }
|
| 140 |
|
| 141 |
+
.hero {
|
| 142 |
+
text-align: left; padding: var(--s-6) 0 var(--s-5);
|
| 143 |
+
border-bottom: 1px solid var(--border); margin-bottom: var(--s-6);
|
|
|
|
|
|
|
|
|
|
| 144 |
}
|
| 145 |
+
.hero h1 { font-family: var(--font-crt); font-size: clamp(34px, 5vw, 48px); font-weight: 400; line-height: .98; }
|
| 146 |
+
.hero h1 .accent { color: var(--accent); text-shadow: 0 0 12px var(--glow); }
|
| 147 |
+
.hero p { color: var(--text-secondary); font-family: var(--font-body); font-size: 14px; max-width: 60ch; margin: var(--s-3) 0 0; }
|
| 148 |
|
| 149 |
.layout {
|
| 150 |
display: grid;
|
| 151 |
+
grid-template-columns: 340px 1fr;
|
| 152 |
gap: var(--s-5);
|
| 153 |
align-items: start;
|
| 154 |
}
|
| 155 |
@media (max-width: 900px) { .layout { grid-template-columns: 1fr; } }
|
| 156 |
|
| 157 |
+
/* Hairline-bordered panels - the core motif (no rounded soft cards, no lift) */
|
| 158 |
.panel {
|
| 159 |
background: var(--bg-raised);
|
| 160 |
border: 1px solid var(--border);
|
| 161 |
+
border-radius: var(--r-md);
|
|
|
|
| 162 |
}
|
| 163 |
+
.panel-head {
|
| 164 |
+
display: flex; align-items: center; justify-content: space-between;
|
| 165 |
+
padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--line-2);
|
| 166 |
+
}
|
| 167 |
+
.panel-body { padding: var(--s-4); }
|
| 168 |
+
.form-panel { position: sticky; top: var(--s-4); }
|
| 169 |
@media (min-width: 901px) {
|
|
|
|
| 170 |
.form-panel { max-height: calc(100vh - 32px); overflow-y: auto; scrollbar-width: thin; }
|
| 171 |
}
|
| 172 |
@media (max-width: 900px) { .form-panel { position: static; } }
|
|
|
|
| 174 |
.step { margin-bottom: var(--s-5); }
|
| 175 |
.step-head { display: flex; align-items: center; gap: var(--s-3); margin-bottom: var(--s-4); }
|
| 176 |
.step-num {
|
| 177 |
+
width: 24px; height: 24px; border-radius: 0; flex: none;
|
| 178 |
+
background: transparent; color: var(--accent); border: 1px solid var(--border-hi);
|
| 179 |
+
display: grid; place-items: center; font-weight: 400; font-size: 14px;
|
| 180 |
+
font-family: var(--font-crt);
|
| 181 |
}
|
| 182 |
+
.step-head h2 { font-family: var(--font-crt); font-size: 22px; font-weight: 400; letter-spacing: .02em; }
|
| 183 |
|
| 184 |
.field { margin-bottom: var(--s-4); }
|
| 185 |
|
| 186 |
+
/* Segmented control - hairline cells, selected state = accent fill, NO lift */
|
| 187 |
.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); }
|
| 188 |
.segmented.cols-3 { grid-template-columns: repeat(3, 1fr); }
|
| 189 |
.seg-btn {
|
| 190 |
background: var(--bg-inset); border: 1px solid var(--border);
|
| 191 |
color: var(--text-secondary); border-radius: var(--r-sm);
|
| 192 |
+
padding: 10px 8px; font-family: var(--font-crt); font-size: 16px; font-weight: 400; letter-spacing: .03em;
|
| 193 |
display: flex; align-items: center; gap: var(--s-2); justify-content: center;
|
| 194 |
+
transition: border-color .15s, color .15s, background .15s;
|
| 195 |
}
|
| 196 |
.seg-btn:hover { border-color: var(--border-hi); color: var(--text-primary); }
|
| 197 |
.seg-btn.active {
|
| 198 |
+
background: var(--accent); border-color: var(--accent);
|
| 199 |
+
color: #04130a; box-shadow: var(--glowshadow);
|
| 200 |
}
|
| 201 |
+
.seg-btn .ic { font-size: 16px; color: var(--text-muted); }
|
| 202 |
+
.seg-btn.active .ic { color: #04130a; }
|
| 203 |
.seg-btn .ic.brand { color: var(--text-secondary); }
|
| 204 |
+
.seg-btn.active .ic.brand { color: #04130a; }
|
| 205 |
.seg-btn.disabled { opacity: .3; pointer-events: none; }
|
| 206 |
|
| 207 |
+
/* Hover tooltip */
|
| 208 |
[data-tip] { position: relative; }
|
| 209 |
[data-tip]:hover::after, [data-tip]:focus-visible::after {
|
| 210 |
content: attr(data-tip);
|
|
|
|
| 212 |
width: max-content; max-width: 240px; z-index: 30;
|
| 213 |
background: var(--bg-raised); color: var(--text-secondary);
|
| 214 |
border: 1px solid var(--border-hi); border-radius: var(--r-sm);
|
| 215 |
+
padding: 8px 10px; font-size: 12px; font-family: var(--font-body); font-weight: 400; line-height: 1.45; text-align: left;
|
| 216 |
box-shadow: var(--shadow-lg); pointer-events: none; white-space: normal;
|
| 217 |
}
|
| 218 |
|
| 219 |
+
/* Native select / input - CRT terminal face */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 220 |
select, input[type="text"], input[type="number"], textarea {
|
| 221 |
+
width: 100%; font-family: var(--font-crt); font-size: 18px;
|
| 222 |
color: var(--text-primary);
|
| 223 |
background: var(--bg-inset);
|
| 224 |
border: 1px solid var(--border); border-radius: var(--r-sm);
|
| 225 |
+
padding: 8px 11px;
|
| 226 |
transition: border-color .15s, box-shadow .15s;
|
| 227 |
}
|
| 228 |
+
textarea { font-family: var(--font-body); font-size: 14px; }
|
| 229 |
select:hover, input:hover, textarea:hover { border-color: var(--border-hi); }
|
| 230 |
select:focus, input:focus, textarea:focus {
|
| 231 |
+
outline: none; border-color: var(--accent-strong); box-shadow: 0 0 0 1px var(--accent-strong);
|
| 232 |
}
|
| 233 |
select {
|
| 234 |
appearance: none;
|
| 235 |
+
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8' fill='%235d7d6e' shape-rendering='crispEdges'%3E%3Crect x='0' y='2' width='1' height='1'/%3E%3Crect x='1' y='3' width='1' height='1'/%3E%3Crect x='2' y='4' width='1' height='1'/%3E%3Crect x='3' y='5' width='1' height='1'/%3E%3Crect x='4' y='4' width='1' height='1'/%3E%3Crect x='5' y='3' width='1' height='1'/%3E%3Crect x='6' y='2' width='1' height='1'/%3E%3C/svg%3E");
|
| 236 |
background-repeat: no-repeat; background-position: right 12px center;
|
| 237 |
+
padding-right: 36px;
|
| 238 |
}
|
| 239 |
textarea { resize: vertical; min-height: 70px; line-height: 1.5; }
|
| 240 |
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
|
| 241 |
|
| 242 |
+
/* Run vs Train toggle - two hairline cells, selected = accent, no slide gradient.
|
| 243 |
+
The .tt-slider is kept (app.js toggles .train) but rendered as a flat marker. */
|
| 244 |
.task-toggle {
|
| 245 |
position: relative; display: grid; grid-template-columns: 1fr 1fr;
|
| 246 |
gap: 0; background: var(--bg-inset); border: 1px solid var(--border);
|
| 247 |
+
border-radius: var(--r-sm); padding: 3px; margin-bottom: var(--s-4);
|
| 248 |
}
|
| 249 |
.tt-opt {
|
| 250 |
position: relative; z-index: 2; background: transparent; border: 0;
|
| 251 |
+
color: var(--text-secondary); font-family: var(--font-crt); font-size: 16px; font-weight: 400; letter-spacing: .03em;
|
| 252 |
+
padding: 8px 12px; border-radius: var(--r-sm); cursor: pointer;
|
| 253 |
display: inline-flex; align-items: center; justify-content: center; gap: 7px;
|
| 254 |
transition: color .2s;
|
| 255 |
}
|
| 256 |
.tt-opt .ic { font-size: 16px; }
|
| 257 |
+
.tt-opt.active { color: #04130a; }
|
| 258 |
.tt-slider {
|
| 259 |
position: absolute; z-index: 1; top: 3px; bottom: 3px; left: 3px;
|
| 260 |
+
width: calc(50% - 3px); border-radius: var(--r-sm);
|
| 261 |
+
background: var(--accent); box-shadow: var(--glowshadow);
|
| 262 |
+
transition: transform .2s cubic-bezier(.4,0,.2,1);
|
|
|
|
|
|
|
|
|
|
|
|
|
| 263 |
}
|
| 264 |
+
.task-toggle.train .tt-slider { transform: translateX(100%); background: var(--warn); box-shadow: 0 0 14px rgba(255,176,0,.35); }
|
| 265 |
|
| 266 |
+
/* Use-case picker - flat hairline pills, selected = accent ring, NO rainbow, NO lift */
|
| 267 |
.uc-group { margin-bottom: var(--s-4); }
|
| 268 |
.uc-cat {
|
| 269 |
+
font-family: var(--font-crt); font-size: 14px; font-weight: 400; letter-spacing: 0.10em; text-transform: uppercase;
|
| 270 |
color: var(--text-muted); margin-bottom: var(--s-2); display: flex; align-items: center; gap: 6px;
|
| 271 |
}
|
| 272 |
.uc-grid { display: flex; flex-wrap: wrap; gap: var(--s-2); }
|
| 273 |
.uc-pill {
|
| 274 |
background: var(--bg-inset); border: 1px solid var(--border);
|
| 275 |
+
color: var(--text-secondary); border-radius: var(--r-sm);
|
| 276 |
+
padding: 6px 12px; font-family: var(--font-crt); font-size: 16px; font-weight: 400;
|
| 277 |
display: inline-flex; align-items: center; gap: 6px;
|
| 278 |
+
transition: border-color .15s, color .15s, background .15s;
|
| 279 |
}
|
| 280 |
+
.uc-pill:hover { border-color: var(--border-hi); color: var(--text-primary); }
|
| 281 |
.uc-pill.active {
|
| 282 |
background: var(--accent-soft); border-color: var(--accent); color: var(--text-primary);
|
| 283 |
+
box-shadow: inset 0 0 0 1px var(--accent);
|
| 284 |
}
|
| 285 |
.uc-pill .pic { font-size: 15px; color: var(--text-muted); }
|
| 286 |
.uc-pill:hover .pic { color: var(--text-secondary); }
|
| 287 |
.uc-pill.active .pic { color: var(--accent); }
|
| 288 |
.uc-cat .ic { font-size: 14px; color: var(--text-muted); }
|
| 289 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 290 |
/* Disclosure (advanced / accordions) */
|
| 291 |
details.disc {
|
| 292 |
border: 1px solid var(--border); border-radius: var(--r-md);
|
| 293 |
background: var(--bg-inset); margin-top: var(--s-3); overflow: hidden;
|
| 294 |
}
|
| 295 |
details.disc > summary {
|
| 296 |
+
list-style: none; cursor: pointer; padding: 11px 14px;
|
| 297 |
+
font-family: var(--font-crt); font-size: 17px; font-weight: 400; color: var(--text-secondary);
|
| 298 |
display: flex; align-items: center; gap: var(--s-2);
|
| 299 |
}
|
| 300 |
details.disc > summary::-webkit-details-marker { display: none; }
|
| 301 |
+
details.disc > summary .chev { margin-left: auto; transition: transform .2s; color: var(--text-muted); font-size: 14px; }
|
| 302 |
details.disc[open] > summary .chev { transform: rotate(180deg); }
|
| 303 |
details.disc > summary .sum-ic { font-size: 16px; color: var(--text-muted); }
|
| 304 |
details.disc > summary:hover { color: var(--text-primary); }
|
| 305 |
+
.disc-body { padding: 0 14px 14px; font-size: 14px; font-family: var(--font-body); color: var(--text-secondary); line-height: 1.6; }
|
| 306 |
.disc-body code {
|
| 307 |
+
background: var(--bg-base); border: 1px solid var(--border); border-radius: 3px;
|
| 308 |
+
padding: 1px 6px; font-family: var(--font-crt); font-size: 15px; color: var(--accent);
|
| 309 |
}
|
| 310 |
.disc-body dl { display: grid; gap: var(--s-3); }
|
| 311 |
+
.disc-body dt { font-weight: 400; color: var(--text-primary); font-family: var(--font-crt); font-size: 17px; letter-spacing: .02em; }
|
| 312 |
.disc-body dd { color: var(--text-muted); }
|
| 313 |
|
| 314 |
.parse-btn {
|
| 315 |
margin-top: var(--s-2); width: 100%;
|
| 316 |
+
background: var(--bg-inset); border: 1px solid var(--accent);
|
| 317 |
+
color: var(--accent); border-radius: var(--r-sm);
|
| 318 |
+
padding: 9px 12px; font-family: var(--font-crt); font-size: 16px; font-weight: 400; letter-spacing: .03em;
|
| 319 |
+
transition: background .15s, color .15s;
|
| 320 |
}
|
| 321 |
+
.parse-btn:hover { background: var(--accent-soft); color: var(--text-primary); }
|
| 322 |
|
| 323 |
+
/* Primary CTA - the pixel display face, flat accent, no lift */
|
| 324 |
.cta {
|
| 325 |
+
width: 100%; border: 1px solid var(--accent); border-radius: var(--r-md);
|
| 326 |
+
background: var(--accent);
|
| 327 |
+
color: #04130a; font-weight: 400; font-size: 11px; font-family: var(--font-pixel); letter-spacing: .02em;
|
| 328 |
+
padding: 13px; margin-top: var(--s-2);
|
| 329 |
display: flex; align-items: center; justify-content: center; gap: var(--s-2);
|
| 330 |
+
box-shadow: var(--glowshadow);
|
| 331 |
+
transition: filter .15s, box-shadow .15s;
|
| 332 |
}
|
| 333 |
+
.cta:hover { filter: brightness(1.08); box-shadow: 0 0 20px var(--glow); }
|
| 334 |
+
.cta:active { filter: brightness(.95); }
|
| 335 |
+
.cta .ic { font-size: 14px; }
|
| 336 |
|
| 337 |
/* ----------------------------------------------------------- Results */
|
| 338 |
+
.results-panel { padding: var(--s-4); min-height: 400px; }
|
| 339 |
|
| 340 |
.empty-state { text-align: center; color: var(--text-muted); padding: var(--s-8) var(--s-4); }
|
| 341 |
.empty-state .big { font-size: 46px; margin-bottom: var(--s-3); color: var(--text-muted); display: flex; justify-content: center; }
|
| 342 |
+
.empty-state h2 { font-family: var(--font-crt); font-size: 24px; color: var(--text-secondary); }
|
| 343 |
+
.empty-state p { max-width: 360px; margin: var(--s-2) auto 0; font-family: var(--font-body); }
|
| 344 |
|
| 345 |
+
/* Verdict readout - instrument header, accent rail, status word in pixel face */
|
| 346 |
.verdict {
|
| 347 |
+
border: 1px solid var(--border); border-radius: var(--r-md); background: var(--bg-raised);
|
| 348 |
+
padding: var(--s-5); margin-bottom: var(--s-5); position: relative; overflow: hidden;
|
| 349 |
+
}
|
| 350 |
+
.verdict::before {
|
| 351 |
+
content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
|
| 352 |
+
background: var(--status, var(--accent)); box-shadow: 0 0 12px var(--glow);
|
| 353 |
}
|
| 354 |
.verdict .badge {
|
| 355 |
+
display: inline-flex; align-items: center; gap: 8px;
|
| 356 |
+
padding: 0; background: transparent; color: var(--status, var(--accent));
|
| 357 |
+
font-family: var(--font-pixel); font-size: 12px; line-height: 1.2; text-transform: uppercase; letter-spacing: .02em;
|
| 358 |
+
margin-bottom: var(--s-4); text-shadow: 0 0 10px var(--glow);
|
| 359 |
+
}
|
| 360 |
+
.verdict .badge .dot { width: 8px; height: 8px; border-radius: 0; background: currentColor; box-shadow: 0 0 8px currentColor; }
|
| 361 |
+
.verdict h2 { font-family: var(--font-body); font-weight: 600; font-size: 20px; line-height: 1.25; letter-spacing: -.01em; margin-bottom: var(--s-3); }
|
| 362 |
+
.verdict p { color: var(--text-secondary); font-family: var(--font-body); margin-bottom: var(--s-2); font-size: 14px; }
|
|
|
|
| 363 |
.verdict .note {
|
| 364 |
+
font-size: 13px; color: var(--text-muted); margin-top: var(--s-3); font-family: var(--font-body);
|
| 365 |
+
padding-top: var(--s-3); border-top: 1px dashed var(--border);
|
| 366 |
}
|
| 367 |
|
| 368 |
.section-title {
|
| 369 |
+
font-family: var(--font-pixel); font-size: 10px; letter-spacing: .02em;
|
| 370 |
+
color: var(--accent); text-shadow: 0 0 8px var(--glow); margin: var(--s-6) 0 var(--s-3);
|
| 371 |
+
display: flex; align-items: center; gap: var(--s-3);
|
| 372 |
}
|
| 373 |
+
.section-title::after { content: ""; height: 1px; flex: 1; background: var(--border); }
|
| 374 |
+
.section-title .sub { font-family: var(--font-crt); font-size: 14px; font-weight: 400; color: var(--text-muted); letter-spacing: 0; text-transform: none; text-shadow: none; }
|
| 375 |
|
| 376 |
+
/* Gauge - mono numerics, hairline track */
|
| 377 |
.gauge-card { background: var(--bg-inset); border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--s-4) var(--s-4) var(--s-3); }
|
| 378 |
+
.gauge-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: var(--s-3); }
|
| 379 |
+
.gauge-top .need { font-family: var(--font-crt); font-size: 20px; color: var(--status, var(--accent)); text-shadow: 0 0 8px var(--glow); }
|
|
|
|
| 380 |
.gauge-wrap { position: relative; padding-top: 22px; }
|
| 381 |
.gauge {
|
| 382 |
+
position: relative; height: 14px; border-radius: 0;
|
| 383 |
background: var(--bg-base); overflow: hidden; border: 1px solid var(--border);
|
| 384 |
}
|
| 385 |
.gauge-fill {
|
| 386 |
+
height: 100%; width: calc(var(--pct,0) * 1%); border-radius: 0;
|
| 387 |
+
background: var(--gcolor, var(--accent)); box-shadow: 0 0 10px var(--glow);
|
| 388 |
transition: width .8s cubic-bezier(.22,1,.36,1), background .4s;
|
| 389 |
}
|
|
|
|
| 390 |
.gmark {
|
| 391 |
+
position: absolute; top: 22px; height: 14px; width: 2px;
|
| 392 |
transition: left .8s cubic-bezier(.22,1,.36,1);
|
| 393 |
}
|
| 394 |
+
.gmark::before {
|
| 395 |
+
content: ""; position: absolute; top: -4px; bottom: -4px; left: 0; width: 2px; border-radius: 0;
|
| 396 |
}
|
| 397 |
.gmark-gpu::before { background: var(--text-primary); opacity: .9; }
|
| 398 |
.gmark-total::before { background: var(--text-muted); }
|
| 399 |
.gmark-gpu { border-left: 0; }
|
| 400 |
.gmark-lab {
|
| 401 |
position: absolute; bottom: calc(100% + 6px); left: 0; transform: translateX(-50%);
|
| 402 |
+
white-space: nowrap; font-family: var(--font-crt); font-size: 14px; font-weight: 400; color: var(--text-secondary);
|
| 403 |
background: var(--bg-inset); padding: 1px 5px; border-radius: var(--r-sm);
|
| 404 |
}
|
| 405 |
.gmark-total .gmark-lab { color: var(--text-muted); }
|
|
|
|
| 406 |
.gmark[style*="left: 0%"] .gmark-lab, .gmark-gpu .gmark-lab { transform: translateX(-20%); }
|
| 407 |
.gmark-total .gmark-lab { transform: translateX(-80%); }
|
| 408 |
.gauge-hint { font-style: italic; color: var(--text-muted); }
|
| 409 |
+
.gauge-legend { display: flex; flex-wrap: wrap; gap: var(--s-4); margin-top: var(--s-3); font-size: 13px; font-family: var(--font-body); color: var(--text-muted); }
|
| 410 |
.gauge-legend .item { display: inline-flex; align-items: center; gap: 6px; }
|
| 411 |
+
.gauge-legend .sw { width: 10px; height: 10px; border-radius: 0; }
|
| 412 |
.gauge-legend .marker { font-weight: 600; color: var(--text-secondary); }
|
| 413 |
|
| 414 |
+
/* ---- Option breakdown rendered as a DENSE TABLE ----
|
| 415 |
+
app.js emits .opt-grid containing .opt rows (grid: 40px 1fr auto).
|
| 416 |
+
We re-cast each .opt as a ruled instrument row: status dot, model name +
|
| 417 |
+
desc, monospace right-aligned memory/setting. The honest pick (.opt-current)
|
| 418 |
+
gets an inset accent ring, not a floating card. No hover-lift. */
|
| 419 |
+
.opt-grid {
|
| 420 |
+
display: grid; gap: 0;
|
| 421 |
+
border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden;
|
| 422 |
}
|
| 423 |
+
.opt {
|
| 424 |
+
display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: var(--s-3);
|
| 425 |
+
background: var(--bg-raised); border: 0;
|
| 426 |
+
border-bottom: 1px solid var(--line-2);
|
| 427 |
+
border-left: 2px solid var(--status, transparent);
|
| 428 |
+
border-radius: 0;
|
| 429 |
+
padding: 11px var(--s-4);
|
| 430 |
+
transition: background .15s, box-shadow .15s, border-color .15s;
|
| 431 |
+
}
|
| 432 |
+
.opt:last-child { border-bottom: 0; }
|
| 433 |
+
.opt:hover { background: #101a13; }
|
| 434 |
.opt .vdot {
|
| 435 |
+
width: 18px; height: 18px; border-radius: 0;
|
| 436 |
+
background: transparent; color: var(--status);
|
| 437 |
+
display: grid; place-items: center; font-size: 14px; font-weight: 400;
|
| 438 |
}
|
| 439 |
+
.opt .vdot .ic svg { width: 14px; height: 14px; }
|
| 440 |
+
.opt .name { font-family: var(--font-crt); font-weight: 400; font-size: 18px; letter-spacing: .01em; }
|
| 441 |
.opt .name a { color: var(--text-primary); }
|
| 442 |
.opt .name a:hover { color: var(--accent); text-decoration: none; }
|
| 443 |
.lic {
|
| 444 |
+
display: inline-block; margin-left: 8px; padding: 0 7px; vertical-align: 2px;
|
| 445 |
+
border-radius: var(--r-sm); border: 1px solid var(--border-hi);
|
| 446 |
+
font-family: var(--font-crt); font-size: 13px; font-weight: 400; letter-spacing: .04em;
|
| 447 |
color: var(--text-muted); text-transform: uppercase;
|
| 448 |
}
|
| 449 |
+
.lic.warn { color: var(--warn); border-color: var(--warn); }
|
| 450 |
.lic.gatechip { color: var(--accent); border-color: var(--accent); }
|
| 451 |
.prov {
|
| 452 |
+
margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--border);
|
| 453 |
+
font-size: 12px; color: var(--text-muted); line-height: 1.55; font-family: var(--font-body);
|
| 454 |
+
}
|
| 455 |
+
.opt .desc { font-size: 12px; color: var(--text-muted); margin-top: 1px; font-family: var(--font-body); }
|
| 456 |
+
.opt .meta { text-align: right; font-family: var(--font-crt); font-size: 16px; color: var(--text-secondary); white-space: nowrap; }
|
| 457 |
+
.opt .meta b { color: var(--text-primary); font-family: var(--font-crt); font-weight: 400; font-size: 18px; }
|
| 458 |
+
.opt .feel { font-family: var(--font-crt); font-size: 14px; color: var(--text-muted); margin-top: 1px; }
|
|
|
|
| 459 |
.opt[data-model] { cursor: pointer; }
|
| 460 |
+
.opt[data-model]:hover { background: #101a13; }
|
| 461 |
+
/* honest pick / currently-focused model: inset accent ring, not a lifted card */
|
| 462 |
.opt-current {
|
| 463 |
+
background: rgba(67,245,127,.07);
|
| 464 |
+
box-shadow: inset 2px 0 0 var(--accent), inset 0 0 0 1px var(--accent);
|
| 465 |
+
border-left-color: var(--accent);
|
| 466 |
}
|
| 467 |
|
| 468 |
+
/* Tool cards - hairline panels, border state on hover */
|
| 469 |
.tool-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: var(--s-3); }
|
| 470 |
.tool {
|
| 471 |
+
background: var(--bg-inset); border: 1px solid var(--border);
|
| 472 |
border-radius: var(--r-md); padding: var(--s-4);
|
| 473 |
+
transition: border-color .15s;
|
| 474 |
}
|
| 475 |
+
.tool:hover { border-color: var(--border-hi); }
|
| 476 |
.tool .tool-head { display: flex; align-items: center; justify-content: space-between; }
|
| 477 |
+
.tool .tname { font-family: var(--font-crt); font-weight: 400; font-size: 18px; }
|
| 478 |
+
.tool .tag { font-family: var(--font-crt); font-size: 13px; font-weight: 400; text-transform: uppercase; letter-spacing: .05em; padding: 2px 8px; border-radius: var(--r-sm); border: 1px solid; }
|
| 479 |
+
.tool .tag.best { background: var(--ok-soft); color: var(--ok); border-color: var(--ok); }
|
| 480 |
+
.tool .tag.mid { background: transparent; color: var(--text-muted); border-color: var(--border-hi); }
|
| 481 |
+
.tool .twhat { font-size: 13px; color: var(--text-secondary); margin: var(--s-2) 0; line-height: 1.5; font-family: var(--font-body); }
|
| 482 |
+
.tool .tinstall { font-family: var(--font-crt); font-size: 15px; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
|
| 483 |
.tool .tinstall .ic { font-size: 14px; }
|
| 484 |
|
| 485 |
+
/* Buy advice */
|
| 486 |
.buy-platform { margin-top: var(--s-5); }
|
| 487 |
.bp-head { display: flex; align-items: center; gap: 9px; }
|
| 488 |
+
.bp-head .ic { font-size: 18px; color: var(--text-secondary); }
|
| 489 |
+
.bp-head .ic.brand { color: var(--text-secondary); }
|
| 490 |
+
.bp-name { font-family: var(--font-crt); font-weight: 400; font-size: 20px; }
|
| 491 |
+
.bp-blurb { font-size: 13px; color: var(--text-muted); margin: 4px 0 var(--s-3); line-height: 1.5; font-family: var(--font-body); }
|
| 492 |
.buy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
|
| 493 |
@media (max-width: 620px) { .buy-grid { grid-template-columns: 1fr; } }
|
| 494 |
.buy-card {
|
| 495 |
+
background: var(--bg-inset); border: 1px solid var(--border);
|
| 496 |
border-radius: var(--r-md); padding: var(--s-3) var(--s-4);
|
| 497 |
}
|
| 498 |
.buy-card.empty { opacity: .7; }
|
| 499 |
.bc-head { display: flex; align-items: center; justify-content: space-between; }
|
| 500 |
+
.bc-kind { font-family: var(--font-crt); font-size: 14px; font-weight: 400; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); }
|
| 501 |
.bc-kind.min { color: var(--warn); } .bc-kind.comfy { color: var(--ok); }
|
| 502 |
+
.bc-label { font-family: var(--font-crt); font-weight: 400; font-size: 18px; margin: 6px 0; }
|
| 503 |
+
.bc-runs { font-size: 13px; color: var(--text-secondary); font-family: var(--font-body); }
|
| 504 |
.bc-runs b { color: var(--text-primary); }
|
| 505 |
+
.bc-none { font-size: 13px; color: var(--text-muted); margin: 6px 0 0; line-height: 1.5; font-family: var(--font-body); }
|
| 506 |
.bc-goals { margin: 6px 0 0; padding: 0; list-style: none; font-size: 13px; }
|
| 507 |
+
.bc-goals li { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; border-top: 1px dashed var(--border); font-family: var(--font-body); }
|
| 508 |
.bc-goals li:first-child { border-top: 0; }
|
| 509 |
+
.bc-goals b { color: var(--text-primary); font-weight: 600; text-align: right; font-family: var(--font-crt); font-size: 15px; }
|
| 510 |
.bc-more {
|
| 511 |
margin-top: var(--s-3); background: none; border: 0; cursor: pointer; padding: 0;
|
| 512 |
+
color: var(--accent); font-family: var(--font-crt); font-size: 15px; font-weight: 400;
|
| 513 |
display: inline-flex; align-items: center; gap: 5px;
|
| 514 |
}
|
| 515 |
+
.bc-more .chev { font-size: 13px; transition: transform .2s; }
|
| 516 |
.bc-more.open .chev { transform: rotate(180deg); }
|
| 517 |
+
.bc-detail { margin-top: var(--s-3); border-top: 1px dashed var(--border); padding-top: var(--s-3); }
|
| 518 |
.bc-spec {
|
| 519 |
+
font-family: var(--font-crt); font-size: 15px;
|
| 520 |
color: var(--text-secondary); background: var(--bg-base);
|
| 521 |
border: 1px solid var(--border); border-radius: var(--r-sm); padding: 7px 10px; margin-bottom: var(--s-2);
|
| 522 |
}
|
| 523 |
+
.bc-detail p { font-size: 13px; color: var(--text-secondary); line-height: 1.6; margin: 0; font-family: var(--font-body); }
|
| 524 |
|
| 525 |
+
/* Command block - terminal */
|
| 526 |
+
.cmd-intro { font-size: 14px; color: var(--text-secondary); margin: var(--s-2) 0 var(--s-3); font-family: var(--font-body); }
|
| 527 |
.cmd { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
|
| 528 |
@media (max-width: 620px) { .cmd { grid-template-columns: 1fr; } }
|
| 529 |
.cmd-box { background: var(--bg-base); border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; }
|
| 530 |
+
.cmd-box .cmd-label { font-family: var(--font-crt); font-size: 14px; font-weight: 400; color: var(--text-muted); padding: 8px 13px 0; display:flex; justify-content:space-between; align-items:center; text-transform: uppercase; letter-spacing: .06em; }
|
| 531 |
+
.cmd-box pre { padding: 6px 13px 12px; overflow-x: auto; }
|
| 532 |
+
.cmd-box code { font-family: var(--font-crt); font-size: 17px; color: var(--accent); }
|
| 533 |
.copy-btn {
|
| 534 |
background: var(--bg-inset); border: 1px solid var(--border); color: var(--text-secondary);
|
| 535 |
+
border-radius: var(--r-sm); padding: 3px 9px; font-family: var(--font-crt); font-size: 14px; font-weight: 400;
|
| 536 |
+
display: inline-flex; align-items: center; gap: 5px;
|
| 537 |
}
|
| 538 |
.copy-btn:hover { color: var(--text-primary); border-color: var(--border-hi); }
|
| 539 |
.copy-btn.done { color: var(--ok); border-color: var(--ok); }
|
| 540 |
+
.copy-btn .ic { font-size: 13px; }
|
| 541 |
+
|
| 542 |
+
/* "Why this speed?" roofline - PROMOTED to a prominent centerpiece panel.
|
| 543 |
+
app.js still emits <details class="disc viz-disc" open>; we render it as a
|
| 544 |
+
flat hairline panel with a graph surface, not a tucked-away disclosure. */
|
| 545 |
+
.viz-disc {
|
| 546 |
+
margin-top: var(--s-6); background: var(--bg-raised);
|
| 547 |
+
border: 1px solid var(--border-hi); box-shadow: 0 0 0 1px var(--accent-soft);
|
| 548 |
+
}
|
| 549 |
+
.viz-disc > summary {
|
| 550 |
+
font-family: var(--font-pixel); font-size: 10px; color: var(--accent); text-shadow: 0 0 8px var(--glow);
|
| 551 |
+
padding: var(--s-4) var(--s-4) var(--s-3); border-bottom: 1px solid var(--line-2); cursor: default;
|
| 552 |
+
text-transform: uppercase; letter-spacing: .02em;
|
| 553 |
+
}
|
| 554 |
+
.viz-disc > summary .chev { display: none; } /* centerpiece: not a collapse affordance */
|
| 555 |
+
.viz-disc > summary .sub-inline { font-family: var(--font-crt); font-weight: 400; color: var(--text-muted); font-size: 14px; margin-left: 8px; letter-spacing: 0; text-transform: none; text-shadow: none; }
|
| 556 |
+
.viz-disc > summary .sum-ic { font-size: 14px; }
|
| 557 |
+
.viz-disc > .disc-body { padding: var(--s-4); }
|
| 558 |
+
.roofline-wrap {
|
| 559 |
+
border: 1px solid var(--line-2); background: var(--bg-inset);
|
| 560 |
+
background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
|
| 561 |
+
background-size: 40px 32px; padding: var(--s-2);
|
| 562 |
+
}
|
| 563 |
.roofline-wrap svg { width: 100%; height: auto; display: block; }
|
| 564 |
+
.rl-grid { stroke: var(--line-2); stroke-width: 1; opacity: .7; }
|
| 565 |
+
.rl-tick { fill: var(--text-muted); font: 400 13px var(--font-crt); }
|
| 566 |
+
.rl-axis { fill: var(--text-secondary); font: 400 14px var(--font-crt); }
|
| 567 |
+
.rl-dot { opacity: .55; transition: r .1s, opacity .1s; cursor: pointer; }
|
| 568 |
.rl-dot:hover { opacity: 1; r: 4.5; }
|
| 569 |
.rl-you { cursor: pointer; }
|
|
|
|
| 570 |
.rl-tip {
|
| 571 |
position: absolute; z-index: 20; pointer-events: none;
|
| 572 |
background: var(--bg-raised); border: 1px solid var(--border-hi);
|
| 573 |
+
border-radius: var(--r-sm); padding: 7px 10px; font-family: var(--font-crt); font-size: 15px; line-height: 1.4;
|
| 574 |
+
color: var(--text-primary); box-shadow: var(--shadow-lg); max-width: 220px;
|
| 575 |
}
|
| 576 |
.rl-tip-sub { color: var(--text-muted); }
|
| 577 |
+
/* roofline series in the SAME neutral tone family (greens/inks); accent = you */
|
| 578 |
+
.rl-p1 { fill: #34503f; }
|
| 579 |
+
.rl-p8 { fill: #4d6e58; }
|
| 580 |
+
.rl-p14 { fill: #6f9580; }
|
| 581 |
+
.rl-roof { stroke: var(--warn); stroke-width: 1.8; stroke-dasharray: 4 5; opacity: .9; }
|
| 582 |
+
.rl-band { stroke: var(--accent); stroke-width: 5; opacity: .35; stroke-linecap: butt; }
|
| 583 |
+
.rl-you { fill: var(--accent); stroke: var(--bg-base); stroke-width: 1.5; }
|
| 584 |
+
.rl-you-label { fill: var(--accent); font: 400 16px var(--font-crt); }
|
| 585 |
+
.rl-legend { display: flex; flex-wrap: wrap; gap: var(--s-4); margin-top: var(--s-3); font-family: var(--font-body); font-size: 12px; color: var(--text-muted); }
|
| 586 |
.rl-legend .item { display: inline-flex; align-items: center; gap: 6px; }
|
| 587 |
+
.rl-legend .sw { width: 10px; height: 10px; border-radius: 0; }
|
| 588 |
+
.rl-p1-sw { background: #34503f; } .rl-p8-sw { background: #4d6e58; } .rl-p14-sw { background: #6f9580; }
|
| 589 |
+
.rl-roof-sw { background: var(--warn); border-radius: 0; height: 3px; width: 14px; }
|
| 590 |
+
.rl-you-sw { background: var(--accent); box-shadow: 0 0 6px var(--glow); }
|
| 591 |
+
.viz-caption { font-size: 13px; color: var(--text-secondary); line-height: 1.6; margin-top: var(--s-3); font-family: var(--font-body); }
|
| 592 |
|
| 593 |
+
/* Multi-goal overview - hairline panels, inset ring on hover, no lift */
|
| 594 |
.goal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: var(--s-3); }
|
| 595 |
.goal-card {
|
| 596 |
+
background: var(--bg-inset); border: 1px solid var(--border);
|
| 597 |
+
border-left: 2px solid var(--status, var(--border)); border-radius: var(--r-md);
|
| 598 |
padding: var(--s-4); cursor: pointer;
|
| 599 |
+
transition: box-shadow .15s, background .15s;
|
| 600 |
}
|
| 601 |
+
.goal-card:hover { background: #101a13; box-shadow: inset 0 0 0 1px var(--border-hi); }
|
| 602 |
.goal-card .badge {
|
| 603 |
display: inline-flex; align-items: center; gap: 6px;
|
| 604 |
+
padding: 0; background: transparent; color: var(--status, var(--accent));
|
| 605 |
+
font-family: var(--font-pixel); font-size: 9px; line-height: 1.3; text-transform: uppercase; letter-spacing: .02em;
|
| 606 |
+
}
|
| 607 |
+
.goal-card .badge .dot { width: 7px; height: 7px; border-radius: 0; background: currentColor; box-shadow: 0 0 6px currentColor; }
|
| 608 |
+
.goal-name { font-family: var(--font-crt); font-weight: 400; font-size: 18px; line-height: 1.2; margin-top: var(--s-3); }
|
| 609 |
+
.goal-pick { font-family: var(--font-crt); font-size: 16px; color: var(--text-secondary); margin-top: 4px; display: flex; align-items: center; gap: 6px; }
|
| 610 |
+
.goal-pick .ic { font-size: 13px; color: var(--accent); }
|
| 611 |
+
.goal-need { font-family: var(--font-crt); font-size: 15px; color: var(--text-muted); margin-top: 2px; }
|
| 612 |
+
.goal-more { font-family: var(--font-crt); font-size: 15px; font-weight: 400; color: var(--accent); margin-top: var(--s-3); }
|
| 613 |
.back-link {
|
| 614 |
background: var(--bg-inset); border: 1px solid var(--border); color: var(--text-secondary);
|
| 615 |
+
border-radius: var(--r-sm); padding: 6px 14px; font-family: var(--font-crt); font-size: 15px; font-weight: 400;
|
| 616 |
+
margin-bottom: var(--s-4); display: inline-flex; align-items: center; gap: 6px;
|
| 617 |
}
|
| 618 |
.back-link:hover { color: var(--text-primary); border-color: var(--border-hi); }
|
| 619 |
+
.back-link .ic { font-size: 13px; transform: scaleX(-1); }
|
| 620 |
.goal-lines { list-style: none; padding: 0; margin: var(--s-2) 0 0; }
|
| 621 |
.goal-lines li {
|
| 622 |
display: flex; justify-content: space-between; gap: var(--s-3);
|
| 623 |
+
font-family: var(--font-body); font-size: 13px; color: var(--text-secondary); padding: 3px 0;
|
| 624 |
border-bottom: 1px dashed var(--border);
|
| 625 |
}
|
| 626 |
.goal-lines li:last-child { border-bottom: none; }
|
| 627 |
+
.goal-lines li b { color: var(--text-primary); font-weight: 600; text-align: right; font-family: var(--font-crt); font-size: 15px; }
|
| 628 |
.goal-lines li i { color: var(--text-muted); font-style: normal; font-size: 12px; }
|
| 629 |
|
| 630 |
/* Live single-model lookup card */
|
| 631 |
.lookup-card {
|
| 632 |
+
border: 1px solid var(--border); border-left: 2px solid var(--status, var(--accent));
|
| 633 |
+
border-radius: var(--r-md); background: var(--bg-inset);
|
| 634 |
padding: var(--s-4) var(--s-5); margin-bottom: var(--s-5);
|
| 635 |
}
|
| 636 |
.lookup-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s-2); }
|
| 637 |
.live-tag {
|
| 638 |
+
font-family: var(--font-crt); font-size: 14px; font-weight: 400; text-transform: uppercase; letter-spacing: .06em;
|
| 639 |
+
color: var(--accent); border: 1px dashed var(--accent); border-radius: var(--r-sm);
|
| 640 |
+
padding: 3px 10px;
|
| 641 |
}
|
| 642 |
+
.lookup-explain { color: var(--text-secondary); font-size: 14px; font-family: var(--font-body); }
|
| 643 |
+
.lookup-meta { display: flex; gap: var(--s-4); margin-top: var(--s-2); font-family: var(--font-crt); font-size: 15px; color: var(--text-secondary); }
|
|
|
|
| 644 |
.lookup-banner {
|
| 645 |
display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap;
|
| 646 |
background: var(--accent-soft); border: 1px solid var(--accent);
|
| 647 |
border-radius: var(--r-md); padding: var(--s-3) var(--s-4); margin-bottom: var(--s-4);
|
| 648 |
}
|
| 649 |
+
.lookup-banner p { color: var(--text-secondary); font-size: 13px; margin: 0; font-family: var(--font-body); }
|
| 650 |
.lookup-banner.estimate { background: var(--warn-soft); border-color: var(--warn); }
|
| 651 |
+
.lookup-banner.estimate .live-tag { color: var(--warn); border-color: var(--warn); }
|
| 652 |
+
#repo-field.required input { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
|
| 653 |
|
| 654 |
/* Ask a follow-up (the model brick) */
|
| 655 |
.ask-row { display: flex; gap: var(--s-2); }
|
| 656 |
.ask-row input {
|
| 657 |
flex: 1; background: var(--bg-inset); border: 1px solid var(--border);
|
| 658 |
+
border-radius: var(--r-md); padding: 11px 14px; font-family: var(--font-crt); font-size: 18px;
|
| 659 |
}
|
| 660 |
.ask-btn {
|
| 661 |
+
flex: none; width: 46px; border: 1px solid var(--accent); border-radius: var(--r-md);
|
| 662 |
+
background: var(--accent);
|
| 663 |
+
color: #04130a; display: grid; place-items: center;
|
| 664 |
+
box-shadow: var(--glowshadow);
|
| 665 |
+
transition: filter .15s, box-shadow .15s;
|
| 666 |
+
}
|
| 667 |
+
.ask-btn:hover { filter: brightness(1.08); box-shadow: 0 0 20px var(--glow); }
|
| 668 |
+
.ask-btn .ic { font-size: 16px; }
|
| 669 |
.ask-chips { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-3); }
|
| 670 |
.ask-chip {
|
| 671 |
background: var(--bg-inset); border: 1px solid var(--border);
|
| 672 |
+
color: var(--text-secondary); border-radius: var(--r-sm);
|
| 673 |
+
padding: 6px 13px; font-family: var(--font-crt); font-size: 15px; font-weight: 400;
|
| 674 |
transition: border-color .15s, color .15s, background .15s;
|
| 675 |
}
|
| 676 |
.ask-chip:hover { border-color: var(--accent); color: var(--text-primary); background: var(--accent-soft); }
|
|
|
|
| 678 |
.ask-answer { margin-top: var(--s-4); }
|
| 679 |
.ans-card {
|
| 680 |
background: var(--bg-inset); border: 1px solid var(--border);
|
| 681 |
+
border-left: 2px solid var(--accent); border-radius: var(--r-md);
|
| 682 |
padding: var(--s-4) var(--s-5);
|
| 683 |
}
|
| 684 |
+
.ans-card h3 { font-family: var(--font-crt); font-size: 19px; font-weight: 400; margin-bottom: var(--s-2); }
|
| 685 |
+
.ans-card p { color: var(--text-secondary); font-family: var(--font-body); font-size: 14px; line-height: 1.6; }
|
| 686 |
.ans-next {
|
| 687 |
display: flex; align-items: center; gap: var(--s-2); margin-top: var(--s-3);
|
| 688 |
+
font-family: var(--font-crt); font-size: 16px; font-weight: 400; color: var(--accent);
|
| 689 |
}
|
| 690 |
+
.ans-next .ic { font-size: 14px; flex: none; }
|
| 691 |
.ans-card.ans-error { border-left-color: var(--no); }
|
| 692 |
.ans-card.ans-error h3 { color: var(--no); }
|
| 693 |
+
.ans-card.ans-error p { color: var(--text-secondary); font-size: 13px; word-break: break-word; }
|
| 694 |
+
.ans-loading { display: flex; align-items: center; gap: var(--s-2); color: var(--text-muted); font-family: var(--font-crt); font-size: 16px; padding: var(--s-2) 0; flex-wrap: wrap; }
|
| 695 |
.ans-cold { font-size: 12px; color: var(--text-muted); opacity: .75; }
|
| 696 |
.tick-note { font-size: 12px; color: var(--text-muted); opacity: .8; }
|
| 697 |
#parse-hint .spinner, .ans-loading .spinner { display: inline-block; vertical-align: -2px; margin-right: 6px; }
|
|
|
|
| 703 |
@keyframes spin { to { transform: rotate(360deg); } }
|
| 704 |
|
| 705 |
/* Footer */
|
| 706 |
+
.foot { text-align: left; color: var(--text-muted); font-family: var(--font-crt); font-size: 16px; margin-top: var(--s-7); padding-top: var(--s-4); border-top: 1px solid var(--border); line-height: 1.55; }
|
| 707 |
+
.foot p { font-family: var(--font-body); font-size: 13px; }
|
| 708 |
.foot b { color: var(--text-secondary); }
|
| 709 |
|
| 710 |
+
/* Reveal animation (kept; subtle) */
|
| 711 |
+
.reveal { animation: reveal .4s cubic-bezier(.22,1,.36,1) both; }
|
| 712 |
+
@keyframes reveal { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
|
| 713 |
|
| 714 |
@media (prefers-reduced-motion: reduce) {
|
| 715 |
*, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
|
| 716 |
+
body::after { display: none; }
|
| 717 |
+
}
|
| 718 |
+
|
| 719 |
+
@media (max-width: 900px) {
|
| 720 |
+
.hero h1 { font-size: 34px; }
|
| 721 |
}
|