:root {
  --bg:#f7f8fa;
  --ink:#18212f;
  --muted:#77818e;
  --line:#e7ebf0;
  --blue:#3c64e9;
  --green:#19845e;
  --red:#bb4650;
  --radius:15px;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Apple SD Gothic Neo","Malgun Gothic",sans-serif;
  color:var(--ink);
  background:var(--bg);
  font-size:14px;
}
* {
  box-sizing:border-box;
}
body {
  margin:0;
}
button,input,select {
  font:inherit;
}
button,a,input,select {
  touch-action:manipulation;
}
button {
  cursor:pointer;
}
button:disabled {
  opacity:.4;
  cursor:default;
}
a {
  color:inherit;
  text-decoration:none;
}
[hidden] {
  display:none!important;
}
.topbar {
  height:76px;
  padding:0 4.5%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom:1px solid var(--line);
  background:white;
}
.brand {
  display:flex;
  align-items:center;
  gap:12px;
  font-size:23px;
  font-weight:760;
  letter-spacing:-1px;
}
.brand-section {
  font-size:16px;
  font-weight:450;
  letter-spacing:-.3px;
  color:#8a93a0;
  margin-left:3px;
}
.wave {
  display:flex;
  align-items:center;
  gap:3px;
  height:28px;
  margin-right:2px;
}
.wave i {
  width:4px;
  background:var(--blue);
  border-radius:4px;
  height:12px;
}
.wave i:nth-child(2) {
  height:26px;
}
.wave i:nth-child(3) {
  height:20px;
}
.wave i:nth-child(4) {
  height:10px;
}
.local-tag {
  font-size:11px;
  letter-spacing:.3px;
  color:var(--muted);
  padding:7px 10px;
  border:1px solid var(--line);
  border-radius:7px;
}
main {
  max-width:1490px;
  margin:auto;
  padding:45px 4.5% 20px;
}
.heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  margin-bottom:29px;
}
.eyebrow {
  color:var(--muted);
  font-size:10px;
  letter-spacing:1.7px;
  font-weight:700;
  margin:0 0 10px;
}
h1 {
  font-size:36px;
  letter-spacing:-1.7px;
  margin:0;
  font-weight:740;
}
.title-dot {
  color:var(--blue);
}
.subtitle {
  color:var(--muted);
  margin:12px 0 0;
  font-size:13px;
}
.refresh-tools {
  display:flex;
  align-items:center;
  gap:18px;
}
.connection {
  display:flex;
  align-items:center;
  gap:7px;
  font-size:12px;
  color:var(--muted);
  white-space:nowrap;
}
.connection i {
  width:6px;
  height:6px;
  border-radius:50%;
  background:#b6beca;
}
.connection.connected i {
  background:#24a277;
  box-shadow:0 0 0 4px #24a27710;
}
.connection.offline i {
  background:var(--red);
}
.button {
  border:1px solid #dce2ea;
  background:white;
  padding:10px 14px;
  border-radius:8px;
  white-space:nowrap;
  color:var(--ink);
  font-size:12px;
  font-weight:550;
  display:inline-flex;
  gap:15px;
  align-items:center;
  justify-content:center;
}
.button:hover:enabled {
  border-color:#9aaeea;
  background:#fafbff;
}
.button:focus-visible,.text-button:focus-visible,.job-link:focus-visible,.close-button:focus-visible {
  outline:3px solid #a9bfff;
  outline-offset:3px;
}
.compact {
  padding:7px 12px;
  font-size:11px;
}
.metrics {
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:12px;
  margin-bottom:27px;
}
.metric {
  background:white;
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:20px 19px;
  min-width:0;
}
.metric>span {
  font-size:12px;
  color:#586371;
  display:flex;
  align-items:center;
  gap:7px;
}
.metric strong {
  display:block;
  font-size:33px;
  line-height:1.2;
  letter-spacing:-1px;
  margin:16px 0 10px;
  font-weight:680;
  font-variant-numeric:tabular-nums;
}
.metric:first-child strong {
  color:var(--blue);
}
.metric small {
  color:#929ba6;
  font-size:10px;
  white-space:nowrap;
}
.dot {
  width:6px;
  height:6px;
  display:inline-block;
  border-radius:50%;
  flex-shrink:0;
}
.blue {
  background:var(--blue);
}
.amber {
  background:#d99c35;
}
.teal {
  background:#36a79e;
}
.green {
  background:#26976d;
}
.red {
  background:#d96671;
}
.panel {
  background:white;
  border:1px solid var(--line);
  border-radius:var(--radius);
  overflow:hidden;
  margin-bottom:23px;
}
.panel-header {
  padding:23px 24px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
}
.panel-header h2 {
  font-size:16px;
  letter-spacing:-.4px;
  margin:0 0 7px;
  font-weight:650;
}
.panel-header p {
  font-size:11px;
  margin:0;
  color:var(--muted);
}
.muted {
  font-size:11px;
  color:var(--muted);
}
.filters {
  padding:0 24px 21px;
  display:flex;
  align-items:end;
  gap:12px;
  flex-wrap:wrap;
}
.filters label {
  display:flex;
  flex-direction:column;
  gap:7px;
  font-size:10px;
  color:#77818e;
}
.filters select,.filters input {
  border:1px solid var(--line);
  background:#fcfcfd;
  border-radius:7px;
  height:35px;
  min-width:150px;
  max-width:210px;
  padding:0 11px;
  font-size:11px;
  color:#3d4858;
}
.filters input::placeholder {
  color:#929ba6;
}
.filters select:focus,.filters input:focus {
  outline:2px solid #c2d0ff;
  border-color:#9bb0ff;
}
.text-button {
  background:none;
  border:0;
  font-size:11px;
  color:var(--muted);
  padding:10px 5px;
}
.text-button:hover {
  color:var(--blue);
}
.table-scroll {
  overflow-x:auto;
}
table {
  border-collapse:collapse;
  width:100%;
  text-align:left;
  font-size:12px;
  white-space:nowrap;
}
thead {
  background:#f9fafc;
  color:#89919e;
  font-size:10px;
}
th {
  padding:12px 24px;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  font-weight:500;
}
td {
  padding:19px 24px;
  border-bottom:1px solid #eff2f5;
  vertical-align:middle;
}
td:first-child {
  width:39%;
  min-width:220px;
  max-width:420px;
  white-space:normal;
}
tbody tr:last-child td {
  border-bottom:0;
}
tbody tr:hover {
  background:#fbfcff;
}
.job-link {
  display:block;
  border:0;
  padding:0;
  text-align:left;
  background:none;
  color:#2a3545;
  line-height:1.55;
  font-weight:560;
  max-width:100%;
  overflow-wrap:anywhere;
}
.job-link:hover {
  color:var(--blue);
}
.secondary {
  font-size:10px;
  color:#929ba6;
  margin:6px 0 0;
  line-height:1.6;
  overflow-wrap:anywhere;
}
.mono {
  font-family:ui-monospace,SFMono-Regular,Consolas,monospace;
  font-size:10px;
}
.badge {
  display:inline-flex;
  align-items:center;
  gap:6px;
  border-radius:6px;
  padding:5px 8px;
  font-size:10px;
  line-height:1.4;
  background:#f0f2f5;
  color:#6d7784;
}
.badge.running,.badge.uploading {
  color:#4166d5;
  background:#edf2ff;
}
.badge.completed {
  color:#27815d;
  background:#eaf6ef;
}
.badge.transcribed {
  color:#20877e;
  background:#e8f6f4;
}
.badge.failed {
  color:#b44955;
  background:#fff0f1;
}
.badge.retry_wait {
  color:#aa7c22;
  background:#fff8e7;
}
.stage {
  font-size:11px;
  line-height:1.5;
}
.progress-track {
  height:4px;
  background:#edf0f5;
  border-radius:3px;
  margin-top:7px;
  min-width:90px;
  overflow:hidden;
}
.progress-fill {
  height:100%;
  background:var(--blue);
  border-radius:3px;
  transform-origin:left;
}
.progress-caption {
  font-size:10px;
  color:var(--muted);
  margin-top:6px;
}
.panel-footer {
  border-top:1px solid var(--line);
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:15px 24px;
}
.pagination {
  display:flex;
  gap:7px;
}
.empty {
  text-align:center;
  padding:50px 24px 55px;
  border-top:1px solid var(--line);
}
.empty-icon {
  font-size:35px;
  line-height:1;
  width:62px;
  height:62px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:#f1f4fb;
  color:#99aad3;
  border-radius:18px;
  margin-bottom:17px;
}
.empty h3 {
  font-size:14px;
  margin:0 0 10px;
  font-weight:570;
}
.empty p {
  font-size:12px;
  color:var(--muted);
  margin:0;
  line-height:1.8;
}
.loading {
  text-align:center!important;
  padding:50px!important;
  color:var(--muted);
}
.count-badge {
  color:#627085;
  background:#f2f4f8;
  border-radius:6px;
  padding:5px 8px;
  font-size:11px;
}
.worker-list {
  border-top:1px solid var(--line);
  padding:6px 24px;
}
.worker-list>p {
  padding:17px 0;
}
.worker-row {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px;
  padding:16px 0;
  border-bottom:1px solid var(--line);
}
.worker-row:last-child {
  border-bottom:0;
}
.worker-identity {
  display:flex;
  gap:12px;
  align-items:center;
}
.worker-icon {
  background:#f0f3fa;
  color:#8093b8;
  width:30px;
  height:30px;
  border-radius:8px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:16px;
}
.page-footer {
  display:flex;
  justify-content:space-between;
  gap:20px;
  font-size:10px;
  color:#9ba3ad;
  padding:3px 0 15px;
}
.notice {
  padding:13px 16px;
  background:#fff7e8;
  border:1px solid #f3e3c2;
  color:#94702e;
  font-size:12px;
  border-radius:9px;
  line-height:1.7;
  margin:0 0 20px;
}
.notice.error {
  background:#fff1f2;
  border-color:#f3d6da;
  color:#aa4c58;
}
.details {
  position:fixed;
  inset:0 0 0 auto;
  margin:0;
  border:0;
  border-left:1px solid var(--line);
  width:min(520px,100%);
  height:100%;
  max-height:100%;
  padding:0;
  color:var(--ink);
  box-shadow:-10px 0 60px #18212f15;
}
.details::backdrop {
  background:#111e352f;
  backdrop-filter:blur(2px);
}
.detail-header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:24px 27px 5px;
}
.detail-header .eyebrow {
  margin:0;
}
.close-button {
  border:0;
  background:#f2f4f8;
  border-radius:50%;
  width:30px;
  height:30px;
  color:#738095;
  font-size:22px;
}
.details #detail-content {
  padding:15px 27px 32px;
}
.detail-title {
  font-size:22px;
  letter-spacing:-.8px;
  line-height:1.5;
  margin:0 0 15px;
  overflow-wrap:anywhere;
}
.detail-section {
  border-top:1px solid var(--line);
  margin-top:24px;
  padding-top:22px;
}
.detail-section h3 {
  font-size:12px;
  margin:0 0 16px;
  font-weight:650;
}
.detail-section .progress-track {
  height:6px;
}
.info-list {
  display:grid;
  grid-template-columns:80px minmax(0,1fr);
  gap:13px 14px;
  font-size:11px;
  margin:20px 0;
}
.info-list dt {
  color:var(--muted);
}
.info-list dd {
  margin:0;
  overflow-wrap:anywhere;
  line-height:1.6;
}
.attempt {
  padding:14px;
  background:#f8f9fc;
  border:1px solid var(--line);
  border-radius:9px;
  margin-bottom:10px;
}
.attempt-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  font-size:12px;
}
.attempt .info-list {
  margin:15px 0 0;
  gap:9px 10px;
  font-size:10px;
  grid-template-columns:65px minmax(0,1fr);
}
.timeline {
  list-style:none;
  padding:0;
  margin:0;
}
.timeline li {
  position:relative;
  border-left:1px solid #e0e6f0;
  margin-left:4px;
  padding:0 0 21px 18px;
}
.timeline li:before {
  position:absolute;
  content:"";
  left:-4px;
  top:4px;
  width:7px;
  height:7px;
  border-radius:50%;
  background:#a7b5d1;
  box-shadow:0 0 0 3px white;
}
.timeline li:last-child {
  border-color:transparent;
  padding-bottom:0;
}
.event-title {
  font-size:11px;
  margin-bottom:6px;
}
.event-time {
  font-size:10px;
  color:var(--muted);
}
@media(max-width:1100px) {
  .metrics {
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
  .metric {
    padding:17px;
  }
  .metric strong {
    margin:12px 0 8px;
    font-size:30px;
  }
  .refresh-tools {
    gap:12px;
  }
  th,td {
    padding-left:18px;
    padding-right:18px;
  }
}
@media(max-width:650px) {
  .topbar {
    height:63px;
    padding:0 20px;
  }
  .brand {
    font-size:21px;
  }
  .brand-section {
    font-size:14px;
  }
  .local-tag {
    font-size:9px;
  }
  main {
    padding:28px 18px 10px;
  }
  .heading {
    align-items:start;
    flex-direction:column;
    gap:19px;
    margin-bottom:22px;
  }
  h1 {
    font-size:30px;
  }
  .subtitle {
    font-size:11px;
  }
  .refresh-tools {
    width:100%;
    justify-content:space-between;
  }
  .metrics {
    gap:8px;
    margin-bottom:20px;
  }
  .metric {
    padding:15px 12px;
    border-radius:11px;
  }
  .metric>span {
    font-size:10px;
  }
  .metric strong {
    font-size:26px;
  }
  .metric small {
    font-size:9px;
    white-space:normal;
    line-height:1.6;
    display:block;
    min-height:27px;
  }
  .panel-header {
    padding:20px 17px;
    align-items:start;
  }
  .panel-header>span {
    font-size:9px;
    white-space:nowrap;
    margin-top:3px;
  }
  .panel-header p {
    font-size:10px;
    line-height:1.7;
    max-width:210px;
  }
  .filters {
    padding:0 17px 18px;
    gap:10px;
  }
  .filters label {
    flex:1;
    min-width:100px;
  }
  .filters input,.filters select {
    min-width:0;
    max-width:100%;
    width:100%;
  }
  .filters .text-button {
    padding-left:0;
  }
  .panel-footer {
    padding:14px 17px;
  }
  .worker-list {
    padding:5px 17px;
  }
  .page-footer {
    font-size:9px;
    align-items:start;
  }
  .page-footer span:last-child {
    text-align:right;
    max-width:180px;
    line-height:1.7;
  }
  .detail-header {
    padding-left:22px;
    padding-right:22px;
  }
  .details #detail-content {
    padding-left:22px;
    padding-right:22px;
  }
}
.stage-meter {
  appearance:none;
  display:block;
  width:100%;
  height:4px;
  border:0;
  border-radius:3px;
  overflow:hidden;
  margin:7px 0 0;
  background:#edf0f5;
  color:var(--blue);
}
.stage-meter::-webkit-progress-bar {
  background:#edf0f5;
}
.stage-meter::-webkit-progress-value {
  background:var(--blue);
  border-radius:3px;
}
.stage-meter::-moz-progress-bar {
  background:var(--blue);
  border-radius:3px;
}
.detail-section .stage-meter {
  height:6px;
}

.selection-tools {display:flex; align-items:center; flex-wrap:wrap; gap:12px; padding:16px 24px; border-top:1px solid var(--line);}
.selection-cell {width:44px; text-align:center;}
.selection-cell input {width:17px; height:17px; accent-color:var(--blue); cursor:pointer;}
.selection-cell input:disabled {cursor:default;}
#export-error {margin:0 24px 16px;}

.account-tools {display:flex; align-items:center; gap:18px;}
.account-tools form {margin:0;}
.login-panel {max-width:540px; margin:100px auto; padding:36px;}
.login-panel h1 {font-size:32px;}
.login-panel p {line-height:1.8; margin:20px 0;}
.login-panel a.button {display:inline-flex; text-decoration:none;}
