* { box-sizing: border-box; }
body {
  font-family: system-ui, "Segoe UI", sans-serif;
  margin: 0; background: #0f1115; color: #e6e6e6;
}
a { color: #7db8ff; }
.topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 20px; background: #171a21; border-bottom: 1px solid #262a33;
}
.brand { font-weight: 600; }
.logout { color: #9aa4b2; text-decoration: none; font-size: 14px; }
.logout:hover { color: #fff; }
main { max-width: 860px; margin: 0 auto; padding: 24px 20px; }
h1, h2 { font-weight: 600; }
.mono { font-family: Consolas, monospace; }

.upload, .history { margin-bottom: 24px; }
.upload {
  background: #171a21; border: 1px solid #262a33; border-radius: 10px; padding: 20px;
}
.upload input[type=file] { display: block; margin: 12px 0; color: #cbd2dc; }
button, .btn {
  background: #2f81f7; color: #fff; border: none; padding: 8px 14px;
  border-radius: 6px; cursor: pointer; text-decoration: none; font-size: 14px;
}
button:hover, .btn:hover { background: #4d94f8; }
.hint, .meta, .empty { color: #9aa4b2; font-size: 13px; }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid #262a33; font-size: 14px; }
th { color: #9aa4b2; font-weight: 500; }

.status { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 12px; }
.status-queued { background: #3a3f4b; color: #cbd2dc; }
.status-processing { background: #1f3a5f; color: #7db8ff; }
.status-done { background: #15341f; color: #6fdb8f; }
.status-error { background: #4a1f1f; color: #ff9a9a; }

.log pre, .transcript {
  background: #12151b; border: 1px solid #262a33; border-radius: 8px; padding: 14px; overflow: auto;
}
.log pre { max-height: 240px; font-size: 12px; color: #9aa4b2; white-space: pre-wrap; }
.transcript { white-space: pre-wrap; line-height: 1.5; font-size: 14px; }
.result-actions { margin: 16px 0 8px; display: flex; gap: 8px; }
.error { color: #ff9a9a; background: #4a1f1f; border-radius: 8px; padding: 10px 14px; margin: 12px 0; }

.login-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.login { background: #171a21; border: 1px solid #262a33; border-radius: 10px; padding: 28px; width: 300px; }
.login h1 { margin-top: 0; text-align: center; }
.login input {
  width: 100%; padding: 10px; margin: 8px 0 16px; border-radius: 6px;
  border: 1px solid #262a33; background: #0f1115; color: #e6e6e6;
}
.login button { width: 100%; }
