* {
  box-sizing: border-box;
}

body {
  font-family: system-ui, sans-serif;
  margin: 0;
  background: #f3f4f6;
  color: #111827;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: white;
  border-bottom: 1px solid #e5e7eb;
}

header h1 {
  font-size: 16px;
  margin: 0;
}

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

.badge {
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 999px;
  font-weight: 600;
}

.badge.running {
  background: #dcfce7;
  color: #166534;
}

.badge.paused {
  background: #fee2e2;
  color: #991b1b;
}

button {
  padding: 6px 14px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  background: white;
  cursor: pointer;
  font-size: 13px;
}

button:hover {
  background: #f9fafb;
}

button.primary {
  background: #2563eb;
  color: white;
  border-color: #2563eb;
}

button.primary:hover {
  background: #1d4ed8;
}

button.danger {
  color: #b91c1c;
  border-color: #fca5a5;
}

nav.tabs {
  display: flex;
  gap: 4px;
  padding: 12px 24px 0;
}

nav.tabs button {
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: none;
  padding: 8px 12px;
  font-size: 14px;
  color: #6b7280;
}

nav.tabs button.active {
  color: #2563eb;
  border-bottom-color: #2563eb;
  font-weight: 600;
}

main {
  padding: 20px 24px;
}

.panel {
  display: none;
}

.panel.active {
  display: block;
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

th, td {
  text-align: left;
  padding: 8px 12px;
  border-bottom: 1px solid #f3f4f6;
  font-size: 13px;
}

th {
  background: #f9fafb;
  color: #6b7280;
  font-weight: 600;
}

.phase-pill {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e5e7eb;
  color: #374151;
}

form.inline {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 14px;
}

form.inline input {
  padding: 6px 8px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 13px;
}

.muted {
  color: #9ca3af;
}

/* --- Opportunities / Posts タブ(2026-09-14追加) --- */

.toolbar label.check {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: #374151;
}

.toolbar select,
.toolbar input.num {
  padding: 5px 8px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 13px;
}

.toolbar input.num {
  width: 72px;
}

th.col-num { width: 88px; }
th.col-time { width: 132px; }
th.col-badge { width: 108px; }
th.col-media { width: 150px; }
th.col-link { width: 56px; }

/* 本文セル。既定は3行で省略し、クリックで全文展開する(長文投稿(note_tweet)は
   280字を超えることがあり、そのまま出すと表が縦に伸びて一覧性を失うため)。 */
.post-text {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: pre-wrap;
  cursor: pointer;
  min-width: 280px;
}

.post-text.expanded {
  display: block;
}

.pill {
  display: inline-block;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e5e7eb;
  color: #374151;
  white-space: nowrap;
}

.pill.ok { background: #dcfce7; color: #166534; }
.pill.warn { background: #fef3c7; color: #92400e; }
.pill.bad { background: #fee2e2; color: #991b1b; }

.thumbs {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.thumbs img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #e5e7eb;
  background: #f3f4f6;
}

button.link-like {
  border: none;
  background: none;
  padding: 0;
  color: #2563eb;
  font-size: 11px;
  text-decoration: underline;
}

button.link-like:hover {
  background: none;
}

.load-more {
  display: flex;
  justify-content: center;
  padding: 14px 0;
}

.signal-strong {
  font-weight: 600;
  color: #166534;
}
