dragonflight/services/web-ui/public/styles-screens.css
Claude 1fcb927d26 feat(web-ui): library Download button + dismissable size warning (#145)
Adds an inline hi-res download trigger to the asset library.

UI:
- Small 22×22 download icon button in the top-right corner of each
  asset thumbnail. Hidden by default, fades in on card hover or focus
  so the resting-state grid stays clean.
- Only renders for assets that have an `original_s3_key` — proxies
  and unfinished captures never offer it.
- Mirrored as a "Download original…" entry in the right-click
  AssetContextMenu (between Rename and the bin actions).

Flow:
- First click (or any click while the warning is enabled) opens
  DownloadWarningModal: terse copy explaining the file is the full
  original ingest, can be multi-GB, and that speed depends on the
  user's network connection. Footer: Cancel · Download. Body: a
  "Don't show this again on this device" checkbox.
- Ticking the checkbox persists `df.lib.download.warnDismissed=1`
  in localStorage. Subsequent clicks skip the modal and start the
  download straight away.

Download itself reuses /api/v1/assets/:id/hires (presigned S3 URL)
— no proxy round-trip through mam-api, no in-browser progress UI
beyond what the browser already shows.

Spec: #145
Settings → Account "re-enable the warning" toggle is not in this
patch and will land separately.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-28 16:14:24 -04:00

1205 lines
27 KiB
CSS

/* ========== Asset thumbnails ========== */
.asset-thumb {
position: relative;
width: 100%;
border-radius: var(--r-md);
overflow: hidden;
background: var(--bg-2);
display: block;
}
.asset-thumb.audio {
background: linear-gradient(135deg, hsl(180 30% 14%), hsl(200 30% 8%));
display: flex;
align-items: center;
justify-content: center;
}
.asset-thumb .thumb-svg { width: 100%; height: 100%; display: block; }
.scanlines {
position: absolute; inset: 0;
background-image: repeating-linear-gradient(0deg, transparent 0 2px, rgba(0,0,0,0.06) 2px 3px);
pointer-events: none;
opacity: 0.4;
}
.thumb-overlay {
position: absolute; inset: 0;
display: flex; align-items: center; justify-content: center;
color: white;
}
.thumb-duration {
position: absolute;
right: 6px; bottom: 6px;
font-family: var(--font-mono);
font-size: 10.5px;
font-weight: 500;
color: white;
background: rgba(0,0,0,0.7);
backdrop-filter: blur(4px);
padding: 2px 6px;
border-radius: 3px;
line-height: 1.3;
}
.thumb-status {
position: absolute;
left: 6px; top: 6px;
display: flex; gap: 4px;
}
/* Hi-res download button — top-right corner of an asset thumbnail.
Hidden by default, revealed on card hover or button focus. Avoids
crowding the resting-state thumb (issue #145). */
.thumb-download-btn {
position: absolute;
right: 6px; top: 6px;
width: 22px; height: 22px;
display: flex; align-items: center; justify-content: center;
padding: 0;
background: rgba(0, 0, 0, 0.7);
color: #fff;
border: 1px solid rgba(255, 255, 255, 0.12);
border-radius: 4px;
cursor: pointer;
opacity: 0;
transform: translateY(-2px);
transition: opacity 80ms ease-out, transform 120ms ease-out, background 80ms;
backdrop-filter: blur(4px);
}
.asset-card:hover .thumb-download-btn,
.thumb-download-btn:focus-visible {
opacity: 1;
transform: translateY(0);
}
.thumb-download-btn:hover {
background: rgba(0, 0, 0, 0.85);
border-color: rgba(255, 255, 255, 0.2);
}
/* ========== Waveform ========== */
.waveform { width: 70%; height: 50%; opacity: 0.85; }
.audio-meter.h { display: flex; gap: 2px; height: 12px; align-items: stretch; }
.audio-meter.v { display: flex; flex-direction: column-reverse; gap: 2px; width: 6px; height: 60px; }
.audio-seg { flex: 1; border-radius: 1px; transition: opacity 80ms, background 80ms; }
.audio-meter.h .audio-seg { min-width: 3px; }
.audio-meter.v .audio-seg { min-height: 2px; }
/* ========== Live strip ========== */
.live-strip {
display: flex;
gap: 2px;
align-items: stretch;
height: 56px;
position: relative;
overflow: hidden;
border-radius: var(--r-sm);
background: var(--bg-2);
}
.live-strip-cell {
flex: 1;
position: relative;
overflow: hidden;
animation: stripIn 600ms ease;
}
.live-strip-cell .thumb-svg { width: 100%; height: 100%; }
@keyframes stripIn {
from { transform: translateX(20%); opacity: 0; }
to { transform: none; opacity: 1; }
}
.live-strip-now {
position: absolute;
right: 6px; top: 6px;
display: flex; align-items: center; gap: 4px;
font-family: var(--font-mono);
font-size: 9.5px;
font-weight: 600;
color: var(--live);
background: rgba(0,0,0,0.6);
padding: 2px 6px;
border-radius: 99px;
letter-spacing: 0.04em;
}
.live-pulse {
width: 5px; height: 5px;
border-radius: 50%;
background: var(--live);
animation: pulse 1.6s ease-in-out infinite;
}
/* ========== Status dot ========== */
.status-dot {
display: inline-block;
width: 8px; height: 8px;
border-radius: 50%;
flex-shrink: 0;
}
.status-dot.pulse {
animation: dotpulse 1.6s ease-in-out infinite;
}
@keyframes dotpulse {
0%, 100% { opacity: 1; }
50% { opacity: 0.6; }
}
/* ========== Dashboard stats — dense row, not hero-metric cards ========== */
.dash-stat-row {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 10px;
padding: 12px 28px;
}
@media (max-width: 1100px) {
.dash-stat-row { grid-template-columns: repeat(2, 1fr); }
}
.dash-stat {
background: var(--bg-1);
border: 1px solid var(--border);
border-radius: var(--r-md);
padding: 10px 12px;
display: flex;
flex-direction: column;
gap: 2px;
position: relative;
overflow: hidden;
cursor: pointer;
transition: border-color 80ms;
}
.dash-stat:hover { border-color: var(--border-stronger); }
.dash-stat-top {
display: flex;
align-items: center;
justify-content: space-between;
}
.dash-stat-label {
font-size: 10.5px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.06em;
color: var(--text-3);
white-space: nowrap;
}
.dash-stat-ico {
color: var(--text-4);
flex-shrink: 0;
}
.dash-stat-mono {
font-family: var(--font-mono);
font-size: 18px;
font-weight: 600;
letter-spacing: -0.02em;
font-variant-numeric: tabular-nums;
line-height: 1.2;
color: var(--text-1);
}
.dash-stat-mono-sub {
font-size: 13px;
font-weight: 400;
color: var(--text-3);
}
.dash-stat-sub {
font-size: 11px;
color: var(--text-3);
font-family: var(--font-mono);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.dash-stat-sub.up { color: var(--success); }
/* Sparkline sits in its own row at the bottom — no absolute positioning */
.dash-sparkline {
height: 24px;
margin-top: 4px;
opacity: 0.6;
pointer-events: none;
}
/* ========== Live feed tiles ========== */
.home-grid {
display: grid;
grid-template-columns: 2fr 1fr;
gap: 16px;
padding: 4px 28px 40px;
}
.live-feed-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 10px;
}
.live-feed-tile {
position: relative;
border-radius: var(--r-md);
overflow: hidden;
aspect-ratio: 16 / 9;
background: var(--bg-2);
cursor: pointer;
transition: transform 120ms;
border: 1px solid var(--border);
}
.live-feed-tile:hover { transform: translateY(-1px); border-color: var(--border-stronger); }
.live-feed-tile-label {
position: absolute;
left: 8px; bottom: 8px;
right: 8px;
display: flex; align-items: center; gap: 6px;
z-index: 2;
}
.live-feed-tile-label .name {
color: white;
font-size: 12px;
font-weight: 500;
background: rgba(0,0,0,0.6);
padding: 3px 8px;
border-radius: 4px;
backdrop-filter: blur(4px);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
min-width: 0;
}
.live-feed-tile-label .source {
color: rgba(255,255,255,0.7);
font-family: var(--font-mono);
font-size: 10px;
background: rgba(0,0,0,0.5);
padding: 2px 5px;
border-radius: 3px;
white-space: nowrap;
}
.live-feed-tile-label .time {
margin-left: auto;
color: white;
font-family: var(--font-mono);
font-size: 11px;
background: rgba(0,0,0,0.6);
padding: 3px 6px;
border-radius: 4px;
backdrop-filter: blur(4px);
}
.live-feed-tile-badge {
position: absolute;
top: 8px; left: 8px;
z-index: 2;
}
.live-feed-tile-project {
position: absolute;
top: 8px; right: 8px;
z-index: 2;
display: flex;
align-items: center;
gap: 5px;
color: rgba(255,255,255,0.8);
font-size: 10.5px;
font-family: var(--font-mono);
background: rgba(0,0,0,0.5);
padding: 2px 7px;
border-radius: 4px;
backdrop-filter: blur(4px);
}
.live-feed-project-dot {
width: 6px; height: 6px;
border-radius: 50%;
flex-shrink: 0;
}
/* ========== Activity feed ========== */
.activity-feed {
background: var(--bg-1);
border: 1px solid var(--border);
border-radius: var(--r-lg);
overflow: hidden;
}
.activity-row {
display: flex; align-items: flex-start; gap: 10px;
padding: 10px 14px;
border-bottom: 1px solid var(--border);
font-size: 12.5px;
}
.activity-row:last-child { border-bottom: 0; }
.activity-icon {
width: 24px; height: 24px;
border-radius: 50%;
display: grid; place-items: center;
flex-shrink: 0;
color: var(--text-2);
}
.activity-icon.record { background: var(--live-soft); color: var(--live); }
.activity-text { flex: 1; line-height: 1.4; min-width: 0; }
.activity-text strong { color: var(--text-1); font-weight: 500; }
.activity-text .target { color: var(--accent-text); }
.activity-meta {
display: flex; gap: 6px;
flex-shrink: 0;
}
.activity-dur {
font-family: var(--font-mono);
font-size: 11px;
color: var(--text-3);
background: var(--bg-2);
padding: 1px 5px;
border-radius: 3px;
}
.activity-res {
font-family: var(--font-mono);
font-size: 11px;
color: var(--text-3);
background: var(--bg-2);
padding: 1px 5px;
border-radius: 3px;
}
.activity-time { font-size: 11px; color: var(--text-3); font-family: var(--font-mono); white-space: nowrap; }
/* ========== Mini job rows ========== */
.mini-job-row {
padding: 8px 12px;
display: flex;
align-items: center;
gap: 8px;
border-bottom: 1px solid var(--border);
}
.mini-job-row:last-child { border-bottom: 0; }
.mini-job-body {
flex: 1;
min-width: 0;
display: flex;
flex-direction: column;
gap: 3px;
}
.mini-job-line1 {
font-size: 12px;
display: flex;
gap: 5px;
align-items: center;
overflow: hidden;
}
.mini-job-kind { color: var(--text-2); flex-shrink: 0; }
.mini-job-sep { color: var(--text-4); flex-shrink: 0; }
.mini-job-asset {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
min-width: 0;
}
.mini-job-node {
color: var(--text-4);
font-size: 10.5px;
font-family: var(--font-mono);
flex-shrink: 0;
margin-left: auto;
}
.mini-job-progress {
display: flex;
align-items: center;
gap: 6px;
height: 18px;
}
.mini-job-progress::before {
content: '';
flex: 1;
height: 3px;
background: var(--bg-3);
border-radius: 99px;
overflow: hidden;
display: block;
}
.mini-job-progress-fill {
height: 3px;
background: var(--accent);
border-radius: 99px;
transition: width 300ms;
display: block;
flex: 1;
}
.mini-job-progress-fill { display: none; }
.mini-job-progress {
position: relative;
height: 14px;
}
.mini-job-progress .mini-job-progress-fill {
position: absolute;
left: 0; top: 50%;
transform: translateY(-50%);
height: 3px;
background: var(--accent);
border-radius: 99px;
display: block;
}
.mini-job-pct {
font-family: var(--font-mono);
font-size: 10px;
color: var(--text-3);
flex-shrink: 0;
min-width: 28px;
text-align: right;
}
.mini-job-error {
font-size: 11px;
color: var(--danger);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.mini-job-right {
font-family: var(--font-mono);
font-size: 10.5px;
color: var(--text-3);
min-width: 40px;
text-align: right;
flex-shrink: 0;
}
/* ========== Cluster node rows ========== */
.cluster-node-row {
padding: 8px 12px;
display: flex;
align-items: center;
gap: 8px;
border-bottom: 1px solid var(--border);
font-size: 12.5px;
}
.cluster-node-row:last-child { border-bottom: 0; }
.cluster-node-name {
font-weight: 500;
font-size: 12.5px;
white-space: nowrap;
}
.cluster-node-spacer { flex: 1; min-width: 8px; }
.cluster-node-metric {
display: flex;
align-items: center;
gap: 5px;
}
.cluster-node-metric-label {
font-family: var(--font-mono);
font-size: 9.5px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.04em;
color: var(--text-4);
width: 22px;
}
.cluster-node-bar {
width: 48px;
height: 3px;
background: var(--bg-3);
border-radius: 99px;
overflow: hidden;
display: block;
}
.cluster-node-bar-fill {
height: 100%;
border-radius: 99px;
display: block;
transition: width 200ms;
}
.cluster-node-metric-val {
font-family: var(--font-mono);
font-size: 10.5px;
color: var(--text-3);
min-width: 30px;
text-align: right;
}
/* ========== Dashboard page ========== */
.page.dash {
padding: 0 28px 12px;
}
.dash-section {
margin-bottom: 20px;
}
.dash-section:last-child { margin-bottom: 0; }
.dash-sectionhead {
display: flex;
align-items: center;
gap: 8px;
padding: 16px 0 10px;
position: relative;
}
.dash-sectionhead[data-accent=live] .dash-sectionhead-title { color: var(--live); }
.dash-sectionhead[data-accent=danger] .dash-sectionhead-title { color: var(--danger); }
.dash-sectionhead-title {
font-size: 14px;
font-weight: 600;
color: var(--text-1);
letter-spacing: -0.01em;
}
.dash-sectionhead-count {
display: flex;
align-items: center;
gap: 4px;
margin-left: 2px;
}
.dash-sectionhead-num {
font-family: var(--font-mono);
font-size: 12px;
font-weight: 600;
color: var(--text-2);
}
.dash-sectionhead-label {
font-size: 11.5px;
color: var(--text-3);
}
.dash-sectionhead-more {
margin-left: auto;
font-size: 11.5px;
color: var(--text-3);
background: none;
border: 0;
padding: 4px 6px;
border-radius: 4px;
cursor: pointer;
display: flex;
align-items: center;
gap: 4px;
transition: background 100ms, color 100ms;
}
.dash-sectionhead-more:hover {
background: var(--bg-2);
color: var(--text-1);
}
/* On-air grid */
.dash-onair-grid {
display: grid;
gap: 10px;
}
.dash-onair-grid[data-count="1"] { grid-template-columns: 1fr; }
.dash-onair-grid[data-count="2"] { grid-template-columns: 1fr 1fr; }
.dash-onair-grid[data-count="3"] { grid-template-columns: 1fr 1fr 1fr; }
.dash-onair-grid[data-count="4"] { grid-template-columns: 1fr 1fr; }
.dash-onair-tile {
background: var(--bg-1);
border: 1px solid var(--border);
border-radius: var(--r-lg);
overflow: hidden;
cursor: pointer;
transition: border-color 120ms;
}
.dash-onair-tile:hover { border-color: var(--border-stronger); }
.dash-onair-video {
position: relative;
aspect-ratio: 16/9;
background: var(--bg-2);
overflow: hidden;
}
.dash-onair-rec-pip {
position: absolute;
top: 8px; left: 8px;
display: flex;
align-items: center;
gap: 5px;
font-size: 10.5px;
font-weight: 600;
color: white;
background: var(--danger);
padding: 2px 7px;
border-radius: 4px;
line-height: 1.3;
}
.dash-onair-rec-dot {
width: 6px; height: 6px;
border-radius: 50%;
background: white;
animation: dash-rec-pulse 1.5s ease-in-out infinite;
}
@keyframes dash-rec-pulse {
0%, 100% { opacity: 1; }
50% { opacity: 0.3; }
}
.dash-onair-time {
position: absolute;
bottom: 8px; right: 8px;
font-family: var(--font-mono);
font-size: 11px;
color: white;
background: rgba(0,0,0,0.65);
padding: 2px 7px;
border-radius: 4px;
backdrop-filter: blur(4px);
}
.dash-onair-meta {
padding: 10px 12px;
}
.dash-onair-name {
font-size: 13px;
font-weight: 500;
color: var(--text-1);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.dash-onair-sub {
display: flex;
align-items: center;
gap: 4px;
margin-top: 3px;
font-size: 11.5px;
color: var(--text-3);
}
.dash-onair-dot {
color: var(--text-4);
}
.dash-onair-source,
.dash-onair-res,
.dash-onair-codec { font-family: var(--font-mono); font-size: 10.5px; }
/* Inline empty state */
.dash-inline-empty {
display: flex;
align-items: center;
gap: 8px;
padding: 14px 14px;
background: var(--bg-1);
border: 1px dashed var(--border);
border-radius: var(--r-md);
color: var(--text-3);
font-size: 12.5px;
}
.dash-inline-empty-cta {
margin-left: auto;
font-size: 11.5px;
color: var(--accent);
background: none;
border: 0;
padding: 4px 6px;
border-radius: 4px;
cursor: pointer;
display: flex;
align-items: center;
gap: 4px;
}
.dash-inline-empty-cta:hover {
background: var(--accent-soft);
}
/* Up next strip */
.dash-next-row {
display: flex;
gap: 10px;
}
.dash-next-card {
flex: 1;
background: var(--bg-1);
border: 1px solid var(--border);
border-radius: var(--r-lg);
overflow: hidden;
transition: border-color 120ms;
}
.dash-next-card.imminent {
border-color: var(--accent);
}
.dash-next-time {
padding: 8px 12px 4px;
display: flex;
align-items: center;
gap: 6px;
}
.dash-next-clock {
font-family: var(--font-mono);
font-size: 11px;
font-weight: 600;
color: var(--text-2);
}
.dash-next-rel {
font-size: 10.5px;
color: var(--accent-text);
}
.dash-next-body {
padding: 4px 12px 10px;
}
.dash-next-name {
font-size: 12.5px;
font-weight: 500;
color: var(--text-1);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.dash-next-sub {
display: flex;
align-items: center;
gap: 4px;
margin-top: 3px;
font-size: 11px;
color: var(--text-3);
}
/* Attention section */
.dash-attention {
}
.dash-attention-panel {
background: var(--bg-1);
border: 1px solid var(--border);
border-radius: var(--r-lg);
overflow: hidden;
}
.dash-attention-row {
display: flex;
align-items: center;
gap: 8px;
padding: 8px 12px;
border-bottom: 1px solid var(--border);
cursor: pointer;
transition: background 100ms;
}
.dash-attention-row:last-child { border-bottom: 0; }
.dash-attention-row.level-danger {
border-left: 3px solid var(--danger);
}
.dash-attention-row.level-warning {
border-left: 3px solid var(--warning);
}
.dash-attention-row:hover { background: var(--bg-2); }
.dash-attention-icon {
width: 24px; height: 24px;
display: grid; place-items: center;
flex-shrink: 0;
}
.dash-attention-title {
font-size: 12px;
font-weight: 500;
color: var(--text-1);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.dash-attention-detail {
font-size: 11px;
color: var(--text-3);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
flex: 1;
}
.dash-attention-arrow {
flex-shrink: 0;
color: var(--text-4);
}
.dash-attention-more {
display: flex;
align-items: center;
gap: 4px;
padding: 8px 12px;
font-size: 11.5px;
color: var(--text-3);
cursor: pointer;
justify-content: center;
}
.dash-attention-more:hover { color: var(--text-1); }
/* Two-column work + cluster grid */
.dash-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 14px;
}
.dash-col {
display: flex;
flex-direction: column;
gap: 8px;
min-width: 0;
}
/* Job queue panel */
.dash-jobs-panel {
background: var(--bg-1);
border: 1px solid var(--border);
border-radius: var(--r-lg);
overflow: hidden;
}
.dash-jobs-head {
display: grid;
grid-template-columns: 20px 1fr 1fr 1fr;
gap: 6px;
padding: 6px 12px;
border-bottom: 1px solid var(--border);
font-size: 10px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.05em;
color: var(--text-4);
}
.dash-jobs-row {
display: grid;
grid-template-columns: 20px 1fr 1fr 1fr;
gap: 6px;
padding: 7px 12px;
border-bottom: 1px solid var(--border);
align-items: center;
font-size: 12px;
}
.dash-jobs-row:last-child { border-bottom: 0; }
.dash-jobs-statr { justify-content: center; }
.dash-jobs-kind {
display: flex;
align-items: center;
gap: 5px;
color: var(--text-2);
overflow: hidden;
}
.dash-jobs-kind span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-jobs-asset {
color: var(--text-1);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.dash-jobs-progress {
display: flex;
align-items: center;
gap: 6px;
}
.dash-jobs-bar {
flex: 1;
height: 4px;
background: var(--bg-3);
border-radius: 99px;
overflow: hidden;
}
.dash-jobs-bar-fill {
height: 100%;
background: var(--accent);
border-radius: 99px;
transition: width 300ms;
}
.dash-jobs-pct {
font-family: var(--font-mono);
font-size: 10px;
color: var(--text-3);
min-width: 28px;
text-align: right;
}
.dash-jobs-state {
font-size: 10px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.04em;
color: var(--text-4);
}
.dash-jobs-state.done { color: var(--success); }
.dash-jobs-state.failed { color: var(--danger); }
/* Cluster panel (dashboard) */
.dash-cluster-panel {
background: var(--bg-1);
border: 1px solid var(--border);
border-radius: var(--r-lg);
overflow: hidden;
}
.dash-cluster-head {
display: grid;
grid-template-columns: 20px 1fr 1fr 1fr;
gap: 6px;
padding: 6px 12px;
border-bottom: 1px solid var(--border);
font-size: 10px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.05em;
color: var(--text-4);
}
.dash-cluster-row {
display: grid;
grid-template-columns: 20px 1fr 1fr 1fr;
gap: 6px;
padding: 7px 12px;
border-bottom: 1px solid var(--border);
align-items: center;
font-size: 12px;
}
.dash-cluster-row:last-child { border-bottom: 0; }
.dash-cluster-row[data-online=false] { opacity: 0.55; }
.dash-cluster-status { display: flex; align-items: center; }
.dash-cluster-name {
display: flex;
align-items: center;
gap: 6px;
overflow: hidden;
}
.dash-cluster-host {
font-weight: 500;
color: var(--text-1);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.dash-cluster-role {
font-size: 9.5px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.04em;
color: var(--accent-text);
background: var(--accent-soft);
padding: 1px 5px;
border-radius: 3px;
flex-shrink: 0;
}
.dash-cluster-metric {
display: flex;
align-items: center;
gap: 5px;
}
.dash-cluster-bar {
flex: 1;
height: 4px;
background: var(--bg-3);
border-radius: 99px;
overflow: hidden;
}
.dash-cluster-bar-fill {
height: 100%;
border-radius: 99px;
transition: width 200ms;
}
.dash-cluster-val {
font-family: var(--font-mono);
font-size: 10.5px;
color: var(--text-2);
min-width: 32px;
text-align: right;
}
.dash-cluster-val.muted { color: var(--text-4); }
/* Panel empty state */
.dash-panel-empty {
display: flex;
align-items: center;
justify-content: center;
gap: 6px;
padding: 18px 12px;
color: var(--text-3);
font-size: 12px;
}
/* Status bar */
.dash-statusbar {
display: flex;
align-items: center;
gap: 6px;
padding: 10px 0 6px;
border-top: 1px solid var(--border);
margin-top: 6px;
font-family: var(--font-mono);
font-size: 11px;
}
.dash-stat-pip {
display: flex;
align-items: center;
gap: 5px;
}
.dash-stat-pip[data-tone=live] .dash-pip-dot { background: var(--live); }
.dash-stat-pip[data-tone=accent] .dash-pip-dot { background: var(--accent); }
.dash-stat-pip[data-tone=warning] .dash-pip-dot { background: var(--warning); }
.dash-stat-pip[data-tone=success] .dash-pip-dot { background: var(--success); }
.dash-stat-pip[data-tone=idle] .dash-pip-dot { background: var(--text-4); }
.dash-pip-dot {
width: 6px; height: 6px;
border-radius: 50%;
background: var(--text-4);
}
.dash-pip-num {
font-weight: 600;
color: var(--text-2);
}
.dash-pip-label {
color: var(--text-4);
text-transform: lowercase;
}
.dash-statusbar-sep {
color: var(--text-5, var(--text-4));
opacity: 0.5;
}
.dash-statusbar-spacer { flex: 1; }
.dash-statusbar-clock {
color: var(--text-3);
margin-left: auto;
}
/* ========== Empty states ========== */
.dash-empty {
padding: 16px 0;
color: var(--text-3);
font-size: 12.5px;
}
.dash-empty-panel {
padding: 14px 12px;
color: var(--text-3);
font-size: 12px;
text-align: center;
}
/* ========== Library ========== */
.library-layout {
display: grid;
grid-template-columns: 240px 1fr;
flex: 1;
min-height: 0;
overflow: hidden;
}
.library-rail {
border-right: 1px solid var(--border);
background: var(--bg-0);
padding: 16px 12px;
overflow-y: auto;
display: flex; flex-direction: column; gap: 16px;
}
.library-rail h4 {
margin: 0;
font-size: 10.5px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.08em;
color: var(--text-4);
padding: 0 10px;
}
.rail-list { display: flex; flex-direction: column; gap: 1px; }
.rail-item {
display: flex; align-items: center; gap: 8px;
height: 30px;
padding: 0 10px;
border-radius: var(--r-sm);
font-size: 12.5px;
color: var(--text-2);
cursor: pointer;
}
.rail-item:hover { background: var(--hover); color: var(--text-1); }
.rail-item.active { background: var(--accent-soft); color: var(--accent-text); }
.rail-item.droppable { outline: 2px dashed var(--accent); outline-offset: -2px; background: var(--accent-subtle); }
.rail-item.active .rail-icon { color: var(--accent); }
.rail-item .rail-icon { color: var(--text-3); }
.rail-item .rail-count { margin-left: auto; font-family: var(--font-mono); font-size: 10.5px; color: var(--text-3); }
.rail-color-dot { width: 8px; height: 8px; border-radius: 50%; }
.library-main {
display: flex; flex-direction: column;
overflow: hidden;
}
.library-toolbar {
padding: 12px 24px;
display: flex; align-items: center; gap: 8px;
border-bottom: 1px solid var(--border);
}
.library-toolbar .toolbar-title {
font-size: 14px; font-weight: 600;
letter-spacing: -0.01em;
}
.library-toolbar .count { color: var(--text-3); font-size: 12.5px; }
.tab-group {
display: flex;
background: var(--bg-1);
border: 1px solid var(--border);
border-radius: var(--r-sm);
padding: 2px;
gap: 2px;
}
.tab-group button {
height: 24px;
padding: 0 10px;
font-size: 11.5px;
font-weight: 500;
color: var(--text-3);
border-radius: 4px;
display: flex; align-items: center; gap: 4px;
}
.tab-group button:hover { color: var(--text-1); }
.tab-group button.active { background: var(--bg-3); color: var(--text-1); }
.library-grid {
flex: 1;
overflow-y: auto;
padding: 16px 24px 32px;
display: grid;
grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
gap: 14px;
align-content: start;
}
[data-grid-size="lg"] .library-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
[data-grid-size="sm"] .library-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.asset-card {
position: relative;
cursor: pointer;
border-radius: var(--r-md);
transition: transform 120ms;
}
.asset-card:hover { transform: translateY(-2px); }
.asset-card:hover .asset-thumb { box-shadow: 0 0 0 1.5px var(--accent), var(--shadow-pop); }
.asset-card .meta {
padding: 8px 4px 4px;
}
.asset-card .meta .name {
font-size: 12.5px;
font-weight: 500;
color: var(--text-1);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.asset-card .meta .sub {
font-size: 11px;
color: var(--text-3);
margin-top: 2px;
display: flex; align-items: center; gap: 6px;
font-family: var(--font-mono);
}
.asset-card.selected .asset-thumb { box-shadow: 0 0 0 2px var(--accent); }
.asset-progress-overlay {
position: absolute;
inset: 0;
background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.7) 100%);
display: flex;
align-items: flex-end;
padding: 8px;
}
.asset-progress-bar {
width: 100%;
height: 4px;
background: rgba(255,255,255,0.15);
border-radius: 99px;
overflow: hidden;
}
.asset-progress-fill {
height: 100%;
background: var(--warning);
transition: width 200ms;
}
.library-list {
flex: 1; overflow-y: auto;
padding: 0 24px 32px;
}
.list-row {
display: grid;
grid-template-columns: 80px 2fr 120px 100px 100px 80px 80px 32px;
align-items: center;
gap: 12px;
padding: 8px 0;
border-bottom: 1px solid var(--border);
cursor: pointer;
font-size: 12.5px;
}
.list-row:hover { background: var(--hover); }
.list-row.head {
font-size: 10.5px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.06em;
color: var(--text-4);
cursor: default;
position: sticky; top: 0;
background: var(--bg-0);
z-index: 1;
padding-top: 12px;
}
.list-row:hover.head { background: var(--bg-0); }
.list-row .thumb {
width: 80px; aspect-ratio: 16/9;
border-radius: 4px; overflow: hidden;
}
.list-row .name { font-weight: 500; }
.list-row .col-sub { color: var(--text-3); font-family: var(--font-mono); font-size: 11.5px; }