chahuadev-hub / web /hub.css
chahuadev's picture
finalize support page integration and link security
6e41605 verified
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
--bg: #09090f; --surface: #0f172a; --card: #1e293b; --border: #334155;
--muted: #475569; --dim: #64748b; --sub: #94a3b8; --text: #f1f5f9;
--accent: #3b82f6; --accent-d: #1d4ed8; --success: #10b981;
--warn: #f59e0b; --danger: #ef4444; --purple: #2563eb; --purple-light: #60a5fa;
}
html, body { height: 100%; overflow: hidden; }
body {
font-family: 'Inter', system-ui, sans-serif;
background: var(--bg);
color: var(--text);
display: flex;
flex-direction: column;
height: 100vh;
}
/* Top Nav */
#topnav {
display: flex;
align-items: center;
height: 52px;
background: var(--surface);
border-bottom: 1px solid var(--border);
padding: 0 16px;
gap: 4px;
flex-shrink: 0;
-webkit-app-region: drag;
}
#topnav * { -webkit-app-region: no-drag; }
.brand-box {
display: flex;
align-items: center;
gap: 8px;
margin-right: 12px;
}
.brand-box svg { color: var(--accent); }
.brand-name {
font-size: 13px;
font-weight: 700;
letter-spacing: 0.05em;
color: var(--text);
}
.nav-sep { width: 1px; height: 24px; background: var(--border); margin: 0 6px; }
.nav-tab {
display: flex;
align-items: center;
gap: 6px;
padding: 6px 12px;
border-radius: 6px;
border: none;
background: transparent;
color: var(--sub);
font-size: 13px;
font-weight: 500;
cursor: pointer;
transition: background 0.15s, color 0.15s;
}
.nav-tab:hover { background: var(--card); color: var(--text); }
.nav-tab.active { background: var(--accent); color: #fff; }
.nav-spacer { flex: 1; }
.nav-action {
display: flex;
align-items: center;
gap: 6px;
padding: 5px 10px;
border-radius: 6px;
border: 1px solid var(--border);
background: transparent;
color: var(--sub);
font-size: 12px;
font-weight: 500;
cursor: pointer;
transition: all 0.15s;
}
.nav-action:hover { background: var(--card); color: var(--text); border-color: var(--muted); }
.nav-action + .nav-action { margin-left: 4px; }
/* Pages */
#content-wrap {
flex: 1;
overflow: hidden;
position: relative;
}
.page {
position: absolute;
inset: 0;
overflow-y: auto;
padding: 24px;
display: none;
background-image:
linear-gradient(rgba(59,130,246,0.035) 1px, transparent 1px),
linear-gradient(90deg, rgba(59,130,246,0.035) 1px, transparent 1px),
radial-gradient(ellipse 700px 350px at 100% 0%, rgba(59,130,246,0.08), transparent 60%),
radial-gradient(ellipse 500px 300px at 0% 100%, rgba(14,165,233,0.05), transparent 60%);
background-size: 60px 60px, 60px 60px, auto, auto;
}
.page.active { display: block; }
/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }
/* Status bar */
#statusbar {
height: 26px;
background: var(--surface);
border-top: 1px solid var(--border);
padding: 0 14px;
font-size: 11px;
color: var(--dim);
display: flex;
align-items: center;
gap: 8px;
flex-shrink: 0;
}
.status-dot {
width: 6px; height: 6px;
border-radius: 50%;
background: var(--success);
flex-shrink: 0;
}
.status-dot.loading { background: var(--warn); animation: blinkdot 1s infinite; }
.status-dot.error { background: var(--danger); }
@keyframes blinkdot { 0%,100%{opacity:1} 50%{opacity:0.3} }
/* Page header */
.page-eyebrow {
display: flex; align-items: center; gap: 8px;
font-size: 11px; font-weight: 700;
text-transform: uppercase; letter-spacing: 0.1em;
color: var(--purple-light); margin-bottom: 8px;
}
.page-eyebrow::before {
content: ''; width: 3px; height: 14px; border-radius: 2px;
background: linear-gradient(180deg, #2563eb, #38bdf8); flex-shrink: 0;
}
.page-header {
display: flex;
align-items: flex-start;
justify-content: space-between;
margin-bottom: 24px;
}
.page-title {
font-size: 22px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.2;
background: linear-gradient(135deg, #f1f5f9 0%, #93c5fd 100%);
-webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.page-sub { font-size: 13px; color: var(--sub); margin-top: 6px; line-height: 1.6; }
/* Loading / Empty / Error */
.loading-box, .empty-box, .error-box {
padding: 56px 20px;
text-align: center;
color: var(--dim);
font-size: 14px;
}
.loading-box svg, .empty-box svg, .error-box svg {
display: block;
margin: 0 auto 12px;
opacity: 0.4;
}
.error-box { color: var(--danger); }
.error-box svg { opacity: 0.7; }
.spin { animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
/* DASHBOARD */
.stat-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
gap: 14px;
margin-bottom: 28px;
}
.stat-card {
background: var(--card);
border: 1px solid var(--border);
border-radius: 12px;
padding: 18px 20px;
display: flex;
flex-direction: column;
gap: 6px;
transition: border-color 0.2s, transform 0.2s;
}
.stat-card:hover { border-color: var(--muted); transform: translateY(-2px); }
.stat-card-icon {
width: 32px; height: 32px;
border-radius: 8px;
display: flex; align-items: center; justify-content: center;
margin-bottom: 4px;
}
.sci-blue { background: rgba(59,130,246,0.15); color: var(--accent); }
.sci-purple { background: rgba(59,130,246,0.15); color: var(--purple); }
.sci-sky { background: rgba(14,165,233,0.15); color: #38bdf8; }
.sci-cyan { background: rgba(6,182,212,0.15); color: #22d3ee; }
.sci-lt-blue { background: rgba(56,189,248,0.15); color: #7dd3fc; }
.sci-green { background: rgba(16,185,129,0.15); color: var(--success); }
.sci-orange { background: rgba(245,158,11,0.15); color: var(--warn); }
.stat-card-value {
font-size: 28px;
font-weight: 800;
line-height: 1;
background: linear-gradient(135deg, #60a5fa 0%, #38bdf8 100%);
-webkit-background-clip: text; -webkit-text-fill-color: transparent;
background-clip: text;
}
.stat-card-label {
font-size: 12px;
color: var(--sub);
font-weight: 500;
}
.section-label {
display: flex; align-items: center; gap: 8px;
font-size: 11px; font-weight: 700;
text-transform: uppercase; letter-spacing: 0.09em;
color: var(--purple-light); margin-bottom: 12px;
}
.section-label::before {
content: ''; width: 3px; height: 14px; border-radius: 2px;
background: linear-gradient(180deg, #2563eb, #38bdf8); flex-shrink: 0;
}
.activity-list {
background: var(--card);
border: 1px solid var(--border);
border-radius: 10px;
overflow: hidden;
}
.activity-item {
display: flex;
align-items: flex-start;
gap: 12px;
padding: 11px 16px;
border-bottom: 1px solid var(--border);
font-size: 13px;
}
.activity-item:last-child { border-bottom: none; }
.activity-dot {
width: 7px; height: 7px;
border-radius: 50%;
background: var(--accent);
flex-shrink: 0;
margin-top: 4px;
}
.activity-text { flex: 1; color: var(--text); }
.activity-time { font-size: 11px; color: var(--dim); flex-shrink: 0; }
/* DASHBOARD WEBVIEW */
#page-dashboard.active {
display: flex;
flex-direction: column;
height: calc(100vh - 52px - 26px);
overflow: hidden;
padding: 0;
}
.dash-webview-wrap {
flex: 1;
overflow: hidden;
position: relative;
}
.dash-webview-wrap iframe {
width: 100%;
height: 100%;
border: none;
display: block;
background: var(--bg);
}
/* SUPPORT PAGE */
#page-support.active {
display: flex;
flex-direction: column;
height: calc(100vh - 52px - 26px);
overflow: hidden;
padding: 0;
}
.support-webview-wrap {
flex: 1;
overflow: hidden;
position: relative;
}
#support-iframe {
width: 100%;
height: 100%;
border: none;
display: block;
background: var(--bg);
}
/* REPOS */
#page-repos.active {
display: flex;
flex-direction: column;
overflow: hidden;
}
.repos-page-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 14px;
margin-bottom: 8px;
}
.repos-page-head .page-eyebrow { margin-bottom: 0; }
.repos-mini-dl {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 7px 11px;
border-radius: 10px;
border: 1px solid var(--border);
background: rgba(255,255,255,0.03);
flex-shrink: 0;
margin-top: 2px;
}
.repos-mini-dl-label {
font-size: 11px;
letter-spacing: 0.2px;
color: var(--dim);
}
.repos-mini-dl-value {
font-size: 13px;
font-weight: 700;
color: var(--text);
min-width: 30px;
text-align: right;
}
.repos-layout {
display: flex;
background: var(--card);
border: 1px solid var(--border);
border-radius: 12px;
overflow: hidden;
flex: 1;
min-height: 0;
user-select: none;
}
.repos-left {
width: 345px;
min-width: 140px;
max-width: 60%;
border-right: 1px solid var(--border);
display: flex;
flex-direction: column;
flex-shrink: 0;
}
.repos-resizer {
width: 4px;
background: transparent;
cursor: col-resize;
flex-shrink: 0;
transition: background 0.15s;
position: relative;
}
.repos-resizer:hover,
.repos-resizer.dragging { background: var(--accent); }
.repos-left-hdr {
padding: 10px 12px;
border-bottom: 1px solid var(--border);
display: flex;
gap: 5px;
flex-wrap: wrap;
}
.filter-chip {
padding: 3px 10px;
border-radius: 20px;
border: 1px solid var(--border);
background: transparent;
color: var(--sub);
font-size: 12px;
cursor: pointer;
transition: all 0.15s;
}
.filter-chip:hover { border-color: var(--muted); color: var(--text); }
.filter-chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.repos-list { flex: 1; overflow-y: auto; }
.repo-item {
display: flex;
align-items: center;
gap: 9px;
padding: 9px 12px;
cursor: pointer;
border-bottom: 1px solid transparent;
transition: background 0.1s;
border-left: 2px solid transparent;
}
.repo-item:hover { background: rgba(255,255,255,0.04); }
.repo-item.active { background: rgba(59,130,246,0.1); border-left-color: var(--accent); }
.repo-item-icon { color: var(--dim); flex-shrink: 0; }
.repo-item-info { flex: 1; min-width: 0; }
.repo-item-name {
font-size: 13px; font-weight: 500;
white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.repo-badge {
font-size: 10px; padding: 2px 6px;
border-radius: 4px; font-weight: 600; flex-shrink: 0;
}
.rb-dataset { background: rgba(59,130,246,0.15); color: var(--accent); }
.rb-model { background: rgba(59,130,246,0.15); color: var(--purple); }
.rb-space { background: rgba(16,185,129,0.15); color: var(--success); }
.repos-right { flex: 1; min-width: 0; display: flex; flex-direction: column; overflow: hidden; }
.detail-hdr {
padding: 12px 16px;
border-bottom: 1px solid var(--border);
display: flex;
align-items: center;
justify-content: space-between;
background: rgba(255,255,255,0.02);
}
.detail-hdr-title { font-size: 21px; font-weight: 700; letter-spacing: 0.1px; }
.detail-hdr-link {
display: inline-flex;
align-items: center;
gap: 6px;
font-size: 12px;
color: #9bc2ff;
background: rgba(37,99,235,0.12);
border: 1px solid rgba(59,130,246,0.35);
border-radius: 8px;
cursor: pointer;
padding: 5px 10px;
transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
animation: hfBtnPulse 2.2s ease-in-out infinite;
}
.detail-hdr-link:hover {
background: rgba(59,130,246,0.2);
border-color: rgba(125,176,255,0.62);
color: #d5e6ff;
transform: translateY(-1px);
text-decoration: none;
}
.detail-hdr-link:active { transform: translateY(0) scale(0.98); }
.detail-hdr-link svg { transition: transform 0.16s ease; }
.detail-hdr-link:hover svg { transform: translateX(1px) translateY(-1px); }
@keyframes hfBtnPulse {
0%, 100% { box-shadow: 0 0 0 0 rgba(59,130,246,0.0); }
50% { box-shadow: 0 0 0 6px rgba(59,130,246,0.07); }
}
.detail-tabs {
display: flex;
border-bottom: 1px solid var(--border);
padding: 0 14px;
background: rgba(255,255,255,0.015);
}
.detail-tab {
padding: 8px 14px;
font-size: 13px; font-weight: 500;
color: var(--sub);
border: none; background: none; cursor: pointer;
border-bottom: 2px solid transparent;
margin-bottom: -1px;
transition: color 0.15s;
}
.detail-tab:hover { color: var(--text); }
.detail-tab.active { color: var(--text); border-bottom-color: var(--accent); }
.detail-body { flex: 1; overflow-y: auto; background: rgba(7,11,26,0.5); }
.detail-panel { display: none; }
.detail-panel.active { display: block; }
.file-list { padding: 0; }
.file-head {
display: grid;
grid-template-columns: minmax(220px, 1.4fr) minmax(180px, 1fr) 120px 80px 42px;
gap: 10px;
padding: 8px 16px;
border-top: 1px solid rgba(255,255,255,0.03);
border-bottom: 1px solid rgba(255,255,255,0.06);
color: var(--dim);
font-size: 11px;
letter-spacing: 0.35px;
text-transform: uppercase;
background: rgba(255,255,255,0.015);
position: sticky;
top: 0;
z-index: 1;
}
.file-item {
display: grid;
grid-template-columns: minmax(220px, 1.4fr) minmax(180px, 1fr) 120px 80px 42px;
gap: 10px;
align-items: center;
padding: 8px 16px;
font-size: 13px;
color: var(--sub);
border-top: 1px solid rgba(255,255,255,0.03);
}
.file-item:hover { background: rgba(255,255,255,0.03); }
.file-name-wrap { display: flex; align-items: center; gap: 9px; min-width: 0; }
.file-item svg { color: var(--dim); flex-shrink: 0; }
.file-name {
color: var(--text);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.file-commit {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
color: var(--sub);
font-size: 12px;
}
.file-updated,
.file-size { font-size: 11px; color: var(--dim); text-align: right; }
.file-action {
display: flex;
justify-content: flex-end;
}
.file-dl-btn {
width: 24px;
height: 24px;
border-radius: 6px;
border: 1px solid rgba(96, 165, 250, 0.35);
background: rgba(30, 58, 138, 0.2);
color: #cfe3ff;
cursor: pointer;
display: inline-flex;
align-items: center;
justify-content: center;
transition: all 0.15s;
padding: 0;
}
.file-dl-btn:hover {
border-color: rgba(147, 197, 253, 0.7);
background: rgba(59, 130, 246, 0.35);
color: #f8fbff;
transform: translateY(-1px);
}
.file-dl-btn svg {
color: currentColor;
}
.repo-files-shell {
display: flex;
flex-direction: column;
min-height: 0;
height: 100%;
}
.repo-files-toolbar {
display: flex;
align-items: center;
gap: 8px;
padding: 10px 12px;
border-bottom: 1px solid rgba(147, 197, 253, 0.16);
background:
linear-gradient(180deg, rgba(23, 37, 84, 0.28), rgba(15, 23, 42, 0.16)),
rgba(12, 20, 44, 0.35);
backdrop-filter: blur(6px);
}
.repo-tool-btn {
height: 30px;
padding: 0 10px;
border-radius: 8px;
border: 1px solid rgba(148, 163, 184, 0.35);
background: rgba(15, 23, 42, 0.55);
color: #d7e5ff;
font-size: 12px;
font-weight: 600;
cursor: pointer;
transition: all 0.16s ease;
display: inline-flex;
align-items: center;
gap: 6px;
}
.repo-tool-btn:hover {
border-color: rgba(96, 165, 250, 0.62);
background: rgba(30, 64, 175, 0.24);
color: #edf4ff;
transform: translateY(-1px);
}
.repo-tool-btn:disabled {
opacity: 0.45;
cursor: not-allowed;
transform: none;
}
.repo-breadcrumb {
flex: 1;
min-width: 0;
display: flex;
align-items: center;
gap: 4px;
overflow-x: auto;
white-space: nowrap;
scrollbar-width: thin;
padding-bottom: 1px;
}
.repo-crumb {
border: 1px solid rgba(59, 130, 246, 0.28);
background: rgba(30, 58, 138, 0.2);
color: #dbeafe;
border-radius: 999px;
height: 24px;
padding: 0 10px;
font-size: 11px;
font-weight: 600;
cursor: pointer;
transition: all 0.15s;
}
.repo-crumb:hover {
background: rgba(59, 130, 246, 0.28);
border-color: rgba(147, 197, 253, 0.56);
}
.repo-crumb.current {
cursor: default;
background: rgba(59, 130, 246, 0.35);
border-color: rgba(147, 197, 253, 0.68);
color: #f8fbff;
}
.repo-cache-pill {
border: 1px solid rgba(30, 64, 175, 0.45);
background: rgba(30, 64, 175, 0.16);
color: #bfdbfe;
border-radius: 999px;
padding: 3px 8px;
font-size: 10px;
font-weight: 700;
letter-spacing: 0.05em;
text-transform: uppercase;
flex-shrink: 0;
}
.repo-tree-pane {
overflow: auto;
min-height: 0;
flex: 1;
}
.file-item.repo-entry {
cursor: pointer;
transition: background 0.14s ease, border-color 0.14s ease;
}
.file-item.repo-entry:hover {
background: rgba(59, 130, 246, 0.08);
}
.file-item.repo-entry.selected {
background: rgba(37, 99, 235, 0.2);
border-left: 2px solid rgba(147, 197, 253, 0.85);
padding-left: 14px;
}
.repo-dblclick-hint {
margin-top: 8px;
color: #7da6dd;
font-size: 11px;
padding: 0 2px;
}
.commit-list { padding: 2px 0; }
.commit-item {
padding: 9px 16px;
border-top: 1px solid rgba(255,255,255,0.03);
}
.commit-item:hover { background: rgba(255,255,255,0.03); }
.commit-msg {
font-size: 13px; color: var(--text); margin-bottom: 4px;
white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.commit-meta { font-size: 11px; color: var(--dim); display: flex; gap: 8px; }
.commit-hash { font-family: monospace; color: var(--accent); }
/* DOWNLOADS */
.dl-ad-wrap {
position: relative;
border-radius: 16px;
border: 1px solid rgba(130,145,214,0.26);
min-height: 280px;
margin-bottom: 14px;
overflow: hidden;
background: #0a1026;
box-shadow:
inset 0 1px 0 rgba(200,220,255,0.05),
0 14px 30px rgba(4, 10, 28, 0.44);
}
.dl-ad-bg {
position: absolute;
inset: 0;
background-size: contain;
background-repeat: no-repeat;
background-position: 58% center;
filter: saturate(1.04) contrast(1.02);
transform: scale(1);
transition: background-image 0.35s ease;
}
.dl-ad-bg::after {
content: '';
position: absolute;
inset: 0;
background:
linear-gradient(90deg, rgba(8, 14, 34, 0.92) 0%, rgba(8, 14, 34, 0.74) 42%, rgba(8, 14, 34, 0.48) 65%, rgba(8, 14, 34, 0.8) 100%),
radial-gradient(500px 190px at 14% 8%, rgba(80, 130, 255, 0.23), transparent 62%);
}
.dl-ad-content {
position: relative;
z-index: 1;
display: flex;
flex-direction: column;
gap: 9px;
padding: 24px 24px 24px 58px;
max-width: 56%;
}
.dl-ad-kicker {
color: #9fbcff;
font-size: 11px;
font-weight: 700;
letter-spacing: 0.9px;
text-transform: uppercase;
}
.dl-ad-title {
margin: 0;
color: #ecf1ff;
font-size: clamp(24px, 3vw, 37px);
line-height: 1.1;
font-weight: 800;
}
.dl-ad-desc {
margin: 0;
color: #c9d4f1;
font-size: 13px;
line-height: 1.55;
max-width: 720px;
}
.dl-ad-actions {
margin-top: 4px;
display: flex;
gap: 8px;
flex-wrap: wrap;
}
.dl-ad-btn {
border: 1px solid rgba(130,160,255,0.45);
background: rgba(72, 125, 255, 0.2);
color: #dcebff;
border-radius: 10px;
height: 36px;
padding: 0 14px;
font-size: 12px;
font-weight: 700;
cursor: pointer;
transition: all 0.15s;
}
.dl-ad-btn:hover {
transform: translateY(-1px);
background: rgba(90, 141, 255, 0.3);
border-color: rgba(153, 184, 255, 0.78);
}
.dl-ad-btn.ghost {
background: rgba(0, 0, 0, 0.24);
border-color: rgba(200, 212, 242, 0.3);
color: #d6ddf5;
}
.dl-ad-btn.os {
min-width: 130px;
justify-content: center;
display: inline-flex;
align-items: center;
gap: 6px;
background: rgba(8, 15, 38, 0.62);
border-color: rgba(168, 186, 236, 0.4);
color: #dce6ff;
}
.dl-ad-btn.os:hover {
background: rgba(22, 36, 79, 0.85);
}
.dl-ad-btn.os.active {
background: rgba(72, 125, 255, 0.32);
border-color: rgba(153, 184, 255, 0.88);
color: #f2f7ff;
}
.dl-ad-arrow {
position: absolute;
top: 50%;
transform: translateY(-50%);
width: 34px;
height: 34px;
border-radius: 999px;
border: 1px solid rgba(180, 198, 239, 0.4);
background: rgba(12, 20, 46, 0.8);
color: #dde6ff;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
z-index: 2;
}
.dl-ad-arrow:hover { background: rgba(22, 33, 72, 0.96); }
.dl-ad-arrow.prev { left: 12px; }
.dl-ad-arrow.next { right: 12px; }
.dl-ad-dots {
position: absolute;
left: 0;
right: 0;
bottom: 10px;
display: flex;
justify-content: center;
gap: 7px;
z-index: 2;
}
.dl-ad-dot {
width: 7px;
height: 7px;
border-radius: 50%;
border: 0;
background: rgba(225, 234, 255, 0.38);
cursor: pointer;
padding: 0;
}
.dl-ad-dot.active {
width: 20px;
border-radius: 999px;
background: rgba(219, 231, 255, 0.95);
}
.dl-channel-grid {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 10px;
margin-bottom: 20px;
}
.dl-channel {
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
min-height: 42px;
border: 1px solid var(--border);
border-radius: 10px;
background: rgba(15, 23, 42, 0.52);
color: var(--sub);
font-size: 13px;
font-weight: 700;
cursor: pointer;
transition: all 0.15s;
}
.dl-channel:hover {
border-color: var(--muted);
color: var(--text);
transform: translateY(-1px);
}
.dl-channel.active {
background: linear-gradient(180deg, rgba(59, 130, 246, 0.34), rgba(59, 130, 246, 0.22));
border-color: rgba(147, 197, 253, 0.85);
color: #f8fbff;
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
.dl-toolbar {
display: flex; align-items: center; gap: 6px;
margin-bottom: 20px;
flex-wrap: wrap;
}
.os-chip {
display: flex; align-items: center; gap: 5px;
padding: 5px 12px;
border-radius: 6px;
border: 1px solid var(--border);
background: transparent;
color: var(--sub);
font-size: 12px; font-weight: 500;
cursor: pointer;
transition: all 0.15s;
}
.os-chip:hover { border-color: var(--muted); color: var(--text); }
.os-chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.os-chip-count {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 18px;
height: 18px;
padding: 0 6px;
border-radius: 999px;
background: rgba(255,255,255,0.1);
color: inherit;
font-size: 11px;
font-weight: 700;
line-height: 1;
}
.dl-grid {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 12px;
position: relative;
isolation: isolate;
align-items: start;
}
.dl-grid::before {
content: '';
position: absolute;
inset: -12px -8px;
border-radius: 18px;
background:
radial-gradient(560px 180px at 16% 8%, rgba(79,130,255,0.13), transparent 64%),
radial-gradient(620px 220px at 88% 20%, rgba(142,92,255,0.1), transparent 67%);
filter: blur(6px);
opacity: 0.8;
pointer-events: none;
z-index: 0;
}
@media (max-width: 1080px) {
.dl-ad-content { max-width: 72%; padding-left: 54px; }
.dl-channel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
.dl-ad-wrap { min-height: 260px; }
.dl-ad-content { max-width: calc(100% - 88px); padding: 20px 18px 20px 52px; }
.dl-ad-bg { background-position: 66% center; }
.dl-channel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
.dl-ad-wrap { min-height: 240px; }
.dl-ad-title { font-size: clamp(21px, 7vw, 28px); }
.dl-ad-desc { font-size: 12px; }
.dl-ad-content { max-width: calc(100% - 30px); }
.dl-ad-bg { background-position: center; }
.dl-ad-arrow { display: none; }
.dl-channel-grid { grid-template-columns: 1fr; }
.dl-grid { grid-template-columns: 1fr; }
}
.dl-card {
background: var(--card);
border: 1px solid var(--border);
border-radius: 10px;
padding: 18px 20px;
display: flex;
flex-direction: column;
gap: 10px;
transition: border-color 0.15s;
}
.dl-card:hover { border-color: var(--muted); }
.dl-card-header { display: flex; align-items: flex-start; gap: 12px; }
.dl-card-icon {
width: 36px; height: 36px;
border-radius: 8px;
background: rgba(59,130,246,0.15);
display: flex; align-items: center; justify-content: center;
color: var(--accent);
flex-shrink: 0;
}
.dl-card-icon.linux { background: rgba(245,158,11,0.15); color: var(--warn); }
.dl-card-icon.mac { background: rgba(16,185,129,0.15); color: var(--success); }
.dl-card-icon.apk { background: rgba(14,165,233,0.15); color: #38bdf8; }
.dl-card-name { font-size: 14px; font-weight: 600; line-height: 1.3; }
.dl-card-meta { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 4px; }
.dl-tag {
font-size: 11px; padding: 2px 7px;
border-radius: 4px; font-weight: 500;
}
.dl-tag.version { background: rgba(59,130,246,0.15); color: var(--accent); }
.dl-tag.size { background: rgba(255,255,255,0.06); color: var(--sub); }
.dl-tag.date { background: rgba(255,255,255,0.06); color: var(--sub); }
.dl-card-notes { font-size: 12px; color: var(--dim); line-height: 1.5; }
.dl-card-footer { display: flex; gap: 7px; align-items: center; margin-top: 4px; }
.dl-btn {
flex: 1; padding: 7px 14px;
border-radius: 6px; border: none;
font-size: 13px; font-weight: 600;
cursor: pointer;
display: flex; align-items: center; justify-content: center; gap: 6px;
transition: all 0.15s;
}
.dl-btn.primary { background: var(--accent); color: #fff; }
.dl-btn.primary:hover { background: var(--accent-d); }
.dl-btn.primary:disabled { background: var(--muted); cursor: not-allowed; opacity: 0.7; }
.dl-btn.installed {
background: rgba(16,185,129,0.1); color: var(--success);
border: 1px solid rgba(16,185,129,0.25); cursor: default;
}
.dl-btn.open-btn {
background: transparent; color: var(--sub);
border: 1px solid var(--border); flex: none; padding: 7px 10px;
}
.dl-btn.open-btn:hover { color: var(--text); border-color: var(--muted); }
.dl-btn.update {
background: rgba(251,146,60,0.12); color: #fb923c;
border: 1px solid rgba(251,146,60,0.35); flex: 1;
}
.dl-btn.update:hover { background: rgba(251,146,60,0.22); border-color: rgba(251,146,60,0.6); }
.dl-tag.update-badge {
background: rgba(251,146,60,0.15); color: #fb923c;
border: 1px solid rgba(251,146,60,0.3); border-radius: 4px;
font-size: 10px; font-weight: 700; padding: 1px 6px; letter-spacing: 0.4px;
}
/* APP UPDATE TOAST */
#app-update-toast {
position: fixed; top: 54px; right: 18px; z-index: 9999;
background: var(--card); border: 1px solid rgba(251,146,60,0.45);
border-radius: 12px; padding: 14px 16px;
min-width: 280px; max-width: 340px;
box-shadow: 0 8px 32px rgba(0,0,0,0.5);
display: flex; flex-direction: column; gap: 8px;
animation: toastIn 0.22s ease;
}
#app-update-toast.hidden { display: none; }
.toast-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.toast-head-label { display: flex; align-items: center; gap: 7px; color: #fb923c; font-weight: 700; font-size: 13px; }
.toast-close-btn {
background: none; border: none; color: var(--dim); cursor: pointer;
font-size: 14px; line-height: 1; padding: 2px 4px; border-radius: 4px; font-family: inherit;
}
.toast-close-btn:hover { color: var(--text); background: var(--border); }
.toast-ver { font-size: 11px; color: var(--dim); }
.toast-notes { font-size: 12px; color: var(--sub); line-height: 1.5; }
.toast-actions { display: flex; gap: 8px; margin-top: 2px; }
.toast-act-btn {
flex: 1; padding: 7px 12px; border-radius: 7px;
font-size: 12px; font-weight: 600; cursor: pointer;
border: none; font-family: inherit; transition: all 0.15s;
}
.toast-act-btn.primary { background: #fb923c; color: #000; }
.toast-act-btn.primary:hover { background: #f97316; }
.toast-act-btn.primary:disabled { opacity: 0.6; cursor: not-allowed; }
.toast-act-btn.secondary {
background: transparent; border: 1px solid var(--border); color: var(--sub);
}
.toast-act-btn.secondary:hover { color: var(--text); border-color: var(--muted); }
@keyframes toastIn {
from { opacity: 0; transform: translateY(-10px) scale(0.96); }
to { opacity: 1; transform: translateY(0) scale(1); }
}
.prog-wrap {
height: 4px; background: var(--border);
border-radius: 2px; overflow: hidden;
}
.prog-bar {
height: 100%; background: var(--accent);
border-radius: 2px; width: 0%;
transition: width 0.2s;
}
.npm-log-line {
font-size: 11px; color: var(--dim); padding: 4px 2px 0;
white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* NPM PACKAGES */
.npm-topbar {
display: flex;
align-items: center;
gap: 12px;
margin-bottom: 12px;
}
.npm-search-input {
flex: 1;
background: var(--card);
border: 1px solid var(--border);
border-radius: 10px;
padding: 10px 14px;
color: var(--text);
font-size: 14px;
font-family: inherit;
outline: none;
transition: border-color 0.15s, box-shadow 0.15s;
}
.npm-search-input:focus {
border-color: rgba(96, 165, 250, 0.75);
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.14);
}
.npm-inline-stats {
display: flex;
gap: 8px;
flex-shrink: 0;
}
.npm-inline-stat {
min-width: 110px;
padding: 8px 10px;
border-radius: 10px;
background: rgba(22, 35, 64, 0.75);
border: 1px solid rgba(148, 163, 184, 0.26);
text-align: right;
}
.npm-inline-stat .label {
display: block;
color: var(--dim);
font-size: 10px;
text-transform: uppercase;
letter-spacing: 0.06em;
margin-bottom: 2px;
}
.npm-inline-stat .value {
color: #60a5fa;
font-size: 22px;
font-weight: 800;
line-height: 1;
}
.npm-layout {
display: grid;
grid-template-columns: minmax(260px, 0.9fr) minmax(420px, 1.6fr);
gap: 12px;
min-height: calc(100vh - 260px);
}
.npm-panel {
border: 1px solid rgba(148, 163, 184, 0.28);
border-radius: 12px;
background: rgba(15, 23, 42, 0.7);
overflow: hidden;
min-height: 0;
display: flex;
flex-direction: column;
}
.npm-panel-head {
padding: 9px 12px;
font-size: 11px;
letter-spacing: 0.07em;
text-transform: uppercase;
color: #93c5fd;
border-bottom: 1px solid rgba(148, 163, 184, 0.2);
background: rgba(20, 31, 57, 0.85);
}
.npm-list {
flex: 1;
overflow-y: auto;
}
.npm-list-item {
width: 100%;
border: none;
border-bottom: 1px solid rgba(148, 163, 184, 0.14);
background: transparent;
color: var(--text);
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
text-align: left;
padding: 10px 12px;
cursor: pointer;
transition: background 0.12s;
}
.npm-list-item:hover { background: rgba(59, 130, 246, 0.08); }
.npm-list-item.active {
background: rgba(59, 130, 246, 0.18);
box-shadow: inset 2px 0 0 #60a5fa;
}
.npm-list-name {
font-size: 13px;
font-weight: 700;
line-height: 1.3;
word-break: break-all;
}
.npm-list-meta {
margin-top: 2px;
color: var(--dim);
font-size: 11px;
}
.npm-list-dl {
color: #93c5fd;
font-size: 11px;
font-weight: 700;
flex-shrink: 0;
}
.npm-detail {
flex: 1;
overflow-y: auto;
padding: 14px;
}
.npm-detail-title {
font-size: 26px;
line-height: 1.15;
font-weight: 800;
color: #e5edff;
word-break: break-all;
margin-bottom: 6px;
}
.npm-badges {
display: flex;
flex-wrap: wrap;
gap: 6px;
margin-bottom: 10px;
}
.npm-badge {
font-size: 11px;
border-radius: 999px;
padding: 3px 9px;
border: 1px solid rgba(96, 165, 250, 0.36);
background: rgba(30, 58, 138, 0.24);
color: #bfdbfe;
font-weight: 700;
}
.npm-detail-desc {
color: var(--sub);
font-size: 13px;
line-height: 1.6;
margin-bottom: 12px;
}
.npm-actions {
display: flex;
gap: 8px;
flex-wrap: wrap;
margin-bottom: 14px;
}
.npm-open-btn {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 7px 12px;
border-radius: 8px;
border: 1px solid rgba(148, 163, 184, 0.36);
background: rgba(15, 23, 42, 0.5);
color: #d6e6ff;
font-size: 12px;
font-weight: 600;
font-family: inherit;
cursor: pointer;
transition: all 0.15s;
}
.npm-open-btn:hover {
border-color: rgba(96, 165, 250, 0.7);
color: #ffffff;
background: rgba(37, 99, 235, 0.28);
}
.npm-kv-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 8px;
margin-bottom: 14px;
}
.npm-kv-card {
border: 1px solid rgba(148, 163, 184, 0.22);
border-radius: 10px;
background: rgba(15, 23, 42, 0.45);
padding: 8px 10px;
}
.npm-kv-label {
color: var(--dim);
font-size: 10px;
text-transform: uppercase;
letter-spacing: 0.06em;
}
.npm-kv-value {
color: #dbeafe;
font-size: 14px;
font-weight: 700;
margin-top: 3px;
word-break: break-word;
}
.npm-section-title {
margin-top: 4px;
margin-bottom: 6px;
color: #93c5fd;
font-size: 11px;
text-transform: uppercase;
letter-spacing: 0.07em;
font-weight: 700;
}
.npm-readme {
border: 1px solid rgba(148, 163, 184, 0.2);
border-radius: 10px;
background: rgba(9, 14, 29, 0.8);
color: #d4deee;
padding: 10px;
font-size: 12px;
line-height: 1.55;
max-height: 260px;
overflow-y: auto;
margin-bottom: 10px;
}
.npm-readme-preview h1,
.npm-readme-preview h2,
.npm-readme-preview h3,
.npm-readme-preview h4,
.npm-readme-preview h5,
.npm-readme-preview h6 {
color: #eef4ff;
margin: 12px 0 8px;
line-height: 1.3;
position: relative;
padding-right: 22px;
}
.npm-md-anchor {
position: absolute;
right: 0;
top: 50%;
transform: translateY(-50%);
border: 1px solid rgba(148, 163, 184, 0.3);
background: rgba(15, 23, 42, 0.5);
color: #93c5fd;
border-radius: 6px;
width: 18px;
height: 18px;
font-size: 11px;
line-height: 1;
cursor: pointer;
opacity: 0;
transition: opacity 0.12s, background 0.12s, border-color 0.12s;
display: inline-flex;
align-items: center;
justify-content: center;
padding: 0;
}
.npm-readme-preview h1:hover .npm-md-anchor,
.npm-readme-preview h2:hover .npm-md-anchor,
.npm-readme-preview h3:hover .npm-md-anchor,
.npm-readme-preview h4:hover .npm-md-anchor,
.npm-readme-preview h5:hover .npm-md-anchor,
.npm-readme-preview h6:hover .npm-md-anchor {
opacity: 1;
}
.npm-md-anchor:hover {
background: rgba(37, 99, 235, 0.35);
border-color: rgba(147, 197, 253, 0.75);
color: #eaf2ff;
}
.npm-readme-preview h1 { font-size: 20px; }
.npm-readme-preview h2 { font-size: 17px; }
.npm-readme-preview h3 { font-size: 15px; }
.npm-readme-preview p {
margin: 7px 0;
color: #d4deee;
white-space: normal;
word-break: break-word;
}
.npm-readme-preview a {
color: #93c5fd;
text-decoration: underline;
text-underline-offset: 2px;
cursor: pointer;
}
.npm-readme-preview a:hover {
color: #bfdbfe;
}
.npm-readme-preview ul,
.npm-readme-preview ol {
margin: 6px 0 10px 18px;
color: #d4deee;
}
.npm-readme-preview li {
margin: 3px 0;
}
.npm-readme-preview li.md-nested {
list-style-position: outside;
}
.npm-readme-preview li.check-item {
list-style: none;
margin-left: -14px;
display: flex;
align-items: flex-start;
gap: 7px;
}
.npm-readme-preview li.check-item input {
margin-top: 2px;
accent-color: #3b82f6;
}
.npm-readme-preview table {
width: 100%;
border-collapse: collapse;
margin: 10px 0;
border: 1px solid rgba(148, 163, 184, 0.25);
border-radius: 8px;
overflow: hidden;
background: rgba(15, 23, 42, 0.38);
}
.npm-readme-preview thead th {
background: rgba(30, 58, 138, 0.32);
color: #dbeafe;
font-size: 12px;
text-align: left;
border-bottom: 1px solid rgba(148, 163, 184, 0.22);
padding: 7px 8px;
}
.npm-readme-preview tbody td {
border-top: 1px solid rgba(148, 163, 184, 0.15);
padding: 7px 8px;
color: #d4deee;
font-size: 12px;
vertical-align: top;
}
.npm-readme-preview img {
max-width: 100%;
height: auto;
display: block;
margin: 10px auto;
border-radius: 10px;
border: 1px solid rgba(148, 163, 184, 0.22);
background: rgba(2, 6, 23, 0.55);
}
.npm-md-missing-image {
display: inline-block;
margin: 3px 0;
font-size: 11px;
color: #94a3b8;
padding: 2px 6px;
border-radius: 6px;
border: 1px dashed rgba(148, 163, 184, 0.38);
background: rgba(15, 23, 42, 0.4);
}
.npm-readme-preview blockquote {
margin: 10px 0;
padding: 8px 10px;
border-left: 3px solid rgba(96, 165, 250, 0.6);
background: rgba(30, 58, 138, 0.2);
color: #bfdbfe;
border-radius: 0 8px 8px 0;
}
.npm-readme-preview pre {
margin: 10px 0;
border: 1px solid rgba(148, 163, 184, 0.24);
border-radius: 8px;
background: rgba(6, 10, 24, 0.9);
color: #c7d8f8;
padding: 10px;
overflow: auto;
line-height: 1.5;
}
.npm-readme-preview code {
font-family: 'Cascadia Code', Consolas, 'Courier New', monospace;
font-size: 11px;
background: rgba(37, 99, 235, 0.2);
border-radius: 5px;
padding: 1px 5px;
color: #dbeafe;
}
.npm-readme-preview pre code {
background: transparent;
padding: 0;
color: inherit;
}
.npm-readme-preview hr {
border: none;
border-top: 1px solid rgba(148, 163, 184, 0.3);
margin: 10px 0;
}
.npm-readme-empty {
color: var(--dim);
font-size: 12px;
padding: 2px 0;
}
.npm-version-list {
border: 1px solid rgba(148, 163, 184, 0.2);
border-radius: 10px;
overflow: hidden;
background: rgba(9, 14, 29, 0.72);
}
.npm-version-row {
display: grid;
grid-template-columns: 1fr auto;
gap: 8px;
padding: 7px 10px;
font-size: 12px;
border-top: 1px solid rgba(148, 163, 184, 0.14);
color: #dbeafe;
}
.npm-version-row:first-child { border-top: none; }
.npm-version-date { color: var(--dim); font-size: 11px; }
@media (max-width: 980px) {
.npm-topbar {
flex-direction: column;
align-items: stretch;
}
.npm-inline-stats {
justify-content: flex-end;
}
.npm-layout {
grid-template-columns: 1fr;
}
.npm-kv-grid {
grid-template-columns: 1fr;
}
}