diff --git a/admelist.html b/admelist.html index 1f6767f..d5d2ee2 100644 --- a/admelist.html +++ b/admelist.html @@ -240,6 +240,6 @@ - + diff --git a/app.js b/app.js index 1456311..8550712 100644 --- a/app.js +++ b/app.js @@ -39,7 +39,8 @@ }); } - if(!window.location.pathname.endsWith(`/${offlinePage}`)){ + const pagesNeedingLiveStatus = new Set(['index', 'run', 'messages', 'post', 'contact', 'signup', 'login', 'admelist']); + if(pagesNeedingLiveStatus.has(page) && !window.location.pathname.endsWith(`/${offlinePage}`)){ probeLiveServer().catch(()=>{ redirectToOffline(); }); @@ -58,6 +59,16 @@ } function write(key, val){localStorage.setItem(key,JSON.stringify(val))} + function debounce(fn, wait){ + let timeoutId = null; + return function(){ + const ctx = this; + const args = arguments; + clearTimeout(timeoutId); + timeoutId = setTimeout(()=>fn.apply(ctx, args), wait); + }; + } + const FEDL_USER_ACCOUNTS = 'fedl_user_accounts'; const FEDL_USER_ACCOUNT_ACTIVE = 'fedl_user_account_active'; @@ -725,11 +736,12 @@ modal.style.display = 'flex'; } - if(page==='index'){ + function bindHomeSnapshot(includeRuns){ const totalEl = qs('hero-total-levels'); const topEl = qs('hero-top-entry'); const approvedRunsEl = qs('hero-last-slot'); const featuredListEl = qs('featured-list'); + const listPreviewEl = qs('offline-list-area'); function renderFeatured(items){ if(!featuredListEl) return; @@ -762,6 +774,15 @@ if(totalEl) totalEl.textContent = String(rankedItems.length || 0); if(topEl) topEl.textContent = firstItem ? firstItem.title : 'Unavailable'; renderFeatured(rankedItems); + if(listPreviewEl){ + const preview = rankedItems.slice(0, 10); + listPreviewEl.innerHTML = preview.length ? preview.map(item=>` + + #${escapeHtml(item.position || '--')} + ${escapeHtml(item.title || 'Untitled')} + + `).join('') : 'No local list data found.'; + } } function renderApprovedRuns(runs){ @@ -773,13 +794,24 @@ loadItems().then(renderHome).catch(()=>{ renderHome([]); }); - loadRuns().then(renderApprovedRuns).catch(()=>{ - renderApprovedRuns([]); - }); - - bindLiveUpdates(); + if(includeRuns){ + loadRuns().then(renderApprovedRuns).catch(()=>{ + renderApprovedRuns([]); + }); + onRunsUpdate(renderApprovedRuns); + }else if(approvedRunsEl){ + approvedRunsEl.textContent = 'Local'; + } onLiveUpdate(renderHome); - onRunsUpdate(renderApprovedRuns); + } + + if(page==='index'){ + bindHomeSnapshot(true); + bindLiveUpdates(); + } + + if(page==='offlineindex'){ + bindHomeSnapshot(false); } if(page==='roulette'){ @@ -890,7 +922,7 @@ panel.appendChild(note); } } - note.textContent = `Signed in as ${fedlServerUsername}. Progress syncs to this server (this browser keeps a copy).`; + note.textContent = `Signed in as ${fedlServerUsername}. Progress syncs online and this browser keeps a copy.`; note.style.display = ''; }else{ if(controls) controls.style.display = ''; @@ -1101,7 +1133,7 @@ Promise.all([loadItems(), loadLevelMeta()]).then(([items, metaMap])=>{ if(!items.length){ statusEl.textContent = 'No demons found.'; - titleEl.textContent = 'Add demons to the live server list'; + titleEl.textContent = 'Add demons to the list'; idEl.textContent = 'Level ID: -'; noteEl.textContent = 'No list data was found.'; return; @@ -1122,10 +1154,10 @@ }); }).catch(err=>{ statusEl.textContent = 'Could not load the list.'; - titleEl.textContent = 'Run the site on a local server'; + titleEl.textContent = 'Open the full site'; rankEl.textContent = 'Rank: -'; idEl.textContent = 'Level ID: -'; - noteEl.textContent = 'The live list or API lookup failed.'; + noteEl.textContent = 'The list or lookup failed.'; console.error(err); }); }); @@ -1365,10 +1397,11 @@ playersArea.innerHTML = ''; if(!filtered.length){ - playersArea.innerHTML = 'No server players found.'; + playersArea.innerHTML = 'No player data found.'; return; } + const fragment = document.createDocumentFragment(); filtered.forEach(item => { const tr = document.createElement('tr'); const tdName = document.createElement('td'); tdName.textContent = item.name; @@ -1381,12 +1414,13 @@ tr.appendChild(tdPoints); tr.appendChild(tdRank); tr.appendChild(tdLevels); - playersArea.appendChild(tr); + fragment.appendChild(tr); }); + playersArea.appendChild(fragment); } function showLoading(){ - playersArea.innerHTML = 'Loading player stats from server...'; + playersArea.innerHTML = 'Loading player stats...'; } function syncView(newPlayers){ @@ -1404,11 +1438,11 @@ }) .catch(err => { console.error(err); - playersArea.innerHTML = 'Could not load server player stats.'; + playersArea.innerHTML = 'Could not load player stats.'; }); } - searchEl.addEventListener('input', renderTable); + searchEl.addEventListener('input', debounce(renderTable, 120)); filterSelect.addEventListener('change', () => { const activeBtn = Array.from(groupsEl.querySelectorAll('.level-link')).find(btn => btn.textContent === filterSelect.value); groupsEl.querySelectorAll('.level-link').forEach(btn => btn.classList.toggle('active', btn === activeBtn)); @@ -1436,7 +1470,7 @@ const run = ()=>{ loadItems().then(items=>{ applyItems(items); - }).catch(err=>{listArea.innerHTML='

Failed to load list data - run via the Node server.

'; console.error(err)}); + }).catch(err=>{listArea.innerHTML='

Failed to load list data.

'; console.error(err)}); }; fedlRefreshAuthState() .then(()=> fedlPullUserStateToLocal(fedlServerUserId)) @@ -1473,7 +1507,7 @@ const opt = document.createElement('option'); opt.value = cat; opt.textContent = cat; filterSelect.appendChild(opt); }); if(!controlsBound){ - searchEl.addEventListener('input', ()=> renderTable(currentItems)); + searchEl.addEventListener('input', debounce(()=> renderTable(currentItems), 120)); filterSelect.addEventListener('change', ()=> renderTable(currentItems)); controlsBound = true; } @@ -1503,7 +1537,12 @@ }).sort((a,b)=> (Number(a.position)||0)-(Number(b.position)||0)); const tbody = qs('list-area'); tbody.innerHTML=''; + if(!filtered.length){ + tbody.innerHTML = 'No levels match this search or range.'; + return; + } const accId = fedlDataUserId(); + const fragment = document.createDocumentFragment(); filtered.forEach(it=>{ const tr = document.createElement('tr'); const tdNum = document.createElement('td'); tdNum.textContent = it.position; @@ -1533,8 +1572,9 @@ a.addEventListener('click', (e)=>{e.preventDefault(); openVideoModal(it, {showRuns:true})}); tdAct.appendChild(a); tr.appendChild(tdNum); tr.appendChild(tdTitle); tr.appendChild(tdPct); tr.appendChild(tdAct); - tbody.appendChild(tr); + fragment.appendChild(tr); }); + tbody.appendChild(fragment); } function applyItems(items){ @@ -2751,7 +2791,7 @@ form.addEventListener('submit', function(event){ event.preventDefault(); if(!canUseLiveServer){ - setRunFormStatus('Start the Node server before submitting runs.', true); + setRunFormStatus('Submitting runs is not available right now.', true); return; } const payload = { @@ -2795,7 +2835,7 @@ onRunsUpdate(function(updatedRuns){ const sortedRuns = updatedRuns.slice().sort((a,b)=>new Date(b.submittedAt) - new Date(a.submittedAt)); renderRunSubmissions(sortedRuns); - setRunListStatus('Recent submissions reloaded from the live server.'); + setRunListStatus('Recent submissions reloaded.'); }); fedlRefreshAuthState() @@ -2823,7 +2863,7 @@ form.addEventListener('submit', function(ev){ ev.preventDefault(); if (!canUseLiveServer) { - setSignupStatus('Open this site through the FEDL server (not as a local file) to sign up.', 'error'); + setSignupStatus('Sign up is not available right now.', 'error'); return; } const username = String(qs('signup-username').value || '').trim().toLowerCase(); @@ -2885,7 +2925,7 @@ form.addEventListener('submit', function(ev){ ev.preventDefault(); if (!canUseLiveServer) { - setLoginStatus('Open this site through the FEDL server to log in.', 'error'); + setLoginStatus('Log in is not available right now.', 'error'); return; } const username = String(qs('login-username').value || '').trim().toLowerCase(); @@ -2950,7 +2990,7 @@ form.addEventListener('submit', function(event){ event.preventDefault(); if(!canUseLiveServer){ - setContactFormStatus('Start the Node server before submitting.', true); + setContactFormStatus('Reports are not available right now.', true); return; } const payload = { diff --git a/contact.html b/contact.html index a07052c..67b51ca 100644 --- a/contact.html +++ b/contact.html @@ -85,6 +85,6 @@ - + diff --git a/guess.html b/guess.html index 22e361a..dd1d4c5 100644 --- a/guess.html +++ b/guess.html @@ -88,6 +88,6 @@ - + diff --git a/index.html b/index.html index 2016ce5..a611f04 100644 --- a/index.html +++ b/index.html @@ -131,14 +131,14 @@ -

Geode Mod is a dedicated FEDL companion mod for Geometry Dash demon players. It will include: -

- Launching soon for Geode, mobile, and desktop.

+

Geode Mod is a dedicated FEDL companion mod for Geometry Dash demon players with quick list access, roulette tools, queue tracking, and built-in validation help.

+ +

Launching soon for Geode, mobile, and desktop.

@@ -184,7 +184,7 @@
- + diff --git a/lists.html b/lists.html index 20fa460..be147ea 100644 --- a/lists.html +++ b/lists.html @@ -81,6 +81,6 @@ - + diff --git a/login.html b/login.html index 8f04ac9..a340123 100644 --- a/login.html +++ b/login.html @@ -42,6 +42,6 @@ - + diff --git a/messages.html b/messages.html index 8dc4bdb..c68f650 100644 --- a/messages.html +++ b/messages.html @@ -86,7 +86,7 @@ - + diff --git a/players.html b/players.html index 9223b5f..a4385fd 100644 --- a/players.html +++ b/players.html @@ -79,6 +79,6 @@ - + diff --git a/roulette.html b/roulette.html index 6843b34..fb07817 100644 --- a/roulette.html +++ b/roulette.html @@ -125,6 +125,6 @@ - + diff --git a/run.html b/run.html index bbd05bf..45d1679 100644 --- a/run.html +++ b/run.html @@ -121,6 +121,6 @@
- + diff --git a/server/server.js b/server/server.js index 5b81412..be1a303 100644 --- a/server/server.js +++ b/server/server.js @@ -6,6 +6,7 @@ const { URL } = require('url'); const appRoot = path.resolve(__dirname, '..'); const dataPath = path.join(__dirname, 'data.txt'); +const legacyDataPath = path.join(appRoot, 'data.txt'); const runsPath = path.join(__dirname, 'runs.json'); const usersPath = path.join(__dirname, 'users.json'); const sessionsPath = path.join(__dirname, 'sessions.json'); @@ -48,8 +49,37 @@ function parseData(text) { }); } +function safeReadJsonFile(filePath, fallbackValue, label) { + try { + const raw = fs.readFileSync(filePath, 'utf8'); + if (!String(raw || '').trim()) { + return fallbackValue; + } + return JSON.parse(raw); + } catch (error) { + console.error(`[FEDL] Failed to read ${label}: ${error.message}`); + return fallbackValue; + } +} + function readDataText() { - return fs.readFileSync(dataPath, 'utf8'); + const serverCopyExists = fs.existsSync(dataPath); + const serverCopy = serverCopyExists ? fs.readFileSync(dataPath, 'utf8') : ''; + if (String(serverCopy || '').trim()) { + return serverCopy; + } + if (fs.existsSync(legacyDataPath)) { + return fs.readFileSync(legacyDataPath, 'utf8'); + } + return serverCopy; +} + +function writeDataText(text) { + const normalized = `${String(text || '').trim()}\n`; + fs.writeFileSync(dataPath, normalized, 'utf8'); + if (legacyDataPath !== dataPath && fs.existsSync(legacyDataPath)) { + fs.writeFileSync(legacyDataPath, normalized, 'utf8'); + } } function setCors(res) { @@ -105,8 +135,7 @@ function ensureRunsFile() { function readRuns() { ensureRunsFile(); - const raw = fs.readFileSync(runsPath, 'utf8'); - const parsed = JSON.parse(raw || '[]'); + const parsed = safeReadJsonFile(runsPath, [], 'runs file'); return Array.isArray(parsed) ? parsed : []; } @@ -136,8 +165,7 @@ function ensureUserDataFile() { function readUsers() { ensureUsersFile(); - const raw = fs.readFileSync(usersPath, 'utf8'); - const parsed = JSON.parse(raw || '[]'); + const parsed = safeReadJsonFile(usersPath, [], 'users file'); return Array.isArray(parsed) ? parsed : []; } @@ -147,8 +175,7 @@ function writeUsers(users) { function readSessionsRaw() { ensureSessionsFile(); - const raw = fs.readFileSync(sessionsPath, 'utf8'); - const parsed = JSON.parse(raw || '{}'); + const parsed = safeReadJsonFile(sessionsPath, {}, 'sessions file'); return parsed && typeof parsed === 'object' ? parsed : {}; } @@ -235,8 +262,7 @@ function getBearerToken(req) { function readUserDataMap() { ensureUserDataFile(); - const raw = fs.readFileSync(userDataPath, 'utf8'); - const parsed = JSON.parse(raw || '{}'); + const parsed = safeReadJsonFile(userDataPath, {}, 'user data file'); return parsed && typeof parsed === 'object' ? parsed : {}; } @@ -252,8 +278,7 @@ function ensurePostsFile() { function readPosts() { ensurePostsFile(); - const raw = fs.readFileSync(postsPath, 'utf8'); - const parsed = JSON.parse(raw || '[]'); + const parsed = safeReadJsonFile(postsPath, [], 'posts file'); return Array.isArray(parsed) ? parsed : []; } @@ -269,8 +294,7 @@ function ensureBugReportsFile() { function readBugReports() { ensureBugReportsFile(); - const raw = fs.readFileSync(bugReportsPath, 'utf8'); - const parsed = JSON.parse(raw || '[]'); + const parsed = safeReadJsonFile(bugReportsPath, [], 'bug reports file'); return Array.isArray(parsed) ? parsed : []; } @@ -286,11 +310,24 @@ function ensureMessagesFile() { function readMessages() { ensureMessagesFile(); - const raw = fs.readFileSync(messagesPath, 'utf8'); - const parsed = JSON.parse(raw || '[]'); + const parsed = safeReadJsonFile(messagesPath, [], 'messages file'); return Array.isArray(parsed) ? parsed : []; } +function safeWatch(filePath, eventName) { + try { + if (!fs.existsSync(filePath)) { + return null; + } + return fs.watch(filePath, { persistent: true }, () => { + sendEvent(eventName, { updatedAt: new Date().toISOString() }); + }); + } catch (error) { + console.error(`[FEDL] Could not watch ${filePath}: ${error.message}`); + return null; + } +} + function writeMessages(messages) { fs.writeFileSync(messagesPath, `${JSON.stringify(messages, null, 2)}\n`, 'utf8'); } @@ -1232,7 +1269,7 @@ const server = http.createServer((req, res) => { try { const payload = JSON.parse(body || '{}'); const text = String(payload.text || '').trim(); - fs.writeFileSync(dataPath, `${text}\n`, 'utf8'); + writeDataText(text); sendEvent('list-update', { updatedAt: new Date().toISOString() }); sendJson(res, 200, { ok: true }); } catch (error) { @@ -1573,19 +1610,24 @@ const server = http.createServer((req, res) => { serveFile(pathname, res); }); -fs.watch(dataPath, { persistent: true }, () => { - sendEvent('list-update', { updatedAt: new Date().toISOString() }); -}); - ensureRunsFile(); -fs.watch(runsPath, { persistent: true }, () => { - sendEvent('runs-update', { updatedAt: new Date().toISOString() }); +safeWatch(dataPath, 'list-update'); +safeWatch(legacyDataPath, 'list-update'); +safeWatch(runsPath, 'runs-update'); + +server.on('error', error => { + console.error(`[FEDL] Server failed to start: ${error.message}`); + if (error && error.code) { + console.error(`[FEDL] Error code: ${error.code}`); + } + process.exit(1); }); server.listen(port, host, () => { console.log(`FEDL server running at http://${host}:${port}`); console.log(`Base path: ${BASE}`); console.log(`Using live list file: ${dataPath}`); + console.log(`Legacy list fallback: ${legacyDataPath}`); console.log(`Using runs file: ${runsPath}`); console.log(`Admin password protection: ${adminPassword ? 'enabled' : 'disabled'}`); }); diff --git a/signup.html b/signup.html index 969d961..b2cee48 100644 --- a/signup.html +++ b/signup.html @@ -47,6 +47,6 @@ - + diff --git a/styles.css b/styles.css index 6489398..4feda8c 100644 --- a/styles.css +++ b/styles.css @@ -1,9 +1,10 @@ :root{--bg:#0f1724;--panel:#071326;--accent:#5cc5ff;--muted:#9fb3c8;--text:#e6eef8;--card:#081220;--accent-warm:#ffb84d} *{box-sizing:border-box} html,body{height:100%;margin:0;font-family:"Space Grotesk","Trebuchet MS",ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--text);background:radial-gradient(circle at top,rgba(92,197,255,0.14),transparent 28%),linear-gradient(180deg,#061021 0%,#071426 100%)} -header{display:flex;align-items:center;justify-content:space-between;padding:14px 20px;background:linear-gradient(90deg,rgba(255,255,255,0.05),transparent);backdrop-filter:blur(12px);border-bottom:1px solid rgba(255,255,255,0.05)} -header h1{margin:0;font-size:1.1rem} -nav a{color:var(--muted);margin-left:14px;text-decoration:none;transition:color .2s ease,opacity .2s ease} +header{position:sticky;top:0;z-index:50;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:14px 20px;background:linear-gradient(90deg,rgba(6,16,33,0.9),rgba(7,20,38,0.72));backdrop-filter:blur(16px);border-bottom:1px solid rgba(255,255,255,0.05)} +header h1{margin:0;font-size:1.1rem;letter-spacing:.02em} +nav{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px 12px} +nav a{color:var(--muted);margin-left:0;text-decoration:none;transition:color .2s ease,opacity .2s ease} nav a:hover{color:var(--text)} main{padding:18px 20px} h1,h2,h3,h4{line-height:1.15} @@ -18,7 +19,8 @@ h1,h2,h3,h4{line-height:1.15} .level-link.active{background:rgba(92,197,255,0.06);color:var(--accent)} .content{flex:1} .panel{background:var(--panel);padding:14px;border-radius:10px;margin-bottom:12px;box-shadow:0 3px 12px rgba(2,6,23,0.6)} -.search-row{display:flex;gap:14px;align-items:end;margin-bottom:0} +.home-section-grid,.spotlight-panel,.discord-panel,.list-table-panel,.submission-panel,.run-side-panel{content-visibility:auto;contain-intrinsic-size:1px 500px} +.search-row{display:flex;flex-wrap:wrap;gap:14px;align-items:end;margin-bottom:0} .search-row input[type=text]{flex:1;padding:10px 12px;border-radius:8px;border:1px solid rgba(255,255,255,0.04);background:transparent;color:var(--text)} .search-row select{padding:8px;border-radius:8px;border:1px solid rgba(255,255,255,0.04);background:transparent;color:var(--text)} .table-wrap{overflow:auto;border-radius:8px} @@ -130,6 +132,7 @@ table.levels-table{border-radius:18px;overflow:hidden} table.levels-table th{background:rgba(255,255,255,0.03)} table.levels-table td{font-size:.98rem} table.levels-table td:last-child{text-align:right} +table.levels-table tbody tr:nth-child(even) td{background:rgba(255,255,255,0.018)} table.levels-table .btn{padding:9px 14px} .wip-hero{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(280px,.85fr);gap:22px;align-items:stretch;min-height:calc(100vh - 132px)} .wip-copy,.wip-stage{position:relative} @@ -296,6 +299,9 @@ table.levels-table .btn{padding:9px 14px} .discord-label{margin:0 0 6px 0;text-transform:uppercase;letter-spacing:0.14em;font-size:0.72rem;font-weight:700;color:#bfc7ff} .discord-panel h2{margin:0;font-size:1.9rem} .discord-text{max-width:720px;margin:0 0 16px 0;line-height:1.65;color:#dce8f5} +.discord-footnote{margin-top:16px;margin-bottom:0} +.feature-bullet-list{margin:0;padding-left:22px;color:#e0ffe9} +.feature-bullet-list li{margin:0 0 10px 0;line-height:1.55} .download-panel .discord-text{color:#e0ffe9} .discord-highlights{display:flex;flex-wrap:wrap;gap:10px} .discord-highlights span{padding:8px 12px;border-radius:999px;background:rgba(255,255,255,0.07);color:#eef3ff;font-size:0.92rem} @@ -353,7 +359,7 @@ header nav .fedl-auth-nav a:hover{color:var(--text)} @media(max-width:900px){.layout{flex-direction:column}.sidebar{width:100%}.sidebar .panel{height:auto}.video-modal iframe{height:320px}.modal-runs-head,.modal-run-card{grid-template-columns:1fr}.home-hero{grid-template-columns:1fr;min-height:auto}.home-copy,.hero-stage{padding:24px 22px}.hero-stats,.home-section-grid,.spotlight-grid{grid-template-columns:1fr}.spotlight-panel{grid-template-columns:1fr;padding:24px 22px}.list-hero-panel,.table-header,.search-row,.roulette-head,.guess-controls{flex-direction:column;align-items:flex-start}.control-select{max-width:none;width:100%}.roulette-shell{grid-template-columns:1fr}.discord-panel{flex-direction:column;align-items:flex-start;padding:22px 20px}.discord-panel h2{font-size:1.55rem}.discord-actions{width:100%;justify-content:flex-start}.rules-view header{padding:16px 18px}.rules-view header h1{font-size:1.55rem}.rules-page{padding:24px 20px}.rules-page h2{font-size:1.65rem}.guess-controls input,.guess-controls .btn{width:100%}} @media(max-width:900px){.error-grid{grid-template-columns:1fr}.error-copy,.error-side{padding:24px 20px}.error-copy h2{font-size:2.5rem}} @media(max-width:900px){.admin-overview-panel,.admin-toolbar{flex-direction:column;align-items:stretch}.admin-actions{flex-direction:column;align-items:stretch}.admin-password-field input,.admin-actions input[type=text],.admin-actions input[type=password]{min-width:0;width:100%}.run-shell{grid-template-columns:1fr}.run-head{flex-direction:column;align-items:flex-start}.run-form{grid-template-columns:1fr}.admin-login-screen{padding:18px}.admin-login-card{padding:26px 22px}} -@media(max-width:640px){header{flex-direction:column;align-items:flex-start;gap:12px}nav{display:flex;flex-wrap:wrap;gap:10px}nav a{margin-left:0}header nav a.btn{margin-left:0}.home-copy h2{max-width:none}.hero-actions{flex-direction:column;align-items:stretch}.hero-actions .btn,.roulette-btn{width:100%;text-align:center}.list-hero-panel,.list-controls-panel,.list-table-panel,.roulette-panel,.roulette-rules-card,.run-panel,.run-side-panel,.submission-panel{padding:22px 18px}.table-hint{text-align:left}.run-admin-actions{justify-content:flex-start}} +@media(max-width:640px){header{align-items:flex-start;padding:14px 16px}header h1{font-size:1rem}nav{justify-content:flex-start}nav a{padding:8px 12px;border-radius:999px;background:rgba(255,255,255,0.04);border:1px solid rgba(255,255,255,0.06)}header nav a.btn{margin-left:0}.home-copy h2{max-width:none}.hero-actions{flex-direction:column;align-items:stretch}.hero-actions .btn,.roulette-btn{width:100%;text-align:center}.list-hero-panel,.list-controls-panel,.list-table-panel,.roulette-panel,.roulette-rules-card,.run-panel,.run-side-panel,.submission-panel{padding:22px 18px}.table-hint{text-align:left}.run-admin-actions{justify-content:flex-start}} .stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:14px;margin-top:16px} .stat-box{padding:16px;border-radius:14px;background:rgba(255,255,255,0.04);border:1px solid rgba(255,255,255,0.08);text-align:center} .stat-box strong{display:block;margin-bottom:6px;font-size:1.75rem;color:var(--accent)}