wop's picture
Update style.css
4655844 verified
Raw History Blame Contribute Delete
42.9 kB
/* Bench Labs Leaderboard — transferred from Members space style
- Dark space theme, glass cards, starfield background
- Keeps leaderboard functional classes while adopting Members tokens
*/
:root {
--bg-0: #05060a;
--bg-1: #0a0c14;
--ink: #e8ecf5;
--muted: #8b93a8;
--muted-2: #5c6478;
--line: rgba(255,255,255,0.08);
--line-strong: rgba(255,255,255,0.16);
--accent: #7c9cff;
--accent-soft: rgba(124,156,255,0.32);
--accent-2: #a9beff;
--green: #7aff9c;
--gold: #e3b341;
--silver: #b1bac4;
--bronze: #d18b47;
--success: #7aff9c;
--card-bg: rgba(255,255,255,0.02);
--card-bg-hover: rgba(124,156,255,0.06);
--bg-warm: rgba(255,255,255,0.03);
--radius: 16px;
--radius-sm: 12px;
--radius-pill: 999px;
--shadow-sm: 0 1px 0 rgba(255,255,255,0.04) inset, 0 8px 24px rgba(0,0,0,0.35);
--t: 0.25s cubic-bezier(0.4,0,0.2,1);
--score-base: 139,147,168; /* #8b93a8 muted */
--score-best: 122,255,156; /* #7aff9c bright */
color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { background: var(--bg-0); }
body {
font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
color: var(--ink);
font-size: 15px;
line-height: 1.5;
overflow-x: hidden;
-webkit-font-smoothing: antialiased;
scrollbar-width: none; /* Firefox */
-ms-overflow-style: none; /* old Edge/IE */
}
/* WebKit (Chrome/Safari/Edge): hide the page scrollbar entirely while
keeping the page scrollable — width:0 removes it from layout too. */
html::-webkit-scrollbar,
body::-webkit-scrollbar {
width: 0;
height: 0;
display: none;
}
code, pre { font-family: "SF Mono", "Cascadia Code", "Fira Code", Consolas, monospace; }
::selection { background: rgba(124,156,255,0.35); }
/* =========== Space background =========== */
.space-bg {
position: fixed;
inset: 0;
z-index: 0;
background:
radial-gradient(ellipse 80% 50% at 50% -10%, rgba(90,100,180,0.18) 0%, transparent 60%),
radial-gradient(ellipse 60% 40% at 85% 100%, rgba(120,80,180,0.12) 0%, transparent 60%),
linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 100%);
pointer-events: none;
}
.stars {
position: fixed;
inset: 0;
z-index: 0;
pointer-events: none;
display: block;
width: 100%;
height: 100%;
}
@media (prefers-reduced-motion: reduce) {
.stars { opacity: 0.6; }
}
/* =========== Entry animations =========== */
.fade, .anim {
opacity: 0;
animation: fadeIn 0.6s ease both;
}
.d1 { animation-delay: .05s; } .d2 { animation-delay: .12s; }
.d3 { animation-delay: .18s; } .d4 { animation-delay: .24s; }
.d5 { animation-delay: .3s; } .d6 { animation-delay: .36s; } .d7 { animation-delay: .42s; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .fade, .anim { animation: none; opacity: 1; } }
.rotating-headline {
display: inline-block;
transition: opacity 0.4s ease, transform 0.4s ease;
will-change: opacity, transform;
}
.rotating-headline.rolling-out { opacity: 0; transform: translateY(-0.5em); }
.rotating-headline.rolling-in { opacity: 0; transform: translateY(0.5em); }
@media (prefers-reduced-motion: reduce) {
.rotating-headline { transition: opacity 0.3s ease; }
.rotating-headline.rolling-out, .rotating-headline.rolling-in { transform: none; }
}
/* =========== Layout helpers =========== */
.shell { max-width: 1080px; margin: 0 auto; width: 100%; }
a { color: var(--accent); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--accent-2); text-decoration: none; }
/* eyebrow */
.eyebrow {
display: inline-flex; align-items: center; gap: 8px;
font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
color: var(--muted);
}
.eyebrow a { color: var(--muted); }
.eyebrow a:hover { color: var(--ink); }
.eyebrow-sep { color: var(--muted-2); }
/* hero */
.hero h1 {
font-family: 'Newsreader', serif;
font-style: italic;
font-weight: 400;
letter-spacing: -0.02em;
text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}
.subtitle { color: var(--muted); text-shadow: 0 1px 12px rgba(0,0,0,0.45); }
.subtitle strong { color: var(--ink); font-weight: 500; }
/* =========== Controls =========== */
.controls {
display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
margin-bottom: 1rem;
width: 100%;
position: relative;
z-index: 30;
}
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; min-width: 180px; }
.chip {
border: 1px solid var(--line);
background: rgba(255,255,255,0.07);
color: var(--muted);
border-radius: var(--radius-pill);
padding: 6px 16px;
font-size: 0.80rem;
font-weight: 500;
cursor: pointer;
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
box-shadow: 0 2px 10px rgba(0,0,0,0.25);
transition: var(--t);
user-select: none;
letter-spacing: 0.01em;
}
.chip:hover { border-color: var(--line-strong); color: var(--ink); background: rgba(255,255,255,0.1); box-shadow: 0 4px 14px rgba(0,0,0,0.3); }
.chip.active { background: var(--accent); border-color: var(--accent); color: #05060a; font-weight: 600; }
.chip .chip-note {
opacity: 0.7; font-size: 0.68rem; margin-left: 5px;
font-weight: 400; letter-spacing: 0.02em;
border: 1px solid rgba(0,0,0,0.2);
padding: 1px 6px; border-radius: var(--radius-pill);
background: rgba(0,0,0,0.15);
}
.chip.active .chip-note { background: rgba(0,0,0,0.2); border-color: rgba(0,0,0,0.2); color: rgba(0,0,0,0.7); }
.controls-right { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.search-pill {
display: inline-flex; align-items: center; gap: 8px;
background: rgba(255,255,255,0.07);
border: 1px solid var(--line);
border-radius: var(--radius-pill);
padding: 7px 14px;
min-height: 36px;
box-sizing: border-box;
color: var(--muted-2);
backdrop-filter: blur(14px);
-webkit-backdrop-filter: blur(14px);
box-shadow: var(--shadow-sm);
transition: var(--t);
}
.search-pill:hover { border-color: var(--line-strong); background: rgba(255,255,255,0.09); }
.search-pill:focus-within { border-color: var(--accent-soft); box-shadow: 0 0 0 3px rgba(124,156,255,0.12), var(--shadow-sm); background: rgba(255,255,255,0.09); }
.search-pill input {
border: 0; background: transparent; outline: 0; color: var(--ink);
font-size: 0.84rem; line-height: 1; width: 190px; font-family: 'Inter', sans-serif;
}
.search-pill input::placeholder { color: var(--muted-2); }
.sort-pill {
display: inline-flex; align-items: center; gap: 8px;
background: rgba(255,255,255,0.07); border: 1px solid var(--line);
border-radius: var(--radius-pill);
padding: 7px 12px 7px 14px;
min-height: 36px;
box-sizing: border-box;
backdrop-filter: blur(14px);
-webkit-backdrop-filter: blur(14px);
box-shadow: var(--shadow-sm);
transition: var(--t);
position: relative;
}
.sort-pill:hover { border-color: var(--line-strong); background: rgba(255,255,255,0.09); }
.sort-pill:focus-within,
.sort-pill.open {
border-color: var(--accent-soft);
box-shadow: 0 0 0 3px rgba(124,156,255,0.12), var(--shadow-sm);
background: rgba(255,255,255,0.09);
}
.sort-label { font-size: 0.74rem; color: var(--muted-2); font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; }
/* Real select kept in DOM for script.js compatibility (change events / .value),
but visually hidden — the custom trigger+menu below is what renders. */
#sort-select {
position: absolute;
width: 1px; height: 1px;
padding: 0; margin: -1px;
overflow: hidden;
clip: rect(0,0,0,0);
white-space: nowrap;
border: 0;
}
/* Custom trigger button — replaces native <select> control */
.sort-trigger {
display: inline-flex; align-items: center; gap: 8px;
border: 0; background: transparent; padding: 0;
color: var(--ink);
font-size: 0.84rem;
font-weight: 500;
font-family: 'Inter', sans-serif;
line-height: 1;
cursor: pointer;
transition: color var(--t);
}
.sort-trigger:hover, .sort-trigger:focus-visible { color: var(--accent-2); }
.sort-trigger:focus-visible { outline: 0; }
.sort-chevron { color: var(--muted-2); flex-shrink: 0; transition: transform var(--t), color var(--t); }
.sort-pill.open .sort-chevron { transform: rotate(180deg); color: var(--accent); }
.sort-trigger:hover .sort-chevron { color: var(--accent-2); }
/* Custom dropdown menu — fully styled, no native <option> chrome */
.sort-menu {
position: absolute;
top: calc(100% + 8px);
right: 0;
min-width: 148px;
background: rgba(10,12,20,0.96);
border: 1px solid var(--line-strong);
border-radius: var(--radius-sm);
box-shadow: 0 1px 0 rgba(255,255,255,0.04) inset, 0 16px 36px rgba(0,0,0,0.55);
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
list-style: none;
padding: 6px;
margin: 0;
z-index: 9999;
opacity: 0;
transform: translateY(-4px);
pointer-events: none;
transition: opacity 0.15s ease, transform 0.15s ease;
}
.sort-menu:not([hidden]).show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.sort-menu li {
padding: 7px 10px;
border-radius: 7px;
font-size: 0.84rem;
color: var(--muted);
cursor: pointer;
transition: background var(--t), color var(--t);
white-space: nowrap;
}
.sort-menu li:hover,
.sort-menu li.active {
background: rgba(124,156,255,0.12);
color: var(--ink);
}
.sort-menu li.selected {
color: var(--accent-2);
font-weight: 600;
}
.sort-menu li.selected::after {
content: '✓';
float: right;
margin-left: 10px;
color: var(--accent);
font-weight: 700;
}
/* =========== Table =========== */
.table-card {
background: rgba(255,255,255,0.07);
border: 1px solid var(--line);
border-radius: var(--radius);
box-shadow: var(--shadow-sm);
overflow: hidden;
backdrop-filter: blur(16px);
-webkit-backdrop-filter: blur(16px);
width: 100%;
}
.table-scroll { overflow: auto; max-height: 72vh; -webkit-overflow-scrolling: touch; }
.table-scroll::-webkit-scrollbar { height: 6px; width: 6px; }
.table-scroll::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: var(--radius-pill); }
.table-scroll::-webkit-scrollbar-track { background: transparent; }
table { border-collapse: collapse; width: 100%; }
thead { position: sticky; top: 0; z-index: 2; }
th {
background: rgba(255,255,255,0.09);
backdrop-filter: blur(16px);
-webkit-backdrop-filter: blur(16px);
text-align: left; font-size: 10px;
text-transform: uppercase; letter-spacing: 0.10em; font-weight: 500;
color: var(--muted); padding: 11px 12px;
border-bottom: 1px solid var(--line);
white-space: nowrap;
}
th.num, td.num { text-align: right; font-variant-numeric: tabular-nums; }
td {
padding: 10px 12px; font-size: 0.86rem;
border-bottom: 1px solid var(--line);
white-space: nowrap;
color: var(--ink);
}
tbody tr.model-row { cursor: pointer; transition: background var(--t); }
tbody tr.model-row:hover { background: rgba(255,255,255,0.03); }
tr:last-child td { border-bottom: 0; }
.rank { color: var(--muted-2); font-variant-numeric: tabular-nums; font-size: 0.84rem; }
.rank-1 { color: var(--gold); font-weight: 700; }
.rank-2 { color: var(--silver); font-weight: 700; }
.rank-3 { color: var(--bronze); font-weight: 700; }
.model-cell { max-width: 340px; overflow: hidden; text-overflow: ellipsis; }
.model-cell a { color: var(--ink); font-weight: 600; letter-spacing: -0.01em; }
.model-cell a:hover { color: var(--accent); }
.org-tag {
display: inline-flex; align-items: center; gap: 5px;
border-radius: var(--radius-pill); padding: 2px 10px; font-size: 11px; font-weight: 500;
letter-spacing: 0.01em;
}
.org-tag .dot { width: 6px; height: 6px; border-radius: 50%; }
td.score { font-variant-numeric: tabular-nums; font-weight: 500; }
td.score.best { font-weight: 700; color: var(--green); }
td.score .na { color: var(--muted-2); font-style: italic; font-size: 0.78rem; }
.expand-hint { color: var(--muted-2); font-size: 0.7rem; transition: transform var(--t); display: inline-block; }
tr.open .expand-hint { transform: rotate(90deg); color: var(--accent); }
/* expanded detail row */
tr.detail-row td { background: rgba(255,255,255,0.07); padding: 16px 18px; white-space: normal; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.detail-block h4 {
font-size: 10px; text-transform: uppercase; letter-spacing: 0.10em;
color: var(--muted); margin-bottom: 8px; font-weight: 600;
}
.mode-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mode-chip {
border: 1px solid var(--line); border-radius: 8px;
padding: 4px 10px; font-size: 0.76rem; color: var(--muted);
font-variant-numeric: tabular-nums; background: rgba(255,255,255,0.07);
box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.mode-chip b { color: var(--ink); font-weight: 600; }
.cat-table { width: 100%; font-size: 0.78rem; border-collapse: collapse; margin-top: 6px; }
.cat-table td { padding: 3px 6px; border: 0; font-size: 0.78rem; }
.cat-table td:last-child { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }
.cat-bar { height: 4px; border-radius: var(--radius-pill); background: rgba(255,255,255,0.08); overflow: hidden; margin-top: 3px; }
.cat-bar i { display: block; height: 100%; background: var(--green); border-radius: var(--radius-pill); }
/* =========== Mobile cards =========== */
#model-cards { display: none; }
.m-card { padding: 1rem 1.15rem; border-bottom: 1px solid var(--line); transition: background var(--t); }
.m-card:hover { background: rgba(255,255,255,0.02); }
.m-card:last-child { border-bottom: 0; }
.m-card-top { display: flex; align-items: baseline; gap: 9px; }
.m-card-top .rank { font-size: 0.8rem; }
.m-card-top a { color: var(--ink); font-weight: 600; font-size: 0.96rem; letter-spacing: -0.01em; }
.m-card-meta { display: flex; flex-wrap: wrap; gap: 7px; margin: 6px 0 10px; align-items: center; }
.m-card-meta .params { color: var(--muted-2); font-size: 0.76rem; font-variant-numeric: tabular-nums; }
.m-scores { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 7px; }
.m-score { background: rgba(255,255,255,0.07); border: 1px solid var(--line); border-radius: 10px; padding: 6px 9px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.m-score .k { font-size: 9px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted-2); font-weight: 500; margin-bottom: 2px; }
.m-score .v { font-size: 0.92rem; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink); }
/* =========== Empty / howto / footer =========== */
#empty-state { padding: 3rem 1.5rem; text-align: center; }
.empty-title { font-weight: 600; color: var(--ink); font-size: 1rem; }
.empty-sub { color: var(--muted); font-size: 0.86rem; margin-top: 0.5rem; line-height: 1.6; max-width: 46ch; margin-left: auto; margin-right: auto; }
.empty-sub code { background: rgba(255,255,255,0.06); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; font-size: 0.82em; }
.linklike {
border: 0; background: transparent; color: var(--accent); cursor: pointer;
font: inherit; padding: 0; font-weight: 500;
}
.linklike:hover { color: var(--accent-2); text-decoration: underline; }
.howto { margin-top: 1.25rem; width: 100%; }
.howto details {
background: rgba(255,255,255,0.07); border: 1px solid var(--line);
border-radius: 12px; padding: 0.85rem 1.15rem;
backdrop-filter: blur(14px);
-webkit-backdrop-filter: blur(14px);
box-shadow: var(--shadow-sm);
transition: border-color var(--t), background var(--t), box-shadow var(--t);
}
.howto details:hover { border-color: var(--line-strong); background: rgba(255,255,255,0.09); }
.howto summary { cursor: pointer; font-size: 0.88rem; color: var(--muted); font-weight: 500; list-style: none; display: flex; align-items: center; gap: 8px; }
.howto summary::-webkit-details-marker { display: none; }
.howto summary::before { content: '›'; display: inline-block; transition: transform var(--t); color: var(--muted-2); }
.howto details[open] summary::before { transform: rotate(90deg); }
/* Smooth expand/collapse — JS drives max-height + opacity since <details>
itself can't transition display:none <-> block. */
.howto-content {
max-height: 0;
opacity: 0;
overflow: hidden;
transition: max-height 0.32s cubic-bezier(0.4,0,0.2,1), opacity 0.24s ease;
}
.howto details[open] .howto-content { opacity: 1; }
.howto-content-inner { padding-top: 0.2rem; }
.howto p { font-size: 0.84rem; color: var(--muted); margin: 0.7rem 0 0.5rem; line-height: 1.6; }
.howto pre {
background: rgba(0,0,0,0.35); border: 1px solid var(--line);
border-radius: 10px; padding: 0.85rem 1rem; overflow-x: auto;
font-size: 0.78rem; line-height: 1.6; color: var(--muted);
}
.howto code { color: var(--ink); }
@media (prefers-reduced-motion: reduce) {
.howto-content { transition: none; }
}
.foot {
margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid var(--line);
text-align: center; color: var(--muted-2); font-size: 0.78rem;
width: 100%;
display: flex; flex-direction: column; gap: 6px; align-items: center;
}
.foot a { color: var(--muted); }
.foot a:hover { color: var(--ink); }
/* section divider from Members */
.section-divider {
display: flex; align-items: center; gap: 14px; width: 100%; max-width: 42rem;
}
.section-divider .line {
flex: 1; height: 1px;
background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}
/* =========== Breakpoints =========== */
@media (max-width: 768px) {
.shell { padding: 1.2rem 1rem 2rem; }
.hero h1 { font-size: 2rem !important; }
.search-pill input { width: 130px; }
}
@media (max-width: 640px) {
.table-scroll { display: none; }
#model-cards { display: block; }
.controls-right { width: 100%; }
.search-pill { flex: 1; }
.search-pill input { width: 100%; }
}
/* ============================================================
ADDITIONS ONLY — append this block to the end of style.css.
No existing rules are modified. Uses existing design tokens
(--ink, --muted, --line, --green, --accent, --card-bg, etc.)
so it matches the current look exactly.
============================================================ */
/* ---- Capability radar (replaces the old cat-table sliders) ---- */
.capability-panel {
display: flex; flex-wrap: wrap; gap: 20px; align-items: center;
background: rgba(255,255,255,0.07);
border: 1px solid var(--line);
border-radius: var(--radius-sm);
padding: 16px;
backdrop-filter: blur(14px);
-webkit-backdrop-filter: blur(14px);
box-shadow: var(--shadow-sm);
}
.radar-wrap { flex: 0 0 auto; }
.radar-svg {
width: 220px;
height: 220px;
display: block;
overflow: visible;
padding-left: 50px;
padding-right: 50px;
scale: 1.2;
}
.radar-ring {
fill: none; stroke: var(--line); stroke-width: 1;
}
.radar-spoke { stroke: var(--line); stroke-width: 1; }
.radar-fill {
fill: rgba(122, 255, 156, 0.18);
stroke: var(--green);
stroke-width: 1.5;
stroke-linejoin: round;
}
.radar-label {
fill: var(--ink);
font-size: 7.5px;
font-weight: 600;
font-family: 'Inter', sans-serif;
letter-spacing: 0.02em;
text-transform: capitalize;
paint-order: stroke;
stroke: rgba(5,6,10,0.5);
stroke-width: 2px;
stroke-linecap: round;
stroke-linejoin: round;
}
.radar-empty { color: var(--muted-2); font-size: 0.82rem; font-style: italic; }
.tier-strip {
flex: 1 1 220px; min-width: 200px;
display: flex; flex-direction: column; gap: 6px;
}
.tier-row {
display: grid; grid-template-columns: 84px 1fr 46px;
align-items: center; gap: 8px;
}
.tier-name {
font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em;
color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tier-bar {
height: 5px; border-radius: var(--radius-pill);
background: rgba(255,255,255,0.08); overflow: hidden;
}
.tier-bar i {
display: block; height: 100%; background: var(--green); border-radius: var(--radius-pill);
}
.tier-val {
font-size: 0.78rem; text-align: right; color: var(--muted);
font-variant-numeric: tabular-nums;
}
/* ---- Text-to-image mini leaderboard ---- */
.section-heading {
display: flex; align-items: baseline; gap: 10px; margin-bottom: 0.75rem;
}
.section-heading h2 {
font-family: 'Newsreader', serif; font-style: italic; font-weight: 400;
font-size: 1.3rem; color: var(--ink); letter-spacing: -0.01em;
}
.section-heading .section-note { font-size: 0.78rem; color: var(--muted-2); }
#t2i-section { margin-top: 2rem; width: 100%; }
#t2i-empty {
padding: 1.6rem; text-align: center; color: var(--muted); font-size: 0.86rem;
}
#t2i-table td.res {
font-size: 0.78rem; color: var(--muted-2); white-space: nowrap;
}
.flag-dot {
font-size: 0.72rem; cursor: help; opacity: 0.75;
}
/* ---- Mobile fixes ----
The base stylesheet only ever wired up #model-cards for the <640px
breakpoint; #t2i-cards didn't exist yet, so on mobile the T2I table
(display:none below 640px) had no replacement and the whole section
effectively vanished. This makes #t2i-cards behave the same way
#model-cards already does, and makes both card lists tappable so rows
stay openable on mobile instead of only working with mouse hover/click
on the desktop table. */
#t2i-cards { display: none; }
#ext-cards { display: none; }
@media (max-width: 640px) {
#t2i-cards { display: block; }
#ext-cards { display: block; }
}
.m-card, .t2i-m-card {
cursor: pointer;
position: relative;
}
.m-card:active, .t2i-m-card:active {
background: rgba(255,255,255,0.04);
}
.m-card .m-card-top, .t2i-m-card .m-card-top {
display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.m-card .expand-hint, .t2i-m-card .expand-hint {
color: var(--muted-2); font-size: 0.7rem; transition: transform var(--t);
flex-shrink: 0;
}
.m-card.open .expand-hint, .t2i-m-card.open .expand-hint {
transform: rotate(90deg); color: var(--accent);
}
.m-card-detail, .t2i-m-card-detail {
margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line);
}
.t2i-m-card {
padding: 1rem 1.15rem; border-bottom: 1px solid var(--line); transition: background var(--t);
}
.t2i-m-card:last-child { border-bottom: 0; }
.t2i-m-card-top a { color: var(--ink); font-weight: 600; font-size: 0.96rem; letter-spacing: -0.01em; }
.t2i-m-card-meta { display: flex; flex-wrap: wrap; gap: 7px; margin: 6px 0 10px; align-items: center; }
.t2i-m-card-meta .params, .t2i-m-card-meta .res, .t2i-m-card-meta .date {
color: var(--muted-2); font-size: 0.76rem; font-variant-numeric: tabular-nums;
}
.t2i-m-scores { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 7px; }
.t2i-m-score { background: rgba(255,255,255,0.07); border: 1px solid var(--line); border-radius: 10px; padding: 6px 9px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.t2i-m-score .k { font-size: 9px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted-2); font-weight: 500; margin-bottom: 2px; }
.t2i-m-score .v { font-size: 0.92rem; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink); }
.t2i-m-score .v.best { color: var(--green); }
/* Composite-score column */
td.score.composite, .m-score.composite .v, .t2i-m-score.composite .v {
color: var(--accent-2);
}
/* External benchmarks section */
#external-section { margin-top: 2rem; width: 100%; }
#ext-empty {
padding: 1.6rem; text-align: center; color: var(--muted); font-size: 0.86rem;
}
#ext-cards { display: none; }
@media (max-width: 640px) {
#ext-cards { display: block; }
}
/* Charts row */
.chart-row {
display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 1rem; width: 100%;
}
@media (max-width: 768px) {
.chart-row { grid-template-columns: 1fr; }
}
.chart-card {
background: rgba(255,255,255,0.07);
border: 1px solid var(--line);
border-radius: var(--radius);
box-shadow: var(--shadow-sm);
overflow: hidden;
backdrop-filter: blur(16px);
-webkit-backdrop-filter: blur(16px);
}
.chart-title {
font-size: 10px; text-transform: uppercase; letter-spacing: 0.10em;
font-weight: 600; color: var(--muted);
padding: 12px 14px 4px; margin: 0;
}
.chart-body { padding: 4px 8px 8px; }
.chart-svg { width: 100%; height: auto; display: block; }
/* ==========================================================================
SWISS / INTERNATIONAL TYPOGRAPHIC STYLE — Benchmark Leaderboard
Appended after the "ADDITIONS ONLY" block. Nothing above is deleted: the
base stylesheet still owns layout and structure, this re-keys the tokens
and restyles the dashboard's own components.
Mapped from the blog restyle:
· one grotesk (Inter) for everything — the Newsreader italic goes
· square corners (--radius* -> 0), no shadow, no blur, no gradient
· hairline rules carry the structure that glass cards used to
· ONE accent (Swiss red) for UI; data marks go neutral light
· dark theme kept, lifted: #05060a -> #1b1c1e (neutral grey)
Two deliberate calls, both reversible in :root below:
1. Data marks (bars, radar, "best" scores) were lime #7aff9c. They are
now ink — in a table of 40 numbers, one more colour is noise. Rank
medals likewise: #1 red, #2 ink, #3 muted.
2. Score ramp --score-base -> --score-best is read by script.js
(scoreColor()), which writes inline colours — so re-keying those two
tokens re-keys every score in the board, and the column max comes out
as the brightest number (monochrome ramp, no second hue).
========================================================================== */
:root {
/* value scale — neutral grey, no blue cast */
--bg-0: #1b1c1e;
--bg-1: #212227;
/* type colours */
--ink: #f4f5f7;
--muted: #8d929b;
--muted-2: #6a6f78;
/* hairlines */
--line: rgba(255, 255, 255, 0.11);
--line-strong: rgba(255, 255, 255, 0.28);
/* ONE accent (Swiss red). Swap these three to re-key the whole identity. */
--accent: #ff3b30;
--accent-2: #ff6a60;
--accent-soft: rgba(255, 59, 48, 0.55);
/* data marks: was lime. Now ink, so the table reads as numbers + one accent. */
--green: var(--ink);
--success: var(--ink);
/* rank hierarchy without the medal palette */
--gold: var(--accent);
--silver: var(--ink);
--bronze: var(--muted);
/* surfaces */
--card-bg: var(--bg-0);
--card-bg-hover: var(--bg-1);
--bg-warm: var(--bg-1);
/* geometry: square, flat, no elevation */
--radius: 0px;
--radius-sm: 0px;
--radius-pill: 0px;
--shadow-sm: none;
--t: 140ms ease;
/* score ramp — read by script.js for every score colour on the board */
--score-base: 141, 147, 158; /* muted grey */
--score-best: 244, 245, 247; /* ink */
/* the grid: page frame + 12 columns, used by the guides below */
--pad: 24px;
--grid-max: 1024px;
}
/* -------------------- BACKGROUND -------------------- */
/* Flat field. The starfield canvas keeps its box (script.js sizes against it)
but stops being drawn; the 12-column guides take its place. */
.space-bg {
background: linear-gradient(180deg, #17181a 0%, var(--bg-0) 34%, #202124 100%);
}
.space-bg::after {
content: '';
position: absolute;
top: 0;
bottom: 0;
left: max(var(--pad), calc((100% - var(--grid-max)) / 2));
right: max(var(--pad), calc((100% - var(--grid-max)) / 2));
background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
background-size: calc(100% / 12) 100%;
-webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.25) 45%, transparent 78%);
mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.25) 45%, transparent 78%);
pointer-events: none;
}
.stars { visibility: hidden; }
/* -------------------- MOTION -------------------- */
/* Entrances settle instantly; the headline rotator still swaps words, it just
snaps instead of rolling. */
.fade, .anim {
opacity: 1;
animation: none;
}
.rotating-headline { transition: none; }
.rotating-headline.rolling-out,
.rotating-headline.rolling-in { transform: none; }
/* -------------------- TYPOGRAPHY -------------------- */
.hero h1 {
font-family: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
font-style: normal;
font-weight: 700;
letter-spacing: -0.035em;
color: var(--ink);
text-shadow: none;
}
.subtitle {
color: var(--muted);
font-weight: 400;
text-shadow: none;
}
.subtitle strong { color: var(--ink); }
.eyebrow {
font-size: 0.7rem;
font-weight: 600;
letter-spacing: 0.16em;
color: var(--muted-2);
}
.eyebrow a { color: var(--accent); }
.eyebrow a:hover { color: var(--accent-2); }
.eyebrow-sep { color: var(--muted-2); }
/* Section headings: same treatment as the hero, rule above, no serif. */
.section-heading {
align-items: center;
padding-bottom: 10px;
border-bottom: 1px solid var(--line-strong);
margin-bottom: 0.9rem;
}
.section-heading h2 {
font-family: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
font-style: normal;
font-weight: 700;
font-size: 1.05rem;
letter-spacing: -0.02em;
color: var(--ink);
}
.section-heading .section-note {
font-size: 0.7rem;
color: var(--muted-2);
letter-spacing: 0.02em;
}
a { color: var(--accent); }
a:hover { color: var(--accent-2); }
/* -------------------- CONTROLS -------------------- */
.chip {
background: transparent;
border: 1px solid var(--line);
border-radius: 0;
color: var(--text, var(--muted));
font-size: 0.78rem;
font-weight: 500;
letter-spacing: 0.02em;
padding: 7px 14px;
backdrop-filter: none;
-webkit-backdrop-filter: none;
box-shadow: none;
}
.chip:hover {
border-color: var(--line-strong);
color: var(--ink);
background: rgba(255, 255, 255, 0.04);
box-shadow: none;
}
.chip.active {
background: var(--accent);
border-color: var(--accent);
color: #ffffff;
font-weight: 600;
}
.chip .chip-note {
border: 0;
background: transparent;
color: inherit;
opacity: 0.7;
font-size: 0.68rem;
padding: 0;
margin-left: 6px;
letter-spacing: 0.04em;
font-variant-numeric: tabular-nums;
}
.chip.active .chip-note {
background: transparent;
border-color: transparent;
color: inherit;
opacity: 0.85;
}
.search-pill,
.sort-pill {
background: var(--bg-1);
border: 1px solid var(--line);
border-radius: 0;
box-shadow: none;
backdrop-filter: none;
-webkit-backdrop-filter: none;
}
.search-pill:hover,
.sort-pill:hover {
border-color: var(--line-strong);
background: var(--bg-1);
}
.search-pill:focus-within,
.sort-pill:focus-within,
.sort-pill.open {
border-color: var(--accent);
background: var(--bg-1);
box-shadow: none;
}
.search-pill input { color: var(--ink); }
.search-pill input::placeholder { color: var(--muted-2); }
.sort-label {
font-size: 0.68rem;
font-weight: 600;
letter-spacing: 0.16em;
color: var(--muted-2);
}
.sort-trigger { color: var(--ink); font-weight: 500; }
.sort-trigger:hover,
.sort-trigger:focus-visible { color: var(--accent); }
.sort-chevron { color: var(--muted-2); }
.sort-pill.open .sort-chevron { color: var(--accent); }
.sort-trigger:hover .sort-chevron { color: var(--accent); }
.sort-menu {
background: var(--bg-1);
border: 1px solid var(--line-strong);
border-radius: 0;
box-shadow: none;
backdrop-filter: none;
-webkit-backdrop-filter: none;
padding: 6px;
transition: opacity 0.12s ease;
transform: none;
}
.sort-menu:not([hidden]).show { transform: none; }
.sort-menu li {
border-radius: 0;
color: var(--muted);
font-size: 0.82rem;
}
.sort-menu li:hover,
.sort-menu li.active {
background: rgba(255, 59, 48, 0.12);
color: var(--ink);
}
.sort-menu li.selected { color: var(--accent); }
.sort-menu li.selected::after { color: var(--accent); }
/* -------------------- TABLE -------------------- */
.table-card {
background: var(--bg-0);
border: 1px solid var(--line);
border-radius: 0;
box-shadow: none;
backdrop-filter: none;
-webkit-backdrop-filter: none;
}
.table-scroll::-webkit-scrollbar-thumb {
background: rgba(255, 255, 255, 0.22);
border-radius: 0;
}
th {
background: var(--bg-1);
backdrop-filter: none;
-webkit-backdrop-filter: none;
border-bottom: 1px solid var(--line-strong);
color: var(--muted-2);
font-size: 0.68rem;
font-weight: 600;
letter-spacing: 0.16em;
padding: 11px 14px;
}
td {
border-bottom: 1px solid var(--line);
padding: 10px 14px;
color: var(--ink);
}
tbody tr.model-row { transition: background var(--t); }
tbody tr.model-row:hover { background: var(--bg-1); }
tr.open td { background: var(--bg-1); }
.rank {
color: var(--muted-2);
font-size: 0.8rem;
font-weight: 600;
}
.rank-1 { color: var(--accent); font-weight: 700; }
.rank-2 { color: var(--ink); font-weight: 700; }
.rank-3 { color: var(--muted); font-weight: 700; }
.model-cell a { color: var(--ink); font-weight: 600; }
.model-cell a:hover { color: var(--accent); }
/* script.js writes orgTag() colours as inline styles (a 7-hue hash), which no
stylesheet can override without !important. In a Swiss table those seven
hues are the loudest thing on the board, so the tag is keyed to read as a
quiet label: the hash still shows through as a small square — a data mark,
not a colour scheme — and the text stays ink. */
.org-tag {
border-radius: 0 !important;
font-size: 0.68rem;
font-weight: 600;
letter-spacing: 0.06em;
text-transform: uppercase;
padding: 2px 8px;
background: transparent !important;
border-color: var(--line) !important;
color: var(--ink) !important;
}
.org-tag .dot {
width: 6px;
height: 6px;
border-radius: 0;
opacity: 0.9;
}
td.score { font-weight: 500; }
/* Best value per column.
Two mechanisms meet here: the main table gets *inline* ramp colours from
script.js (scoreColor() interpolates --score-base -> --score-best, so the
column max is already the brightest number and can't be re-coloured from
CSS), while the text-to-image table colours by class. Both therefore land
on the same rule: best = ink, the top of the ramp. Weight adds a second,
greyscale-safe channel — one loudest number per column, no extra hue. */
td.score.best,
td.score.best.composite {
color: var(--ink);
font-weight: 700;
}
.m-score .v.best,
.t2i-m-score .v.best,
.m-score.composite .v.best,
.t2i-m-score.composite .v.best {
color: var(--ink);
font-weight: 700;
}
td.score .na { color: var(--muted-2); font-style: normal; }
.expand-hint { color: var(--muted-2); transition: none; }
tr.open .expand-hint { transform: none; color: var(--accent); }
/* -------------------- EXPANDED DETAIL ROW -------------------- */
tr.detail-row td {
background: var(--bg-1);
border-bottom: 1px solid var(--line-strong);
padding: 18px;
backdrop-filter: none;
-webkit-backdrop-filter: none;
}
.detail-block h4 {
color: var(--muted-2);
font-size: 0.68rem;
font-weight: 600;
letter-spacing: 0.16em;
}
.mode-chip {
border: 1px solid var(--line);
border-radius: 0;
background: transparent;
box-shadow: none;
color: var(--muted);
font-size: 0.74rem;
}
.mode-chip b { color: var(--ink); }
.cat-table td { font-size: 0.76rem; }
.cat-bar,
.tier-bar {
border-radius: 0;
background: rgba(255, 255, 255, 0.09);
}
.cat-bar i,
.tier-bar i {
border-radius: 0;
background: var(--ink);
}
/* -------------------- MOBILE CARDS -------------------- */
.m-card {
border-bottom: 1px solid var(--line);
transition: none;
}
.m-card:hover { background: var(--bg-1); }
.m-card:active,
.t2i-m-card:active { background: var(--bg-1); }
.m-card-top a,
.t2i-m-card-top a { color: var(--ink); font-weight: 600; }
.m-card-meta .params,
.t2i-m-card-meta .params,
.t2i-m-card-meta .res,
.t2i-m-card-meta .date { color: var(--muted-2); }
.m-score,
.t2i-m-score {
background: transparent;
border: 1px solid var(--line);
border-radius: 0;
backdrop-filter: none;
-webkit-backdrop-filter: none;
}
.m-score .k,
.t2i-m-score .k {
color: var(--muted-2);
font-size: 0.6rem;
font-weight: 600;
letter-spacing: 0.16em;
}
.m-score .v,
.t2i-m-score .v { color: var(--ink); }
.m-card .expand-hint,
.t2i-m-card .expand-hint { color: var(--muted-2); transition: none; }
.m-card.open .expand-hint,
.t2i-m-card.open .expand-hint { transform: none; color: var(--accent); }
.m-card-detail,
.t2i-m-card-detail { border-top: 1px solid var(--line); }
.t2i-m-card { border-bottom: 1px solid var(--line); transition: none; }
/* Composite score column. The base layer tinted it --accent-2 (a second blue)
to mark it as the headline metric. Rather than spend the single accent on a
whole column, the headline column gets *weight* — and the accent stays for
the best value, so the two signals don't collapse into one red. */
td.score.composite { color: var(--ink); font-weight: 600; }
.m-score.composite .v,
.t2i-m-score.composite .v { color: var(--ink); font-weight: 600; }
/* (best-value and headline-column rules live with td.score, above) */
/* -------------------- CAPABILITY PANEL / RADAR / TIERS -------------------- */
.capability-panel {
background: var(--bg-0);
border: 1px solid var(--line);
border-radius: 0;
backdrop-filter: none;
-webkit-backdrop-filter: none;
box-shadow: none;
padding: 18px;
}
.radar-ring { stroke: var(--line); }
.radar-spoke { stroke: var(--line); }
.radar-fill {
fill: rgba(244, 245, 247, 0.10);
stroke: var(--ink);
stroke-width: 1.5;
}
.radar-label {
fill: var(--ink);
font-family: Inter, sans-serif;
font-size: 7.5px;
font-weight: 600;
letter-spacing: 0.04em;
stroke: var(--bg-0);
stroke-width: 2px;
}
.radar-empty { color: var(--muted); font-style: normal; font-size: 0.8rem; }
.tier-name {
font-size: 0.62rem;
font-weight: 600;
letter-spacing: 0.16em;
color: var(--muted-2);
}
.tier-val { color: var(--muted); font-size: 0.76rem; }
/* -------------------- CHARTS -------------------- */
/* script.js builds both charts from var()s, so the tokens above already
re-key the bars, dots, axes and labels. Only the chrome needs a pass. */
.chart-card {
background: var(--bg-0);
border: 1px solid var(--line);
border-radius: 0;
box-shadow: none;
backdrop-filter: none;
-webkit-backdrop-filter: none;
}
.chart-title {
color: var(--muted-2);
font-size: 0.68rem;
font-weight: 600;
letter-spacing: 0.16em;
padding: 14px 14px 6px;
}
.chart-body { padding: 4px 10px 10px; }
/* -------------------- CHART MARKS -------------------- */
/* script.js emits an internal <style> inside each SVG setting `.bar-fill` to
--accent and `.bar-fill.best` to --green. Left alone that would paint every
bar Swiss red and the leader white — the opposite of the hierarchy. Two
class selectors beat the SVG's single-class rule, so: data goes neutral,
the accent marks the one leader, and the regression line is annotation
grey rather than a second highlight. */
.chart-svg .bar-fill { fill: var(--ink); }
.chart-svg .bar-fill.best { fill: var(--accent); }
.chart-svg .bar-text { fill: var(--muted); font-family: Inter, sans-serif; }
.chart-svg .scat-dot { fill: var(--ink); }
.chart-svg .scat-line { stroke: var(--muted-2); }
.chart-svg .scat-label,
.chart-svg .scat-title { fill: var(--muted-2); font-family: Inter, sans-serif; }
/* -------------------- HOWTO / EMPTY / FOOTER -------------------- */
#empty-state { text-align: left; padding: 2.4rem 0; }
.empty-title { color: var(--ink); font-weight: 600; }
.empty-sub { color: var(--muted); margin-left: 0; margin-right: 0; }
.empty-sub code,
.howto code {
background: rgba(255, 255, 255, 0.06);
border: 1px solid var(--line);
border-radius: 0;
padding: 1px 6px;
}
#t2i-empty,
#ext-empty { color: var(--muted); font-size: 0.84rem; }
.linklike { color: var(--accent); }
.linklike:hover { color: var(--accent-2); text-decoration: underline; }
.howto details {
background: var(--bg-0);
border: 1px solid var(--line);
border-radius: 0;
backdrop-filter: none;
-webkit-backdrop-filter: none;
box-shadow: none;
transition: border-color var(--t);
}
.howto details:hover {
border-color: var(--line-strong);
background: var(--bg-0);
}
.howto summary {
color: var(--ink);
font-size: 0.85rem;
font-weight: 500;
}
/* square marker instead of the '›' caret */
.howto summary::before {
content: '';
width: 8px;
height: 8px;
border: 1px solid var(--accent);
box-sizing: border-box;
transition: background var(--t);
flex-shrink: 0;
}
.howto details[open] summary::before {
transform: none;
background: var(--accent);
}
.howto-content { transition: none; }
.howto details[open] .howto-content { opacity: 1; }
.howto p { color: var(--muted); }
.howto pre {
background: #141517;
border: 1px solid var(--line);
border-radius: 0;
color: var(--text, var(--muted));
}
.foot {
border-top: 1px solid var(--line);
color: var(--muted-2);
font-size: 0.68rem;
font-weight: 600;
letter-spacing: 0.16em;
text-transform: uppercase;
}
.foot a { color: var(--muted); }
.foot a:hover { color: var(--accent); }
/* Rule, not a glow. */
.section-divider .line {
height: 1px;
background: var(--line-strong);
}
/* -------------------- LITERAL-COLOUR OVERRIDES -------------------- */
/* Values hardcoded in the base layer that the token swap can't reach. */
.search-pill:focus-within,
.sort-pill:focus-within,
.sort-pill.open {
box-shadow: none;
}
.sort-menu li:hover,
.sort-menu li.active {
background: rgba(255, 59, 48, 0.12);
}
/* The Tailwind CDN class on <body> (selection:bg-[rgba(124,156,255,0.35)])
out-specifies a bare ::selection, so this one needs the flag. */
::selection {
background: rgba(255, 59, 48, 0.34) !important;
color: #ffffff !important;
}
/* -------------------- BREAKPOINTS -------------------- */
@media (max-width: 768px) {
:root { --pad: 16px; }
.section-heading { align-items: baseline; }
}
@media (max-width: 640px) {
.table-card { border-left: 0; border-right: 0; }
.m-card { padding: 1rem 0; }
.t2i-m-card { padding: 1rem 0; }
.chip { padding: 7px 12px; }
}