:root {
  --bg: #0f172a;
  --card: #1e293b;
  --card2: #273449;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --accent: #38bdf8;
  --green: #22c55e;
  --amber: #f59e0b;
  --red: #ef4444;
  --border: #334155;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 520px; margin: 0 auto; padding: 16px; }
header.top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-bottom: 1px solid var(--border);
}
header.top h1 { font-size: 18px; margin: 0; }
.tag { font-size: 12px; color: var(--muted); }
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; padding: 16px; margin: 12px 0;
}
.card h2 { margin: 0 0 10px; font-size: 16px; }
.row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px dashed var(--border); }
.row:last-child { border-bottom: 0; }
.row .k { color: var(--muted); font-size: 13px; }
.row .v { text-align: right; font-weight: 600; font-size: 14px; }
.big { font-size: 30px; font-weight: 800; }
.muted { color: var(--muted); }
.center { text-align: center; }
.pill {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 700;
}
.pill.asignado { background: #1d4ed833; color: #93c5fd; }
.pill.trabajando { background: #b4530933; color: #fcd34d; }
.pill.finalizado { background: #14532d55; color: #86efac; }
button, .btn {
  display: block; width: 100%; padding: 14px; margin: 8px 0;
  border: 0; border-radius: 12px; font-size: 16px; font-weight: 700;
  background: var(--accent); color: #00263a; cursor: pointer;
}
button.secondary { background: var(--card2); color: var(--text); border: 1px solid var(--border); }
button.green { background: var(--green); color: #04210f; }
button.amber { background: var(--amber); color: #2a1800; }
button:disabled { opacity: .5; }
input, select {
  width: 100%; padding: 12px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--card2); color: var(--text); font-size: 16px; margin: 6px 0;
}
label { font-size: 13px; color: var(--muted); display: block; margin-top: 8px; }
.timecard-img { width: 100%; border-radius: 10px; border: 1px solid var(--border); margin-top: 8px; }
.list-item { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 12px; margin: 8px 0; }
.list-item .head { display: flex; justify-content: space-between; font-weight: 700; }
.list-item .sub { color: var(--muted); font-size: 13px; margin-top: 4px; }
.hint { font-size: 12px; color: var(--muted); margin-top: 6px; }
.error { color: var(--red); font-size: 13px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.totales { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; text-align: center; }
.totales .box { background: var(--card2); border-radius: 12px; padding: 14px; }
.totales .box .big { font-size: 26px; }
.hidden { display: none !important; }
