- resources/logic_analytics.js: computeAnalytics(items) in ONE pass over the items: per-axis rows (model, lora, sampler, scheduler, steps, cfg, denoise, resolution, attention, upscale, pass, prompt, and every wf_params key) with count, favorites %, rejects %, mean duration, mean of every builtin metric and the pairwise rating; sortAnalyticsRows, analyticsToMarkdown - resources/logic_analytics_panel.js: docked non-modal panel (header button + cog entry), scope "current filter (favs/rejects counted)" or "whole session", sortable columns, dim rows under n=3, Copy Markdown, re-renders (throttled) on every data change, Escape closes; builds DOM with textContent only - logic_pipeline.js: pipelineFilterCtx/pipelineMatches extracted (behaviour identical) - sobel: mean Sobel gradient magnitude of luma (kernels /4; a full step edge = 1), numpy and torch parity; Dashboard sort/filter/labels, Builder metric list; backfill gains fill_missing (adds keys missing from older items, never changes stored values); the distributed metrics pass fills metrics a worker on an older USCG omitted - tests: 15 python, 12 node, 5 Playwright (incl. an XSS-shaped manifest value rendered as text) Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2175 lines
47 KiB
CSS
2175 lines
47 KiB
CSS
:root {
|
|
--bg: #0b0b0b;
|
|
--card: #141414;
|
|
--accent: #00d1b2;
|
|
--accent-sch: #3e8ed0;
|
|
--accent-lora: #d0873e;
|
|
--accent-denoise: #c35500;
|
|
--accent-model: #9b59b6;
|
|
--accent-positive: #007d11;
|
|
--accent-negative: #8d0000;
|
|
--accent-size: #ffd700;
|
|
--accent-seed: #00ff88;
|
|
--accent-steps: #ff4099;
|
|
--accent-cfg: #00d4ff;
|
|
--accent-upscale: #7e57c2;
|
|
--accent-media: #ff7043;
|
|
--danger: #ff3860;
|
|
--text: #e0e0e0;
|
|
--card-width: 250px;
|
|
}
|
|
|
|
body {
|
|
background: var(--bg);
|
|
color: var(--text);
|
|
font-family: 'Segoe UI', sans-serif;
|
|
margin: 0;
|
|
overflow: hidden;
|
|
height: 100vh;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.meta-box {
|
|
display: flex;
|
|
flex-direction: row;
|
|
gap: 1px;
|
|
align-items: center;
|
|
min-width: 0;
|
|
flex: 0 1 auto;
|
|
}
|
|
|
|
.meta-label {
|
|
color: #c7c7c7;
|
|
font-weight: 900;
|
|
text-transform: uppercase;
|
|
font-size: 9px;
|
|
white-space: nowrap;
|
|
padding-top: 1px;
|
|
}
|
|
|
|
.meta-val {
|
|
color: #bbb;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
padding-top: 1px;
|
|
}
|
|
|
|
|
|
#header input[type="number"] , #goto-input, #col-count {
|
|
background: #1a1a1a;
|
|
border: 1px solid #333;
|
|
color: #ccc;
|
|
padding: 0 4px;
|
|
border-radius: 3px;
|
|
width: 25px;
|
|
height: 20px;
|
|
font-size: 10px;
|
|
text-align: center;
|
|
}
|
|
|
|
#header input[type="number"]:focus {
|
|
border-color: var(--accent);
|
|
outline: none;
|
|
}
|
|
|
|
#goto-input {
|
|
width: 40px !important;
|
|
}
|
|
|
|
.session-ctrl {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 2px;
|
|
background: #0a0a0a;
|
|
padding: 3px 8px;
|
|
border-radius: 4px;
|
|
border: 1px solid #222;
|
|
}
|
|
|
|
.session-input {
|
|
background: #000;
|
|
color: #fff;
|
|
border: 1px solid #333;
|
|
padding: 3px 8px;
|
|
font-size: 11px;
|
|
width: 80px;
|
|
border-radius: 3px;
|
|
}
|
|
|
|
.session-input:focus {
|
|
border-color: var(--accent);
|
|
outline: none;
|
|
}
|
|
|
|
/* (Session button and dropdown removed - merged into cog settings panel) */
|
|
|
|
.session-name-input {
|
|
background: #0a0a0a;
|
|
border: 1px solid #333;
|
|
color: #fff;
|
|
padding: 6px 10px;
|
|
font-size: 11px;
|
|
border-radius: 3px;
|
|
width: 100%;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.session-name-input:focus {
|
|
border-color: var(--accent);
|
|
outline: none;
|
|
}
|
|
|
|
.session-actions {
|
|
display: flex;
|
|
gap: 6px;
|
|
}
|
|
|
|
.session-action-btn {
|
|
flex: 1;
|
|
background: #2a2a2a;
|
|
color: #fff;
|
|
border: 1px solid #444;
|
|
padding: 6px 10px;
|
|
border-radius: 3px;
|
|
cursor: pointer;
|
|
font-weight: 600;
|
|
font-size: 10px;
|
|
transition: background 0.2s;
|
|
}
|
|
|
|
.session-action-btn:hover {
|
|
background: #444;
|
|
}
|
|
|
|
.session-action-btn.save-btn {
|
|
background: #005e52;
|
|
color: #fff;
|
|
border-color: #005e52;
|
|
}
|
|
|
|
.session-action-btn.save-btn:hover {
|
|
background: #00796b;
|
|
}
|
|
|
|
.session-action-btn.load-btn {
|
|
background: #9b59b6;
|
|
color: #fff;
|
|
border-color: #9b59b6;
|
|
}
|
|
|
|
.session-action-btn.load-btn:hover {
|
|
background: #8e44ad;
|
|
}
|
|
|
|
.action-btn {
|
|
background: #2a2a2a;
|
|
color: #fff;
|
|
border: 1px solid #444;
|
|
padding: 4px 10px;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
font-weight: 600;
|
|
font-size: 10px;
|
|
transition: background 0.2s;
|
|
}
|
|
|
|
.action-btn:hover {
|
|
background: #444;
|
|
}
|
|
|
|
.fs-btn {
|
|
background: #333;
|
|
color: #fff;
|
|
border: 1px solid #555;
|
|
width: 28px;
|
|
height: 28px;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 14px;
|
|
transition: background 0.2s;
|
|
}
|
|
|
|
.fs-btn:hover {
|
|
background: #555;
|
|
}
|
|
|
|
.filter-popup-btn {
|
|
background: #2a2a2a;
|
|
color: var(--accent);
|
|
border: 1px solid #444;
|
|
width: 28px;
|
|
height: 28px;
|
|
padding: 0;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
transition: background 0.2s;
|
|
}
|
|
|
|
.filter-popup-btn:hover {
|
|
background: #444;
|
|
}
|
|
|
|
/* FILTERS POPUP */
|
|
.filters-overlay {
|
|
position: fixed;
|
|
inset: 0;
|
|
background: rgba(0, 0, 0, 0.7);
|
|
z-index: 999;
|
|
}
|
|
|
|
.filters-popup {
|
|
position: fixed;
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translate(-50%, -50%);
|
|
background: #111;
|
|
border: 1px solid #333;
|
|
border-radius: 8px;
|
|
width: 90%;
|
|
max-width: 800px;
|
|
max-height: 80vh;
|
|
overflow-y: auto;
|
|
z-index: 1000;
|
|
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
|
|
}
|
|
|
|
.filters-popup-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 15px 20px;
|
|
border-bottom: 1px solid #333;
|
|
background: #0a0a0a;
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 10;
|
|
}
|
|
|
|
.filters-popup-header h3 {
|
|
margin: 0;
|
|
color: #fff;
|
|
font-size: 16px;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.close-popup-btn {
|
|
background: #333;
|
|
color: #fff;
|
|
border: none;
|
|
width: 28px;
|
|
height: 28px;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
font-size: 16px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
transition: background 0.2s;
|
|
}
|
|
|
|
.close-popup-btn:hover {
|
|
background: var(--danger);
|
|
}
|
|
|
|
.filters-popup-content {
|
|
padding: 20px;
|
|
}
|
|
|
|
.popup-section {
|
|
margin-bottom: 25px;
|
|
}
|
|
|
|
.popup-section:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.popup-section-title {
|
|
font-size: 11px;
|
|
font-weight: 700;
|
|
color: #666;
|
|
text-transform: uppercase;
|
|
margin-bottom: 12px;
|
|
letter-spacing: 0.5px;
|
|
}
|
|
|
|
/* Meta Info Grid */
|
|
.meta-info-grid {
|
|
display: grid;
|
|
grid-template-columns: 1fr;
|
|
gap: 10px;
|
|
}
|
|
|
|
.meta-info-item {
|
|
background: #0a0a0a;
|
|
padding: 10px 12px;
|
|
border-radius: 4px;
|
|
border: 1px solid #222;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
}
|
|
|
|
.meta-info-item .meta-label {
|
|
font-size: 9px;
|
|
color: #666;
|
|
}
|
|
|
|
.meta-info-item .meta-val {
|
|
color: #fff;
|
|
font-size: 12px;
|
|
word-break: break-word;
|
|
}
|
|
|
|
/* Filter Rows */
|
|
.filter-row {
|
|
display: flex;
|
|
gap: 12px;
|
|
align-items: flex-start;
|
|
margin-bottom: 12px;
|
|
padding-bottom: 12px;
|
|
border-bottom: 1px solid #1a1a1a;
|
|
}
|
|
|
|
.filter-row:last-child {
|
|
border-bottom: none;
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.filter-row .filter-label {
|
|
font-size: 10px;
|
|
font-weight: 700;
|
|
color: #888;
|
|
text-transform: uppercase;
|
|
min-width: 70px;
|
|
padding-top: 4px;
|
|
}
|
|
|
|
.filter-buttons-container {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 6px;
|
|
flex: 1;
|
|
}
|
|
|
|
.filter-btn {
|
|
background: #222;
|
|
border: 1px solid #333;
|
|
color: #666;
|
|
padding: 4px 10px;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
font-size: 10px;
|
|
transition: 0.1s;
|
|
position: relative;
|
|
}
|
|
|
|
.filter-btn:hover {
|
|
background: #2a2a2a;
|
|
}
|
|
|
|
.filter-btn.active.sampler {
|
|
background: var(--accent);
|
|
color: #000;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.filter-btn.active.scheduler {
|
|
background: var(--accent-sch);
|
|
color: #000;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.filter-btn.active.lora {
|
|
background: var(--accent-lora);
|
|
color: #000;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.filter-btn.active.denoise {
|
|
background: var(--accent-denoise);
|
|
color: #fff;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.filter-btn.active.model {
|
|
background: var(--accent-model);
|
|
color: #fff;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.filter-btn.active.positive {
|
|
background: var(--accent-positive);
|
|
color: #fff;
|
|
font-weight: 700;
|
|
text-shadow: 0 1px 2px rgba(0,0,0,0.3);
|
|
}
|
|
|
|
.filter-btn.active.negative {
|
|
background: var(--accent-negative);
|
|
color: #fff;
|
|
font-weight: 700;
|
|
text-shadow: 0 1px 2px rgba(0,0,0,0.3);
|
|
}
|
|
|
|
.filter-btn.active.size {
|
|
background: var(--accent-size);
|
|
color: #000;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.filter-btn.active.seed {
|
|
background: var(--accent-seed);
|
|
color: #000;
|
|
font-weight: 700;
|
|
}
|
|
|
|
/* NOTE: Changes to report.css require dashboard HTML regeneration to take effect
|
|
(run a sampler pass or reload the session to trigger html_generator.py). */
|
|
|
|
.filter-btn.active.steps {
|
|
background: var(--accent-steps);
|
|
color: #fff;
|
|
font-weight: 700;
|
|
box-shadow: inset 0 0 0 2px rgba(255,255,255,0.3);
|
|
}
|
|
|
|
.filter-btn.active.cfg {
|
|
background: var(--accent-cfg);
|
|
color: #000;
|
|
font-weight: 700;
|
|
box-shadow: inset 0 0 0 2px rgba(0,0,0,0.15);
|
|
}
|
|
|
|
.filter-btn.active.upscaleMethod {
|
|
background: var(--accent-upscale);
|
|
color: #fff;
|
|
font-weight: 700;
|
|
box-shadow: inset 0 0 0 2px rgba(255,255,255,0.3);
|
|
}
|
|
|
|
.filter-btn.active.mediaType {
|
|
background: var(--accent-media);
|
|
color: #000;
|
|
font-weight: 700;
|
|
box-shadow: inset 0 0 0 2px rgba(0,0,0,0.15);
|
|
}
|
|
|
|
/* VIEWPORT - Pure pan mode (no scrollbars) */
|
|
#viewport {
|
|
flex: 1;
|
|
overflow: hidden;
|
|
position: relative;
|
|
background: radial-gradient(#222 1px, transparent 1px);
|
|
background-size: 30px 30px;
|
|
background-attachment: fixed;
|
|
cursor: grab;
|
|
touch-action: none;
|
|
-webkit-user-select: none;
|
|
user-select: none;
|
|
-webkit-touch-callout: none;
|
|
}
|
|
|
|
#viewport:active {
|
|
cursor: grabbing;
|
|
}
|
|
|
|
#canvas {
|
|
transform-origin: 0 0;
|
|
will-change: transform;
|
|
position: relative;
|
|
min-height: 100%;
|
|
min-width: 100%;
|
|
}
|
|
|
|
.grid {
|
|
position: relative;
|
|
width: 100%;
|
|
}
|
|
|
|
/* CARDS - Absolutely positioned */
|
|
.card {
|
|
position: absolute;
|
|
background: var(--card);
|
|
border: 1px solid #222;
|
|
border-radius: 8px;
|
|
overflow: hidden;
|
|
box-shadow: 0 4px 10px rgba(0,0,0,0.5);
|
|
display: flex;
|
|
flex-direction: column;
|
|
contain: layout style paint;
|
|
will-change: transform;
|
|
transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
|
|
-webkit-tap-highlight-color: transparent;
|
|
}
|
|
|
|
|
|
@media (hover: hover) {
|
|
.card:hover {
|
|
transform: translateY(-2px);
|
|
border-color: var(--accent);
|
|
box-shadow: 0 8px 20px rgba(0,209,178,0.3);
|
|
z-index: 999999 !important;
|
|
}
|
|
}
|
|
|
|
.card:active {
|
|
transform: translateY(-2px);
|
|
border-color: var(--accent);
|
|
z-index: 999999 !important;
|
|
}
|
|
|
|
.img-wrapper {
|
|
position: relative;
|
|
width: 100%;
|
|
padding-bottom: 100%;
|
|
background: #1a1a1a;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.img-wrapper img {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
opacity: 0;
|
|
transition: opacity 0.3s;
|
|
decoding: async;
|
|
z-index: 1;
|
|
}
|
|
|
|
.time-tag {
|
|
position: absolute;
|
|
bottom: 8px;
|
|
right: 8px;
|
|
background: rgba(0,0,0,0.85);
|
|
color: #fff;
|
|
padding: 3px 7px;
|
|
border-radius: 4px;
|
|
font-weight: bold;
|
|
font-size: 10px;
|
|
pointer-events: none;
|
|
z-index: 5;
|
|
border: 1px solid rgba(255,255,255,0.1);
|
|
}
|
|
|
|
.index-tag {
|
|
position: absolute;
|
|
bottom: 8px;
|
|
left: 8px;
|
|
background: rgba(0,0,0,0.85);
|
|
color: rgba(255,255,255,0.95);
|
|
padding: 3px 7px;
|
|
border-radius: 4px;
|
|
font-weight: bold;
|
|
font-size: 10px;
|
|
pointer-events: none;
|
|
z-index: 5;
|
|
border: 1px solid rgba(255,255,255,0.2);
|
|
}
|
|
|
|
.video-badge {
|
|
position: absolute;
|
|
top: 8px;
|
|
left: 8px;
|
|
background: rgba(90, 40, 160, 0.9);
|
|
color: #fff;
|
|
padding: 3px 7px;
|
|
border-radius: 4px;
|
|
font-weight: bold;
|
|
font-size: 10px;
|
|
pointer-events: none;
|
|
z-index: 5;
|
|
border: 1px solid rgba(255, 255, 255, 0.2);
|
|
text-shadow: 0 0 4px rgba(0,0,0,0.8);
|
|
}
|
|
|
|
.preview-badge {
|
|
position: absolute;
|
|
bottom: 8px;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
background: rgba(160, 110, 20, 0.92);
|
|
color: #fff;
|
|
padding: 3px 7px;
|
|
border-radius: 4px;
|
|
font-weight: bold;
|
|
font-size: 10px;
|
|
white-space: nowrap;
|
|
pointer-events: none;
|
|
z-index: 5;
|
|
border: 1px solid rgba(255, 255, 255, 0.2);
|
|
text-shadow: 0 0 4px rgba(0,0,0,0.8);
|
|
}
|
|
|
|
#full-pass-btn:disabled { opacity: 0.45; cursor: not-allowed; }
|
|
|
|
.card video {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
display: block;
|
|
cursor: pointer;
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
}
|
|
|
|
.label-overlay {
|
|
position: absolute;
|
|
top: 6px;
|
|
left: 6px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
gap: 2px;
|
|
pointer-events: none;
|
|
z-index: 4;
|
|
}
|
|
|
|
.label-tag {
|
|
background: rgba(0, 40, 80, 0.6);
|
|
color: #fff;
|
|
padding: 2px 6px;
|
|
border-radius: 3px;
|
|
font-size: var(--label-font-size, 9px);
|
|
font-weight: bold;
|
|
font-family: monospace;
|
|
white-space: nowrap;
|
|
max-width: 95%;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
text-shadow: 0 1px 2px rgba(0,0,0,0.7);
|
|
line-height: 1.3;
|
|
}
|
|
|
|
.label-tag.label-model { background: rgba(80, 20, 100, 0.6); }
|
|
.label-tag.label-lora { background: rgba(90, 60, 10, 0.6); }
|
|
.label-tag.label-prompt { background: rgba(15, 70, 50, 0.6); }
|
|
.label-tag.label-sampler { background: rgba(20, 55, 100, 0.6); }
|
|
.label-tag.label-scheduler { background: rgba(20, 55, 100, 0.6); }
|
|
.label-tag.label-cfg { background: rgba(90, 30, 30, 0.6); }
|
|
.label-tag.label-steps { background: rgba(90, 30, 30, 0.6); }
|
|
.label-tag.label-seed { background: rgba(40, 40, 40, 0.6); }
|
|
.label-tag.label-denoise { background: rgba(0, 70, 60, 0.6); }
|
|
.label-tag.label-metric { background: rgba(30, 60, 100, 0.6); }
|
|
.label-tag.label-wf { background: rgba(70, 40, 110, 0.6); }
|
|
.label-tag.label-upscale { background: rgba(90, 30, 55, 0.6); }
|
|
.label-tag.label-hiresPrompt { background: rgba(70, 30, 90, 0.6); }
|
|
|
|
.favorite-btn {
|
|
position: absolute;
|
|
top: 8px;
|
|
right: 8px;
|
|
background: rgba(0, 0, 0, 0.85);
|
|
color: #fff;
|
|
border: 2px solid #fff;
|
|
width: 28px;
|
|
height: 28px;
|
|
border-radius: 4px;
|
|
font-size: 16px;
|
|
cursor: pointer;
|
|
opacity: 0;
|
|
transition: opacity 0.2s, background 0.2s;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
z-index: 10;
|
|
line-height: 1;
|
|
}
|
|
|
|
.favorite-btn.favorited {
|
|
background: #ffd700;
|
|
color: #000;
|
|
border-color: #ffd700;
|
|
opacity: 1;
|
|
}
|
|
|
|
.revise-btn {
|
|
position: absolute;
|
|
top: 50px;
|
|
right: 8px;
|
|
background: var(--accent);
|
|
color: #000;
|
|
border: none;
|
|
padding: 2px 2px;
|
|
border-radius: 4px;
|
|
font-weight: bold;
|
|
font-size: 10px;
|
|
cursor: pointer;
|
|
opacity: 0;
|
|
transition: opacity 0.2s;
|
|
z-index: 10;
|
|
}
|
|
|
|
.upscale-btn {
|
|
position: absolute;
|
|
top: 78px;
|
|
right: 8px;
|
|
background: rgba(100, 50, 200, 0.85);
|
|
color: #fff;
|
|
border: 2px solid #a070e0;
|
|
width: 28px;
|
|
height: 28px;
|
|
border-radius: 4px;
|
|
font-size: 14px;
|
|
cursor: pointer;
|
|
opacity: 0;
|
|
transition: opacity 0.2s;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
z-index: 10;
|
|
}
|
|
.upscale-btn:hover {
|
|
background: rgba(130, 70, 230, 0.95);
|
|
}
|
|
|
|
.reject-btn {
|
|
position: absolute;
|
|
top: 8px;
|
|
left: 8px;
|
|
background: var(--danger);
|
|
color: #fff;
|
|
border: none;
|
|
width: 22px;
|
|
height: 22px;
|
|
border-radius: 50%;
|
|
font-weight: bold;
|
|
font-size: 13px;
|
|
cursor: pointer;
|
|
opacity: 0;
|
|
transition: opacity 0.2s;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
z-index: 10;
|
|
}
|
|
|
|
.card:hover .revise-btn,
|
|
.card:hover .reject-btn,
|
|
.card:hover .favorite-btn,
|
|
.card:hover .upscale-btn,
|
|
.card:active .revise-btn,
|
|
.card:active .reject-btn,
|
|
.card:active .favorite-btn,
|
|
.card:active .upscale-btn {
|
|
opacity: 1;
|
|
}
|
|
|
|
@media (hover: none) and (pointer: coarse) {
|
|
.revise-btn,
|
|
.reject-btn,
|
|
.favorite-btn,
|
|
.upscale-btn {
|
|
opacity: 0.7;
|
|
}
|
|
|
|
.card:active .revise-btn,
|
|
.card:active .reject-btn,
|
|
.card:active .favorite-btn,
|
|
.card:active .upscale-btn {
|
|
opacity: 1;
|
|
}
|
|
|
|
.reject-btn {
|
|
width: 44px;
|
|
height: 44px;
|
|
font-size: 18px;
|
|
}
|
|
|
|
.favorite-btn {
|
|
width: 44px;
|
|
height: 44px;
|
|
font-size: 22px;
|
|
}
|
|
|
|
.upscale-btn {
|
|
width: 44px;
|
|
height: 44px;
|
|
font-size: 18px;
|
|
top: 110px;
|
|
}
|
|
|
|
.revise-btn {
|
|
min-height: 44px;
|
|
padding: 0 12px;
|
|
font-size: 11px;
|
|
top: 58px;
|
|
}
|
|
}
|
|
|
|
.info {
|
|
padding: 12px;
|
|
font-size: 10px;
|
|
line-height: 1.5;
|
|
color: #ccc;
|
|
}
|
|
|
|
.stat {
|
|
justify-content: space-between;
|
|
border-bottom: 1px solid #222;
|
|
padding: 3px 0;
|
|
}
|
|
|
|
.stat:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.stat b {
|
|
color: #888;
|
|
font-weight: 600;
|
|
margin-right: 5px;
|
|
}
|
|
|
|
.stat span {
|
|
text-align: left;
|
|
color: #eee;
|
|
}
|
|
|
|
/* JSON BARS - HORIZONTAL LAYOUT */
|
|
.json-container {
|
|
display: flex;
|
|
flex-direction: column;
|
|
z-index: 20;
|
|
position: relative;
|
|
background: var(--bg);
|
|
min-height: 25px;
|
|
border-top: 1px solid #333;
|
|
}
|
|
|
|
/* Button row at top */
|
|
.json-container > .json-view-btn {
|
|
display: inline-block;
|
|
}
|
|
|
|
.json-view-btn {
|
|
flex: 1;
|
|
background: #1a1a1a;
|
|
color: #999;
|
|
border: 1px solid #333;
|
|
border-bottom: none;
|
|
padding: 8px 12px;
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
text-align: center;
|
|
font-family: 'Segoe UI', sans-serif;
|
|
}
|
|
|
|
.json-view-btn:hover {
|
|
background: #252525;
|
|
color: var(--accent);
|
|
border-color: var(--accent);
|
|
}
|
|
|
|
.json-view-btn:active {
|
|
background: #2a2a2a;
|
|
transform: scale(0.98);
|
|
}
|
|
|
|
#json-btn-good:hover {
|
|
color: #6a9955;
|
|
border-color: #6a9955;
|
|
}
|
|
|
|
#json-btn-favorite:hover {
|
|
color: #ffd700;
|
|
border-color: #ffd700;
|
|
}
|
|
|
|
#json-btn-bad:hover {
|
|
color: #ff6b6b;
|
|
border-color: #ff6b6b;
|
|
}
|
|
|
|
.json-bar {
|
|
flex: 1;
|
|
padding: 10px;
|
|
font-family: 'Consolas', monospace;
|
|
font-size: 11px;
|
|
overflow: auto;
|
|
white-space: pre-wrap;
|
|
cursor: text;
|
|
border-top: 1px solid #333;
|
|
margin-top: -1px;
|
|
max-height: 300px;
|
|
}
|
|
|
|
.json-bar:last-child {
|
|
border-right: none;
|
|
}
|
|
|
|
#json-bar-good {
|
|
background: #080808;
|
|
color: #6a9955;
|
|
}
|
|
|
|
#json-bar-favorite {
|
|
background: #1a1200;
|
|
color: #ffd700;
|
|
}
|
|
|
|
#json-bar-bad {
|
|
background: #150505;
|
|
color: #ff6b6b;
|
|
}
|
|
|
|
/* MODAL */
|
|
#modal {
|
|
display: none;
|
|
flex-direction: column;
|
|
position: fixed;
|
|
inset: 0;
|
|
background: rgba(0,0,0,0.95);
|
|
z-index: 1000;
|
|
padding: 20px;
|
|
}
|
|
|
|
.modal-close-x {
|
|
position: absolute;
|
|
top: 12px;
|
|
right: 16px;
|
|
background: #cc3333;
|
|
color: white;
|
|
border: none;
|
|
border-radius: 4px;
|
|
width: 32px;
|
|
height: 32px;
|
|
font-size: 20px;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
z-index: 1001;
|
|
line-height: 1;
|
|
}
|
|
|
|
.modal-close-x:hover {
|
|
background: #ee4444;
|
|
}
|
|
|
|
.modal-main {
|
|
display: flex;
|
|
gap: 20px;
|
|
height: 60%;
|
|
width: 100%;
|
|
min-height: 0;
|
|
}
|
|
|
|
.preview {
|
|
flex: 2;
|
|
display: flex;
|
|
justify-content: center;
|
|
background: #000;
|
|
border-radius: 8px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.preview img {
|
|
height: 100%;
|
|
width: auto;
|
|
object-fit: contain;
|
|
}
|
|
|
|
.controls {
|
|
flex: 1;
|
|
background: #111;
|
|
padding: 20px;
|
|
border-radius: 8px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.field {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
}
|
|
|
|
.field label {
|
|
color: #888;
|
|
font-size: 10px;
|
|
font-weight: bold;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.field input {
|
|
background: #000;
|
|
border: 1px solid #333;
|
|
color: #fff;
|
|
padding: 8px;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.reel-wrap {
|
|
margin-top: 20px;
|
|
height: 30%;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 5px;
|
|
}
|
|
|
|
.reel {
|
|
display: flex;
|
|
gap: 10px;
|
|
overflow-x: auto;
|
|
padding-bottom: 10px;
|
|
height: 100%;
|
|
align-items: center;
|
|
}
|
|
|
|
.reel img {
|
|
height: 90%;
|
|
border-radius: 6px;
|
|
cursor: pointer;
|
|
border: 2px solid transparent;
|
|
transition: transform 0.2s, border-color 0.2s;
|
|
}
|
|
|
|
.reel img:hover {
|
|
transform: scale(1.05);
|
|
border-color: var(--accent);
|
|
}
|
|
|
|
|
|
.sort-select {
|
|
background: #1a1a1a;
|
|
color: #ccc;
|
|
border: 1px solid #333;
|
|
padding: 1px 1px;
|
|
font-size: 10px;
|
|
border-radius: 3px;
|
|
cursor: pointer;
|
|
font-weight: 600;
|
|
width: 70px;
|
|
}
|
|
|
|
.sort-select option {
|
|
font-size: 13px;
|
|
padding: 1px;
|
|
}
|
|
|
|
.sort-select:focus {
|
|
border-color: var(--accent);
|
|
outline: none;
|
|
}
|
|
|
|
.sort-select:hover {
|
|
background: #2a2a2a;
|
|
}
|
|
|
|
@media (max-width: 800px) {
|
|
.modal-main {
|
|
flex-direction: column;
|
|
height: auto;
|
|
}
|
|
.preview {
|
|
height: 300px;
|
|
flex: none;
|
|
}
|
|
|
|
.filters-popup {
|
|
width: 95%;
|
|
max-height: 90vh;
|
|
}
|
|
|
|
.filter-row {
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
|
|
.filter-row .filter-label {
|
|
min-width: auto;
|
|
}
|
|
}
|
|
/* MOBILE NAVIGATION BUTTONS */
|
|
.mobile-nav-btn {
|
|
display: none; /* Hidden by default */
|
|
position: fixed;
|
|
bottom: 80px; /* Above the JSON bars */
|
|
width: 100px;
|
|
height: 100px;
|
|
border-radius: 50%;
|
|
background: rgba(0, 209, 178, 0.9);
|
|
color: #000;
|
|
border: 2px solid #00d1b2;
|
|
font-size: 24px;
|
|
font-weight: bold;
|
|
cursor: pointer;
|
|
z-index: 500;
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
|
|
transition: all 0.2s;
|
|
-webkit-tap-highlight-color: transparent;
|
|
user-select: none;
|
|
}
|
|
|
|
.mobile-nav-btn:active {
|
|
transform: scale(0.95);
|
|
background: rgba(0, 209, 178, 1);
|
|
}
|
|
|
|
.mobile-nav-up {
|
|
left: 16px;
|
|
}
|
|
|
|
.mobile-nav-down {
|
|
right: 16px;
|
|
}
|
|
|
|
/* Show mobile nav buttons only on touch devices */
|
|
@media (hover: none) and (pointer: coarse) {
|
|
.mobile-nav-btn {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
}
|
|
.error-alert-overlay {
|
|
position: fixed;
|
|
inset: 0;
|
|
background: rgba(0, 0, 0, 0.8);
|
|
z-index: 10000;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
animation: fadeIn 0.15s ease;
|
|
}
|
|
|
|
.error-alert-popup {
|
|
background: #2a2a2a;
|
|
border: 2px solid #f44;
|
|
border-radius: 8px;
|
|
padding: 20px;
|
|
max-width: 420px;
|
|
margin: 16px;
|
|
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
|
|
}
|
|
|
|
.error-alert-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.error-alert-icon {
|
|
font-size: 28px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.error-alert-header h3 {
|
|
margin: 0;
|
|
color: #f44;
|
|
font-size: 18px;
|
|
}
|
|
|
|
.error-alert-message {
|
|
color: #ddd;
|
|
margin: 0 0 12px;
|
|
font-size: 14px;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.error-alert-details {
|
|
margin-bottom: 16px;
|
|
background: rgba(0, 0, 0, 0.3);
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.error-alert-details summary {
|
|
padding: 8px 12px;
|
|
cursor: pointer;
|
|
color: #999;
|
|
font-size: 12px;
|
|
user-select: none;
|
|
}
|
|
|
|
.error-alert-details summary:hover {
|
|
background: rgba(255, 255, 255, 0.05);
|
|
}
|
|
|
|
.error-alert-details pre {
|
|
margin: 0;
|
|
padding: 12px;
|
|
color: #f88;
|
|
font-size: 11px;
|
|
font-family: monospace;
|
|
line-height: 1.4;
|
|
overflow-x: auto;
|
|
border-top: 1px solid rgba(255, 68, 68, 0.2);
|
|
}
|
|
|
|
.error-alert-button {
|
|
width: 100%;
|
|
padding: 10px 20px;
|
|
border: none;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
background: #f44;
|
|
color: #fff;
|
|
transition: background 0.15s ease;
|
|
}
|
|
|
|
.error-alert-button:hover {
|
|
background: #f55;
|
|
}
|
|
|
|
.error-alert-button:active {
|
|
background: #e33;
|
|
}
|
|
|
|
@keyframes fadeIn {
|
|
from { opacity: 0; }
|
|
}
|
|
/* Search Filter Section */
|
|
.search-filter-container {
|
|
margin-top: 12px;
|
|
}
|
|
|
|
.search-filter-row {
|
|
display: flex;
|
|
gap: 8px;
|
|
align-items: center;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.search-filter-select {
|
|
background: #1a1a1a;
|
|
border: 1px solid #333;
|
|
color: #ccc;
|
|
padding: 6px 10px;
|
|
border-radius: 4px;
|
|
font-size: 11px;
|
|
min-width: 150px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.search-filter-select:focus {
|
|
border-color: var(--accent);
|
|
outline: none;
|
|
}
|
|
|
|
.search-filter-input {
|
|
flex: 1;
|
|
background: #1a1a1a;
|
|
border: 1px solid #333;
|
|
color: #ccc;
|
|
padding: 6px 10px;
|
|
border-radius: 4px;
|
|
font-size: 11px;
|
|
}
|
|
|
|
.search-filter-input:focus {
|
|
border-color: var(--accent);
|
|
outline: none;
|
|
}
|
|
|
|
.search-filter-add-btn {
|
|
background: var(--accent);
|
|
color: #000;
|
|
border: none;
|
|
padding: 6px 16px;
|
|
border-radius: 4px;
|
|
font-size: 10px;
|
|
font-weight: 700;
|
|
cursor: pointer;
|
|
transition: 0.2s;
|
|
}
|
|
|
|
.search-filter-add-btn:hover {
|
|
background: #00f0c8;
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.search-filter-add-btn:active {
|
|
transform: translateY(0);
|
|
}
|
|
|
|
.active-search-filters {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 6px;
|
|
min-height: 24px;
|
|
}
|
|
|
|
.search-filter-tag {
|
|
background: #1a1a1a;
|
|
border: 1px solid #444;
|
|
border-radius: 4px;
|
|
padding: 4px 8px;
|
|
font-size: 10px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
color: #ccc;
|
|
}
|
|
|
|
.search-filter-tag .filter-type {
|
|
font-weight: 700;
|
|
padding: 2px 6px;
|
|
border-radius: 3px;
|
|
font-size: 9px;
|
|
}
|
|
|
|
.search-filter-tag .filter-type.model {
|
|
background: var(--accent-model);
|
|
color: #fff;
|
|
}
|
|
|
|
.search-filter-tag .filter-type.positive {
|
|
background: var(--accent-positive);
|
|
color: #fff;
|
|
}
|
|
|
|
.search-filter-tag .filter-type.negative {
|
|
background: var(--accent-negative);
|
|
color: #fff;
|
|
}
|
|
|
|
.search-filter-tag .filter-type.sampler {
|
|
background: var(--accent);
|
|
color: #000;
|
|
}
|
|
|
|
.search-filter-tag .filter-type.scheduler {
|
|
background: var(--accent-sch);
|
|
color: #000;
|
|
}
|
|
|
|
.search-filter-tag .filter-type.lora {
|
|
background: var(--accent-lora);
|
|
color: #000;
|
|
}
|
|
|
|
.search-filter-tag .filter-term {
|
|
color: #fff;
|
|
max-width: 200px;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.search-filter-tag .remove-btn {
|
|
background: none;
|
|
border: none;
|
|
color: #ff3860;
|
|
cursor: pointer;
|
|
padding: 0;
|
|
font-size: 14px;
|
|
line-height: 1;
|
|
font-weight: 700;
|
|
transition: 0.2s;
|
|
}
|
|
|
|
.search-filter-tag .remove-btn:hover {
|
|
color: #ff5c7c;
|
|
transform: scale(1.2);
|
|
}
|
|
#header {
|
|
background: #111;
|
|
border-bottom: 1px solid #333;
|
|
padding: 0 6px;
|
|
height: 36px;
|
|
display: flex;
|
|
gap: 4px;
|
|
font-size: 10px;
|
|
align-items: center;
|
|
flex-wrap: nowrap;
|
|
overflow: visible; /* CHANGED: was 'hidden' */
|
|
z-index: 100;
|
|
box-shadow: 0 2px 10px rgba(0,0,0,0.5);
|
|
}
|
|
/* --- SETTINGS PANEL (Cog Menu) --- */
|
|
.cog-menu-panel {
|
|
position: fixed;
|
|
top: 40px;
|
|
right: 10px;
|
|
background: #111;
|
|
border: 1px solid #333;
|
|
border-radius: 8px;
|
|
width: 340px;
|
|
max-height: calc(100vh - 60px);
|
|
overflow-y: auto;
|
|
z-index: 1001;
|
|
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
|
|
}
|
|
|
|
.cog-panel-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 10px 14px;
|
|
border-bottom: 1px solid #333;
|
|
background: #0a0a0a;
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 10;
|
|
border-radius: 8px 8px 0 0;
|
|
}
|
|
|
|
.cog-panel-content {
|
|
padding: 12px 14px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0;
|
|
}
|
|
|
|
.cog-panel-section {
|
|
padding: 12px 0;
|
|
border-bottom: 1px solid #333;
|
|
}
|
|
|
|
.cog-panel-section:first-child {
|
|
padding-top: 0;
|
|
}
|
|
|
|
.cog-panel-section:last-child {
|
|
border-bottom: none;
|
|
padding-bottom: 0;
|
|
}
|
|
|
|
.cog-panel-section-title {
|
|
font-size: 10px;
|
|
font-weight: 700;
|
|
color: #666;
|
|
text-transform: uppercase;
|
|
margin-bottom: 10px;
|
|
letter-spacing: 0.5px;
|
|
}
|
|
|
|
@media (max-width: 800px) {
|
|
.cog-menu-panel {
|
|
width: 90%;
|
|
right: 5%;
|
|
left: 5%;
|
|
}
|
|
}
|
|
|
|
.cog-menu-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 2px 0;
|
|
}
|
|
|
|
.cog-menu-item .meta-label {
|
|
min-width: 38px;
|
|
}
|
|
|
|
.cog-menu-item input {
|
|
background: #1a1a1a;
|
|
border: 1px solid #333;
|
|
color: #ccc;
|
|
padding: 0 4px;
|
|
border-radius: 3px;
|
|
height: 22px;
|
|
font-size: 10px;
|
|
text-align: center;
|
|
flex: 1;
|
|
}
|
|
|
|
.cog-menu-item input:focus {
|
|
border-color: var(--accent);
|
|
outline: none;
|
|
}
|
|
|
|
/* --- SORT POPUP STYLES --- */
|
|
.sort-container {
|
|
position: relative;
|
|
display: inline-block;
|
|
}
|
|
|
|
.sort-btn {
|
|
background: #1a1a1a;
|
|
color: #ccc;
|
|
border: 1px solid #333;
|
|
padding: 2px 10px;
|
|
height: 22px;
|
|
font-size: 10px;
|
|
border-radius: 3px;
|
|
cursor: pointer;
|
|
font-weight: 600;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.sort-btn:hover, .sort-btn.active {
|
|
background: #2a2a2a;
|
|
border-color: var(--accent);
|
|
color: #fff;
|
|
}
|
|
|
|
.sort-popup-panel {
|
|
position: absolute;
|
|
top: 100%;
|
|
right: 0; /* Align to right edge of the button */
|
|
/* left: 0; REMOVED to prevent overflow */
|
|
background: #111;
|
|
border: 1px solid #444;
|
|
border-radius: 4px;
|
|
z-index: 2000;
|
|
display: flex;
|
|
box-shadow: 0 4px 15px rgba(0,0,0,0.8);
|
|
min-width: 280px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.sort-col {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
border-right: 1px solid #333;
|
|
}
|
|
|
|
.sort-col:last-child {
|
|
border-right: none;
|
|
}
|
|
|
|
.sort-col-header {
|
|
background: #0a0a0a;
|
|
padding: 6px 10px;
|
|
font-size: 9px;
|
|
font-weight: 700;
|
|
color: #666;
|
|
text-transform: uppercase;
|
|
border-bottom: 1px solid #333;
|
|
letter-spacing: 0.5px;
|
|
text-align: center;
|
|
}
|
|
|
|
.sort-option {
|
|
padding: 6px 12px;
|
|
font-size: 11px;
|
|
color: #aaa;
|
|
cursor: pointer;
|
|
transition: background 0.1s;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
|
|
.sort-option:hover {
|
|
background: #222;
|
|
color: #fff;
|
|
}
|
|
|
|
.sort-option.selected {
|
|
background: rgba(0, 209, 178, 0.15); /* Tint of accent */
|
|
color: var(--accent);
|
|
font-weight: 700;
|
|
}
|
|
|
|
.sort-option.secondary-selected {
|
|
background: rgba(62, 142, 208, 0.15); /* Tint of accent-sch */
|
|
color: var(--accent-sch);
|
|
font-weight: 700;
|
|
}
|
|
|
|
/* Tiny indicator dot for selected items */
|
|
.sort-option.selected::after {
|
|
content: '●';
|
|
font-size: 8px;
|
|
}
|
|
|
|
/* ========================================
|
|
TOP-LEVEL FILTER BUTTONS STYLING
|
|
Add this to your report.css file
|
|
======================================== */
|
|
|
|
/* Top-level filter buttons with color transitions */
|
|
.top-filter-btn {
|
|
flex: 1;
|
|
transition: all 0.2s ease;
|
|
color: #ffffff;
|
|
font-weight: 900;
|
|
}
|
|
|
|
/* Favorites Button */
|
|
#top-filter-favorites {
|
|
background: #663300;
|
|
border: 2px solid #663300;
|
|
}
|
|
|
|
#top-filter-favorites.active {
|
|
background: #ff9500;
|
|
border: 2px solid #d37b00;
|
|
}
|
|
|
|
/* Non-Favorited Button */
|
|
#top-filter-nonfavorited {
|
|
background: #1a3d66;
|
|
border: 2px solid #1a3d66;
|
|
}
|
|
|
|
#top-filter-nonfavorited.active {
|
|
background: #4a9eff;
|
|
border: 2px solid #295e9b;
|
|
}
|
|
|
|
/* Rejected Button */
|
|
#top-filter-rejected {
|
|
background: #222;
|
|
border: 2px solid #444;
|
|
}
|
|
|
|
#top-filter-rejected.active {
|
|
background: #666;
|
|
border: 2px solid #750000;
|
|
}
|
|
|
|
/* ============================================================
|
|
ANALYTICS MODAL
|
|
============================================================ */
|
|
|
|
.analytics-modal-overlay {
|
|
position: fixed;
|
|
inset: 0;
|
|
background: rgba(0, 0, 0, 0.82);
|
|
z-index: 10001;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
animation: fadeIn 0.15s ease;
|
|
}
|
|
|
|
.analytics-modal-popup {
|
|
background: #111;
|
|
border: 1px solid #333;
|
|
border-radius: 8px;
|
|
width: 96vw;
|
|
max-width: none;
|
|
height: 94vh;
|
|
max-height: 94vh;
|
|
display: flex;
|
|
flex-direction: column;
|
|
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.analytics-modal-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 12px 16px;
|
|
border-bottom: 2px solid #333;
|
|
background: #0a0a0a;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.analytics-modal-title {
|
|
font-size: 13px;
|
|
font-weight: 700;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
}
|
|
|
|
.analytics-summary {
|
|
display: flex;
|
|
gap: 10px;
|
|
align-items: center;
|
|
padding: 8px 16px;
|
|
font-size: 10px;
|
|
color: #888;
|
|
background: #0d0d0d;
|
|
border-bottom: 1px solid #222;
|
|
flex-shrink: 0;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.analytics-modal-body {
|
|
overflow-y: auto;
|
|
flex: 1;
|
|
padding: 0;
|
|
}
|
|
|
|
.analytics-table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
font-size: 11px;
|
|
}
|
|
|
|
.analytics-th {
|
|
background: #0a0a0a;
|
|
color: #666;
|
|
font-size: 9px;
|
|
font-weight: 700;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
padding: 8px 12px;
|
|
border-bottom: 1px solid #333;
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 5;
|
|
text-align: left;
|
|
}
|
|
|
|
.analytics-row {
|
|
border-bottom: 1px solid #1a1a1a;
|
|
transition: background 0.1s;
|
|
}
|
|
|
|
.analytics-row:hover {
|
|
background: #1a1a1a;
|
|
}
|
|
|
|
.analytics-rank {
|
|
padding: 6px 12px;
|
|
color: #555;
|
|
font-size: 10px;
|
|
width: 32px;
|
|
text-align: right;
|
|
}
|
|
|
|
.analytics-count {
|
|
padding: 6px 12px;
|
|
font-weight: 700;
|
|
font-size: 12px;
|
|
width: 140px;
|
|
text-align: right;
|
|
font-family: 'Consolas', monospace;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.analytics-name {
|
|
padding: 6px 12px;
|
|
color: #ddd;
|
|
word-break: break-all;
|
|
font-family: 'Consolas', monospace;
|
|
font-size: 10px;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
@media (max-width: 800px) {
|
|
.analytics-modal-popup {
|
|
width: 98vw;
|
|
height: 96vh;
|
|
max-height: 96vh;
|
|
}
|
|
.analytics-count {
|
|
font-size: 11px;
|
|
}
|
|
}
|
|
|
|
/* ===================================================================
|
|
|
|
TOUCH / PHONE LAYOUT
|
|
Scoped to a coarse pointer, or to the standalone page (body.uscg-standalone)
|
|
at phone width. Never width alone: node iframes are narrow too and must look
|
|
exactly as before.
|
|
========================================================================== */
|
|
#modal-action-bar { display: none; }
|
|
|
|
@media (hover: none) and (pointer: coarse) {
|
|
/* header */
|
|
#header { height: 44px; }
|
|
#header .fs-btn,
|
|
#header .action-btn,
|
|
.filter-popup-btn { min-width: 40px; min-height: 40px; }
|
|
.cog-menu-panel { top: 48px; }
|
|
|
|
/* lightbox */
|
|
.modal-close-x { width: 44px; height: 44px; }
|
|
.modal-nav-btn { min-width: 44px; min-height: 44px; }
|
|
.modal-kbd-hint { display: none; }
|
|
.controls .action-btn,
|
|
.controls .modal-action-btn { min-height: 44px; }
|
|
|
|
#modal-action-bar {
|
|
display: flex;
|
|
position: sticky;
|
|
bottom: 0;
|
|
gap: 6px;
|
|
padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
|
|
background: rgba(0, 0, 0, 0.9);
|
|
border-top: 1px solid #333;
|
|
z-index: 1002;
|
|
flex-shrink: 0;
|
|
}
|
|
#modal-action-bar button {
|
|
flex: 1;
|
|
min-height: 48px;
|
|
font-size: 18px;
|
|
background: #222;
|
|
color: #eee;
|
|
border: 1px solid #444;
|
|
border-radius: 6px;
|
|
cursor: pointer;
|
|
padding: 0 4px;
|
|
}
|
|
/* phone lightbox: stacked layout (preview on top, form below, bar pinned) */
|
|
#modal { padding: 8px 8px 0; overflow-y: auto; overscroll-behavior: contain; } /* the sticky action bar is the last child */
|
|
#modal .modal-close-x { position: fixed; }
|
|
#modal .modal-main { flex: 0 0 auto; flex-direction: column; height: auto; gap: 10px; }
|
|
#modal .preview { flex: none; height: auto; flex-direction: column; align-items: center; min-height: 160px; }
|
|
#modal .preview img, #modal .preview video { width: auto; height: auto; max-width: 100%; max-height: 60vh; max-height: 60svh; }
|
|
#modal .controls { flex: none; overflow: visible; padding: 12px; scroll-margin-top: 8px; }
|
|
#modal .controls input, #modal .controls textarea { font-size: 16px !important; min-height: 40px; box-sizing: border-box; width: 100%; }
|
|
#modal .reel-wrap { flex-shrink: 0; }
|
|
#modal-action-bar { gap: 4px; padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); }
|
|
#modal-action-bar button { min-width: 0; display: flex; flex-direction: column; align-items: center;
|
|
justify-content: center; gap: 2px; padding: 4px 2px; font-size: 18px; line-height: 1; }
|
|
#modal-action-bar .mab-lbl { font-size: 10px; white-space: nowrap; }
|
|
#modal-action-bar button.favorited { color: #e0c040; border-color: #e0c040; }
|
|
/* phone session picker + settings panel */
|
|
.cog-menu-panel { left: 0; right: 0; width: auto; max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); border-radius: 0 0 8px 8px; }
|
|
#session-picker-list { max-height: 45vh !important; overscroll-behavior: contain; }
|
|
.session-picker-row { padding: 12px 10px !important; font-size: 14px !important; line-height: 1.35; }
|
|
.session-picker-row > span:last-child { display: block; font-size: 11px !important; }
|
|
.session-picker-row button { font-size: 12px !important; padding: 6px 10px !important; min-height: 32px; }
|
|
#session-search, #session-input { font-size: 16px !important; padding: 8px !important; }
|
|
}
|
|
|
|
@media (max-width: 600px) {
|
|
body.uscg-standalone #modal-action-bar {
|
|
display: flex;
|
|
position: sticky;
|
|
bottom: 0;
|
|
gap: 6px;
|
|
padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
|
|
background: rgba(0, 0, 0, 0.9);
|
|
border-top: 1px solid #333;
|
|
z-index: 1002;
|
|
flex-shrink: 0;
|
|
}
|
|
body.uscg-standalone #modal-action-bar button {
|
|
flex: 1;
|
|
min-height: 48px;
|
|
font-size: 18px;
|
|
background: #222;
|
|
color: #eee;
|
|
border: 1px solid #444;
|
|
border-radius: 6px;
|
|
cursor: pointer;
|
|
padding: 0 4px;
|
|
}
|
|
/* phone lightbox: stacked layout (same rules as the coarse block) */
|
|
body.uscg-standalone #modal { padding: 8px 8px 0; overflow-y: auto; overscroll-behavior: contain; } /* the sticky action bar is the last child */
|
|
body.uscg-standalone #modal .modal-close-x { position: fixed; }
|
|
body.uscg-standalone #modal .modal-main { flex: 0 0 auto; flex-direction: column; height: auto; gap: 10px; }
|
|
body.uscg-standalone #modal .preview { flex: none; height: auto; flex-direction: column; align-items: center; min-height: 160px; }
|
|
body.uscg-standalone #modal .preview img, #modal .preview video { width: auto; height: auto; max-width: 100%; max-height: 60vh; max-height: 60svh; }
|
|
body.uscg-standalone #modal .controls { flex: none; overflow: visible; padding: 12px; scroll-margin-top: 8px; }
|
|
body.uscg-standalone #modal .controls input, body.uscg-standalone #modal .controls textarea { font-size: 16px !important; min-height: 40px; box-sizing: border-box; width: 100%; }
|
|
body.uscg-standalone #modal .reel-wrap { flex-shrink: 0; }
|
|
body.uscg-standalone #modal-action-bar { gap: 4px; padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); }
|
|
body.uscg-standalone #modal-action-bar button { min-width: 0; display: flex; flex-direction: column; align-items: center;
|
|
justify-content: center; gap: 2px; padding: 4px 2px; font-size: 18px; line-height: 1; }
|
|
body.uscg-standalone #modal-action-bar .mab-lbl { font-size: 10px; white-space: nowrap; }
|
|
body.uscg-standalone #modal-action-bar button.favorited { color: #e0c040; border-color: #e0c040; }
|
|
/* phone session picker + settings panel */
|
|
body.uscg-standalone .cog-menu-panel { left: 0; right: 0; width: auto; max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); border-radius: 0 0 8px 8px; }
|
|
body.uscg-standalone #session-picker-list { max-height: 45vh !important; overscroll-behavior: contain; }
|
|
body.uscg-standalone .session-picker-row { padding: 12px 10px !important; font-size: 14px !important; line-height: 1.35; }
|
|
body.uscg-standalone .session-picker-row > span:last-child { display: block; font-size: 11px !important; }
|
|
body.uscg-standalone .session-picker-row button { font-size: 12px !important; padding: 6px 10px !important; min-height: 32px; }
|
|
body.uscg-standalone #session-search, body.uscg-standalone #session-input { font-size: 16px !important; padding: 8px !important; }
|
|
|
|
body.uscg-standalone .session-card { width: calc(50% - 6px) !important; }
|
|
body.uscg-standalone #session-landing { padding: 16px 12px !important; }
|
|
}
|
|
/* ============================================================
|
|
PAIRWISE REVIEW (compare overlay + scoreboard)
|
|
============================================================ */
|
|
|
|
.cmp-setting-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
margin-bottom: 6px;
|
|
font-size: 10px;
|
|
color: #999;
|
|
}
|
|
.cmp-setting-row label { flex: 0 0 auto; user-select: none; }
|
|
.cmp-setting-row select {
|
|
flex: 1;
|
|
min-width: 0;
|
|
background: #1a1a1a;
|
|
color: #ddd;
|
|
border: 1px solid #444;
|
|
border-radius: 4px;
|
|
padding: 4px;
|
|
font-size: 11px;
|
|
}
|
|
|
|
#compare-overlay {
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: 9000;
|
|
background: #050505;
|
|
flex-direction: column;
|
|
user-select: none;
|
|
-webkit-user-select: none;
|
|
touch-action: manipulation;
|
|
}
|
|
|
|
#cmp-head {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 6px 10px;
|
|
background: #0a0a0a;
|
|
border-bottom: 1px solid #333;
|
|
flex-shrink: 0;
|
|
flex-wrap: wrap;
|
|
font-size: 11px;
|
|
color: #aaa;
|
|
}
|
|
#cmp-mode-label { font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 0.5px; }
|
|
#cmp-progress { color: #888; }
|
|
#cmp-repeat-badge {
|
|
background: #7a4a00;
|
|
color: #ffd27a;
|
|
border-radius: 3px;
|
|
padding: 1px 6px;
|
|
font-size: 10px;
|
|
}
|
|
.cmp-spacer { flex: 1; }
|
|
.cmp-head-btn {
|
|
background: #1a1a1a;
|
|
color: #ccc;
|
|
border: 1px solid #444;
|
|
border-radius: 4px;
|
|
padding: 6px 10px;
|
|
font-size: 11px;
|
|
cursor: pointer;
|
|
}
|
|
.cmp-head-btn:hover { border-color: var(--accent); color: var(--accent); }
|
|
.cmp-head-btn.active { background: #3a2f00; border-color: #e0c040; color: #e0c040; }
|
|
|
|
#cmp-panes {
|
|
flex: 1;
|
|
min-height: 0;
|
|
display: flex;
|
|
gap: 6px;
|
|
padding: 6px;
|
|
}
|
|
.cmp-pane {
|
|
flex: 1 1 50%;
|
|
min-width: 0;
|
|
min-height: 0;
|
|
position: relative;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: #0d0d0d;
|
|
border: 3px solid transparent;
|
|
border-radius: 6px;
|
|
cursor: pointer;
|
|
overflow: hidden;
|
|
}
|
|
.cmp-pane.cmp-winner { border-color: #2ecc71; }
|
|
.cmp-pane.cmp-tie { border-color: #888; }
|
|
.cmp-media { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
|
|
.cmp-media img, .cmp-media video {
|
|
max-width: 100%;
|
|
max-height: 100%;
|
|
object-fit: contain;
|
|
pointer-events: none;
|
|
}
|
|
.cmp-label {
|
|
position: absolute;
|
|
top: 8px;
|
|
left: 10px;
|
|
z-index: 2;
|
|
font-size: 18px;
|
|
font-weight: 800;
|
|
color: rgba(255, 255, 255, 0.55);
|
|
text-shadow: 0 1px 4px #000;
|
|
pointer-events: none;
|
|
}
|
|
.cmp-chips {
|
|
position: absolute;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
z-index: 2;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 4px;
|
|
padding: 8px;
|
|
background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
|
|
pointer-events: none;
|
|
}
|
|
.cmp-chips:empty { display: none; }
|
|
.cmp-chip {
|
|
background: rgba(0, 0, 0, 0.75);
|
|
border: 1px solid #555;
|
|
color: #fff;
|
|
border-radius: 3px;
|
|
padding: 2px 6px;
|
|
font-size: 11px;
|
|
font-family: monospace;
|
|
max-width: 100%;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
#cmp-empty {
|
|
position: absolute;
|
|
left: 0;
|
|
right: 0;
|
|
top: 48px;
|
|
bottom: 64px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
text-align: center;
|
|
padding: 24px;
|
|
color: #aaa;
|
|
font-size: 14px;
|
|
line-height: 1.6;
|
|
background: #050505;
|
|
z-index: 3;
|
|
}
|
|
|
|
#cmp-bar {
|
|
display: flex;
|
|
gap: 8px;
|
|
justify-content: center;
|
|
padding: 8px;
|
|
background: #0a0a0a;
|
|
border-top: 1px solid #333;
|
|
flex-shrink: 0;
|
|
flex-wrap: wrap;
|
|
}
|
|
.cmp-btn {
|
|
min-height: 44px;
|
|
min-width: 88px;
|
|
padding: 8px 16px;
|
|
background: #1c1c1c;
|
|
color: #eee;
|
|
border: 1px solid #555;
|
|
border-radius: 6px;
|
|
font-size: 13px;
|
|
font-weight: 700;
|
|
cursor: pointer;
|
|
}
|
|
.cmp-btn:hover { border-color: var(--accent); }
|
|
.cmp-btn:active { background: #2a2a2a; }
|
|
.cmp-btn-undo { background: #14202a; }
|
|
|
|
@media (max-aspect-ratio: 1/1) and (max-width: 700px) {
|
|
#cmp-panes { flex-direction: column; }
|
|
.cmp-pane { flex: 1 1 50%; }
|
|
.cmp-btn { min-width: 0; flex: 1; padding: 8px 6px; font-size: 12px; }
|
|
}
|
|
|
|
.label-tag.label-rating { background: rgba(110, 90, 0, 0.7); }
|
|
|
|
/* Scoreboard (reuses the analytics modal classes) */
|
|
.sb-axis { border-bottom: 1px solid #222; }
|
|
.sb-axis > summary {
|
|
cursor: pointer;
|
|
padding: 8px 14px;
|
|
font-size: 12px;
|
|
font-weight: 700;
|
|
color: #ddd;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
background: #0d0d0d;
|
|
}
|
|
.sb-axis > summary .sb-meta { color: #777; font-weight: 400; text-transform: none; margin-left: 8px; font-size: 10px; }
|
|
.sb-row-dim td { opacity: 0.45; }
|
|
.sb-row-best { background: rgba(0, 209, 178, 0.14); }
|
|
.sb-row-best td { color: #fff; }
|
|
.sb-num { text-align: right; font-family: 'Consolas', monospace; white-space: nowrap; padding: 5px 10px; }
|
|
.sb-val { padding: 5px 10px; color: #ddd; font-family: 'Consolas', monospace; font-size: 10px; word-break: break-all; }
|
|
.sb-link { color: var(--accent-sch); cursor: pointer; text-decoration: underline; font-size: 10px; padding: 5px 10px; white-space: nowrap; }
|
|
.sb-empty { padding: 10px 14px; color: #777; font-size: 11px; }
|
|
.sb-footer { padding: 8px 14px; font-size: 10px; color: #888; background: #0d0d0d; border-top: 1px solid #222; flex-shrink: 0; }
|
|
.sb-actions { display: flex; gap: 6px; padding: 8px 14px; flex-shrink: 0; border-top: 1px solid #222; background: #0a0a0a; }
|
|
.sb-actions button {
|
|
background: #1a1a1a; color: #ccc; border: 1px solid #444; border-radius: 4px; padding: 6px 12px; font-size: 11px; cursor: pointer;
|
|
}
|
|
.sb-actions button:hover { border-color: var(--accent); color: var(--accent); }
|
|
|
|
/* Compare on phones: the panes handle swipes themselves (nothing in them scrolls) */
|
|
#cmp-panes { touch-action: none; }
|
|
.cmp-pane.cmp-swipe-pick { border-color: var(--accent, #0af); }
|
|
.cmp-play {
|
|
position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
|
|
width: 64px; height: 64px; border-radius: 50%; border: 2px solid #fff;
|
|
background: rgba(0, 0, 0, 0.6); color: #fff; font-size: 26px; cursor: pointer;
|
|
pointer-events: auto; z-index: 3;
|
|
}
|
|
|
|
/* ============================================================
|
|
ANALYTICS PANEL (docked, non-modal Settings Stats)
|
|
============================================================ */
|
|
|
|
.ap-panel {
|
|
position: fixed;
|
|
top: 44px;
|
|
right: 10px;
|
|
width: min(680px, 96vw);
|
|
max-height: 75vh;
|
|
z-index: 450;
|
|
display: flex;
|
|
flex-direction: column;
|
|
background: #111;
|
|
border: 1px solid #333;
|
|
border-radius: 8px;
|
|
box-shadow: 0 8px 28px rgba(0, 0, 0, 0.6);
|
|
}
|
|
|
|
.ap-head {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 8px 12px;
|
|
border-bottom: 2px solid #3e8ed0;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.ap-title {
|
|
font-size: 12px;
|
|
font-weight: 700;
|
|
letter-spacing: 1px;
|
|
color: #3e8ed0;
|
|
margin-right: auto;
|
|
}
|
|
|
|
.ap-head select, .ap-head button {
|
|
background: #1a1a1a;
|
|
color: #ccc;
|
|
border: 1px solid #333;
|
|
border-radius: 4px;
|
|
font-size: 10px;
|
|
padding: 4px 8px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.ap-head button:hover { background: #262626; color: #fff; }
|
|
.ap-panel.ap-collapsed .ap-body,
|
|
.ap-panel.ap-collapsed #analytics-summary,
|
|
.ap-panel.ap-collapsed .ap-foot { display: none; }
|
|
.ap-body { overflow-y: auto; flex: 1; min-height: 0; }
|
|
.ap-table-wrap { overflow-x: auto; }
|
|
th.analytics-th.ap-sortable { cursor: pointer; user-select: none; white-space: nowrap; }
|
|
th.analytics-th.ap-sortable:hover { color: #aaa; }
|
|
.ap-foot { font-size: 10px; color: #777; padding: 6px 12px; border-top: 1px solid #222; flex-shrink: 0; }
|
|
.ap-foot div { margin-top: 2px; }
|
|
.ap-more { font-size: 10px; color: #777; padding: 4px 12px; }
|
|
|
|
@media (max-width: 800px) {
|
|
.ap-panel { right: 2vw; top: auto; bottom: 8px; max-height: 60vh; }
|
|
}
|