/* ── Fonts ──────────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ── Design tokens ──────────────────────────────────────────────────────── */
:root {
  --indigo-50:  #EEF2FF;
  --indigo-100: #E0E7FF;
  --indigo-200: #C7D2FE;
  --indigo-500: #6366F1;
  --indigo-600: #4F46E5;
  --indigo-700: #4338CA;

  --slate-50:  #F8FAFC;
  --slate-100: #F1F5F9;
  --slate-200: #E2E8F0;
  --slate-300: #CBD5E1;
  --slate-400: #94A3B8;
  --slate-500: #64748B;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1E293B;
  --slate-900: #0F172A;

  --emerald-50:  #ECFDF5;
  --emerald-100: #D1FAE5;
  --emerald-600: #059669;
  --emerald-700: #047857;

  --amber-50:  #FFFBEB;
  --amber-100: #FEF3C7;
  --amber-600: #D97706;
  --amber-700: #B45309;

  --rose-50:  #FFF1F2;
  --rose-100: #FFE4E6;
  --rose-600: #E11D48;
  --rose-700: #BE123C;

  --sidebar-w: 288px;
  --r-sm: 8px;
  --r:    12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-2xl: 24px;
  --r-full: 9999px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.06), 0 1px 3px rgba(0,0,0,.08);
  --shadow:    0 4px 6px -1px rgba(0,0,0,.07), 0 2px 4px -2px rgba(0,0,0,.05);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.08), 0 4px 6px -4px rgba(0,0,0,.05);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,.1),  0 8px 10px -6px rgba(0,0,0,.08);

  --transition: all .15s ease;
}

/* ── Reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--slate-50);
  color: var(--slate-900);
  -webkit-font-smoothing: antialiased;
  margin: 0;
}

/* ── Sidebar ────────────────────────────────────────────────────────────── */
.fsr-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-w);
  background: #fff;
  border-right: 1px solid var(--slate-200);
  box-shadow: 1px 0 0 rgba(0,0,0,.02);
  display: flex;
  flex-direction: column;
  z-index: 200;
  overflow-y: auto;
}

.fsr-main {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  background: var(--slate-50);
}

/* ── Logo ───────────────────────────────────────────────────────────────── */
.fsr-logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 28px 28px 20px;
  cursor: pointer;
}

.fsr-logo-icon {
  background: var(--indigo-600);
  color: #fff;
  width: 40px; height: 40px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(79,70,229,.35);
  flex-shrink: 0;
  transition: transform .2s;
}
.fsr-logo-area:hover .fsr-logo-icon { transform: scale(1.08); }

.fsr-logo-icon svg { width: 22px; height: 22px; fill: #fff; }

.fsr-logo-text {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: var(--slate-900);
}
.fsr-logo-text span { color: var(--indigo-600); }

/* ── Sidebar nav ────────────────────────────────────────────────────────── */
.fsr-sidebar-nav {
  flex: 1;
  padding: 8px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fsr-nav-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--slate-400);
  padding: 16px 8px 6px;
}

.fsr-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--r);
  font-size: 14px;
  font-weight: 500;
  color: var(--slate-500);
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  position: relative;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}
.fsr-nav-item:hover { background: var(--slate-50); color: var(--slate-900); }
.fsr-nav-item.active {
  background: var(--indigo-600);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(79,70,229,.3);
}
.fsr-nav-item i { font-size: 17px; flex-shrink: 0; }

.fsr-nav-count {
  margin-left: auto;
  background: var(--rose-600);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: var(--r-full);
  min-width: 20px;
  text-align: center;
}
.fsr-nav-item.active .fsr-nav-count { background: #fff; color: var(--indigo-600); }

/* ── Sidebar user footer ────────────────────────────────────────────────── */
.fsr-sidebar-footer {
  padding: 16px;
  border-top: 1px solid var(--slate-100);
  flex-shrink: 0;
}

.fsr-user-card {
  background: var(--slate-50);
  border-radius: var(--r-xl);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.fsr-avatar {
  width: 36px; height: 36px;
  border-radius: var(--r);
  background: var(--indigo-600);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  border: 2px solid #fff;
  box-shadow: var(--shadow-sm);
}

.fsr-user-meta { flex: 1; min-width: 0; }
.fsr-user-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--slate-900);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fsr-user-role {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--slate-400);
  margin-top: 1px;
}

.fsr-signout {
  background: none;
  border: none;
  padding: 6px;
  border-radius: var(--r-sm);
  color: var(--slate-400);
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
  font-size: 15px;
}
.fsr-signout:hover { background: var(--slate-200); color: var(--slate-700); }

/* ── Page layout ────────────────────────────────────────────────────────── */
.fsr-page {
  padding: 36px;
  max-width: 1280px;
}

.fsr-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
}

.fsr-page-title {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.6px;
  color: var(--slate-900);
  margin: 0 0 4px;
}

.fsr-page-desc {
  font-size: 14px;
  color: var(--slate-500);
  margin: 0;
}

/* ── Cards ──────────────────────────────────────────────────────────────── */
.fsr-card {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
  overflow: hidden;
}

.fsr-card-body { padding: 24px 28px; }

.fsr-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.fsr-section-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--slate-900);
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.2px;
}
.fsr-section-title i { color: var(--indigo-600); font-size: 16px; }
.fsr-section-title.mb-0 { margin-bottom: 0; }

/* ── Upload form ────────────────────────────────────────────────────────── */
.fsr-upload-form {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr auto;
  gap: 16px;
  align-items: end;
}

.fsr-field { display: flex; flex-direction: column; gap: 7px; }

.fsr-label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--slate-400);
}

/* Custom file input */
.fsr-file-wrap { position: relative; }
.fsr-file-input {
  position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; z-index: 2;
}
.fsr-file-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  background: var(--slate-50);
  border: 2px dashed var(--slate-300);
  border-radius: var(--r);
  cursor: pointer;
  transition: var(--transition);
  min-height: 44px;
}
.fsr-file-trigger:hover,
.fsr-file-wrap.has-file .fsr-file-trigger {
  border-style: solid;
  border-color: var(--indigo-500);
  background: var(--indigo-50);
}
.fsr-file-icon { color: var(--indigo-600); font-size: 17px; flex-shrink: 0; }
.fsr-file-name {
  font-size: 13px; font-weight: 500; color: var(--slate-500);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fsr-file-wrap.has-file .fsr-file-name { color: var(--slate-800); font-weight: 600; }

/* Select */
.fsr-select {
  appearance: none;
  background: var(--slate-50)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E")
    no-repeat right 13px center;
  border: 2px solid var(--slate-200);
  border-radius: var(--r);
  padding: 10px 36px 10px 14px;
  font-size: 13px; font-weight: 500; font-family: inherit;
  color: var(--slate-800);
  width: 100%; cursor: pointer; transition: var(--transition);
  min-height: 44px;
}
.fsr-select:focus { outline: none; border-color: var(--indigo-500); background-color: #fff; }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.fsr-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 11px 20px;
  border-radius: var(--r);
  font-size: 13px; font-weight: 700; font-family: inherit;
  border: none; cursor: pointer; transition: var(--transition);
  white-space: nowrap; text-decoration: none; line-height: 1;
  min-height: 44px;
}
.fsr-btn-primary {
  background: var(--indigo-600); color: #fff;
  box-shadow: 0 1px 4px rgba(79,70,229,.4);
}
.fsr-btn-primary:hover {
  background: var(--indigo-700);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(79,70,229,.35);
  color: #fff;
}
.fsr-btn-primary:active { transform: none; }

.fsr-btn-outline {
  background: #fff; color: var(--indigo-600);
  border: 1.5px solid var(--indigo-200);
}
.fsr-btn-outline:hover { background: var(--indigo-50); border-color: var(--indigo-500); }

.fsr-btn-ghost { background: transparent; color: var(--slate-600); }
.fsr-btn-ghost:hover { background: var(--slate-100); color: var(--slate-900); }

.fsr-btn-sm { padding: 7px 14px; font-size: 12px; min-height: 34px; }
.fsr-btn-full { width: 100%; justify-content: center; }
.fsr-btn:disabled { opacity: .55; cursor: not-allowed; transform: none !important; }

/* Icon action buttons in tables */
.fsr-act {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px;
  border-radius: var(--r-sm);
  border: 1px solid var(--slate-200);
  background: #fff; color: var(--slate-500);
  cursor: pointer; transition: var(--transition);
  text-decoration: none; font-size: 13px;
}
.fsr-act:hover { border-color: var(--indigo-200); background: var(--indigo-50); color: var(--indigo-600); }
.fsr-act.success:hover { border-color: var(--emerald-100); background: var(--emerald-50); color: var(--emerald-700); }
.fsr-act.danger:hover  { border-color: var(--rose-100);   background: var(--rose-50);   color: var(--rose-700); }

/* ── Badges ─────────────────────────────────────────────────────────────── */
.fsr-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px;
  border-radius: 7px;
  font-size: 10px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .05em;
  border: 1px solid transparent; white-space: nowrap;
}
.badge-pending  { background: var(--slate-100);   color: var(--slate-600);   border-color: var(--slate-200); }
.badge-running  { background: var(--indigo-50);   color: var(--indigo-700);  border-color: var(--indigo-100); }
.badge-done     { background: var(--emerald-50);  color: var(--emerald-700); border-color: var(--emerald-100); }
.badge-failed   { background: var(--rose-50);     color: var(--rose-700);    border-color: var(--rose-100); }
.badge-qa       { background: var(--amber-50);    color: var(--amber-700);   border-color: var(--amber-100); }

/* ── Table ──────────────────────────────────────────────────────────────── */
.fsr-table-wrap { overflow-x: auto; margin: 0 -4px; }

.fsr-table {
  width: 100%; border-collapse: collapse; font-size: 13px;
}
.fsr-table thead th {
  font-size: 10px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--slate-400);
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--slate-200);
  white-space: nowrap; background: #fff;
}
.fsr-table tbody td {
  padding: 13px 14px; color: var(--slate-600);
  border-bottom: 1px solid var(--slate-100);
  vertical-align: middle;
}
.fsr-table tbody tr:last-child td { border-bottom: none; }
.fsr-table tbody tr:hover td { background: var(--slate-50); }
.fsr-table .col-filename { font-weight: 700; color: var(--slate-900); }
.fsr-table .col-actions { white-space: nowrap; }
.fsr-act-row { display: flex; gap: 4px; align-items: center; }
.fsr-table-empty {
  text-align: center; color: var(--slate-400); font-size: 14px;
  padding: 56px 24px !important;
}

/* ── Filter toggle ──────────────────────────────────────────────────────── */
.fsr-filter-row {
  display: flex; align-items: center; gap: 10px;
}
.fsr-filter-label { font-size: 13px; font-weight: 500; color: var(--slate-500); }
.form-check-input:checked { background-color: var(--indigo-600); border-color: var(--indigo-600); }

/* ── Auth screens ───────────────────────────────────────────────────────── */
.fsr-auth-bg {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--indigo-50) 0%, var(--slate-50) 55%, #ECFDF5 100%);
  padding: 24px;
}

.fsr-auth-card {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--r-2xl);
  box-shadow: var(--shadow-xl);
  padding: 44px 40px;
  width: 100%; max-width: 400px;
  text-align: center;
}

.fsr-auth-icon {
  width: 60px; height: 60px;
  background: var(--indigo-600);
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 8px 20px rgba(79,70,229,.35);
  font-size: 26px; color: #fff;
}
.fsr-auth-icon.warn { background: linear-gradient(135deg, #F59E0B, #D97706); }

.fsr-auth-title {
  font-size: 24px; font-weight: 900; letter-spacing: -0.5px;
  color: var(--slate-900); margin: 0 0 8px;
}
.fsr-auth-sub {
  font-size: 14px; color: var(--slate-500); margin: 0 0 28px; line-height: 1.5;
}
.fsr-auth-email { font-size: 13px; color: var(--slate-400); margin: 0 0 4px; }

/* ── Spinner ────────────────────────────────────────────────────────────── */
.fsr-loading-bg {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: var(--slate-50);
}

.fsr-spinner {
  width: 40px; height: 40px;
  border: 3px solid var(--slate-200);
  border-top-color: var(--indigo-600);
  border-radius: 50%;
  animation: fsr-spin .7s linear infinite;
  margin: 0 auto 16px;
}

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

.spin {
  animation: fsr-spin 1.4s linear infinite;
  display: inline-block;
}

/* ── Alerts / notices ───────────────────────────────────────────────────── */
.fsr-notice {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: var(--r);
  font-size: 13px; font-weight: 500; border: 1px solid;
}
.fsr-notice-success {
  background: var(--emerald-50); color: var(--emerald-700);
  border-color: var(--emerald-100);
}
.fsr-notice-error {
  background: var(--rose-50); color: var(--rose-700);
  border-color: var(--rose-100);
}

/* ── Access request items ────────────────────────────────────────────────── */
.fsr-req-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--r); margin-bottom: 8px;
  gap: 12px;
}
.fsr-req-name { font-weight: 700; font-size: 13px; color: var(--slate-900); }
.fsr-req-email { font-size: 12px; color: var(--slate-400); }

.fsr-select-sm {
  appearance: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 10px center;
  border: 1px solid var(--slate-200);
  border-radius: var(--r-sm);
  padding: 6px 28px 6px 10px;
  font-size: 12px; font-weight: 500; font-family: inherit;
  color: var(--slate-700); cursor: pointer;
}

/* ── Modals (Bootstrap override) ────────────────────────────────────────── */
.modal-content {
  border: none !important;
  border-radius: var(--r-xl) !important;
  box-shadow: var(--shadow-xl) !important;
  overflow: hidden;
}
.modal-header {
  background: #fff;
  border-bottom: 1px solid var(--slate-200) !important;
  padding: 20px 24px !important;
}
.modal-title { font-size: 16px !important; font-weight: 800 !important; color: var(--slate-900); }
.modal-body { padding: 24px !important; }
.modal-footer {
  border-top: 1px solid var(--slate-200) !important;
  padding: 16px 24px !important;
  background: var(--slate-50);
}
.modal-backdrop.show { backdrop-filter: blur(3px); background: rgba(15,23,42,.4); }

/* Bootstrap form overrides */
.form-control, .form-select {
  border-color: var(--slate-200) !important;
  border-radius: var(--r) !important;
  font-size: 14px !important; font-family: inherit !important;
  background: var(--slate-50) !important;
  color: var(--slate-900) !important;
}
.form-control:focus, .form-select:focus {
  border-color: var(--indigo-500) !important;
  box-shadow: 0 0 0 3px rgba(99,102,241,.12) !important;
  background: #fff !important;
}
.form-label {
  font-size: 11px !important; font-weight: 800 !important;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--slate-400) !important; margin-bottom: 7px !important;
}

/* ── Expandable job rows ────────────────────────────────────────────────── */
.fsr-table tbody tr.fsr-row-open > td {
  border-bottom: none;
}

.fsr-expand-btn.open {
  background: var(--indigo-50);
  border-color: var(--indigo-200);
  color: var(--indigo-600);
}

.job-detail-row > td {
  padding: 0 !important;
  background: var(--slate-50) !important;
  border-bottom: 2px solid var(--slate-200) !important;
}
.job-detail-row:hover > td { background: var(--slate-50) !important; }

.job-detail-inner {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 0;
  padding: 20px 24px;
}

.job-detail-timeline-hdr {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--slate-400);
  margin-bottom: 14px;
}

/* ── Pipeline timeline ──────────────────────────────────────────────────── */
.pipeline-timeline {
  display: flex;
  flex-direction: column;
}

.pipeline-step {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.pipeline-step.last .step-content { padding-bottom: 0; }

.step-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 22px;
  flex-shrink: 0;
  padding-top: 1px;
}

.step-dot {
  width: 22px; height: 22px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
.step-dot.done      { background: var(--emerald-100); color: var(--emerald-700); }
.step-dot.active    { background: var(--indigo-100);  color: var(--indigo-600);
                      border: 2px solid var(--indigo-200); }
.step-dot.pending   { background: var(--slate-100);   color: var(--slate-400);
                      border: 1.5px solid var(--slate-200); }
.step-dot.failed    { background: var(--rose-100);    color: var(--rose-600); }
.step-dot.cancelled { background: var(--amber-100);   color: var(--amber-700); }
.step-dot.skipped   { background: transparent;        color: var(--slate-300);
                      border: 1.5px dashed var(--slate-200); }

.step-pending-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--slate-300);
  display: block;
}

.step-line {
  width: 2px;
  flex: 1;
  min-height: 8px;
  background: var(--slate-200);
  margin: 3px 0;
}

.step-content {
  padding-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.step-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--slate-700);
  line-height: 1.4;
}
.step-name.done      { color: var(--slate-700); }
.step-name.active    { color: var(--indigo-600); font-weight: 700; }
.step-name.pending   { color: var(--slate-400);  font-weight: 500; }
.step-name.failed    { color: var(--rose-600);   font-weight: 700; }
.step-name.cancelled { color: var(--amber-700);  font-weight: 600; }
.step-name.skipped   { color: var(--slate-300);  font-weight: 400; }

.step-ts {
  font-size: 11px;
  color: var(--slate-400);
  font-variant-numeric: tabular-nums;
}

/* ── Job detail meta panel ──────────────────────────────────────────────── */
.job-detail-meta {
  border-left: 1px solid var(--slate-200);
  padding-left: 24px;
  margin-left: 8px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.meta-label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--slate-400);
}
.meta-value {
  font-size: 12px;
  font-weight: 600;
  color: var(--slate-700);
}
.meta-mono {
  font-family: 'Courier New', monospace;
  font-size: 11px;
  color: var(--slate-400);
}

.fsr-copy-id-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 1px 3px;
  color: var(--slate-400);
  font-size: 11px;
  line-height: 1;
  border-radius: 3px;
  transition: color 0.15s;
}
.fsr-copy-id-btn:hover { color: var(--slate-600); }

.fsr-cancel-btn {
  color: var(--rose-600) !important;
  border-color: var(--rose-200) !important;
  margin-top: auto;
}
.fsr-cancel-btn:hover {
  background: var(--rose-50) !important;
  border-color: var(--rose-400) !important;
}

/* ── Stars ──────────────────────────────────────────────────────────────── */
.star-btn {
  cursor: pointer; transition: transform .1s;
  color: var(--slate-200); font-size: 1.5rem;
}
.star-btn:hover { transform: scale(1.2); }

/* ── Error log pre ──────────────────────────────────────────────────────── */
#error-content {
  font-size: 11.5px; background: var(--rose-50); color: var(--rose-700);
  border-radius: var(--r); padding: 16px;
  max-height: 400px; overflow: auto; white-space: pre-wrap; word-break: break-all;
}

/* ── Progress bar (detail panel) ────────────────────────────────────────── */
.job-progress-wrap {
  padding: 16px 24px 12px;
  border-bottom: 1px solid var(--slate-100);
  background: var(--slate-50);
}
.job-progress-hdr {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 7px;
}
.job-progress-label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--slate-400);
}
.job-progress-pct {
  font-size: 12px;
  font-weight: 700;
  color: var(--indigo-600);
}
.job-progress-bar {
  height: 6px;
  background: var(--slate-200);
  border-radius: 3px;
  overflow: hidden;
}
.job-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #6366f1, #818cf8);
  border-radius: 3px;
  transition: width 0.6s ease;
}
.job-progress-fill.animated {
  background: linear-gradient(90deg, #6366f1, #a5b4fc, #6366f1);
  background-size: 200% 100%;
  animation: progress-shimmer 2s linear infinite;
}
@keyframes progress-shimmer {
  0%   { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* ── Mini progress bar (table row) ────────────────────────────────────────── */
.progress-col {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.progress-detail-text {
  font-size: 12px;
  color: var(--slate-400);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}
.progress-mini {
  height: 3px;
  background: var(--slate-200);
  border-radius: 2px;
  overflow: hidden;
  max-width: 160px;
}
.progress-mini-bar {
  height: 100%;
  background: #818cf8;
  border-radius: 2px;
  transition: width 0.6s ease;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .fsr-sidebar { transform: translateX(-100%); transition: transform .25s ease; }
  .fsr-sidebar.open { transform: none; }
  .fsr-main { margin-left: 0; }
  .fsr-page { padding: 16px; }
  .fsr-upload-form { grid-template-columns: 1fr; }
}
