:root {
  color-scheme: light;
  --bg: #f4f3ee;
  --surface: #ffffff;
  --surface-soft: #f8f7f3;
  --ink: #1c2421;
  --muted: #69726e;
  --line: #dedfd9;
  --line-strong: #c8cbc3;
  --accent: #0c765e;
  --accent-dark: #075846;
  --accent-soft: #dff1ea;
  --amber: #b86a14;
  --amber-soft: #fbeddc;
  --danger: #b13c34;
  --shadow: 0 16px 40px rgba(31, 42, 37, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background:
    linear-gradient(rgba(28, 36, 33, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28, 36, 33, 0.025) 1px, transparent 1px),
    var(--bg);
  background-size: 28px 28px;
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
  font-size: 14px;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.9;
}

.topbar {
  min-height: 64px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
}

.brand,
.topbar-meta,
.topbar-chip,
.connection,
.toolbar,
.toolbar-group,
.location-row,
.breadcrumbs,
.sidebar-footer,
.panel-heading,
.modal-heading,
.modal-actions,
.input-with-button,
.side-link,
.view-link {
  display: flex;
  align-items: center;
}

.brand {
  gap: 11px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
}

.topbar-meta {
  min-width: 0;
  justify-content: flex-end;
  gap: 9px;
}

.topbar-chip {
  min-height: 34px;
  padding: 4px 10px;
  gap: 7px;
  color: #34413b;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 12px;
  white-space: nowrap;
}

.topbar-chip svg {
  width: 15px;
  height: 15px;
  color: var(--accent-dark);
}

.account-chip span,
.quota-chip strong {
  font-weight: 700;
}

.quota-chip strong {
  color: var(--accent-dark);
}

.quota-chip small {
  color: var(--muted);
  font-size: 11px;
}

.topbar-logout {
  width: 34px;
  height: 34px;
  padding: 0;
  flex: none;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.topbar-logout:hover {
  color: var(--danger);
  background: #fff3f1;
  border-color: #e7c4bf;
}

.topbar-logout svg {
  width: 16px;
  height: 16px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: white;
  background: var(--ink);
  border-radius: 7px;
}

.connection {
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
}

.connection.online .status-dot {
  background: var(--accent);
}

.connection.offline .status-dot {
  background: var(--danger);
}

.app-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: calc(100vh - 64px);
}

.sidebar {
  padding: 24px 16px;
  border-right: 1px solid var(--line);
  background: rgba(248, 247, 243, 0.86);
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.sidebar-label,
.eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sidebar-label {
  margin: 0 10px 8px;
}

.sidebar-label:not(:first-child) {
  margin-top: 15px;
}

.view-link {
  width: 100%;
  gap: 10px;
  padding: 10px 11px;
  color: #39433f;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 7px;
  text-align: left;
}

.view-link:hover {
  background: var(--surface);
  border-color: var(--line);
}

.view-link.active {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
  font-weight: 700;
}

.nav-count {
  min-width: 22px;
  margin-left: auto;
  padding: 1px 6px;
  color: var(--muted);
  background: #e6e8e3;
  border-radius: 999px;
  font-size: 11px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.view-link.active .nav-count {
  color: var(--ink);
  background: #fff;
}

.side-link {
  width: 100%;
  gap: 10px;
  padding: 10px 11px;
  color: #39433f;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 7px;
  text-align: left;
}

.side-link:hover {
  background: var(--surface);
  border-color: var(--line);
}

.side-link.active {
  color: var(--accent-dark);
  background: var(--accent-soft);
  border-color: #c4ded4;
  font-weight: 700;
}

.channel-status {
  margin: 4px 0 2px;
  padding: 9px 10px;
  display: grid;
  gap: 3px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 7px;
}

.channel-row {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #43504a;
  font-size: 12px;
}

.channel-row svg {
  width: 14px;
  height: 14px;
  color: var(--accent-dark);
}

.channel-row strong {
  margin-left: auto;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.channel-status small {
  margin: 0 0 4px 20px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

.channel-status small:last-child {
  margin-bottom: 0;
}

.workspace-tree-wrap {
  min-height: 0;
  margin: 1px 0 10px;
  flex: 1 1 auto;
  overflow: auto;
}

.workspace-tree {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.workspace-tree-row {
  min-width: 0;
  min-height: 32px;
  padding-left: calc(var(--tree-depth) * 14px);
  display: flex;
  align-items: center;
  gap: 1px;
}

.tree-toggle {
  width: 24px;
  height: 28px;
  padding: 0;
  flex: none;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 5px;
}

.tree-toggle:hover {
  color: var(--ink);
  background: var(--surface);
}

.tree-toggle:disabled {
  cursor: default;
  opacity: 0.28;
}

.tree-toggle svg {
  width: 14px;
  height: 14px;
}

.tree-folder {
  min-width: 0;
  min-height: 30px;
  padding: 5px 8px;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #43504a;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  text-align: left;
}

.tree-folder:hover {
  color: var(--ink);
  background: var(--surface);
  border-color: var(--line);
}

.tree-folder.active {
  color: var(--accent-dark);
  background: var(--accent-soft);
  border-color: #b8d8cd;
  font-weight: 700;
}

.tree-folder svg {
  width: 15px;
  height: 15px;
  flex: none;
  color: #9a6d22;
}

.tree-folder.active svg {
  color: var(--accent);
}

.tree-folder span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tree-message {
  margin: 2px 0 3px;
  padding-left: calc(25px + var(--tree-depth) * 14px);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.tree-message.error {
  color: var(--danger);
}

.tree-message.empty {
  opacity: 0.72;
}

.sidebar-footer {
  margin-top: auto;
  padding: 14px 10px;
  border-top: 1px solid var(--line);
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.sidebar-footer strong {
  color: var(--ink);
  font-weight: 600;
  max-width: 66%;
  text-align: right;
  overflow-wrap: anywhere;
}

.tailscale-mobile-strip {
  display: none;
}

.main-shell {
  min-width: 0;
  padding: 24px 28px 432px;
  scroll-padding-bottom: 400px;
}

.app-view {
  min-width: 0;
}

.location-row {
  gap: 18px;
  justify-content: space-between;
  align-items: flex-start;
}

.breadcrumbs {
  min-width: 0;
  flex-wrap: wrap;
  gap: 4px;
  min-height: 40px;
}

.crumb {
  padding: 5px 7px;
  border: 0;
  border-radius: 5px;
  color: var(--muted);
  background: transparent;
  white-space: nowrap;
}

.crumb:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.8);
}

.crumb.current {
  color: var(--ink);
  font-weight: 700;
}

.crumb-separator {
  color: #a0a7a3;
}

.path-form {
  width: min(520px, 52vw);
  display: flex;
  gap: 8px;
}

.path-form input,
.field input,
.field select,
.field textarea {
  width: 100%;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  outline: none;
}

.path-form input {
  height: 38px;
  padding: 0 12px;
}

.field input,
.field select {
  height: 40px;
  padding: 0 12px;
}

.field textarea {
  padding: 11px 12px;
  line-height: 1.6;
  resize: vertical;
}

.path-form input:focus,
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(12, 118, 94, 0.12);
}

.toolbar {
  margin: 14px 0 18px;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.toolbar-group {
  gap: 8px;
}

.file-controls {
  min-width: 280px;
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 1 1 280px;
}

.compact-search {
  min-width: 160px;
  height: 38px;
  padding: 0 0 0 10px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  flex: 1;
  overflow: hidden;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.compact-search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(12, 118, 94, 0.12);
}

.compact-search svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.compact-search input {
  width: 100%;
  height: 100%;
  min-width: 0;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: none;
}

.search-clear {
  width: 28px;
  height: 28px;
  padding: 0;
  flex: none;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 5px;
}

.search-clear:hover {
  color: var(--ink);
  background: var(--surface-soft);
}

.search-clear svg {
  width: 14px;
  height: 14px;
}

.search-submit {
  height: 36px;
  padding: 0 12px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: var(--accent-dark);
  background: var(--accent-soft);
  border: 0;
  border-left: 1px solid #c4ded4;
  border-radius: 0;
  font-weight: 700;
}

.search-submit:hover {
  color: #fff;
  background: var(--accent);
}

.search-submit svg {
  width: 15px;
  height: 15px;
}

.search-match {
  padding: 0 1px;
  color: inherit;
  background: #f4d58d;
  border-radius: 2px;
}

.search-active .panel-heading {
  background: linear-gradient(90deg, rgba(12, 118, 94, 0.08), transparent 62%);
}

.search-first-hit {
  animation: search-hit 850ms ease;
}

@keyframes search-hit {
  0% {
    background: rgba(12, 118, 94, 0.22);
  }
  100% {
    background: transparent;
  }
}

.file-controls select {
  height: 38px;
  padding: 0 30px 0 10px;
  color: #3e4944;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  outline: none;
}

.file-controls select:focus {
  border-color: var(--accent);
}

.selection-bar {
  min-height: 48px;
  margin: -7px 0 16px;
  padding: 7px 9px 7px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--accent-dark);
  background: #edf7f2;
  border: 1px solid #bcdacf;
  border-radius: 7px;
}

.selection-actions {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.selection-button {
  min-height: 32px;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #31453e;
  background: var(--surface);
  border: 1px solid #c8d8d1;
  border-radius: 5px;
  font-weight: 650;
}

.selection-button:hover {
  border-color: #8eb6a6;
  background: #fafffc;
}

.selection-button.danger {
  color: var(--danger);
  border-color: #e7c4bf;
}

.selection-button.danger:hover {
  background: #fff3f1;
}

.selection-button svg {
  width: 16px;
  height: 16px;
}

.primary-button,
.secondary-button,
.danger-button,
.icon-button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 7px;
  white-space: nowrap;
}

.primary-button,
.secondary-button,
.danger-button {
  padding: 0 13px;
  border: 1px solid transparent;
  font-weight: 650;
}

.primary-button {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.primary-button:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.secondary-button {
  color: var(--ink);
  background: var(--surface);
  border-color: var(--line-strong);
}

.secondary-button:hover {
  border-color: #aeb5af;
  background: #fbfbf8;
}

.danger-button {
  color: #fff;
  background: var(--danger);
  border-color: var(--danger);
}

.danger-button:hover {
  background: #942d27;
  border-color: #942d27;
}

.primary-button:disabled,
.secondary-button:disabled,
.danger-button:disabled,
.icon-button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.icon-button {
  width: 38px;
  padding: 0;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line-strong);
}

.icon-button:hover {
  color: var(--ink);
  border-color: #abb2ac;
}

.icon-button.subtle {
  width: 34px;
  min-height: 34px;
  border-color: transparent;
  background: transparent;
}

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 18px;
  align-items: start;
}

.workspace-grid.file-only-grid {
  grid-template-columns: minmax(0, 1fr);
}

.file-panel,
.jobs-panel {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 3px 14px rgba(31, 42, 37, 0.045);
}

.file-panel {
  overflow: hidden;
  position: relative;
}

.jobs-panel {
  padding: 17px;
}

.transfer-page-heading {
  margin-bottom: 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.transfer-page-heading h1 {
  margin: 4px 0 0;
  font-size: 28px;
  letter-spacing: 0;
}

.transfer-page-copy {
  margin: 7px 0 0;
  color: var(--muted);
}

.speed-channel-heading {
  min-height: 40px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-size: 12px;
}

.speed-channel-toggle {
  min-height: 34px;
  padding: 6px 11px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--accent-dark);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  font-weight: 650;
}

.speed-channel-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.speed-channel-toggle svg {
  width: 15px;
  height: 15px;
  transition: transform 0.2s ease;
}

.speed-channel-toggle.collapsed svg {
  transform: rotate(180deg);
}

.transfer-channel-config {
  margin-bottom: 14px;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 110px minmax(260px, 1fr) auto;
  gap: 10px;
  align-items: end;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.transfer-channel-field,
.transfer-return-field {
  margin-top: 0;
}

.transfer-return-field .input-with-button {
  align-items: center;
}

.channel-refresh-button {
  margin-bottom: 0;
}

.channel-availability {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 11px;
}

.download-channel-panel {
  margin-bottom: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

#transfersView .download-channel-panel .channel-panel-heading {
  min-height: 58px;
  padding: 14px 0.5cm 13px;
}

.channel-select-all {
  margin-top: 0;
}

.channel-account-list {
  padding: 0 24px 14px;
  display: grid;
  gap: 7px;
  overflow-x: auto;
}

.channel-column-header {
  min-width: 520px;
  padding: 5px 10px 3px;
  display: grid;
  grid-template-columns: 22px minmax(160px, 1.4fr) minmax(120px, 1fr) minmax(120px, 1fr);
  align-items: center;
  gap: 8px;
}

.channel-column-header strong {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.25;
  text-align: center;
}

.channel-account-row {
  min-width: 520px;
  padding: 9px 10px;
  display: grid;
  grid-template-columns: 22px minmax(160px, 1.4fr) minmax(120px, 1fr) minmax(120px, 1fr);
  align-items: center;
  gap: 8px;
  color: #3f4b45;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.channel-account-row.selected {
  border-color: #b8d8cd;
}

.channel-account-row.virtual {
  background: transparent;
}

.channel-account-row input {
  width: 17px;
  height: 17px;
  accent-color: var(--accent);
}

.channel-account-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
}

.channel-metric {
  min-width: 0;
  display: grid;
  gap: 2px;
  font-size: 10px;
  justify-items: center;
  text-align: center;
}

.channel-metric small {
  color: var(--muted);
}

.channel-metric strong {
  color: var(--ink);
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.channel-state {
  padding: 3px 6px;
  color: var(--muted);
  background: #e8ebe6;
  border-radius: 999px;
  font-size: 10px;
  text-align: center;
  white-space: nowrap;
}

.channel-state.active {
  color: var(--accent-dark);
  background: var(--accent-soft);
}

.channel-capacity-wrap {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.channel-capacity-wrap small {
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}

.channel-capacity-track {
  height: 8px;
  overflow: hidden;
  background: #aeb4b0;
  border-radius: 999px;
}

.channel-capacity-fill {
  width: 0;
  height: 100%;
  display: block;
  background: var(--accent);
  border-radius: inherit;
  transition: width 0.25s ease;
}

.channel-overall {
  margin: 0 14px 14px;
  padding: 10px 12px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.channel-overall-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #3e4a44;
}

.channel-overall-head span {
  color: var(--muted);
  font-size: 11px;
}

.channel-overall .channel-capacity-track {
  margin-top: 7px;
}

.channel-overall small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
}

.transfer-page-panel {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 3px 14px rgba(31, 42, 37, 0.045);
}

.transfer-page-panel .jobs-list {
  margin-top: 4px;
}

.transfer-page-panel .job-item {
  padding: 16px 0;
}

.transfer-page-panel .job-log {
  max-height: 150px;
}

.panel-heading {
  min-height: 73px;
  padding: 15px 18px;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}

.panel-heading.compact {
  min-height: auto;
  padding: 0 0 13px;
}

.panel-heading h1,
.panel-heading h2,
.modal-heading h2 {
  margin: 4px 0 0;
  letter-spacing: 0;
}

.panel-heading h1 {
  font-size: 22px;
  overflow-wrap: anywhere;
}

.panel-heading h2,
.modal-heading h2 {
  font-size: 18px;
  overflow-wrap: anywhere;
}

.item-count {
  flex: none;
  padding: 5px 9px;
  color: var(--muted);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 12px 17px;
  border-bottom: 1px solid #ecece7;
  text-align: left;
}

th {
  color: var(--muted);
  background: #faf9f5;
  font-size: 12px;
  font-weight: 700;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover {
  background: #fbfcf9;
}

tbody tr.selected {
  background: #eef7f3;
}

.checkbox-column {
  width: 40px;
  padding-right: 5px;
  text-align: center;
}

.checkbox-column input,
.row-checkbox {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.type-column {
  width: 110px;
}

.size-column {
  width: 110px;
}

.action-column {
  width: 130px;
  text-align: right;
}

.name-cell {
  min-width: 220px;
}

.file-name {
  max-width: 760px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  text-align: left;
  overflow-wrap: anywhere;
}

.file-name:not(:disabled):hover {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.file-name:disabled {
  cursor: default;
}

.file-icon {
  width: 31px;
  height: 31px;
  flex: none;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.file-icon.folder {
  color: #925b12;
  background: var(--amber-soft);
  border-color: #ecd3b2;
}

.kind-label {
  color: var(--muted);
  font-size: 13px;
}

.row-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 8px;
  color: var(--accent-dark);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 5px;
  font-weight: 650;
}

.row-action:hover {
  background: var(--accent-soft);
  border-color: #c4ded4;
}

.row-action svg {
  width: 16px;
  height: 16px;
}

.row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
}

.row-icon-button {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 5px;
}

.row-icon-button:hover {
  color: var(--danger);
  background: #f9e5e2;
  border-color: #edc8c4;
}

.row-icon-button svg {
  width: 16px;
  height: 16px;
}

.size-text {
  color: #45504b;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.folder-size.pending {
  color: var(--muted);
}

.table-message,
.empty-message {
  color: var(--muted);
}

.selection-marquee {
  position: absolute;
  z-index: 5;
  pointer-events: none;
  background: rgba(12, 118, 94, 0.13);
  border: 1px solid rgba(12, 118, 94, 0.72);
  border-radius: 3px;
}

.selection-mode table {
  user-select: none;
}

.table-message {
  padding: 42px 20px !important;
  text-align: center;
}

.empty-message {
  margin: 18px 0 2px;
  text-align: center;
  font-size: 13px;
}

.jobs-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.completed-job-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.completed-job-head,
.completed-job-row {
  min-width: 820px;
  display: grid;
  grid-template-columns:
    28px minmax(170px, 1.35fr) minmax(108px, 0.65fr)
    minmax(200px, 1.2fr) 82px 88px 30px;
  gap: 10px;
  align-items: center;
}

.completed-job-head {
  min-height: 38px;
  padding: 5px 10px;
  color: var(--muted);
  background: var(--surface-soft);
  font-size: 11px;
  font-weight: 650;
}

.completed-job-row {
  min-height: 54px;
  padding: 7px 10px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.completed-job-row:hover {
  background: #f7faf8;
}

.completed-job-name {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
}

.completed-job-name > span:last-child,
.completed-job-location {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.completed-job-icon {
  width: 30px;
  height: 30px;
  flex: none;
  display: grid;
  place-items: center;
  color: var(--accent-dark);
  background: var(--accent-soft);
  border-radius: 6px;
}

.completed-job-icon svg {
  width: 15px;
  height: 15px;
}

.completed-job-location {
  color: var(--muted);
}

.completed-job-location-cell {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
}

.completed-job-location-cell .completed-job-location {
  min-width: 0;
  flex: 1;
}

.completed-location-button {
  flex: none;
  padding: 3px 4px;
  white-space: nowrap;
  font-size: 11px;
}

@media (max-width: 860px) {
  .completed-job-table {
    overflow-x: auto;
  }
}

.job-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  margin: 0 0 9px;
  padding: 3px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 7px;
}

.job-record-actions {
  min-height: 43px;
  margin-bottom: 10px;
  padding: 7px 9px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 7px;
}

.compact-check {
  margin: 0;
  gap: 7px;
}

.job-selection-count {
  margin-right: auto;
  color: var(--muted);
  font-size: 12px;
}

.job-select {
  flex: none;
  display: grid;
  place-items: center;
}

.job-select input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.job-heading-left {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.job-record-delete {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 5px;
}

.job-record-delete:hover {
  color: var(--danger);
  background: #f9e5e2;
  border-color: #edc8c4;
}

.job-record-delete svg {
  width: 16px;
  height: 16px;
}

.job-tab {
  min-height: 34px;
  padding: 5px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 5px;
  font-weight: 650;
}

.job-tab:hover {
  color: var(--ink);
}

.job-tab.active {
  color: var(--ink);
  background: var(--surface);
  border-color: var(--line-strong);
  box-shadow: 0 1px 3px rgba(31, 42, 37, 0.08);
}

.job-tab-count {
  min-width: 20px;
  padding: 1px 5px;
  color: var(--muted);
  background: #e9ebe6;
  border-radius: 999px;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.job-item {
  padding: 12px 0;
  border-bottom: 1px solid #ecece7;
}

.job-item:last-child {
  border-bottom: 0;
}

.job-topline {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.job-path {
  margin: 0;
  min-width: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  overflow-wrap: anywhere;
}

.job-title-text {
  font-weight: 700;
}

.source-deleted .job-title-text {
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

.source-deleted .job-extension {
  opacity: 0.65;
  text-decoration: line-through;
}

.job-source-deleted {
  flex: none;
  padding: 2px 6px;
  color: var(--danger);
  background: #f9e5e2;
  border: 1px solid #edc8c4;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
}

.job-source-note {
  margin: 7px 0 0;
  padding: 7px 9px;
  color: var(--muted);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 12px;
}

.job-source-note.deleted {
  color: #7b2f2a;
  background: #fff3f1;
  border-color: #e7c4bf;
}

.job-kind,
.job-extension {
  display: inline-flex;
  align-items: center;
  flex: none;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
}

.job-kind {
  min-height: 22px;
  padding: 1px 6px;
  gap: 4px;
}

.job-kind svg {
  width: 13px;
  height: 13px;
}

.job-kind.folder {
  color: #86520f;
  background: var(--amber-soft);
}

.job-kind.file {
  color: #315c50;
  background: var(--accent-soft);
}

.job-kind.transfer {
  color: #4b5562;
  background: #e8edf2;
}

.job-extension {
  padding: 2px 5px;
  color: #55625c;
  background: #edf0ec;
  border: 1px solid #d6dbd6;
  text-transform: lowercase;
}

.job-status {
  flex: none;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.job-status.running,
.job-status.queued {
  color: var(--amber);
  background: var(--amber-soft);
}

.job-status.completed {
  color: var(--accent-dark);
  background: var(--accent-soft);
}

.job-status.failed {
  color: var(--danger);
  background: #f9e5e2;
}

.job-meta {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.transfer-progress {
  margin-top: 11px;
  padding: 11px 12px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 7px;
}

.task-progress-summary {
  margin-top: 11px;
  padding: 11px 12px;
  background: #f5f8f5;
  border: 1px solid #d4ddd7;
  border-radius: 7px;
}

.task-progress-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
}

.task-progress-title strong {
  color: var(--ink);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.task-progress-grid {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px 20px;
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.task-progress-grid strong {
  color: #34413b;
}

.transfer-progress-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.transfer-percent {
  font-size: 22px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.transfer-bytes {
  color: #4c5752;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.task-total-pending {
  margin-left: 6px;
  padding: 2px 6px;
  color: var(--amber);
  background: var(--amber-soft);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
}

.transfer-progress-track {
  height: 8px;
  margin-top: 8px;
  overflow: hidden;
  background: #dfe5e1;
  border-radius: 999px;
}

.transfer-progress-fill {
  width: 0;
  height: 100%;
  display: block;
  background: var(--accent);
  transition: width 0.28s ease;
}

.transfer-progress-fill.indeterminate {
  width: 34%;
  animation: transfer-wait 1.25s ease-in-out infinite;
}

@keyframes transfer-wait {
  0% {
    transform: translateX(-105%);
  }
  50% {
    transform: translateX(105%);
  }
  100% {
    transform: translateX(300%);
  }
}

.transfer-progress-detail {
  margin: 7px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.transfer-progress-detail strong {
  color: #3d4a44;
  font-weight: 650;
}

.job-log {
  max-height: 96px;
  margin: 9px 0 0;
  padding: 8px;
  overflow: auto;
  color: #4f5a55;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  font: 11px/1.45 Consolas, monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.job-failure {
  margin: 10px 0 0;
  padding: 9px 11px;
  color: #7b2f2a;
  background: #fff3f1;
  border: 1px solid #e7c4bf;
  border-radius: 6px;
  font-size: 12px;
}

.job-actions {
  margin-top: 9px;
  display: flex;
  justify-content: flex-end;
}

.link-button {
  padding: 4px 0;
  color: var(--accent-dark);
  background: transparent;
  border: 0;
  font-weight: 700;
}

.modal {
  width: min(560px, calc(100vw - 28px));
  max-height: calc(100vh - 32px);
  padding: 0;
  overflow: auto;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.modal::backdrop {
  background: rgba(22, 30, 27, 0.52);
  backdrop-filter: blur(2px);
}

.modal > form {
  padding: 22px;
}

.small-modal {
  width: min(440px, calc(100vw - 28px));
}

.file-modal {
  width: min(680px, calc(100vw - 28px));
}

.remote-picker-modal {
  width: min(620px, calc(100vw - 28px));
}

.remote-picker {
  padding: 22px;
}

.modal-heading {
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.file-picker {
  min-height: 150px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: var(--accent-dark);
  background: #f0f8f4;
  border: 1px dashed #8eb9aa;
  border-radius: 7px;
  cursor: pointer;
  text-align: center;
}

.file-picker:hover {
  background: #eaf5f0;
  border-color: var(--accent);
}

.file-picker svg {
  width: 28px;
  height: 28px;
}

.file-picker span {
  font-weight: 700;
}

.file-picker small {
  color: var(--muted);
}

.file-picker input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.upload-picker-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
}

.upload-picker-single {
  grid-template-columns: 1fr;
}

.upload-picker-option {
  min-height: 128px;
  padding: 16px 13px;
}

.upload-picker-option span {
  line-height: 1.35;
}

.upload-picker-option small {
  font-size: 11px;
  line-height: 1.45;
}

.upload-drop-zone {
  min-height: 52px;
  margin-top: 10px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
  background: var(--surface-soft);
  border: 1px dashed var(--line-strong);
  border-radius: 7px;
  text-align: center;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.upload-drop-zone.active {
  color: var(--accent-dark);
  background: #eaf5f0;
  border-color: var(--accent);
}

.upload-drop-zone svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.upload-multi-folder-button {
  width: 100%;
  margin-top: 8px;
}

.upload-selection-row {
  margin: 11px 0 4px;
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.selected-files {
  min-height: 42px;
  padding: 10px 12px;
  flex: 1;
  min-width: 0;
  color: var(--muted);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow-wrap: anywhere;
}

.upload-selection-summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  color: #42504a;
}

.upload-selection-summary strong {
  color: var(--ink);
}

.upload-selection-summary span {
  font-size: 11px;
  text-align: right;
}

.upload-selection-list {
  max-height: 82px;
  margin: 8px 0 0;
  padding: 0;
  overflow: auto;
  list-style: none;
}

.upload-selection-list li {
  padding: 2px 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.field {
  display: grid;
  gap: 7px;
  margin-top: 14px;
}

.field > span {
  color: #404a45;
  font-weight: 650;
}

.field-hint {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.field-hint.detected {
  color: var(--accent-dark);
  font-weight: 650;
}

.share-url-grid {
  grid-template-columns: minmax(0, 1fr) 116px;
}

.check-row {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #46504b;
}

.check-row input {
  width: 17px;
  height: 17px;
  accent-color: var(--accent);
}

.form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  align-items: end;
}

.aligned-check {
  min-height: 40px;
  margin-top: 14px;
}

.remote-path-box {
  margin-bottom: 15px;
  padding: 11px 12px;
  color: #3e4944;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.remote-path-box.danger-path {
  color: #732b26;
  background: #fff5f3;
  border-color: #e7c4bf;
}

.delete-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.success-content {
  padding: 26px 24px 22px;
  text-align: center;
}

.success-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--accent);
  border-radius: 50%;
}

.success-icon svg {
  width: 28px;
  height: 28px;
}

.success-content h2 {
  margin: 5px 0 0;
  font-size: 24px;
}

.success-copy {
  margin: 8px 0 15px;
  color: var(--muted);
}

.success-modal .modal-actions {
  justify-content: center;
}

.input-with-button {
  gap: 8px;
}

.input-with-button input {
  min-width: 0;
}

.picker-breadcrumbs {
  min-height: 32px;
  margin-bottom: 8px;
}

.picker-path {
  padding: 9px 11px;
  color: var(--muted);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow-wrap: anywhere;
}

.picker-list {
  min-height: 150px;
  max-height: 340px;
  margin-top: 10px;
  padding: 4px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.local-folder-path {
  display: flex;
  align-items: center;
  gap: 8px;
}

.local-folder-path input {
  min-width: 0;
  height: 38px;
  padding: 0 11px;
  flex: 1;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  outline: none;
}

.local-folder-path input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(12, 118, 94, 0.12);
}

.local-folder-drive-select {
  width: 160px;
  min-height: 30px;
  margin-top: 0;
  padding: 0 28px 0 9px;
  flex: none;
  color: #46524c;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  outline: none;
}

.local-folder-navigation {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.local-folder-up-button {
  min-height: 30px;
  padding: 3px 8px;
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #46524c;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 5px;
}

.local-folder-up-button:hover {
  color: var(--accent-dark);
  border-color: #9ec4b7;
}

.local-folder-up-button svg {
  width: 14px;
  height: 14px;
}

.local-folder-breadcrumbs {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 2px;
  overflow-x: auto;
  white-space: nowrap;
}

.local-folder-crumb {
  padding: 4px 6px;
  flex: none;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 4px;
}

.local-folder-crumb:hover {
  color: var(--accent-dark);
  background: var(--accent-soft);
}

.local-folder-crumb.current {
  color: var(--ink);
  font-weight: 700;
}

.local-folder-row {
  min-height: 38px;
  padding: 3px 5px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #ecece7;
}

.local-folder-row:last-child {
  border-bottom: 0;
}

.local-folder-row input {
  width: 17px;
  height: 17px;
  flex: none;
  accent-color: var(--accent);
}

.local-folder-open {
  min-width: 0;
  padding: 6px 5px;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #3f4b45;
  background: transparent;
  border: 0;
  border-radius: 5px;
  text-align: left;
}

.local-folder-open:hover {
  color: var(--accent-dark);
  background: var(--surface-soft);
}

.local-folder-open span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.local-file-open {
  cursor: default;
}

.local-file-open:hover {
  color: #3f4b45;
  background: transparent;
}

.local-file-open small {
  margin-left: auto;
  flex: none;
  color: var(--muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.local-folder-selected {
  max-height: 132px;
  margin-top: 10px;
  padding: 8px;
  overflow: auto;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.local-folder-selected .empty-message {
  margin: 3px 0;
}

.selected-folder-chip {
  min-height: 31px;
  padding: 4px 6px 4px 9px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #3f4b45;
  border-bottom: 1px solid #e5e6e1;
}

.selected-folder-chip:last-child {
  border-bottom: 0;
}

.selected-folder-chip span {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.selected-folder-chip button {
  width: 25px;
  height: 25px;
  padding: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 4px;
}

.selected-folder-chip button:hover {
  color: var(--danger);
  background: #fff0ed;
}

.local-folder-actions {
  flex-wrap: wrap;
}

.picker-item {
  width: 100%;
  min-height: 42px;
  padding: 7px 9px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  text-align: left;
}

.picker-item-row {
  display: flex;
  align-items: center;
  gap: 3px;
}

.picker-item-row .picker-item {
  min-width: 0;
  flex: 1;
}

.picker-rename {
  width: 30px;
  height: 30px;
  padding: 0;
  flex: none;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 5px;
}

.picker-rename:hover {
  color: var(--ink);
  background: var(--surface);
  border-color: var(--line);
}

.picker-rename svg {
  width: 15px;
  height: 15px;
}

.picker-item:hover {
  background: var(--accent-soft);
  border-color: #c4ded4;
}

.picker-item .file-icon {
  width: 28px;
  height: 28px;
}

.picker-item span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.picker-empty {
  padding: 36px 16px;
  color: var(--muted);
  text-align: center;
}

.progress-track {
  height: 8px;
  margin-top: 14px;
  overflow: hidden;
  background: #e4e8e4;
  border-radius: 999px;
}

.progress-track span {
  width: 0;
  height: 100%;
  display: block;
  background: var(--accent);
  transition: width 0.16s ease;
}

.progress-copy {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.modal-actions {
  margin-top: 22px;
  justify-content: flex-end;
  gap: 9px;
}

.hidden {
  display: none !important;
}

.toast-region {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  width: min(360px, calc(100vw - 36px));
  padding: 12px 14px;
  color: #fff;
  background: #24312b;
  border-radius: 7px;
  box-shadow: var(--shadow);
  overflow-wrap: anywhere;
}

.toast.error {
  background: #8c312c;
}

@media (max-width: 1100px) {
  .workspace-grid {
    grid-template-columns: minmax(0, 1fr) 280px;
  }

  .location-row {
    flex-direction: column;
  }

  .path-form {
    width: 100%;
  }

  .transfer-channel-config {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  .topbar {
    padding: 0 16px;
    gap: 10px;
    flex-wrap: wrap;
  }

  .topbar-meta {
    flex-wrap: wrap;
  }

  .app-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    padding: 12px 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
  }

  .sidebar-label,
  .sidebar-footer {
    display: none;
  }

  .side-link,
  .view-link {
    width: auto;
  }

  .workspace-tree-wrap {
    width: 100%;
    max-height: 240px;
    margin: 4px 0 0;
    padding-top: 8px;
    flex: none;
    border-top: 1px solid var(--line);
  }

  .main-shell {
    padding: 18px 16px 426px;
  }

  .workspace-grid {
    grid-template-columns: 1fr;
  }

  .jobs-panel {
    min-height: 150px;
  }

  .transfer-page-heading {
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .tailscale-mobile-strip {
    padding: 8px 14px;
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--muted);
    background: #f6faf8;
    border-bottom: 1px solid var(--line);
    font-size: 12px;
  }

  .tailscale-mobile-strip svg {
    width: 14px;
    height: 14px;
    flex: none;
    color: var(--accent-dark);
  }

  .tailscale-mobile-strip strong {
    min-width: 0;
    margin-left: auto;
    color: var(--ink);
    font-weight: 600;
    text-align: right;
    overflow-wrap: anywhere;
  }

  .topbar {
    padding: 11px 14px;
    align-items: flex-start;
  }

  .topbar-meta {
    width: 100%;
    justify-content: flex-start;
  }

  .connection span:last-child,
  .quota-chip small {
    display: none;
  }

  .quota-chip {
    flex: 1 1 150px;
  }

  .toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .transfer-channel-config {
    grid-template-columns: 1fr;
  }

  .toolbar-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .toolbar-actions button {
    flex: 1 1 140px;
  }

  .file-controls {
    width: 100%;
    min-width: 0;
    flex-basis: 100%;
  }

  .selection-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .selection-actions {
    width: 100%;
  }

  .selection-button {
    flex: 1 1 auto;
    justify-content: center;
  }

  .transfer-page-panel {
    padding: 14px;
  }

  .transfer-progress-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .task-progress-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .type-column,
  .type-cell,
  .kind-label {
    display: none;
  }

  .size-column {
    width: 76px;
  }

  .action-column {
    width: 78px;
    white-space: nowrap;
    padding-left: 6px;
    padding-right: 6px;
  }

  th,
  td {
    padding: 11px 12px;
  }

  .table-wrap {
    overflow-x: hidden;
  }

  table {
    table-layout: fixed;
  }

  .checkbox-column {
    width: 34px;
    padding-left: 6px;
    padding-right: 2px;
  }

  .name-cell,
  .name-cell .file-name {
    min-width: 0;
  }

  .file-name span:last-child {
    overflow-wrap: anywhere;
  }

  .action-label {
    display: none;
  }

  .row-action {
    width: 30px;
    min-width: 30px;
    padding: 0;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .upload-picker-grid {
    grid-template-columns: 1fr;
  }

  .upload-picker-option {
    min-height: 104px;
  }

  .upload-selection-row {
    align-items: stretch;
    flex-direction: column;
  }

  .input-with-button {
    align-items: stretch;
    flex-direction: column;
  }

  .modal > form {
    padding: 18px;
  }

  .remote-picker {
    padding: 18px;
  }
}
