:root { color-scheme: light; --background: #eef0f3; --surface: #ffffff; --surface-alt: #f5f6f8; --surface-hover: #e8ebf0; --border: #d8dce3; --text: #15181e; --muted: #626a77; --accent: #2f6bed; --accent-hover: #2459cc; --accent-soft: #dde7fc; --accent-text: #ffffff; --danger: #c7372c; --danger-soft: #fae2df; --success: #17855a; --success-soft: #d8f1e5; --info: #2f6bed; --info-soft: #dde7fc; --warning: #a86400; --warning-soft: #fcebc9; --track: #e1e4ea; --overlay: rgba(10, 12, 16, 0.6); --radius: 10px; --radius-small: 6px; } @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { color-scheme: dark; --background: #101216; --surface: #171a1f; --surface-alt: #1e2228; --surface-hover: #262b33; --border: #2c313a; --text: #e6e8ec; --muted: #949ba7; --accent: #4f7cff; --accent-hover: #6a90ff; --accent-soft: #1f2a45; --danger: #ef6a5e; --danger-soft: #3a201e; --success: #3bbf80; --success-soft: #17332a; --info: #4f7cff; --info-soft: #1f2a45; --warning: #e2a63c; --warning-soft: #3a2e17; --track: #262b33; } } :root[data-theme="dark"] { color-scheme: dark; --background: #101216; --surface: #171a1f; --surface-alt: #1e2228; --surface-hover: #262b33; --border: #2c313a; --text: #e6e8ec; --muted: #949ba7; --accent: #4f7cff; --accent-hover: #6a90ff; --accent-soft: #1f2a45; --danger: #ef6a5e; --danger-soft: #3a201e; --success: #3bbf80; --success-soft: #17332a; --info: #4f7cff; --info-soft: #1f2a45; --warning: #e2a63c; --warning-soft: #3a2e17; --track: #262b33; } * { box-sizing: border-box; } [hidden] { display: none !important; } html { -webkit-text-size-adjust: 100%; } body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 15px; line-height: 1.45; background: var(--background); color: var(--text); -webkit-tap-highlight-color: transparent; } h2 { font-size: 1rem; font-weight: 650; margin: 0 0 14px; overflow-wrap: anywhere; } input, select, textarea, button { font: inherit; color: inherit; } input:not([type="checkbox"]), select, textarea { width: 100%; min-height: 40px; padding: 8px 12px; border: 1px solid var(--border); border-radius: var(--radius-small); background: var(--surface-alt); color: var(--text); transition: border-color 0.15s ease; } textarea { resize: vertical; line-height: 1.5; } input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; } input:not([type="checkbox"]):disabled { opacity: 0.5; cursor: not-allowed; } input:not([type="checkbox"]):focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); } input[type="checkbox"] { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); flex-shrink: 0; } button { min-height: 40px; padding: 8px 16px; border: 1px solid transparent; border-radius: var(--radius-small); background: var(--surface-alt); font-weight: 600; cursor: pointer; white-space: nowrap; transition: background 0.15s ease, border-color 0.15s ease; } button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; } button:disabled { opacity: 0.45; cursor: not-allowed; } button.primary { background: var(--accent); color: var(--accent-text); } button.primary:hover:not(:disabled) { background: var(--accent-hover); } button.ghost, button.secondary { background: var(--surface); border-color: var(--border); } button.ghost:hover:not(:disabled), button.secondary:hover:not(:disabled) { background: var(--surface-hover); } button.danger { background: var(--surface); color: var(--danger); border-color: var(--danger); } button.danger:hover:not(:disabled) { background: var(--danger-soft); } button.small { min-height: 32px; padding: 4px 12px; font-size: 0.85rem; } button.block { width: 100%; } .muted { color: var(--muted); } .small-text { font-size: 0.85rem; } .mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.85rem; overflow-wrap: anywhere; } .error { color: var(--danger); margin: 10px 0 0; font-size: 0.9rem; } .error:empty { display: none; } .card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; } .field { display: flex; flex-direction: column; gap: 6px; min-width: 0; font-size: 0.8rem; font-weight: 600; color: var(--muted); } .field input, .field select, .field textarea { font-size: 0.95rem; font-weight: 400; } .checkbox { display: flex; align-items: center; gap: 10px; margin: 14px 0 0; min-height: 32px; cursor: pointer; } .brand-mark { font-weight: 800; font-size: 1.1rem; letter-spacing: 0.06em; color: var(--accent); } .chip { font-size: 0.8rem; padding: 3px 10px; border-radius: 999px; background: var(--surface-alt); border: 1px solid var(--border); color: var(--muted); white-space: nowrap; } .chip:empty { display: none; } .login-view { min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 16px; } .login-card { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 16px; padding: 28px; } .login-brand { text-align: center; } .login-brand .brand-mark { font-size: 1.8rem; } .login-brand p { margin: 4px 0 0; } .topbar { position: sticky; top: 0; z-index: 10; background: var(--surface); border-bottom: 1px solid var(--border); padding-top: env(safe-area-inset-top); } .topbar-inner { max-width: 980px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 12px; } .topbar-actions { margin-left: auto; display: flex; gap: 8px; } .banner { background: var(--warning-soft); color: var(--warning); border-bottom: 1px solid var(--border); padding: 10px 16px; text-align: center; font-size: 0.9rem; font-weight: 600; } .content { max-width: 980px; margin: 0 auto; padding: 16px 16px calc(24px + env(safe-area-inset-bottom)); } .download-form { display: flex; align-items: stretch; gap: 10px; } .download-form textarea { flex: 1 1 auto; min-height: 76px; } .download-form button { min-width: 120px; } .download-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; } .list-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; } .list-toolbar h2 { margin: 0; } .list-toolbar-actions { display: flex; align-items: center; gap: 8px; } .list-toolbar-actions select { width: auto; min-height: 32px; padding: 4px 10px; font-size: 0.85rem; } .empty-state { text-align: center; color: var(--muted); padding: 28px 8px; margin: 0; border: 1px dashed var(--border); border-radius: var(--radius-small); } .job-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; } .job { border: 1px solid var(--border); border-radius: var(--radius-small); padding: 14px; background: var(--surface-alt); transition: border-color 0.15s ease; } .job.selected { border-color: var(--accent); } .job-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; } .job-name { font-weight: 600; overflow-wrap: anywhere; } .job-source { font-size: 0.8rem; margin: 2px 0 10px; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } .job-message { font-size: 0.88rem; margin: 10px 0 0; } .job-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; } .badge { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; padding: 3px 9px; border-radius: 4px; white-space: nowrap; flex-shrink: 0; } .badge-ready, .badge-completed { color: var(--success); background: var(--success-soft); } .badge-failed, .badge-cancelled { color: var(--danger); background: var(--danger-soft); } .badge-downloading, .badge-extracting, .badge-moving, .badge-queued { color: var(--info); background: var(--info-soft); } .badge-paused { color: var(--warning); background: var(--warning-soft); } .progress { height: 6px; background: var(--track); border-radius: 3px; overflow: hidden; } .progress-bar { height: 100%; width: 0; background: var(--accent); transition: width 0.4s ease; } .progress-bar.indeterminate { width: 30% !important; animation: slide 1.2s ease-in-out infinite; } @keyframes slide { from { transform: translateX(-100%); } to { transform: translateX(340%); } } .progress-text { font-size: 0.82rem; margin-top: 6px; font-variant-numeric: tabular-nums; } .detail-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; } .file-tree { max-height: 440px; overflow: auto; border: 1px solid var(--border); border-radius: var(--radius-small); padding: 6px; background: var(--surface-alt); -webkit-overflow-scrolling: touch; } .file-tree > .muted { padding: 12px; margin: 0; } .tree-list { list-style: none; margin: 0; padding-left: 0; } .tree-list .tree-list { padding-left: 20px; border-left: 1px solid var(--border); margin-left: 14px; } .tree-row { display: flex; align-items: center; gap: 10px; padding: 4px 8px; min-height: 40px; border-radius: 4px; } .tree-row:hover { background: var(--surface-hover); } .tree-label { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; cursor: pointer; } .tree-name { overflow-wrap: anywhere; } .tree-name.folder { font-weight: 600; } .tree-size { font-size: 0.8rem; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; } .move-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; } #job-detail .checkbox { margin-bottom: 14px; } .history-card { padding: 0; } .history-card summary { display: flex; align-items: center; gap: 10px; padding: 16px 20px; cursor: pointer; font-weight: 650; list-style: none; } .history-card summary::-webkit-details-marker { display: none; } .history-card summary::before { content: "+"; width: 18px; text-align: center; color: var(--muted); font-weight: 700; } .history-card[open] summary::before { content: "-"; } .history-card[open] summary { border-bottom: 1px solid var(--border); } .history-card > :not(summary) { margin-left: 20px; margin-right: 20px; } .history-card > :last-child { margin-bottom: 20px; } .history-list { list-style: none; padding: 0; margin-top: 16px; margin-bottom: 12px; display: flex; flex-direction: column; gap: 8px; max-height: 420px; overflow-y: auto; } .history-list:empty { display: none; } .history-item { border: 1px solid var(--border); border-radius: var(--radius-small); padding: 10px 12px; background: var(--surface-alt); } .history-name { font-weight: 600; overflow-wrap: anywhere; } .history-meta { font-size: 0.8rem; margin: 4px 0 0; overflow-wrap: anywhere; } .history-card .empty-state { margin-top: 16px; margin-bottom: 20px; } .sheet { width: min(560px, calc(100% - 32px)); max-height: calc(100dvh - 48px); padding: 0; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text); } .sheet::backdrop { background: var(--overlay); } .sheet-form { display: flex; flex-direction: column; max-height: calc(100dvh - 48px); } .sheet-header, .sheet-footer { display: flex; align-items: center; gap: 10px; padding: 14px 20px; } .sheet-header { justify-content: space-between; border-bottom: 1px solid var(--border); } .sheet-header h2 { margin: 0; } .sheet-footer { justify-content: flex-end; border-top: 1px solid var(--border); } .sheet-body { padding: 0 24px 8px; overflow-y: auto; -webkit-overflow-scrolling: touch; } .sheet-wide { width: min(860px, calc(100% - 32px)); } .settings-section { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--border); } .settings-section:last-of-type { border-bottom: none; } .settings-intro h3 { margin: 0; font-size: 0.95rem; font-weight: 650; } .settings-intro p { margin: 4px 0 0; font-size: 0.85rem; } .settings-stack { display: flex; flex-direction: column; gap: 10px; } .settings-stack .checkbox { margin: 0; } .settings-narrow { max-width: 240px; } .settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } .field-hint { font-size: 0.78rem; font-weight: 400; color: var(--muted); } .info-list { margin: 0; display: grid; gap: 4px; } .info-list dt { font-size: 0.8rem; font-weight: 600; color: var(--muted); } .info-list dd + dt { margin-top: 8px; } .info-list dd { margin: 0; } @media (max-width: 760px) { .download-options { grid-template-columns: repeat(2, minmax(0, 1fr)); } .download-options .field:first-child { grid-column: 1 / -1; } } @media (max-width: 640px) { body { font-size: 16px; } .card { padding: 16px; } .history-card { padding: 0; } .history-card summary { padding: 14px 16px; } .history-card > :not(summary) { margin-left: 16px; margin-right: 16px; } .content { padding: 12px 12px calc(20px + env(safe-area-inset-bottom)); } .topbar-inner { padding: 8px 12px; gap: 8px; } .topbar-actions button { min-height: 36px; padding: 6px 10px; font-size: 0.85rem; } .download-form { flex-direction: column; } .download-form textarea { width: 100%; } .download-form button, button.block-mobile { width: 100%; min-height: 46px; } .download-options, .move-controls, .settings-grid, .settings-section { grid-template-columns: 1fr; } .settings-section { gap: 12px; padding: 16px 0; } .settings-narrow { max-width: none; } .job-actions button { flex: 1; min-height: 40px; } .file-tree { max-height: 55vh; } .tree-row { min-height: 46px; } .tree-list .tree-list { padding-left: 12px; margin-left: 8px; } .sheet { width: 100%; max-width: none; max-height: 92dvh; margin: auto 0 0; border-radius: 12px 12px 0 0; border-bottom: none; } .sheet-form { max-height: 92dvh; } .sheet-footer { padding-bottom: calc(14px + env(safe-area-inset-bottom)); } .sheet-footer button { flex: 1; min-height: 46px; } } @media (max-width: 380px) { .chip { display: none; } }