/* Дизайн-система из ~/CLAUDE.md: тёмная и плотная, серые строго achromatic,
   акцент только на действии, радиус говорит об интерактивности. */
:root {
  --canvas: #000000;
  --surface: #121212;
  --raised: #1F1F1F;
  --hover: #282828;
  --divider: #333333;
  --text: #FFFFFF;
  --muted: #B3B3B3;
  --accent: #1ED760;
  --gutter: 8px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: var(--gutter);
  background: var(--canvas);
  color: var(--text);
  font: 400 16px/normal -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
mark { background: rgba(255, 255, 255, 0.16); color: var(--text); border-radius: 2px; }

.panel {
  background: var(--surface);
  border-radius: 8px;
  padding: 12px;
  max-width: 1100px;
  margin: 0 auto;
}

/* --- шапка --- */
.top { display: flex; align-items: center; gap: 12px; padding: 12px 4px; }
.top h1 { margin: 0; font-size: 32px; font-weight: 700; }
.top .spacer { flex: 1; }
.state { color: var(--muted); font-size: 12px; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border: 0; border-radius: 9999px;
  background: var(--raised); color: var(--muted); cursor: pointer;
  transition: background-color .2s ease-in-out, color .2s ease-in-out;
}
.icon-btn:hover { background: var(--hover); color: var(--text); }

/* --- фильтры --- */
.filters { display: flex; flex-direction: column; gap: 8px; padding: 0 4px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto;
  height: 32px; padding: 0 12px; border-radius: 9999px;
  background: var(--raised); color: var(--muted); font-size: 14px; white-space: nowrap;
  transition: background-color .2s ease-in-out, color .2s ease-in-out;
}
.chip:hover { background: var(--hover); color: var(--text); }
.chip[aria-current="true"] { color: var(--text); font-weight: 700; }
.chip .n { color: var(--muted); font-size: 12px; }
.chip[aria-current="true"] .n { color: var(--text); }

.search { display: flex; gap: 8px; }
.search input {
  flex: 1; height: 32px; padding: 0 12px; border-radius: 9999px;
  border: 0; background: var(--raised); color: var(--text); font-size: 14px;
}
.search input::placeholder { color: var(--muted); }
.search input:focus-visible { outline: 2px solid var(--muted); outline-offset: 2px; }

/* --- лента --- */
.feed { margin-top: 24px; display: flex; flex-direction: column; }
.task {
  display: block; padding: 12px; border-radius: 6px;
  background: rgba(0, 0, 0, 0); box-shadow: none;
  transition: background-color .2s ease-in-out;
}
.task:hover { background: var(--hover); }
.meta { display: flex; gap: 8px; align-items: baseline; color: var(--muted); font-size: 12px; }
.meta .budget { color: var(--text); font-weight: 700; font-size: 14px; white-space: nowrap; }
.task h2 { margin: 4px 0; font-size: 16px; font-weight: 700; line-height: 20px; }
.task p.desc { margin: 4px 0 0; color: var(--muted); font-size: 14px; line-height: 20px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.verdict { margin-top: 8px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.badge {
  display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 8px;
  border-radius: 9999px; background: var(--raised); color: var(--muted); font-size: 12px;
}
.badge.sent { color: var(--text); font-weight: 700; }
p.reason { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 20px; }
.open {
  margin-left: auto; display: inline-flex; align-items: center; gap: 4px; height: 32px;
  padding: 0 12px; border-radius: 9999px; color: var(--accent); font-size: 14px;
  transition: background-color .2s ease-in-out;
}
.open:hover { background: var(--raised); }
.empty { padding: 48px 12px; text-align: center; color: var(--muted); }

/* --- вход --- */
.login { max-width: 360px; margin: 96px auto 0; }
.login h1 { font-size: 24px; font-weight: 700; margin: 0 0 4px; }
.login .hint { color: var(--muted); font-size: 12px; margin-bottom: 12px; }
.login label { display: block; color: var(--muted); font-size: 12px; margin-bottom: 4px; }
.login input {
  width: 100%; height: 40px; padding: 0 12px; margin-bottom: 12px;
  border: 0; border-radius: 6px; background: var(--raised); color: var(--text); font-size: 16px;
}
.login button {
  width: 100%; height: 48px; border: 0; border-radius: 9999px;
  background: var(--accent); color: #000; font-size: 16px; font-weight: 700; cursor: pointer;
  transition: opacity .2s ease-in-out;
}
.login button:hover { opacity: .85; }
.login .error { color: var(--text); background: var(--raised); border-radius: 6px;
  padding: 12px; margin-bottom: 12px; font-size: 14px; }

@media (max-width: 640px) {
  .top h1 { font-size: 24px; }
  .feed { margin-top: 16px; }
  .open { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
