.page {
  padding: 32px;
  max-width: 1000px;
}

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
  flex-wrap: wrap;
}

.page-title {
  font-size: 1.6rem;
  font-weight: 700;
}

.page-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 4px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-secondary);
}

.card-title {
  font-weight: 600;
  font-size: 0.9rem;
}

.card-body {
  padding: 18px;
}

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

.op-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 0.7rem;
  font-weight: 700;
  font-family: var(--font-mono);
  background: var(--accent-dim);
  color: var(--accent);

  &.post {
    background: var(--green-dim);
    color: var(--green);
  }
}

.loading-state {
  display: flex;
  justify-content: center;
  padding: 60px;
}

.empty-state {
  padding: 60px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.flags-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.flag-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.15s;

  &.flag-enabled {
    border-left: 3px solid var(--green);
  }

  &.flag-disabled {
    border-left: 3px solid var(--text-muted);
  }
}

.flag-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.flag-name {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.flag-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin: 0;
}

.flag-actions {
  margin-top: 4px;
}
