:root {
  --ink:#172332;
  --muted:#6b7787;
  --line:#e4e9ef;
  --blue:#2563eb;
  --blue-dark:#1d4ed8;
  --surface:#fff;
  --canvas:#f5f7fa;
  --navy:#111c2c;
  --nav-muted:#91a0b4;
  --danger:#b42318;
  --radius:12px;
  font-family:Inter,Geist,-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;
  color:var(--ink);
  font-size:14px;
}

* {
  box-sizing:border-box;
}

body {
  margin:0;
  background:var(--canvas);
}

[hidden] {
  display:none!important;
}

button,input,select {
  font:inherit;
}

button,a,input,select {
  -webkit-tap-highlight-color:transparent;
}

button {
  cursor:pointer;
  white-space:nowrap;
}

button:disabled {
  cursor:not-allowed;
  opacity:.45;
}

button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible {
  outline:3px solid #93b4fa;
  outline-offset:3px;
}

input,select {
  height:42px;
  border:1px solid #d6dfe9;
  background:#fff;
  border-radius:7px;
  padding:0 12px;
  color:var(--ink);
  min-width:0;
}

input:focus,select:focus {
  border-color:#729bea;
}

input::placeholder {
  color:#99a3af;
}

input[type=checkbox] {
  width:16px;
  height:16px;
  padding:0;
  accent-color:var(--blue);
  cursor:pointer;
}

input[type=search]::-webkit-search-cancel-button {
  cursor:pointer;
}

a {
  color:var(--blue);
  text-decoration:none;
}

a:hover {
  text-decoration:underline;
}

.primary,.secondary,.page-button {
  height:41px;
  border-radius:7px;
  font-weight:600;
  line-height:1;
  transition:background .15s,border-color .15s;
}

.primary {
  background:var(--blue);
  color:#fff;
  border:1px solid var(--blue);
  padding:0 19px;
}

.primary:hover:not(:disabled) {
  background:var(--blue-dark);
}

.secondary,.page-button {
  background:#fff;
  border:1px solid #d6dfe9;
  color:#405066;
  padding:0 15px;
}

.secondary:hover:not(:disabled),.page-button:hover:not(:disabled) {
  background:#f4f7fb;
  border-color:#b9c8da;
}

.text-button {
  padding:5px 0;
  background:none;
  border:0;
  color:var(--muted);
}

.text-button:hover:not(:disabled) {
  color:var(--blue);
}

.muted {
  color:var(--muted);
}

.eyebrow {
  font-size:11px;
  font-weight:650;
  color:#7c8897;
  margin:0 0 10px;
  letter-spacing:.09em;
}

.brand-mark {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:32px;
  height:32px;
  background:var(--blue);
  border-radius:8px;
  color:white;
  font-size:18px;
  font-weight:750;
  letter-spacing:0;
}

.auth-screen {
  min-height:100dvh;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:48px 24px;
  background:radial-gradient(ellipse at 50% 30%,#eaf1ff 0,transparent 60%),var(--canvas);
}

.auth-brand {
  display:flex;
  align-items:center;
  gap:10px;
  font-size:16px;
  font-weight:750;
  letter-spacing:.12em;
  margin-bottom:28px;
}

.auth-card {
  width:100%;
  max-width:405px;
  padding:34px 32px 32px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:16px;
  box-shadow:0 12px 42px #172c4a08;
}

.auth-card h1 {
  font-size:24px;
  letter-spacing:-.04em;
  margin:0 0 12px;
}

.auth-intro {
  font-size:13px;
  color:var(--muted);
  line-height:1.7;
  margin:0 0 26px;
}

.auth-card label {
  font-size:12px;
  color:#4d5b6e;
  display:block;
  margin:18px 0 8px;
}

.auth-card input {
  display:block;
  width:100%;
}

.auth-submit {
  width:100%;
  margin-top:25px;
}

.auth-footer {
  color:#8a94a2;
  font-size:12px;
  margin-top:22px;
}

.form-error {
  font-size:12px;
  color:var(--danger);
  line-height:1.6;
  background:#fff3f1;
  border-radius:6px;
  padding:10px 12px;
  margin:14px 0 0;
}

.app {
  display:flex;
  min-height:100dvh;
}

.sidebar {
  width:218px;
  flex-shrink:0;
  background:var(--navy);
  color:white;
  display:flex;
  flex-direction:column;
  position:fixed;
  inset:0 auto 0 0;
  z-index:20;
  padding:29px 17px 24px;
}

.brand {
  display:flex;
  gap:11px;
  align-items:center;
  margin:1px 11px 45px;
  color:#f8faff;
  letter-spacing:.12em;
  font-size:16px;
  font-weight:750;
}

.brand:hover {
  text-decoration:none;
}

.sidebar-label {
  color:#66778e;
  font-size:10px;
  letter-spacing:.1em;
  margin:0 14px 12px;
}

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

.nav-item {
  height:43px;
  display:flex;
  align-items:center;
  gap:11px;
  padding:0 14px;
  text-align:left;
  background:none;
  border:0;
  border-radius:7px;
  color:var(--nav-muted);
  font-size:13px;
}

.nav-item:hover {
  background:#1a2940;
  color:#fff;
}

.nav-item.active {
  background:#24334b;
  color:white;
  font-weight:600;
}

.nav-item.active .nav-icon {
  color:#7da6ff;
}

.nav-icon {
  width:19px;
  text-align:center;
  font-size:20px;
  line-height:1;
  color:#7387a0;
}

.nav-badge {
  background:#31486a;
  color:#b9d0f7;
  min-width:21px;
  border-radius:5px;
  font-size:10px;
  padding:3px 5px;
  text-align:center;
  margin-left:auto;
}

.sidebar-footer {
  display:flex;
  align-items:center;
  gap:7px;
  margin-top:auto;
  padding:20px 13px 0;
  font-size:10px;
  letter-spacing:.02em;
  color:#76869b;
}

.connection-dot {
  width:6px;
  height:6px;
  border-radius:50%;
  background:#4a976f;
}

.workspace {
  width:calc(100% - 218px);
  margin-left:218px;
}

.topbar {
  height:68px;
  border-bottom:1px solid var(--line);
  background:#fff;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 36px;
}

.topbar-section {
  font-size:12px;
  color:#8b95a2;
}

.account {
  display:flex;
  align-items:center;
  gap:15px;
  font-size:12px;
  color:#48576c;
}

.account-separator {
  width:1px;
  height:14px;
  background:var(--line);
}

.main {
  max-width:1420px;
  margin:0 auto;
  padding:38px 36px 70px;
}

.page-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  margin-bottom:29px;
}

.page-heading h1 {
  font-size:27px;
  letter-spacing:-.05em;
  line-height:1.2;
  margin:0;
}

.page-description {
  color:var(--muted);
  font-size:12px;
  line-height:1.7;
  margin:12px 0 0;
}

.page-alert {
  padding:12px 15px;
  margin:0 0 20px;
  border:1px solid #f4c6be;
  background:#fff3f1;
  color:var(--danger);
  border-radius:8px;
  font-size:12px;
  line-height:1.6;
}

.page-alert.info {
  background:#eef5ff;
  border-color:#cbdcfa;
  color:#315d9c;
}

.filter-bar {
  display:flex;
  align-items:flex-end;
  gap:12px;
  background:#fff;
  border:1px solid var(--line);
  padding:21px 22px;
  border-radius:var(--radius);
  margin-bottom:22px;
}

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

.field label {
  font-size:11px;
  color:#667588;
  font-weight:550;
}

.platform-field {
  width:162px;
  flex-shrink:0;
}

.search-field {
  flex:1;
  max-width:520px;
}

.filter-bar>.primary {
  height:42px;
  min-width:112px;
}

.table-card {
  border:1px solid var(--line);
  border-radius:var(--radius);
  overflow:hidden;
  background:#fff;
}

.table-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  padding:19px 22px;
  border-bottom:1px solid var(--line);
}

.table-heading h2 {
  font-size:13px;
  font-weight:650;
  margin:0;
}

.count-text {
  color:#8a95a3;
  font-size:11px;
}

.table-scroll {
  overflow:auto;
}

table {
  width:100%;
  border-collapse:collapse;
  font-size:12px;
  text-align:left;
}

thead {
  background:#fafbfd;
}

th {
  font-weight:550;
  color:#8190a1;
  height:41px;
  padding:0 20px;
  border-bottom:1px solid var(--line);
  white-space:nowrap;
  font-size:11px;
}

td {
  padding:18px 20px;
  border-bottom:1px solid #edf0f4;
  vertical-align:middle;
  color:#526174;
  line-height:1.5;
}

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

tbody tr:hover {
  background:#fbfcfe;
}

#search-body tr.selected {
  background:#f0f5ff;
}

.check-cell {
  width:48px;
  padding-right:0;
}

.check-cell+th,.check-cell+td {
  padding-left:12px;
}

.title-cell {
  color:#28374a;
  font-size:13px;
  font-weight:550;
  min-width:190px;
  max-width:450px;
  overflow-wrap:anywhere;
}

.title-sub {
  font-size:10px;
  font-weight:400;
  color:#8a96a5;
  margin-top:5px;
}

.platform-tag {
  background:#f0f3f7;
  color:#5a6c80;
  display:inline-block;
  border-radius:5px;
  padding:3px 8px;
  font-size:10px;
  white-space:nowrap;
}

.number-cell {
  text-align:right;
  white-space:nowrap;
  font-variant-numeric:tabular-nums;
}

.link-cell {
  width:100px;
  white-space:nowrap;
}

.download-link {
  font-size:11px;
  font-weight:600;
}

.empty-state {
  height:180px;
  text-align:center!important;
  color:#8d98a6;
  font-size:12px;
  font-weight:400;
}

.pagination {
  min-height:61px;
  border-top:1px solid var(--line);
  padding:14px 21px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px;
  color:#8b96a4;
  font-size:11px;
}

.pagination>div {
  display:flex;
  gap:8px;
}

.page-button {
  height:31px;
  font-size:11px;
  font-weight:500;
  padding:0 12px;
}

.selection-bar {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  border:1px solid #cbdcfa;
  border-radius:9px;
  background:#edf4ff;
  padding:13px 18px;
  margin-bottom:18px;
}

.selection-bar strong {
  font-size:12px;
  color:#28589b;
  margin-right:16px;
}

.selection-bar .muted {
  font-size:11px;
}

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

.selection-actions .primary {
  height:34px;
  font-size:11px;
  padding:0 13px;
}

.selection-actions .text-button {
  font-size:11px;
}

.status {
  display:inline-flex;
  align-items:center;
  gap:6px;
  border-radius:5px;
  padding:4px 8px;
  white-space:nowrap;
  font-size:10px;
  font-weight:550;
  background:#f0f3f6;
  color:#6d7b8b;
}

.status:before {
  content:"";
  display:block;
  width:5px;
  height:5px;
  border-radius:50%;
  background:currentColor;
}

.status.running {
  background:#edf4ff;
  color:#376ccb;
}

.status.success {
  background:#edf8f0;
  color:#378157;
}

.status.failed {
  background:#fff1ef;
  color:#ba4b40;
}

.status.queued {
  background:#fff7e8;
  color:#a37b2b;
}

.job-progress {
  font-variant-numeric:tabular-nums;
  white-space:nowrap;
  min-width:92px;
}

.progress-track {
  height:3px;
  border-radius:4px;
  background:#edf0f5;
  margin-top:7px;
  max-width:95px;
  overflow:hidden;
}

.progress-fill {
  height:100%;
  background:#5284e7;
  border-radius:4px;
}

.job-error {
  color:#ac5048;
  font-weight:400;
  font-size:11px;
  line-height:1.6;
  margin-top:7px;
  max-width:420px;
  overflow-wrap:anywhere;
}

.date-cell {
  white-space:nowrap;
  color:#8793a3;
  font-size:11px;
  font-variant-numeric:tabular-nums;
}

.table-note {
  color:#8a96a5;
  font-size:11px;
  margin:14px 1px;
}

.toast {
  position:fixed;
  bottom:28px;
  left:calc(50% + 90px);
  transform:translateX(-50%);
  padding:13px 19px;
  background:#172a42;
  color:#fff;
  border-radius:9px;
  box-shadow:0 7px 25px #0e1c3530;
  font-size:12px;
  z-index:50;
  max-width:min(90vw,540px);
  line-height:1.6;
}

.busy {
  opacity:.65;
  pointer-events:none;
}

@media(min-width:1400px) {
  .main {
    padding-top:44px;
  }

  .search-field {
    max-width:620px;
  }

}

@media(max-width:1050px) {
  .sidebar {
    width:190px;
    padding-left:12px;
    padding-right:12px;
  }

  .workspace {
    width:calc(100% - 190px);
    margin-left:190px;
  }

  .main {
    padding:30px 24px 60px;
  }

  .topbar {
    padding:0 24px;
  }

  th,td {
    padding-left:15px;
    padding-right:15px;
  }

  .selection-bar .muted {
    display:none;
  }

  .toast {
    left:calc(50% + 75px);
  }

}

@media(max-width:720px) {
  .app {
    display:block;
  }

  .sidebar {
    position:sticky;
    inset:0 0 auto;
    width:100%;
    padding:15px 17px 0;
  }

  .brand {
    margin:0 3px 15px;
    font-size:14px;
  }

  .brand-mark {
    width:28px;
    height:28px;
    font-size:16px;
  }

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

  .nav {
    flex-direction:row;
    gap:4px;
    margin:0 -3px;
  }

  .nav-item {
    flex:1;
    justify-content:center;
    height:43px;
    padding:0 5px;
    font-size:12px;
    border-radius:7px 7px 0 0;
    gap:6px;
  }

  .nav-icon {
    font-size:17px;
    width:16px;
  }

  .nav-badge {
    margin-left:0;
    min-width:17px;
    padding:2px 3px;
  }

  .workspace {
    width:100%;
    margin-left:0;
  }

  .topbar {
    height:48px;
    padding:0 19px;
  }

  .topbar-section,.account {
    font-size:11px;
  }

  .account {
    gap:12px;
  }

  .main {
    padding:28px 17px 50px;
  }

  .page-heading {
    margin-bottom:22px;
    align-items:flex-start;
  }

  .page-heading h1 {
    font-size:24px;
  }

  .page-description {
    font-size:11px;
    margin-top:10px;
    max-width:290px;
  }

  .eyebrow {
    font-size:10px;
    margin-bottom:8px;
  }

  .page-heading>.secondary {
    font-size:11px;
    height:34px;
    margin-top:20px;
    padding:0 10px;
  }

  .filter-bar {
    padding:17px;
    gap:10px;
    flex-wrap:wrap;
    margin-bottom:18px;
  }

  .platform-field {
    width:118px;
  }

  .search-field {
    width:calc(100% - 128px);
    flex:1;
    min-width:130px;
  }

  .filter-bar>.primary {
    width:100%;
    margin-top:2px;
  }

  .table-heading {
    padding:16px;
  }

  .table-heading h2 {
    font-size:12px;
  }

  .count-text {
    font-size:10px;
  }

  table {
    min-width:580px;
  }

  th {
    font-size:10px;
    padding:0 14px;
  }

  td {
    padding:15px 14px;
    font-size:11px;
  }

  .title-cell {
    min-width:180px;
    font-size:12px;
    max-width:270px;
  }

  #search-table {
    min-width:560px;
  }

  .check-cell {
    width:38px;
    padding-left:14px;
  }

  .selection-bar {
    padding:12px;
    gap:8px;
  }

  .selection-bar strong {
    font-size:11px;
    margin-right:0;
  }

  .selection-actions {
    gap:10px;
  }

  .selection-actions .text-button {
    font-size:10px;
  }

  .selection-actions .primary {
    font-size:10px;
    padding:0 10px;
  }

  .pagination {
    padding:13px 15px;
    gap:8px;
  }

  .pagination>span {
    font-size:10px;
  }

  .page-button {
    padding:0 10px;
  }

  .toast {
    left:50%;
    bottom:20px;
    font-size:11px;
  }

  .auth-card {
    padding:30px 25px;
  }

  .auth-brand {
    margin-bottom:24px;
  }

}
