spb/spbgit Public MIT
SPB Git — the platform hosting itself
JavaScript 73.9%
CSS 11.7%
Nunjucks 11.6%
Shell 2.7%
1/**2 * ─────────────────────────────────────────────3 * SPB Git — Personal Git Platform4 * ─────────────────────────────────────────────5 * Author : Simon-Pierre Boucher6 * Contact : contact@spboucher.ai7 * File : src/web/assets/css/app.css8 * Purpose : Application styles v2 — layout, depth, motion, every page9 * License : MIT © Simon-Pierre Boucher10 * ─────────────────────────────────────────────11 */1213*, *::before, *::after { box-sizing: border-box; }1415html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }1617body {18 margin: 0;19 background:20 radial-gradient(1100px 500px at 12% -10%, var(--bg-glow-1), transparent 60%),21 radial-gradient(900px 420px at 88% -6%, var(--bg-glow-2), transparent 55%),22 var(--bg);23 color: var(--text);24 font-family: var(--font-ui);25 font-size: 15px;26 line-height: 1.55;27 min-height: 100vh;28 display: flex;29 flex-direction: column;30 font-feature-settings: 'cv02', 'cv03', 'ss01';31}3233a { color: var(--accent); text-decoration: none; transition: color 0.15s ease; }34a:hover { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 3px; }35code, pre, kbd { font-family: var(--font-mono); }36button { font-family: inherit; }37::selection { background: var(--accent-soft); }3839:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }4041.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; width: 100%; }42main.container { flex: 1; padding-top: 28px; padding-bottom: 56px; }4344.sr-only, .skip-link {45 position: absolute; width: 1px; height: 1px; overflow: hidden;46 clip: rect(0 0 0 0); white-space: nowrap;47}48.skip-link:focus {49 position: fixed; top: 8px; left: 8px; width: auto; height: auto; clip: auto;50 background: var(--surface); border: 1px solid var(--accent); padding: 8px 12px;51 border-radius: var(--radius); z-index: 100;52}53.muted { color: var(--muted); }5455/* ── Top nav ─────────────────────────────── */56.topnav {57 position: sticky; top: 0; z-index: 50;58 background: var(--nav-bg);59 backdrop-filter: blur(14px) saturate(1.4);60 -webkit-backdrop-filter: blur(14px) saturate(1.4);61 border-bottom: 1px solid var(--border);62}63.topnav-inner { display: flex; align-items: center; gap: 16px; height: 58px; }64.brand {65 display: flex; align-items: center; gap: 10px;66 color: var(--text-bright); font-weight: 700; letter-spacing: -0.01em;67}68.brand:hover { text-decoration: none; color: var(--text-bright); }69.brand-mark { flex: none; filter: drop-shadow(0 2px 8px var(--accent-glow)); transition: transform 0.2s ease; }70.brand:hover .brand-mark { transform: rotate(-6deg) scale(1.06); }71.global-search { flex: 1; max-width: 440px; position: relative; }72.global-search input, .repo-filters input, .search-page-form input {73 width: 100%; background: var(--surface); color: var(--text);74 border: 1px solid var(--border); border-radius: var(--radius);75 padding: 8px 13px; font-size: 14px; outline: none;76 transition: border-color 0.15s ease, box-shadow 0.15s ease;77}78.global-search input:focus, .repo-filters input:focus, .search-page-form input:focus {79 border-color: var(--accent); box-shadow: var(--ring);80}81.topnav-links { margin-left: auto; display: flex; align-items: center; gap: 12px; }82.topnav-ext { color: var(--muted); font-size: 14px; font-weight: 500; }83.topnav-ext:hover { color: var(--text); text-decoration: none; }84.icon-btn {85 background: var(--surface); color: var(--muted); border: 1px solid var(--border);86 border-radius: var(--radius); padding: 8px 10px; cursor: pointer; line-height: 0;87 transition: border-color 0.15s ease, color 0.15s ease, transform 0.12s ease;88}89.icon-btn:hover { border-color: var(--border-strong); color: var(--text); }90.icon-btn:active { transform: scale(0.94); }91html[data-theme='dark'] .icon-moon { display: none; }92html[data-theme='light'] .icon-sun { display: none; }9394/* ── Buttons & chips ─────────────────────── */95.btn {96 display: inline-flex; align-items: center; gap: 6px;97 background: var(--surface); color: var(--text);98 border: 1px solid var(--border); border-radius: var(--radius);99 padding: 6px 14px; font-size: 14px; font-weight: 500; cursor: pointer;100 box-shadow: var(--shadow-1);101 transition: border-color 0.15s ease, transform 0.12s ease, background 0.15s ease, box-shadow 0.15s ease;102}103.btn:hover {104 border-color: var(--border-strong); background: var(--surface-2);105 text-decoration: none; color: var(--text); transform: translateY(-1px);106}107.btn:active { transform: translateY(0) scale(0.98); }108.btn-primary {109 background: var(--gradient-brand); border-color: transparent; color: #fff;110 box-shadow: 0 4px 16px -4px var(--accent-glow);111}112.btn-primary:hover { background: var(--gradient-brand); color: #fff; filter: brightness(1.08); }113.btn-sm { padding: 4px 11px; font-size: 13px; }114.copy-btn.copied { border-color: var(--accent-2); color: var(--accent-2); }115116.chip {117 display: inline-flex; align-items: center;118 border-radius: 999px; padding: 2px 11px; font-size: 12px; font-weight: 500;119 background: var(--chip-bg); color: var(--accent); border: 1px solid transparent;120 transition: border-color 0.15s ease, transform 0.12s ease;121}122.chip-topic:hover { border-color: var(--accent); text-decoration: none; transform: translateY(-1px); }123.chip-public { color: var(--muted); background: transparent; border-color: var(--border-strong); }124.chip-license { color: var(--accent-2); background: var(--accent-2-soft); }125.chip-default { color: var(--accent-2); background: var(--accent-2-soft); }126.chip-pin { color: var(--warning); background: transparent; }127.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }128.count {129 background: var(--surface-2); border-radius: 999px; padding: 0 8px;130 font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums;131}132133/* ── Hero ────────────────────────────────── */134.hero {135 position: relative;136 display: flex; align-items: center; justify-content: space-between;137 flex-wrap: wrap; gap: 22px; padding: 40px 0 30px;138 border-bottom: 1px solid var(--border); margin-bottom: 30px;139}140.hero::after {141 content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;142 background: var(--gradient-brand); opacity: 0.5;143 mask: linear-gradient(90deg, black, transparent 70%);144 -webkit-mask: linear-gradient(90deg, black, transparent 70%);145}146.hero-id { display: flex; align-items: center; gap: 20px; }147.hero-avatar {148 width: 72px; height: 72px; border-radius: 20px;149 background: var(--gradient-brand);150 color: #fff; font-weight: 700; font-size: 22px; letter-spacing: 0.02em;151 display: flex; align-items: center; justify-content: center; flex: none;152 box-shadow: 0 10px 30px -8px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.25);153}154.hero-name {155 margin: 0; font-size: 28px; font-weight: 700; letter-spacing: -0.02em;156 background: var(--gradient-text);157 -webkit-background-clip: text; background-clip: text;158 -webkit-text-fill-color: transparent; color: transparent;159}160.hero-tagline { margin: 4px 0 0; color: var(--muted); }161.hero-badges { display: flex; gap: 10px; flex-wrap: wrap; }162.badge-stat {163 background: var(--surface); border: 1px solid var(--border);164 border-radius: var(--radius); padding: 10px 16px; font-size: 14px; color: var(--muted);165 box-shadow: var(--shadow-1); font-variant-numeric: tabular-nums;166}167.badge-stat strong { color: var(--text-bright); margin-right: 5px; font-size: 16px; }168169.section-title {170 font-size: 17px; font-weight: 600; letter-spacing: -0.01em;171 margin: 0 0 14px; display: flex; align-items: center; gap: 8px;172}173174/* ── Repo cards / home ───────────────────── */175.pinned-grid {176 display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));177 gap: 14px; margin-bottom: 34px;178}179.home-columns { display: grid; grid-template-columns: 1fr 300px; gap: 36px; align-items: start; }180.repo-list { display: flex; flex-direction: column; gap: 12px; }181.repo-card {182 position: relative;183 background: var(--surface); border: 1px solid var(--border);184 border-radius: var(--radius-lg); padding: 17px 19px;185 box-shadow: var(--shadow-1);186 transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;187 overflow: hidden;188}189.repo-card::before {190 content: ''; position: absolute; inset: 0 0 auto 0; height: 2px;191 background: var(--gradient-brand); opacity: 0;192 transition: opacity 0.18s ease;193}194.repo-card:hover {195 border-color: var(--border-strong); transform: translateY(-2px);196 box-shadow: var(--shadow-card);197}198.repo-card:hover::before { opacity: 1; }199.repo-card-name { margin: 0 0 4px; font-size: 16px; display: flex; align-items: center; gap: 8px; }200.repo-card-name a { color: var(--text-bright); font-weight: 600; }201.repo-card-name a:hover { color: var(--accent); text-decoration: none; }202.repo-card-desc { margin: 0 0 10px; color: var(--muted); font-size: 14px; }203.repo-card .chip-row { margin-bottom: 10px; }204.repo-card-meta { display: flex; gap: 16px; color: var(--muted); font-size: 13px; flex-wrap: wrap; }205.lang-dot {206 width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none;207 box-shadow: 0 0 6px 0 currentColor; opacity: 0.95;208}209.lang-dot-label { display: inline-flex; align-items: center; gap: 6px; }210211.repo-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }212.repo-filters { display: flex; gap: 8px; flex-wrap: wrap; }213.repo-filters input { max-width: 200px; }214.repo-filters select, .ref-select {215 background: var(--surface); color: var(--text); border: 1px solid var(--border);216 border-radius: var(--radius); padding: 8px 11px; font-size: 14px; cursor: pointer;217 transition: border-color 0.15s ease;218}219.repo-filters select:hover, .ref-select:hover { border-color: var(--border-strong); }220.empty-state { text-align: center; padding: 44px 0; color: var(--muted); }221222/* ── Activity feed ───────────────────────── */223.activity-feed { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; font-size: 14px; }224.activity-feed li {225 display: flex; gap: 12px; align-items: baseline; position: relative;226 padding: 7px 0 7px 4px;227}228.activity-feed li:not(:last-child)::before {229 content: ''; position: absolute; left: 7px; top: 22px; bottom: -8px;230 width: 2px; background: var(--border); border-radius: 1px;231}232.activity-dot {233 width: 8px; height: 8px; border-radius: 50%;234 background: var(--accent-2); flex: none; position: relative; top: -1px;235 box-shadow: 0 0 8px 0 var(--accent-2);236}237.ref-inline { font-size: 12px; color: var(--muted); }238239/* ── Heatmap ─────────────────────────────── */240.heatmap-section { margin-top: 44px; }241.heatmap-scroll { overflow-x: auto; padding-bottom: 6px; }242.heatmap-label { fill: var(--muted); font-size: 9px; font-family: var(--font-ui); }243.heatmap-cell { transition: transform 0.1s ease; transform-origin: center; transform-box: fill-box; }244.heatmap-cell:hover { transform: scale(1.35); stroke: var(--accent); stroke-width: 1; }245.heatmap-cell[data-level='0'] { fill: var(--heat-0); }246.heatmap-cell[data-level='1'] { fill: var(--heat-1); }247.heatmap-cell[data-level='2'] { fill: var(--heat-2); }248.heatmap-cell[data-level='3'] { fill: var(--heat-3); }249.heatmap-cell[data-level='4'] { fill: var(--heat-4); }250.heatmap-legend { display: flex; align-items: center; gap: 4px; color: var(--muted); font-size: 12px; margin-top: 8px; }251.heatmap-cell-demo { width: 11px; height: 11px; border-radius: 2px; display: inline-block; }252.heatmap-cell-demo[data-level='0'] { background: var(--heat-0); }253.heatmap-cell-demo[data-level='1'] { background: var(--heat-1); }254.heatmap-cell-demo[data-level='2'] { background: var(--heat-2); }255.heatmap-cell-demo[data-level='3'] { background: var(--heat-3); }256.heatmap-cell-demo[data-level='4'] { background: var(--heat-4); }257258/* ── Repo header ─────────────────────────── */259.repo-header { padding-bottom: 0; margin-bottom: 22px; border-bottom: 1px solid var(--border); }260.repo-title {261 font-size: 21px; margin: 6px 0 6px; display: flex; align-items: center;262 gap: 8px; flex-wrap: wrap; font-weight: 500; letter-spacing: -0.01em;263}264.repo-owner { color: var(--muted); }265.repo-owner:hover { color: var(--accent); text-decoration: none; }266.repo-sep { color: var(--faint); }267.repo-name { font-weight: 700; color: var(--text-bright); }268.repo-name:hover { color: var(--accent); text-decoration: none; }269.repo-desc { margin: 0 0 10px; color: var(--muted); max-width: 780px; font-size: 15px; }270.repo-meta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 10px; }271.repo-homepage { font-size: 14px; font-weight: 500; }272.lang-bar {273 display: flex; height: 8px; border-radius: 4px; overflow: hidden;274 background: var(--surface-2); margin: 8px 0; gap: 1px;275}276.lang-bar-seg { display: block; height: 100%; min-width: 2px; transition: filter 0.15s ease; }277.lang-bar-seg:hover { filter: brightness(1.25); }278.lang-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; margin-bottom: 12px; }279.repo-tabs { display: flex; gap: 2px; align-items: center; margin-top: 10px; overflow-x: auto; }280.repo-tab {281 color: var(--muted); padding: 9px 15px; position: relative;282 display: inline-flex; gap: 7px; align-items: center;283 white-space: nowrap; font-size: 14px; font-weight: 500;284 border-radius: var(--radius) var(--radius) 0 0;285 transition: color 0.15s ease, background 0.15s ease;286}287.repo-tab::after {288 content: ''; position: absolute; left: 10px; right: 10px; bottom: 0; height: 2px;289 background: var(--gradient-brand); border-radius: 2px 2px 0 0;290 opacity: 0; transform: scaleX(0.5);291 transition: opacity 0.18s ease, transform 0.18s ease;292}293.repo-tab:hover { color: var(--text); background: var(--surface); text-decoration: none; }294.repo-tab.active { color: var(--text-bright); font-weight: 600; }295.repo-tab.active::after { opacity: 1; transform: scaleX(1); }296.repo-tab-meta { margin-left: auto; font-size: 13px; white-space: nowrap; }297298/* ── Repo toolbar / clone box ────────────── */299.repo-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 16px; }300.clone-box {301 display: flex; gap: 6px; align-items: center; flex-wrap: wrap;302 background: var(--surface); border: 1px solid var(--border);303 border-radius: var(--radius-lg); padding: 5px;304 box-shadow: var(--shadow-1);305}306.clone-url {307 background: transparent; border: none; color: var(--muted);308 padding: 6px 10px; font-family: var(--font-mono);309 font-size: 13px; width: 300px; max-width: 60vw; outline: none;310}311.clone-snippet {312 background: var(--code-bg); border: 1px solid var(--border); border-radius: var(--radius);313 padding: 14px 16px; font-size: 13px; overflow-x: auto; display: inline-block; text-align: left;314}315.path-breadcrumb { font-family: var(--font-mono); font-size: 14px; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }316.crumb-sep { color: var(--faint); }317318/* ── File table ──────────────────────────── */319.file-table {320 width: 100%; border-collapse: collapse; border: 1px solid var(--border);321 border-radius: var(--radius-lg); overflow: hidden; background: var(--surface);322 font-size: 14px; margin-bottom: 26px; box-shadow: var(--shadow-1);323}324.file-table td { padding: 9px 14px; border-top: 1px solid var(--border); }325.file-table tr:first-child td { border-top: 0; }326.file-row { transition: background 0.12s ease; }327.file-row:hover { background: var(--surface-2); }328.file-name { white-space: nowrap; width: 32%; }329.file-name a { color: var(--text); }330.file-name a:hover { color: var(--accent); text-decoration: none; }331.file-icon { vertical-align: -3px; margin-right: 8px; color: var(--muted); }332.icon-dir { color: var(--accent); }333.file-commit { overflow: hidden; text-overflow: ellipsis; max-width: 400px; white-space: nowrap; }334.file-commit a:hover { color: var(--accent); }335.file-date { text-align: right; white-space: nowrap; font-size: 13px; font-variant-numeric: tabular-nums; }336337/* ── README / markdown section ───────────── */338.readme-section {339 border: 1px solid var(--border); border-radius: var(--radius-lg);340 background: var(--surface); margin-bottom: 32px; box-shadow: var(--shadow-1);341}342.readme-header {343 display: flex; align-items: center; gap: 8px; padding: 11px 20px;344 border-bottom: 1px solid var(--border); color: var(--muted); font-size: 13px;345 position: sticky; top: 58px; background: var(--surface); z-index: 10;346 border-radius: var(--radius-lg) var(--radius-lg) 0 0;347}348.readme-section .markdown-body { padding: 26px 34px 34px; }349.empty-repo { text-align: center; padding: 52px 20px; }350.notice {351 background: var(--accent-soft); border: 1px solid var(--accent);352 border-radius: var(--radius); padding: 8px 14px; font-size: 13px; margin: 12px;353}354355/* ── Blob view ───────────────────────────── */356.blob-card {357 border: 1px solid var(--border); border-radius: var(--radius-lg);358 background: var(--surface); overflow: hidden; box-shadow: var(--shadow-1);359}360.blob-header {361 display: flex; flex-wrap: wrap; gap: 10px; align-items: center;362 padding: 10px 16px; border-bottom: 1px solid var(--border);363 position: sticky; top: 58px; background: var(--surface); z-index: 10;364}365.blob-meta { display: flex; gap: 8px; align-items: center; font-size: 13px; }366.blob-actions { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }367.blob-image { text-align: center; padding: 32px; background: var(--surface-2); }368.blob-image img { max-width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-2); }369.blob-binary { text-align: center; padding: 52px 20px; color: var(--muted); }370.blob-markdown { padding: 26px 34px 34px; }371372/* PDF viewer */373.pdf-viewer { background: var(--surface-2); }374.pdf-frame {375 display: block; width: 100%; height: calc(100vh - 220px); min-height: 560px;376 border: 0; background: var(--surface-2);377}378.pdf-fallback { text-align: center; padding: 52px 20px; color: var(--muted); }379380.code-view { overflow-x: auto; background: var(--code-bg); }381.code-view pre.shiki {382 margin: 0; padding: 14px 0; background: transparent !important;383 font-size: 13px; line-height: 1.65; min-width: max-content;384}385.code-view .line { display: block; padding: 0 16px 0 0; min-height: 1.65em; transition: background 0.12s ease; }386.code-view .line:hover { background: var(--surface-2); }387.code-view .line:target { background: var(--accent-soft); animation: line-flash 1.2s ease 1; }388.code-view .line.range-hl { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }389@keyframes line-flash {390 0% { background: var(--accent-glow); }391 100% { background: var(--accent-soft); }392}393.code-view .ln {394 display: inline-block; width: 56px; padding-right: 18px; text-align: right;395 color: var(--faint); user-select: none; font-size: 12px; text-decoration: none;396 position: sticky; left: 0; background: var(--code-bg);397 font-variant-numeric: tabular-nums;398}399.code-view .ln:hover { color: var(--accent); }400.plain-readme { padding: 20px; overflow-x: auto; font-size: 13px; }401402/* ── Commits ─────────────────────────────── */403.commit-list {404 list-style: none; margin: 0 0 20px; padding: 0;405 border: 1px solid var(--border); border-radius: var(--radius-lg);406 background: var(--surface); box-shadow: var(--shadow-1); overflow: hidden;407}408.commit-row {409 display: flex; gap: 12px; align-items: flex-start; padding: 13px 16px;410 border-top: 1px solid var(--border); transition: background 0.12s ease;411}412.commit-row:hover { background: var(--surface-2); }413.commit-row:first-child { border-top: 0; }414.commit-avatar {415 flex: none; border-radius: 8px; overflow: hidden; background: var(--surface-2);416 line-height: 0; padding: 3px; border: 1px solid var(--border);417}418.commit-main { flex: 1; min-width: 0; }419.commit-subject { font-weight: 600; display: flex; gap: 8px; align-items: baseline; }420.commit-subject a { color: var(--text); }421.commit-subject a:hover { color: var(--accent); text-decoration: none; }422.commit-body-toggle summary {423 cursor: pointer; color: var(--muted); background: var(--surface-2);424 border-radius: 4px; padding: 0 8px; display: inline-block; list-style: none;425}426.commit-body-toggle summary::-webkit-details-marker { display: none; }427.commit-body { font-size: 13px; color: var(--muted); white-space: pre-wrap; margin: 8px 0 0; }428.commit-meta { font-size: 13px; margin-top: 3px; display: flex; flex-wrap: wrap; gap: 6px; }429.sha-chip {430 font-family: var(--font-mono); font-size: 12px; background: var(--surface-2);431 color: var(--accent); border: 1px solid var(--border); border-radius: 7px;432 padding: 3px 9px; cursor: pointer; flex: none;433 transition: border-color 0.15s ease, transform 0.12s ease;434}435.sha-chip:hover { border-color: var(--accent); transform: translateY(-1px); }436.pagination { display: flex; gap: 10px; justify-content: center; margin: 22px 0; }437438/* ── Commit detail / diffs ───────────────── */439.commit-detail-header {440 border: 1px solid var(--border); border-radius: var(--radius-lg);441 background: var(--surface); padding: 18px 22px; margin-bottom: 18px;442 box-shadow: var(--shadow-1);443}444.commit-detail-subject { margin: 0 0 8px; font-size: 19px; letter-spacing: -0.01em; }445.commit-detail-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 14px; }446.commit-stats { margin: 12px 0 0; font-size: 14px; color: var(--muted); }447.diff-add { color: var(--add-text); font-weight: 600; font-variant-numeric: tabular-nums; }448.diff-del { color: var(--del-text); font-weight: 600; font-variant-numeric: tabular-nums; }449450.diff-file {451 border: 1px solid var(--border); border-radius: var(--radius-lg);452 background: var(--surface); margin-bottom: 16px; overflow: hidden;453 box-shadow: var(--shadow-1);454}455.diff-file-header {456 display: flex; gap: 10px; align-items: center; padding: 10px 14px;457 cursor: pointer; background: var(--surface-2); font-size: 13px; list-style: none;458 position: sticky; top: 58px; z-index: 5;459 transition: background 0.12s ease;460}461.diff-file-header:hover { background: var(--surface-3); }462.diff-file-header::-webkit-details-marker { display: none; }463.diff-file-header::before { content: '▾'; color: var(--muted); transition: transform 0.15s ease; }464.diff-file:not([open]) .diff-file-header::before { content: '▸'; }465.diff-path { font-size: 13px; word-break: break-all; }466.diff-counts { margin-left: auto; white-space: nowrap; }467.diff-status {468 border-radius: 5px; padding: 1px 8px; font-size: 11px;469 text-transform: uppercase; font-weight: 700; letter-spacing: 0.04em;470}471.diff-status-added { background: var(--add-bg); color: var(--add-text); }472.diff-status-deleted { background: var(--del-bg); color: var(--del-text); }473.diff-status-modified { background: var(--accent-soft); color: var(--accent); }474.diff-status-renamed { background: var(--chip-bg); color: var(--accent-2); }475476.diff-table-wrap { overflow-x: auto; background: var(--code-bg); }477.diff-table { border-collapse: collapse; width: 100%; font-family: var(--font-mono); font-size: 12.5px; line-height: 1.6; }478.diff-gutter {479 width: 44px; min-width: 44px; text-align: right; padding: 0 8px;480 color: var(--faint); user-select: none; border-right: 1px solid var(--border);481 font-size: 11.5px; vertical-align: top; font-variant-numeric: tabular-nums;482}483.diff-code { padding: 0 10px; white-space: pre; }484.diff-sign { display: inline-block; width: 14px; user-select: none; color: var(--muted); }485.diff-line-add { background: var(--add-bg); }486.diff-line-add .diff-gutter { background: var(--add-bg-strong); border-right-color: transparent; }487.diff-line-add .diff-sign { color: var(--add-text); }488.diff-line-del { background: var(--del-bg); }489.diff-line-del .diff-gutter { background: var(--del-bg-strong); border-right-color: transparent; }490.diff-line-del .diff-sign { color: var(--del-text); }491.diff-hunk-header td { background: var(--hunk-bg); color: var(--muted); padding: 4px 10px; font-size: 12px; }492.diff-binary { padding: 16px; }493494/* ── Blame ───────────────────────────────── */495.blame-table { border-collapse: collapse; width: 100%; font-size: 13px; }496.blame-commit {497 border-top: 1px solid var(--border); border-right: 1px solid var(--border);498 padding: 4px 10px; width: 320px; min-width: 240px; vertical-align: top;499 background: var(--surface-2);500}501.blame-commit-inner { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }502.blame-date { font-size: 12px; width: 100%; padding-left: 30px; }503.blame-ln { width: 44px; text-align: right; color: var(--faint); padding: 0 8px; user-select: none; font-family: var(--font-mono); font-size: 12px; }504.blame-code pre { margin: 0; font-size: 12.5px; line-height: 1.6; white-space: pre; }505.blame-line[data-age='0'] .blame-commit { box-shadow: inset 3px 0 0 var(--accent); }506.blame-line[data-age='1'] .blame-commit { box-shadow: inset 3px 0 0 color-mix(in srgb, var(--accent) 85%, transparent); }507.blame-line[data-age='2'] .blame-commit { box-shadow: inset 3px 0 0 color-mix(in srgb, var(--accent) 70%, transparent); }508.blame-line[data-age='3'] .blame-commit { box-shadow: inset 3px 0 0 color-mix(in srgb, var(--accent) 58%, transparent); }509.blame-line[data-age='4'] .blame-commit { box-shadow: inset 3px 0 0 color-mix(in srgb, var(--accent) 47%, transparent); }510.blame-line[data-age='5'] .blame-commit { box-shadow: inset 3px 0 0 color-mix(in srgb, var(--accent) 38%, transparent); }511.blame-line[data-age='6'] .blame-commit { box-shadow: inset 3px 0 0 color-mix(in srgb, var(--accent) 30%, transparent); }512.blame-line[data-age='7'] .blame-commit { box-shadow: inset 3px 0 0 color-mix(in srgb, var(--accent) 22%, transparent); }513.blame-line[data-age='8'] .blame-commit { box-shadow: inset 3px 0 0 color-mix(in srgb, var(--accent) 15%, transparent); }514.blame-line[data-age='9'] .blame-commit { box-shadow: inset 3px 0 0 color-mix(in srgb, var(--accent) 8%, transparent); }515516/* ── Branch/tag tables ───────────────────── */517.ref-table {518 width: 100%; border-collapse: collapse; background: var(--surface);519 border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden;520 font-size: 14px; box-shadow: var(--shadow-1);521}522.ref-table th { text-align: left; padding: 11px 14px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); border-bottom: 1px solid var(--border); }523.ref-table td { padding: 11px 14px; border-top: 1px solid var(--border); }524.ref-table tbody tr { transition: background 0.12s ease; }525.ref-table tbody tr:hover { background: var(--surface-2); }526.ref-name { font-family: var(--font-mono); font-size: 13px; }527.ahead-behind { display: inline-flex; gap: 10px; font-family: var(--font-mono); font-size: 13px; }528.archive-links { display: flex; gap: 6px; }529530/* ── Releases ────────────────────────────── */531.release-list { display: flex; flex-direction: column; gap: 18px; }532.release-card {533 position: relative;534 background: var(--surface); border: 1px solid var(--border);535 border-radius: var(--radius-lg); padding: 18px 22px;536 box-shadow: var(--shadow-1);537 transition: border-color 0.18s ease, box-shadow 0.18s ease;538}539.release-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-card); }540.release-header { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }541.release-tag { margin: 0; font-size: 17px; font-family: var(--font-mono); }542.release-subject { color: var(--muted); }543.release-assets { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 8px; }544.release-assets li {545 display: flex; align-items: center; gap: 10px;546 background: var(--surface-2); border: 1px solid var(--border);547 border-radius: var(--radius); padding: 9px 14px; font-size: 14px;548 transition: border-color 0.15s ease;549}550.release-assets li:hover { border-color: var(--accent); }551.release-assets li svg { color: var(--accent-2); flex: none; }552553/* ── Search page ─────────────────────────── */554.search-page-form { display: flex; gap: 8px; margin-bottom: 28px; max-width: 560px; }555.search-results { list-style: none; margin: 0 0 32px; padding: 0; display: flex; flex-direction: column; gap: 14px; }556.search-results li {557 background: var(--surface); border: 1px solid var(--border);558 border-radius: var(--radius-lg); padding: 15px 19px; box-shadow: var(--shadow-1);559 transition: border-color 0.15s ease, transform 0.15s ease;560}561.search-results li:hover { border-color: var(--border-strong); transform: translateY(-1px); }562.search-hit-name { font-weight: 600; font-size: 15px; }563.search-snippet { color: var(--muted); font-size: 13px; margin: 6px 0 0; }564565/* ── Error pages ─────────────────────────── */566.error-page { text-align: center; padding: 80px 20px; }567.error-code {568 font-size: 104px; font-weight: 700; font-family: var(--font-mono); line-height: 1;569 background: var(--gradient-brand);570 -webkit-background-clip: text; background-clip: text;571 -webkit-text-fill-color: transparent; color: transparent;572}573.error-message { font-size: 18px; color: var(--muted); margin: 16px 0 8px; }574.error-art { display: inline-block; text-align: left; color: var(--muted); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 18px; font-size: 13px; margin: 16px 0 24px; }575576/* ── Mermaid blocks ──────────────────────── */577.mermaid-block { margin: 16px 0; }578.mermaid-src { display: none; }579.mermaid-block[data-rendered='0'] .mermaid-src { display: block; }580.mermaid-target svg { max-width: 100%; }581582/* ── Footer ──────────────────────────────── */583.footer {584 border-top: 1px solid var(--border); color: var(--muted);585 padding: 22px 0; font-size: 13px; text-align: center;586}587588/* ── Page entrance ───────────────────────── */589@keyframes rise-in {590 from { opacity: 0; transform: translateY(6px); }591 to { opacity: 1; transform: none; }592}593main.container > * { animation: rise-in 0.35s ease both; }594main.container > *:nth-child(2) { animation-delay: 0.04s; }595main.container > *:nth-child(3) { animation-delay: 0.08s; }596597/* ── Responsive ──────────────────────────── */598@media (max-width: 960px) {599 .home-columns { grid-template-columns: 1fr; }600 .file-commit { display: none; }601 .blame-commit { width: 200px; min-width: 150px; }602}603@media (max-width: 640px) {604 .global-search { display: none; }605 .hero { flex-direction: column; align-items: flex-start; }606 .pinned-grid { grid-template-columns: 1fr; }607 .clone-url { width: 100%; max-width: none; }608 .repo-toolbar { flex-direction: column; align-items: stretch; }609 .file-date { display: none; }610 .readme-section .markdown-body, .blob-markdown { padding: 16px; }611 .pdf-frame { height: 70vh; min-height: 420px; }612}613