mirror of
https://github.com/19JVJeffery/tiddl-gui.git
synced 2026-10-21 18:32:16 -05:00
Co-authored-by: 19JVJeffery <94115228+19JVJeffery@users.noreply.github.com>
1820 lines
81 KiB
CSS
1820 lines
81 KiB
CSS
/* ─── CSS Reset ──────────────────────────────────────────────────────────── */
|
||
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
|
||
|
||
/* ─── Design Tokens — Dark (default) ────────────────────────────────────── */
|
||
:root {
|
||
--sp-1: 0.25rem; --sp-2: 0.5rem; --sp-3: 0.75rem;
|
||
--sp-4: 1rem; --sp-5: 1.25rem; --sp-6: 1.5rem; --sp-8: 2rem;
|
||
--r-sm: 6px; --r: 10px; --r-lg: 14px; --r-xl: 20px; --r-full: 9999px;
|
||
--font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
|
||
--font-mono: 'Fira Code', 'Cascadia Code', 'Consolas', 'Courier New', monospace;
|
||
--t-fast: 120ms ease; --t-normal: 220ms ease; --t-slow: 380ms ease;
|
||
--shadow-sm: 0 1px 3px rgba(0,0,0,.18), 0 1px 2px rgba(0,0,0,.22);
|
||
--shadow: 0 3px 8px rgba(0,0,0,.22), 0 2px 4px rgba(0,0,0,.16);
|
||
--shadow-lg: 0 10px 24px rgba(0,0,0,.28), 0 4px 8px rgba(0,0,0,.18);
|
||
--shadow-xl: 0 20px 48px rgba(0,0,0,.35);
|
||
--color-bg: #0b0b14;
|
||
--color-surface: #111120;
|
||
--color-surface-2: #18182a;
|
||
--color-surface-3: #20203a;
|
||
--color-border: #2a2a42;
|
||
--color-border-soft: rgba(255,255,255,.05);
|
||
--color-text: #e4e4f0;
|
||
--color-text-muted: #7070a0;
|
||
--color-text-subtle: #44446a;
|
||
--color-error: #f07070;
|
||
--color-error-soft: rgba(240,112,112,.13);
|
||
--color-warn: #f0c060;
|
||
--color-warn-soft: rgba(240,192,96,.13);
|
||
--color-accent: #4fd08c;
|
||
--color-accent-dark: #38b473;
|
||
--color-accent-light: #6ee4a0;
|
||
--color-accent-soft: rgba(79,208,140,.14);
|
||
--color-accent-glow: rgba(79,208,140,.25);
|
||
--color-success: #4fd08c;
|
||
--header-h: 58px;
|
||
--sidebar-w: 196px;
|
||
--mob-nav-h: 64px;
|
||
/* Glassmorphism */
|
||
--blur: 20px;
|
||
--glass-header: rgba(11, 11, 20, 0.68);
|
||
--glass-sidebar: rgba(17, 17, 32, 0.74);
|
||
--glass-panel-hdr: rgba(11, 11, 20, 0.62);
|
||
--glass-save-strip: rgba(17, 17, 32, 0.78);
|
||
--glass-card: rgba(17, 17, 32, 0.68);
|
||
}
|
||
|
||
/* ─── Light Theme ────────────────────────────────────────────────────────── */
|
||
[data-theme="light"] {
|
||
--color-bg: #f2f2fa;
|
||
--color-surface: #ffffff;
|
||
--color-surface-2: #f7f7fd;
|
||
--color-surface-3: #edecf8;
|
||
--color-border: #ddddf0;
|
||
--color-border-soft: rgba(0,0,0,.06);
|
||
--color-text: #141428;
|
||
--color-text-muted: #5858a0;
|
||
--color-text-subtle: #9090c0;
|
||
--color-error: #d04040;
|
||
--color-error-soft: rgba(208,64,64,.12);
|
||
--color-warn: #b07010;
|
||
--color-warn-soft: rgba(176,112,16,.12);
|
||
--shadow-sm: 0 1px 3px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.09);
|
||
--shadow: 0 3px 8px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.06);
|
||
--shadow-lg: 0 10px 24px rgba(0,0,0,.08), 0 4px 8px rgba(0,0,0,.05);
|
||
--shadow-xl: 0 20px 48px rgba(0,0,0,.10);
|
||
--glass-header: rgba(242, 242, 250, 0.68);
|
||
--glass-sidebar: rgba(255, 255, 255, 0.74);
|
||
--glass-panel-hdr: rgba(242, 242, 250, 0.62);
|
||
--glass-save-strip: rgba(255, 255, 255, 0.78);
|
||
--glass-card: rgba(255, 255, 255, 0.68);
|
||
}
|
||
|
||
/* ─── System Light ───────────────────────────────────────────────────────── */
|
||
@media (prefers-color-scheme: light) {
|
||
:root:not([data-theme="dark"]):not([data-theme="light"]) {
|
||
--color-bg: #f2f2fa;
|
||
--color-surface: #ffffff;
|
||
--color-surface-2: #f7f7fd;
|
||
--color-surface-3: #edecf8;
|
||
--color-border: #ddddf0;
|
||
--color-border-soft: rgba(0,0,0,.06);
|
||
--color-text: #141428;
|
||
--color-text-muted: #5858a0;
|
||
--color-text-subtle: #9090c0;
|
||
--color-error: #d04040;
|
||
--color-error-soft: rgba(208,64,64,.12);
|
||
--color-warn: #b07010;
|
||
--color-warn-soft: rgba(176,112,16,.12);
|
||
--shadow-sm: 0 1px 3px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.09);
|
||
--shadow: 0 3px 8px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.06);
|
||
--shadow-lg: 0 10px 24px rgba(0,0,0,.08), 0 4px 8px rgba(0,0,0,.05);
|
||
--shadow-xl: 0 20px 48px rgba(0,0,0,.10);
|
||
--glass-header: rgba(242, 242, 250, 0.68);
|
||
--glass-sidebar: rgba(255, 255, 255, 0.74);
|
||
--glass-panel-hdr: rgba(242, 242, 250, 0.62);
|
||
--glass-save-strip: rgba(255, 255, 255, 0.78);
|
||
--glass-card: rgba(255, 255, 255, 0.68);
|
||
}
|
||
}
|
||
|
||
/* ─── Animations ─────────────────────────────────────────────────────────── */
|
||
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
|
||
@keyframes slide-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
|
||
@keyframes spin { to { transform: rotate(360deg); } }
|
||
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
|
||
@keyframes pulse-glow {
|
||
0%, 100% { box-shadow: 0 0 0 0 var(--color-accent-glow); }
|
||
50% { box-shadow: 0 0 0 6px transparent; }
|
||
}
|
||
@keyframes progress-stripe {
|
||
0% { background-position: 0% 50%; }
|
||
50% { background-position: 100% 50%; }
|
||
100% { background-position: 0% 50%; }
|
||
}
|
||
|
||
/* ─── UI Effects levels ──────────────────────────────────────────────────── */
|
||
/* Classic: solid opaque surfaces, no blur — original look */
|
||
[data-effects="classic"] {
|
||
--blur: 0px;
|
||
--glass-header: var(--color-surface);
|
||
--glass-sidebar: var(--color-surface);
|
||
--glass-panel-hdr: var(--color-bg);
|
||
--glass-save-strip: var(--color-surface);
|
||
--glass-card: var(--color-surface);
|
||
}
|
||
[data-effects="classic"] .panel-sticky-header {
|
||
border-bottom-color: transparent;
|
||
}
|
||
/* Reduced: shorter durations, smaller blur — slightly less extreme than Full */
|
||
[data-effects="reduced"] {
|
||
--t-fast: 60ms ease;
|
||
--t-normal: 110ms ease;
|
||
--t-slow: 190ms ease;
|
||
--blur: 10px;
|
||
}
|
||
/* Minimal: near-zero durations, no blur */
|
||
[data-effects="minimal"] {
|
||
--t-fast: 1ms;
|
||
--t-normal: 1ms;
|
||
--t-slow: 1ms;
|
||
--blur: 0px;
|
||
--glass-header: var(--color-surface);
|
||
--glass-sidebar: var(--color-surface);
|
||
--glass-panel-hdr: var(--color-bg);
|
||
--glass-save-strip: var(--color-surface);
|
||
--glass-card: var(--color-surface);
|
||
}
|
||
/* !important is required here: these rules must override any inline or
|
||
component-scoped durations set elsewhere. This is the standard approach
|
||
per MDN and is used in Bootstrap, Tailwind, and other major frameworks. */
|
||
[data-effects="minimal"] *,
|
||
[data-effects="minimal"] *::before,
|
||
[data-effects="minimal"] *::after {
|
||
animation-duration: 0.001ms !important;
|
||
transition-duration: 0.001ms !important;
|
||
}
|
||
/* Keep spinner functional even in minimal mode */
|
||
[data-effects="minimal"] .spinner {
|
||
animation-duration: 0.65s !important;
|
||
animation-iteration-count: infinite !important;
|
||
}
|
||
|
||
/* ─── Prefers reduced motion ─────────────────────────────────────────────── */
|
||
/* Intentionally mirrors [data-effects="minimal"] — this responds to the OS
|
||
preference independently of the user's in-app setting. */
|
||
@media (prefers-reduced-motion: reduce) {
|
||
*, *::before, *::after {
|
||
animation-duration: 0.001ms !important;
|
||
animation-iteration-count: 1 !important;
|
||
transition-duration: 0.001ms !important;
|
||
}
|
||
.spinner { animation-duration: 0.65s !important; animation-iteration-count: infinite !important; }
|
||
}
|
||
|
||
/* ─── Base ───────────────────────────────────────────────────────────────── */
|
||
html {
|
||
font-size: 15px; scroll-behavior: smooth;
|
||
/* Lock the outer viewport so only the main panel scrolls */
|
||
height: 100%; overflow: hidden;
|
||
}
|
||
|
||
body {
|
||
background: var(--color-bg);
|
||
color: var(--color-text);
|
||
font-family: var(--font);
|
||
/* Fixed full-viewport height — sidebar and header never scroll */
|
||
height: 100vh; overflow: hidden;
|
||
display: flex;
|
||
flex-direction: column;
|
||
transition: background var(--t-slow), color var(--t-slow);
|
||
-webkit-font-smoothing: antialiased;
|
||
-moz-osx-font-smoothing: grayscale;
|
||
}
|
||
|
||
a { color: var(--color-accent); text-decoration: none; }
|
||
a:hover { text-decoration: underline; }
|
||
|
||
code {
|
||
font-family: var(--font-mono);
|
||
background: var(--color-surface-2);
|
||
border: 1px solid var(--color-border);
|
||
border-radius: var(--r-sm);
|
||
padding: 0.1em 0.4em;
|
||
font-size: 0.85em;
|
||
}
|
||
|
||
/* Firefox scrollbar */
|
||
html { scrollbar-width: thin; scrollbar-color: var(--color-border) transparent; }
|
||
/* WebKit / Blink (Chrome, Safari, Edge) */
|
||
::-webkit-scrollbar { width: 7px; height: 7px; }
|
||
::-webkit-scrollbar-track { background: transparent; }
|
||
::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: var(--r-full); }
|
||
::-webkit-scrollbar-thumb:hover { background: var(--color-text-subtle); }
|
||
|
||
/* ─── Buttons ────────────────────────────────────────────────────────────── */
|
||
button {
|
||
cursor: pointer; border: none; border-radius: var(--r);
|
||
font-family: inherit; font-size: 0.875rem; font-weight: 600;
|
||
padding: 0.55rem 1.2rem;
|
||
transition: background var(--t-fast), opacity var(--t-fast),
|
||
box-shadow var(--t-fast), border-color var(--t-fast),
|
||
color var(--t-fast), transform var(--t-fast);
|
||
-webkit-tap-highlight-color: transparent;
|
||
}
|
||
button:disabled { opacity: .45; cursor: not-allowed; }
|
||
button:active:not(:disabled) { transform: scale(.97); }
|
||
|
||
.btn-primary {
|
||
background: var(--color-accent); color: #fff; white-space: nowrap;
|
||
box-shadow: 0 2px 8px var(--color-accent-glow);
|
||
}
|
||
.btn-primary:hover:not(:disabled) {
|
||
background: var(--color-accent-light);
|
||
box-shadow: 0 4px 14px var(--color-accent-glow);
|
||
}
|
||
|
||
.btn-secondary {
|
||
background: var(--color-surface-2); border: 1px solid var(--color-border); color: var(--color-text);
|
||
}
|
||
.btn-secondary:hover:not(:disabled) { border-color: var(--color-accent); color: var(--color-accent); }
|
||
|
||
.btn-ghost {
|
||
background: transparent; border: 1px solid var(--color-border); color: var(--color-text-muted);
|
||
}
|
||
.btn-ghost:hover:not(:disabled) { background: var(--color-surface-2); color: var(--color-text); }
|
||
|
||
/* ─── Inputs ─────────────────────────────────────────────────────────────── */
|
||
input, select, textarea {
|
||
background: var(--color-surface-2);
|
||
border: 1px solid var(--color-border);
|
||
border-radius: var(--r);
|
||
color: var(--color-text);
|
||
font-family: inherit;
|
||
font-size: 0.875rem;
|
||
padding: 0.55rem 0.9rem;
|
||
outline: none;
|
||
transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-slow);
|
||
width: 100%;
|
||
}
|
||
input:focus, select:focus, textarea:focus {
|
||
border-color: var(--color-accent);
|
||
box-shadow: 0 0 0 3px var(--color-accent-soft);
|
||
}
|
||
input::placeholder { color: var(--color-text-subtle); }
|
||
|
||
select {
|
||
cursor: pointer; -webkit-appearance: none; -moz-appearance: none; appearance: none;
|
||
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237070a0' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
|
||
background-repeat: no-repeat; background-position: right 0.75rem center; padding-right: 2.2rem;
|
||
}
|
||
|
||
.hidden { display: none !important; }
|
||
|
||
/* ─── Checkbox ───────────────────────────────────────────────────────────── */
|
||
.checkbox-label {
|
||
display: flex; align-items: flex-start; gap: 0.6rem;
|
||
cursor: pointer; user-select: none; font-size: 0.875rem; line-height: 1.5; padding: 0.25rem 0;
|
||
}
|
||
.checkbox-label input[type="checkbox"] {
|
||
-webkit-appearance: none; -moz-appearance: none; appearance: none;
|
||
width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px;
|
||
border-radius: 4px; border: 1.5px solid var(--color-border);
|
||
background: var(--color-surface-2);
|
||
cursor: pointer; position: relative;
|
||
transition: background var(--t-fast), border-color var(--t-fast);
|
||
}
|
||
.checkbox-label input[type="checkbox"]:checked {
|
||
background: var(--color-accent); border-color: var(--color-accent);
|
||
}
|
||
.checkbox-label input[type="checkbox"]:checked::after {
|
||
content: '';
|
||
position: absolute; top: 2px; left: 5px;
|
||
width: 4px; height: 8px;
|
||
border: 2px solid #fff; border-top: none; border-left: none;
|
||
transform: rotate(45deg);
|
||
}
|
||
.checkbox-label:hover input[type="checkbox"]:not(:checked) { border-color: var(--color-accent); }
|
||
.checkbox-group { display: flex; flex-direction: column; gap: 0.15rem; }
|
||
|
||
/* ─── Header ─────────────────────────────────────────────────────────────── */
|
||
header {
|
||
background: var(--glass-header);
|
||
border-bottom: 1px solid var(--color-border);
|
||
padding: 0 var(--sp-6);
|
||
height: var(--header-h);
|
||
display: flex; align-items: center; gap: var(--sp-3);
|
||
position: sticky; top: 0; z-index: 200;
|
||
transition: background var(--t-slow), border-color var(--t-slow);
|
||
backdrop-filter: blur(var(--blur));
|
||
-webkit-backdrop-filter: blur(var(--blur));
|
||
}
|
||
|
||
.logo {
|
||
font-size: 1.2rem; font-weight: 800; letter-spacing: -0.5px;
|
||
color: var(--color-accent); white-space: nowrap;
|
||
}
|
||
.logo span { color: var(--color-text-muted); font-weight: 400; font-size: 0.82rem; margin-left: 5px; }
|
||
|
||
.header-spacer { flex: 1; }
|
||
|
||
.auth-badge {
|
||
font-size: 0.78rem; font-weight: 600; padding: 0.28rem 0.75rem;
|
||
border-radius: var(--r-full); white-space: nowrap;
|
||
transition: background var(--t-fast), color var(--t-fast);
|
||
}
|
||
.auth-badge--in { background: var(--color-accent-soft); color: var(--color-accent); }
|
||
.auth-badge--out { background: var(--color-error-soft); color: var(--color-error); }
|
||
|
||
.btn-logout {
|
||
background: transparent; border: 1px solid var(--color-border);
|
||
color: var(--color-text-muted); font-size: 0.78rem; padding: 0.28rem 0.75rem;
|
||
}
|
||
.btn-logout:hover { border-color: var(--color-error); color: var(--color-error); }
|
||
|
||
.theme-toggle-btn {
|
||
background: transparent; border: 1px solid var(--color-border);
|
||
color: var(--color-text-muted); padding: 0;
|
||
width: 32px; height: 32px; border-radius: var(--r);
|
||
display: flex; align-items: center; justify-content: center;
|
||
flex-shrink: 0;
|
||
}
|
||
.theme-toggle-btn:hover { background: var(--color-surface-2); color: var(--color-text); border-color: var(--color-text-subtle); }
|
||
|
||
/* ─── Layout ─────────────────────────────────────────────────────────────── */
|
||
.layout { display: flex; flex: 1; min-height: 0; overflow: hidden; }
|
||
|
||
/* ─── Sidebar ────────────────────────────────────────────────────────────── */
|
||
nav.sidebar {
|
||
width: var(--sidebar-w); flex-shrink: 0;
|
||
background: var(--glass-sidebar); border-right: 1px solid var(--color-border);
|
||
padding: var(--sp-4) var(--sp-2);
|
||
display: flex; flex-direction: column; gap: var(--sp-1); overflow-y: auto;
|
||
transition: background var(--t-slow);
|
||
backdrop-filter: blur(var(--blur));
|
||
-webkit-backdrop-filter: blur(var(--blur));
|
||
}
|
||
|
||
.tab-btn {
|
||
background: transparent; color: var(--color-text-muted);
|
||
text-align: left; padding: 0.6rem 0.9rem; border-radius: var(--r);
|
||
font-weight: 500; font-size: 0.875rem;
|
||
display: flex; align-items: center; gap: 0.55rem;
|
||
position: relative; overflow: hidden;
|
||
transition: color var(--t-fast);
|
||
}
|
||
.tab-btn::before {
|
||
content: ''; position: absolute; inset: 0;
|
||
background: var(--color-accent-soft); opacity: 0;
|
||
transition: opacity var(--t-fast); border-radius: inherit; pointer-events: none;
|
||
}
|
||
.tab-btn:hover { color: var(--color-text); }
|
||
.tab-btn:hover::before { opacity: .5; }
|
||
.tab-btn.active { color: var(--color-accent); }
|
||
.tab-btn.active::before { opacity: 1; }
|
||
.tab-btn.active::after {
|
||
content: ''; position: absolute; left: 0; top: 20%; bottom: 20%;
|
||
width: 3px; background: var(--color-accent); border-radius: 0 2px 2px 0;
|
||
}
|
||
|
||
/* ─── Main ───────────────────────────────────────────────────────────────── */
|
||
main { flex: 1; padding: 0; overflow: hidden; display: flex; flex-direction: column; }
|
||
|
||
.tab-panel { display: flex; flex-direction: column; flex: 1; min-height: 0; animation: slide-up var(--t-normal) ease both; }
|
||
.tab-panel.hidden { display: none !important; }
|
||
|
||
/* Sticky panel header (title + controls) and scrollable content body */
|
||
.panel-sticky-header {
|
||
flex-shrink: 0;
|
||
overflow: hidden;
|
||
padding: var(--sp-6) var(--sp-8) 0;
|
||
background: var(--glass-panel-hdr);
|
||
backdrop-filter: blur(var(--blur));
|
||
-webkit-backdrop-filter: blur(var(--blur));
|
||
transition: background var(--t-slow);
|
||
z-index: 10;
|
||
border-bottom: 1px solid var(--color-border-soft);
|
||
}
|
||
.panel-scroll-body {
|
||
flex: 1;
|
||
overflow-y: auto;
|
||
padding: var(--sp-4) var(--sp-8) var(--sp-6);
|
||
}
|
||
|
||
.panel-title {
|
||
font-size: 1.25rem; font-weight: 700; margin-bottom: var(--sp-5);
|
||
display: flex; align-items: center; gap: 0.5rem; letter-spacing: -0.3px;
|
||
}
|
||
.panel-title svg { color: var(--color-accent); }
|
||
|
||
/* ─── Download tab ───────────────────────────────────────────────────────── */
|
||
.download-row {
|
||
display: flex; gap: 0.75rem; margin-bottom: var(--sp-4); align-items: flex-end;
|
||
}
|
||
.download-row .input-group { flex: 1; }
|
||
.download-row .input-group label {
|
||
display: block; font-size: 0.75rem; color: var(--color-text-muted); margin-bottom: 0.3rem; font-weight: 500;
|
||
}
|
||
|
||
.btn-primary { padding: 0.55rem 1.4rem; height: 38px; }
|
||
.quality-select-wrap { width: 168px; flex-shrink: 0; }
|
||
|
||
/* ─── Progress ───────────────────────────────────────────────────────────── */
|
||
.progress-section { margin-bottom: var(--sp-4); }
|
||
.progress-track {
|
||
background: var(--color-surface-2); border-radius: var(--r-full);
|
||
height: 6px; overflow: hidden; margin-bottom: 0.3rem;
|
||
border: 1px solid var(--color-border);
|
||
}
|
||
.progress-fill {
|
||
height: 100%; border-radius: var(--r-full); width: 0%;
|
||
transition: width .4s cubic-bezier(.4,0,.2,1);
|
||
background: linear-gradient(90deg, var(--color-accent), var(--color-accent-light), var(--color-accent));
|
||
background-size: 200% 100%;
|
||
animation: progress-stripe 2.5s ease infinite;
|
||
}
|
||
.progress-label { font-size: 0.75rem; color: var(--color-text-muted); }
|
||
|
||
/* ─── Log box ────────────────────────────────────────────────────────────── */
|
||
.log-box {
|
||
background: var(--color-surface); border: 1px solid var(--color-border);
|
||
border-radius: var(--r); padding: var(--sp-3);
|
||
height: 220px; overflow-y: auto;
|
||
font-family: var(--font-mono); font-size: 0.75rem; line-height: 1.65;
|
||
}
|
||
.log-line { padding: 1px 0; word-break: break-all; }
|
||
.log-info { color: var(--color-text-muted); }
|
||
.log-success { color: var(--color-success); }
|
||
.log-error { color: var(--color-error); }
|
||
.log-warn { color: var(--color-warn); }
|
||
.download-hint { margin-top: var(--sp-3); font-size: 0.8rem; color: var(--color-text-muted); line-height: 1.6; }
|
||
|
||
/* ─── Auth tab ───────────────────────────────────────────────────────────── */
|
||
.auth-card {
|
||
background: var(--color-surface); border: 1px solid var(--color-border);
|
||
border-radius: var(--r-lg); padding: var(--sp-6); max-width: 500px;
|
||
box-shadow: var(--shadow);
|
||
}
|
||
.auth-card p { color: var(--color-text-muted); margin-bottom: var(--sp-4); line-height: 1.65; font-size: 0.875rem; }
|
||
.btn-login-big {
|
||
background: var(--color-accent); color: #fff;
|
||
font-size: 0.95rem; padding: 0.75rem 2rem;
|
||
border-radius: var(--r-lg); width: 100%; margin-bottom: var(--sp-5);
|
||
box-shadow: 0 4px 16px var(--color-accent-glow);
|
||
}
|
||
.btn-login-big:hover:not(:disabled) {
|
||
background: var(--color-accent-light); box-shadow: 0 6px 22px var(--color-accent-glow);
|
||
}
|
||
#login-status { font-size: 0.86rem; margin-top: var(--sp-3); line-height: 1.65; }
|
||
#login-status .error { color: var(--color-error); }
|
||
#login-status .success { color: var(--color-success); }
|
||
.login-link {
|
||
display: inline-block; background: var(--color-surface-2);
|
||
border: 1px solid var(--color-border); border-radius: var(--r);
|
||
padding: 0.4rem 0.75rem; font-size: 0.8rem;
|
||
word-break: break-all; margin-top: 0.5rem;
|
||
color: var(--color-accent); font-family: var(--font-mono);
|
||
}
|
||
.countdown { font-weight: 700; color: var(--color-accent); }
|
||
|
||
/* ─── Search tab ─────────────────────────────────────────────────────────── */
|
||
.search-row { display: flex; gap: 0.75rem; margin-bottom: var(--sp-3); }
|
||
.search-row input { flex: 1; }
|
||
|
||
.search-type-pills { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: var(--sp-4); }
|
||
.type-pill {
|
||
background: var(--color-surface-2); border: 1px solid var(--color-border);
|
||
color: var(--color-text-muted); border-radius: var(--r-full);
|
||
font-size: 0.8rem; font-weight: 500; padding: 0.25rem 0.85rem;
|
||
transition: border-color var(--t-fast), color var(--t-fast), background var(--t-fast);
|
||
}
|
||
.type-pill:hover { border-color: var(--color-text-subtle); color: var(--color-text); }
|
||
.type-pill.active {
|
||
background: var(--color-accent-soft); border-color: var(--color-accent); color: var(--color-accent);
|
||
}
|
||
|
||
.result-section { animation: fade-in var(--t-normal) ease both; }
|
||
.result-heading {
|
||
font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em;
|
||
color: var(--color-text-muted); margin: var(--sp-5) 0 var(--sp-3);
|
||
display: flex; align-items: center; gap: var(--sp-3);
|
||
}
|
||
.result-heading::after { content: ''; flex: 1; height: 1px; background: var(--color-border); }
|
||
|
||
.result-grid {
|
||
display: grid;
|
||
grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
|
||
gap: 0.75rem;
|
||
}
|
||
|
||
.result-card {
|
||
background: var(--color-surface); border: 1px solid var(--color-border);
|
||
border-radius: var(--r-lg); overflow: hidden; cursor: pointer;
|
||
transition: border-color var(--t-fast), transform var(--t-normal), box-shadow var(--t-normal);
|
||
animation: fade-in var(--t-slow) ease both;
|
||
}
|
||
.result-card:hover {
|
||
border-color: var(--color-accent); transform: translateY(-3px);
|
||
box-shadow: var(--shadow-lg);
|
||
}
|
||
.result-card:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
|
||
|
||
.result-cover {
|
||
width: 100%; aspect-ratio: 1; object-fit: cover; display: block;
|
||
background: var(--color-surface-2);
|
||
}
|
||
.result-cover.placeholder { background: var(--color-surface-3); }
|
||
.result-cover.round { border-radius: 50%; width: 80%; margin: 10% auto; display: block; aspect-ratio: 1; }
|
||
|
||
.result-info { padding: 0.45rem 0.55rem 0.6rem; }
|
||
.result-title { display: block; font-size: 0.8rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
||
.result-sub { display: block; font-size: 0.72rem; color: var(--color-text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
|
||
.result-info .quality-pill-sm { margin-top: 5px; }
|
||
|
||
.view-more-wrap { text-align: center; margin: var(--sp-3) 0 var(--sp-2); }
|
||
.btn-view-more {
|
||
background: transparent; border: 1px solid var(--color-border);
|
||
color: var(--color-text-muted); font-size: 0.8rem; padding: 0.3rem 1.1rem;
|
||
}
|
||
.btn-view-more:hover { border-color: var(--color-accent); color: var(--color-accent); }
|
||
|
||
/* ─── Horizontal scroll row (library suggestions & artist detail) ─────────── */
|
||
.result-row-section { margin-bottom: var(--sp-2); }
|
||
|
||
.result-row-header {
|
||
display: flex; align-items: center; gap: var(--sp-3);
|
||
margin: var(--sp-5) 0 var(--sp-3);
|
||
}
|
||
.result-row-header .result-heading,
|
||
.result-row-header .detail-section-heading { flex: 1; margin: 0; }
|
||
|
||
.btn-view-all {
|
||
flex-shrink: 0; white-space: nowrap;
|
||
font-size: 0.75rem; font-weight: 600; letter-spacing: 0.02em;
|
||
color: var(--color-accent); background: transparent;
|
||
border: 1px solid var(--color-border); border-radius: var(--r-full);
|
||
padding: 0.2rem 0.75rem; cursor: pointer;
|
||
transition: border-color var(--t-fast), background var(--t-fast), color var(--t-fast);
|
||
}
|
||
.btn-view-all:hover { border-color: var(--color-accent); background: var(--color-accent-soft); }
|
||
|
||
.result-row {
|
||
display: flex; gap: 0.75rem;
|
||
overflow-x: auto; padding-bottom: 0.75rem;
|
||
-webkit-overflow-scrolling: touch;
|
||
scrollbar-width: thin; scrollbar-color: var(--color-border) transparent;
|
||
}
|
||
.result-row::-webkit-scrollbar { height: 4px; }
|
||
.result-row::-webkit-scrollbar-track { background: transparent; }
|
||
.result-row::-webkit-scrollbar-thumb {
|
||
background: var(--color-border); border-radius: var(--r-full);
|
||
}
|
||
.result-row .result-card { flex: 0 0 140px; }
|
||
|
||
.searching, .no-results { color: var(--color-text-muted); font-size: 0.875rem; margin-top: var(--sp-2); }
|
||
.error { color: var(--color-error); }
|
||
|
||
/* ─── Settings tab ───────────────────────────────────────────────────────── */
|
||
.settings-wrapper { max-width: 700px; display: flex; flex-direction: column; gap: var(--sp-4); }
|
||
|
||
.settings-section {
|
||
background: var(--color-surface); border: 1px solid var(--color-border);
|
||
border-radius: var(--r-lg); padding: var(--sp-5);
|
||
transition: background var(--t-slow), border-color var(--t-slow);
|
||
}
|
||
.settings-section h3 {
|
||
font-size: 0.9rem; font-weight: 700; margin-bottom: var(--sp-4);
|
||
display: flex; align-items: center; gap: 0.4rem;
|
||
}
|
||
.settings-section h3 svg { color: var(--color-accent); flex-shrink: 0; }
|
||
.settings-section > p { color: var(--color-text-muted); font-size: 0.82rem; margin-bottom: var(--sp-3); line-height: 1.6; }
|
||
|
||
.field-label { display: block; font-size: 0.78rem; font-weight: 500; color: var(--color-text-muted); margin-bottom: 0.3rem; }
|
||
.field-group { margin-bottom: var(--sp-3); }
|
||
.field-group:last-child { margin-bottom: 0; }
|
||
|
||
.settings-grid {
|
||
display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
|
||
gap: var(--sp-3); margin-bottom: var(--sp-3);
|
||
}
|
||
|
||
/* ─── Segmented control ──────────────────────────────────────────────────── */
|
||
.segmented-control {
|
||
display: inline-flex; background: var(--color-surface-2);
|
||
border: 1px solid var(--color-border); border-radius: var(--r);
|
||
overflow: hidden; padding: 2px; gap: 2px;
|
||
}
|
||
.seg-btn {
|
||
background: transparent; color: var(--color-text-muted);
|
||
border-radius: calc(var(--r) - 2px);
|
||
font-size: 0.8rem; padding: 0.3rem 0.9rem;
|
||
display: flex; align-items: center; gap: 0.35rem;
|
||
transition: background var(--t-fast), color var(--t-fast), box-shadow var(--t-fast);
|
||
}
|
||
.seg-btn:hover { color: var(--color-text); }
|
||
.seg-btn.active { background: var(--color-accent); color: #fff; box-shadow: 0 1px 4px var(--color-accent-glow); }
|
||
|
||
/* ─── Colour swatches ────────────────────────────────────────────────────── */
|
||
.color-swatches { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin-top: 0.35rem; }
|
||
.swatch {
|
||
width: 26px; height: 26px; border-radius: var(--r-full);
|
||
background: var(--c, #4fd08c); border: 2px solid transparent;
|
||
padding: 0; flex-shrink: 0; box-shadow: var(--shadow-sm);
|
||
transition: transform var(--t-fast), box-shadow var(--t-fast), border-color var(--t-fast);
|
||
}
|
||
.swatch:hover { transform: scale(1.18); }
|
||
.swatch.active { border-color: var(--color-text); box-shadow: 0 0 0 3px var(--color-accent-soft); }
|
||
#accent-custom {
|
||
width: 28px; height: 28px; padding: 1px; border-radius: var(--r-full);
|
||
border: 2px solid var(--color-border); background: none; cursor: pointer;
|
||
}
|
||
#accent-custom::-webkit-color-swatch-wrapper { padding: 0; border-radius: var(--r-full); }
|
||
#accent-custom::-webkit-color-swatch { border: none; border-radius: var(--r-full); }
|
||
|
||
/* ─── Template builder ────────────────────────────────────────────────────── */
|
||
.template-tabs {
|
||
display: flex; flex-wrap: wrap; gap: 0.3rem; margin-bottom: var(--sp-3);
|
||
border-bottom: 1px solid var(--color-border); padding-bottom: var(--sp-3);
|
||
}
|
||
.template-tab-btn {
|
||
background: transparent; border: 1px solid var(--color-border);
|
||
color: var(--color-text-muted); border-radius: var(--r); font-size: 0.78rem; padding: 0.25rem 0.8rem;
|
||
}
|
||
.template-tab-btn:hover { color: var(--color-text); border-color: var(--color-text-subtle); }
|
||
.template-tab-btn.active { background: var(--color-accent-soft); border-color: var(--color-accent); color: var(--color-accent); font-weight: 600; }
|
||
|
||
.template-builder { display: none; }
|
||
.template-builder.active { display: block; animation: fade-in var(--t-fast) ease both; }
|
||
|
||
.template-palette { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: var(--sp-3); }
|
||
.token-chip {
|
||
display: inline-flex; align-items: center;
|
||
background: var(--color-surface-2); border: 1px solid var(--color-border);
|
||
border-radius: var(--r-full); padding: 0.18rem 0.65rem;
|
||
font-size: 0.72rem; font-family: var(--font-mono);
|
||
cursor: grab; color: var(--color-accent); user-select: none;
|
||
transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
|
||
}
|
||
.token-chip:hover { background: var(--color-accent-soft); border-color: var(--color-accent); transform: scale(1.05); }
|
||
.token-chip:active { cursor: grabbing; transform: scale(.97); }
|
||
.token-chip--sep { color: var(--color-text-muted); font-family: var(--font); }
|
||
|
||
.template-drop-zone {
|
||
min-height: 42px; border: 2px dashed var(--color-border); border-radius: var(--r);
|
||
padding: var(--sp-2); display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center;
|
||
margin-bottom: var(--sp-2); transition: border-color var(--t-fast), background var(--t-fast);
|
||
}
|
||
.template-drop-zone.drag-over { border-color: var(--color-accent); background: var(--color-accent-soft); }
|
||
.template-drop-zone:empty::after {
|
||
content: 'Drop tokens here, or type directly in the field below';
|
||
color: var(--color-text-subtle); font-size: 0.78rem; pointer-events: none;
|
||
}
|
||
|
||
.template-text-input { font-family: var(--font-mono); font-size: 0.82rem; margin-bottom: var(--sp-2); }
|
||
.template-reset-btn { font-size: 0.78rem; padding: 0.25rem 0.7rem; }
|
||
.template-preview-bar { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
|
||
.template-preview-label { font-size: 0.72rem; color: var(--color-text-subtle); flex-shrink: 0; }
|
||
.template-preview-value {
|
||
font-family: var(--font-mono); font-size: 0.72rem; color: var(--color-text-muted);
|
||
background: var(--color-surface-2); border-radius: var(--r-sm);
|
||
padding: 0.2rem 0.5rem; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
|
||
}
|
||
|
||
/* ─── Settings save strip ─────────────────────────────────────────────────── */
|
||
.settings-save-strip {
|
||
flex-shrink: 0;
|
||
background: var(--glass-save-strip); border-top: 1px solid var(--color-border);
|
||
padding: var(--sp-3) var(--sp-8);
|
||
display: flex; align-items: center; gap: var(--sp-3);
|
||
transition: background var(--t-slow), border-color var(--t-slow);
|
||
backdrop-filter: blur(var(--blur));
|
||
-webkit-backdrop-filter: blur(var(--blur));
|
||
}
|
||
.settings-save-msg { font-size: 0.8rem; color: var(--color-success); opacity: 0; transition: opacity .4s; }
|
||
.settings-save-msg.visible { opacity: 1; }
|
||
|
||
/* ─── Divider ─────────────────────────────────────────────────────────────── */
|
||
.divider { border: none; border-top: 1px solid var(--color-border); margin: var(--sp-4) 0; }
|
||
|
||
/* ─── Inline tooltip `?` icon ────────────────────────────────────────────── */
|
||
.tip {
|
||
display: inline-flex; align-items: center; justify-content: center;
|
||
width: 14px; height: 14px; border-radius: 50%;
|
||
background: var(--color-surface-3); color: var(--color-text-subtle);
|
||
font-size: 0.6rem; font-weight: 800; line-height: 1;
|
||
cursor: help; border: 1px solid var(--color-border);
|
||
flex-shrink: 0; vertical-align: middle; margin-left: 4px;
|
||
user-select: none;
|
||
transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
|
||
}
|
||
.tip:hover, .tip:focus-visible {
|
||
background: var(--color-accent-soft); color: var(--color-accent);
|
||
border-color: var(--color-accent); outline: none;
|
||
}
|
||
|
||
/* Floating tooltip box — positioned via JS as position:fixed to escape overflow containers */
|
||
.tip-box {
|
||
position: fixed; z-index: 9999;
|
||
max-width: 260px; padding: 0.5rem 0.7rem;
|
||
background: var(--color-surface-3); color: var(--color-text);
|
||
border: 1px solid var(--color-border); border-radius: var(--r);
|
||
font-size: 0.78rem; line-height: 1.55;
|
||
box-shadow: var(--shadow-lg);
|
||
pointer-events: none;
|
||
opacity: 0; visibility: hidden;
|
||
transition: opacity var(--t-fast), visibility 0s var(--t-fast);
|
||
white-space: normal; word-break: normal;
|
||
}
|
||
.tip-box.visible {
|
||
opacity: 1; visibility: visible;
|
||
transition: opacity var(--t-fast), visibility 0s;
|
||
}
|
||
|
||
/* ─── Spinner ─────────────────────────────────────────────────────────────── */
|
||
.spinner {
|
||
display: inline-block; width: 13px; height: 13px;
|
||
border: 2px solid var(--color-border); border-top-color: var(--color-accent);
|
||
border-radius: 50%; animation: spin .65s linear infinite;
|
||
vertical-align: middle; margin-right: 5px;
|
||
}
|
||
|
||
/* ─── Mobile nav ─────────────────────────────────────────────────────────── */
|
||
@media (max-width: 640px) {
|
||
nav.sidebar { display: none; }
|
||
.download-row { flex-direction: column; }
|
||
.quality-select-wrap { width: 100%; }
|
||
main { padding: 0; }
|
||
.panel-sticky-header { padding: var(--sp-4) var(--sp-4) 0; }
|
||
.panel-scroll-body { padding: var(--sp-3) var(--sp-4) calc(var(--mob-nav-h) + var(--sp-4)); }
|
||
.settings-save-strip { padding: var(--sp-3) var(--sp-4); }
|
||
.settings-grid { grid-template-columns: 1fr; }
|
||
|
||
.mobile-nav {
|
||
display: flex;
|
||
background: var(--glass-card);
|
||
backdrop-filter: blur(var(--blur));
|
||
-webkit-backdrop-filter: blur(var(--blur));
|
||
border-top: 1px solid var(--color-border);
|
||
position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
|
||
}
|
||
.mobile-nav .tab-btn {
|
||
flex: 1; text-align: center; justify-content: center;
|
||
border-radius: 0; padding: 0.6rem 0.25rem; font-size: 0.68rem;
|
||
flex-direction: column; gap: 0.1rem;
|
||
}
|
||
.mobile-nav .tab-btn::after { display: none; }
|
||
.mobile-nav .tab-btn.active::before { top: 0; bottom: auto; left: 10%; right: 10%; width: auto; height: 2px; }
|
||
}
|
||
@media (min-width: 641px) { .mobile-nav { display: none; } }
|
||
|
||
/* ─── Reduced motion ──────────────────────────────────────────────────────── */
|
||
@media (prefers-reduced-motion: reduce) {
|
||
*, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
|
||
.progress-fill { animation: none; }
|
||
}
|
||
|
||
/* ─── Download queue ──────────────────────────────────────────────────────── */
|
||
.download-queue-section {
|
||
background: var(--color-surface);
|
||
border: 1px solid var(--color-border);
|
||
border-radius: var(--r-lg);
|
||
overflow: hidden;
|
||
margin-bottom: var(--sp-4);
|
||
animation: slide-up var(--t-normal) ease both;
|
||
}
|
||
|
||
.download-queue-header {
|
||
display: flex; align-items: center; justify-content: space-between;
|
||
padding: 0.6rem var(--sp-3);
|
||
border-bottom: 1px solid var(--color-border);
|
||
background: var(--glass-card);
|
||
backdrop-filter: blur(var(--blur));
|
||
-webkit-backdrop-filter: blur(var(--blur));
|
||
}
|
||
.download-queue-title {
|
||
display: flex; align-items: center; gap: 0.4rem;
|
||
font-size: 0.8rem; font-weight: 600; color: var(--color-text-muted);
|
||
}
|
||
.queue-count {
|
||
background: var(--color-accent-soft); color: var(--color-accent);
|
||
font-size: 0.68rem; font-weight: 700; padding: 0.05rem 0.42rem;
|
||
border-radius: var(--r-full); min-width: 18px; text-align: center;
|
||
}
|
||
|
||
.download-queue {
|
||
display: flex; flex-direction: column; max-height: 260px; overflow-y: auto;
|
||
}
|
||
|
||
.queue-item {
|
||
display: flex; align-items: center; gap: var(--sp-2);
|
||
padding: 0.5rem var(--sp-3);
|
||
border-bottom: 1px solid var(--color-border-soft);
|
||
transition: background var(--t-fast);
|
||
animation: fade-in var(--t-fast) ease both;
|
||
}
|
||
.queue-item:last-child { border-bottom: none; }
|
||
.queue-item:hover { background: var(--color-surface-2); }
|
||
|
||
.queue-item-thumb {
|
||
width: 36px; height: 36px; border-radius: 5px; object-fit: cover;
|
||
background: var(--color-surface-3); flex-shrink: 0;
|
||
}
|
||
.queue-item-thumb.round { border-radius: 50%; }
|
||
|
||
.queue-item-info { flex: 1; min-width: 0; }
|
||
.queue-item-title {
|
||
font-size: 0.82rem; font-weight: 600;
|
||
white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
|
||
}
|
||
.queue-item-sub {
|
||
font-size: 0.72rem; color: var(--color-text-muted);
|
||
white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px;
|
||
}
|
||
|
||
.queue-item-badge {
|
||
font-size: 0.65rem; font-weight: 700; padding: 0.1rem 0.45rem;
|
||
border-radius: var(--r-full); text-transform: capitalize; letter-spacing: 0.04em;
|
||
flex-shrink: 0;
|
||
}
|
||
.queue-item-badge[data-type="track"] { background: rgba(79,159,208,.15); color: #4f9fd0; }
|
||
.queue-item-badge[data-type="album"] { background: rgba(159,111,232,.15); color: #9f6fe8; }
|
||
.queue-item-badge[data-type="artist"] { background: rgba(232,111,160,.15); color: #e86fa0; }
|
||
.queue-item-badge[data-type="playlist"] { background: rgba(232,160,79,.15); color: #e8a04f; }
|
||
.queue-item-badge[data-type="mix"] { background: rgba(232,224,79,.15); color: #b0a020; }
|
||
|
||
.queue-item-status {
|
||
font-size: 0.68rem; flex-shrink: 0; width: 16px; text-align: center;
|
||
}
|
||
|
||
.queue-remove-btn {
|
||
background: none; border: none; padding: 3px; width: 22px; height: 22px;
|
||
display: flex; align-items: center; justify-content: center;
|
||
color: var(--color-text-subtle); border-radius: 4px; flex-shrink: 0;
|
||
transition: background var(--t-fast), color var(--t-fast);
|
||
}
|
||
.queue-remove-btn:hover { background: var(--color-error-soft); color: var(--color-error); }
|
||
|
||
/* Result card selected state */
|
||
.result-card.selected {
|
||
border-color: var(--color-accent);
|
||
background: var(--color-accent-soft);
|
||
}
|
||
.result-card.selected .result-title { color: var(--color-accent); }
|
||
|
||
/* ─── Pinned status bar ──────────────────────────────────────────────────── */
|
||
.dl-status-bar {
|
||
flex-shrink: 0;
|
||
border-top: 1px solid var(--color-border);
|
||
background: var(--glass-card);
|
||
backdrop-filter: blur(var(--blur));
|
||
-webkit-backdrop-filter: blur(var(--blur));
|
||
transition: background var(--t-slow), border-color var(--t-slow);
|
||
z-index: 100;
|
||
}
|
||
|
||
/* When collapsed, hide the panel body but keep the tab/control row visible */
|
||
.dl-status-bar.collapsed .dl-status-panel-body { display: none; }
|
||
|
||
.dl-status-panel-body { display: flex; flex-direction: column; }
|
||
|
||
.dl-toggle-btn {
|
||
font-size: 0.72rem; padding: 0.18rem 0.45rem;
|
||
display: flex; align-items: center; justify-content: center;
|
||
}
|
||
/* Chevron: default (expanded) points DOWN (v) = collapse; when collapsed points UP (^) = expand */
|
||
.dl-toggle-btn svg { transition: transform var(--t-fast); transform: rotate(180deg); }
|
||
.dl-status-bar.collapsed .dl-toggle-btn svg { transform: rotate(0deg); }
|
||
|
||
/* Mobile: add bottom padding so the status bar clears the fixed mobile nav */
|
||
@media (max-width: 640px) {
|
||
.dl-status-bar { padding-bottom: var(--mob-nav-h); }
|
||
}
|
||
|
||
/* ─── Download status panel (progress / log tabs) ────────────────────────── */
|
||
.dl-status-panel {
|
||
border: none;
|
||
border-radius: 0;
|
||
overflow: hidden;
|
||
margin-bottom: 0;
|
||
background: transparent;
|
||
}
|
||
|
||
.dl-status-tabs {
|
||
display: flex; align-items: center; gap: 2px;
|
||
padding: 0.3rem 0.4rem;
|
||
background: var(--color-surface-2);
|
||
border-bottom: 1px solid var(--color-border);
|
||
}
|
||
|
||
.dl-tab-btn {
|
||
display: inline-flex; align-items: center; gap: 0.35rem;
|
||
padding: 0.22rem 0.65rem; border-radius: var(--r-sm);
|
||
font-size: 0.75rem; font-weight: 500;
|
||
color: var(--color-text-muted);
|
||
background: transparent; border: none; cursor: pointer;
|
||
transition: background var(--t-fast), color var(--t-fast);
|
||
}
|
||
.dl-tab-btn:hover { background: var(--color-surface-3); color: var(--color-text); }
|
||
.dl-tab-btn.active { background: var(--color-surface-3); color: var(--color-text); font-weight: 600; }
|
||
|
||
.dl-tab-spacer { flex: 1; }
|
||
.dl-log-action-btn { font-size: 0.72rem; padding: 0.18rem 0.65rem; }
|
||
|
||
.dl-status-view { display: flex; flex-direction: column; }
|
||
.dl-status-view.hidden { display: none; }
|
||
|
||
/* Progress view: overall bar + label */
|
||
.dl-status-view > .progress-section { padding: 0.55rem 0.75rem 0.4rem; margin-bottom: 0; }
|
||
|
||
/* Per-item progress rows */
|
||
.dl-item-progress-list { max-height: 220px; overflow-y: auto; }
|
||
|
||
.dl-item-row {
|
||
display: flex; align-items: center; gap: 0.6rem;
|
||
padding: 0.45rem 0.75rem;
|
||
border-top: 1px solid var(--color-border-soft);
|
||
transition: background var(--t-fast);
|
||
}
|
||
.dl-item-row--active { background: var(--color-accent-soft); }
|
||
.dl-item-row--done { background: rgba(79,208,140,.06); }
|
||
.dl-item-row--failed { background: var(--color-error-soft); }
|
||
|
||
.dl-item-thumb {
|
||
width: 32px; height: 32px; border-radius: 4px;
|
||
object-fit: cover; background: var(--color-surface-3);
|
||
flex-shrink: 0;
|
||
}
|
||
.dl-item-thumb.round { border-radius: 50%; }
|
||
|
||
.dl-item-details { flex: 1; min-width: 0; }
|
||
.dl-item-title {
|
||
font-size: 0.78rem; font-weight: 500; color: var(--color-text);
|
||
white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
|
||
margin-bottom: 2px;
|
||
}
|
||
.dl-item-msg {
|
||
font-size: 0.69rem; color: var(--color-text-muted);
|
||
white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
|
||
margin-bottom: 3px;
|
||
}
|
||
.dl-item-bar-track {
|
||
height: 3px; border-radius: 9999px;
|
||
background: var(--color-surface-3); overflow: hidden;
|
||
}
|
||
.dl-item-bar-fill {
|
||
height: 100%; border-radius: 9999px; width: 0%;
|
||
background: var(--color-accent);
|
||
transition: width 0.35s cubic-bezier(.4,0,.2,1);
|
||
}
|
||
.dl-item-row--done .dl-item-bar-fill { background: var(--color-success); }
|
||
.dl-item-row--failed .dl-item-bar-fill { background: var(--color-error); }
|
||
|
||
.dl-item-icon {
|
||
font-size: 0.85rem; flex-shrink: 0;
|
||
width: 20px; text-align: center; color: var(--color-text-muted);
|
||
}
|
||
.dl-item-row--done .dl-item-icon { color: var(--color-success); }
|
||
.dl-item-row--failed .dl-item-icon { color: var(--color-error); }
|
||
|
||
/* ─── Expand button (multi-item queue rows) ──────────────────────────────── */
|
||
.dl-item-expand-btn {
|
||
flex-shrink: 0;
|
||
background: none; border: none; cursor: pointer;
|
||
color: var(--color-text-muted);
|
||
padding: 0.25rem; border-radius: var(--r-sm);
|
||
display: flex; align-items: center; justify-content: center;
|
||
transition: color var(--t-fast);
|
||
}
|
||
.dl-item-expand-btn:hover { color: var(--color-text); }
|
||
.dl-item-expand-btn svg { transition: transform var(--t-fast); transform: rotate(-90deg); }
|
||
.dl-item-expand-btn.expanded svg { transform: rotate(0deg); }
|
||
|
||
/* ─── Sub-item progress list ─────────────────────────────────────────────── */
|
||
.dl-item-sub-list {
|
||
background: var(--color-surface-2);
|
||
border-top: 1px solid var(--color-border-soft);
|
||
max-height: 200px; overflow-y: auto;
|
||
}
|
||
.dl-item-sub-list.hidden { display: none; }
|
||
|
||
.dl-sub-item {
|
||
display: flex; align-items: center; gap: 0.5rem;
|
||
padding: 0.3rem 0.75rem 0.3rem 1.25rem;
|
||
border-top: 1px solid var(--color-border-soft);
|
||
transition: background var(--t-fast);
|
||
}
|
||
.dl-sub-item:first-child { border-top: none; }
|
||
.dl-sub-item--active { background: var(--color-accent-soft); }
|
||
.dl-sub-item--done { background: rgba(79,208,140,.04); }
|
||
.dl-sub-item--failed { background: var(--color-error-soft); }
|
||
|
||
.dl-sub-item-details { flex: 1; min-width: 0; }
|
||
.dl-sub-item-title {
|
||
font-size: 0.72rem; color: var(--color-text-muted);
|
||
white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
|
||
margin-bottom: 2px;
|
||
}
|
||
.dl-sub-item-bar-track {
|
||
height: 2px; border-radius: 9999px;
|
||
background: var(--color-surface-3); overflow: hidden;
|
||
}
|
||
.dl-sub-item-bar-fill {
|
||
height: 100%; border-radius: 9999px; width: 0%;
|
||
background: var(--color-accent);
|
||
transition: width 0.35s cubic-bezier(.4,0,.2,1);
|
||
}
|
||
.dl-sub-item--done .dl-sub-item-bar-fill { background: var(--color-success); }
|
||
.dl-sub-item--failed .dl-sub-item-bar-fill { background: var(--color-error); width: 100%; }
|
||
|
||
.dl-sub-item-icon {
|
||
font-size: 0.75rem; flex-shrink: 0;
|
||
width: 16px; text-align: center; color: var(--color-text-muted);
|
||
}
|
||
.dl-sub-item--done .dl-sub-item-icon { color: var(--color-success); }
|
||
.dl-sub-item--failed .dl-sub-item-icon { color: var(--color-error); }
|
||
|
||
/* Log view: the log box sits flush inside the view */
|
||
.dl-status-view > .log-box {
|
||
border: none; border-radius: 0; height: 220px;
|
||
background: var(--color-surface);
|
||
}
|
||
|
||
/* ─── Log section (collapsible) ──────────────────────────────────────────── */
|
||
.log-section { margin-bottom: var(--sp-3); }
|
||
.log-header {
|
||
display: flex; align-items: center; justify-content: space-between;
|
||
margin-bottom: var(--sp-2);
|
||
}
|
||
.log-header-title {
|
||
font-size: 0.78rem; font-weight: 600; color: var(--color-text-muted);
|
||
display: flex; align-items: center; gap: 0.4rem;
|
||
}
|
||
.log-toggle-btn {
|
||
font-size: 0.72rem; padding: 0.18rem 0.65rem; border-radius: var(--r-sm);
|
||
}
|
||
|
||
/* Log collapsed */
|
||
.log-box.log-collapsed { display: none; }
|
||
|
||
/* ─── Queue item active/done/fail states ──────────────────────────────────── */
|
||
@keyframes queue-scan {
|
||
0% { background-position: -200% 0; }
|
||
100% { background-position: 200% 0; }
|
||
}
|
||
|
||
.queue-item { position: relative; }
|
||
|
||
.queue-item.q-downloading {
|
||
background: var(--color-accent-soft);
|
||
}
|
||
/* Animated progress stripe at item bottom while downloading */
|
||
.queue-item.q-downloading::after {
|
||
content: '';
|
||
position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
|
||
background: linear-gradient(90deg, transparent 0%, var(--color-accent) 40%,
|
||
var(--color-accent-light) 60%, transparent 100%);
|
||
background-size: 200% 100%;
|
||
animation: queue-scan 1.4s linear infinite;
|
||
}
|
||
|
||
.queue-item.q-done { background: rgba(79,208,140,.07); }
|
||
.queue-item.q-failed { background: var(--color-error-soft); }
|
||
|
||
.queue-item-status { font-size: 0.8rem; width: 18px; text-align: center; flex-shrink: 0; }
|
||
|
||
/* ZIP download badge on queue items */
|
||
.queue-zip-badge {
|
||
font-size: 0.62rem; font-weight: 700; padding: 0.08rem 0.38rem;
|
||
border-radius: var(--r-full); background: var(--color-surface-3);
|
||
color: var(--color-text-muted); letter-spacing: 0.06em; flex-shrink: 0;
|
||
}
|
||
|
||
/* ─── Quality system colours (Tidal-inspired) ────────────────────────────── */
|
||
:root {
|
||
--q-low: #78909c; --q-low-bg: rgba(120,144,156,.15);
|
||
--q-high: #1e88e5; --q-high-bg: rgba(30,136,229,.15);
|
||
--q-lossless: #00acc1; --q-lossless-bg: rgba(0,172,193,.15);
|
||
--q-max: #9c27b0; --q-max-bg: rgba(156,39,176,.15);
|
||
}
|
||
|
||
/* ─── Quality pill (small, used everywhere) ──────────────────────────────── */
|
||
.quality-pill-sm {
|
||
display: inline-flex; align-items: center;
|
||
border-radius: var(--r-full);
|
||
font-size: 0.68rem; font-weight: 700; letter-spacing: 0.04em;
|
||
padding: 0.12rem 0.55rem;
|
||
border: 1px solid currentColor;
|
||
white-space: nowrap; flex-shrink: 0;
|
||
}
|
||
.quality-pill-sm[data-quality="LOW"] { color: var(--q-low); background: var(--q-low-bg); }
|
||
.quality-pill-sm[data-quality="HIGH"] { color: var(--q-high); background: var(--q-high-bg); }
|
||
.quality-pill-sm[data-quality="LOSSLESS"] { color: var(--q-lossless); background: var(--q-lossless-bg); }
|
||
.quality-pill-sm[data-quality="HI_RES_LOSSLESS"] { color: var(--q-max); background: var(--q-max-bg); }
|
||
|
||
/* ─── Quality picker (download panel) ───────────────────────────────────── */
|
||
.dl-url-section { margin-bottom: var(--sp-4); }
|
||
|
||
.url-pill-box {
|
||
display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center;
|
||
background: var(--color-surface-2); border: 1px solid var(--color-border);
|
||
border-radius: var(--r); padding: 0.4rem 0.6rem;
|
||
min-height: 42px; cursor: text;
|
||
transition: border-color var(--t-fast), box-shadow var(--t-fast);
|
||
}
|
||
.url-pill-box:focus-within {
|
||
border-color: var(--color-accent);
|
||
box-shadow: 0 0 0 3px var(--color-accent-soft);
|
||
}
|
||
.url-pill {
|
||
display: inline-flex; align-items: center; gap: 0.3rem;
|
||
background: var(--color-accent-soft); border: 1px solid var(--color-accent);
|
||
border-radius: var(--r-full); color: var(--color-accent);
|
||
font-size: 0.76rem; font-family: var(--font-mono);
|
||
padding: 0.15rem 0.45rem 0.15rem 0.6rem;
|
||
white-space: nowrap; max-width: 280px;
|
||
animation: fade-in var(--t-fast) ease both;
|
||
}
|
||
.url-pill.invalid {
|
||
background: var(--color-error-soft); border-color: var(--color-error); color: var(--color-error);
|
||
}
|
||
.url-pill-label { overflow: hidden; text-overflow: ellipsis; max-width: 210px; }
|
||
.url-pill-remove {
|
||
background: none; border: none; padding: 0; width: 14px; height: 14px;
|
||
border-radius: 50%; display: flex; align-items: center; justify-content: center;
|
||
color: currentColor; opacity: .55; cursor: pointer; flex-shrink: 0;
|
||
transition: opacity var(--t-fast), background var(--t-fast);
|
||
}
|
||
.url-pill-remove:hover { opacity: 1; background: rgba(0,0,0,.15); transform: none; }
|
||
|
||
#url-pill-input {
|
||
flex: 1; min-width: 180px; background: transparent; border: none;
|
||
padding: 0.1rem 0; font-size: 0.875rem; color: var(--color-text);
|
||
outline: none; width: auto; box-shadow: none;
|
||
}
|
||
#url-pill-input::placeholder { color: var(--color-text-subtle); }
|
||
|
||
.dl-url-actions { display: flex; gap: var(--sp-2); margin-top: var(--sp-2); align-items: center; }
|
||
.url-import-btn { font-size: 0.78rem; padding: 0.3rem 0.8rem; display: flex; align-items: center; gap: 0.4rem; }
|
||
|
||
.dl-quality-row {
|
||
display: flex; align-items: flex-end; gap: var(--sp-4); margin-bottom: var(--sp-4); flex-wrap: wrap;
|
||
}
|
||
.quality-picker-wrap { flex: 0 0 auto; min-width: 160px; max-width: 220px; }
|
||
|
||
/* Quality dropdown on download panel */
|
||
.quality-select-dl {
|
||
margin-top: 0.35rem; width: 100%;
|
||
font-weight: 700;
|
||
transition: color var(--t-fast), background-color var(--t-fast), border-color var(--t-fast);
|
||
}
|
||
.quality-select-dl[data-quality="LOW"] {
|
||
color: var(--q-low); background-color: var(--q-low-bg); border-color: var(--q-low);
|
||
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%234caf50' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
|
||
}
|
||
.quality-select-dl[data-quality="HIGH"] {
|
||
color: var(--q-high); background-color: var(--q-high-bg); border-color: var(--q-high);
|
||
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%231e88e5' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
|
||
}
|
||
.quality-select-dl[data-quality="LOSSLESS"] {
|
||
color: var(--q-lossless); background-color: var(--q-lossless-bg); border-color: var(--q-lossless);
|
||
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2300acc1' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
|
||
}
|
||
.quality-select-dl[data-quality="HI_RES_LOSSLESS"] {
|
||
color: var(--q-max); background-color: var(--q-max-bg); border-color: var(--q-max);
|
||
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239c27b0' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
|
||
}
|
||
|
||
.btn-download-main { height: 38px; flex-shrink: 0; }
|
||
|
||
/* ─── Queue item quality ─────────────────────────────────────────────────── */
|
||
.queue-item-quality-sel {
|
||
background: var(--color-surface-2); border: 1px solid var(--color-border);
|
||
border-radius: var(--r-sm); color: var(--color-text-muted);
|
||
font-size: 0.72rem; padding: 0.15rem 1.6rem 0.15rem 0.5rem;
|
||
cursor: pointer; flex-shrink: 0;
|
||
width: auto; min-width: 72px; max-width: 110px;
|
||
appearance: none; -webkit-appearance: none;
|
||
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%237070a0' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
|
||
background-repeat: no-repeat; background-position: right 0.35rem center;
|
||
border-left-width: 3px;
|
||
transition: border-color var(--t-fast);
|
||
}
|
||
.queue-item-quality-sel[data-quality="LOW"] { border-left-color: var(--q-low); }
|
||
.queue-item-quality-sel[data-quality="HIGH"] { border-left-color: var(--q-high); }
|
||
.queue-item-quality-sel[data-quality="LOSSLESS"] { border-left-color: var(--q-lossless); }
|
||
.queue-item-quality-sel[data-quality="HI_RES_LOSSLESS"] { border-left-color: var(--q-max); }
|
||
|
||
/* ─── All Qualities pill (queue items) ───────────────────────────────────── */
|
||
.all-qualities-pill {
|
||
background: linear-gradient(90deg, var(--q-low-bg), var(--q-high-bg), var(--q-lossless-bg), var(--q-max-bg));
|
||
color: var(--color-text); border: 1px solid var(--color-border);
|
||
font-weight: 700; letter-spacing: 0.01em; white-space: nowrap;
|
||
}
|
||
|
||
/* ─── All Qualities Mode banner (downloads panel) ────────────────────────── */
|
||
.all-qualities-banner {
|
||
display: flex; align-items: center; flex-wrap: wrap; gap: var(--sp-2);
|
||
background: var(--color-warn-soft); border: 1px solid var(--color-warn);
|
||
border-radius: var(--r); padding: 0.6rem var(--sp-4);
|
||
margin-bottom: var(--sp-4); font-size: 0.85rem; font-weight: 500;
|
||
color: var(--color-text);
|
||
animation: slide-up var(--t-normal) ease both;
|
||
}
|
||
.all-qualities-banner-icon { color: var(--color-warn); flex-shrink: 0; display: flex; align-items: center; }
|
||
.all-qualities-banner-pills { display: flex; gap: 0.3rem; flex-wrap: wrap; margin-left: auto; }
|
||
|
||
/* ─── Disabled quality picker (all-qualities mode active) ────────────────── */
|
||
.quality-picker-disabled { opacity: 0.45; pointer-events: none; }
|
||
.quality-select-dl:disabled { cursor: not-allowed; }
|
||
|
||
/* ─── Disabled field (all-qualities / advanced mutual exclusion) ─────────── */
|
||
.field-disabled { opacity: 0.45; pointer-events: none; }
|
||
|
||
/* ─── Auth page redesign ─────────────────────────────────────────────────── */
|
||
.auth-page {
|
||
display: flex; flex-direction: column; align-items: center;
|
||
max-width: 480px; margin: 0 auto; padding: var(--sp-4) 0 var(--sp-8);
|
||
gap: var(--sp-6);
|
||
}
|
||
.auth-hero {
|
||
text-align: center; padding: var(--sp-4) 0;
|
||
}
|
||
.auth-hero-icon {
|
||
width: 72px; height: 72px; border-radius: var(--r-xl);
|
||
background: var(--color-accent-soft); border: 1px solid var(--color-accent);
|
||
display: flex; align-items: center; justify-content: center;
|
||
margin: 0 auto var(--sp-4);
|
||
color: var(--color-accent);
|
||
box-shadow: 0 0 32px var(--color-accent-glow);
|
||
}
|
||
.auth-hero-title {
|
||
font-size: 2.5rem; font-weight: 800; letter-spacing: -1px;
|
||
color: var(--color-accent); margin-bottom: var(--sp-2);
|
||
}
|
||
.auth-hero-sub {
|
||
font-size: 1rem; color: var(--color-text-muted); line-height: 1.5;
|
||
}
|
||
.auth-card {
|
||
background: var(--color-surface); border: 1px solid var(--color-border);
|
||
border-radius: var(--r-xl); padding: var(--sp-6);
|
||
box-shadow: var(--shadow-lg); width: 100%;
|
||
}
|
||
.auth-card-heading {
|
||
font-size: 1.1rem; font-weight: 700; margin-bottom: var(--sp-2);
|
||
}
|
||
.auth-card p { color: var(--color-text-muted); margin-bottom: var(--sp-4); font-size: 0.875rem; line-height: 1.65; }
|
||
.btn-login-big {
|
||
background: var(--color-accent); color: #fff;
|
||
font-size: 0.95rem; padding: 0.8rem 2rem;
|
||
border-radius: var(--r-lg); width: 100%; margin-bottom: var(--sp-4);
|
||
box-shadow: 0 4px 20px var(--color-accent-glow);
|
||
display: flex; align-items: center; justify-content: center; gap: 0.6rem;
|
||
font-weight: 700;
|
||
}
|
||
.btn-login-big:hover:not(:disabled) {
|
||
background: var(--color-accent-light); box-shadow: 0 6px 28px var(--color-accent-glow);
|
||
}
|
||
#login-status { font-size: 0.86rem; margin-top: var(--sp-3); line-height: 1.65; }
|
||
#login-status .error { color: var(--color-error); }
|
||
#login-status .success { color: var(--color-success); }
|
||
.login-link {
|
||
display: inline-block; background: var(--color-surface-2);
|
||
border: 1px solid var(--color-border); border-radius: var(--r);
|
||
padding: 0.4rem 0.75rem; font-size: 0.8rem;
|
||
word-break: break-all; margin-top: 0.5rem;
|
||
color: var(--color-accent); font-family: var(--font-mono);
|
||
}
|
||
.countdown { font-weight: 700; color: var(--color-accent); }
|
||
.auth-features {
|
||
display: flex; flex-direction: column; gap: var(--sp-2); width: 100%;
|
||
}
|
||
.auth-feature {
|
||
display: flex; align-items: center; gap: 0.75rem;
|
||
font-size: 0.82rem; color: var(--color-text-muted);
|
||
padding: 0.5rem 0.75rem;
|
||
background: var(--color-surface); border-radius: var(--r);
|
||
border: 1px solid var(--color-border-soft);
|
||
}
|
||
.auth-feature svg { color: var(--color-accent); flex-shrink: 0; }
|
||
|
||
/* Logged-in account card */
|
||
.auth-account-card { padding: var(--sp-5) var(--sp-6); }
|
||
.auth-account-status-row {
|
||
display: flex; align-items: center; gap: var(--sp-4);
|
||
margin-bottom: var(--sp-5);
|
||
padding-bottom: var(--sp-5);
|
||
border-bottom: 1px solid var(--color-border);
|
||
}
|
||
.auth-account-avatar {
|
||
width: 56px; height: 56px; border-radius: 50%;
|
||
background: var(--color-accent-soft); border: 2px solid var(--color-accent);
|
||
display: flex; align-items: center; justify-content: center;
|
||
color: var(--color-accent); flex-shrink: 0;
|
||
}
|
||
.auth-account-info { flex: 1; min-width: 0; }
|
||
.auth-account-name {
|
||
display: block; font-size: 1.15rem; font-weight: 700;
|
||
color: var(--color-text); margin-bottom: 0.3rem;
|
||
white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
|
||
}
|
||
.auth-account-status {
|
||
display: flex; align-items: center; gap: 0.4rem;
|
||
font-size: 0.8rem; color: var(--color-accent); font-weight: 500;
|
||
}
|
||
.auth-account-actions {
|
||
display: flex; gap: var(--sp-3); margin-bottom: var(--sp-4); flex-wrap: wrap;
|
||
}
|
||
.auth-account-actions .btn-primary,
|
||
.auth-account-actions .btn-secondary { flex: 1; justify-content: center; display: flex; align-items: center; }
|
||
.auth-logout-btn {
|
||
width: 100%; display: flex; align-items: center; justify-content: center;
|
||
color: var(--color-error); border-color: var(--color-error-soft);
|
||
gap: 0.35rem;
|
||
}
|
||
.auth-logout-btn:hover { background: var(--color-error-soft); }
|
||
|
||
/* ─── Search improvements ────────────────────────────────────────────────── */
|
||
.search-queue-banner {
|
||
display: flex; align-items: center; justify-content: space-between;
|
||
background: var(--color-accent-soft); border: 1px solid var(--color-accent);
|
||
border-radius: var(--r); padding: 0.55rem var(--sp-4);
|
||
margin-bottom: var(--sp-4); font-size: 0.85rem; font-weight: 500;
|
||
color: var(--color-accent); animation: slide-up var(--t-normal) ease both;
|
||
}
|
||
.btn-go-downloads {
|
||
background: var(--color-accent); color: #fff;
|
||
font-size: 0.78rem; padding: 0.3rem 0.85rem; border-radius: var(--r-full);
|
||
display: flex; align-items: center; gap: 0.35rem; font-weight: 600;
|
||
transition: background var(--t-fast), box-shadow var(--t-fast);
|
||
white-space: nowrap;
|
||
}
|
||
.btn-go-downloads:hover { background: var(--color-accent-light); box-shadow: 0 2px 8px var(--color-accent-glow); }
|
||
|
||
.search-input-wrap { position: relative; flex: 1; }
|
||
.search-input-wrap input { padding-right: 2rem; }
|
||
.btn-clear-search {
|
||
position: absolute; right: 0.5rem; top: 50%; transform: translateY(-50%);
|
||
background: none; border: none; padding: 0.25rem;
|
||
color: var(--color-text-subtle); cursor: pointer;
|
||
display: flex; align-items: center; justify-content: center;
|
||
border-radius: 50%; width: 22px; height: 22px;
|
||
}
|
||
.btn-clear-search:hover { background: var(--color-surface-3); color: var(--color-text); }
|
||
|
||
.search-history {
|
||
background: var(--color-surface); border: 1px solid var(--color-border);
|
||
border-radius: var(--r-lg); margin-bottom: var(--sp-3); overflow: hidden;
|
||
animation: slide-up var(--t-fast) ease both;
|
||
}
|
||
.search-history-header {
|
||
display: flex; align-items: center; justify-content: space-between;
|
||
padding: 0.45rem var(--sp-3); border-bottom: 1px solid var(--color-border);
|
||
background: var(--color-surface-2);
|
||
}
|
||
.search-history-label {
|
||
font-size: 0.72rem; font-weight: 600; color: var(--color-text-muted);
|
||
display: flex; align-items: center; gap: 0.35rem;
|
||
}
|
||
.search-history-item {
|
||
display: flex; align-items: center; gap: 0.6rem;
|
||
width: 100%; padding: 0.5rem var(--sp-3);
|
||
background: none; border: none; text-align: left;
|
||
font-size: 0.82rem; color: var(--color-text-muted); font-family: inherit;
|
||
border-bottom: 1px solid var(--color-border-soft);
|
||
transition: background var(--t-fast), color var(--t-fast);
|
||
}
|
||
.search-history-item:last-child { border-bottom: none; }
|
||
.search-history-item:hover { background: var(--color-surface-2); color: var(--color-text); }
|
||
|
||
/* ─── Result card improvements (selected state + nav overlay) ────────────── */
|
||
.result-card { position: relative; }
|
||
.result-card-img-wrap { position: relative; overflow: hidden; }
|
||
.result-card-overlay {
|
||
position: absolute; inset: 0;
|
||
display: flex; align-items: center; justify-content: center;
|
||
transition: background var(--t-fast);
|
||
pointer-events: none;
|
||
}
|
||
/* Track selected: green check */
|
||
.result-card.selected .result-card-overlay {
|
||
background: rgba(0,0,0,.3); pointer-events: none;
|
||
}
|
||
.result-card-check {
|
||
width: 38px; height: 38px; border-radius: 50%;
|
||
background: var(--color-accent); color: #fff;
|
||
display: flex; align-items: center; justify-content: center;
|
||
opacity: 0; transform: scale(.7);
|
||
transition: opacity var(--t-fast), transform var(--t-fast);
|
||
box-shadow: 0 2px 10px rgba(0,0,0,.35);
|
||
}
|
||
.result-card.selected .result-card-check { opacity: 1; transform: scale(1); }
|
||
|
||
/* Non-track navigable cards */
|
||
.result-card--nav .result-card-overlay { pointer-events: none; }
|
||
.result-card--nav:hover .result-card-overlay { background: rgba(0,0,0,.28); }
|
||
.result-card-nav-icon {
|
||
width: 36px; height: 36px; border-radius: 50%;
|
||
background: rgba(255,255,255,.18); backdrop-filter: blur(4px);
|
||
color: #fff; display: flex; align-items: center; justify-content: center;
|
||
opacity: 0; transform: scale(.75);
|
||
transition: opacity var(--t-fast), transform var(--t-fast);
|
||
}
|
||
.result-card--nav:hover .result-card-nav-icon { opacity: 1; transform: scale(1); }
|
||
|
||
/* Card quick-add button */
|
||
.card-queue-btn {
|
||
position: absolute; bottom: 6px; right: 6px;
|
||
width: 26px; height: 26px; border-radius: 50%;
|
||
background: var(--color-accent); color: #fff;
|
||
border: none; padding: 0; cursor: pointer;
|
||
display: flex; align-items: center; justify-content: center;
|
||
opacity: 0; transform: scale(.7);
|
||
transition: opacity var(--t-fast), transform var(--t-fast), background var(--t-fast);
|
||
box-shadow: 0 2px 8px rgba(0,0,0,.4);
|
||
z-index: 2;
|
||
}
|
||
.result-card--nav:hover .card-queue-btn { opacity: 1; transform: scale(1); }
|
||
.card-queue-btn:hover { background: var(--color-accent-light); transform: scale(1.12); }
|
||
.card-queue-btn.in-queue { background: var(--color-success); opacity: 1; transform: scale(1); }
|
||
/* Remove feedback: in-queue button turns red with × icon on hover */
|
||
.result-card--nav .card-queue-btn.in-queue:hover {
|
||
background: var(--color-error);
|
||
}
|
||
.result-card--nav .card-queue-btn.in-queue:hover svg { display: none; }
|
||
.result-card--nav .card-queue-btn.in-queue:hover::after {
|
||
content: '×'; font-size: 15px; font-weight: 700; color: #fff; line-height: 1;
|
||
}
|
||
|
||
/* Selected non-track card */
|
||
.result-card--nav.selected { border-color: var(--color-accent); }
|
||
.result-card--nav.selected .card-queue-btn { opacity: 1; transform: scale(1); }
|
||
|
||
/* Improved selected state for ALL cards */
|
||
.result-card.selected {
|
||
border-color: var(--color-accent);
|
||
box-shadow: 0 0 0 2px var(--color-accent-soft), var(--shadow);
|
||
transform: translateY(-1px) scale(1.01);
|
||
}
|
||
.result-card.selected .result-title { color: var(--color-accent); }
|
||
|
||
/* Remove feedback: hovering a selected track card transforms the check into a remove indicator */
|
||
.result-card.selected:hover .result-card-check {
|
||
background: var(--color-error);
|
||
box-shadow: 0 2px 10px rgba(240,112,112,.4);
|
||
}
|
||
.result-card.selected:hover .result-card-check svg { display: none; }
|
||
.result-card.selected:hover .result-card-check::after {
|
||
content: '×'; font-size: 22px; font-weight: 700; color: #fff; line-height: 1;
|
||
}
|
||
|
||
/* ─── Detail panel ────────────────────────────────────────────────────────── */
|
||
.detail-topbar {
|
||
display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-5);
|
||
}
|
||
.btn-detail-back {
|
||
display: inline-flex; align-items: center; gap: 0.45rem;
|
||
background: var(--color-surface-2); border: 1px solid var(--color-border);
|
||
border-radius: var(--r-full); padding: 0.4rem 0.9rem;
|
||
font-size: 0.82rem; font-weight: 500; color: var(--color-text-muted);
|
||
transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
|
||
}
|
||
.btn-detail-back:hover { background: var(--color-surface-3); color: var(--color-text); border-color: var(--color-accent); }
|
||
|
||
.detail-header {
|
||
display: flex; gap: var(--sp-5); align-items: flex-start;
|
||
margin-bottom: var(--sp-3);
|
||
animation: slide-up var(--t-normal) ease both;
|
||
}
|
||
.detail-cover-wrap { flex-shrink: 0; }
|
||
.detail-cover {
|
||
width: 180px; height: 180px; object-fit: cover; border-radius: var(--r-lg);
|
||
box-shadow: var(--shadow-lg); display: block; background: var(--color-surface-3);
|
||
}
|
||
.detail-cover.placeholder { background: var(--color-surface-3); }
|
||
.detail-cover.round { border-radius: 50%; }
|
||
@media (max-width: 640px) { .detail-cover { width: 120px; height: 120px; } }
|
||
|
||
.detail-header-info { flex: 1; min-width: 0; }
|
||
.detail-type-row { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; margin-bottom: var(--sp-1); }
|
||
.detail-type-badge {
|
||
font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
|
||
color: var(--color-accent); display: inline-block;
|
||
}
|
||
.detail-title {
|
||
font-size: 1.5rem; font-weight: 800; letter-spacing: -0.4px; margin-bottom: var(--sp-1);
|
||
white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
|
||
}
|
||
.detail-sub { font-size: 0.9rem; color: var(--color-text-muted); margin-bottom: var(--sp-2); }
|
||
.detail-header-meta {
|
||
display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap;
|
||
margin-bottom: var(--sp-4);
|
||
min-height: 1.4em;
|
||
}
|
||
.detail-meta-text {
|
||
font-size: 0.8rem; color: var(--color-text-muted); font-variant-numeric: tabular-nums;
|
||
}
|
||
.detail-actions { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
|
||
|
||
/* Detail queue button: in-queue state shows removal action */
|
||
#btn-detail-dl-queue.in-queue {
|
||
background: var(--color-surface-2);
|
||
border: 1px solid var(--color-accent);
|
||
color: var(--color-accent);
|
||
box-shadow: none;
|
||
}
|
||
#btn-detail-dl-queue.in-queue:hover {
|
||
background: var(--color-error-soft);
|
||
border-color: var(--color-error);
|
||
color: var(--color-error);
|
||
box-shadow: none;
|
||
}
|
||
|
||
/* Clickable artist name link inside the detail subtitle */
|
||
.detail-artist-link {
|
||
background: none; border: none; cursor: pointer; padding: 0;
|
||
font-size: 0.9rem; color: var(--color-text-muted);
|
||
transition: color var(--t-fast);
|
||
}
|
||
.detail-artist-link:hover { color: var(--color-accent); text-decoration: underline; }
|
||
|
||
.detail-body { animation: slide-up var(--t-normal) ease both; padding-bottom: var(--sp-8); }
|
||
|
||
/* Track list in detail view */
|
||
.detail-tracklist { display: flex; flex-direction: column; gap: 0; }
|
||
.detail-section-heading {
|
||
font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em;
|
||
color: var(--color-text-muted); margin: var(--sp-5) 0 var(--sp-2);
|
||
display: flex; align-items: center; gap: var(--sp-3);
|
||
}
|
||
.detail-section-heading::after { content: ''; flex: 1; height: 1px; background: var(--color-border); }
|
||
|
||
.detail-track-item {
|
||
display: flex; align-items: center; gap: var(--sp-3);
|
||
padding: 0.5rem var(--sp-2); border-radius: var(--r);
|
||
transition: background var(--t-fast);
|
||
animation: fade-in var(--t-fast) ease both;
|
||
cursor: pointer;
|
||
}
|
||
.detail-track-item:hover { background: var(--color-surface-2); }
|
||
.detail-track-item.selected { background: var(--color-accent-soft); }
|
||
.detail-track-num {
|
||
font-size: 0.72rem; color: var(--color-text-subtle); width: 24px;
|
||
text-align: right; flex-shrink: 0; font-variant-numeric: tabular-nums;
|
||
}
|
||
.detail-track-info { flex: 1; min-width: 0; }
|
||
.detail-track-title {
|
||
font-size: 0.85rem; font-weight: 600;
|
||
white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block;
|
||
}
|
||
.detail-track-artist {
|
||
font-size: 0.75rem; color: var(--color-text-muted);
|
||
white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; margin-top: 1px;
|
||
}
|
||
.detail-track-add {
|
||
background: none; border: 1px solid var(--color-border); border-radius: var(--r-full);
|
||
padding: 0.2rem 0.55rem; font-size: 0.72rem; color: var(--color-text-muted);
|
||
opacity: 0; flex-shrink: 0;
|
||
transition: opacity var(--t-fast), border-color var(--t-fast), color var(--t-fast), background var(--t-fast);
|
||
}
|
||
.detail-track-item:hover .detail-track-add { opacity: 1; }
|
||
.detail-track-add:hover { border-color: var(--color-accent); color: var(--color-accent); background: var(--color-accent-soft); }
|
||
.detail-track-item.selected .detail-track-add {
|
||
opacity: 1; background: var(--color-accent); border-color: var(--color-accent); color: #fff;
|
||
}
|
||
|
||
/* Artist album grid in detail view */
|
||
.detail-album-grid {
|
||
display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.75rem;
|
||
margin-bottom: var(--sp-4);
|
||
}
|
||
|
||
/* ─── Library panel ─────────────────────────────────────────────────────── */
|
||
.library-controls-row {
|
||
display: flex; align-items: center; gap: var(--sp-3);
|
||
flex-wrap: wrap; margin-bottom: var(--sp-4);
|
||
}
|
||
.library-controls-row .search-type-pills { margin-bottom: 0; }
|
||
.library-filter-wrap {
|
||
flex: 1; min-width: 140px; max-width: 260px;
|
||
}
|
||
.library-filter-wrap .search-input-wrap input {
|
||
font-size: 0.82rem; padding: 0.35rem 2rem 0.35rem 0.7rem;
|
||
height: 32px;
|
||
}
|
||
.library-sort-select {
|
||
height: 32px; padding: 0 0.5rem; font-size: 0.82rem;
|
||
border: 1px solid var(--color-border); border-radius: var(--r);
|
||
background: var(--color-surface-2); color: var(--color-text);
|
||
cursor: pointer; flex-shrink: 0;
|
||
}
|
||
.library-sort-select:focus { outline: 2px solid var(--color-accent); outline-offset: 1px; }
|
||
.library-welcome {
|
||
background: linear-gradient(135deg, var(--color-accent-soft) 0%, transparent 100%);
|
||
border: 1px solid var(--color-accent); border-radius: var(--r-lg);
|
||
padding: var(--sp-4) var(--sp-5); margin-bottom: var(--sp-5);
|
||
animation: slide-up var(--t-normal) ease both;
|
||
}
|
||
.library-welcome-inner {
|
||
display: flex; align-items: center; gap: var(--sp-3);
|
||
}
|
||
.library-welcome-emoji { font-size: 1.8rem; }
|
||
.library-welcome-inner strong { display: block; font-size: 1rem; color: var(--color-accent); }
|
||
.library-welcome-sub { font-size: 0.82rem; color: var(--color-text-muted); }
|
||
|
||
.library-track-list { display: flex; flex-direction: column; gap: 0; }
|
||
.library-track-item {
|
||
display: flex; align-items: center; gap: var(--sp-3);
|
||
padding: 0.55rem var(--sp-2); border-radius: var(--r);
|
||
cursor: pointer; transition: background var(--t-fast);
|
||
animation: fade-in var(--t-fast) ease both;
|
||
}
|
||
.library-track-item:hover { background: var(--color-surface-2); }
|
||
.library-track-item.selected { background: var(--color-accent-soft); }
|
||
.library-track-thumb {
|
||
width: 36px; height: 36px; border-radius: 5px; object-fit: cover;
|
||
background: var(--color-surface-3); flex-shrink: 0;
|
||
}
|
||
.library-track-info { flex: 1; min-width: 0; }
|
||
.library-track-title {
|
||
font-size: 0.84rem; font-weight: 600;
|
||
white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block;
|
||
}
|
||
.library-track-artist {
|
||
font-size: 0.74rem; color: var(--color-text-muted);
|
||
white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; margin-top: 1px;
|
||
}
|
||
.library-track-add {
|
||
background: none; border: 1px solid var(--color-border); border-radius: var(--r-full);
|
||
padding: 0.18rem 0.5rem; font-size: 0.7rem; color: var(--color-text-muted);
|
||
opacity: 0; flex-shrink: 0;
|
||
transition: opacity var(--t-fast), border-color var(--t-fast), color var(--t-fast), background var(--t-fast);
|
||
}
|
||
.library-track-item:hover .library-track-add { opacity: 1; }
|
||
.library-track-add:hover { border-color: var(--color-accent); color: var(--color-accent); background: var(--color-accent-soft); }
|
||
.library-track-item.selected .library-track-add {
|
||
opacity: 1; background: var(--color-accent); border-color: var(--color-accent); color: #fff;
|
||
}
|
||
.library-track-date {
|
||
font-size: 0.72rem; color: var(--color-text-muted); flex-shrink: 0;
|
||
white-space: nowrap; min-width: 72px; text-align: right;
|
||
}
|
||
.library-track-header {
|
||
display: flex; align-items: center; gap: var(--sp-3);
|
||
padding: 0.2rem var(--sp-2) 0.4rem; border-bottom: 1px solid var(--color-border);
|
||
margin-bottom: 0.25rem; pointer-events: none;
|
||
}
|
||
.library-track-header-labels {
|
||
font-size: 0.72rem; font-weight: 600; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.04em;
|
||
}
|
||
.library-track-date-header {
|
||
font-size: 0.72rem; font-weight: 600; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.04em;
|
||
}
|
||
.library-track-add-placeholder { width: 48px; flex-shrink: 0; }
|
||
.library-load-more {
|
||
display: flex; justify-content: center; margin-top: var(--sp-4);
|
||
}
|
||
|
||
/* ─── Advanced settings section ──────────────────────────────────────────── */
|
||
.settings-advanced { padding: 0; }
|
||
.settings-advanced-summary {
|
||
display: flex; align-items: center; gap: 0.5rem;
|
||
font-size: 0.9rem; font-weight: 700; cursor: pointer;
|
||
padding: var(--sp-5); list-style: none; user-select: none;
|
||
}
|
||
.settings-advanced-summary::-webkit-details-marker { display: none; }
|
||
.settings-advanced-summary::before {
|
||
content: ''; display: inline-block; width: 8px; height: 8px;
|
||
border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
|
||
transform: rotate(-45deg); transition: transform var(--t-fast); flex-shrink: 0;
|
||
}
|
||
details.settings-advanced[open] .settings-advanced-summary::before {
|
||
transform: rotate(45deg);
|
||
}
|
||
.settings-advanced-badge {
|
||
font-size: 0.65rem; font-weight: 600; padding: 0.1rem 0.5rem;
|
||
border-radius: var(--r-full); background: var(--color-warn-soft); color: var(--color-warn);
|
||
margin-left: auto;
|
||
}
|
||
.settings-advanced-summary svg { color: var(--color-accent); flex-shrink: 0; }
|
||
details.settings-advanced > :not(summary) {
|
||
padding: 0 var(--sp-5) var(--sp-5);
|
||
}
|
||
.settings-advanced-note {
|
||
font-size: 0.82rem; color: var(--color-text-muted); line-height: 1.6;
|
||
margin-bottom: var(--sp-4); padding: var(--sp-3);
|
||
background: var(--color-surface-2); border-radius: var(--r);
|
||
border-left: 3px solid var(--color-warn);
|
||
}
|
||
|
||
.settings-note {
|
||
display: flex; align-items: flex-start; gap: var(--sp-2);
|
||
font-size: 0.82rem; color: var(--color-text-muted); line-height: 1.6;
|
||
margin-top: var(--sp-3); padding: var(--sp-3);
|
||
background: var(--color-surface-2); border-radius: var(--r);
|
||
}
|
||
.settings-note-warning {
|
||
border-left: 3px solid var(--color-warn);
|
||
color: var(--color-text);
|
||
}
|
||
|
||
/* ─── Sidebar spacer ─────────────────────────────────────────────────────── */
|
||
.sidebar-spacer { flex: 1; min-height: var(--sp-2); }
|
||
|
||
/* ─── Help panel — side-nav layout ──────────────────────────────────────── */
|
||
.help-layout {
|
||
display: flex; flex: 1; min-height: 0; overflow: hidden;
|
||
}
|
||
|
||
/* Side navigation */
|
||
.help-sidenav {
|
||
width: 148px; flex-shrink: 0;
|
||
background: var(--color-surface); border-right: 1px solid var(--color-border);
|
||
padding: var(--sp-4) var(--sp-2);
|
||
display: flex; flex-direction: column; gap: var(--sp-1);
|
||
overflow-y: auto;
|
||
}
|
||
.help-nav-btn {
|
||
background: transparent; color: var(--color-text-muted);
|
||
text-align: left; padding: 0.5rem 0.75rem; border-radius: var(--r);
|
||
font-weight: 500; font-size: 0.82rem;
|
||
display: flex; align-items: center; gap: 0.5rem;
|
||
position: relative; overflow: hidden;
|
||
transition: color var(--t-fast); white-space: nowrap;
|
||
}
|
||
.help-nav-btn::before {
|
||
content: ''; position: absolute; inset: 0;
|
||
background: var(--color-accent-soft); opacity: 0;
|
||
transition: opacity var(--t-fast); border-radius: inherit; pointer-events: none;
|
||
}
|
||
.help-nav-btn:hover { color: var(--color-text); }
|
||
.help-nav-btn:hover::before { opacity: .5; }
|
||
.help-nav-btn.active { color: var(--color-accent); }
|
||
.help-nav-btn.active::before { opacity: 1; }
|
||
.help-nav-btn.active::after {
|
||
content: ''; position: absolute; left: 0; top: 20%; bottom: 20%;
|
||
width: 3px; background: var(--color-accent); border-radius: 0 2px 2px 0;
|
||
}
|
||
.help-nav-btn svg { flex-shrink: 0; color: currentColor; opacity: .7; }
|
||
.help-nav-btn.active svg { opacity: 1; }
|
||
|
||
/* Help body */
|
||
.help-body {
|
||
flex: 1; min-width: 0;
|
||
}
|
||
|
||
.help-section {
|
||
display: none;
|
||
max-width: 680px;
|
||
padding-bottom: var(--sp-8);
|
||
}
|
||
.help-section.active { display: block; }
|
||
.help-section h3 {
|
||
font-size: 1.1rem; font-weight: 700; margin-bottom: var(--sp-4);
|
||
color: var(--color-accent); padding-bottom: var(--sp-3);
|
||
border-bottom: 1px solid var(--color-border);
|
||
}
|
||
.help-section p { font-size: 0.875rem; color: var(--color-text-muted); line-height: 1.65; margin-bottom: var(--sp-3); }
|
||
.help-section p:last-child { margin-bottom: 0; }
|
||
.help-note {
|
||
font-size: 0.8rem; color: var(--color-warn); background: var(--color-warn-soft);
|
||
border-radius: var(--r-sm); padding: 0.4rem 0.75rem; margin-top: var(--sp-2) !important;
|
||
}
|
||
.help-table-wrap { overflow-x: auto; margin: var(--sp-3) 0; }
|
||
.help-table {
|
||
width: 100%; border-collapse: collapse; font-size: 0.82rem;
|
||
}
|
||
.help-table th {
|
||
text-align: left; padding: 0.4rem 0.75rem;
|
||
background: var(--color-surface-2); color: var(--color-text-muted);
|
||
border-bottom: 1px solid var(--color-border); font-weight: 600; white-space: nowrap;
|
||
}
|
||
.help-table td {
|
||
padding: 0.4rem 0.75rem; border-bottom: 1px solid var(--color-border-soft);
|
||
color: var(--color-text); vertical-align: middle;
|
||
}
|
||
.help-table tr:last-child td { border-bottom: none; }
|
||
.help-code {
|
||
background: var(--color-surface-2); border: 1px solid var(--color-border);
|
||
border-radius: var(--r); padding: var(--sp-3) var(--sp-4);
|
||
font-family: var(--font-mono); font-size: 0.8rem; color: var(--color-text);
|
||
white-space: pre; overflow-x: auto; margin: var(--sp-3) 0;
|
||
}
|
||
kbd {
|
||
background: var(--color-surface-2); border: 1px solid var(--color-border);
|
||
border-bottom-width: 2px; border-radius: 4px;
|
||
font-family: var(--font-mono); font-size: 0.78rem;
|
||
padding: 0.05rem 0.45rem; color: var(--color-text);
|
||
}
|
||
|
||
/* Responsive: stack help layout on mobile */
|
||
@media (max-width: 640px) {
|
||
.help-layout { flex-direction: column; }
|
||
.help-sidenav {
|
||
width: 100%; flex-direction: row; flex-wrap: wrap;
|
||
border-right: none; border-bottom: 1px solid var(--color-border);
|
||
padding: var(--sp-2);
|
||
}
|
||
.help-nav-btn { font-size: 0.76rem; padding: 0.3rem 0.6rem; }
|
||
.help-nav-btn.active::after { display: none; }
|
||
}
|