* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #f4f5f7;
  color: #1a1a2e;
}
.hidden { display: none !important; }
.screen { min-height: 100vh; }

#login { display: flex; align-items: center; justify-content: center; }
#login .card { width: 320px; display: flex; flex-direction: column; gap: 12px; }

header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px; background: #1a1a2e; color: #fff;
}
header h1 { font-size: 18px; margin: 0; }
.header-right { display: flex; align-items: center; gap: 16px; }
.balance { font-size: 13px; opacity: .85; }

main { max-width: 760px; margin: 24px auto; padding: 0 16px; display: flex; flex-direction: column; gap: 20px; }

.card { background: #fff; border-radius: 10px; padding: 20px; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.card h1 { margin-top: 0; }
.card h2 { margin: 0 0 14px; font-size: 16px; }

label { display: block; font-size: 13px; color: #444; margin-bottom: 12px; }
label.checkbox { display: flex; align-items: center; gap: 8px; }
input[type=text], input[type=password], input[type=file] {
  width: 100%; padding: 9px 11px; margin-top: 5px;
  border: 1px solid #d0d3da; border-radius: 7px; font-size: 14px;
}
.row { display: flex; gap: 16px; }
.row label { flex: 1; }
.row input[type=text] { text-transform: uppercase; }

button, .button {
  display: inline-block; padding: 10px 18px; border: 0; border-radius: 7px;
  background: #3b5bdb; color: #fff; font-size: 14px; cursor: pointer; text-decoration: none; text-align: center;
}
button:hover, .button:hover { background: #2f49b0; }
button:disabled { background: #aab1c4; cursor: not-allowed; }
button.secondary { background: #e9ecf5; color: #2f49b0; }
button.secondary:hover { background: #dde2f2; }
button.link { background: none; color: #fff; padding: 0; font-size: 13px; opacity: .85; }
button.link:hover { background: none; opacity: 1; }

.tabs { display: flex; gap: 6px; margin-bottom: 18px; border-bottom: 1px solid #eceef3; }
.tab { background: none; color: #888; border-radius: 0; padding: 8px 14px; }
.tab:hover { background: none; color: #3b5bdb; }
.tab.active { color: #1a1a2e; border-bottom: 2px solid #3b5bdb; font-weight: 600; }

.error { color: #d6336c; font-size: 13px; min-height: 16px; }
.hint { color: #555; font-size: 13px; margin-top: 10px; }

.progress { height: 12px; background: #eceef3; border-radius: 6px; overflow: hidden; margin-bottom: 14px; }
#progress-bar { height: 100%; width: 0; background: #3b5bdb; transition: width .4s; }
.job-meta { font-size: 13px; line-height: 1.7; }
.job-meta b { font-weight: 600; }
.tag { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 12px; }
.tag.queued { background: #fff3bf; }
.tag.running { background: #d0ebff; }
.tag.done { background: #d3f9d8; }
.tag.error { background: #ffe3e3; color: #c92a2a; }

table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid #eceef3; }
th { color: #888; font-weight: 600; }
