:root {
  --ft-accent: #4f46e5;
  --ft-accent-hover: #4338ca;
  --ft-bg: #f6f7fb;
  --ft-card: #ffffff;
  --ft-border: #e6e8ef;
  --ft-text: #1f2430;
  --ft-muted: #7b8290;
  --ft-radius: 14px;
  --ft-shadow: 0 1px 2px rgba(16,24,40,.04), 0 4px 12px rgba(16,24,40,.06);
}
.ft-root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ft-text);
  line-height: 1.5;
}
.ft-root *, .ft-root *::before, .ft-root *::after { box-sizing: border-box; }

.ft-heading { font-size: 18px; font-weight: 700; margin: 0 0 4px; }
.ft-sub { font-size: 13px; color: var(--ft-muted); margin: 0 0 14px; }

.ft-form {
  background: var(--ft-card);
  border: 1px solid var(--ft-border);
  border-radius: var(--ft-radius);
  padding: 16px;
  box-shadow: var(--ft-shadow);
  margin-bottom: 20px;
}
.ft-form-row { display: flex; flex-direction: column; gap: 10px; }
.ft-field {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--ft-border);
  border-radius: 10px;
  font: inherit;
  color: var(--ft-text);
  background: #fff;
}
.ft-field:focus { outline: none; border-color: var(--ft-accent); box-shadow: 0 0 0 3px rgba(79,70,229,.12); }
.ft-textarea { resize: vertical; min-height: 64px; }

.ft-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  border-radius: 10px;
  padding: 10px 16px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, transform .05s;
}
.ft-btn:active { transform: translateY(1px); }
.ft-btn-primary { background: var(--ft-accent); color: #fff; }
.ft-btn-primary:hover { background: var(--ft-accent-hover); }
.ft-btn-green { background: #16a34a; color: #fff; }
.ft-btn-green:hover { background: #15803d; }
.ft-btn-red { background: #dc2626; color: #fff; }
.ft-btn-red:hover { background: #b91c1c; }
.ft-btn-ghost { background: transparent; color: var(--ft-muted); border: 1px solid var(--ft-border); }
.ft-btn-ghost:hover { background: #f3f4f6; }
.ft-btn-sm { padding: 6px 10px; font-size: 13px; border-radius: 8px; }

.ft-toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }

.ft-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.ft-tab {
  border: 1px solid var(--ft-border);
  background: #fff;
  border-radius: 999px;
  padding: 7px 14px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--ft-muted);
  cursor: pointer;
}
.ft-tab.active { background: var(--ft-accent); color: #fff; border-color: var(--ft-accent); }

.ft-list { display: flex; flex-direction: column; gap: 12px; }
.ft-card {
  background: var(--ft-card);
  border: 1px solid var(--ft-border);
  border-radius: var(--ft-radius);
  padding: 14px 16px;
  display: flex;
  gap: 14px;
  box-shadow: var(--ft-shadow);
}
.ft-vote { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 44px; }
.ft-vote-btn {
  background: #fff;
  border: 1px solid var(--ft-border);
  border-radius: 10px;
  width: 42px;
  height: 42px;
  cursor: pointer;
  font-size: 17px;
  color: var(--ft-muted);
}
.ft-vote-btn.voted { background: var(--ft-accent); color: #fff; border-color: var(--ft-accent); }
.ft-count { font-weight: 700; font-size: 14px; }
.ft-body { flex: 1; min-width: 0; }
.ft-text { font-size: 16px; white-space: pre-wrap; word-break: break-word; }
.ft-meta { margin-top: 6px; font-size: 12px; color: var(--ft-muted); }
.ft-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ft-badge { padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.ft-badge-new { background: #eff6ff; color: #1d4ed8; }
.ft-badge-pushed { background: #ecfdf5; color: #059669; }
.ft-badge-answered { background: #f3f4f6; color: #4b5563; }
.ft-badge-deactivated { background: #fef2f2; color: #b91c1c; }
.ft-section-title { font-size: 13px; font-weight: 700; color: var(--ft-muted); text-transform: uppercase; letter-spacing: .05em; margin: 8px 0 2px; }
.ft-empty { text-align: center; color: var(--ft-muted); padding: 30px 0; }
.ft-toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: #111827;
  color: #fff;
  padding: 12px 18px;
  border-radius: 10px;
  opacity: 0;
  pointer-events: none;
  transition: .25s;
  max-width: 90vw;
  z-index: 99999;
}
.ft-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.ft-checkbox { width: 18px; height: 18px; cursor: pointer; }
.ft-edit-input { width: 100%; padding: 8px 10px; border: 1px solid var(--ft-border); border-radius: 8px; font: inherit; margin-bottom: 6px; }
.ft-login-required { padding: 20px; text-align: center; color: var(--ft-muted); border: 1px dashed var(--ft-border); border-radius: var(--ft-radius); }
