:root { --bg: #f7f8fc; --surface: #ffffff; --surface-alt: #f2f4fa; --ink: #1d2433; --muted: #5c6475; --line: #d8deea; --primary: #1f3b7a; --primary-soft: #e8eefc; --accent: #d88a26; --danger: #b42318; --ok: #0f9f6e; --radius: 14px; --radius-sm: 10px; --shadow: 0 18px 48px rgba(22, 32, 58, 0.12); --trans: 180ms ease; } * { box-sizing: border-box; } html, body { width: 100%; height: 100%; } body { margin: 0; font-family: Manrope, "Segoe UI", "PingFang SC", "Hiragino Sans GB", sans-serif; background: radial-gradient(circle at 5% 10%, #edf2ff 0, transparent 38%), radial-gradient(circle at 95% 90%, #fff3e5 0, transparent 36%), var(--bg); color: var(--ink); overflow: hidden; } .app-shell { height: 100vh; display: flex; flex-direction: column; padding: 14px; gap: 10px; } .topbar { min-height: 62px; display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-radius: var(--radius); background: linear-gradient(132deg, #233b75 0%, #405f9f 58%, #355086 100%); color: #fff; box-shadow: var(--shadow); } .brand-title { margin: 0; font-size: 21px; line-height: 1.2; font-weight: 700; letter-spacing: 0.01em; } .brand-subtitle { margin: 2px 0 0; font-size: 13px; color: rgba(255, 255, 255, 0.85); } .topbar-actions { display: flex; align-items: center; gap: 8px; } .topbar .btn { min-height: 38px; border-radius: 999px; padding: 0 14px; font-weight: 600; } .workspace { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 10px; } .summary-strip { display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 10px; } .summary-item { min-height: 58px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); padding: 10px 12px; display: flex; flex-direction: column; justify-content: center; gap: 2px; } .summary-k { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; } .summary-v { font-size: 13px; color: var(--ink); line-height: 1.35; font-weight: 600; } .ops-toolbar { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); padding: 10px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .ops-group { display: flex; gap: 6px; flex-wrap: wrap; } .ops-group-right { margin-left: auto; } .ops-toolbar .btn { min-height: 36px; border-radius: 999px; padding-inline: 14px; font-weight: 600; } .ops-toolbar .btn-primary { background-color: var(--accent); border-color: var(--accent); color: #1e1e1e; } .ops-toolbar .btn-primary:hover { background-color: #c97816; border-color: #c97816; } .transfer-progress { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; } .transfer-progress-label { font-size: 12px; color: var(--muted); max-width: 230px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .panes-grid { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .pane { min-width: 0; min-height: 0; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; } .pane-head { padding: 10px; border-bottom: 1px solid var(--line); background: var(--surface-alt); display: grid; gap: 8px; } .pane-head-title { display: flex; align-items: center; gap: 8px; } .pane-head-text { font-size: 12px; color: var(--muted); font-weight: 600; } .pane-badge { display: inline-flex; align-items: center; justify-content: center; min-height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 700; } .pane-badge-master { background: #e9f0ff; color: #244492; } .pane-badge-slave { background: #fff2e2; color: #9a5c07; } .pane-head-controls { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; } .panel-mode, .connection-select, .path-input { border-radius: 10px; border: 1px solid #cfd7e6; min-height: 38px; font-size: 13px; } .connection-status { display: inline-flex; align-items: center; gap: 6px; padding: 0 8px; min-height: 34px; border: 1px solid #d5dceb; border-radius: 999px; background: #fff; } .status-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; } .status-dot[data-status="connected"] { background: var(--ok); } .status-dot[data-status="disconnected"] { background: var(--danger); } .status-dot[data-status="connecting"] { background: #f59e0b; animation: pulse 1s infinite; } @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } } .status-text { font-size: 12px; font-weight: 600; color: var(--muted); } .slave-targets { border-bottom: 1px solid var(--line); padding: 8px 10px; background: #fcfdff; } .slave-target-search { min-height: 34px; font-size: 12px; border-radius: 9px; border: 1px solid #d3dbeb; margin-bottom: 8px; } .slave-targets-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font-size: 12px; color: var(--muted); font-weight: 700; } .slave-targets-actions { display: flex; gap: 4px; } .btn-xs { min-height: 28px; padding: 0 10px; font-size: 11px; border-radius: 999px; } .slave-target-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 6px; max-height: 110px; overflow: auto; } .slave-target-item { border: 1px solid #d2d9e8; border-radius: 10px; background: #fff; padding: 6px 8px; display: grid; grid-template-columns: 18px 1fr; gap: 6px; align-items: center; min-height: 44px; cursor: pointer; transition: border-color var(--trans), box-shadow var(--trans); } .slave-target-item.is-hidden { display: none; } .slave-target-item:hover { border-color: #8fa4d3; box-shadow: 0 4px 14px rgba(43, 70, 126, 0.13); } .slave-target-item:has(.slave-target-check:checked) { border-color: #5376bf; box-shadow: 0 0 0 1px rgba(83, 118, 191, 0.25); background: #f4f7ff; } .slave-target-main { font-size: 12px; font-weight: 700; color: var(--ink); line-height: 1.2; } .slave-target-sub { grid-column: 2; font-size: 11px; color: var(--muted); line-height: 1.15; font-family: "JetBrains Mono", monospace; } .slave-target-status { grid-column: 2; font-size: 10px; color: #687386; line-height: 1.2; margin-top: 2px; } .slave-target-status-success { color: #0f9f6e; } .slave-target-status-failed { color: #c0392b; } .slave-target-status-running { color: #1f3b7a; } .path-bar { display: grid; grid-template-columns: auto 1fr; gap: 8px; padding: 8px 10px; border-bottom: 1px solid var(--line); } .path-bar .btn { min-height: 38px; min-width: 42px; border-radius: 10px; } .file-list { flex: 1; overflow: auto; background: #fff; } .file-item { display: grid; grid-template-columns: 56px minmax(140px, 1fr) 90px 145px; gap: 8px; align-items: center; min-height: 44px; padding: 7px 10px; border-bottom: 1px solid #eef2f8; cursor: pointer; transition: background-color var(--trans); } .file-item:hover { background: #f4f7ff; } .file-item.selected { background: #1f3b7a; color: #fff; } .file-icon { display: inline-flex; } .file-type { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 22px; border-radius: 999px; background: #edf1f9; color: #273042; font-size: 10px; font-weight: 700; letter-spacing: 0.04em; } .file-type-dir { background: #e8eefc; color: #1f3b7a; } .file-item.selected .file-type, .file-item.selected .file-type-dir { background: rgba(255, 255, 255, 0.2); color: #fff; } .file-name, .file-size, .file-date { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .file-size, .file-date { color: #5e6778; font-size: 12px; } .file-item.selected .file-size, .file-item.selected .file-date, .file-item.selected .file-name { color: #fff; } .panel.active-panel { box-shadow: inset 0 0 0 2px rgba(216, 138, 38, 0.55); } .panel.drag-over, .file-list.drag-over { background: #eef3ff; outline: 2px dashed #4b69a7; outline-offset: -2px; } .status-bar { min-height: 38px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); display: flex; align-items: center; padding: 0 12px; font-size: 12px; color: var(--muted); } .connection-item { padding: 10px 12px; border-bottom: 1px solid #eef2f8; display: flex; justify-content: space-between; align-items: center; gap: 8px; } .connection-name { font-weight: 700; } .connection-info { font-size: 12px; color: var(--muted); } .connection-actions { display: flex; gap: 6px; } .context-menu { position: fixed; z-index: 50; } *:focus-visible { outline: 2px solid #335baf; outline-offset: 2px; } @media (max-width: 1180px) { .summary-strip { grid-template-columns: 1fr 1fr; } .summary-item-wide { grid-column: 1 / -1; } } @media (max-width: 980px) { body { overflow: auto; } .app-shell { height: auto; min-height: 100vh; } .panes-grid { grid-template-columns: 1fr; grid-template-rows: minmax(320px, 1fr) minmax(320px, 1fr); } .file-item { grid-template-columns: 52px 1fr 88px; } .file-date { display: none; } } @media (max-width: 680px) { .topbar { flex-direction: column; align-items: flex-start; gap: 10px; } .topbar-actions { width: 100%; justify-content: flex-start; flex-wrap: wrap; } .summary-strip { grid-template-columns: 1fr; } .ops-group-right, .transfer-progress { margin-left: 0; width: 100%; } .ops-group { width: 100%; } .ops-group .btn, .ops-group-right .btn { flex: 1; min-width: 128px; } .pane-head-controls { grid-template-columns: 1fr; } .connection-status { width: fit-content; } .file-item { grid-template-columns: 44px 1fr; gap: 6px; } .file-size, .file-date { display: none; } .slave-target-list { grid-template-columns: 1fr; } } @media (prefers-reduced-motion: reduce) { * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; } }