Files
lanspread/crates/lanspread-tauri-deno-ts/src/styles/launcher.css
T
ddidderr a913e4c776 feat(settings): show automatic build number
The launcher settings dialog now shows a Build-Nr value in its footer so users
can identify the exact application build without manually updating a number
before release.

The value is generated by Vite when the frontend bundle is built and injected
as an import.meta.env constant. Using the current millisecond timestamp keeps
the number numeric and monotonic for normal builds without a checked-in counter
file or any extra build-state mutation. The tradeoff is that the value follows
the build machine clock rather than a central sequence service.

The footer layout now keeps the build number on the lower left and the Done
button on the lower right.

Test Plan:
- just frontend-test
- just build
- git diff --cached --check

Refs: local user request
2026-05-21 21:32:28 +02:00

1659 lines
32 KiB
CSS

/* Launcher root */
.launcher {
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
background: var(--bg-0);
color: var(--t-1);
overflow: hidden;
position: relative;
isolation: isolate;
}
.bg-flat {
background: var(--bg-0);
}
.bg-gradient {
background:
radial-gradient(
ellipse 80% 50% at 50% -10%,
color-mix(in srgb, var(--accent) 22%, transparent) 0%,
transparent 60%
),
linear-gradient(180deg, #0c1218 0%, var(--bg-0) 100%);
}
.bg-animated {
background:
radial-gradient(
ellipse 60% 40% at 20% 0%,
color-mix(in srgb, var(--accent) 24%, transparent) 0%,
transparent 55%
),
radial-gradient(
ellipse 55% 40% at 85% 8%,
color-mix(in srgb, var(--accent) 16%, transparent) 0%,
transparent 55%
),
linear-gradient(180deg, #0c1218 0%, var(--bg-0) 100%);
background-size: 145% 130%, 140% 125%, 100% 100%;
animation: bgshift 22s ease-in-out infinite alternate;
}
@keyframes bgshift {
0% {
background-position: 0% 0%, 100% 0%, 0% 0%;
}
50% {
background-position: 12% 6%, 82% 9%, 0% 0%;
}
100% {
background-position: 4% 10%, 92% 16%, 0% 0%;
}
}
@media (prefers-reduced-motion: reduce) {
.bg-animated {
animation: none;
}
}
/* Top bar */
.topbar {
position: relative;
z-index: 10;
background: rgba(10, 14, 19, 0.65);
-webkit-backdrop-filter: blur(20px) saturate(140%);
backdrop-filter: blur(20px) saturate(140%);
border-bottom: 1px solid var(--bd-1);
display: flex;
align-items: center;
gap: 18px;
padding: 14px 24px;
flex-wrap: nowrap;
min-height: 64px;
}
/* Brand */
.brand {
display: flex;
align-items: center;
gap: 10px;
flex-shrink: 0;
}
.brand-mark {
width: 28px;
height: 28px;
border-radius: 7px;
display: grid;
place-items: center;
background: var(--accent);
font-family: var(--font-display);
font-size: 20px;
letter-spacing: 0.02em;
color: white;
box-shadow:
0 6px 20px -6px color-mix(in srgb, var(--accent) 60%, black),
inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.brand-name {
font-weight: 700;
font-size: 15px;
letter-spacing: -0.005em;
color: var(--t-1);
}
/* Peer count chip in brand area */
.brand-peers {
display: inline-flex;
align-items: center;
gap: 6px;
height: 24px;
padding: 0 10px;
margin-left: 6px;
border-radius: 999px;
background: rgba(255, 255, 255, 0.06);
border: 1px solid var(--bd-1);
font-size: 11.5px;
font-weight: 600;
color: var(--t-2);
font-variant-numeric: tabular-nums;
}
.brand-peers-dot {
width: 6px;
height: 6px;
border-radius: 999px;
background: var(--ok);
box-shadow: 0 0 6px var(--ok);
}
/* Segmented filters */
.seg {
position: relative;
display: inline-flex;
background: var(--bg-2);
border: 1px solid var(--bd-1);
border-radius: 999px;
padding: 4px;
flex-shrink: 0;
}
.seg-thumb {
position: absolute;
top: 4px;
bottom: 4px;
border-radius: 999px;
background: var(--accent);
transition:
left 0.22s cubic-bezier(0.4, 1.2, 0.5, 1),
width 0.22s cubic-bezier(0.4, 1.2, 0.5, 1);
box-shadow: 0 4px 14px -4px color-mix(in srgb, var(--accent) 60%, black);
}
.seg-btn {
position: relative;
z-index: 1;
display: inline-flex;
align-items: center;
gap: 8px;
padding: 8px 16px;
background: transparent;
color: var(--t-2);
border: 0;
border-radius: 999px;
font: inherit;
font-weight: 600;
font-size: 12.5px;
cursor: pointer;
white-space: nowrap;
transition: color 0.15s;
}
.seg-btn:hover {
color: var(--t-1);
}
.seg-btn.is-active {
color: white;
}
.seg-count {
font-size: 11px;
font-weight: 700;
padding: 1px 6px;
border-radius: 999px;
background: rgba(255, 255, 255, 0.08);
color: inherit;
font-variant-numeric: tabular-nums;
}
.seg-btn.is-active .seg-count {
background: rgba(0, 0, 0, 0.25);
color: white;
}
/* Search */
.search {
position: relative;
display: flex;
align-items: center;
gap: 8px;
padding: 0 12px;
background: var(--bg-2);
border: 1px solid var(--bd-1);
border-radius: 8px;
height: 36px;
min-width: 320px;
flex: 0 1 380px;
color: var(--t-3);
transition:
border-color 0.15s,
background 0.15s,
box-shadow 0.15s,
color 0.15s;
}
.search:focus-within {
border-color: color-mix(in srgb, var(--accent) 60%, var(--bd-2));
background: var(--bg-1);
box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent);
color: var(--t-1);
}
.search input {
flex: 1;
min-width: 0;
background: transparent;
border: 0;
outline: 0;
color: var(--t-1);
font: inherit;
font-size: 13px;
}
.search input::placeholder {
color: var(--t-3);
}
.search-clear {
display: inline-grid;
place-items: center;
width: 22px;
height: 22px;
padding: 0;
border: 0;
border-radius: 999px;
background: transparent;
color: var(--t-3);
cursor: pointer;
}
.search-clear:hover {
color: var(--t-1);
background: rgba(255, 255, 255, 0.08);
}
.search-kbd {
display: inline-grid;
place-items: center;
min-width: 18px;
height: 18px;
padding: 0 5px;
border-radius: 4px;
background: rgba(255, 255, 255, 0.06);
border: 1px solid var(--bd-1);
font-size: 11px;
color: var(--t-3);
font-family: var(--font-mono);
}
.search:focus-within .search-kbd {
opacity: 0.4;
}
/* Sort menu */
.sort {
position: relative;
flex-shrink: 0;
}
.sort-btn {
display: inline-flex;
align-items: center;
gap: 8px;
height: 36px;
padding: 0 12px;
background: var(--bg-2);
border: 1px solid var(--bd-1);
border-radius: 8px;
color: var(--t-2);
font: inherit;
font-size: 12.5px;
cursor: pointer;
transition:
border-color 0.15s,
color 0.15s;
}
.sort-btn:hover {
color: var(--t-1);
border-color: var(--bd-2);
}
.sort-btn strong {
color: var(--t-1);
font-weight: 600;
}
.sort-menu {
position: absolute;
top: calc(100% + 6px);
right: 0;
z-index: 50;
min-width: 200px;
padding: 4px;
background: var(--bg-3);
border: 1px solid var(--bd-2);
border-radius: 8px;
box-shadow:
0 16px 40px -8px rgba(0, 0, 0, 0.5),
0 0 0 1px rgba(255, 255, 255, 0.04);
}
.sort-menu button {
display: flex;
align-items: center;
gap: 8px;
width: 100%;
padding: 8px 10px;
background: transparent;
border: 0;
border-radius: 6px;
color: var(--t-1);
font: inherit;
font-size: 12.5px;
text-align: left;
cursor: pointer;
}
.sort-menu button:hover {
background: rgba(255, 255, 255, 0.06);
}
.sort-check {
width: 14px;
display: inline-grid;
place-items: center;
color: var(--accent);
}
/* Directory button */
.dirbtn {
display: inline-flex;
align-items: center;
gap: 8px;
height: 36px;
padding: 0 12px;
background: var(--bg-2);
border: 1px solid var(--bd-1);
border-radius: 8px;
color: var(--t-2);
font: inherit;
font-size: 12.5px;
cursor: pointer;
max-width: 360px;
transition:
border-color 0.15s,
color 0.15s;
flex-shrink: 1;
min-width: 0;
}
.dirbtn:hover {
border-color: var(--bd-2);
color: var(--t-1);
}
.dirbtn-label {
color: var(--t-1);
font-weight: 600;
flex-shrink: 0;
}
.dirbtn-path {
color: var(--t-3);
font-family: var(--font-mono);
font-size: 11.5px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
min-width: 0;
}
/* Kebab menu */
.kebab {
position: relative;
}
.kebab-btn {
width: 36px;
height: 36px;
display: grid;
place-items: center;
background: var(--bg-2);
border: 1px solid var(--bd-1);
border-radius: 8px;
color: var(--t-2);
cursor: pointer;
transition:
color 0.15s,
border-color 0.15s;
}
.kebab-btn:hover {
color: var(--t-1);
border-color: var(--bd-2);
}
.kebab-menu {
position: absolute;
top: calc(100% + 6px);
right: 0;
z-index: 50;
min-width: 180px;
padding: 4px;
background: var(--bg-3);
border: 1px solid var(--bd-2);
border-radius: 10px;
box-shadow: 0 16px 40px -8px rgba(0, 0, 0, 0.5);
}
.kebab-menu button {
display: block;
width: 100%;
padding: 8px 10px;
background: transparent;
border: 0;
border-radius: 6px;
color: var(--t-1);
font: inherit;
font-size: 12.5px;
text-align: left;
cursor: pointer;
}
.kebab-menu button:hover {
background: rgba(255, 255, 255, 0.06);
}
.kebab-sep {
height: 1px;
background: var(--bd-1);
margin: 4px 0;
}
/* Grid wrapper / results bar */
.grid-wrap {
flex: 1;
overflow: auto;
padding: 18px 24px 32px;
scrollbar-width: thin;
scrollbar-color: var(--bd-3) transparent;
}
.grid-wrap::-webkit-scrollbar {
width: 10px;
}
.grid-wrap::-webkit-scrollbar-thumb {
background: var(--bd-3);
border-radius: 5px;
border: 2px solid transparent;
background-clip: content-box;
}
.results-bar {
display: flex;
align-items: center;
justify-content: space-between;
padding: 4px 4px 16px;
gap: 16px;
}
.results-count {
color: var(--t-2);
font-size: 12.5px;
}
.results-count strong {
color: var(--t-1);
font-weight: 700;
}
/* Grid */
.grid {
display: grid;
gap: var(--card-gap, 16px);
grid-template-columns: repeat(auto-fill, minmax(var(--card-min, 188px), 1fr));
}
.density-compact {
--card-min: 148px;
--card-gap: 12px;
}
.density-normal {
--card-min: 188px;
--card-gap: 16px;
}
.density-large {
--card-min: 244px;
--card-gap: 20px;
}
/* Card */
.card {
position: relative;
display: flex;
flex-direction: column;
background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg-1) 100%);
border: 1px solid var(--bd-1);
border-radius: var(--radius-md);
cursor: pointer;
overflow: hidden;
transition:
transform 0.18s cubic-bezier(0.4, 1.2, 0.5, 1),
border-color 0.18s,
box-shadow 0.18s;
outline: 0;
text-align: left;
padding: 0;
font: inherit;
color: inherit;
}
.card:hover,
.card:focus-visible {
transform: translateY(-2px);
border-color: color-mix(in srgb, var(--accent) 45%, var(--bd-2));
box-shadow:
0 14px 30px -16px color-mix(in srgb, var(--accent) 50%, black),
0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent);
}
.card:focus-visible {
box-shadow:
0 14px 30px -16px color-mix(in srgb, var(--accent) 50%, black),
0 0 0 2px var(--accent);
}
/* Cover */
.card-cover-wrap {
position: relative;
width: 100%;
overflow: hidden;
background: var(--bg-3);
}
.card-cover-wrap[data-aspect="box"] {
aspect-ratio: 2 / 3;
}
.card-cover-wrap[data-aspect="square"] {
aspect-ratio: 1 / 1;
}
.card-cover-wrap[data-aspect="banner"] {
aspect-ratio: 16 / 9;
}
.cover {
position: absolute;
inset: 0;
overflow: hidden;
transition: transform 0.35s cubic-bezier(0.4, 1.2, 0.5, 1);
}
.card:hover .cover {
transform: scale(1.03);
}
.cover-image {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
object-fit: cover;
display: block;
}
.cover-base,
.cover-blob,
.cover-grain,
.cover-vignette,
.cover-mark {
position: absolute;
inset: 0;
pointer-events: none;
}
.cover-grain {
background-image:
repeating-linear-gradient(
0deg,
rgba(255, 255, 255, 0.018) 0 1px,
transparent 1px 3px
),
repeating-linear-gradient(
90deg,
rgba(0, 0, 0, 0.04) 0 1px,
transparent 1px 3px
);
mix-blend-mode: overlay;
opacity: 0.7;
}
.cover-vignette {
background: linear-gradient(
180deg,
transparent 30%,
rgba(0, 0, 0, 0.62) 100%
);
}
.cover-mark {
width: 100%;
height: 100%;
}
.cover-titlewrap {
position: absolute;
left: 0;
right: 0;
bottom: 0;
z-index: 2;
padding: 14px;
}
.cover-title {
font-family: var(--font-display);
font-weight: 400;
letter-spacing: 0.018em;
line-height: 1.02;
text-transform: uppercase;
color: white;
overflow-wrap: normal;
word-break: normal;
}
/* State chip */
.state-chip {
position: absolute;
top: 10px;
right: 10px;
z-index: 3;
display: inline-flex;
align-items: center;
gap: 6px;
padding: 4px 9px;
border-radius: 999px;
background: rgba(8, 12, 16, 0.78);
-webkit-backdrop-filter: blur(8px);
backdrop-filter: blur(8px);
border: 1px solid rgba(255, 255, 255, 0.08);
font-size: 10.5px;
font-weight: 600;
color: var(--t-1);
letter-spacing: 0.01em;
}
.state-dot {
width: 6px;
height: 6px;
border-radius: 999px;
}
.state-chip[data-state="installed"] .state-dot {
background: var(--ok);
box-shadow: 0 0 8px var(--ok);
}
.state-chip[data-state="local"] .state-dot {
background: var(--warn);
box-shadow: 0 0 8px var(--warn);
}
.state-chip[data-state="downloading"] .state-dot {
background: var(--accent);
box-shadow: 0 0 8px var(--accent);
animation: state-busy 1.2s ease-in-out infinite;
}
.state-chip[data-state="busy"] .state-dot {
background: var(--accent);
box-shadow: 0 0 8px var(--accent);
animation: state-busy 1.2s ease-in-out infinite;
}
@keyframes state-busy {
0%,
100% {
opacity: 0.4;
}
50% {
opacity: 1;
}
}
/* Multiplayer / peers badge */
.card-mp {
position: absolute;
top: 10px;
left: 10px;
z-index: 3;
display: inline-flex;
align-items: center;
gap: 4px;
padding: 4px 8px;
border-radius: 999px;
background: rgba(8, 12, 16, 0.65);
-webkit-backdrop-filter: blur(8px);
backdrop-filter: blur(8px);
border: 1px solid rgba(255, 255, 255, 0.06);
font-size: 10.5px;
font-weight: 600;
color: var(--t-1);
font-variant-numeric: tabular-nums;
}
/* Card body */
.card-body {
padding: 11px 12px 12px;
display: flex;
flex-direction: column;
gap: 8px;
}
.card-title {
font-weight: 600;
font-size: 13.5px;
color: var(--t-1);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
letter-spacing: -0.005em;
}
.card-meta {
display: flex;
align-items: center;
gap: 6px;
font-size: 11.5px;
color: var(--t-3);
font-variant-numeric: tabular-nums;
white-space: nowrap;
overflow: hidden;
}
.card-meta .card-dot {
opacity: 0.5;
}
.card-status {
min-height: 14px;
font-size: 11px;
color: var(--t-3);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.card-status.is-error {
color: #f87171;
}
.density-compact .card-body {
padding: 9px 10px 10px;
gap: 6px;
}
.density-compact .card-title {
font-size: 12.5px;
}
.density-compact .card-meta {
font-size: 11px;
}
.density-large .card-body {
padding: 14px;
gap: 10px;
}
.density-large .card-title {
font-size: 15px;
}
/* Action buttons */
.act-btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 6px;
height: 32px;
padding: 0 14px;
border-radius: 7px;
border: 0;
font: inherit;
font-weight: 600;
font-size: 12.5px;
letter-spacing: 0;
cursor: pointer;
position: relative;
overflow: hidden;
transition:
transform 0.12s,
filter 0.12s,
background 0.15s;
white-space: nowrap;
}
.act-btn > svg,
.act-btn > .act-label {
position: relative;
z-index: 1;
}
.act-btn:hover:not(:disabled) {
filter: brightness(1.12);
}
.act-btn:active:not(:disabled) {
transform: scale(0.98);
}
.act-btn:disabled {
cursor: not-allowed;
opacity: 0.7;
}
.act-full {
width: 100%;
}
.act-lg {
height: 44px;
padding: 0 22px;
font-size: 14px;
gap: 8px;
border-radius: 8px;
}
.act-lg svg {
width: 14px;
height: 14px;
}
.act-play {
color: white;
background: linear-gradient(180deg, #2bd07f 0%, #1aa460 100%);
box-shadow:
0 6px 16px -8px #1aa460,
inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.act-install,
.act-update {
color: white;
background: var(--accent);
box-shadow:
0 6px 16px -8px color-mix(in srgb, var(--accent) 80%, black),
inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.act-download {
color: var(--t-1);
background: rgba(255, 255, 255, 0.08);
border: 1px solid var(--bd-2);
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.act-download:hover:not(:disabled) {
background: rgba(255, 255, 255, 0.12);
border-color: var(--bd-3);
}
.act-server {
color: var(--t-1);
background: color-mix(in srgb, var(--accent) 14%, rgba(255, 255, 255, 0.04));
border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.act-server:hover:not(:disabled) {
background: color-mix(in srgb, var(--accent) 22%, rgba(255, 255, 255, 0.04));
border-color: color-mix(in srgb, var(--accent) 75%, transparent);
filter: none;
}
.act-server svg {
color: var(--accent);
}
.act-busy {
color: var(--t-1);
background: rgba(255, 255, 255, 0.06);
border: 1px solid var(--bd-1);
}
.act-busy::before {
content: "";
display: inline-block;
width: 10px;
height: 10px;
border-radius: 999px;
border: 1.6px solid color-mix(in srgb, var(--accent) 60%, transparent);
border-top-color: var(--accent);
animation: spin 0.9s linear infinite;
position: relative;
z-index: 1;
flex: 0 0 auto;
}
@keyframes spin {
to {
transform: rotate(360deg);
}
}
.act-disabled {
color: var(--t-3);
background: rgba(255, 255, 255, 0.03);
border: 1px solid var(--bd-1);
cursor: not-allowed;
}
/* Download progress */
.dl {
position: relative;
overflow: hidden;
border-radius: 7px;
border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--bd-2));
background: rgba(255, 255, 255, 0.04);
color: var(--t-1);
font: inherit;
font-variant-numeric: tabular-nums;
container-type: inline-size;
isolation: isolate;
box-shadow:
inset 0 1px 0 rgba(255, 255, 255, 0.04),
0 0 0 1px color-mix(in srgb, var(--accent) 16%, transparent);
}
.dl-full {
width: 100%;
}
.dl-fill {
position: absolute;
inset: 0 auto 0 0;
z-index: 0;
width: var(--download-progress, 0%);
background: linear-gradient(
180deg,
color-mix(in srgb, var(--accent) 38%, transparent) 0%,
color-mix(in srgb, var(--accent) 26%, transparent) 100%
);
border-right: 1px solid color-mix(in srgb, var(--accent) 75%, transparent);
box-shadow: 2px 0 8px color-mix(in srgb, var(--accent) 35%, transparent);
transition: width 0.48s cubic-bezier(0.4, 0, 0.2, 1);
}
.dl-fill::after {
content: "";
position: absolute;
inset: 0;
background: repeating-linear-gradient(
115deg,
transparent 0 14px,
rgba(255, 255, 255, 0.05) 14px 22px
);
background-size: 200% 100%;
animation: dl-stripe 1.4s linear infinite;
mix-blend-mode: screen;
opacity: 0.85;
}
@keyframes dl-stripe {
from {
background-position: 0 0;
}
to {
background-position: -36px 0;
}
}
.dl-pulse {
width: 7px;
height: 7px;
border-radius: 999px;
background: var(--accent);
box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 70%, transparent);
animation: dl-pulse 1.4s ease-out infinite;
flex: 0 0 auto;
}
@keyframes dl-pulse {
0% {
box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 70%, transparent);
}
70% {
box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 0%, transparent);
}
100% {
box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 0%, transparent);
}
}
.dl-md {
height: 32px;
padding: 0 10px;
}
.dl-md-row {
position: relative;
z-index: 1;
display: flex;
align-items: center;
justify-content: space-between;
width: 100%;
height: 100%;
gap: 8px;
font-size: 12px;
font-weight: 600;
letter-spacing: 0;
}
.dl-md .dl-pct {
display: inline-flex;
align-items: center;
color: var(--t-1);
}
.dl-md .dl-pulse {
margin-right: 6px;
}
.dl-pct-sym {
opacity: 0.55;
font-weight: 600;
margin-left: 1px;
}
.dl-md .dl-speed {
color: var(--t-2);
font-size: 11px;
font-weight: 500;
font-variant-numeric: tabular-nums;
white-space: nowrap;
}
@container (max-width: 132px) {
.dl-md .dl-speed {
display: none;
}
.dl-md-row {
justify-content: center;
gap: 6px;
}
}
@container (max-width: 96px) {
.dl-md .dl-pulse {
display: none;
}
}
.density-compact .dl-md {
height: 30px;
padding: 0 9px;
}
.density-compact .dl-md-row {
font-size: 11.5px;
}
.density-compact .dl-md .dl-speed {
font-size: 10.5px;
}
.density-large .dl-md {
height: 34px;
padding: 0 12px;
}
.density-large .dl-md-row {
font-size: 13px;
}
.density-large .dl-md .dl-speed {
font-size: 11.5px;
}
.dl-lg {
height: 56px;
padding: 0;
border-radius: 9px;
flex: 1 1 auto;
min-width: 260px;
}
.dl-lg-grid {
position: relative;
z-index: 1;
display: grid;
grid-template-columns: minmax(0, 1fr) auto auto;
grid-template-rows: auto auto;
grid-template-areas:
"primary pct cancel"
"secondary pct cancel";
align-items: center;
height: 100%;
padding: 0 14px 0 16px;
column-gap: 14px;
row-gap: 2px;
}
.dl-lg-primary {
grid-area: primary;
display: flex;
align-items: center;
gap: 8px;
min-width: 0;
font-size: 13px;
font-weight: 600;
letter-spacing: 0;
text-transform: uppercase;
color: color-mix(in srgb, var(--accent) 80%, white);
}
.dl-lg-primary .dl-label {
white-space: nowrap;
}
.dl-lg-secondary {
grid-area: secondary;
display: flex;
align-items: center;
gap: 7px;
min-width: 0;
overflow: hidden;
font-size: 12px;
font-weight: 500;
color: var(--t-2);
}
.dl-lg-secondary .dl-bytes {
color: var(--t-1);
font-weight: 600;
white-space: nowrap;
}
.dl-lg-secondary .dl-of {
color: var(--t-2);
font-weight: 500;
}
.dl-lg-secondary .dl-speed {
color: var(--t-1);
font-weight: 600;
white-space: nowrap;
}
.dl-lg-secondary .dl-peers {
display: inline-flex;
align-items: center;
gap: 4px;
color: var(--t-1);
font-weight: 600;
font-variant-numeric: tabular-nums;
white-space: nowrap;
}
.dl-lg-secondary .dl-peers svg {
opacity: 0.7;
}
.dl-lg-secondary .dl-eta {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.dl-sep {
opacity: 0.45;
}
@container (max-width: 320px) {
.dl-lg-secondary .dl-eta,
.dl-lg-secondary .dl-sep-eta {
display: none;
}
}
@container (max-width: 240px) {
.dl-lg-secondary .dl-peers,
.dl-lg-secondary .dl-sep-peers {
display: none;
}
}
.dl-lg-pct {
grid-area: pct;
color: var(--t-1);
font-size: 20px;
font-weight: 700;
font-variant-numeric: tabular-nums;
letter-spacing: 0;
line-height: 1;
}
.dl-lg-pct .dl-pct-sym {
font-size: 12px;
}
.dl-cancel {
grid-area: cancel;
display: inline-flex;
align-items: center;
justify-content: center;
width: 28px;
height: 28px;
border-radius: 6px;
border: 1px solid var(--bd-2);
background: rgba(255, 255, 255, 0.04);
color: var(--t-2);
cursor: pointer;
transition:
background 0.15s,
border-color 0.15s,
color 0.15s;
}
.dl-cancel:hover {
background: rgba(239, 68, 68, 0.12);
border-color: rgba(239, 68, 68, 0.4);
color: #fca5a5;
}
/* Ghost / secondary buttons */
.ghost-btn {
display: inline-flex;
align-items: center;
gap: 7px;
height: 44px;
padding: 0 18px;
background: rgba(255, 255, 255, 0.04);
border: 1px solid var(--bd-2);
border-radius: 8px;
color: var(--t-1);
font: inherit;
font-size: 13.5px;
font-weight: 600;
cursor: pointer;
transition:
background 0.15s,
border-color 0.15s,
color 0.15s;
}
.ghost-btn:hover {
background: rgba(255, 255, 255, 0.08);
border-color: var(--bd-3);
}
.ghost-danger {
color: #f87171;
}
.ghost-danger:hover {
background: rgba(239, 68, 68, 0.1);
border-color: rgba(239, 68, 68, 0.4);
color: #fca5a5;
}
/* Modal */
.modal-scrim {
position: absolute;
inset: 0;
z-index: 100;
background: rgba(4, 7, 11, 0.7);
-webkit-backdrop-filter: blur(8px);
backdrop-filter: blur(8px);
display: grid;
place-items: center;
padding: 32px;
animation: fadein 0.18s ease;
}
@keyframes fadein {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
.modal {
width: min(880px, 100%);
max-height: 100%;
background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg-1) 100%);
border: 1px solid var(--bd-2);
border-radius: 14px;
overflow: hidden;
position: relative;
box-shadow:
0 30px 80px -10px rgba(0, 0, 0, 0.7),
0 0 0 1px rgba(255, 255, 255, 0.04);
display: flex;
flex-direction: column;
animation: modalin 0.25s cubic-bezier(0.3, 1.3, 0.4, 1);
}
@keyframes modalin {
from {
transform: scale(0.96) translateY(8px);
opacity: 0;
}
to {
transform: scale(1) translateY(0);
opacity: 1;
}
}
.modal-close {
position: absolute;
top: 14px;
right: 14px;
z-index: 5;
width: 32px;
height: 32px;
display: grid;
place-items: center;
background: rgba(8, 12, 16, 0.7);
border: 1px solid var(--bd-2);
border-radius: 8px;
color: var(--t-1);
cursor: pointer;
-webkit-backdrop-filter: blur(8px);
backdrop-filter: blur(8px);
transition:
background 0.15s,
border-color 0.15s;
}
.modal-close:hover {
background: rgba(255, 255, 255, 0.1);
border-color: var(--bd-3);
}
.modal-hero {
position: relative;
aspect-ratio: 16 / 7;
overflow: hidden;
background: var(--bg-3);
}
.modal-hero .cover {
transform: none !important;
}
.modal-hero-fade {
position: absolute;
inset: 0;
background: linear-gradient(180deg, transparent 40%, var(--bg-2) 100%);
pointer-events: none;
}
.modal-hero-text {
position: absolute;
left: 28px;
right: 28px;
bottom: 22px;
z-index: 2;
}
.modal-hero-text .modal-title {
font-family: var(--font-ui);
font-size: 32px;
font-weight: 700;
letter-spacing: -0.015em;
color: white;
margin: 6px 0 0;
text-shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
}
.modal-tags {
display: flex;
gap: 6px;
flex-wrap: wrap;
}
.modal-tag {
display: inline-block;
padding: 3px 8px;
background: rgba(8, 12, 16, 0.6);
-webkit-backdrop-filter: blur(8px);
backdrop-filter: blur(8px);
border: 1px solid var(--bd-2);
border-radius: 4px;
font-size: 11px;
font-weight: 600;
letter-spacing: 0.04em;
text-transform: uppercase;
color: var(--t-1);
}
.modal-state {
position: absolute;
top: 18px;
left: 24px;
z-index: 3;
}
.modal-state .state-chip {
position: static;
font-size: 11.5px;
padding: 5px 11px;
}
.modal-body {
padding: 22px 28px 26px;
display: flex;
flex-direction: column;
gap: 18px;
overflow: auto;
}
.modal-meta {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 12px;
}
.meta-cell {
padding: 10px 12px;
background: rgba(255, 255, 255, 0.025);
border: 1px solid var(--bd-1);
border-radius: 8px;
}
.meta-label {
font-size: 10.5px;
font-weight: 700;
letter-spacing: 0.08em;
text-transform: uppercase;
color: var(--t-3);
}
.meta-value {
margin-top: 4px;
font-size: 14px;
font-weight: 600;
color: var(--t-1);
display: flex;
align-items: center;
gap: 6px;
}
.meta-mono {
font-family: var(--font-mono);
font-size: 13px;
}
.modal-desc {
margin: 0;
font-size: 14px;
line-height: 1.55;
color: var(--t-2);
text-wrap: pretty;
max-width: 64ch;
white-space: pre-wrap;
}
.modal-status {
margin: 0;
font-size: 13px;
color: var(--t-2);
padding: 10px 12px;
background: rgba(255, 255, 255, 0.025);
border: 1px solid var(--bd-1);
border-radius: 8px;
}
.modal-status.is-error {
color: #f87171;
border-color: rgba(239, 68, 68, 0.4);
background: rgba(239, 68, 68, 0.08);
}
.modal-actions {
display: flex;
align-items: center;
gap: 10px;
padding-top: 4px;
flex-wrap: wrap;
}
.modal-actions-spacer {
flex: 1;
}
.modal.confirm-modal {
width: min(420px, 100%);
padding: 28px;
background: var(--bg-2);
border-radius: 8px;
}
.confirm-icon {
display: inline-grid;
place-items: center;
width: 42px;
height: 42px;
border-radius: 999px;
color: #f87171;
background: rgba(239, 68, 68, 0.1);
border: 1px solid rgba(239, 68, 68, 0.22);
}
.confirm-modal h2 {
margin: 18px 0 10px;
font-size: 19px;
line-height: 1.2;
color: var(--t-1);
}
.confirm-modal p {
margin: 0;
color: var(--t-2);
font-size: 14px;
line-height: 1.5;
}
.confirm-actions {
display: flex;
justify-content: flex-end;
gap: 10px;
margin-top: 22px;
flex-wrap: wrap;
}
/* Settings dialog */
.settings-modal {
width: min(640px, 100%);
background: var(--bg-2);
}
.settings-head {
position: relative;
padding: 22px 28px 18px;
border-bottom: 1px solid var(--bd-1);
}
.settings-head h2 {
margin: 0;
font-size: 20px;
font-weight: 700;
letter-spacing: -0.01em;
color: var(--t-1);
}
.settings-close {
position: absolute;
top: 18px;
right: 18px;
}
.settings-body {
padding: 22px 28px 26px;
display: flex;
flex-direction: column;
gap: 26px;
max-height: 70vh;
overflow: auto;
}
.settings-section {
display: flex;
flex-direction: column;
gap: 14px;
}
.settings-section-title {
font-size: 10.5px;
font-weight: 700;
letter-spacing: 0.12em;
text-transform: uppercase;
color: var(--t-3);
}
.settings-row {
display: flex;
align-items: center;
justify-content: space-between;
gap: 24px;
}
.settings-row-info {
min-width: 0;
flex: 1;
}
.settings-row-label {
font-size: 14px;
font-weight: 600;
color: var(--t-1);
}
.settings-row-hint {
margin-top: 3px;
font-size: 12px;
color: var(--t-3);
}
.settings-row-control {
flex-shrink: 0;
}
.settings-foot {
display: flex;
align-items: center;
justify-content: space-between;
padding: 14px 22px 18px;
border-top: 1px solid var(--bd-1);
gap: 10px;
}
.settings-build-nr {
min-width: 0;
color: var(--t-3);
font-size: 12px;
font-variant-numeric: tabular-nums;
}
.settings-done {
height: 36px;
padding: 0 22px;
font-size: 13.5px;
background: var(--accent);
color: white;
border: 0;
border-radius: 8px;
font-weight: 600;
cursor: pointer;
transition: filter 0.12s;
}
.settings-done:hover {
filter: brightness(1.1);
}
/* Settings: text input */
.settings-text {
display: inline-flex;
align-items: center;
width: 220px;
height: 36px;
padding: 0 12px;
background: var(--bg-3);
border: 1px solid var(--bd-1);
border-radius: 8px;
transition:
background 0.15s,
border-color 0.15s,
box-shadow 0.15s;
}
.settings-text:focus-within {
background: var(--bg-2);
border-color: var(--accent);
box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}
.settings-text input {
min-width: 0;
flex: 1;
background: transparent;
border: 0;
outline: 0;
color: var(--t-1);
font: inherit;
font-size: 13.5px;
font-weight: 600;
letter-spacing: 0;
}
.settings-text input::placeholder {
color: var(--t-3);
font-weight: 500;
}
/* Settings: color swatches */
.swatch-row {
display: inline-flex;
gap: 8px;
}
.swatch {
position: relative;
width: 32px;
height: 32px;
padding: 0;
background: transparent;
border: 0;
border-radius: 9px;
cursor: pointer;
}
.swatch-dot {
display: block;
width: 100%;
height: 100%;
border-radius: 8px;
box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
transition:
transform 0.15s,
box-shadow 0.15s;
}
.swatch:hover .swatch-dot {
transform: scale(1.06);
}
.swatch.is-active .swatch-dot {
box-shadow:
0 0 0 2px var(--bg-2),
0 0 0 4px currentColor;
}
.swatch-check {
position: absolute;
inset: 0;
display: grid;
place-items: center;
color: white;
filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
pointer-events: none;
}
/* Settings: segmented radio */
.srad {
display: inline-flex;
background: var(--bg-3);
border: 1px solid var(--bd-1);
border-radius: 8px;
padding: 3px;
}
.srad-btn {
display: inline-flex;
align-items: center;
height: 30px;
padding: 0 14px;
background: transparent;
border: 1px solid transparent;
border-radius: 6px;
color: var(--t-2);
font: inherit;
font-weight: 600;
font-size: 12.5px;
cursor: pointer;
transition:
color 0.15s,
background 0.15s;
white-space: nowrap;
}
.srad-btn:hover {
color: var(--t-1);
}
.srad-btn.is-active {
color: white;
background: var(--accent);
border-color: var(--accent);
box-shadow:
0 2px 8px -2px rgba(0, 0, 0, 0.4),
inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
/* Empty / placeholder states */
.empty-state {
display: grid;
place-items: center;
padding: 80px 24px;
text-align: center;
color: var(--t-2);
}
.empty-state-icon {
width: 56px;
height: 56px;
display: grid;
place-items: center;
border-radius: 14px;
margin-bottom: 18px;
background: rgba(255, 255, 255, 0.04);
border: 1px solid var(--bd-1);
color: var(--t-2);
}
.empty-state-title {
font-size: 18px;
font-weight: 700;
color: var(--t-1);
margin: 0 0 6px;
letter-spacing: -0.01em;
}
.empty-state-hint {
font-size: 13px;
color: var(--t-3);
margin: 0 0 20px;
max-width: 44ch;
}
.empty-state .ghost-btn {
background: var(--accent);
color: white;
border-color: transparent;
}
.empty-state .ghost-btn:hover {
filter: brightness(1.1);
background: var(--accent);
border-color: transparent;
}