phase 2 rework

This commit is contained in:
admin_rb committed 2026-10-23 18:19:44 +02:00
1 parent 20054198f3
commit b397ea9256
44 files changed
+5528 -1377

No files matched your search

+446 -216
View File
@@ -1,222 +1,452 @@
/* ===============================
GLOBAL STYLING — Dark Grey Theme
=============================== */
/* Shared application shell. Assets stay local so the UI also works without a CDN. */
:root {
color-scheme: dark;
--background: #101519;
--surface: #181f25;
--surface-raised: #202a32;
--surface-input: #11191f;
--border: #2d3943;
--border-soft: #26313a;
--text: #edf2f5;
--muted: #a2b1bd;
--faint: #8696a3;
--accent: #80ddca;
--accent-ink: #102a25;
--accent-soft: #213d37;
--blue: #a6caff;
--warning: #efc77e;
--danger: #ffaaa0;
--radius: 12px;
--content-width: 1320px;
font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
font-size: 15px;
line-height: 1.55;
font-synthesis: none;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 300px; background: var(--background); color: var(--text); }
button, input, select, textarea { font: inherit; }
button, input, select, textarea, a, summary { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .5; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: #b1f3e5; }
h1, h2, h3, p, dl { margin: 0; }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
legend { padding: 0; }
button, a, summary, input, select { touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
::selection { background: var(--accent-soft); color: #fff; }
input::placeholder { color: var(--faint); opacity: 1; }
input[type="number"] { appearance: textfield; }
input::-webkit-outer-spin-button, input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.visually-hidden, .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.muted { color: var(--muted); }
.small, small { font-size: .82rem; }
.skip-link { position: fixed; z-index: 100; top: 10px; left: 14px; transform: translateY(-160%); background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 6px; font-weight: 700; }
.skip-link:focus { transform: translateY(0); }
body {
background: #2C2C2C; /* dark grey */
color: #E0E0E0; /* soft light grey text */
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
/* Navigation and shared state */
.topbar { position: sticky; top: 0; z-index: 20; background: #151c22; border-bottom: 1px solid var(--border); }
.topbar-inner { display: flex; align-items: center; gap: 38px; max-width: var(--content-width); min-height: 80px; padding: 0 32px; margin: auto; }
.brand { display: flex; align-items: center; flex: 0 0 auto; gap: 11px; color: var(--text); text-decoration: none; }
.brand:hover { color: var(--text); }
.brand-mark { display: grid; place-items: center; width: 37px; height: 37px; background: var(--accent); border-radius: 10px; color: var(--accent-ink); }
.brand-mark svg { width: 25px; height: 25px; }
.brand-text { display: flex; flex-direction: column; font-size: 1.12rem; font-weight: 750; line-height: 1.17; letter-spacing: -.02em; }
.brand-text > span { color: var(--muted); font-size: .73rem; font-weight: 500; letter-spacing: .035em; }
.main-nav { display: flex; align-self: stretch; align-items: stretch; gap: 8px; }
.nav-link { display: flex; align-items: center; gap: 8px; position: relative; padding: 0 16px; color: var(--muted); font-size: .9rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.nav-link:hover { color: var(--text); background: #1b242b; }
.nav-link.is-active { color: var(--accent); }
.nav-link.is-active::after { content: ""; position: absolute; bottom: -1px; height: 3px; left: 16px; right: 16px; background: var(--accent); border-radius: 3px 3px 0 0; }
.nav-count { display: inline-flex; justify-content: center; min-width: 21px; padding: 1px 6px; border-radius: 5px; background: var(--surface-raised); font-size: .7rem; line-height: 1.5; font-variant-numeric: tabular-nums; color: var(--muted); }
.nav-link.is-active .nav-count { background: var(--accent-soft); color: var(--accent); }
.connection-status { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; padding: 6px 10px; color: var(--muted); border: 1px solid var(--border); border-radius: 6px; font-size: .76rem; white-space: nowrap; }
.status-dot { width: 6px; height: 6px; flex: 0 0 auto; border-radius: 50%; background: var(--faint); }
.connection-status.is-ready .status-dot { background: var(--accent); }
.connection-status.is-paused { color: var(--warning); border-color: #65502d; }
.connection-status.is-paused .status-dot, .connection-status.is-stale .status-dot { background: var(--warning); }
.connection-status.is-stale { color: var(--warning); }
.notice-wrap { max-width: var(--content-width); padding: 0 32px; margin: auto; }
.verification-notice { display: flex; gap: 24px; align-items: center; justify-content: space-between; margin-top: 24px; padding: 18px 22px; background: #2d281e; border: 1px solid #65502d; border-radius: var(--radius); }
.notice-copy { display: flex; flex-direction: column; gap: 5px; }
.notice-copy > strong { color: var(--warning); font-size: .92rem; }
.notice-copy > span { color: #e1ceb0; font-size: .85rem; }
.verification-notice form { flex-shrink: 0; }
/* Layout and common controls */
.app-main { max-width: var(--content-width); min-height: calc(100vh - 180px); margin: 0 auto; padding: 36px 32px 48px; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.eyebrow { color: var(--faint); font-size: .67rem; font-weight: 700; letter-spacing: .14em; margin-bottom: 9px; }
.page-title { font-size: clamp(1.8rem, 3vw, 2.18rem); line-height: 1.2; letter-spacing: -.035em; font-weight: 650; }
.page-description { color: var(--muted); margin-top: 9px; max-width: 750px; font-size: .9rem; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); min-width: 0; overflow: clip; }
.panel-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; border-bottom: 1px solid var(--border-soft); }
.panel-header h2 { font-size: 1rem; font-weight: 650; letter-spacing: -.015em; }
.panel-body { padding: 24px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 42px; padding: 9px 16px; border: 1px solid transparent; border-radius: 7px; font-size: .86rem; font-weight: 650; line-height: 1.4; color: var(--text); background: var(--surface-raised); text-decoration: none; transition: background-color .15s, border-color .15s; }
.button:hover { background: #2b3740; color: var(--text); }
.button-primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.button-primary:hover { background: #a0ebdc; color: var(--accent-ink); border-color: #a0ebdc; }
.button-secondary { background: transparent; border-color: #3b4a56; }
.button-secondary:hover { background: var(--surface-raised); border-color: #5c7180; }
.button-ghost { background: transparent; color: var(--muted); }
.button-ghost:hover { background: var(--surface-raised); }
.button-danger { color: var(--danger); background: #372724; border-color: #64413b; }
.button-danger:hover { color: #ffd6cf; background: #4a2d29; border-color: #996056; }
.button-warning { color: #f7d69d; background: #48391e; border-color: #856839; }
.button-warning:hover { color: #ffdfac; background: #5a4623; }
.button-small { min-height: 34px; padding: 6px 11px; font-size: .79rem; }
.button[aria-disabled="true"] { pointer-events: none; opacity: .45; }
.button-group, .toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.page-actions { display: flex; align-items: center; flex-wrap: wrap; justify-content: end; gap: 14px; }
.badge { display: inline-flex; align-items: center; justify-content: center; padding: 3px 8px; border: 1px solid transparent; border-radius: 5px; font-size: .7rem; font-weight: 600; line-height: 1.6; white-space: nowrap; }
.badge-neutral { background: #27323c; color: #c4d0db; border-color: #354451; }
.badge-success, .status-online { background: #203a32; color: #9de4c3; border-color: #315645; }
.badge-warning, .status-pending { background: #3e3321; color: #f1d399; border-color: #5f4d30; }
.badge-danger, .status-stopped { background: #3f2a2a; color: #ffb7ad; border-color: #5d3a36; }
.badge-info, .badge-active { background: #23374b; color: #adceff; border-color: #35516c; }
.field { min-width: 0; }
.field-label { display: block; font-size: .83rem; font-weight: 550; color: #d5dfe6; margin-bottom: 8px; }
.field-label > span[aria-hidden] { color: var(--accent); }
.field-input, .input { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #3c4b57; border-radius: 7px; background: var(--surface-input); color: var(--text); line-height: 1.4; font-size: .9rem; }
select.field-input { padding-right: 30px; }
.field-input:focus, .input:focus { border-color: var(--accent); outline: 2px solid #80ddca33; outline-offset: 1px; }
.field-input[aria-invalid="true"] { border-color: var(--danger); }
.field-hint { color: var(--muted); font-size: .77rem; line-height: 1.6; margin-top: 7px; overflow-wrap: anywhere; }
.optional { margin-left: 5px; color: var(--faint); font-size: .73rem; font-weight: 400; }
.inline-notice, .notice { margin-bottom: 20px; padding: 14px 16px; border: 1px solid var(--border); background: var(--surface-raised); border-radius: 8px; font-size: .88rem; }
.inline-notice p { margin-top: 5px; }
.notice-error, .notice-danger { color: #ffc2b8; border-color: #6f4540; background: #3b2928; }
.notice-success { color: #afe6cc; border-color: #35624e; background: #203b30; }
.notice-warning { color: #f1d399; border-color: #65502d; background: #352d20; }
.empty-state { text-align: center; padding: 56px 24px; color: var(--muted); }
.empty-state h2, .empty-state h3, .empty-state strong { color: var(--text); font-size: 1.05rem; font-weight: 550; }
.empty-state p { margin: 7px auto 16px; max-width: 450px; font-size: .85rem; }
.app-footer { display: flex; justify-content: space-between; gap: 20px; max-width: var(--content-width); margin: 0 auto; padding: 20px 32px 26px; color: var(--faint); font-size: .73rem; border-top: 1px solid var(--border-soft); }
.error-panel { max-width: 760px; margin: 40px auto; }
.error-panel .panel-body { padding: 36px; }
.error-panel .button-group { margin-top: 26px; }
/* Download form */
.download-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; align-items: start; gap: 24px; }
.download-sidebar { display: grid; gap: 20px; position: sticky; top: 104px; }
.mode-switch { display: flex; gap: 12px; margin-bottom: 29px; }
.mode-choice { position: relative; flex: 1; cursor: pointer; }
.mode-choice input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; }
.mode-choice > span { display: flex; flex-direction: column; gap: 3px; padding: 13px 16px; border: 1px solid #3c4b57; border-radius: 8px; background: var(--surface-input); }
.mode-choice strong { font-size: .88rem; font-weight: 650; }
.mode-choice small { color: var(--muted); font-size: .73rem; }
.mode-choice input:checked + span { border-color: var(--accent); background: #21342f; }
.mode-choice input:checked + span > strong { color: var(--accent); }
.mode-choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 4px; }
.mode-choice:hover > span { border-color: #718d9c; }
.form-section { padding-top: 25px; margin-top: 24px; border-top: 1px solid var(--border-soft); }
#series-fields, #video-fields { padding-top: 0; margin-top: 0; border-top: 0; }
.section-label { display: flex; align-items: center; gap: 9px; margin-bottom: 18px; color: var(--faint); font-size: .72rem; font-weight: 500; }
.section-label > span { color: var(--text); font-size: .9rem; font-weight: 600; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.input-with-action { display: flex; align-items: stretch; position: relative; }
.input-with-action .field-input { padding-right: 64px; }
.input-action { position: absolute; right: 7px; top: 7px; bottom: 7px; border: 0; border-radius: 4px; padding: 2px 8px; color: var(--muted); background: var(--surface-raised); font-size: .72rem; }
.input-action:hover { color: var(--text); }
.form-actions { display: flex; align-items: center; gap: 18px; border-top: 1px solid var(--border-soft); margin-top: 26px; padding-top: 24px; }
.form-actions > .button { flex-shrink: 0; }
.preview-count { display: flex; flex-direction: column; gap: 7px; margin-bottom: 24px; }
.preview-count > strong { font-size: 2.8rem; line-height: 1.15; font-weight: 600; letter-spacing: -.04em; color: var(--accent); }
.preview-count > span { color: var(--muted); font-size: .85rem; }
.preview-section { padding-top: 20px; margin-top: 20px; border-top: 1px solid var(--border-soft); }
.preview-section h3 { color: var(--faint); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 650; margin-bottom: 10px; }
.preview-filename, .destination-path { overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .8rem; line-height: 1.75; }
.destination-path { color: var(--accent); }
.preview-validation { font-size: .8rem; line-height: 1.6; color: var(--warning); }
.preview-validation:not(:empty) { margin-top: 18px; }
.help-card { display: flex; align-items: start; gap: 12px; padding: 20px 8px; }
.help-icon { display: grid; place-items: center; flex: 0 0 auto; width: 20px; height: 20px; border-radius: 50%; color: var(--muted); border: 1px solid #59707d; font-size: .75rem; font-family: Georgia, serif; font-style: italic; }
.help-card h2 { font-size: .85rem; font-weight: 600; margin-bottom: 8px; }
.help-card p { color: var(--muted); font-size: .8rem; line-height: 1.75; }
.help-card strong { font-weight: 550; color: #c4d2dc; }
/* Queue and history */
.queue-overview { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 26px; }
.queue-stat { display: flex; flex-direction: column; gap: 5px; padding: 18px 21px; color: var(--text); text-decoration: none; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.queue-stat:hover { color: var(--text); border-color: #657c8c; background: #1c262d; }
.queue-stat.is-selected { background: #1d302d; border-color: #68b9a8; }
.queue-stat-label { color: #bac8d2; font-size: .8rem; font-weight: 550; }
.queue-stat-count { font-size: 2rem; line-height: 1.25; font-weight: 600; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.queue-stat.is-selected .queue-stat-count { color: var(--accent); }
.queue-stat-note { color: var(--faint); font-size: .72rem; }
.queue-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 14px; padding: 20px 24px; border-bottom: 1px solid var(--border-soft); }
.queue-filters > .field:first-child, .queue-filters .field-grow { flex: 1 1 260px; }
.queue-filters > .field:not(:first-child) { flex: 0 0 130px; }
.queue-filters > .field.queue-search { flex: 1 1 260px; }
.queue-filters .field-label { font-size: .75rem; margin-bottom: 7px; }
.queue-filters .button { min-height: 44px; }
.panel-body > .queue-filters { padding: 0; border: 0; }
#queue-state-note { font-size: .79rem; margin-top: 5px; }
.job-error-category { display: block; font-size: .69rem; margin-top: 5px; overflow-wrap: anywhere; }
.queue-columns, .job-row { display: grid; grid-template-columns: minmax(0, 1fr) 120px 175px 110px; column-gap: 22px; align-items: center; }
.queue-columns { padding: 13px 24px; color: var(--faint); font-size: .67rem; letter-spacing: .07em; text-transform: uppercase; border-bottom: 1px solid var(--border-soft); }
.job-list { margin: 0; padding: 0; list-style: none; }
.job-row { padding: 20px 24px; border-bottom: 1px solid var(--border-soft); }
.job-row:last-child { border-bottom: 0; }
.job-row:hover { background: #1a242b; }
.job-primary, .job-time, .job-size, .job-state { min-width: 0; }
.job-filename { display: block; color: var(--text); font-size: .9rem; font-weight: 600; overflow-wrap: anywhere; }
.job-source { display: block; margin-top: 5px; color: var(--muted); font-size: .73rem; overflow-wrap: anywhere; }
.job-source:hover { color: var(--accent); }
.job-id { display: block; margin-top: 3px; color: var(--faint); font-size: .7rem; overflow-wrap: anywhere; }
.job-time { font-size: .77rem; color: #bfccd5; }
.job-time time { display: block; }
.job-time-label { display: block; color: var(--faint); font-size: .69rem; margin-bottom: 3px; }
.job-size-value { display: block; color: #d4dfe7; font-size: .8rem; font-variant-numeric: tabular-nums; }
.job-size small { display: block; margin-top: 3px; color: var(--faint); font-size: .69rem; }
.job-log { grid-column: 1 / -1; margin-top: 12px; }
details > summary { cursor: pointer; font-size: .78rem; color: var(--muted); }
details > summary:hover { color: var(--text); }
.job-log[open] > summary { color: var(--accent); margin-bottom: 10px; }
.log-output, .log-view { margin: 0; padding: 18px; overflow: auto; border: 1px solid var(--border-soft); border-radius: 8px; color: #cad9e3; background: #10171c; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .77rem; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; tab-size: 2; max-height: 26rem; }
.queue-pagination { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; padding: 18px 24px; border-top: 1px solid var(--border-soft); color: var(--muted); font-size: .8rem; }
.queue-pagination > div, .queue-pagination nav { display: flex; align-items: center; gap: 10px; }
.queue-actions { margin-top: 24px; border-top: 1px solid var(--border-soft); padding-top: 18px; }
.queue-actions > summary { color: var(--faint); font-size: .8rem; }
.queue-actions[open] > summary { margin-bottom: 15px; }
.queue-actions p { color: var(--muted); font-size: .8rem; max-width: 780px; margin: 10px 0 16px; }
.queue-actions form { display: inline-block; margin: 0 8px 8px 0; }
#queue-feedback { color: var(--muted); font-size: .77rem; }
#queue-feedback.is-error { color: var(--warning); }
#queue-feedback.feedback-error { color: var(--warning); }
/* Worker management */
.workers-layout { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 24px; align-items: start; }
.worker-workspace { display: grid; gap: 24px; min-width: 0; }
.workers-layout > .panel > .panel-body { padding: 0; }
.worker-list { list-style: none; padding: 12px; margin: 0; display: grid; gap: 7px; max-height: 440px; overflow-y: auto; }
.worker-list-item { min-width: 0; }
.worker-row { width: 100%; text-align: left; padding: 14px; background: transparent; color: var(--text); border: 1px solid transparent; border-radius: 8px; }
.worker-row:hover { background: var(--surface-raised); border-color: var(--border); }
.worker-row.is-selected { border-color: #68b9a8; background: #21352f; }
.worker-row-heading, .worker-summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.worker-name { color: var(--text); font-size: .88rem; font-weight: 600; overflow-wrap: anywhere; }
.worker-row-meta, .worker-metrics, .worker-counts { color: var(--muted); font-size: .74rem; margin-top: 6px; }
.worker-row-meta { display: block; }
.worker-metrics { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.worker-create { padding: 20px 24px; border-top: 1px solid var(--border-soft); }
.worker-create h3 { font-size: .9rem; font-weight: 600; margin-bottom: 17px; }
.worker-create > .button { margin-top: 15px; }
.inline-form { display: flex; gap: 8px; align-items: end; }
.inline-form .field { flex: 1; min-width: 0; }
.worker-create .field-hint { margin-top: 9px; }
.worker-controls { min-width: 0; }
.worker-actions { display: flex; flex-wrap: wrap; gap: 9px; margin: 0 0 22px; }
.worker-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 20px 0; }
.worker-stats > div { padding: 13px 15px; border: 1px solid var(--border-soft); background: var(--surface-input); border-radius: 8px; }
.worker-stats dt { color: var(--faint); font-size: .71rem; }
.worker-stats dd { margin: 5px 0 0; color: var(--text); font-size: 1.1rem; font-weight: 550; font-variant-numeric: tabular-nums; }
.worker-details { font-size: .8rem; }
.worker-details > dl { display: grid; gap: 9px; margin-top: 14px; }
.worker-details > dl > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); column-gap: 18px; }
.worker-details dt { color: var(--faint); }
.worker-details dd { margin: 0; color: #c8d5df; overflow-wrap: anywhere; }
.worker-selection-empty { padding: 42px 24px; color: var(--muted); text-align: center; }
.worker-selection-empty .empty-state { padding: 0; }
.worker-selection-empty h2 { color: var(--text); font-size: 1rem; font-weight: 550; margin-bottom: 8px; }
.worker-selection-empty p { font-size: .85rem; }
.action-message { padding: 12px 15px; border: 1px solid var(--border); background: var(--surface-input); color: var(--muted); border-radius: 8px; font-size: .8rem; overflow-wrap: anywhere; }
.action-message.is-error { border-color: #70443e; background: #3a2926; color: var(--danger); }
.action-message.is-success { border-color: #3e6555; background: #20372e; color: #b4e7ce; }
.log-panel { min-width: 0; }
.log-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.log-toolbar .button-group { gap: 7px; }
.log-toolbar .worker-actions { margin: 0; gap: 7px; }
.log-toolbar { margin-bottom: 14px; }
.checkbox-label { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: .77rem; }
.checkbox-label input { accent-color: var(--accent); }
.log-view { height: 28rem; max-height: 28rem; }
.log-panel .panel-body { padding: 16px; }
.log-panel .panel-header { flex-wrap: wrap; }
@media (max-width: 1100px) {
.topbar-inner { gap: 22px; }
.nav-link { padding: 0 12px; }
.download-layout { grid-template-columns: minmax(0, 1fr) 290px; gap: 20px; }
.workers-layout { grid-template-columns: 310px minmax(0, 1fr); gap: 20px; }
.queue-columns, .job-row { grid-template-columns: minmax(0, 1fr) 100px 145px 90px; gap: 16px; }
.worker-stats > div { padding: 11px; }
}
@media (max-width: 850px) {
.topbar-inner { flex-wrap: wrap; padding-top: 16px; gap: 12px 20px; }
.brand { margin-bottom: 3px; }
.main-nav { order: 3; flex-basis: 100%; height: 48px; gap: 8px; }
.nav-link { padding: 0 14px; }
.connection-status { margin-bottom: 3px; }
.app-main { padding-top: 28px; }
.download-layout { grid-template-columns: minmax(0, 1fr) 270px; gap: 16px; }
.panel-header, .panel-body { padding: 20px; }
.panel-header { flex-wrap: wrap; gap: 7px; }
.download-sidebar { top: 142px; }
.form-actions { align-items: start; flex-direction: column; gap: 10px; }
.mode-choice > span { padding: 12px 11px; }
.mode-choice small { font-size: .67rem; }
.workers-layout { grid-template-columns: 270px minmax(0, 1fr); gap: 16px; }
.worker-stats { gap: 7px; }
.worker-stats dd { font-size: .95rem; }
.worker-details > dl > div { grid-template-columns: 80px minmax(0, 1fr); gap: 8px; }
}
@media (max-width: 740px) {
.topbar-inner, .notice-wrap { padding-left: 20px; padding-right: 20px; }
.app-main { padding: 25px 20px 36px; }
.app-footer { padding-left: 20px; padding-right: 20px; }
.page-heading { align-items: start; gap: 16px; margin-bottom: 24px; }
.page-heading > .button { flex-shrink: 0; }
.page-heading .page-description { font-size: .84rem; }
.download-layout, .workers-layout { grid-template-columns: minmax(0, 1fr); }
.download-sidebar { position: static; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
.help-card { padding: 15px 5px; }
.queue-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.queue-stat { padding: 15px 17px; }
.queue-stat-count { font-size: 1.8rem; }
.queue-columns { display: none; }
.job-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px 20px; }
.job-primary { grid-column: 1 / -1; }
.job-state { grid-column: 2; grid-row: 2; justify-self: end; }
.job-time { grid-column: 1; grid-row: 2; }
.job-size { grid-column: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.job-size small { margin-top: 0; }
.job-log { margin-top: 0; }
.queue-filters { padding: 18px 20px; }
.queue-filters > .field:first-child, .queue-filters .field-grow { flex-basis: 100%; }
.queue-filters > .field:not(:first-child) { flex: 1; }
.queue-filters > .field.queue-search { flex: 1 1 100%; }
.queue-pagination { padding: 16px 20px; }
.verification-notice { align-items: start; flex-direction: column; gap: 15px; padding: 18px; margin-top: 20px; }
.worker-list { max-height: 320px; }
.worker-stats { gap: 12px; }
.worker-stats dd { font-size: 1.15rem; }
.log-view { height: 22rem; max-height: 22rem; }
}
@media (max-width: 470px) {
.topbar-inner { padding-left: 16px; padding-right: 16px; gap: 12px; }
.main-nav { gap: 0; justify-content: space-between; }
.nav-link { padding: 0 10px; font-size: .81rem; }
.nav-link.is-active::after { left: 10px; right: 10px; }
.connection-status { padding: 5px 7px; font-size: .65rem; gap: 6px; max-width: 160px; white-space: normal; }
.brand-mark { width: 33px; height: 33px; }
.brand-text { font-size: 1rem; }
.brand-text > span { font-size: .67rem; }
.app-main { padding: 23px 16px 30px; }
.notice-wrap { padding: 0 16px; }
.page-heading { flex-direction: column; align-items: stretch; gap: 17px; }
.page-heading > .button { align-self: start; }
.page-actions { justify-content: start; }
.page-title { font-size: 1.85rem; }
.eyebrow { font-size: .61rem; }
.panel-header, .panel-body { padding: 18px; }
.download-sidebar { grid-template-columns: minmax(0, 1fr); gap: 8px; }
.form-grid { column-gap: 14px; row-gap: 18px; }
.form-grid > .field:nth-child(-n+2) { grid-column: 1 / -1; }
.field-input { font-size: 16px; }
.field-label { font-size: .8rem; }
.mode-switch { gap: 8px; }
.mode-choice > span { padding: 12px; }
.mode-choice strong { font-size: .81rem; }
.mode-choice small { font-size: .67rem; }
.form-actions .button { width: 100%; }
.queue-filters, .job-row { padding-left: 18px; padding-right: 18px; }
.queue-pagination { align-items: start; flex-direction: column; }
.queue-pagination > div, .queue-pagination nav { width: 100%; justify-content: space-between; }
.worker-row-heading { gap: 6px; }
.worker-stats { gap: 7px; }
.worker-stats > div { padding: 10px; }
.worker-stats dd { font-size: 1rem; }
.worker-create { padding: 18px; }
.worker-actions .button { flex: 1 1 40%; }
.app-footer { padding-left: 16px; padding-right: 16px; font-size: .68rem; }
}
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after { transition-duration: 0s !important; scroll-behavior: auto !important; }
}
/* Container boundaries (Bootstrap container inside layout.ejs) */
.container {
max-width: 1100px;
/* Dashboard and current worker claims */
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 15px; }
.section-heading h2 { font-size: 1rem; font-weight: 650; letter-spacing: -.015em; }
.section-heading h3 { font-size: .9rem; font-weight: 600; }
.section-heading .field-hint { margin-top: 3px; }
.text-link { font-size: .8rem; font-weight: 600; text-decoration: none; flex-shrink: 0; }
.text-link:hover { text-decoration: underline; }
.activity-section { margin-bottom: 28px; min-width: 0; }
.activity-cards { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 28px) / 3); gap: 14px; overflow-x: auto; padding: 0 0 7px; margin: 0; list-style: none; scroll-snap-type: x proximity; scrollbar-color: #435461 transparent; scrollbar-width: thin; }
.activity-cards:empty { display: none; }
.worker-card { background: var(--surface); border: 1px solid var(--border); border-top: 2px solid #42675f; border-radius: 10px; min-width: 0; padding: 17px 18px; scroll-snap-align: start; }
.worker-card-heading { display: flex; align-items: start; justify-content: space-between; gap: 9px; margin-bottom: 15px; }
.worker-card-name { min-width: 0; overflow-wrap: anywhere; color: var(--muted); font-size: .78rem; font-weight: 600; }
.worker-card-state { font-size: .65rem; padding: 1px 6px; }
.worker-card-jobs, .unassigned-jobs { list-style: none; padding: 0; margin: 0; }
.worker-card-jobs > .active-job + .active-job { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border-soft); }
.active-job-name { display: block; font-weight: 600; font-size: .95rem; line-height: 1.45; overflow-wrap: anywhere; }
.active-job-source { display: block; margin-top: 6px; font-size: .72rem; color: var(--muted); text-decoration: none; overflow-wrap: anywhere; }
.active-job-source[href]:hover { color: var(--accent); text-decoration: underline; }
.active-job-metrics { display: flex; flex-direction: column; gap: 5px; margin-top: 17px; font-size: .7rem; font-variant-numeric: tabular-nums; }
.active-job-size { color: var(--accent); font-weight: 600; }
.active-job-time { color: var(--faint); }
.worker-card-empty { color: var(--faint); font-size: .82rem; min-height: 86px; padding-top: 6px; }
.activity-warning { margin-bottom: 14px; font-size: .8rem; }
.activity-empty { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; border: 1px dashed #3c4b57; border-radius: 9px; padding: 20px; color: var(--muted); font-size: .82rem; }
.activity-empty strong { font-weight: 550; color: var(--text); }
.activity-empty .button { margin-left: auto; }
.unassigned-activity { margin-top: 17px; padding: 18px 20px; border: 1px solid #65502d; border-radius: 10px; background: #211f1a; }
.unassigned-jobs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.unassigned-jobs .active-job + .active-job { border-left: 1px solid #484131; padding-left: 20px; }
.dashboard-overview { margin-bottom: 10px; }
.dashboard-feedback { margin: 0 0 24px; }
.dashboard-history { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.recent-list { list-style: none; padding: 0; margin: 0; }
.recent-job { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 17px 24px; border-bottom: 1px solid var(--border-soft); }
.recent-job:last-child { border-bottom: 0; }
.recent-primary { display: grid; gap: 5px; min-width: 0; }
.recent-name { font-size: .83rem; font-weight: 550; overflow-wrap: anywhere; }
.recent-primary time { font-size: .72rem; }
.recent-empty { padding: 36px 20px; }
.history-footnote { padding: 14px 24px; border-top: 1px solid var(--border-soft); margin: 0; }
.queue-action-help { margin-top: 15px; }
#queue-view > .panel-header { flex-wrap: wrap; }
#queue-view > .panel-header > div:first-child { flex: 1 1 340px; }
#queue-view > .panel-header > .button-group { flex: 0 1 auto; }
.form-grid > .season-field { grid-column: 1 / -1; }
.season-field .field-input { max-width: 145px; }
.token-cache-status { padding: 14px 16px; background: var(--surface-input); border: 1px solid var(--border); border-radius: 8px; margin-bottom: 17px; }
.worker-create > summary { cursor: pointer; font-size: .82rem; color: var(--muted); }
.worker-quick-add-hint { margin: 0; padding: 17px 24px; border-top: 1px solid var(--border-soft); }
.worker-create[open] > summary { margin-bottom: 20px; }
.worker-create form > .button { margin-top: 15px; }
@media (max-width: 1100px) {
.activity-cards { grid-auto-columns: calc((100% - 14px) / 2); }
.unassigned-jobs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.topbar-inner { gap: 18px; }
}
/* ===============================
HEADER / NAVIGATION
=============================== */
header h1 {
font-size: 2.4rem;
font-weight: 700;
margin: 0;
color: #8A190B; /* deep red accent */
text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
@media (max-width: 740px) {
.dashboard-history { grid-template-columns: minmax(0, 1fr); gap: 20px; }
.recent-job { padding: 16px 20px; }
.section-heading { align-items: start; }
.unassigned-jobs { grid-template-columns: minmax(0, 1fr); }
.unassigned-jobs .active-job + .active-job { border-left: 0; border-top: 1px solid #484131; padding-left: 0; padding-top: 16px; }
}
.btn-outline-light {
color: #E0E0E0;
border-color: #5A5A5A;
}
.btn-outline-light:hover {
background-color: #5A5A5A;
color: #c7c7c7;
}
/* ===============================
CARDS / PANELS
=============================== */
.card-dark,
.card {
background-color: #3A3A3A !important; /* mid-grey panels */
border-radius: 10px;
padding: 20px;
border: 1px solid #444;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}
/* list group items in status.ejs */
.list-group-item {
background-color: #3A3A3A;
border-color: #4A4A4A;
color: #E0E0E0;
}
.list-group-item:hover {
background-color: #4A4A4A;
}
/* ===============================
FORM ELEMENTS
=============================== */
.form-text {
color: #BEBEBE !important; /* same as form label */
}
.form-label {
color: #BEBEBE;
}
.form-control,
.form-select {
background-color: #4A4A4A;
color: #E0E0E0;
border: 1px solid #5A5A5A;
}
.form-control:focus,
.form-select:focus {
border-color: #2980B9; /* same blue accent as reference */
box-shadow: 0 0 0 0.25rem rgba(41, 128, 185, 0.25);
}
/* Toggle switch label */
.form-check-label {
color: #BEBEBE !important;
}
::placeholder {
color: #BEBEBE !important; /* Same as label color */
}
/* ===============================
BUTTONS
=============================== */
button,
.btn {
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}
/* ===== Floating Pill Toggle ===== */
.pill-toggle {
position: relative;
display: flex;
width: 240px;
background: #333;
padding: 5px;
border-radius: 30px;
cursor: pointer;
user-select: none;
}
.pill-option {
flex: 1;
text-align: center;
padding: 10px 0;
z-index: 2;
font-weight: 600;
color: #aaa;
transition: color 0.25s ease;
}
.pill-option.active {
color: #fff;
}
.pill-indicator {
position: absolute;
top: 5px;
left: 5px;
width: calc(50% - 5px);
height: calc(100% - 10px);
background: #8a190b; /* your accent red */
border-radius: 25px;
transition: transform 0.25s ease, background 0.25s ease;
z-index: 1;
}
/* Hover feedback */
.pill-option:hover {
color: #ddd;
}
/* ===============================
ALERTS
=============================== */
.alert-danger {
background-color: #4A1C1C;
border-color: #8A190B;
color: #E0E0E0;
}
/* ===============================
SCROLLBAR (dark theme)
=============================== */
::-webkit-scrollbar {
width: 8px;
}
::-webkit-scrollbar-thumb {
background-color: #5A5A5A;
border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
background-color: #7D7D7D;
}
/* ===============================
LINKS
=============================== */
a {
color: #B04232;
}
a:hover {
color: #E05D4A;
}
/* ===============================
FOOTER
=============================== */
footer {
color: #BEBEBE !important;
text-align: center;
}
#logs {
height: 60vh;
background: #0b1220;
color: #e6eef8;
padding: 10px;
font-family: monospace;
font-size: 0.85rem;
overflow-y: auto;
border-radius: 8px;
border: 1px solid #444;
white-space: pre-wrap;
word-break: break-word;
overflow-wrap: break-word;
}
/* ===============================
RESPONSIVE
=============================== */
@media (max-width: 768px) {
header h1 {
font-size: 1.8rem;
}
@media (max-width: 470px) {
.main-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); min-width: 0; width: 100%; }
.nav-link { min-width: 0; justify-content: center; align-content: center; flex-wrap: wrap; padding: 0 6px; gap: 2px 4px; font-size: .73rem; white-space: normal; text-align: center; line-height: 1.3; }
.nav-link.is-active::after { left: 6px; right: 6px; }
.nav-count { font-size: .63rem; min-width: 18px; padding: 1px 4px; }
.activity-cards { grid-auto-columns: 100%; }
.activity-section { margin-bottom: 23px; }
.section-heading { gap: 10px; }
.section-heading .text-link { font-size: .72rem; }
.section-heading h2 { font-size: .94rem; }
.unassigned-activity .section-heading { flex-direction: column; }
.activity-empty { align-items: start; flex-direction: column; }
.activity-empty .button { margin-left: 0; margin-top: 6px; }
.worker-card-empty { min-height: 40px; }
#queue-view > .panel-header > div:first-child { flex-basis: auto; }
.recent-job { padding: 15px 18px; gap: 10px; }
}