:root {
  --bg: #eef5ff;
  --panel: #ffffff;
  --panel-soft: #f7fbff;
  --line: #d4e3f5;
  --text: #15314d;
  --muted: #5f7792;
  --blue: #2477ff;
  --blue-deep: #1859c8;
  --blue-soft: #e7f0ff;
  --green: #218458;
  --amber: #bc7c00;
  --red: #bb3f3f;
  --shadow: 0 12px 28px rgba(36, 119, 255, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f6fbff 0%, var(--bg) 100%);
}

button,
input,
select,
code,
pre,
table {
  font-family: "IBM Plex Mono", "SFMono-Regular", monospace;
}

button,
input,
select {
  border-radius: 10px;
  border: 1px solid var(--line);
  padding: 10px 12px;
  background: #fff;
  color: var(--text);
  font-size: 13px;
}

button {
  cursor: pointer;
}

button:disabled,
input:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

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

button.secondary {
  background: #fff;
  color: var(--blue-deep);
}

button.danger-soft {
  color: var(--red);
  background: #fff6f6;
  border-color: #f0cccc;
}

.link-button {
  background: transparent;
  border: none;
  padding: 0;
  color: var(--blue);
}

.topbar {
  padding: 20px 24px 14px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
}

.workflow-title {
  position: relative;
  display: inline-block;
  margin: 0 0 8px;
}

.workflow-title-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(36, 119, 255, 0.34);
  background: linear-gradient(135deg, #2477ff 0%, #1859c8 100%);
  color: #fff;
  padding: 9px 14px;
  border-radius: 16px;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(36, 119, 255, 0.22);
}

.workflow-title-button:hover .workflow-heading {
  color: #fff;
}

.workflow-title-button:focus-visible {
  outline: 3px solid rgba(36, 119, 255, 0.22);
  outline-offset: 4px;
}

.workflow-heading {
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.18;
}

.workflow-caret {
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  transform: translateY(2px);
}

.workflow-menu {
  position: absolute;
  z-index: 40;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 45px rgba(21, 49, 77, 0.16);
}

.workflow-menu.hidden {
  display: none;
}

.workflow-menu button {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  padding: 10px 12px;
  text-align: left;
  font-weight: 700;
}

.workflow-menu button:hover,
.workflow-menu button.active {
  background: var(--blue-soft);
  color: var(--blue-deep);
}

.subtitle,
.status-text,
.tiny {
  color: var(--muted);
}

.subtitle {
  margin: 0;
  max-width: 780px;
}

.top-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.top-actions button {
  min-height: 50px;
  padding: 13px 18px;
  font-size: 14px;
  font-weight: 600;
}

.top-actions .primary {
  box-shadow: 0 10px 24px rgba(36, 119, 255, 0.18);
}

.top-actions .secondary {
  background: #f8fbff;
}

.top-actions form {
  margin: 0;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
  padding: 0 24px 24px;
  height: calc(100vh - 118px);
}

.main-panel,
.card,
.modal-card,
.login-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.main-panel {
  padding: 18px;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.list-toolbar {
  margin-bottom: 12px;
}

.toolbar,
.table-tools {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.destination-field {
  flex: 1 1 520px;
}

.destination-picker-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.folder-button {
  min-width: 82px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

.field-help {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.selection-meta {
  margin-left: auto;
  display: flex;
  gap: 14px;
  color: var(--muted);
}

.folder-preview {
  display: grid;
  gap: 6px;
  max-height: 180px;
  overflow: auto;
  margin-top: 10px;
}

.folder-preview code {
  display: block;
  padding: 6px 8px;
  border-radius: 9px;
  background: #edf6ff;
  color: var(--text);
}

.browser-toolbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}

.browser-path {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  background: var(--panel-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: "IBM Plex Mono", "SFMono-Regular", monospace;
  font-size: 13px;
}

.browser-table-wrap {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: auto;
  min-height: 320px;
  max-height: 60vh;
}

.browser-table {
  min-width: 720px;
}

.browser-row {
  cursor: pointer;
}

.browser-row:hover {
  background: #f2f8ff;
}

.table-wrap {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: auto;
  flex: 1 1 auto;
  min-height: 420px;
}

table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
}

thead {
  position: sticky;
  top: 0;
  background: #f2f8ff;
  z-index: 20;
}

th,
td {
  padding: 11px 12px;
  text-align: left;
  border-bottom: 1px solid #edf4fd;
  vertical-align: top;
}

th {
  font-weight: 700;
}

.filter-th {
  position: relative;
  white-space: nowrap;
}

.filter-toggle {
  border: none;
  background: transparent;
  padding: 0;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
}

.filter-toggle::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #d5e1f0;
}

.filter-toggle::after {
  content: "v";
  color: var(--muted);
  font-size: 10px;
}

.filter-toggle:hover,
.filter-toggle.active,
.filter-toggle.open {
  color: var(--blue-deep);
}

.filter-toggle.active::before,
.filter-toggle.open::before {
  background: var(--blue);
}

.filter-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 230px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 36px rgba(21, 49, 77, 0.16);
  display: grid;
  gap: 10px;
  z-index: 60;
}

.filter-menu.hidden {
  display: none;
}

.filter-menu label {
  min-width: 0;
  font-size: 12px;
}

.lfz-only-filter {
  display: none !important;
}

.source-mode-lfz .lfz-only-filter {
  display: block !important;
}

.filter-menu input,
.filter-menu select {
  width: 100%;
  min-width: 0;
}

tbody tr:hover {
  background: #fafcff;
}

.folder-name {
  font-weight: 700;
  color: var(--text);
}

.pagination-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.pagination-bar-top {
  margin-top: 0;
  margin-bottom: 12px;
}

.pagination-controls {
  display: grid;
  grid-template-columns: auto auto 280px auto auto;
  align-items: center;
  gap: 8px;
  justify-content: center;
}

.page-list {
  display: flex;
  justify-content: center;
  gap: 6px;
  min-width: 280px;
}

.page-button {
  min-width: 40px;
  padding: 8px 10px;
}

.page-button.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.side-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
  overflow: hidden;
}

.card {
  padding: 14px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  flex: 1 1 0;
}

.card-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.card-head h2,
.modal-head h2 {
  margin: 0;
  font-size: 16px;
}

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

.project-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.lfz-disk-card {
  display: flex;
}

.source-mode-lfz .alerts-card {
  display: none;
}

.source-mode-lfz .card {
  flex: 1 1 0;
}

.summary-grid div,
.sidebar-tile {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel-soft);
  padding: 12px;
  min-width: 0;
}

.summary-grid span {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.summary-grid strong {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
}

.project-tile small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.lfz-disk-button {
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: var(--text);
}

.lfz-disk-button:hover {
  border-color: rgba(36, 119, 255, 0.55);
  background: #eef6ff;
}

.sidebar-list {
  display: grid;
  gap: 10px;
  overflow: auto;
  min-height: 0;
}

.sidebar-tile {
  cursor: pointer;
  width: 100%;
  text-align: left;
}

.tile-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
  min-width: 0;
}

.tile-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  line-height: 1.2;
}

.tile-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.mini-button {
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 11px;
}

.log-button {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  white-space: nowrap;
}

.tile-sub,
.tile-detail,
.status-text,
.tiny {
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.tile-sub {
  color: var(--muted);
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tile-detail {
  color: var(--muted);
  font-size: 11px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tile-chip-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tile-chip-row .chip,
.sidebar-tile .chip {
  font-size: 10px;
  padding: 3px 7px;
}

.job-card.compact {
  display: grid;
  gap: 7px;
}

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  color: var(--blue-deep);
  background: var(--blue-soft);
  border: 1px solid #cfe0ff;
}

.chip.green {
  color: var(--green);
  background: #e7f7ef;
  border-color: #ccebd9;
}

.chip.amber {
  color: var(--amber);
  background: #fff5e1;
  border-color: #f3dfac;
}

.chip.red {
  color: var(--red);
  background: #ffeaea;
  border-color: #f4cccc;
}

.chip.gray {
  color: var(--muted);
  background: #f0f5fb;
  border-color: #dce8f5;
}

.chip.blue {
  color: var(--blue-deep);
  background: #e7f0ff;
  border-color: #cfe0ff;
}

.source-folder-cell,
.backup-cell {
  display: block;
  min-width: 0;
}

.source-folder-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
}

.source-folder-line .folder-name {
  overflow-wrap: anywhere;
}

.folder-owner-inline {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 2px 7px;
  font-size: 10px;
  line-height: 1;
  color: var(--green);
  background: #e7f7ef;
  border: 1px solid #ccebd9;
  white-space: nowrap;
  flex: 0 0 auto;
}

.project-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 5px;
}

.project-chip {
  padding: 2px 7px;
  font-size: 10px;
  line-height: 1;
}

.compact-source-chip {
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.path-button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  max-width: 190px;
}

.path-button {
  padding: 3px 8px;
  font-size: 10px;
  line-height: 1.1;
  font-family: "IBM Plex Mono", "SFMono-Regular", monospace;
}

.path-detail-item {
  display: block;
}

.disk-folder-item {
  align-items: flex-start;
  gap: 12px;
}

.disk-folder-main {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.path-text {
  margin-top: 8px;
  font-family: "IBM Plex Mono", "SFMono-Regular", monospace;
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.progress-box,
.job-progress {
  display: grid;
  gap: 5px;
}

.sync-status {
  display: grid;
  gap: 6px;
  max-width: 230px;
  padding: 7px 10px;
  border: 1px solid #f3dfac;
  border-radius: 12px;
  background: #fff8e8;
}

.sync-status-head {
  color: var(--amber);
  font-size: 12px;
}

.progress-track {
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: #dfebfb;
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), #57c2ff);
}

.progress-label,
.progress-meta {
  color: var(--muted);
  font-size: 11px;
}

.job-progress.compact .progress-track {
  height: 6px;
}

.job-progress.compact .progress-label,
.job-progress.compact .progress-meta {
  font-size: 10px;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(21, 49, 77, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 100;
}

.modal.hidden {
  display: none;
}

.modal-card {
  width: min(1100px, 96vw);
  max-height: 90vh;
  padding: 18px;
  display: flex;
  flex-direction: column;
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.close-button {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 24px;
  padding: 0 4px;
}

.summary-box {
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 12px;
}

.update-status {
  display: flex;
  align-items: center;
  gap: 10px;
}

.spinner {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 2px solid #cfe0ff;
  border-top-color: var(--blue);
  animation: spin 0.8s linear infinite;
}

.spinner.hidden {
  display: none;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.list-box {
  display: grid;
  gap: 8px;
  overflow: auto;
  min-height: 120px;
  max-height: 42vh;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel-soft);
}

.list-box.compact-list {
  align-content: start;
}

.list-item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid #e3eefb;
  border-radius: 12px;
  background: #fff;
  overflow-wrap: anywhere;
}

.error-text {
  color: var(--red);
}

.log-box {
  margin: 0;
  min-height: 260px;
  max-height: 52vh;
  overflow: auto;
  padding: 12px;
  border-radius: 14px;
  background: #102033;
  color: #d9ecff;
  white-space: pre-wrap;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}

.login-page {
  display: grid;
  place-items: center;
}

.login-shell {
  width: min(520px, 92vw);
}

.login-panel {
  padding: 28px;
}

.brand {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
}

.brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--blue);
  font-weight: 800;
}

.brand h1 {
  margin: 0;
}

.login-copy {
  color: var(--muted);
  line-height: 1.5;
}

.fields {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}

.preference-box {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel-soft);
}

.preference-title {
  font-weight: 700;
  color: var(--text);
  font-size: 13px;
}

.login-error {
  color: var(--red);
  background: #fff0f0;
  border: 1px solid #f4cccc;
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 12px;
}

@media (max-width: 980px) {
  .layout {
    grid-template-columns: 1fr;
    height: auto;
  }

  .list-toolbar {
    grid-template-columns: 1fr;
  }

  .side-panel {
    min-height: 640px;
  }
}

/* Archived folders (not on HPC3, backup disk offline) are listed for reference only. */
tr.row-archived td {
  color: var(--muted, #5f7792);
}

tr.row-archived .folder-name {
  color: var(--muted, #5f7792);
}

/* cryoSPARC on-the-fly preprocessing */
.cs-row-chip {
  cursor: pointer;
}

.cs-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
  margin: 10px 0;
}

.cs-form label {
  display: grid;
  gap: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text, #15314d);
}

.cs-form input[type="text"],
.cs-form input[type="number"],
.cs-form select {
  min-height: 32px;
  border: 1px solid var(--line, #d4e3f5);
  border-radius: 8px;
  padding: 4px 8px;
  font-weight: 400;
}

.cs-form .cs-wide {
  grid-column: 1 / -1;
}

.cs-form .cs-inline {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cs-check-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cs-advanced summary {
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 650;
  color: var(--blue-deep, #1859c8);
}

.cs-pipeline {
  display: grid;
  gap: 4px;
  padding: 7px 0;
  border-bottom: 1px dashed var(--line, #d4e3f5);
}

.cs-pipeline-head {
  display: grid;
  gap: 1px;
  min-width: 0;
}

/* Full folder name: BINDER-V8 and BINDER-V9 differ only at the end. */
.cs-pipeline-head strong {
  font-size: 0.8rem;
  overflow-wrap: anywhere;
}

.cs-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
}

.cs-step {
  padding: 1px 6px;
  font-size: 0.66rem;
}

.bad-text {
  color: var(--red, #bb3f3f);
}

.tone-red {
  color: var(--red, #bb3f3f);
}

.tone-amber {
  color: var(--amber, #bc7c00);
}

.tone-green {
  color: var(--green, #218458);
}

#cs-modal .modal-card {
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}

.chip.amber-outline {
  border: 1px solid #e9c46a;
  background: #fffaf0;
  color: var(--amber, #bc7c00);
}

.cs-detail-body {
  display: grid;
  gap: 14px;
  margin: 10px 0;
  max-height: 62vh;
  overflow-y: auto;
}

.cs-entry {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border: 1px solid var(--line, #d4e3f5);
  border-radius: 12px;
}

.cs-entry-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
}

.cs-entry-dir {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cs-steps-table {
  width: 100%;
  border-collapse: collapse;
}

.cs-steps-table td {
  vertical-align: top;
}

.cs-steps-table td.cs-out {
  white-space: nowrap;
  font-size: 0.74rem;
}

.cs-params {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.cs-param {
  border: 1px solid var(--line, #d4e3f5);
  border-radius: 6px;
  padding: 0 6px;
  background: var(--panel-soft, #f7fbff);
  font-size: 0.7rem;
  white-space: nowrap;
}

/* HPC3 page (2026-10-16): one list, actions for both destinations */
.primary.backup-button {
  border-color: #1f8a5b;
  background: #218458;
}

.source-mode-lfz #start-backup {
  display: none;
}

.toolbar-gap {
  width: 10px;
}

.cell-stack {
  display: grid;
  gap: 4px;
  justify-items: start;
}

.cell-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.cell-line .path-button-row {
  display: inline-flex;
}

.disk-plan {
  display: grid;
  gap: 6px;
  margin: 10px 0;
  padding: 10px 12px;
  border: 1px solid #ccebd9;
  border-radius: 12px;
  background: #f4fbf7;
  font-size: 0.8rem;
}

.disk-plan.bad {
  border-color: #f4cccc;
  background: #fff6f6;
}

.backup-tile {
  cursor: pointer;
  border-left: 3px solid #218458;
}

/* Sidebar: space cards keep their full height; Jobs takes what is left and scrolls. */
.side-panel {
  overflow-y: auto;
}

.side-panel > .card:not(.jobs-card) {
  flex: 0 0 auto;
}

.side-panel > .jobs-card {
  flex: 1 1 220px;
  min-height: 220px;
}

.project-grid .project-tile,
.disk-space-grid .project-tile {
  padding: 8px 10px;
}

.project-grid .project-tile strong,
.disk-space-grid .project-tile strong {
  font-size: 1rem;
}

/* Quick views (HPC3 page): the common questions, with counts */
.quick-views {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 10px;
}

.quick-view {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 4px 12px;
  border: 1px solid var(--line, #d4e3f5);
  border-radius: 999px;
  background: #fff;
  color: var(--text, #15314d);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 650;
  cursor: pointer;
}

.quick-view:hover {
  border-color: var(--blue, #2477ff);
}

.quick-view.active {
  border-color: var(--blue, #2477ff);
  background: var(--blue, #2477ff);
  color: #fff;
}

.quick-count {
  min-width: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--blue-soft, #e7f0ff);
  color: var(--blue-deep, #1859c8);
  font-size: 0.7rem;
  text-align: center;
}

.quick-view.active .quick-count {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.quick-view.has-new:not(.active) .quick-count {
  background: var(--blue, #2477ff);
  color: #fff;
}

.toolbar-search {
  min-height: 32px;
  min-width: 210px;
  border: 1px solid var(--line, #d4e3f5);
  border-radius: 10px;
  padding: 4px 10px;
  font: inherit;
  font-size: 0.8rem;
}

.list-toolbar button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* cryoSPARC after sync (2026-10-17) */
.cs-queue-block {
  display: grid;
  gap: 4px;
  padding: 4px 0 8px;
  border-bottom: 1px dashed var(--line, #d4e3f5);
}

.cs-queue-head {
  font-weight: 700;
}

.cs-queue-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.cs-queue-item strong {
  display: block;
  font-size: 0.78rem;
  overflow-wrap: anywhere;
}

.cs-queue-item .tiny {
  display: block;
}

.transfer-then-cs {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 4px 0 10px;
  font-size: 0.86rem;
}
