Дезайн ыыыы

This commit is contained in:
loki5512344 2026-07-11 00:01:26 +03:00
parent 403d7086d4
commit e7c02c7feb
174 changed files with 15802 additions and 9725 deletions

859
frontend/css/components.css Normal file
View file

@ -0,0 +1,859 @@
/* Reusable widgets — every interactive control lives here so nothing in a
screen-level stylesheet ever hand-rolls its own button/row look. */
/* ---------- icon ---------- */
.icon {
display: inline-block;
flex-shrink: 0;
color: inherit;
vertical-align: middle;
}
/* The duotone "background" layer — each tier gets its own semi-transparent
soft fill so the two-tone effect is visible no matter the icon color.
Using color-mix() instead of real alpha avoids muddy compositing on
colorful backgrounds (see icons.ts). */
.icon {
--icon-soft: color-mix(in srgb, var(--text-primary) 30%, transparent);
}
.icon .icon-soft {
fill: var(--icon-soft);
}
/* ---- Icon color tiers ----
Unselected / not important → white (default)
More important → orange (--accent)
Inactive / other → gray (--text-dim)
On orange button (CTA) → accent-color soft layer
*/
.icon { color: inherit; }
.icon--important {
color: var(--accent);
--icon-soft: color-mix(in srgb, var(--accent) 30%, transparent);
}
.icon--inactive {
color: var(--text-dim);
--icon-soft: color-mix(in srgb, var(--text-dim) 30%, transparent);
}
.icon--on-accent-bg {
color: var(--accent);
--icon-soft: color-mix(in srgb, var(--accent) 30%, transparent);
}
/* ---------- buttons ---------- */
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 6px;
border: none;
border-radius: var(--radius-md);
padding: 0 12px;
height: 32px;
font-size: 12.5px;
cursor: pointer;
background: transparent;
color: var(--text-primary);
transition:
background-color 0.1s var(--ease-out),
color 0.1s var(--ease-out),
transform 0.06s var(--ease-out);
white-space: nowrap;
}
.btn:disabled {
cursor: default;
opacity: 0.4;
}
.btn:active:not(:disabled) {
transform: scale(0.97);
}
.btn-ghost:not(:disabled):hover {
background: rgba(255, 255, 255, 0.06);
}
.btn-ghost:not(:disabled):active {
background: rgba(255, 255, 255, 0.1);
}
.btn-accent {
background: var(--accent);
color: var(--on-accent);
font-weight: 600;
}
.btn-accent:not(:disabled):hover {
background: var(--accent-hover);
}
.btn-accent:not(:disabled):active {
background: var(--accent-dim);
}
.btn-accent-dim {
background: var(--accent-soft);
color: var(--text-primary);
}
.btn-accent-dim:not(:disabled):hover {
background: color-mix(in srgb, var(--accent) 24%, transparent);
}
.btn-danger {
background: var(--red);
color: var(--on-accent);
font-weight: 600;
}
.btn-danger:not(:disabled):hover {
background: var(--red-hover);
}
.btn-toggle.active {
color: var(--accent);
background: var(--accent-soft);
}
.btn-toggle:not(.active):not(:disabled):hover {
background: rgba(255, 255, 255, 0.06);
}
.icon-btn {
width: 32px;
height: 32px;
padding: 0;
border-radius: var(--radius-md);
}
.btn-sep {
width: 1px;
height: 20px;
background: var(--border);
margin: 0 8px;
flex-shrink: 0;
}
/* ---------- clickable rows (sidebar / recent-connections list) ---------- */
.row {
display: flex;
align-items: center;
margin: 1px 10px;
padding: 0 10px;
height: 30px;
border-radius: var(--radius-sm);
cursor: pointer;
color: var(--text-primary);
transition: background-color 0.1s var(--ease-out);
}
.row:hover {
background: var(--bg-row-hover);
}
.row:active {
background: var(--bg-row-sel);
}
.row.active {
background: var(--accent-soft);
}
.row .row-spacer {
flex: 1;
}
/* ---------- spinner ---------- */
.spinner {
width: 14px;
height: 14px;
border-radius: 50%;
border: 2px solid color-mix(in srgb, var(--text-primary) 18%, transparent);
border-top-color: var(--accent);
animation: spin 0.7s linear infinite;
flex-shrink: 0;
}
@keyframes spin {
to {
transform: rotate(360deg);
}
}
/* ---------- keyboard shortcut chip ---------- */
.kbd {
display: inline-flex;
align-items: center;
font-family: var(--font-sans);
font-size: 10px;
font-weight: 600;
line-height: 1.5;
color: var(--text-dim);
background: rgba(255, 255, 255, 0.06);
border: 1px solid var(--border);
border-radius: 4px;
padding: 1px 5px;
white-space: nowrap;
}
.kbd-on-accent {
color: var(--on-accent);
background: rgba(255, 255, 255, 0.24);
border-color: transparent;
}
/* ---------- protocol badge (saved sites / history rows) ---------- */
.proto-badge {
flex-shrink: 0;
font-size: 9.5px;
font-weight: 700;
letter-spacing: 0.03em;
color: var(--text-dim);
border: 1px solid var(--border);
border-radius: 4px;
padding: 2px 5px;
}
/* ---------- status dot ---------- */
.status-dot {
font-size: 10px;
line-height: 1;
}
.status-dot.connected {
color: var(--green);
}
.status-dot.connecting {
color: var(--yellow);
}
.status-dot.error {
color: var(--red);
}
.status-dot.disconnected {
color: var(--text-hint);
}
/* ---------- form fields ---------- */
.field {
display: flex;
flex-direction: column;
gap: 4px;
}
.field-label {
font-size: 11px;
color: var(--text-dim);
}
.field-input {
height: 32px;
border-radius: var(--radius-md);
border: 1px solid var(--border);
background: var(--bg-content);
color: var(--text-primary);
padding: 0 10px;
font-size: 13px;
outline: none;
transition: border-color 0.1s var(--ease-out), box-shadow 0.1s var(--ease-out);
width: 100%;
}
.field-input::placeholder {
color: var(--text-hint);
}
.field-input:hover {
border-color: var(--accent-dim);
}
.field-input:focus {
border-color: var(--accent);
box-shadow: 0 0 0 3px var(--accent-ring);
}
.field-hint {
font-size: 10px;
color: var(--text-hint);
line-height: 1.4;
}
.field-row {
display: flex;
gap: 8px;
align-items: flex-end;
}
.field-with-btn {
display: flex;
gap: 8px;
}
.field-with-icon {
position: relative;
}
.field-with-icon .field-input {
padding-right: 34px;
}
.field-icon-btn {
position: absolute;
right: 4px;
top: 4px;
width: 24px;
height: 24px;
border-radius: var(--radius-sm);
border: none;
background: transparent;
color: var(--text-dim);
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
}
.field-icon-btn:hover {
background: rgba(255, 255, 255, 0.08);
color: var(--text-primary);
}
/* ---------- segmented control ---------- */
.segmented {
display: flex;
gap: 4px;
padding: 3px;
border: 1px solid var(--border);
border-radius: var(--radius-md);
background: var(--bg-content);
}
.segmented-item {
flex: 1;
height: 26px;
border: none;
border-radius: var(--radius-sm);
background: transparent;
color: var(--text-dim);
font-size: 11.5px;
font-weight: 600;
cursor: pointer;
transition: background-color 0.1s var(--ease-out), color 0.1s var(--ease-out);
}
.segmented-item:hover:not(.active) {
background: rgba(255, 255, 255, 0.05);
}
.segmented-item.active {
background: var(--accent);
color: var(--on-accent);
}
/* ---------- error box ---------- */
.error-box {
display: flex;
align-items: center;
gap: 8px;
background: var(--red-soft);
border: 1px solid color-mix(in srgb, var(--red) 40%, transparent);
border-radius: var(--radius-md);
padding: 8px 10px;
color: var(--red);
font-size: 11px;
animation: shake 0.32s var(--ease-out);
}
@keyframes shake {
0%,
100% {
transform: translateX(0);
}
25% {
transform: translateX(-4px);
}
75% {
transform: translateX(4px);
}
}
/* ---------- overlay / dialog ---------- */
.overlay {
position: fixed;
inset: 0;
background: color-mix(in srgb, var(--bg-base) 62%, transparent);
backdrop-filter: blur(2px);
-webkit-backdrop-filter: blur(2px);
display: flex;
align-items: center;
justify-content: center;
z-index: 100;
opacity: 0;
animation: overlay-in 0.16s var(--ease-out) forwards;
}
.overlay.closing {
animation: overlay-out 0.12s var(--ease-out) forwards;
}
@keyframes overlay-in {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
@keyframes overlay-out {
from {
opacity: 1;
}
to {
opacity: 0;
}
}
.dialog {
background: var(--bg-panel);
border: 1px solid var(--border);
border-radius: var(--radius-lg);
box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
padding: 22px;
width: 340px;
transform: translateY(0) scale(1);
opacity: 1;
animation: dialog-in 0.18s var(--ease-out);
}
@keyframes dialog-in {
from {
opacity: 0;
transform: translateY(6px) scale(0.98);
}
to {
opacity: 1;
transform: translateY(0) scale(1);
}
}
.dialog-header {
display: flex;
align-items: center;
gap: 8px;
margin-bottom: 18px;
}
.dialog-title {
font-size: 15.5px;
font-weight: 600;
color: var(--text-primary);
flex: 1;
}
.dialog-close {
width: 24px;
height: 24px;
border-radius: var(--radius-sm);
border: none;
background: transparent;
color: var(--text-dim);
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
}
.dialog-close:hover {
background: rgba(255, 255, 255, 0.08);
color: var(--text-primary);
}
.dialog-body > * + * {
margin-top: 10px;
}
.dialog-footer {
display: flex;
align-items: center;
margin-top: 18px;
}
.dialog-footer .btn {
min-width: 90px;
}
.dialog-footer .spacer {
flex: 1;
}
/* small confirm-style dialog */
.dialog.dialog-sm {
width: 300px;
}
/* Settings dialog: fixed-width nav column + scrolling content column */
.dialog.dialog-settings {
width: 640px;
}
.settings-body {
display: flex;
align-items: flex-start;
gap: 18px;
height: 420px;
}
.settings-nav {
width: 150px;
flex-shrink: 0;
display: flex;
flex-direction: column;
gap: 2px;
height: 100%;
overflow-y: auto;
border-right: 1px solid var(--border);
padding-right: 12px;
}
.settings-nav-item {
display: flex;
align-items: center;
gap: 8px;
height: 30px;
padding: 0 10px;
border-radius: var(--radius-sm);
color: var(--text-dim);
font-size: 12px;
cursor: pointer;
text-align: left;
transition: background-color 0.1s var(--ease-out), color 0.1s var(--ease-out);
}
.settings-nav-item:hover {
background: rgba(255, 255, 255, 0.05);
color: var(--text-primary);
}
.settings-nav-item.active {
background: var(--accent-soft);
color: var(--accent);
}
.settings-content {
flex: 1;
min-width: 0;
height: 100%;
overflow-y: auto;
padding-right: 4px;
}
.settings-section-title {
font-size: 13px;
font-weight: 700;
color: var(--text-primary);
margin-bottom: 4px;
}
.settings-label {
font-size: 12.5px;
font-weight: 600;
color: var(--text-primary);
}
.settings-hint {
font-size: 10.5px;
color: var(--text-hint);
line-height: 1.5;
margin-top: 2px;
}
.settings-row {
display: flex;
align-items: center;
gap: 10px;
}
.settings-check-row {
display: flex;
align-items: flex-start;
gap: 10px;
cursor: pointer;
}
.settings-block + .settings-block {
margin-top: 20px;
}
.settings-select {
appearance: auto;
background: var(--card-bg);
border: 1px solid var(--border-subtle);
border-radius: var(--radius-md);
padding: 6px 10px;
font-size: 12px;
color: var(--text-primary);
cursor: pointer;
min-width: 180px;
}
.settings-select:hover {
border-color: var(--accent);
}
.settings-select:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 1px;
}
/* ---------- theme picker (settings > appearance) ---------- */
.theme-grid {
display: grid;
grid-template-columns: 1fr 1fr 1fr;
gap: 10px;
}
.theme-card {
display: flex;
flex-direction: column;
align-items: center;
gap: 6px;
padding: 12px 8px 10px;
border-radius: var(--radius-md);
border: 1.5px solid var(--border);
background: var(--bg-content);
cursor: pointer;
transition:
border-color 0.15s var(--ease-out),
background-color 0.15s var(--ease-out),
transform 0.06s var(--ease-out);
}
.theme-card:hover {
border-color: var(--text-hint);
background: var(--bg-panel);
}
.theme-card.active {
border-color: var(--accent);
background: var(--accent-soft);
}
.theme-card:active {
transform: scale(0.96);
}
.theme-card-label {
font-size: 10px;
text-align: center;
line-height: 1.3;
color: var(--text-dim);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
max-width: 100%;
}
.theme-card.active .theme-card-label {
color: var(--accent);
font-weight: 600;
}
.theme-swatch {
width: 100%;
height: 44px;
border-radius: var(--radius-sm);
border: 1px solid var(--border);
overflow: hidden;
display: flex;
flex-direction: column;
}
/* Swatch previews — mimic each theme's palette */
.theme-swatch--ember {
background: linear-gradient(135deg, #0b0d11 40%, #181c24 70%, #d9804f 100%);
}
.theme-swatch--frost {
background: linear-gradient(135deg, #f4f6fa 40%, #ffffff 70%, #4a8fe0 100%);
}
.theme-swatch--midnight {
background: linear-gradient(135deg, #0d0e17 40%, #161827 70%, #8b7cf7 100%);
}
.theme-swatch--forest {
background: linear-gradient(135deg, #0b120e 40%, #141f17 70%, #5bba70 100%);
}
.theme-swatch--dawn {
background: linear-gradient(135deg, #faf6f3 40%, #ffffff 70%, #d9735a 100%);
}
.theme-swatch--ash {
background: linear-gradient(135deg, #0a0a0c 40%, #141416 70%, #c0c4cc 100%);
}
.settings-list-row {
display: flex;
align-items: center;
gap: 10px;
padding: 6px 0;
border-bottom: 1px solid var(--separator);
}
.settings-list-row:last-child {
border-bottom: none;
}
.settings-list-row-main {
min-width: 0;
flex: 1;
}
.settings-list-row-title {
font-size: 12.5px;
color: var(--text-primary);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.settings-list-row-sub {
font-size: 10.5px;
color: var(--text-hint);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.settings-value-row {
display: flex;
justify-content: space-between;
gap: 10px;
padding: 5px 0;
font-size: 12px;
}
.settings-value-row .k {
color: var(--text-dim);
}
.settings-value-row .v {
color: var(--text-primary);
font-family: var(--font-mono);
font-size: 11px;
text-align: right;
overflow-wrap: anywhere;
}
.settings-empty {
color: var(--text-hint);
font-size: 12px;
padding: 10px 0;
}
.dialog-text {
font-size: 12.5px;
color: var(--text-dim);
line-height: 1.5;
}
/* ---------- context menu ---------- */
.context-menu {
position: fixed;
z-index: 200;
min-width: 180px;
background: var(--bg-panel);
border: 1px solid var(--border);
border-radius: var(--radius-md);
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
padding: 4px;
animation: menu-in 0.12s var(--ease-out);
}
@keyframes menu-in {
from {
opacity: 0;
transform: scale(0.97);
}
to {
opacity: 1;
transform: scale(1);
}
}
.context-menu-item {
display: flex;
align-items: center;
gap: 8px;
width: 100%;
border: none;
background: transparent;
color: var(--text-primary);
font-size: 12px;
padding: 6px 10px;
border-radius: var(--radius-sm);
cursor: pointer;
text-align: left;
}
.context-menu-item:hover {
background: rgba(255, 255, 255, 0.07);
}
.context-menu-item.danger {
color: var(--red);
}
.context-menu-sep {
height: 1px;
background: var(--separator);
margin: 4px 6px;
}
/* ---------- popover (history) ---------- */
.popover {
position: fixed;
z-index: 90;
width: 270px;
background: var(--bg-panel);
border: 1px solid var(--border);
border-radius: var(--radius-lg);
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
padding: 10px;
opacity: 0;
transform: translateY(-4px);
animation: pop-in 0.14s var(--ease-out) forwards;
}
@keyframes pop-in {
to {
opacity: 1;
transform: translateY(0);
}
}
.popover-header {
display: flex;
align-items: center;
gap: 6px;
padding: 2px 4px 8px;
color: var(--text-dim);
font-size: 11px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.02em;
}
.popover-empty {
color: var(--text-hint);
padding: 6px 4px;
font-size: 12px;
}
.popover-list {
max-height: 220px;
overflow-y: auto;
}
.popover-row {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
width: 100%;
height: 30px;
padding: 0 8px;
border: none;
background: transparent;
border-radius: var(--radius-sm);
color: var(--text-primary);
font-size: 12px;
cursor: pointer;
text-align: left;
}
.popover-row:hover {
background: rgba(255, 255, 255, 0.06);
}
/* ---------- toggle switch (settings) ---------- */
.switch {
position: relative;
width: 34px;
height: 20px;
border-radius: 10px;
background: var(--border);
border: none;
cursor: pointer;
flex-shrink: 0;
transition: background-color 0.14s var(--ease-out);
}
.switch::after {
content: "";
position: absolute;
top: 2px;
left: 2px;
width: 16px;
height: 16px;
border-radius: 50%;
background: var(--text-primary);
transition: transform 0.14s var(--ease-out);
}
.switch.on {
background: var(--accent);
}
.switch.on::after {
transform: translateX(14px);
background: var(--on-accent);
}
/* ---------- progress bar ---------- */
.progress {
flex: 1;
height: 6px;
border-radius: 3px;
background: rgba(255, 255, 255, 0.06);
overflow: hidden;
}
.progress-fill {
height: 100%;
border-radius: 3px;
background: var(--accent);
transition: width 0.15s linear;
}
.progress-fill.running {
background: var(--accent);
}
.progress-fill.completed {
background: var(--green);
}
.progress-fill.failed {
background: var(--red);
}
.progress-fill.paused {
background: var(--text-hint);
}
/* ---------- empty state ---------- */
.empty-state {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100%;
color: var(--text-hint);
gap: 8px;
font-size: 12.5px;
}

896
frontend/css/layout.css Normal file
View file

@ -0,0 +1,896 @@
/* Screen-level layout: welcome screen and the main browsing shell. */
#screen-root {
flex: 1;
min-height: 0;
position: relative;
}
.screen {
position: absolute;
inset: 0;
opacity: 0;
animation: screen-in 0.2s var(--ease-out) forwards;
}
@keyframes screen-in {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
/* ================= Welcome screen ================= */
.welcome {
height: 100%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: flex-start;
padding-top: 11vh;
text-align: center;
overflow-y: auto;
/* soft ember glow behind the hero so the screen isn't a flat void */
background:
radial-gradient(560px 300px at 50% -60px, var(--accent-soft), transparent 70%),
var(--bg-base);
}
.welcome-hero {
display: flex;
flex-direction: column;
align-items: center;
}
.welcome-logo {
width: 76px;
height: 76px;
border-radius: 20px;
background: linear-gradient(145deg, var(--accent-hover), var(--accent-dim));
display: flex;
align-items: center;
justify-content: center;
color: var(--on-accent);
box-shadow:
0 12px 36px color-mix(in srgb, var(--accent) 28%, transparent),
inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.welcome-title {
margin-top: 16px;
font-size: 22px;
font-weight: 700;
letter-spacing: -0.01em;
color: var(--text-primary);
}
.welcome-subtitle {
margin-top: 4px;
font-size: 12.5px;
color: var(--text-hint);
}
.welcome-actions {
margin-top: 24px;
display: flex;
align-items: center;
gap: 10px;
}
.welcome-cta {
height: 32px;
padding: 0 14px;
}
.welcome-actions .kbd {
margin-left: 4px;
}
.welcome-status {
margin-top: 14px;
min-height: 20px;
display: flex;
align-items: center;
gap: 8px;
}
.welcome-columns {
margin-top: 24px;
width: min(720px, 90vw);
display: flex;
align-items: flex-start;
justify-content: center;
gap: 14px;
flex-wrap: wrap;
padding-bottom: 48px;
}
.welcome-card {
flex: 1 1 300px;
min-width: 280px;
max-width: 352px;
background: color-mix(in srgb, var(--bg-panel) 72%, transparent);
border: 1px solid var(--border);
border-radius: var(--radius-card);
padding: 12px 8px 8px;
text-align: left;
}
.welcome-card-title {
display: flex;
align-items: center;
gap: 6px;
padding: 0 10px 8px;
font-size: 10.5px;
font-weight: 700;
letter-spacing: 0.05em;
text-transform: uppercase;
color: var(--text-hint);
}
.recent-row {
display: flex;
align-items: center;
gap: 8px;
height: 34px;
padding: 0 10px;
border-radius: var(--radius-sm);
cursor: pointer;
transition: background-color 0.1s var(--ease-out);
}
.recent-row:hover {
background: var(--bg-row-hover);
}
/* Shared by both the welcome screen's recent-connections list (.recent-row)
and the toolbar's history popover (.popover-row) -- unscoped so it applies
in either parent. */
.recent-label {
flex: 1;
min-width: 0;
font-size: 12.5px;
color: var(--text-primary);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.recent-time {
flex-shrink: 0;
margin-left: auto;
font-size: 10.5px;
color: var(--text-hint);
white-space: nowrap;
}
/* ================= Main shell ================= */
.app-shell {
height: 100%;
display: flex;
flex-direction: column;
}
/* Toolbar — now floats above the body with uniform rounding */
.toolbar {
height: var(--toolbar-h);
flex-shrink: 0;
display: flex;
align-items: center;
gap: 8px;
padding: 0 16px;
margin: 8px 14px 0;
background: var(--bg-toolbar);
border-radius: var(--radius-card) var(--radius-card) 0 0;
position: relative;
z-index: 3;
}
.toolbar-spacer {
flex: 1;
}
/* Body row: sidebar + main content, floating in a padded, gapless frame so
the two panels read as one rounded pill (sidebar rounds its left corners,
the content card rounds its right corners — see mockup "new shell
concept"). */
.app-body {
flex: 1;
min-height: 0;
display: flex;
padding: 0 14px 14px;
gap: 0;
background: var(--bg-base);
}
.sidebar {
width: var(--sidebar-w);
min-width: 140px;
max-width: 260px;
flex-shrink: 0;
display: flex;
flex-direction: column;
background: var(--bg-panel);
border: 1px solid rgba(255, 255, 255, 0.04);
border-right: none;
border-radius: 0 0 0 var(--radius-card);
overflow-y: auto;
padding: 16px 0;
margin-top: -8px;
position: relative;
z-index: 1;
}
.sidebar-logo {
display: flex;
align-items: center;
gap: 8px;
padding: 0 16px;
margin-bottom: 18px;
flex-shrink: 0;
}
.sidebar-logo-badge {
width: 26px;
height: 26px;
border-radius: var(--radius-sm);
flex-shrink: 0;
background: linear-gradient(145deg, var(--accent), var(--accent-dim));
display: flex;
align-items: center;
justify-content: center;
color: var(--on-accent);
font-weight: 800;
font-size: 13px;
}
.sidebar-logo-text {
font-weight: 700;
font-size: 14px;
color: var(--text-primary);
}
.sidebar-section-title {
padding: 0 16px;
font-size: 10.5px;
font-weight: 700;
color: var(--text-hint);
letter-spacing: 0.02em;
flex-shrink: 0;
}
.sidebar-divider {
height: 1px;
background: var(--separator);
margin: 10px 8px;
flex-shrink: 0;
}
.sidebar-spacer {
flex: 1;
}
.sidebar-footer {
padding: 0 16px;
font-size: 10px;
color: var(--text-hint);
flex-shrink: 0;
}
.main-content {
flex: 1;
min-width: 0;
min-height: 0;
display: flex;
flex-direction: column;
background: var(--bg-content);
border-radius: 0 0 var(--radius-card) 0;
box-shadow:
0 12px 32px rgba(0, 0, 0, 0.45),
inset 0 1px 0 rgba(255, 255, 255, 0.06);
overflow: hidden;
position: relative;
z-index: 1;
}
/* Tab bar (Local + one per connection) */
.tabbar {
height: var(--tabbar-h);
flex-shrink: 0;
display: flex;
align-items: stretch;
background: var(--bg-panel);
border-bottom: 1px solid var(--border);
overflow-x: auto;
}
.tab {
display: flex;
align-items: center;
gap: 6px;
padding: 0 12px;
height: 100%;
border: none;
border-right: 1px solid var(--border);
background: var(--bg-tab-idle);
color: var(--text-dim);
font-size: 12px;
cursor: pointer;
white-space: nowrap;
flex-shrink: 0;
transition: background-color 0.1s var(--ease-out), color 0.1s var(--ease-out);
}
.tab:hover {
background: var(--bg-row-hover);
}
.tab.active {
background: var(--bg-tab-active);
color: var(--text-primary);
}
.tab-close {
width: 16px;
height: 16px;
border-radius: 4px;
border: none;
background: transparent;
color: var(--text-hint);
display: flex;
align-items: center;
justify-content: center;
font-size: 12px;
line-height: 1;
cursor: pointer;
}
.tab-close:hover {
background: rgba(255, 255, 255, 0.12);
color: var(--text-primary);
}
/* localPane.js/remotePane.js render straight into this element (there's no
separate .pane wrapper -- renderActivePane() swaps the one visible pane's
content in place rather than stacking multiple absolutely-positioned
panes), so it has to be the flex column container itself. */
.tab-panes {
flex: 1;
min-height: 0;
position: relative;
display: flex;
flex-direction: column;
}
/* Path bar (top of each pane) */
.path-bar {
height: 32px;
flex-shrink: 0;
display: flex;
align-items: center;
gap: 8px;
padding: 0 16px;
background: var(--bg-base);
border-bottom: 1px solid var(--border);
}
.path-bar-label {
font-size: 10.5px;
font-weight: 700;
color: var(--text-dim);
flex-shrink: 0;
}
.breadcrumbs {
display: flex;
align-items: center;
gap: 2px;
overflow: hidden;
flex: 1;
min-width: 0;
}
.breadcrumb-seg {
border: none;
background: transparent;
color: var(--text-dim);
font-size: 12px;
padding: 3px 5px;
border-radius: var(--radius-sm);
cursor: pointer;
flex-shrink: 0;
}
.breadcrumb-seg:hover {
background: rgba(255, 255, 255, 0.06);
color: var(--text-primary);
}
.breadcrumb-seg.current {
color: var(--text-primary);
font-weight: 600;
cursor: default;
}
.breadcrumb-seg.current:hover {
background: none;
}
.breadcrumb-sep {
color: var(--text-hint);
font-size: 12px;
}
.path-bar-right {
margin-left: auto;
display: flex;
align-items: center;
gap: 6px;
color: var(--text-hint);
font-size: 10.5px;
flex-shrink: 0;
}
/* File table */
.file-table-wrap {
flex: 1;
min-height: 0;
display: flex;
flex-direction: column;
}
.file-table-header {
display: grid;
grid-template-columns: 1fr 140px 60px 80px;
align-items: center;
height: 26px;
padding: 0 16px;
background: var(--bg-header);
border-bottom: 1px solid var(--border);
flex-shrink: 0;
}
.sort-header {
appearance: none;
border: none;
background: transparent;
color: var(--text-dim);
font-size: 10.5px;
font-weight: 700;
text-align: left;
padding: 0;
cursor: pointer;
height: 20px;
justify-self: start;
}
.file-table-header .sort-header:nth-child(2),
.file-table-header .sort-header:nth-child(3),
.file-table-header .sort-header:nth-child(4) {
justify-self: end;
text-align: right;
}
.sort-header:hover {
color: var(--text-primary);
}
.sort-header.active {
color: var(--accent);
}
.file-table-body {
flex: 1;
min-height: 0;
overflow-y: auto;
padding: 2px 0;
}
.file-row {
display: grid;
grid-template-columns: 1fr 140px 60px 80px;
align-items: center;
height: var(--row-h);
padding: 0 16px;
margin: 0 8px;
border-radius: var(--radius-sm);
cursor: default;
transition: background-color 0.08s var(--ease-out);
border: 1px solid transparent;
}
.file-row:hover {
background: var(--bg-row-hover);
}
.file-row.selected {
background: var(--bg-row-sel);
}
.file-row.dragging {
opacity: 0.35;
}
/* A dragged file/folder hovering a folder row (or "..") -- it'll spring
open into that folder after HOVER_OPEN_DELAY, see makeDropTarget in
dnd.js. */
.file-row.drag-hover {
background: var(--accent-soft);
outline: 1px dashed var(--accent-ring);
outline-offset: -1px;
}
.file-row-name {
display: flex;
align-items: center;
gap: 8px;
min-width: 0;
}
.file-row-name span {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-size: 12.5px;
}
.file-row-modified {
font-size: 10.5px;
color: var(--text-hint);
text-align: right;
padding-right: 12px;
}
.file-row-type {
font-size: 11px;
color: var(--text-dim);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.file-row-size {
font-size: 11px;
color: var(--text-dim);
text-align: right;
font-variant-numeric: tabular-nums;
}
/* Footer (below table) */
.pane-footer {
height: 28px;
flex-shrink: 0;
display: flex;
align-items: center;
gap: 8px;
padding: 0 8px 0 16px;
background: var(--bg-tab-idle);
border-top: 1px solid var(--border);
}
.pane-footer-right {
margin-left: auto;
display: flex;
align-items: center;
}
/* Queue panel */
.queue-panel {
flex-shrink: 0;
background: var(--bg-queue);
border-top: 1px solid var(--border);
overflow: hidden;
height: var(--queue-collapsed-h);
transition: height 0.18s var(--ease-out);
}
.queue-panel.expanded {
height: var(--queue-expanded-h);
}
.queue-header {
height: var(--queue-collapsed-h);
flex-shrink: 0;
display: flex;
align-items: center;
gap: 8px;
padding: 0 16px;
cursor: pointer;
}
.queue-header-title {
display: flex;
align-items: center;
gap: 6px;
color: var(--text-primary);
font-size: 11.5px;
font-weight: 600;
}
.queue-header-right {
margin-left: auto;
display: flex;
align-items: center;
gap: 8px;
font-size: 11px;
}
.queue-list {
overflow-y: auto;
height: calc(var(--queue-expanded-h) - var(--queue-collapsed-h));
padding: 2px 0;
}
.queue-task {
display: flex;
align-items: center;
gap: 10px;
height: 36px;
padding: 0 16px;
}
.queue-task-name {
width: 150px;
flex-shrink: 0;
font-size: 12px;
color: var(--text-primary);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.queue-task-pct {
width: 38px;
flex-shrink: 0;
text-align: right;
font-size: 11px;
color: var(--text-dim);
font-variant-numeric: tabular-nums;
}
.queue-task-state {
flex-shrink: 0;
display: flex;
align-items: center;
gap: 4px;
font-size: 10.5px;
min-width: 90px;
justify-content: flex-end;
}
.queue-task-actions {
display: flex;
gap: 2px;
flex-shrink: 0;
}
/* Status bar */
.status-bar {
height: var(--status-h);
flex-shrink: 0;
display: flex;
align-items: center;
gap: 10px;
padding: 0 16px;
background: var(--bg-base);
border-top: 1px solid var(--border);
font-size: 11px;
color: var(--text-dim);
}
.status-bar-right {
margin-left: auto;
display: flex;
align-items: center;
gap: 10px;
}
/* ================= Per-platform adjustments ================= */
/* initPlatform() stamps data-platform (mac/windows/linux), data-desktop
(kde/gnome/hyprland/…) and data-tiling on <html> — see js/platform.js. */
/* Tiling compositors (Hyprland, sway, i3, …): the window fills its slot
edge-to-edge, so the decorative floating-card gutter reads as wasted
space — tighten it and square off the shell slightly. */
html[data-tiling="true"] .app-body {
padding: 8px;
}
/* Windows: Segoe UI sits a touch lower on the line box than SF/Noto;
antialiased smoothing also renders it too thin on ClearType displays. */
html[data-platform="windows"] body {
-webkit-font-smoothing: auto;
}
/* GNOME/KDE ship overlay scrollbars — a permanently-reserved 9px gutter
looks foreign there; slim it down. */
html[data-platform="linux"] ::-webkit-scrollbar {
width: 7px;
height: 7px;
}
/* ── Split-pane grid ─────────────────────────────────────────────────── */
.pane-grid {
flex: 1;
min-height: 0;
}
.pane-cell {
display: flex;
flex-direction: column;
min-width: 0;
min-height: 0;
background: var(--bg-content);
position: relative;
overflow: hidden;
}
.pane-cell + .pane-cell {
border-left: 1px solid var(--border);
}
.pane-cell.drop-zone {
background: var(--bg-panel);
outline: 2px solid var(--accent);
outline-offset: -2px;
z-index: 2;
}
.pane-cell.dragging {
opacity: 0.5;
}
/* Pane header */
.pane-header {
display: flex;
align-items: center;
height: 28px;
padding: 0 8px 0 12px;
background: var(--bg-tab-idle);
border-bottom: 1px solid var(--border);
cursor: grab;
flex-shrink: 0;
gap: 6px;
user-select: none;
}
.pane-header:active {
cursor: grabbing;
}
.pane-label {
font-size: 11px;
font-weight: 600;
color: var(--text-dim);
flex: 1;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.pane-actions {
display: flex;
align-items: center;
gap: 2px;
flex-shrink: 0;
}
.pane-split-btn,
.pane-close-btn {
width: 18px;
height: 18px;
border: none;
border-radius: 3px;
background: transparent;
color: var(--text-hint);
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
font-size: 10px;
padding: 0;
}
.pane-split-btn:hover,
.pane-close-btn:hover {
background: rgba(255, 255, 255, 0.08);
color: var(--text-primary);
}
.pane-body {
flex: 1;
min-height: 0;
display: flex;
flex-direction: column;
}
/* Pane count badge in tab bar */
.tab-pane-count {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 18px;
height: 18px;
padding: 0 4px;
border-radius: 4px;
background: var(--accent-soft);
color: var(--accent);
font-size: 10px;
font-weight: 700;
margin: 0 4px 0 8px;
flex-shrink: 0;
}
/* ── Pane edge drop zones ────────────────────────────────────────────── */
.pane-zone {
position: absolute;
opacity: 0;
transition: opacity 0.1s ease, background 0.1s ease;
pointer-events: none;
z-index: 5;
}
.pane-zone--left { left: 0; top: 0; bottom: 0; width: 22%; }
.pane-zone--right { right: 0; top: 0; bottom: 0; width: 22%; }
.pane-zone--top { left: 0; right: 0; top: 0; height: 22%; }
.pane-zone--bottom { left: 0; right: 0; bottom: 0; height: 22%; }
.pane-zone--center { left: 22%; right: 22%; top: 22%; bottom: 22%; }
.pane-zone--swap { left: 0; right: 0; top: 28px; bottom: 0; } /* below header */
.pane-cell.drop-active[data-drop-zone="left"] .pane-zone--left,
.pane-cell.drop-active[data-drop-zone="right"] .pane-zone--right,
.pane-cell.drop-active[data-drop-zone="top"] .pane-zone--top,
.pane-cell.drop-active[data-drop-zone="bottom"] .pane-zone--bottom,
.pane-cell.drop-active[data-drop-zone="center"] .pane-zone--center {
opacity: 1;
background: var(--accent-soft);
}
.pane-cell.drop-active[data-drop-zone="center"] .pane-zone--center {
background: color-mix(in srgb, var(--accent) 30%, transparent);
}
/* Pane "spring-loading": shown while a dragged tab hovers a pane that
hasn't opened as a drop target yet (see HOVER_OPEN_DELAY in dnd.js) --
distinct from .drop-active so the pause before zones appear still reads
as a response to the hover, not a stall. */
.pane-cell.drop-pending {
outline: 2px dashed var(--accent-ring);
outline-offset: -2px;
}
/* Tab dragging visual */
.tab-dragging {
opacity: 0.45;
}
.pane-dragging {
opacity: 0.4;
}
/* ── Panel show/hide animations ──────────────────────────────────────── */
/* Sidebar: collapse width + fade */
.sidebar {
transition: width 0.25s var(--ease-out),
min-width 0.25s var(--ease-out),
padding-left 0.25s var(--ease-out),
padding-right 0.25s var(--ease-out),
border-width 0.25s var(--ease-out),
opacity 0.2s var(--ease-out);
}
.sidebar.hidden {
width: 0 !important;
min-width: 0 !important;
padding-left: 0 !important;
padding-right: 0 !important;
border: none !important;
opacity: 0;
overflow: hidden;
pointer-events: none;
}
/* Toolbar: collapse height + fade */
.toolbar {
transition: height 0.25s var(--ease-out),
margin 0.25s var(--ease-out),
padding 0.25s var(--ease-out),
opacity 0.2s var(--ease-out);
}
.toolbar.hidden {
height: 0 !important;
margin: 0 14px !important;
padding-top: 0 !important;
padding-bottom: 0 !important;
border: none !important;
opacity: 0;
overflow: hidden;
pointer-events: none;
}
/* Status bar: collapse height + fade */
.status-bar {
transition: height 0.25s var(--ease-out),
opacity 0.2s var(--ease-out);
}
.status-bar.hidden {
height: 0 !important;
opacity: 0;
overflow: hidden;
pointer-events: none;
}
/* Queue panel: collapse height + fade */
.queue-panel {
transition: height 0.22s var(--ease-out),
opacity 0.18s var(--ease-out);
}
.queue-panel.hidden {
height: 0 !important;
opacity: 0;
overflow: hidden;
pointer-events: none;
}
/* ── Main-content corner rounding ────────────────────────────────────── */
.main-content {
transition: border-radius 0.25s var(--ease-out);
}
/* Default: bottom-right only (sidebar left + toolbar top are flat) */
.main-content:not(.no-sidebar):not(.no-toolbar):not(.no-status) {
border-radius: 0 0 var(--radius-card) 0;
}
/* Sidebar hidden -- round left side */
.main-content.no-sidebar:not(.no-toolbar):not(.no-status) {
border-radius: 0 var(--radius-card) var(--radius-card) 0;
}
/* Toolbar hidden -- round top */
.main-content.no-toolbar:not(.no-sidebar):not(.no-status) {
border-radius: var(--radius-card) var(--radius-card) 0 0;
}
/* Bottom hidden -- round bottom */
.main-content.no-status:not(.no-sidebar):not(.no-toolbar) {
border-radius: 0 0 var(--radius-card) var(--radius-card);
}
/* Sidebar + Toolbar hidden */
.main-content.no-sidebar.no-toolbar:not(.no-status) {
border-radius: var(--radius-card) var(--radius-card) var(--radius-card) 0;
}
/* Sidebar + Bottom hidden */
.main-content.no-sidebar.no-status:not(.no-toolbar) {
border-radius: 0 var(--radius-card) var(--radius-card) var(--radius-card);
}
/* Toolbar + Bottom hidden */
.main-content.no-toolbar.no-status:not(.no-sidebar) {
border-radius: var(--radius-card) var(--radius-card) var(--radius-card) var(--radius-card);
}
/* All three hidden -- fully rounded */
.main-content.no-sidebar.no-toolbar.no-status {
border-radius: var(--radius-card);
}

371
frontend/css/theme.css Normal file
View file

@ -0,0 +1,371 @@
/* ── Wherry Themes ─────────────────────────────────────────────────────────
Six themes: Ember (dark · copper), Frost (light · blue), Midnight
(dark · indigo), Forest (dark · green), Dawn (light · peach), Ash
(high-contrast dark · neutral).
Every colour the UI uses is a token; component styles never hardcode a
hex. Soft/hover variants are derived with color-mix() so the whole
palette can be retuned by touching only the base tokens.
The active theme is selected via `data-theme="…"` on the <html> element.
──────────────────────────────────────────────────────────────────────── */
/* ══════════════ 1. Ember (default dark · copper accent) ═══════════════ */
:root,
[data-theme="ember"] {
--bg-base: #0b0d11;
--bg-panel: #181c24;
--bg-content: #12151b;
--bg-toolbar: #12151b;
--bg-tab-active: #12151b;
--bg-tab-idle: #14171e;
--bg-queue: #0f1116;
--bg-header: #10131a;
--bg-row-hover: rgba(255, 255, 255, 0.055);
--bg-row-sel: color-mix(in srgb, var(--accent) 17%, transparent);
--accent: #d9804f;
--accent-hover: #e28e5d;
--accent-dim: #9c5433;
--accent-soft: color-mix(in srgb, var(--accent) 14%, transparent);
--accent-ring: color-mix(in srgb, var(--accent) 32%, transparent);
--on-accent: #221208;
--green: #7dc98f;
--green-soft: color-mix(in srgb, var(--green) 14%, transparent);
--red: #e2604c;
--red-hover: #e97561;
--red-soft: color-mix(in srgb, var(--red) 14%, transparent);
--yellow: #e3b341;
--yellow-soft: color-mix(in srgb, var(--yellow) 14%, transparent);
--blue: #6aa9e9;
--blue-soft: color-mix(in srgb, var(--blue) 14%, transparent);
--text-primary: #eceef2;
--text-dim: #99a0ac;
--text-hint: #656c79;
--border: #232833;
--separator: #262b35;
}
/* ══════════════ 2. Frost (light · cool blue accent) ════════════════════ */
[data-theme="frost"] {
--bg-base: #f4f6fa;
--bg-panel: #ffffff;
--bg-content: #fafbfd;
--bg-toolbar: #ffffff;
--bg-tab-active: #ffffff;
--bg-tab-idle: #f0f2f6;
--bg-queue: #f8f9fc;
--bg-header: #edf0f5;
--bg-row-hover: rgba(0, 0, 0, 0.04);
--bg-row-sel: color-mix(in srgb, var(--accent) 14%, transparent);
--accent: #4a8fe0;
--accent-hover: #5d9de8;
--accent-dim: #3570b0;
--accent-soft: color-mix(in srgb, var(--accent) 12%, transparent);
--accent-ring: color-mix(in srgb, var(--accent) 28%, transparent);
--on-accent: #ffffff;
--green: #38a169;
--green-soft: color-mix(in srgb, var(--green) 12%, transparent);
--red: #d95c4a;
--red-hover: #e06d5c;
--red-soft: color-mix(in srgb, var(--red) 12%, transparent);
--yellow: #c9952e;
--yellow-soft: color-mix(in srgb, var(--yellow) 12%, transparent);
--blue: #4a8fe0;
--blue-soft: color-mix(in srgb, var(--blue) 12%, transparent);
--text-primary: #1a1d23;
--text-dim: #5f6672;
--text-hint: #9098a5;
--border: #dce0e8;
--separator: #e2e6ee;
}
/* ══════════════ 3. Midnight (dark · indigo accent) ══════════════════════ */
[data-theme="midnight"] {
--bg-base: #0d0e17;
--bg-panel: #161827;
--bg-content: #10121e;
--bg-toolbar: #10121e;
--bg-tab-active: #10121e;
--bg-tab-idle: #131523;
--bg-queue: #0e0f1a;
--bg-header: #0f111d;
--bg-row-hover: rgba(255, 255, 255, 0.055);
--bg-row-sel: color-mix(in srgb, var(--accent) 17%, transparent);
--accent: #8b7cf7;
--accent-hover: #9d90f9;
--accent-dim: #6355c9;
--accent-soft: color-mix(in srgb, var(--accent) 14%, transparent);
--accent-ring: color-mix(in srgb, var(--accent) 32%, transparent);
--on-accent: #110e24;
--green: #6fcb8a;
--green-soft: color-mix(in srgb, var(--green) 14%, transparent);
--red: #e06070;
--red-hover: #e87481;
--red-soft: color-mix(in srgb, var(--red) 14%, transparent);
--yellow: #dbb84a;
--yellow-soft: color-mix(in srgb, var(--yellow) 14%, transparent);
--blue: #6a8ce8;
--blue-soft: color-mix(in srgb, var(--blue) 14%, transparent);
--text-primary: #e8eaf2;
--text-dim: #949ab0;
--text-hint: #5e6480;
--border: #222540;
--separator: #262948;
}
/* ══════════════ 4. Forest (dark · green accent) ═════════════════════════ */
[data-theme="forest"] {
--bg-base: #0b120e;
--bg-panel: #141f17;
--bg-content: #0e1611;
--bg-toolbar: #0e1611;
--bg-tab-active: #0e1611;
--bg-tab-idle: #111a13;
--bg-queue: #0c130f;
--bg-header: #0d1510;
--bg-row-hover: rgba(255, 255, 255, 0.055);
--bg-row-sel: color-mix(in srgb, var(--accent) 17%, transparent);
--accent: #5bba70;
--accent-hover: #6ec982;
--accent-dim: #3d8f4f;
--accent-soft: color-mix(in srgb, var(--accent) 14%, transparent);
--accent-ring: color-mix(in srgb, var(--accent) 32%, transparent);
--on-accent: #0c1e10;
--green: #5bba70;
--green-soft: color-mix(in srgb, var(--green) 14%, transparent);
--red: #d96050;
--red-hover: #e07262;
--red-soft: color-mix(in srgb, var(--red) 14%, transparent);
--yellow: #d4ad40;
--yellow-soft: color-mix(in srgb, var(--yellow) 14%, transparent);
--blue: #5b94c9;
--blue-soft: color-mix(in srgb, var(--blue) 14%, transparent);
--text-primary: #e2efe5;
--text-dim: #91a899;
--text-hint: #5c7565;
--border: #1e3325;
--separator: #223b29;
}
/* ══════════════ 5. Dawn (light · warm peach accent) ═════════════════════ */
[data-theme="dawn"] {
--bg-base: #faf6f3;
--bg-panel: #ffffff;
--bg-content: #fdfaf8;
--bg-toolbar: #ffffff;
--bg-tab-active: #ffffff;
--bg-tab-idle: #f6f0ea;
--bg-queue: #fbf7f4;
--bg-header: #f2ebe5;
--bg-row-hover: rgba(0, 0, 0, 0.04);
--bg-row-sel: color-mix(in srgb, var(--accent) 14%, transparent);
--accent: #d9735a;
--accent-hover: #e0846c;
--accent-dim: #b05a44;
--accent-soft: color-mix(in srgb, var(--accent) 12%, transparent);
--accent-ring: color-mix(in srgb, var(--accent) 28%, transparent);
--on-accent: #ffffff;
--green: #4b8b5e;
--green-soft: color-mix(in srgb, var(--green) 12%, transparent);
--red: #c95a4a;
--red-hover: #d86c5c;
--red-soft: color-mix(in srgb, var(--red) 12%, transparent);
--yellow: #b8993a;
--yellow-soft: color-mix(in srgb, var(--yellow) 12%, transparent);
--blue: #5a80b8;
--blue-soft: color-mix(in srgb, var(--blue) 12%, transparent);
--text-primary: #2c2420;
--text-dim: #736760;
--text-hint: #9f928a;
--border: #e6dbd3;
--separator: #ede2da;
}
/* ══════════════ 6. Ash (high-contrast dark · neutral gray) ══════════════ */
[data-theme="ash"] {
--bg-base: #0a0a0c;
--bg-panel: #141416;
--bg-content: #0e0e10;
--bg-toolbar: #0e0e10;
--bg-tab-active: #0e0e10;
--bg-tab-idle: #111113;
--bg-queue: #0c0c0e;
--bg-header: #0d0d0f;
--bg-row-hover: rgba(255, 255, 255, 0.07);
--bg-row-sel: color-mix(in srgb, var(--accent) 20%, transparent);
--accent: #c0c4cc;
--accent-hover: #d4d8e0;
--accent-dim: #8a8e98;
--accent-soft: color-mix(in srgb, var(--accent) 14%, transparent);
--accent-ring: color-mix(in srgb, var(--accent) 35%, transparent);
--on-accent: #0a0a0c;
--green: #8fd4a0;
--green-soft: color-mix(in srgb, var(--green) 16%, transparent);
--red: #f07060;
--red-hover: #f58476;
--red-soft: color-mix(in srgb, var(--red) 16%, transparent);
--yellow: #e8c860;
--yellow-soft: color-mix(in srgb, var(--yellow) 16%, transparent);
--blue: #80b4e8;
--blue-soft: color-mix(in srgb, var(--blue) 16%, transparent);
--text-primary: #f0f2f5;
--text-dim: #b0b4be;
--text-hint: #787c88;
--border: #2c2e36;
--separator: #32343c;
}
/* ══════════════ Shared base styles ════════════════════════════════════════ */
/* Sizes — identical across all themes */
:root {
--sidebar-w: 216px;
--toolbar-h: 52px;
--tabbar-h: 36px;
--queue-collapsed-h: 34px;
--queue-expanded-h: 192px;
--status-h: 28px;
--row-h: 32px;
--radius-sm: 6px;
--radius-md: 8px;
--radius-lg: 10px;
--radius-card: 14px;
--font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text",
"Segoe UI", "Noto Sans", "Ubuntu", "Cantarell", "DejaVu Sans", sans-serif;
--font-mono: "SF Mono", ui-monospace, Menlo, Consolas, "Noto Sans Mono",
"DejaVu Sans Mono", monospace;
--ease-out: cubic-bezier(0.16, 1, 0.3, 1);
/* Transition for theme switching — animates colour changes smoothly */
--theme-transition: background-color 0.3s var(--ease-out),
color 0.3s var(--ease-out),
border-color 0.3s var(--ease-out),
box-shadow 0.3s var(--ease-out);
}
/* Apply theme transitions when [data-theme] changes */
html.theme-transitioning,
html.theme-transitioning *,
html.theme-transitioning *::before,
html.theme-transitioning *::after {
transition: var(--theme-transition) !important;
}
* {
box-sizing: border-box;
}
html,
body {
height: 100%;
margin: 0;
padding: 0;
background: var(--bg-base);
color: var(--text-primary);
font-family: var(--font-sans);
font-size: 13px;
overflow: hidden;
-webkit-font-smoothing: antialiased;
user-select: none;
}
#app {
height: 100vh;
width: 100vw;
display: flex;
flex-direction: column;
}
button,
input,
select {
font-family: inherit;
color: inherit;
}
button {
appearance: none;
background: none;
border: none;
padding: 0;
cursor: pointer;
font-size: inherit;
}
p {
margin: 0;
}
::selection {
background: var(--accent-ring);
color: var(--text-primary);
}
:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 1px;
}
@media (prefers-reduced-motion: reduce) {
*,
*::before,
*::after {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
}
}
::-webkit-scrollbar {
width: 9px;
height: 9px;
}
::-webkit-scrollbar-thumb {
background: var(--border);
border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
background: var(--text-hint);
}
::-webkit-scrollbar-track {
background: transparent;
}
/* ── Utility text-colour classes ─────────────────────────────────────────── */
.text-primary { color: var(--text-primary); }
.text-dim { color: var(--text-dim); }
.text-hint { color: var(--text-hint); }
.text-accent { color: var(--accent); }
.text-green { color: var(--green); }
.text-red { color: var(--red); }
.text-yellow { color: var(--yellow); }
.text-blue { color: var(--blue); }
.mono { font-family: var(--font-mono); }