
:root {
  --tp-bg: #0e1116;
  --tp-fg: #e6edf3;
  --tp-muted: #8b949e;
  --tp-accent: #4f8cf7;
  --tp-card: #151b23;
  --tp-border: #30363d;
  --tp-radius: 8px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--tp-bg); color: var(--tp-fg); }
.tp-shell { max-width: 860px; margin: 0 auto; padding: 24px 16px 80px; }
.tp-header h1 { font-size: 2em; margin-bottom: 4px; }
.tp-tagline { color: var(--tp-muted); margin: 0 0 24px; }
.tp-card {
  background: var(--tp-card);
  border: 1px solid var(--tp-border);
  border-radius: var(--tp-radius);
  padding: 20px;
  margin-bottom: 20px;
}
.tp-card h2 { margin-top: 0; }
form label { display: block; margin-bottom: 12px; font-size: 0.9em; color: var(--tp-muted); }
form input, form textarea, form select {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 8px 10px;
  background: #0e1116;
  color: var(--tp-fg);
  border: 1px solid var(--tp-border);
  border-radius: 6px;
  font: inherit;
}
.tp-row { display: flex; gap: 12px; }
.tp-row label { flex: 1; }
button[data-ui="button"] {
  background: var(--tp-accent);
  color: #fff;
  border: 0;
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
}
button[data-ui="button"]:hover { filter: brightness(1.1); }
.tp-status { margin-top: 12px; color: var(--tp-muted); font-size: 0.9em; }
.tp-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--tp-border);
}
.tp-item:last-child { border-bottom: 0; }
.tp-item h3 { margin: 0 0 4px; font-size: 1em; }
.tp-item p { margin: 2px 0; }
.tp-desc { color: var(--tp-muted); font-size: 0.9em; }
.tp-meta { color: var(--tp-muted); font-size: 0.85em; }
.tp-footer { color: var(--tp-muted); font-size: 0.85em; text-align: center; margin-top: 40px; }
.tp-footer code { background: var(--tp-card); padding: 2px 6px; border-radius: 4px; }
a { color: var(--tp-accent); }
.tp-hint { font-size: 0.85em; color: var(--tp-muted); margin-top: 12px; }
.tp-filter { margin-bottom: 12px; }
.tp-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.75em;
  font-weight: 600;
  background: #30363d;
  color: var(--tp-fg);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.tp-badge-todo { background: #30363d; }
.tp-badge-in_progress { background: #1f6feb; }
.tp-badge-blocked { background: #b35900; }
.tp-badge-done { background: #238636; }
.tp-badge-cancelled { background: #6e7681; }
.tp-badge-pri-low { background: #6e7681; }
.tp-badge-pri-medium { background: #1f6feb; }
.tp-badge-pri-high { background: #b35900; }
.tp-badge-pri-urgent { background: #da3633; }
.tp-ev { padding: 8px 0; border-bottom: 1px dashed var(--tp-border); }
.tp-ev pre { background: #0e1116; padding: 8px; border-radius: 4px; overflow-x: auto; font-size: 0.8em; }
