/* bug.lat — dark, Apple-style personal site. No framework, no build step. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #000;
  --bg-elev: #0a0a0b;
  --card: #161617;
  --card-hi: #1d1d1f;
  --line: rgba(255, 255, 255, 0.09);
  --text: #f5f5f7;
  --muted: #86868b;
  --muted-hi: #a1a1a6;
  --blue: #2997ff;
  --blue-btn: #0071e3;
  --radius: 28px;
  --radius-sm: 18px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --wrap: 1040px;
  --nav-h: 52px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI Variable Display", "Segoe UI", system-ui, Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.012em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
::selection { background: rgba(41, 151, 255, 0.35); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(var(--wrap), 100% - 44px); margin-inline: auto; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--nav-h);
  background: rgba(22, 22, 23, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 26px; height: 26px; border-radius: 50%; }
.nav-links { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: rgba(245, 245, 247, 0.8); font-size: 13px; transition: color 0.2s; }
.nav-links a:hover { color: #fff; text-decoration: none; }
.nav-links a[aria-current="page"] { color: #fff; }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); width: 40px; height: 40px; margin-right: -10px; cursor: pointer; }
.nav-toggle span { display: block; width: 17px; height: 1.5px; background: currentColor; margin: 5px auto; transition: transform 0.3s var(--ease), opacity 0.2s; }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; gap: 0; padding: 8px 22px 22px;
    background: rgba(10, 10, 11, 0.96);
    -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  }
  .nav-links a { display: block; padding: 14px 0; font-size: 17px; border-bottom: 1px solid var(--line); }
  .nav.open .nav-links { opacity: 1; transform: none; pointer-events: auto; }
  .nav.open .nav-toggle span:first-child { transform: translateY(3.25px) rotate(45deg); }
  .nav.open .nav-toggle span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
}

main { padding-top: var(--nav-h); }

/* ---------- Type ---------- */
.eyebrow { color: var(--muted-hi); font-size: 17px; font-weight: 600; letter-spacing: 0; margin: 0 0 10px; }
.display {
  font-size: clamp(44px, 8vw, 92px);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -0.035em;
  margin: 0;
}
.headline { font-size: clamp(34px, 5.2vw, 56px); line-height: 1.07; font-weight: 700; letter-spacing: -0.03em; margin: 0 0 14px; }
.title { font-size: clamp(24px, 3vw, 32px); line-height: 1.12; font-weight: 600; letter-spacing: -0.022em; margin: 0 0 8px; }
.lead { font-size: clamp(19px, 2.3vw, 24px); line-height: 1.35; color: var(--muted-hi); font-weight: 500; letter-spacing: -0.015em; margin: 18px 0 0; }
.muted { color: var(--muted); }
.grad { background: linear-gradient(180deg, #fff 20%, #9a9aa0 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad-blue { background: linear-gradient(90deg, #2997ff, #a56bff 60%, #ff6bb5); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad-green { background: linear-gradient(90deg, #30d158, #64d2ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad-amber { background: linear-gradient(90deg, #ffd60a, #ff9f0a 55%, #ff453a); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Buttons & links ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; justify-content: center; margin-top: 34px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 980px;
  background: var(--blue-btn); color: #fff; font-size: 17px; font-weight: 500;
  border: 0; cursor: pointer; font-family: inherit;
  transition: background 0.2s, transform 0.2s var(--ease);
}
.btn:hover { background: #0077ed; text-decoration: none; }
.btn:active { transform: scale(0.97); }
.btn.ghost { background: transparent; color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.btn.ghost:hover { background: rgba(41, 151, 255, 0.1); }
.btn.sm { padding: 7px 16px; font-size: 14px; }
.more { font-size: 17px; white-space: nowrap; }
.more::after { content: " \203A"; font-size: 1.15em; }

/* ---------- Hero ---------- */
.hero { position: relative; text-align: center; padding: clamp(80px, 13vh, 150px) 0 clamp(70px, 10vh, 120px); overflow: hidden; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: url("../img/banner.jpg") center 40% / cover no-repeat;
  opacity: 0.38;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 25%, #000 55%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 25%, #000 55%, transparent 100%);
}
.hero::after {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 38%;
  width: 900px; height: 520px; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(41, 151, 255, 0.16), transparent);
  pointer-events: none;
}
.avatar {
  width: 148px; height: 148px; border-radius: 50%; object-fit: cover;
  margin: 0 auto 30px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 30px 80px -10px rgba(41, 151, 255, 0.35);
}
.hero .lead { max-width: 720px; margin-inline: auto; }

.page-hero { text-align: center; padding: clamp(70px, 11vh, 120px) 0 clamp(30px, 6vh, 60px); }
.page-hero .lead { max-width: 760px; margin-inline: auto; }

/* ---------- Sections ---------- */
.section { padding: clamp(60px, 10vh, 110px) 0; }
.section-head { text-align: center; max-width: 780px; margin: 0 auto 50px; }
.section-head .lead { margin-top: 10px; }
.divider { border: 0; height: 1px; background: var(--line); margin: 0; }

/* ---------- Cards / bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.card {
  position: relative; overflow: hidden;
  background: var(--card); border-radius: var(--radius);
  padding: clamp(28px, 4vw, 44px);
  transition: transform 0.45s var(--ease), background 0.3s;
}
a.card { color: inherit; display: block; }
a.card:hover { text-decoration: none; transform: scale(1.012); background: var(--card-hi); }
.card p { margin: 0; }
.card .title + p { color: var(--muted-hi); }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-6 { grid-column: span 6; }
@media (max-width: 860px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .span-2, .span-3, .span-4 { grid-column: span 1; }
  .span-6, .span-wide-m { grid-column: span 2; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .span-2, .span-3, .span-4, .span-6, .span-wide-m { grid-column: span 1; }
}

.stat { font-size: clamp(44px, 6vw, 64px); line-height: 1; font-weight: 700; letter-spacing: -0.04em; margin: 0 0 12px; }
.stat-label { color: var(--muted-hi); font-size: 17px; font-weight: 500; }
.card .kicker { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin: 0 0 14px; }
.card .more { display: inline-block; margin-top: 22px; color: var(--blue); }
.card-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 22px; background: rgba(255, 255, 255, 0.06); }
.card-icon .i { width: 22px; height: 22px; }

/* ---------- Chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip { font-size: 13px; padding: 6px 12px; border-radius: 980px; background: rgba(255, 255, 255, 0.07); color: var(--muted-hi); white-space: nowrap; }

/* ---------- Icons (CSS-masked Simple Icons, inherit currentColor) ---------- */
.i { display: inline-block; width: 20px; height: 20px; background: currentColor; -webkit-mask: var(--src) center / contain no-repeat; mask: var(--src) center / contain no-repeat; flex: none; }
.i-github { --src: url("../icons/github.svg"); }
.i-x { --src: url("../icons/x.svg"); }
.i-steam { --src: url("../icons/steam.svg"); }
.i-discord { --src: url("../icons/discord.svg"); }
.i-researchgate { --src: url("../icons/researchgate.svg"); }

/* ---------- Social row ---------- */
.socials { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.social {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 30px 12px; border-radius: var(--radius-sm); background: var(--card);
  color: var(--text); font-size: 15px; font-weight: 500; border: 0; cursor: pointer; font-family: inherit;
  transition: transform 0.35s var(--ease), background 0.25s;
}
.social:hover { background: var(--card-hi); transform: translateY(-3px); text-decoration: none; }
.social .i { width: 30px; height: 30px; }
.social small { color: var(--muted); font-size: 13px; font-weight: 400; }
@media (max-width: 760px) { .socials { grid-template-columns: repeat(2, 1fr); } .socials > :last-child { grid-column: span 2; } }

/* ---------- Résumé ---------- */
.toc { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.toc a, .toc button { font: inherit; font-size: 14px; color: var(--text); padding: 8px 16px; border: 0; cursor: pointer; border-radius: 980px; background: rgba(255, 255, 255, 0.07); transition: background 0.2s; }
.toc a:hover, .toc button:hover { background: rgba(255, 255, 255, 0.14); text-decoration: none; }
.role { background: var(--card); border-radius: var(--radius); padding: clamp(26px, 4vw, 40px); margin-bottom: 18px; }
.role-head { display: flex; justify-content: space-between; align-items: baseline; gap: 6px 20px; flex-wrap: wrap; margin-bottom: 4px; }
.role-head h3 { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; margin: 0; }
.role-date { color: var(--muted); font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.role-org { color: var(--muted-hi); margin: 0 0 18px; }
.role ul { margin: 0; padding-left: 20px; color: #d2d2d7; }
.role li { margin: 0 0 10px; padding-left: 4px; }
.role li::marker { color: var(--muted); }
.role li b { color: var(--text); font-weight: 600; }
.res-section { scroll-margin-top: calc(var(--nav-h) + 20px); }
.res-section > h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 700; letter-spacing: -0.028em; margin: 0 0 22px; }
.list-plain { list-style: none; margin: 0; padding: 0; }
.list-plain li { display: flex; justify-content: space-between; gap: 6px 20px; flex-wrap: wrap; padding: 16px 0; border-bottom: 1px solid var(--line); }
.list-plain li:last-child { border-bottom: 0; }
.list-plain li span:last-child { color: var(--muted); white-space: nowrap; }

/* ---------- Publications ---------- */
.pub { display: grid; grid-template-columns: 92px 1fr; gap: 10px 28px; background: var(--card); border-radius: var(--radius); padding: clamp(26px, 4vw, 40px); margin-bottom: 18px; transition: background 0.3s; }
.pub:hover { background: var(--card-hi); }
.pub-year { font-size: 34px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; color: var(--muted); font-variant-numeric: tabular-nums; }
.pub-side { display: flex; flex-direction: column; gap: 12px; }
.pub-cites { color: var(--muted-hi); font-size: 13px; line-height: 1.2; }
.pub-cites b { display: block; font-size: 22px; font-weight: 700; letter-spacing: -0.03em; color: var(--text); font-variant-numeric: tabular-nums; }
.pub-cites:hover { color: var(--blue); text-decoration: none; }
.cites-note { text-align: center; color: var(--muted); font-size: 13px; margin: 16px 0 50px; }
.cite { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 16px; }
.cite summary { cursor: pointer; color: var(--blue); font-size: 15px; list-style: none; display: inline-flex; align-items: center; gap: 6px; }
.cite summary::-webkit-details-marker { display: none; }
.cite summary::after { content: "\203A"; font-size: 1.2em; transition: transform 0.25s var(--ease); }
.cite[open] summary::after { transform: rotate(90deg); }
.cite-body { margin-top: 16px; }
.cite-label { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin: 14px 0 6px; }
.cite-text { margin: 0; padding: 14px 16px; border-radius: 12px; background: rgba(255, 255, 255, 0.05); color: #d2d2d7; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
pre.cite-text { font: 12.5px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre-wrap; }
.cite-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.pub h3 { font-size: 22px; line-height: 1.25; font-weight: 600; letter-spacing: -0.018em; margin: 0 0 10px; }
.pub .authors { color: var(--muted-hi); font-size: 15px; margin: 0 0 4px; }
.pub .authors b { color: var(--text); font-weight: 600; }
.pub .venue { color: var(--muted); font-size: 15px; font-style: italic; margin: 0 0 16px; }
.pub .summary { color: #d2d2d7; margin: 0 0 18px; }
.pub .links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.badge { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; padding: 4px 10px; border-radius: 980px; background: rgba(41, 151, 255, 0.14); color: var(--blue); margin-bottom: 12px; }
.badge.gold { background: rgba(255, 214, 10, 0.13); color: #ffd60a; }
@media (max-width: 640px) { .pub { grid-template-columns: 1fr; } .pub-year { font-size: 22px; } .pub-side { flex-direction: row; align-items: baseline; gap: 16px; } .pub-cites b { display: inline; font-size: 15px; } }

/* ---------- Projects ---------- */
.project-meta { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; color: var(--muted); font-size: 14px; margin-top: 18px; }
.lang-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.repo-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.repo { background: var(--card); border-radius: var(--radius-sm); padding: 24px; color: inherit; transition: background 0.25s, transform 0.35s var(--ease); }
.repo:hover { background: var(--card-hi); transform: translateY(-2px); text-decoration: none; }
.repo h3 { font-size: 17px; margin: 0 0 6px; color: var(--blue); font-weight: 600; }
.repo p { margin: 0; color: var(--muted-hi); font-size: 15px; }
.repo .project-meta { margin-top: 14px; font-size: 13px; }

/* ---------- Figures ---------- */
.figure { margin: 0; background: var(--card); border-radius: var(--radius); overflow: hidden; }
.figure img { width: 100%; height: auto; }
.figure figcaption { padding: 18px 24px 22px; color: var(--muted-hi); font-size: 15px; }
.figure figcaption b { color: var(--text); font-weight: 600; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; background: var(--card); border-radius: var(--radius-sm); padding: 22px; font-weight: 500; }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; margin-bottom: 8px; }
@media (max-width: 860px) { .steps { grid-template-columns: repeat(2, 1fr); } }

.ladder { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; border-radius: var(--radius); overflow: hidden; background: var(--card); }
.ladder div { padding: 26px 20px; border-right: 1px solid var(--line); }
.ladder div:last-child { border-right: 0; }
.ladder b { display: block; font-size: 19px; letter-spacing: -0.015em; margin-bottom: 6px; }
.ladder span { color: var(--muted-hi); font-size: 14px; line-height: 1.4; display: block; }
.ladder div.now { background: linear-gradient(180deg, rgba(41, 151, 255, 0.16), rgba(41, 151, 255, 0.04)); }
.ladder div.now b { color: var(--blue); }
@media (max-width: 860px) { .ladder { grid-template-columns: repeat(2, 1fr); } .ladder div { border-bottom: 1px solid var(--line); } }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 34px 0 46px; color: var(--muted); font-size: 12px; background: var(--bg-elev); }
.footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; }
.footer-social { display: flex; gap: 18px; }
.footer-social a, .footer-social button { color: var(--muted-hi); background: none; border: 0; padding: 0; cursor: pointer; display: inline-flex; transition: color 0.2s; }
.footer-social a:hover, .footer-social button:hover { color: #fff; }
.footer-social .i { width: 18px; height: 18px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 30px; z-index: 60;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: rgba(40, 40, 42, 0.92); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  color: var(--text); font-size: 15px; padding: 12px 20px; border-radius: 980px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Reveal on scroll (only when JS is running) ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: 0.08s; }
.js .reveal.d2 { transition-delay: 0.16s; }
.js .reveal.d3 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Print (résumé) ---------- */
@media print {
  :root { --text: #000; --muted: #444; --muted-hi: #333; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .nav, .footer, .toc, .no-print, .toast { display: none !important; }
  main { padding-top: 0; }
  .page-hero { padding: 0 0 12pt; text-align: left; }
  .display { font-size: 26pt; color: #000; }
  .grad, .grad-blue { color: #000; background: none; }
  .lead { font-size: 12pt; color: #333; margin-top: 6pt; }
  .section { padding: 10pt 0; }
  .role, .card { background: none; padding: 0; margin-bottom: 12pt; border-radius: 0; break-inside: avoid; }
  .role ul, .role li { color: #000; }
  .res-section > h2 { font-size: 15pt; border-bottom: 1px solid #000; padding-bottom: 3pt; margin-bottom: 8pt; }
  .chip { background: none; border: 1px solid #999; color: #000; }
  .js .reveal { opacity: 1; transform: none; }
  a { color: #000; }
}

/* ---------- MCP project page: detail sections ---------- */
.subnav { position: sticky; top: var(--nav-h); z-index: 40; background: rgba(0, 0, 0, 0.78); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--line); }
.subnav .wrap { display: flex; gap: 4px; overflow-x: auto; padding: 9px 0; scrollbar-width: none; }
.subnav .wrap::-webkit-scrollbar { display: none; }
.subnav a { font-size: 13px; color: var(--muted-hi); padding: 6px 12px; border-radius: 980px; white-space: nowrap; transition: background 0.2s, color 0.2s; }
.subnav a:hover { background: rgba(255, 255, 255, 0.08); color: #fff; text-decoration: none; }
.anchor { scroll-margin-top: calc(var(--nav-h) + 56px); }
.prose { max-width: 820px; margin: 0 auto 36px; color: #d2d2d7; font-size: 17px; line-height: 1.6; }
.prose p { margin: 0 0 16px; }
.prose b { color: var(--text); font-weight: 600; }
.prose ul { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin: 0 0 8px; }
.prose li::marker { color: var(--muted); }
.prose code, .card code, .data code { font: 0.88em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: rgba(255, 255, 255, 0.07); padding: 1px 6px; border-radius: 6px; }
.sub-head { font-size: clamp(22px, 2.6vw, 28px); font-weight: 600; letter-spacing: -0.02em; margin: 44px auto 14px; max-width: 820px; }
.table-wrap { overflow-x: auto; background: var(--card); border-radius: var(--radius-sm); margin: 0 auto 36px; max-width: 920px; }
table.data { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
table.data th, table.data td { padding: 12px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data tr:last-child td { border-bottom: 0; }
table.data th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; white-space: nowrap; }
table.data td { color: #d2d2d7; }
table.data td:first-child { color: var(--text); font-weight: 500; }
table.data .n { text-align: right; white-space: nowrap; }
table.data .good { color: #30d158; }
.st { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 0.03em; padding: 3px 10px; border-radius: 980px; white-space: nowrap; }
.st.ok { background: rgba(48, 209, 88, 0.14); color: #30d158; }
.st.run { background: rgba(41, 151, 255, 0.14); color: var(--blue); }
.st.wait { background: rgba(255, 214, 10, 0.13); color: #ffd60a; }
.st.next { background: rgba(255, 255, 255, 0.08); color: var(--muted-hi); }
.figure a.zoom { display: block; cursor: zoom-in; }
.figure-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 20px; }
.figure-grid + .figure, .figure + .figure-grid, .figure + .figure { margin-top: 20px; }
@media (max-width: 760px) { .figure-grid { grid-template-columns: 1fr; } }
.timeline { list-style: none; margin: 0 auto; padding: 0; max-width: 820px; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 26px 26px; color: #d2d2d7; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--blue); }
.timeline li:last-child { padding-bottom: 0; }
.timeline b { display: block; color: var(--text); font-weight: 600; margin-bottom: 2px; }
.timeline time { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.callout { max-width: 820px; margin: 0 auto 36px; padding: 20px 24px; border-radius: var(--radius-sm); background: rgba(41, 151, 255, 0.08); color: #d2d2d7; }
.callout b { color: var(--text); }
