:root {
  --navy: #0b1220;
  --navy-2: #111827;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --paper: #f4f6f9;
  --white: #ffffff;
  --blue: #2563eb;
  --blue-2: #1d4ed8;
  --gold: #c4a35a;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
  min-height: 100vh;
}
a { color: inherit; }
.topbar {
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 28px;
  border-bottom: 1px solid #1f2937;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.brand-mark { height: 40px; width: auto; display: block; }
.brand-mark-lg { height: 52px; }
.brand-plate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #0b1220;
  border-radius: 12px;
  padding: 10px 14px;
}
.brand-name { font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; font-size: 15px; }
.brand-name span { color: #60a5fa; }
.brand-sub { font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: #94a3b8; }
.nav { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.nav a, .nav span {
  color: #cbd5e1;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 14px;
}
.nav a:hover, .nav a.active { background: #1f2937; color: #fff; }
.nav .phone { color: #fbbf24; font-weight: 600; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 10px;
  padding: 11px 16px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-2); }
.btn-ghost { background: transparent; color: #fff; border: 1px solid #334155; }
.btn-soft { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.wrap { max-width: 1100px; margin: 0 auto; padding: 28px 20px 60px; }
.hero {
  background: linear-gradient(180deg, #0b1220 0%, #15233b 100%);
  color: #fff;
  padding: 42px 20px 36px;
}
.hero-inner { max-width: 1100px; margin: 0 auto; }
.eyebrow {
  display: inline-block;
  border: 1px solid #334155;
  border-radius: 999px;
  padding: 6px 12px;
  color: #93c5fd;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.hero h1 { font-size: 40px; letter-spacing: -0.04em; margin: 14px 0 8px; }
.hero p { color: #cbd5e1; max-width: 620px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 22px; }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 1px 2px rgba(15,23,42,.04);
}
.card h2, .card h3 { margin: 0 0 8px; letter-spacing: -0.03em; }
.muted { color: var(--muted); font-size: 14px; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
label { display: block; font-size: 13px; font-weight: 600; margin: 12px 0 6px; }
input, select, textarea {
  width: 100%;
  border: 1px solid #d6dee8;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  background: #fff;
}
textarea { min-height: 80px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.section-title { margin: 22px 0 8px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: #475569; }
.alert { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; padding: 10px 12px; border-radius: 10px; }
.ok { background: #ecfdf3; color: #166534; border: 1px solid #bbf7d0; padding: 10px 12px; border-radius: 10px; }
table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; }
th, td { text-align: left; padding: 12px; border-bottom: 1px solid var(--line); font-size: 14px; }
th { background: #0b1220; color: #fff; font-weight: 600; }
.login-wrap { min-height: 100vh; display: grid; place-items: center; background: #0b1220; }
.login-box { width: 420px; background: #fff; border-radius: 16px; padding: 28px; }
.device-row { border: 1px dashed #cbd5e1; border-radius: 12px; padding: 12px; margin-bottom: 12px; background: #f8fafc; }
.actions { display: flex; gap: 10px; margin-top: 18px; }
footer.site { color: #94a3b8; font-size: 12px; padding: 24px 20px; text-align: center; }
@media (max-width: 860px) {
  .cards, .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 30px; }
  .topbar { flex-direction: column; align-items: flex-start; }
}

/* === job status === */
.jobs-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 8px; }
.jobs-head h1 { margin: 0 0 6px; }
.jobs-head-links { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0 20px; }
.chip {
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 8px 14px; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--ink);
}
.chip:hover, .chip.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.job-list { display: flex; flex-direction: column; gap: 16px; }
.job-card {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 18px 20px; box-shadow: 0 1px 2px rgba(15,23,42,.04);
}
.job-card-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.job-biz { margin: 0 0 4px; font-size: 20px; letter-spacing: -0.03em; }
.job-meta { font-size: 13px; }
.tiny { font-size: 12px; margin: 8px 0; }
.pipeline {
  list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  padding: 0; margin: 16px 0;
}
.pipeline li {
  position: relative; background: #f1f5f9; color: #64748b; border-radius: 10px;
  padding: 10px 8px; text-align: center; font-size: 12px; font-weight: 600;
}
.pipeline li.done { background: #dcfce7; color: #166534; }
.pipeline li.active { background: #dbeafe; color: #1d4ed8; }
.pipeline li.bad { background: #fee2e2; color: #991b1b; }
.pipeline li.pending { background: #fef9c3; color: #854d0e; }
.badge {
  display: inline-block; border-radius: 999px; padding: 5px 10px;
  font-size: 12px; font-weight: 700; text-transform: capitalize; white-space: nowrap;
}
.badge-exported { background: #e2e8f0; color: #334155; }
.badge-drive_synced { background: #dcfce7; color: #166534; }
.badge-drive_failed { background: #fee2e2; color: #991b1b; }
.badge-in_progress { background: #dbeafe; color: #1d4ed8; }
.badge-complete { background: #bbf7d0; color: #14532d; }
.badge-failed { background: #fecaca; color: #7f1d1d; }
.badge-queued, .badge-ready { background: #e2e8f0; color: #334155; }
.job-links { margin: 8px 0; font-size: 14px; }
.drive-err { margin-top: 8px; font-size: 13px; }
.job-notes, .status-form { margin-top: 12px; }
.actions.tight { margin-top: 10px; }
.btn-sm { padding: 8px 12px; font-size: 13px; border-radius: 8px; }
.btn-danger { background: #991b1b; color: #fff; border: 0; }
.btn-danger:hover { background: #7f1d1d; }
.btn-ghost-dark {
  background: transparent; color: var(--ink); border: 1px solid var(--line);
  margin-top: 12px;
}
.btn-ghost-dark:hover { background: #f8fafc; }
.prio-high, .prio-urgent { color: #b91c1c; font-weight: 700; }
@media (max-width: 860px) {
  .pipeline { grid-template-columns: 1fr 1fr; }
}
