123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969 | *,
*::before,
*::after {
box-sizing: border-box;
margin: 0;
padding: 0;
}
:root {
--bg: #f5f5f5;
--surface: #ffffff;
--border: #d0d0d0;
--text: #1a1a1a;
--text-muted: #666;
--accent: #2563eb;
--accent-hover: #1d4ed8;
--danger: #dc2626;
--danger-bg: #fef2f2;
--warning: #d97706;
--warning-bg: #fffbeb;
--success: #16a34a;
--success-bg: #f0fdf4;
--radius: 6px;
--shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}
body {
font-family:
system-ui,
-apple-system,
sans-serif;
font-size: 16px;
background: var(--bg);
color: var(--text);
height: 100vh;
display: flex;
flex-direction: column;
overflow: hidden;
}
header {
background: var(--accent);
color: white;
padding: 10px 16px;
display: flex;
align-items: center;
gap: 12px;
flex-shrink: 0;
}
header h1 {
font-size: 18px;
font-weight: 600;
}
#status-bar {
margin-left: auto;
font-size: 15px;
opacity: 0.85;
}
#btn-close-app {
background: transparent;
border: none;
color: white;
font-size: 16px;
padding: 4px 8px;
border-radius: var(--radius);
opacity: 0.75;
line-height: 1;
}
#btn-close-app:hover {
background: rgba(255, 255, 255, 0.2);
opacity: 1;
}
#btn-close-app:active {
background: rgba(255, 255, 255, 0.35);
}
main {
flex: 1;
min-height: 0;
overflow-y: auto;
padding: 20px;
display: flex;
flex-direction: column;
}
.screen {
display: none;
}
.screen.active {
display: block;
}
/* ── Per-screen layouts ───────────────────────────────────────────────────── */
/* Password: vertically centered dialog */
#screen-password.active {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
flex: 1;
}
.dialog {
width: 100%;
max-width: 420px;
}
/* Config: table fills available height; buttons always visible */
#screen-config.active {
display: flex;
flex-direction: column;
flex: 1;
min-height: 0;
}
#screen-config .card-flush {
flex: 1;
min-height: 100px;
overflow-y: auto;
margin-bottom: 0;
}
/* Preview: command list scrolls; Run button always visible */
#screen-preview.active {
display: flex;
flex-direction: column;
flex: 1;
min-height: 0;
}
#preview-commands {
flex: 1;
overflow-y: auto;
min-height: 0;
}
#preview-empty {
flex: 1;
display: flex;
align-items: center;
justify-content: center;
}
/* Backup: always-visible log fills remaining height */
#screen-backup.active {
display: flex;
flex-direction: column;
flex: 1;
min-height: 0;
}
.log-section {
display: flex;
flex-direction: column;
flex: 1;
min-height: 0;
}
.log-label {
font-size: 13px;
font-weight: 500;
color: var(--text-muted);
margin-bottom: 6px;
flex-shrink: 0;
}
#backup-log {
flex: 1;
min-height: 0;
max-height: none;
}
/* Format progress: log fills remaining height */
#screen-format-progress.active {
display: flex;
flex-direction: column;
flex: 1;
min-height: 0;
}
#format-log {
flex: 1;
min-height: 0;
max-height: none;
}
/* Format setup: probe info and form side by side */
.format-columns {
display: flex;
gap: 16px;
align-items: flex-start;
}
.format-col-probe {
flex: 1;
min-width: 0;
}
.format-col-form {
width: 310px;
flex-shrink: 0;
}
.format-col-form .form-grid {
grid-template-columns: 120px 1fr;
}
@media (max-width: 580px) {
.format-columns {
flex-direction: column;
}
.format-col-form {
width: 100%;
}
.format-col-form .form-grid {
grid-template-columns: 160px 1fr;
}
}
.screen-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 8px;
}
.screen-header h2 {
margin-bottom: 0;
}
/* Cards */
.card {
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius);
box-shadow: var(--shadow);
padding: 16px;
margin-bottom: 12px;
}
h2 {
font-size: 20px;
font-weight: 600;
margin-bottom: 12px;
}
h3 {
font-size: 17px;
font-weight: 600;
margin-bottom: 8px;
}
/* Buttons */
button {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 7px 14px;
border-radius: var(--radius);
border: 1px solid var(--border);
background: var(--surface);
color: var(--text);
font-size: 15px;
font-weight: 500;
cursor: pointer;
transition:
background 0.1s,
border-color 0.1s;
}
button:hover {
background: #f0f0f0;
}
button:active {
background: #e4e4e4;
}
button:disabled {
opacity: 0.5;
cursor: not-allowed;
pointer-events: none;
}
button.primary {
background: var(--accent);
border-color: var(--accent);
color: white;
}
button.primary:hover {
background: var(--accent-hover);
border-color: var(--accent-hover);
}
button.primary:active {
background: #1e40af;
}
button.danger {
background: var(--danger);
border-color: var(--danger);
color: white;
}
button.danger:hover {
background: #b91c1c;
}
button.danger-outline {
border-color: var(--danger);
color: var(--danger);
}
button.danger-outline:hover {
background: var(--danger-bg);
}
.btn-row {
display: flex;
gap: 8px;
align-items: center;
margin-top: 14px;
flex-wrap: wrap;
}
/* Drive select screen */
#screen-drive-select.active {
display: flex;
flex-direction: column;
flex: 1;
min-height: 0;
}
#btn-open-drive {
margin-left: auto;
}
/* Drive list */
.drive-list {
display: flex;
flex-direction: column;
gap: 8px;
flex: 1;
overflow-y: auto;
min-height: 80px;
}
.drive-item {
background: var(--surface);
border: 2px solid var(--border);
border-radius: var(--radius);
padding: 12px 14px;
cursor: pointer;
transition:
border-color 0.1s,
background 0.1s;
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
}
.drive-item:hover {
border-color: var(--accent);
background: #eff6ff;
}
.drive-item.selected {
border-color: var(--accent);
background: #dbeafe;
}
.drive-item .drive-name {
font-weight: 600;
font-size: 16px;
}
.drive-item .drive-detail {
font-size: 14px;
color: var(--text-muted);
margin-top: 2px;
font-family: monospace;
}
.drive-item .drive-size {
font-size: 15px;
color: var(--text-muted);
flex-shrink: 0;
}
.badges {
display: flex;
gap: 4px;
margin-top: 4px;
flex-wrap: wrap;
}
.badge {
font-size: 13px;
padding: 2px 6px;
border-radius: 3px;
font-weight: 500;
color: white;
}
.badge-usb {
background: #2563eb;
}
.badge-luks {
background: #d97706;
}
.badge-mounted {
background: #16a34a;
}
.badge-fs {
background: #6b7280;
}
.empty-state {
text-align: center;
padding: 32px;
color: var(--text-muted);
}
/* Forms */
.form-grid {
display: grid;
grid-template-columns: 160px 1fr;
gap: 10px 14px;
align-items: center;
margin-bottom: 14px;
}
.form-grid label {
font-weight: 500;
color: var(--text-muted);
font-size: 15px;
}
input[type='checkbox'] {
width: auto;
cursor: pointer;
}
input[type='text'],
input[type='password'],
textarea,
select {
width: 100%;
padding: 7px 10px;
border: 1px solid var(--border);
border-radius: var(--radius);
font-size: 15px;
font-family: inherit;
background: var(--surface);
color: var(--text);
}
input:focus,
textarea:focus,
select:focus {
outline: none;
border-color: var(--accent);
box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}
textarea {
resize: vertical;
font-family: monospace;
}
.radio-group {
display: flex;
flex-direction: column;
gap: 6px;
}
.radio-option {
display: flex;
align-items: flex-start;
gap: 8px;
}
.radio-option input {
margin-top: 2px;
flex-shrink: 0;
}
.radio-option .radio-desc,
.checkbox-with-desc .radio-desc {
font-size: 14px;
color: var(--text-muted);
}
.checkbox-with-desc {
display: flex;
align-items: flex-start;
gap: 8px;
}
.checkbox-with-desc input {
margin-top: 3px;
flex-shrink: 0;
}
/* Jobs table */
.jobs-table {
width: 100%;
border-collapse: collapse;
margin-bottom: 14px;
}
.jobs-table th {
text-align: left;
font-size: 14px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.04em;
color: var(--text-muted);
padding: 6px 10px;
border-bottom: 1px solid var(--border);
}
.jobs-table td {
padding: 8px 10px;
border-bottom: 1px solid #f0f0f0;
font-size: 15px;
}
.jobs-table tr:last-child td {
border-bottom: none;
}
.jobs-table td.mono {
font-family: monospace;
font-size: 14px;
color: var(--text-muted);
}
.jobs-table td.actions {
text-align: right;
white-space: nowrap;
}
.jobs-table td.actions button {
padding: 4px 10px;
font-size: 14px;
}
/* Progress bar */
.progress-wrap {
background: #e5e7eb;
border-radius: 6px;
overflow: hidden;
height: 28px;
position: relative;
margin: 12px 0;
}
.progress-bar {
height: 100%;
background: linear-gradient(to bottom, #4ade80, #16a34a);
transition: width 0.3s ease;
min-width: 0;
}
.progress-bar.error {
background: var(--danger);
}
.progress-bar.done {
background: linear-gradient(to bottom, #4ade80, #16a34a);
}
.progress-label {
position: absolute;
inset: 0;
display: flex;
align-items: center;
justify-content: center;
font-size: 15px;
font-weight: 600;
color: var(--text);
text-shadow:
0 0 4px rgba(255, 255, 255, 0.95),
0 0 8px rgba(255, 255, 255, 0.7);
}
.log-box {
background: #1a1a2e;
color: #c8d6e5;
border-radius: var(--radius);
padding: 10px 12px;
font-family: monospace;
font-size: 14px;
max-height: 200px;
overflow-y: auto;
line-height: 1.5;
}
.log-box .log-cmd {
color: #74b9ff;
}
/* Format step dots */
.step-dots {
display: flex;
gap: 8px;
margin: 10px 0 12px;
align-items: center;
}
.step-dot {
width: 18px;
height: 18px;
border-radius: 50%;
background: #d1d5db;
flex-shrink: 0;
display: flex;
align-items: center;
justify-content: center;
font-size: 12px;
font-weight: 700;
color: white;
}
.step-dot.done {
background: var(--success);
}
.step-dot.error {
background: var(--danger);
}
.step-dot.active {
background: var(--accent);
}
/* Banners */
.banner {
border-radius: var(--radius);
padding: 12px 14px;
margin-bottom: 14px;
font-size: 15px;
}
.banner.danger {
background: var(--danger-bg);
border: 1px solid #fecaca;
color: #991b1b;
}
.banner.danger strong {
display: block;
font-size: 16px;
margin-bottom: 4px;
}
.banner.warning {
background: var(--warning-bg);
border: 1px solid #fde68a;
color: #92400e;
}
.banner.success {
background: var(--success-bg);
border: 1px solid #bbf7d0;
color: #166534;
}
.banner.info {
background: #eff6ff;
border: 1px solid #bfdbfe;
color: #1e40af;
}
/* Preview command */
.preview-cmd-block {
background: #1a1a2e;
border-radius: var(--radius);
padding: 10px 12px;
margin-bottom: 10px;
}
.preview-cmd-block .cmd-name {
font-size: 15px;
font-weight: 600;
color: #74b9ff;
margin-bottom: 4px;
}
.preview-cmd-block pre {
font-size: 14px;
color: #c8ffc8;
white-space: pre-wrap;
word-break: break-all;
}
/* Terminal/dark card variant */
.card.terminal {
background: #111827;
border-color: #374151;
}
.card.terminal em {
color: #9ca3af;
}
#format-probe-content {
color: #c8d6e5;
font-family: monospace;
font-size: 13px;
white-space: pre-wrap;
}
/* Flush card (no padding, table fills edge-to-edge) */
.card-flush {
padding: 0;
overflow: hidden;
}
/* Backup screen */
#backup-job-info {
margin-bottom: 8px;
}
#backup-elapsed {
margin-bottom: 12px;
}
.job-info-row {
display: flex;
align-items: baseline;
gap: 8px;
overflow: hidden;
}
.job-info-name {
font-weight: 600;
flex-shrink: 0;
white-space: nowrap;
}
.job-info-file {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
min-width: 0;
}
.job-info-eta {
margin-top: 2px;
}
/* Config screen */
#unsaved-indicator {
color: var(--warning);
font-size: 13px;
}
#btn-next {
margin-left: auto;
}
/* Job edit screen */
#btn-job-delete {
margin-left: auto;
}
.excludes-section {
margin-bottom: 14px;
}
.excludes-section-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 6px;
}
.excludes-label {
font-weight: 500;
font-size: 13px;
color: var(--text-muted);
}
.excludes-hint {
font-size: 12px;
color: var(--text-muted);
}
.excludes-tree {
border: 1px solid var(--border);
border-radius: var(--radius);
max-height: 340px;
overflow-y: auto;
background: var(--surface);
margin-bottom: 6px;
}
.tree-row {
display: flex;
align-items: center;
gap: 4px;
padding: 3px 8px;
border-bottom: 1px solid #f0f0f0;
min-height: 26px;
}
.tree-row:last-child {
border-bottom: none;
}
.tree-row:hover {
background: #f5f7ff;
}
.tree-check {
flex-shrink: 0;
cursor: pointer;
}
.tree-toggle {
border: none;
background: transparent;
padding: 0;
cursor: pointer;
font-size: 10px;
color: var(--text-muted);
flex-shrink: 0;
width: 18px;
text-align: center;
line-height: 1;
}
.tree-toggle:hover {
color: var(--accent);
background: transparent;
}
.tree-toggle-ph {
display: inline-block;
width: 18px;
flex-shrink: 0;
}
.tree-icon {
font-size: 13px;
flex-shrink: 0;
line-height: 1;
}
.tree-name {
flex: 1;
font-size: 13px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.tree-size {
font-size: 12px;
color: var(--text-muted);
font-family: monospace;
flex-shrink: 0;
min-width: 3.5em;
text-align: right;
}
.tree-node.is-excluded > .tree-row .tree-name {
text-decoration: line-through;
color: var(--text-muted);
}
.tree-node.is-excluded > .tree-row .tree-icon,
.tree-node.is-excluded > .tree-row .tree-size {
opacity: 0.5;
}
.tree-msg {
padding: 10px 14px;
font-size: 13px;
color: var(--text-muted);
display: flex;
align-items: center;
gap: 6px;
}
.tree-msg.tree-error {
color: var(--danger);
}
.presets-row {
display: flex;
align-items: flex-start;
gap: 6px;
margin: 6px 0 8px;
flex-wrap: wrap;
}
.presets-row-label {
font-size: 12px;
color: var(--text-muted);
padding-top: 3px;
flex-shrink: 0;
}
.presets-chips {
display: flex;
flex-wrap: wrap;
gap: 4px;
}
.preset-chip {
font-size: 12px;
padding: 2px 8px;
border-radius: 10px;
border: 1px solid var(--border);
background: var(--surface);
color: var(--text-muted);
cursor: pointer;
line-height: 1.5;
}
.preset-chip:hover {
border-color: var(--accent);
color: var(--accent);
background: var(--surface);
}
.preset-chip.active {
background: var(--accent);
border-color: var(--accent);
color: white;
}
.preset-chip.active:hover {
background: var(--accent-hover);
border-color: var(--accent-hover);
color: white;
}
.excludes-patterns-label {
display: block;
margin-top: 4px;
margin-bottom: 4px;
}
/* Format screen */
#format-confirm-label {
color: var(--danger);
}
#format-cmd-preview {
margin-top: 8px;
}
#format-step-label {
margin-bottom: 8px;
font-size: 14px;
}
details {
margin-bottom: 14px;
}
/* Misc */
.muted {
color: var(--text-muted);
font-size: 14px;
}
p.muted {
margin-bottom: 12px;
}
.card > p {
margin-bottom: 12px;
}
.error-text {
color: var(--danger);
font-size: 15px;
margin-top: 6px;
}
.success-text {
color: var(--success);
font-size: 15px;
}
@keyframes spin {
to {
transform: rotate(360deg);
}
}
.spinner {
display: inline-block;
width: 12px;
height: 12px;
border-radius: 50%;
border: 2px solid currentColor;
border-top-color: transparent;
animation: spin 0.6s linear infinite;
vertical-align: middle;
}
details summary {
cursor: pointer;
font-size: 15px;
color: var(--text-muted);
user-select: none;
}
details[open] summary {
margin-bottom: 8px;
}
.meta-row {
display: flex;
align-items: center;
gap: 16px;
margin-bottom: 14px;
flex-wrap: wrap;
}
.meta-row .muted {
font-size: 14px;
}
/* Direction arrows */
.dir-arrow {
color: var(--accent);
font-weight: 600;
margin: 0 6px;
font-family: inherit;
}
.direction-cell {
white-space: normal;
word-break: break-all;
}
/* Restore: subpath input indented under each job checkbox */
.restore-job-entry {
margin-bottom: 6px;
}
.restore-subpath-row {
padding-left: 24px;
margin-top: 4px;
display: flex;
align-items: center;
gap: 8px;
}
.restore-subpath-row .subpath-label {
font-size: 13px;
color: var(--text-muted);
white-space: nowrap;
flex-shrink: 0;
}
.restore-subpath-row input {
font-size: 13px;
padding: 4px 8px;
flex: 1;
}
|