/* Тема берётся из Telegram — апп выглядит родным и в светлой, и в тёмной. */
:root {
  --bg: var(--tg-theme-bg-color, #ffffff);
  --text: var(--tg-theme-text-color, #1f1f1f);
  --muted: var(--tg-theme-hint-color, #8b8f95);
  --card: var(--tg-theme-secondary-bg-color, #f3f4f6);
  --accent: var(--tg-theme-link-color, #2f7fdb);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 16px;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.top { margin-bottom: 20px; }

h1 {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 600;
}

.muted { color: var(--muted); font-size: 14px; margin: 0; }

.empty {
  background: var(--card);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}

.empty p { margin: 0 0 6px; }
.empty p:last-child { margin-bottom: 0; }

.projects { list-style: none; margin: 0; padding: 0; }

.project {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  background: var(--card);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 8px;
}

.project-title { font-weight: 500; }
.project-role { color: var(--muted); font-size: 13px; }

.section {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 600;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

button {
  font: inherit;
  font-size: 15px;
  border: 0;
  border-radius: 10px;
  padding: 11px 16px;
  cursor: pointer;
}

button.primary {
  background: var(--accent);
  color: #fff;
}

button.ghost {
  background: transparent;
  color: var(--accent);
  padding: 6px 10px;
}

button.danger { color: #d9534f; }

.row-actions { display: flex; gap: 4px; flex-shrink: 0; }

.log {
  background: var(--card);
  border-radius: 10px;
  padding: 12px;
  margin: 12px 0 0;
  max-height: 320px;
  overflow-y: auto;
  font-size: 12px;
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-word;
}

.linkbox {
  background: var(--card);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
  word-break: break-all;
  user-select: all;
}
