:root {
  --bg: #0b0f14;
  --panel: #111826;
  --panel2: #0f1724;
  --text: #e6edf3;
  --muted: #97a3b3;
  --line: #223043;
  --btn: #1f6feb;
  --btn2: #2ea043;
  --danger: #ff4d4d;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  background: radial-gradient(1200px 800px at 20% 0%, #0e1630 0%, var(--bg) 60%);
  color: var(--text);
}

a { color: inherit; text-decoration: none; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(11, 15, 20, 0.85);
  backdrop-filter: blur(10px);
}

.brand { display: flex; gap: 12px; align-items: center; }
.logo { font-size: 22px; }
.title { font-weight: 700; letter-spacing: 0.2px; }
.subtitle { font-size: 12px; color: var(--muted); margin-top: 2px; }

.actions { display: flex; gap: 10px; align-items: center; }

.container {
  max-width: 1100px;
  margin: 18px auto;
  padding: 0 14px 30px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.panel {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel2) 100%);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
}

.rowTight { margin-top: 10px; align-items: center; }

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 160px;
}

.field.grow { flex: 1; min-width: 240px; }

label {
  font-size: 12px;
  color: var(--muted);
}

input, select {
  padding: 10px 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,0.25);
  color: var(--text);
  outline: none;
}

input::placeholder { color: #6c7a8f; }

.btn {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(31, 111, 235, 0.9);
  color: white;
  cursor: pointer;
  font-weight: 650;
}

.btn:hover { filter: brightness(1.05); }

.btnGhost {
  background: rgba(255,255,255,0.06);
}

.status {
  color: var(--muted);
  font-size: 13px;
}

.right { margin-left: auto; display: flex; gap: 10px; align-items: center; }

.topics {
  margin-top: 12px;
}

.chip {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.05);
  padding: 8px 10px;
  border-radius: 999px;
  cursor: pointer;
  user-select: none;
  font-size: 13px;
  color: var(--text);
}

.chip.active {
  border-color: rgba(46, 160, 67, 0.8);
  box-shadow: 0 0 0 3px rgba(46, 160, 67, 0.15);
}

.feed {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(17, 24, 38, 0.55);
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
  overflow: hidden;
}

.feedHeader {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 14px 14px 10px;
  border-bottom: 1px solid var(--line);
}

.feedTitle { font-weight: 800; }
.feedMeta { font-size: 12px; color: var(--muted); }

.cards { padding: 10px; display: flex; flex-direction: column; gap: 10px; }

.card {
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.22);
  border-radius: 16px;
  padding: 12px 12px;
  transition: transform 0.08s ease;
}

.card:hover { transform: translateY(-1px); }

.cardTop {
  display: flex;
  gap: 10px;
  align-items: baseline;
  justify-content: space-between;
}

.cardTitle {
  font-weight: 780;
  line-height: 1.25;
  font-size: 15px;
}

.cardMeta {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.cardBottom {
  display: flex;
  gap: 10px;
  margin-top: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.badge {
  font-size: 12px;
  color: var(--muted);
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  padding: 4px 8px;
  border-radius: 999px;
}

.openLink {
  margin-left: auto;
  font-weight: 700;
  color: rgba(31, 111, 235, 1);
}

.footer {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
}

.hint { color: var(--muted); font-size: 12px; }