:root{
  --bg:#0b1220;
  --card:#111a2e;
  --muted:#7e8aa7;
  --txt:#e9eefc;
  --accent:#3b82f6;
  --accent2:#22c55e;
  --danger:#ef4444;
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Ubuntu,"Helvetica Neue",Arial;
  background:linear-gradient(180deg,#070b14 0%, #0b1220 100%);
  color:var(--txt);
}

.topbar{
  position:sticky;
  top:0;
  padding:16px 16px 12px;
  background:rgba(11,18,32,.92);
  backdrop-filter: blur(10px);
  border-bottom:1px solid rgba(255,255,255,.06);
  z-index:10;
}

.appname{font-weight:800;font-size:18px}
.subtitle{color:var(--muted);font-size:12px;margin-top:4px}

.wrap{padding:14px;max-width:720px;margin:0 auto}

.card{
  background:rgba(17,26,46,.92);
  border:1px solid rgba(255,255,255,.06);
  border-radius:18px;
  padding:14px;
  margin-bottom:14px;
  box-shadow:0 12px 30px rgba(0,0,0,.25);
}

.card h2{margin:0 0 10px;font-size:15px}

.file{
  width:100%;
  padding:12px;
  border-radius:14px;
  border:1px dashed rgba(255,255,255,.18);
  background:rgba(255,255,255,.03);
  color:var(--txt);
}

.preview-wrap{margin-top:10px}
.preview{
  width:100%;
  border-radius:14px;
  display:none;
  border:1px solid rgba(255,255,255,.08);
}

.form{margin-top:10px}
label{display:block;font-size:12px;color:var(--muted);margin-bottom:6px}

input[type="number"]{
  width:100%;
  padding:14px;
  font-size:20px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.05);
  color:var(--txt);
  outline:none;
}

.row{
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:space-between;
  margin-top:10px;
  flex-wrap:wrap;
}

.btn{
  border:none;
  border-radius:14px;
  padding:12px 14px;
  font-size:14px;
  font-weight:700;
  background:var(--accent);
  color:white;
  cursor:pointer;
}

.btn:disabled{
  opacity:.55;
  cursor:not-allowed;
}

.btn.secondary{background:rgba(255,255,255,.10)}
.btn.ghost{background:transparent;border:1px solid rgba(255,255,255,.14)}

.hint{color:var(--muted);font-size:12px}

.list{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.item{
  padding:12px;
  border-radius:14px;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.06);
}

.itemTop{
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:flex-start;
}

.km{
  font-weight:900;
  font-size:18px;
}

.meta{
  color:var(--muted);
  font-size:12px;
  margin-top:6px;
}

.smallbtn{
  background:transparent;
  border:1px solid rgba(255,255,255,.14);
  color:var(--txt);
  padding:8px 10px;
  border-radius:12px;
  cursor:pointer;
}

.badge{
  display:inline-block;
  padding:4px 8px;
  border-radius:999px;
  font-size:12px;
  background:rgba(34,197,94,.14);
  border:1px solid rgba(34,197,94,.35);
  color:#a7f3d0;
}

.auth-gate{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.auth-input{
  flex:1;
  min-width:200px;
  padding:12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.05);
  color:var(--txt);
  outline:none;
}
