*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #0d0d0d; --surface: #1f1f1f; --border: #333;
  --text: #e0e0e0; --muted: #888; --accent: #aaa; --green: #ccc;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg); color: var(--text);
}
.tabs {
  display: flex; gap: 0; border-bottom: 1px solid var(--border);
  padding: 0 1rem;
}
.tabs a {
  padding: 0.6rem 1.2rem; color: var(--muted); text-decoration: none;
  font-size: 0.9rem; border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.tabs a:hover { color: var(--text); }
.tabs a.active { color: var(--text); border-bottom-color: var(--text); }
button {
  background: #828282; color: #fff; border: none;
  padding: 0.6rem 1.2rem; border-radius: 6px; cursor: pointer; font-size: 0.9rem;
}
button:hover { opacity: 0.85; }
.items { list-style: none; }
.items li { border-bottom: 1px solid var(--border); display: flex; align-items: center; }
.items a {
  flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.2rem;
  padding: 0.75rem 0.5rem; color: var(--text); text-decoration: none;
  border-radius: 4px; transition: background 0.1s;
}
.items a:hover { background: var(--surface); }
.items .top-row { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.items .name { font-weight: 500; }
.items .meta { font-size: 0.8rem; color: var(--muted); }
.items .preview {
  font-size: 0.8rem; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-family: "SF Mono", "Fira Code", "Cascadia Code", monospace;
}
.items .action-btn {
  background: var(--surface); color: var(--muted); border: 1px solid var(--border);
  cursor: pointer; padding: 0.5rem 1.5rem; font-size: 1.5rem; border-radius: 6px;
  transition: color 0.15s, background 0.15s, border-color 0.15s; flex-shrink: 0;
}
.items .action-btn:hover { background: var(--border); border-color: var(--muted); }
.items .action-btn.done { color: var(--green); }
.items .del-btn {
  background: none; color: var(--muted); border: none; cursor: pointer;
  padding: 0.4rem 0.5rem; font-size: 0.75rem; border-radius: 4px;
  transition: color 0.15s; flex-shrink: 0;
}
.items .del-btn:hover { color: #fff; }
.empty { color: var(--muted); font-style: italic; }
.hint {
  margin-top: 2rem; padding: 1rem; background: var(--surface);
  border-radius: 8px; font-size: 0.85rem; color: var(--muted); line-height: 1.6;
}
.hint code {
  background: var(--border); padding: 0.15rem 0.4rem; border-radius: 3px;
  color: var(--green);
}
.usage { margin-top: 0.5rem; border-spacing: 0; }
.usage td { padding: 0.15rem 0; }
.usage td:first-child { padding-right: 0.75rem; white-space: nowrap; }
