Create Kaleido Desktop, a cinematic Plex client for Windows

Tauri 2 shell with a React/TypeScript interface and libmpv playback composed
beneath the web view (DirectComposition on Windows). Shared code with per-OS
platform modules and configs so macOS and Linux can follow.

- Plex sign-in (browser, plex.tv/link or manual), server selection, Plex Home
- Home, Movies and TV Shows (Discover, Library, Collections), search, people
- Title pages with logos, ratings, cast, extras, seasons and episodes
- Direct play with Plex conversion fallback, tracks, markers, autoplay
- Metadata editing, artwork, fix match, refresh, analyze and deletion
- Resumable offline downloads
- App settings and Plex server administration with a live dashboard
- Signed updater feed and Forgejo CI

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Elijah 2026-10-30 16:26:37 -07:00
commit 00d72e70f4
121 changed files with 25315 additions and 0 deletions

1251
src/styles/app.css Normal file

File diff suppressed because it is too large Load diff

232
src/styles/base.css Normal file
View file

@ -0,0 +1,232 @@
:root {
--bg: #090a0c;
--bg-raised: #0d0f11;
--panel: #17191c;
--panel-2: #202328;
--panel-3: #2a2e33;
--line: rgba(255, 255, 255, 0.105);
--line-soft: rgba(255, 255, 255, 0.06);
--muted: #9da3aa;
--dim: #777d83;
--white: #f5f6f7;
--text: #e6e8e9;
--accent: #a9c7c0;
--accent-strong: #c1ded7;
--accent-ink: #12201c;
--danger: #e59a9a;
--success: #8fc7a8;
--warning: #e3c27c;
--gutter: clamp(22px, 3.4vw, 64px);
--nav-h: 64px;
--r-sm: 5px;
--r: 8px;
--r-lg: 12px;
--ease: cubic-bezier(0.2, 0.7, 0.1, 1);
--ease-out: cubic-bezier(0.16, 1, 0.3, 1);
--t-fast: 140ms;
--t: 220ms;
--t-slow: 420ms;
--shadow-pop: 0 24px 80px rgba(0, 0, 0, 0.62), 0 2px 10px rgba(0, 0, 0, 0.35);
font-family: 'Inter Variable', 'Segoe UI Variable Text', 'Segoe UI', system-ui, sans-serif;
font-feature-settings: 'cv11', 'ss01';
color: var(--white);
-webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility;
}
html.reduced-motion {
--t-fast: 0ms;
--t: 0ms;
--t-slow: 0ms;
}
html.reduced-motion *,
html.reduced-motion *::before,
html.reduced-motion *::after {
animation-duration: 0ms !important;
transition-duration: 0ms !important;
}
* {
box-sizing: border-box;
}
html,
body,
#root {
height: 100%;
width: 100%;
margin: 0;
overflow: hidden;
}
html {
background: transparent;
}
body {
background: var(--bg);
color: var(--white);
font-size: 13px;
line-height: 1.45;
user-select: none;
-webkit-user-select: none;
cursor: default;
}
/* While video plays, the page is transparent so the native surface shows through. */
html.video-active body {
background: transparent;
}
html.video-active .app-shell {
visibility: hidden;
}
button,
input,
textarea,
select {
font: inherit;
color: inherit;
}
button {
border: 0;
background: none;
padding: 0;
cursor: pointer;
}
button:disabled {
opacity: 0.45;
cursor: default;
}
input,
textarea {
user-select: text;
-webkit-user-select: text;
}
a {
color: inherit;
}
img {
display: block;
max-width: 100%;
}
svg {
flex: none;
}
:focus {
outline: none;
}
:focus-visible {
outline: 2px solid var(--accent-strong);
outline-offset: 3px;
border-radius: 4px;
}
::selection {
background: rgba(169, 199, 192, 0.35);
}
::-webkit-scrollbar {
width: 10px;
height: 10px;
}
::-webkit-scrollbar-track {
background: transparent;
}
::-webkit-scrollbar-thumb {
background: rgba(255, 255, 255, 0.16);
border-radius: 10px;
border: 3px solid transparent;
background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover {
background-color: rgba(255, 255, 255, 0.28);
}
::-webkit-scrollbar-corner {
background: transparent;
}
.micro {
color: #b2c8c2;
text-transform: uppercase;
font-weight: 700;
letter-spacing: 0.18em;
font-size: 11px;
}
.muted {
color: var(--muted);
}
.dim {
color: var(--dim);
}
.sr-only {
position: absolute;
width: 1px;
height: 1px;
overflow: hidden;
clip: rect(0 0 0 0);
white-space: nowrap;
}
.selectable {
user-select: text;
-webkit-user-select: text;
cursor: text;
}
@keyframes fade-in {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
@keyframes rise-in {
from {
opacity: 0;
transform: translateY(14px);
}
to {
opacity: 1;
transform: none;
}
}
@keyframes pop-in {
from {
opacity: 0;
transform: translateY(-4px) scale(0.98);
}
to {
opacity: 1;
transform: none;
}
}
@keyframes spin {
to {
transform: rotate(360deg);
}
}
@keyframes shimmer {
0% {
background-position: -400px 0;
}
100% {
background-position: 400px 0;
}
}

603
src/styles/player.css Normal file
View file

@ -0,0 +1,603 @@
.player {
position: fixed;
inset: 0;
z-index: 600;
color: #fff;
cursor: default;
user-select: none;
}
.player.idle {
cursor: none;
}
.player.loading {
background: #000;
}
.player-cover {
position: absolute;
inset: 0;
background: #000;
}
.player-cover img {
width: 100%;
height: 100%;
object-fit: cover;
opacity: 0.35;
filter: blur(2px);
animation: fade-in 500ms;
}
.player-cover-scrim {
position: absolute;
inset: 0;
background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.75) 80%);
}
.player-gradient {
position: absolute;
left: 0;
right: 0;
pointer-events: none;
transition: opacity 400ms var(--ease);
}
.player-gradient.top {
top: 0;
height: 160px;
background: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent);
}
.player-gradient.bottom {
bottom: 0;
height: 300px;
background: linear-gradient(0deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.45) 45%, transparent 100%);
}
.player.idle .player-gradient,
.player.idle .player-top,
.player.idle .player-bottom {
opacity: 0;
pointer-events: none;
}
.player.idle .player-bottom {
transform: translateY(10px);
}
.player-top {
position: absolute;
top: 0;
left: 0;
right: 0;
height: 72px;
display: flex;
align-items: center;
gap: 16px;
padding: 0 28px;
transition: opacity 400ms var(--ease);
}
.player-back {
width: 42px;
height: 42px;
border-radius: 50%;
display: grid;
place-items: center;
color: #fff;
transition: background var(--t-fast);
}
.player-back:hover {
background: rgba(255, 255, 255, 0.14);
}
.player-top-title {
font-size: 14px;
color: #d9dddf;
pointer-events: none;
}
.player-top-title b {
color: #fff;
font-weight: 650;
margin-right: 8px;
}
.player-center {
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
pointer-events: none;
}
.player-flash {
position: absolute;
left: 50%;
top: 50%;
width: 84px;
height: 84px;
margin: -42px 0 0 -42px;
border-radius: 50%;
background: rgba(0, 0, 0, 0.45);
backdrop-filter: blur(8px);
display: grid;
place-items: center;
pointer-events: none;
animation: flash 600ms var(--ease-out) forwards;
}
@keyframes flash {
0% {
opacity: 0;
transform: scale(0.7);
}
25% {
opacity: 1;
transform: scale(1);
}
100% {
opacity: 0;
transform: scale(1.25);
}
}
.player-bottom {
position: absolute;
left: 0;
right: 0;
bottom: 0;
padding: 0 clamp(24px, 3.5vw, 56px) 22px;
transition:
opacity 400ms var(--ease),
transform 400ms var(--ease);
}
.player-bottom-head {
display: flex;
align-items: flex-end;
justify-content: space-between;
gap: 20px;
margin-bottom: 14px;
}
.player-title {
display: flex;
flex-direction: column;
gap: 8px;
min-width: 0;
}
.player-title .title-text {
font-size: 26px;
}
.player-episode {
font-size: 14px;
font-weight: 600;
color: #eef0f0;
}
.player-title .facts {
font-size: 12px;
color: #c8ced0;
}
.player-delivery {
font-size: 11px;
font-weight: 700;
letter-spacing: 0.1em;
text-transform: uppercase;
color: #b9c2c3;
}
/* Timeline */
.timeline {
position: relative;
height: 22px;
display: flex;
align-items: center;
cursor: pointer;
touch-action: none;
}
.timeline-track {
position: relative;
width: 100%;
height: 4px;
border-radius: 4px;
background: rgba(255, 255, 255, 0.22);
overflow: hidden;
transition: height 140ms var(--ease);
}
.timeline:hover .timeline-track,
.timeline.dragging .timeline-track {
height: 7px;
}
.timeline-buffered {
position: absolute;
inset: 0 auto 0 0;
background: rgba(255, 255, 255, 0.28);
}
.timeline-played {
position: absolute;
inset: 0 auto 0 0;
background: #f1f4f3;
}
.timeline-marker {
position: absolute;
top: 0;
bottom: 0;
background: rgba(169, 199, 192, 0.45);
mix-blend-mode: screen;
}
.timeline-chapter {
position: absolute;
top: 0;
bottom: 0;
width: 2px;
background: rgba(0, 0, 0, 0.55);
}
.timeline-thumb {
position: absolute;
top: 50%;
width: 15px;
height: 15px;
margin: -7.5px 0 0 -7.5px;
border-radius: 50%;
background: #fff;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
transform: scale(0);
transition: transform 140ms var(--ease);
pointer-events: none;
}
.timeline:hover .timeline-thumb,
.timeline.dragging .timeline-thumb {
transform: scale(1);
}
.timeline-preview {
position: absolute;
bottom: 30px;
transform: translateX(-50%);
display: flex;
flex-direction: column;
align-items: center;
gap: 6px;
pointer-events: none;
}
.timeline-preview img {
width: 220px;
aspect-ratio: 16 / 9;
object-fit: cover;
border-radius: 6px;
background: #000;
box-shadow:
0 10px 30px rgba(0, 0, 0, 0.6),
0 0 0 1.5px rgba(255, 255, 255, 0.7);
}
.timeline-preview-text {
display: flex;
flex-direction: column;
align-items: center;
gap: 2px;
font-size: 12px;
text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8);
}
.timeline-preview-text span {
color: #d2d7d8;
font-size: 11px;
}
.timeline-preview-text b {
font-variant-numeric: tabular-nums;
}
/* Controls */
.player-controls {
display: flex;
align-items: center;
justify-content: space-between;
margin-top: 6px;
}
.player-controls-left,
.player-controls-right {
display: flex;
align-items: center;
gap: 4px;
}
.player-icon {
width: 44px;
height: 44px;
border-radius: 50%;
display: grid;
place-items: center;
color: #f2f4f4;
transition:
background var(--t-fast),
transform var(--t-fast);
}
.player-icon:hover {
background: rgba(255, 255, 255, 0.13);
}
.player-icon:active {
transform: scale(0.92);
}
.player-icon.on {
background: rgba(255, 255, 255, 0.18);
}
.player-icon.lit {
color: var(--accent-strong);
}
.player-icon.big {
width: 48px;
height: 48px;
}
.player-time {
margin-left: 12px;
font-size: 13px;
font-variant-numeric: tabular-nums;
color: #f0f2f2;
}
.player-time .dim {
color: #a5acaf;
}
.volume {
display: flex;
align-items: center;
}
.volume input {
width: 0;
opacity: 0;
transition:
width var(--t) var(--ease-out),
opacity var(--t);
appearance: none;
-webkit-appearance: none;
height: 4px;
border-radius: 4px;
background: linear-gradient(90deg, #fff var(--v), rgba(255, 255, 255, 0.25) var(--v));
cursor: pointer;
}
.volume:hover input,
.volume input:focus {
width: 90px;
opacity: 1;
margin-right: 6px;
}
.volume input::-webkit-slider-thumb {
-webkit-appearance: none;
width: 13px;
height: 13px;
border-radius: 50%;
background: #fff;
}
/* Panels */
.player-panel {
position: absolute;
right: clamp(24px, 3.5vw, 56px);
bottom: 84px;
min-width: 300px;
max-height: min(60vh, 520px);
overflow-y: auto;
padding: 14px 8px 8px;
border-radius: 14px;
background: rgba(22, 25, 27, 0.9);
backdrop-filter: blur(28px) saturate(1.3);
box-shadow:
0 24px 70px rgba(0, 0, 0, 0.6),
inset 0 0 0 1px rgba(255, 255, 255, 0.12);
animation: pop-in 180ms var(--ease-out);
}
.player-panel.tracks {
width: min(620px, calc(100vw - 48px));
}
.player-panel-title {
font-size: 11px;
font-weight: 750;
letter-spacing: 0.12em;
text-transform: uppercase;
color: #9aa4a6;
padding: 0 12px 10px;
}
.panel-columns {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 8px;
}
.panel-columns h4 {
margin: 4px 12px 6px;
font-size: 13px;
}
.panel-option {
width: 100%;
display: flex;
align-items: flex-start;
gap: 8px;
padding: 9px 10px;
border-radius: 8px;
text-align: left;
font-size: 13px;
color: #d9dedf;
}
.panel-option:hover {
background: rgba(255, 255, 255, 0.09);
}
.panel-option.selected {
color: #fff;
font-weight: 620;
}
.panel-check {
width: 18px;
flex: none;
color: var(--accent-strong);
padding-top: 1px;
}
.panel-label {
display: flex;
flex-direction: column;
gap: 2px;
}
.panel-label small {
font-size: 11px;
color: #8f989b;
font-weight: 400;
}
.panel-empty {
padding: 8px 12px;
color: var(--dim);
font-size: 12px;
}
.panel-delay {
display: flex;
align-items: center;
gap: 8px;
margin: 10px 10px 4px;
padding-top: 10px;
border-top: 1px solid rgba(255, 255, 255, 0.08);
font-size: 12px;
color: #a5adb0;
}
.panel-delay span {
margin-right: auto;
}
.panel-delay button {
width: 28px;
height: 28px;
border-radius: 7px;
background: rgba(255, 255, 255, 0.1);
font-size: 15px;
}
.panel-delay b {
min-width: 50px;
text-align: center;
font-variant-numeric: tabular-nums;
color: #fff;
}
.panel-row {
width: 100%;
display: flex;
align-items: center;
gap: 10px;
padding: 11px 12px;
border-radius: 8px;
font-size: 13px;
}
.panel-row:hover {
background: rgba(255, 255, 255, 0.09);
}
.panel-row span {
margin-right: auto;
}
.panel-row b {
font-weight: 500;
color: #a9b2b5;
}
.panel-info {
padding: 10px 12px 6px;
margin-top: 6px;
border-top: 1px solid rgba(255, 255, 255, 0.08);
font-size: 11px;
color: #899295;
line-height: 1.5;
}
.player-panel.chapters {
min-width: 340px;
}
/* Skip & post-play */
.skip-button {
position: absolute;
right: clamp(24px, 3.5vw, 56px);
bottom: 170px;
display: inline-flex;
align-items: center;
gap: 10px;
height: 46px;
padding: 0 22px;
border-radius: 8px;
background: rgba(20, 22, 24, 0.82);
backdrop-filter: blur(14px);
box-shadow:
0 10px 30px rgba(0, 0, 0, 0.5),
inset 0 0 0 1.5px rgba(255, 255, 255, 0.55);
font-size: 14px;
font-weight: 650;
color: #fff;
animation: rise-in 300ms var(--ease-out);
transition:
background var(--t-fast),
color var(--t-fast);
}
.skip-button:hover {
background: #f3f5f4;
color: #111;
}
.post-play {
position: absolute;
right: clamp(24px, 3.5vw, 56px);
bottom: 150px;
display: flex;
gap: 16px;
align-items: center;
width: min(520px, calc(100vw - 48px));
padding: 14px;
border-radius: 14px;
background: rgba(20, 22, 24, 0.88);
backdrop-filter: blur(20px);
box-shadow:
0 24px 70px rgba(0, 0, 0, 0.6),
inset 0 0 0 1px rgba(255, 255, 255, 0.12);
animation: rise-in 360ms var(--ease-out);
}
.post-play-art {
position: relative;
width: 180px;
aspect-ratio: 16 / 9;
border-radius: 8px;
overflow: hidden;
flex: none;
background: #000;
}
.post-play-art img {
width: 100%;
height: 100%;
object-fit: cover;
}
.post-play-ring {
position: absolute;
inset: 0;
margin: auto;
width: 46px;
height: 46px;
transform: rotate(-90deg);
}
.post-play-ring circle {
fill: rgba(0, 0, 0, 0.45);
stroke: #fff;
stroke-width: 3;
stroke-dasharray: 107;
animation: ring 8s linear forwards;
}
@keyframes ring {
from {
stroke-dashoffset: 107;
}
to {
stroke-dashoffset: 0;
}
}
.post-play-text {
display: flex;
flex-direction: column;
gap: 6px;
min-width: 0;
}
.post-play-text b {
font-size: 14px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.post-play-text .actions {
margin-top: 6px;
}
.player-error {
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
width: min(480px, calc(100vw - 48px));
text-align: center;
display: flex;
flex-direction: column;
align-items: center;
gap: 8px;
color: #f2c4c3;
}
.player-error h2 {
margin: 4px 0 0;
color: #fff;
font-size: 20px;
}
.player-error p {
color: #c4cacc;
margin: 0 0 14px;
line-height: 1.55;
}

1860
src/styles/screens.css Normal file

File diff suppressed because it is too large Load diff

570
src/styles/ui.css Normal file
View file

@ -0,0 +1,570 @@
/* —— Buttons ———————————————————————————————————————————————— */
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 9px;
height: 40px;
padding: 0 20px;
border-radius: 7px;
font-size: 13px;
font-weight: 650;
white-space: nowrap;
transition:
background var(--t-fast) var(--ease),
color var(--t-fast) var(--ease),
transform var(--t-fast) var(--ease),
box-shadow var(--t-fast) var(--ease);
}
.btn:active:not(:disabled) {
transform: scale(0.975);
}
.btn.sm {
height: 32px;
padding: 0 13px;
font-size: 12px;
gap: 7px;
border-radius: 6px;
}
.btn.lg {
height: 46px;
padding: 0 26px;
font-size: 14px;
}
.btn.primary {
background: #f6f7f7;
color: #121415;
}
.btn.primary:hover:not(:disabled) {
background: #dfe8e4;
}
.btn.muted {
background: rgba(255, 255, 255, 0.17);
color: #fff;
backdrop-filter: blur(10px);
}
.btn.muted:hover:not(:disabled) {
background: rgba(255, 255, 255, 0.27);
}
.btn.ghost {
background: rgba(255, 255, 255, 0.06);
color: #e3e6e7;
box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09);
}
.btn.ghost:hover:not(:disabled) {
background: rgba(255, 255, 255, 0.13);
}
.btn.outline {
background: transparent;
color: #eceeef;
box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}
.btn.outline:hover:not(:disabled) {
background: rgba(255, 255, 255, 0.08);
}
.btn.danger {
background: #b9504f;
color: #fff;
}
.btn.danger:hover:not(:disabled) {
background: #c95e5c;
}
.btn.text {
background: none;
height: auto;
padding: 6px 4px;
color: var(--accent);
font-weight: 650;
font-size: 12px;
}
.btn.text:hover:not(:disabled) {
color: var(--accent-strong);
}
.icon-btn {
height: 36px;
width: 36px;
display: inline-grid;
place-items: center;
border-radius: 8px;
color: #d6dadb;
transition:
background var(--t-fast),
color var(--t-fast);
}
.icon-btn:hover:not(:disabled),
.icon-btn.on {
background: rgba(255, 255, 255, 0.1);
color: #fff;
}
.circle-btn {
width: 42px;
height: 42px;
border-radius: 50%;
display: inline-grid;
place-items: center;
color: #fff;
background: rgba(255, 255, 255, 0.08);
box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.42);
backdrop-filter: blur(8px);
transition:
background var(--t-fast),
transform var(--t-fast),
box-shadow var(--t-fast);
}
.circle-btn:hover:not(:disabled) {
background: rgba(255, 255, 255, 0.2);
box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.7);
}
.circle-btn:active:not(:disabled) {
transform: scale(0.95);
}
.circle-btn.on {
color: var(--accent-strong);
}
.actions {
display: flex;
align-items: center;
gap: 10px;
flex-wrap: wrap;
}
.actions.end {
justify-content: flex-end;
}
/* —— Spinner, artwork ———————————————————————————————————————— */
.spinner {
display: inline-block;
border-radius: 50%;
border: 2px solid rgba(255, 255, 255, 0.16);
border-top-color: rgba(255, 255, 255, 0.85);
animation: spin 0.8s linear infinite;
flex: none;
}
.page-loader {
display: grid;
place-items: center;
min-height: 50vh;
animation: fade-in 400ms 200ms both;
}
.artwork {
opacity: 0;
transition: opacity 360ms var(--ease);
width: 100%;
height: 100%;
}
.artwork.ready {
opacity: 1;
}
.artwork.empty {
opacity: 1;
display: grid;
place-items: center;
color: rgba(255, 255, 255, 0.3);
background: linear-gradient(135deg, #1d2125, #15181b);
}
/* —— Switch, select, segmented ——————————————————————————————— */
.switch {
width: 38px;
height: 22px;
border-radius: 20px;
background: #3b3f44;
position: relative;
flex: none;
transition: background var(--t);
box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.switch span {
position: absolute;
top: 3px;
left: 3px;
width: 16px;
height: 16px;
border-radius: 50%;
background: #c6cacb;
transition:
transform var(--t) var(--ease-out),
background var(--t);
}
.switch.on {
background: #8fb8aa;
}
.switch.on span {
transform: translateX(16px);
background: #0f1916;
}
.select {
height: 34px;
display: inline-flex;
align-items: center;
gap: 8px;
padding: 0 11px 0 13px;
border-radius: 7px;
background: rgba(255, 255, 255, 0.06);
box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.11);
font-size: 12px;
color: #dfe2e3;
max-width: 100%;
transition: background var(--t-fast);
}
.select:hover:not(:disabled) {
background: rgba(255, 255, 255, 0.11);
}
.select-prefix {
color: var(--muted);
}
.select-value {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-weight: 560;
}
.select svg {
color: var(--muted);
}
.seg {
display: inline-flex;
gap: 3px;
padding: 3px;
background: rgba(255, 255, 255, 0.05);
border-radius: 8px;
box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.seg button {
padding: 7px 14px;
border-radius: 6px;
color: #a3a8ad;
font-size: 12px;
font-weight: 560;
transition:
background var(--t-fast),
color var(--t-fast);
}
.seg button:hover {
color: #fff;
}
.seg button.selected {
background: #3a403f;
color: #fff;
}
/* —— Fields ——————————————————————————————————————————————————— */
.field {
display: flex;
flex-direction: column;
gap: 7px;
margin-bottom: 16px;
}
.field > span {
font-size: 11px;
color: #b7c0c3;
font-weight: 600;
display: flex;
align-items: center;
gap: 8px;
}
.field input,
.field textarea,
.text-input {
width: 100%;
min-height: 38px;
background: #101315;
border: 1px solid rgba(255, 255, 255, 0.14);
border-radius: 7px;
padding: 9px 11px;
font-size: 13px;
transition:
border-color var(--t-fast),
background var(--t-fast);
}
.field textarea {
min-height: 110px;
resize: vertical;
line-height: 1.55;
}
.field input:focus,
.field textarea:focus,
.text-input:focus {
border-color: rgba(169, 199, 192, 0.65);
background: #12171a;
}
.field-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 0 16px;
}
/* —— Menus ———————————————————————————————————————————————————— */
.menu-layer {
position: fixed;
inset: 0;
z-index: 900;
}
.menu-panel {
position: fixed;
max-height: calc(100vh - 24px);
overflow-y: auto;
padding: 6px;
border-radius: 11px;
background: rgba(31, 34, 37, 0.985);
backdrop-filter: blur(24px) saturate(1.3);
box-shadow:
var(--shadow-pop),
inset 0 0 0 1px rgba(255, 255, 255, 0.12);
animation: pop-in 150ms var(--ease-out);
transition: opacity 80ms;
}
.menu-item {
width: 100%;
display: flex;
align-items: center;
gap: 10px;
padding: 8px 10px 8px 8px;
border-radius: 6px;
font-size: 12.5px;
color: #dde0e2;
text-align: left;
white-space: nowrap;
}
.menu-item:hover:not(:disabled),
.menu-item.open {
background: rgba(255, 255, 255, 0.1);
color: #fff;
}
.menu-item.danger {
color: var(--danger);
}
.menu-icon {
width: 18px;
display: grid;
place-items: center;
color: #a7b5b3;
}
.menu-label {
flex: 1;
overflow: hidden;
text-overflow: ellipsis;
}
.menu-hint {
color: var(--dim);
font-size: 11px;
margin-left: 14px;
}
.menu-chev {
color: var(--dim);
}
.menu-sep {
height: 1px;
background: rgba(255, 255, 255, 0.09);
margin: 5px 6px;
}
.menu-heading {
padding: 9px 10px 5px;
font-size: 10px;
letter-spacing: 0.12em;
text-transform: uppercase;
color: var(--dim);
font-weight: 700;
}
/* —— Dialogs —————————————————————————————————————————————————— */
.dialog-layer {
position: fixed;
inset: 0;
z-index: 800;
background: rgba(5, 6, 8, 0.72);
backdrop-filter: blur(14px);
display: flex;
align-items: flex-start;
justify-content: center;
padding: 9vh 16px 16px;
overflow-y: auto;
animation: fade-in 180ms var(--ease);
}
.dialog {
max-height: calc(100vh - 12vh - 16px);
display: flex;
flex-direction: column;
border-radius: 14px;
background: #1a1d20;
box-shadow:
var(--shadow-pop),
inset 0 0 0 1px rgba(255, 255, 255, 0.11);
animation: rise-in 240ms var(--ease-out);
overflow: hidden;
}
.dialog-header {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 16px;
padding: 22px 22px 16px 26px;
border-bottom: 1px solid var(--line);
}
.dialog-header h2 {
margin: 0;
font-size: 19px;
letter-spacing: -0.025em;
font-weight: 720;
}
.dialog-header p {
margin: 6px 0 0;
font-size: 12px;
color: var(--muted);
}
.dialog-body {
padding: 20px 26px;
overflow-y: auto;
}
.dialog-bare {
overflow-y: auto;
}
.dialog-footer {
padding: 15px 22px;
border-top: 1px solid var(--line);
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
}
.dialog-footer > .actions {
margin-left: auto;
}
.confirm-message {
color: #c9cfd1;
font-size: 13px;
line-height: 1.65;
margin-bottom: 14px;
}
/* —— Toasts —————————————————————————————————————————————————— */
.toast-stack {
position: fixed;
z-index: 1000;
bottom: 26px;
left: 50%;
transform: translateX(-50%);
display: flex;
flex-direction: column;
align-items: center;
gap: 8px;
pointer-events: none;
}
.toast {
pointer-events: auto;
display: flex;
align-items: center;
gap: 10px;
max-width: min(560px, 90vw);
padding: 11px 16px;
border-radius: 10px;
background: rgba(40, 46, 47, 0.96);
backdrop-filter: blur(18px);
box-shadow:
0 14px 40px rgba(0, 0, 0, 0.55),
inset 0 0 0 1px rgba(255, 255, 255, 0.13);
font-size: 12.5px;
color: #e9eeee;
animation: rise-in 260ms var(--ease-out);
}
.toast.success svg {
color: var(--success);
}
.toast.error svg {
color: var(--danger);
}
.toast-action {
color: var(--accent-strong);
font-weight: 650;
margin-left: 6px;
}
/* —— Empty / error ——————————————————————————————————————————— */
.empty-state {
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
padding: 70px 24px;
gap: 4px;
animation: fade-in 300ms;
}
.empty-icon {
width: 56px;
height: 56px;
border-radius: 16px;
display: grid;
place-items: center;
background: rgba(255, 255, 255, 0.05);
color: #a9b6b4;
margin-bottom: 12px;
}
.empty-state h3 {
margin: 0;
font-size: 16px;
font-weight: 680;
}
.empty-state p {
margin: 6px 0 16px;
max-width: 440px;
color: var(--muted);
line-height: 1.6;
}
.kbd {
display: inline-flex;
align-items: center;
font-size: 10.5px;
font-weight: 600;
color: #b9c0c3;
padding: 3px 7px;
border-radius: 5px;
background: rgba(255, 255, 255, 0.06);
box-shadow:
inset 0 0 0 1px rgba(255, 255, 255, 0.14),
inset 0 -1px 0 rgba(255, 255, 255, 0.08);
font-family: inherit;
}
.badge {
display: inline-flex;
align-items: center;
height: 18px;
padding: 0 5px;
border-radius: 4px;
font-size: 10px;
font-weight: 700;
letter-spacing: 0.04em;
color: #e7eaea;
box-shadow: inset 0 0 0 1.2px rgba(255, 255, 255, 0.45);
white-space: nowrap;
}
.badge.solid {
box-shadow: none;
background: rgba(255, 255, 255, 0.14);
}
.progress-bar {
height: 4px;
border-radius: 4px;
background: rgba(255, 255, 255, 0.16);
overflow: hidden;
}
.progress-bar > i {
display: block;
height: 100%;
background: var(--accent);
border-radius: inherit;
transition: width 300ms var(--ease);
}
.skeleton {
background: linear-gradient(90deg, #17191c 0, #1e2124 40%, #17191c 80%) 0 0 / 800px 100%;
animation: shimmer 1.4s linear infinite;
}